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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,gaa,ha,ia,ka,pa,qa,ra,v,sa,ta,ua,haa,iaa,va,xa,jaa,z,ya,za,Aa,Ba,Ca,Ga,Ea,Ja,La,maa,naa,Va,Wa,Xa,oaa,paa,Ya,qaa,Za,$a,raa,saa,bb,ib,taa,pb,qb,uaa,wb,tb,vaa,ub,waa,xaa,yaa,Eb,Gb,Hb,Ib,Lb,Nb,Ob,Rb,Zb,bc,ec,fc,ic,kc,nc,Baa,oc,pc,qc,Ac,Bc,Dc,Ic,Oc,Pc,Tc,Rc,Faa,Iaa,Jaa,Kaa,Xc,Yc,dd,cd,fd,id,Laa,Maa,hd,Naa,od,pd,qd,rd,ud,vd,wd,xd,Paa,yd,zd,Dd,Ed,Fd,Gd,Hd,Id,Kd,Ld,Nd,Pd,Qd,Sd,Td,Ud,Raa,Vd,Wd,Xd,Yd,Zd,$d,he,je,me,qe,re,ye,ze,Ce,Ae,Ee,He,Ge,Fe,Waa,oe,Te,Re,Se,Ve,Ue,ne,We,C,Yaa,$e,bf,Ze,df,ef,ff,
gf,hf,jf,kf,nf,Zaa,uf,qf,Gf,$aa,Kf,Mf,aba,Pf,Qf,Sf,Tf,Uf,Wf,Vf,Xf,Yf,dba,fba,gba,iba,$f,ag,bg,dg,eg,fg,hg,gg,kba,jba,jg,lg,rg,sg,vg,lba,yg,xg,Bg,mba,Jg,Kg,Lg,nba,Mg,Ng,Og,Pg,Qg,Rg,Sg,oba,Tg,Ug,Vg,pba,qba,Wg,Yg,Xg,$g,ah,dh,bh,sba,ch,eh,uba,tba,vba,hh,wba,jh,kh,lh,ih,mh,xba,nh,yba,zba,qh,Bba,rh,sh,th,Cba,vh,Ah,Dh,Gh,Ih,Fh,Eh,Jh,Dba,Kh,Lh,Mh,Nh,Fba,Sh,Th,Uh,Vh,Hba,Wh,Xh,Yh,Zh,$h,Iba,bi,ci,di,ei,fi,gi,ii,ji,ki,li,mi,hi,ni,oi,pi,Jba,qi,ri,Kba,si,ti,Lba,Ai,Mba,Bi,Ci,Di,Nba,Hi,Ii,Ki,Mi,Ni,Oi,Pi,Qi,Ji,Li,
Pba,Ri,Si,Ui,Ti,Qba,Rba,Sba,Vi,Wi,Xi,Yi,Wba,Xba,Yba,Zi,aj,Zba,$ba,aca,cj,dj,bca,ej,cca,dca,fj,gj,hj,eca,ij,kj,lj,mj,nj,oj,pj,qj,rj,sj,fca,gca,tj,hca,vj,uj,yj,zj,xj,ica,mca,lca,Bj,nca,oca,pca,rca,qca,sca,Cj,Ej,Gj,Hj,Kj,uca,Mj,Nj,vca,wca,Oj,Pj,Qj,Rj,xca,Sj,Tj,zca,Uj,Aca,Vj,Xj,Wj,Yj,Zj,bk,Cca,ck,Bca,dk,Dca,ek,Eca,Fca,gk,ik,jk,kk,lk,hk,ok,pk,mk,Gca,Ica,Jca,rk,sk,tk,uk,Kca,vk,wk,xk,yk,zk,Ak,Bk,Ck,Fk,Ek,Mca,Nca,Gk,Ik,Dk,Hk,Lca,Jk,Kk,Pca,Qca,Rca,Sca,Ok,Pk,Qk,Lk,Rk,Sk,Oca,Tca,Uca,Vca,Vk,Tk,Wk,Yk,$ca,Wca,
ada,bl,cl,dl,el,fl,jj,bda,gl,hl,cda,dda,eda,fda,gda,jl,kl,ll,ml,nl,ol,jda,pl,kda,ql,ul,vl,wl,xl,yl,mda,zl,Bl,Dl,Fl,oda,Gl,Hl,Il,Jl,Ll,Nl,pda,Kl,Sl,Tl,Ql,rda,Ol,Ml,Xl,Yl,Zl,am,sda,bm,cm,dm,tda,im,km,mm,nm,pm,qm,rm,tm,uda,vda,vm,ym,um,wm,lm,sm,xda,Bm,zm,Am,Dm,wda,Cm,Hm,Km,Jm,Pm,Qm,Sm,Ada,Rm,Um,Wm,Vm,yda,Zm,an,Dda,cn,dn,gn,hn,on,Eda,qn,rn,Gda,sn,tn,Lda,Hda,An,Qda,Bn,Cn,Sda,Fn,Gn,Hn,In,Tda,Ln,Mn,Nn,On,Qn,Rn,Sn,Tn,bo,co,eo,fo,go,ho,io,Wda,Xda,ko,lo,jo,oo,po,Yda,so,to,vo,Fo,Eo,aea,bea,Ho,Mo,Jo,No,Po,Qo,
Ro,So,dea,eea,Zo,$o,ap,fea,fp,gp,hp,jp,lp,ip,op,rp,qp,pp,tp,up,vp,xp,yp,zp,Ap,Ep,Cp,Fp,Gp,Hp,wp,Kp,Jp,kea,Mp,lea,Qp,Pp,nea,Rp,Sp,oea,Wp,pea,qea,Up,Xp,Yp,$p,aq,cq,dq,eq,gq,hq,iq,kq,mq,nq,Zp,qq,oq,rea,tea,uea,wq,yq,zq,xea,wea,tq,Kq,Lq,Mq,yea,Vq,Wq,Tq,Yq,Zq,zea,$q,ar,br,dr,Aea,Ir,Hr,cr,Jr,Kr,Bea,Cea,Rr,Sr,Ur,Vr,Xr,Yr,Fea,Gea,Hea,$r,bs,cs,as,ds,es,fs,gs,hs,is,js,ls,ps,ms,rs,ts,ks,Jea,Kea,ns,us,Lea,qs,Iea,os,ws,Mea,xs,ys,vs,Nea,zs,As,Bs,Ds,Es,Oea,Hs,Js,Ks,Ls,Pea,Qea,Rea,Sea,Tea,Ms,Ns,Os,Qs,Ss,Rs,Vea,Uea,
Us,Ts,Ws,Vs,Ys,Zs,Wea,Xea,bt,Yea,ct,ft,dt,et,Nr,cfa,mt,nt,dfa,pt,rt,ut,tt,wt,xt,zt,Bt,At,ffa,Et,Ft,Gt,Ht,ifa,gfa,It,Lt,Mt,kfa,Jt,Kt,Nt,Ot,Qt,Rt,Ut,St,Wt,Vt,Xt,lfa,Zt,$t,bu,nfa,du,eu,fu,hu,ofa,ju,lu,mu,qu,ru,pfa,nu,qfa,Au,Ju,Iu,Lu,Hu,Ku,Nu,Ou,Pu,Qu,Ru,Su,Tu,rfa,sfa,Xu,tfa,Yu,$u,vfa,wfa,bv,xfa,yfa,zfa,Afa,cv,ev,fv,dv,gv,Vu,Zu,av,ufa,hv,iv,jv,kv,lv,Bfa,Cfa,pv,tv,rv,mv,nv,ov,vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Dfa,Ev,Fv,Hv,Jv,Kv,Gv,Ffa,Lv,Mv,Ov,Qv,Gfa,Rv,Vv,Tv,Pv,Wv,Sv,Uv,Xv,Yv,Zv,Hfa,Ifa,Jfa,Kfa,aw,bw,hw,Lfa,
dw,jw,lw,ow,nw,fw,kw,iw,Mfa,pw,rw,tw,Nfa,uw,vw,cw,ew,gw,mw,yw,ww,Ofa,zw,Aw,qv,Bw,Pfa,xw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,uv,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Uw,Ww,Vw,Xw,Yw,Zw,Hx,Ix,Qfa,Lx,Mx,Ox,Qx,Rx,Tx,Xfa,Ux,Vx,Wx,Xx,Yx,$x,ay,by,cy,Zx,$fa,dy,ey,fy,gy,hy,aga,jy,cga,dga,ky,ly,ega,ny,fga,my,oy,qy,ry,sy,ty,gga,uy,hga,vy,wy,yy,Ay,By,Dy,Ey,Fy,Gy,Hy,Iy,Jy,Ky,Ly,My,Ny,Uy,Qy,iga,Wy,Ry,Sy,Py,Ty,Oy,Vy,bz,az,$y,cz,ez,fz,gz,hz,iz,jga,jz,kga,lga,mga,nga,kz,oga,lz,mz,nz,oz,pz,pga,qz,rz,sz,tz,uz,vz,wz,xz,zz,yz,Az,Ez,Gz,Hz,Iz,
Jz,Lz,Mz,Pz,Fz,Cz,Bz,Dz,Qz,Rz,Sz,Tz,Oz,Kz,Nz,Uz,Vz,Wz,Xz,qga,Yz,Zz,$z,aA,bA,rga,sga,wga,xga,tga,uga,vga,cA,dA,eA,fA,gA,iA,hA,jA,kA,lA,yga,zga,nA,Aga,qA,oA,uA,Yy,Xy,vA,wA,xA,sA,yA,zA,AA,BA,Bga,CA,EA,FA,GA,HA,KA,LA,MA,NA,OA,Cga,QA,RA,PA,TA,SA,UA,VA,Dga,WA,YA,Fga,ZA,Gga,$A,aB,bB,Hga,Iga,cB,dB,eB,Mga,Lga,Kga,fB,Jga,jB,gB,mB,Nga,Oga,nB,Pga,oB,pB,Qga,rB,qB,sB,Rga,Sga,Tga,tB,kB,Uga,uB,vB,xB,yB,zB,wB,AB,BB,DB,Xga,Wga,EB,FB,CB,GB,IB,JB,KB,LB,MB,NB,OB,PB,RB,QB,SB,$ga,UB,VB,WB,XB,YB,ZB,aC,bC,cC,aha,dC,bha,hC,
eC,gC,fC,nC,oC,pC,cha,qC,eha,fha,vC,wC,xC,yC,zC,AC,BC,CC,DC,EC,FC,GC,HC,IC,JC,KC,LC,MC,NC,OC,PC,QC,RC,SC,TC,UC,VC,WC,XC,YC,ZC,$C,aD,bD,cD,dD,eD,fD,gD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,yD,hha,CD,DD,ED,FD,GD,JD,KD,iha,MD,ND,OD,QD,RD,LD,SD,PD,UD,VD,XD,YD,WD,ZD,$D,bE,cE,dE,eE,kE,gE,nE,hE,qE,oE,rE,jE,nha,JE,fE,LE,ME,NE,OE,PE,QE,RE,SE,VE,WE,UE,rha,sha,bF,aF,qha,pha,$E,tha,cF,ZE,fF,gF,iF,jF,kF,lF,mF,nF,hF,pF,uha,rF,wha,sF,tF,xha,vha,yha,Yga,uF,TE,vF,wF,XE,zha,yF,Aha,zF,Bha,Cha,BF,DF,CF,AF,V,FF,
GF,HF,IF,JF,iG,cG,kG,nG,oG,UF,$F,KF,eG,dG,gG,rG,tG,vG,Kha,RF,zG,QF,AG,bG,CG,DG,EG,FG,GG,Mha,Nha,HG,IG,Oha,Sha,JG,Pha,Rha,Qha,KG,Tha,LG,Uha,Vha,MG,NG,Wha,TG,VG,WG,ZG,YG,$G,aH,bH,cH,Yha,Zha,$ha,eH,gH,hH,kH,mH,lH,fia,nH,pH,qH,iH,rH,sH,gia,hia,tH,BH,vH,AH,KH,OH,pia,RH,JH,HH,TH,oia,qia,UH,ria,sia,VH,GH,tia,yH,SH,NH,zia,via,Aia,wia,xia,yia,Bia,XH,Cia,Dia,ZH,$H,Eia,Fia,xH,QH,lia,zH,nia,mia,cI,uia,Hia,jI,kI,lI,mI,Kia,LH,pI,oI,WH,IH,Lia,Gia,MH,Mia,EH,FH,DH,dH,Nia,Oia,sI,Pia,tI,vI,Qia,Ria,Tia,Sia,wI,xI,Uia,
yI,Via,zI,AI,BI,CI,DI,EI,FI,Wia,GI,Xia,HI,JI,$ia,II,aja,Yia,bja,Zia,KI,cja,dja,LI,MI,NI,OI,PI,fja,gja,QI,RI,SI,hja,ija,jja,mja,XI,UI,lja,$I,kja,aJ,WI,bJ,ZI,YI,VI,TI,nja,eJ,dJ,fJ,oja,hJ,jJ,kJ,qja,pja,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,tJ,rja,uJ,sja,vJ,tja,xJ,yJ,uja,zJ,vja,BJ,wja,xja,yja,Bja,zja,Aja,Cja,Dja,CJ,Eja,Fja,Gja,Hja,Ija,Jja,Kja,Mja,Nja,Lja,DJ,Oja,Pja,EJ,Qja,FJ,Rja,GJ,Sja,Uja,Vja,Wja,JJ,Xja,Yja,KJ,Zja,NJ,OJ,$ja,dka,PJ,eka,fka,gka,QJ,hka,RJ,ika,jka,SJ,kka,lka,nka,oka,pka,UJ,TJ,mka,VJ,qka,rka,WJ,ska,tka,
uka,XJ,YJ,xka,yka,ZJ,zka,Aka,$J,aK,cK,dK,eK,fK,iK,Bka,kK,lK,Cka,Dka,Eka,mK,Gka,Hka,nK,Ika,Jka,Kka,oK,pK,Lka,Mka,qK,Oka,Nka,rK,Rka,sK,Tka,Ska,tK,uK,Uka,Vka,Wka,Xka,Yka,Zka,wK,yK,dla,gla,$ka,zK,qla,pla,AK,sla,rla,ula,vla,xla,wla,yla,zla,Ala,Bla,Cla,Dla,Ela,Fla,BK,CK,Gla,Hla,Ila,Kla,Lla,Mla,Nla,Ola,JK,Qla,Rla,HK,IK,Pla,Sla,LK,Vla,Tla,Xla,Wla,MK,bma,Zla,$la,ama,cma,NK,dma,fma,gma,ema,OK,hma,QK,jma,kma,Fka,ima,RK,SK,TK,lma,mma,nma,UK,WK,pma,XK,$K,qma,aL,rma,sma,bL,uma,vma,wma,xma,yma,zma,Ama,gL,Bma,hL,
Cma,Dma,Ema,Fma,Gma,lL,mL,nL,Hma,oL,Ima,qL,Kma,Jma,rL,sL,tL,uL,Lma,vL,wL,Mma,xL,yL,zL,AL,BL,CL,DL,GL,HL,Qma,Nma,Pma,Oma,Rma,IL,JL,Sma,Tma,Uma,Vma,KL,Wma,Yma,Xma,ML,NL,Zma,OL,PL,QL,RL,SL,$ma,TL,UL,bna,ana,VL,WL,XL,YL,ZL,$L,aM,bM,cM,dM,eM,cna,fM,dna,fna,gna,gM,iM,kna,lna,jna,nna,mna,hna,pna,kM,ina,lM,mM,nM,oM,pM,qM,rM,qna,sna,rna,Mr,una,tna,vna,wna,xna,yna,zna,Bna,vM,Ana,Cna,wM,Dna,Ena,yM,Mna,Ona,zM,Pna,Qna,AM,Sna,Tna,Rna,Wna,Xna,BM,Vna,Yna,Zna,CM,Una,$na,HM,FM,IM,GM,Yla,aoa,boa,coa,doa,NM,MM,PM,ioa,
YM,joa,koa,aN,moa,noa,bN,loa,cN,dN,qoa,ooa,gN,uoa,jN,woa,toa,xoa,yoa,iN,voa,lN,mN,nN,oN,KM,qN,zoa,rN,uN,Aoa,tN,wN,Boa,zN,AN,FN,Doa,Eoa,HN,GN,IN,Foa,Goa,JN,Hoa,Ioa,LN,MN,Joa,PN,Loa,RN,NN,Moa,Noa,Koa,SN,TN,WN,Poa,VN,YN,XN,$N,Roa,Soa,dO,Toa,Uoa,gO,Voa,Yoa,Woa,kO,lO,Zoa,oO,pO,qO,rO,tO,$oa,apa,vO,cpa,bpa,dpa,epa,fpa,gpa,BO,CO,DO,hpa,EO,FO,ipa,jpa,IO,lpa,kpa,JO,KO,LO,mpa,MO,NO,OO,PO,npa,QO,RO,opa,SO,ppa,rpa,qpa,XO,VO,WO,spa,tpa,upa,YO,ZO,$O,aP,bP,vpa,eP,wpa,gP,hP,iP,kP,lP,mP,nP,xpa,Apa,oP,ypa,zpa,Epa,Fpa,
qP,Hpa,Gpa,Ipa,Jpa,Kpa,tP,Lpa,vP,wP,xP,yP,Mpa,Npa,Opa,Ppa,Spa,Rpa,Qpa,Upa,CP,GP,Wpa,Xpa,EP,AP,DP,IP,$pa,JP,FP,Tpa,Zpa,HP,Vpa,Ypa,aqa,bqa,LP,MP,NP,OP,dqa,RP,SP,TP,UP,VP,WP,eqa,XP,ZP,YP,$P,aQ,fqa,bQ,gqa,iqa,hqa,cQ,dQ,jqa,eQ,fQ,kqa,gQ,lqa,hQ,mqa,iQ,nQ,mQ,nqa,lQ,RQ,oqa,pqa,TQ,UQ,VQ,WQ,YQ,qqa,eO,uqa,zO,rqa,QQ,tqa,AO,sqa,vqa,zqa,yqa,Aqa,Bqa,bR,Cqa,cR,Dqa,eR,fR,gR,hR,iR,jR,kR,lR,mR,nR,pR,qR,rR,sR,Gqa,tR,Hqa,uR,Iqa,vR,wR,xR,yR,zR,Lqa,Mqa,AR,BR,Kqa,Oqa,DR,ER,Pqa,FR,Rqa,Uqa,Tqa,GR,HR,IR,Xqa,Yqa,Vqa,Wqa,JR,
KR,ara,bra,$qa,LR,era,gra,cra,MR,fra,NR,OR,hra,PR,jra,QR,kra,RR,lra,ira,nra,mra,SR,pra,ora,qra,TR,rra,UR,VR,tra,sra,xra,yra,zra,YR,Ara,WR,ura,vra,wra,Bra,Cra,Dra,Era,Fra,Gra,Hra,bS,Mra,Pra,Nra,Jra,eS,Ira,Ora,hS,Rra,Qra,iS,Tra,Vra,Wra,Ura,lS,Xra,pS,asa,oS,bsa,sS,tS,mS,uS,wS,csa,qS,dsa,esa,fsa,gsa,hsa,Zra,nS,xS,msa,yS,nsa,osa,ksa,AS,psa,BS,isa,ES,lsa,qsa,CS,zS,rsa,GS,ssa,usa,JS,HS,KS,IS,LS,vsa,MS,NS,OS,PS,wsa,QS,SS,ysa,zsa,Asa,VS,US,TS,Bsa,Csa,Dsa,Esa,YS,ZS,$S,Fsa,Gsa,Hsa,Isa,Jsa,Ksa,Nsa,aT,Psa,cT,
eT,bT,fT,Lsa,gT,Osa,Msa,dT,hT,iT,Qsa,Rsa,jT,kT,lT,Ssa,Wsa,Xsa,Ysa,qT,rT,Zsa,sT,$sa,Vsa,ata,bta,mT,Tsa,cta,nT,oT,Usa,dta,eta,pT,fta,gta,tT,ita,hta,uT,lta,kta,mta,nta,xT,qta,vT,yta,wT,zta,yT,uta,rta,vta,ota,zT,Eta,Fta,Gta,DT,ET,Hta,GT,IT,KT,Kta,Jta,Lta,Nta,Ota,LT,Pta,BT,Qta,NT,Rta,Sta,Uta,Vta,MT,Tta,Bta,Dta,JT,Ita,Wta,Xta,Yta,Cta,CT,AT,HT,FT,Zta,Ata,$ta,PT,QT,RT,aua,bua,cua,eua,dua,ST,fua,hua,gua,jua,UT,oua,kua,pua,qua,mua,rua,nua,VT,vua,tua,uua,Aua,xua,Bua,Cua,Dua,TT,wua,zua,sua,Eua,WT,Fua,lua,Gua,
XT,ZT,Hua,Jua,Kua,$T,Iua,aU,bU,cU,dU,fU,Mua,Oua,Pua,Rua,Qua,gU,Nua,iU,hU,Sua,eU,Tua,jU,mU,Uua,Wua,Vua,lU,Xua,Yua,$ua,Zua,ava,nU,kU,bva,oU,dva,eva,fva,cva,gva,hva,jva,lva,mva,iva,ova,pva,kva,rU,qva,rva,sva,tva,sU,tU,wU,xU,vva,yU,wva,xva,yva,zU,zva,Ava,CU,Bva,Cva,Eva,Dva,Fva,DU,EU,Gva,FU,GU,HU,Kva,JU,IU,Lva,MU,Jva,Nva,Iva,LU,Ova,Mva,KU,Pva,NU,Qva,uva,BU,Sva,Tva,Uva,Vva,Wva,Xva,Yva,$va,awa,bwa,Zva,cwa,dwa,PU,OT,ewa,fwa,gwa,QU,RU,hwa,iwa,jwa,TU,lwa,WU,VU,mwa,nwa,UU,SU,kwa,ZU,YU,$U,XU,owa,bV,swa,eV,gV,
hV,uwa,qwa,cV,fV,iV,rwa,vwa,jV,xwa,aV,ywa,zwa,wwa,Awa,dV,twa,Bwa,pwa,kV,lV,mV,Dwa,Fwa,Ewa,Gwa,Iwa,Hwa,nV,oV,Jwa,Kwa,Lwa,Nwa,Owa,Pwa,Qwa,Rwa,Swa,Twa,pV,Uwa,Vwa,qV,Wwa,Xwa,Ywa,Zwa,$wa,axa,bxa,cxa,dxa,gxa,fxa,exa,kxa,rV,lxa,sV,mxa,sxa,nxa,qxa,txa,rxa,oxa,uxa,pxa,wxa,tV,yxa,zxa,Axa,CV,cJ,DV,EM,Dxa,Yra,Gxa,EV,BV,Hxa,LV,GV,kS,Exa,NV,Jxa,dS,OV,PV,DM,KV,QV,vV,Ixa,Bxa,zV,TV,UV,Qxa,fS,Rxa,yV,Sra,SV,vS,DS,FV,Kxa,Txa,Sxa,Uxa,VV,Lra,Vxa,Wxa,Oxa,uV,Xxa,WV,HV,wV,AV,gS,IV,Yxa,Cxa,XV,rS,YV,Zxa,$xa,JV,aya,Kra,RV,Pxa,
Fxa,nya,iya,hya,qya,rya,bW,eW,uya,sya,dW,tya,ZV,gW,hW,wya,iW,jW,lya,mya,pW,zya,oW,aW,Aya,sW,oya,tW,Bya,Cya,lW,mW,kW,wW,Hya,fW,Iya,Jya,xW,rW,yW,zW,Kya,nW,vya,vW,Dya,Lya,Mya,JM,Oya,qW,AW,Qya,cW,BW,Rya,Tya,Uya,kya,uW,Vya,jya,CW,DW,xsa,Wya,EW,FW,GW,Xya,HW,IW,JW,KW,LW,MW,Zya,Yya,NW,$ya,OW,PW,QW,bza,RW,eza,dza,fza,TW,gza,UW,SW,VW,WW,bka,cka,YW,iza,fX,gX,MJ,eX,hX,lza,mza,nza,oza,hza,pza,XW,rza,sza,kX,bX,jX,pX,qX,lX,$W,tza,qza,ZW,iX,mX,rX,cX,dX,oX,nX,vza,sX,tX,wza,uX,Z,xza,zza,Aza,Eza,vX,Fza,Bza,Gza,wX,Iza,
Jza,Hza,Kza,Lza,Oza,Mza,Rza,Uza,Tza,Vza,Yza,Xza,aAa,cAa,gAa,hAa,lAa,GX,iAa,nAa,mAa,qAa,HX,uC,rAa,JX,rC,LX,dha,MX,KK,NX,OX,xX,PX,tAa,FX,yX,uAa,QX,RX,BX,vAa,Qza,zX,AX,EX,wAa,xAa,SX,TX,IX,DX,CX,fAa,dAa,pAa,jAa,Wza,Zza,UX,VX,yAa,WX,XX,YX,ZX,$X,aY,bY,cY,dY,yza,AAa,zAa,eAa,oAa,BAa,bAa,Pza,Nza,Dza,Cza,Sza,kAa,$za,eY,CAa,fY,wJ,aX,jza,KX,gY,hY,iY,DAa,jY,kY,lY,mY,PK,EAa,FAa,GAa,LJ,nY,HAa,IAa,pY,LAa,KAa,MAa,rY,sY,tY,JAa,qY,NAa,OAa,uY,tC,RAa,QAa,vY,oY,SAa,TAa,UAa,wY,xY,VAa,WAa,XAa,YAa,yY,zY,AY,BY,CY,DY,EY,ZAa,
FY,GY,HY,IY,JY,KY,$Aa,aBa,bBa,LY,MY,NY,OY,cBa,PY,dBa,QY,eBa,RY,fBa,SY,TY,UY,VY,hBa,gBa,XY,YY,ZY,$Y,aZ,iBa,jBa,bZ,cZ,kBa,dZ,mBa,lBa,eZ,fZ,nBa,gZ,oBa,pBa,hZ,qBa,rBa,sBa,iZ,jZ,kZ,lZ,mZ,nZ,tBa,oZ,pZ,uBa,qZ,WY,rZ,sZ,aka,tZ,vBa,uZ,wBa,vZ,wZ,xZ,yZ,xBa,yBa,ABa,CBa,zBa,zZ,DBa,FBa,EBa,GBa,HBa,AZ,BZ,CZ,sAa,IBa,DZ,JBa,EZ,BBa,KBa,LBa,FZ,GZ,MBa,HZ,NBa,OBa,IZ,PBa,QBa,JZ,LZ,RBa,MZ,NZ,SBa,OZ,PZ,QZ,RZ,SZ,TBa,TZ,UBa,VBa,WBa,XBa,VZ,YBa,ZBa,$Ba,aCa,WZ,bCa,XZ,YZ,ZZ,$Z,a_,cCa,b_,dCa,c_,d_,eCa,fCa,gCa,g_,hCa,iCa,jCa,kCa,
h_,f_,lCa,j_,k_,l_,m_,n_,mCa,oCa,nCa,pCa,o_,qCa,rCa,p_,sCa,q_,r_,s_,tCa,uCa,vCa,t_,wCa,u_,xCa,yCa,sC,zCa,ACa,CCa,aa,fa,ea,kaa,Fa,Oa,laa;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}}};
gaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(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.Ed=b.prototype};
pa=function(){this.J=!1;this.B=null;this.l=void 0;this.i=1;this.C=this.I=0;this.W=this.u=null};
qa=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ra=function(a,b){a.u={lD:b,qE:!0};a.i=a.I||a.C};
v=function(a,b,c){a.i=c;return{value:b}};
sa=function(a,b,c){a.I=b;void 0!=c&&(a.C=c)};
ta=function(a,b){a.i=b;a.I=0};
ua=function(a){a.I=0;var b=a.u.lD;a.u=null;return b};
haa=function(a){this.i=new pa;this.l=a};
iaa=function(a,b){qa(a.i);var c=a.i.B;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i["return"]);
a.i["return"](b);return xa(a)};
va=function(a,b,c,d){try{var e=b.call(a.i.B,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.J=!1,e;var f=e.value}catch(h){return a.i.B=null,ra(a.i,h),xa(a)}a.i.B=null;d.call(a.i,f);return xa(a)};
xa=function(a){for(;a.i.i;)try{var b=a.l(a.i);if(b)return a.i.J=!1,{value:b.value,done:!1}}catch(c){a.i.l=void 0,ra(a.i,c)}a.i.J=!1;if(a.i.u){b=a.i.u;a.i.u=null;if(b.qE)throw b.lD;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
jaa=function(a){this.next=function(b){qa(a.i);a.i.B?b=va(a,a.i.B.next,b,a.i.L):(a.i.L(b),b=xa(a));return b};
this["throw"]=function(b){qa(a.i);a.i.B?b=va(a,a.i.B["throw"],b,a.i.L):(ra(a.i,b),b=xa(a));return b};
this["return"]=function(b){return iaa(a,b)};
this[Symbol.iterator]=function(){return this}};
z=function(a,b){var c=new jaa(new haa(b));oa&&a.prototype&&oa(c,a.prototype);return c};
ya=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+""};
za=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{cu:e,BH:f}}return{cu:-1,BH:void 0}};
Aa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ba=function(a){return a?a:Array.prototype.fill};
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};
g.Da=function(a,b,c){a=a.split(".");c=c||g.A;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};
Ga=function(a){if(a&&a!=g.A)return Ea(a.document);null===Fa&&(Fa=Ea(g.A.document));return Fa};
Ea=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&kaa.test(a)?a:""};
g.Ha=function(a,b){for(var c=a.split("."),d=b||g.A,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ia=function(){};
Ja=function(a){a.Gf=void 0;a.getInstance=function(){return a.Gf?a.Gf:a.Gf=new a}};
La=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ma=function(a){var b=La(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Na=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Pa=function(a){return Object.prototype.hasOwnProperty.call(a,Oa)&&a[Oa]||(a[Oa]=++laa)};
maa=function(a,b,c){return a.call.apply(a.bind,arguments)};
naa=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.B=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.B=maa:g.B=naa;return g.B.apply(null,arguments)};
g.Qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(a,b){for(var c in b)a[c]=b[c]};
g.Sa=function(){return Date.now()};
g.Ta=function(a,b){function c(){}
c.prototype=b.prototype;a.Ed=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ig=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)}};
Va=function(a){return a};
Wa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Wa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Xa=function(a,b){for(var c=Wa.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(Wa,this,e+d[f])};
oaa=function(){};
paa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.u=!b&&/[?&]ae=1(&|$)/.test(a);this.B=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.l=c}};
Ya=function(a){return function(){return a}};
qaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Za=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
$a=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
raa=function(a,b){var c=0;return function(d){g.A.clearTimeout(c);var e=arguments;c=g.A.setTimeout(function(){a.apply(b,e)},50)}};
g.ab=function(a){return a[a.length-1]};
saa=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.cb=function(a,b,c){b=bb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
bb=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.db=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.fb=function(a,b){return 0<=eb(a,b)};
g.gb=function(a){return 0==a.length};
ib=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.kb=function(a,b){var c=eb(a,b),d;(d=0<=c)&&g.jb(a,c);return d};
g.jb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.lb=function(a,b){var c=bb(a,b,void 0);0<=c&&g.jb(a,c)};
taa=function(a,b){var c=0;saa(a,function(d,e){b.call(void 0,d,e,a)&&g.jb(a,e)&&c++})};
g.nb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ob=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[]};
pb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ma(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.rb=function(a,b,c,d){Array.prototype.splice.apply(a,qb(arguments,1))};
qb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
uaa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Na(f)?"o"+g.Pa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.vb=function(a,b,c){return tb(a,c||ub,!1,b)};
wb=function(a,b){return tb(a,b,!0,void 0,void 0)};
tb=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.xb=function(a,b){a.sort(b||ub)};
vaa=function(a,b){var c=ub;g.xb(a,function(d,e){return c(b(d),b(e))})};
g.yb=function(a,b){if(!g.Ma(a)||!g.Ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=waa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
ub=function(a,b){return a>b?1:a<b?-1:0};
waa=function(a,b){return a===b};
g.zb=function(a,b,c){c=g.vb(a,b,c);0>c&&g.rb(a,-(c+1),0,b)};
g.Bb=function(a,b,c){var d={};(0,g.Ab)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
xaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
yaa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Cb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Db=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Eb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Fb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Gb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Hb=function(a){for(var b in a)return b};
Ib=function(a){for(var b in a)return a[b]};
g.Jb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Lb=function(a,b){return null!==a&&b in a};
g.Mb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Nb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Ob=function(a,b){var c=Nb(a,b,void 0);return c&&a[c]};
g.Pb=function(a){for(var b in a)return!1;return!0};
g.Qb=function(a){for(var b in a)delete a[b]};
Rb=function(a,b,c){return null!==a&&b in a?a[b]:c};
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.Yb=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])}};
Zb=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.A.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Va,createScript:Va,createScriptURL:Va})}catch(c){g.A.console&&g.A.console.error(c.message)}ac=a}else ac=a}return ac};
ec=function(a,b){this.i=a===cc&&b||"";this.l=dc};
fc=function(a){return a instanceof ec&&a.constructor===ec&&a.l===dc?a.i:"type_error:Const"};
g.gc=function(a){return new ec(cc,a)};
ic=function(a){this.i=hc===hc?a:"";this.Zi=!0};
kc=function(a,b){this.i=b===jc?a:""};
nc=function(a){return a instanceof kc&&a.constructor===kc?a.i:"type_error:TrustedResourceUrl"};
Baa=function(a,b){var c=fc(a);if(!zaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(Aaa,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 oc(d)};
oc=function(a){var b=bc();a=b?b.createScriptURL(a):a;return new kc(a,jc)};
pc=function(a,b){return 0==a.lastIndexOf(b,0)};
qc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.rc=function(a){return/^[\s\xa0]*$/.test(a)};
Ac=function(a,b){if(b)a=a.replace(sc,"&amp;").replace(tc,"&lt;").replace(uc,"&gt;").replace(vc,"&quot;").replace(wc,"&#39;").replace(zc,"&#0;");else{if(!Caa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(tc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(uc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(vc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(wc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(zc,"&#0;"))}return a};
Bc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Ec=function(a,b){for(var c=0,d=Cc(String(a)).split("."),e=Cc(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=Dc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Dc(0==l[2].length,0==m[2].length)||Dc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Dc=function(a,b){return a<b?-1:a>b?1:0};
g.Gc=function(a,b){this.i=b===Fc?a:""};
g.Hc=function(a){return a instanceof g.Gc&&a.constructor===g.Gc?a.i:"type_error:SafeUrl"};
Ic=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Daa);return b&&Eaa.test(b[1])?new g.Gc(a,Fc):null};
g.Lc=function(a){a instanceof g.Gc||(a="object"==typeof a&&a.Zi?a.Mg():String(a),a=Jc.test(a)?new g.Gc(a,Fc):Ic(a));return a||Kc};
g.Mc=function(a,b){if(a instanceof g.Gc)return a;a="object"==typeof a&&a.Zi?a.Mg():String(a);if(b&&/^data:/i.test(a)){var c=Ic(a)||Kc;if(c.Mg()==a)return c}Jc.test(a)||(a="about:invalid#zClosurez");return new g.Gc(a,Fc)};
Oc=function(a,b){this.i=b===Nc?a:""};
Pc=function(a){return a instanceof Oc&&a.constructor===Oc?a.i:"type_error:SafeStyle"};
Tc=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.Qc(d,Rc).join(" "):Rc(d),b+=c+":"+d+";")}return b?new Oc(b,Nc):Sc};
Rc=function(a){if(a instanceof g.Gc)return'url("'+g.Hc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof ec?fc(a):Faa(String(a));if(/[{;}]/.test(a))throw new Xa("Value does not allow [{;}], got: %s.",[a]);return a};
Faa=function(a){var b=a.replace(Uc,"$1").replace(Uc,"$1").replace(Vc,"url");if(Gaa.test(b)){if(Haa.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||!Iaa(a))return"zClosurez"}else return"zClosurez";return Jaa(a)};
Iaa=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};
Jaa=function(a){return a.replace(Vc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Lc(d).Mg();return c+f+b+f+e})};
Kaa=function(a){function b(d){Array.isArray(d)?g.Ab(d,b):c+=Pc(d)}
var c="";g.Ab(arguments,b);return c?new Oc(c,Nc):Sc};
Xc=function(a){return-1!=g.Wc.indexOf(a)};
Yc=function(){return Xc("Firefox")||Xc("FxiOS")};
dd=function(){return Xc("Safari")&&!(cd()||Xc("Coast")||Xc("Opera")||Xc("Edge")||Xc("Edg/")||Xc("OPR")||Yc()||Xc("Silk")||Xc("Android"))};
cd=function(){return(Xc("Chrome")||Xc("CriOS"))&&!Xc("Edge")};
fd=function(a,b,c){this.i=c===ed?a:"";this.l=b};
g.gd=function(a){return a instanceof fd&&a.constructor===fd?a.i:"type_error:SafeHtml"};
id=function(a){if(a instanceof fd)return a;var b="object"==typeof a,c=null;b&&a.Ay&&(c=a.zo());return hd(Ac(b&&a.Zi?a.Mg():String(a)),c)};
Laa=function(a){function b(f){Array.isArray(f)?g.Ab(f,b):(f=id(f),e.push(g.gd(f).toString()),f=f.zo(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=id(jd),d=c.zo(),e=[];g.Ab(a,b);return hd(e.join(g.gd(c).toString()),d)};
Maa=function(a){return Laa(Array.prototype.slice.call(arguments))};
hd=function(a,b){var c=bc();c=c?c.createHTML(a):a;return new fd(c,b,ed)};
g.kd=function(a,b){fc(a);fc(a);return hd(b,null)};
Naa=function(a){var b=g.gc("Output of CSS sanitizer");fc(b);fc(b);return new Oc(a,Nc)};
g.ld=function(a,b){if(Oaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.gd(b)};
g.md=function(a,b){var c=b instanceof g.Gc?b:g.Mc(b);a.href=g.Hc(c)};
g.nd=function(a,b){a.src=nc(b);var c=Ga(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
od=function(a,b,c,d){a=a instanceof g.Gc?a:g.Mc(a);b=b||g.A;c=c instanceof ec?fc(c):c||"";return void 0!==d?b.open(g.Hc(a),c,d,void 0):b.open(g.Hc(a),c)};
pd=function(a,b,c){return a.parseFromString(g.gd(b),c)};
qd=function(a){return encodeURIComponent(String(a))};
rd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.sd=function(a){return a=Ac(a,void 0)};
g.td=function(a){return null==a?"":String(a)};
ud=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
vd=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b};
wd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
xd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Paa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
yd=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};
zd=function(a){return a?decodeURI(a):a};
g.Bd=function(a,b){return b.match(Ad)[a]||null};
g.Cd=function(a){return zd(g.Bd(3,a))};
Dd=function(a){a=a.match(Ad);return yd(a[1],null,a[3],a[4])};
Ed=function(a){a=a.match(Ad);return yd(null,null,null,null,a[5],a[6],a[7])};
Fd=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?rd(f):"")}};
Gd=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)]};
Hd=function(a,b){return b?a?a+"&"+b:b:a};
Id=function(a,b){if(!b)return a;var c=Gd(a);c[1]=Hd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Kd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Kd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+qd(b)))};
Ld=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Kd(a[d],a[d+1],c);return c.join("&")};
g.Md=function(a){var b=[],c;for(c in a)Kd(c,a[c],b);return b.join("&")};
Nd=function(a,b){var c=2==arguments.length?Ld(arguments[1],0):Ld(arguments,1);return Id(a,c)};
g.Od=function(a,b){var c=g.Md(b);return Id(a,c)};
Pd=function(a,b,c){c=null!=c?"="+qd(c):"";return Id(a,b+c)};
Qd=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};
Sd=function(a,b){var c=a.search(Rd),d=Qd(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 rd(a.substr(d,e-d))};
Td=function(a,b){for(var c=a.search(Rd),d=0,e,f=[];0<=(e=Qd(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(Qaa,"$1")};
Ud=function(a,b,c){return Pd(Td(a,b),b,c)};
Raa=function(a,b){var c=Gd(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]=Hd(e.join("&"),g.Md(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Vd=function(){return Xc("iPhone")&&!Xc("iPod")&&!Xc("iPad")};
Wd=function(){return Vd()||Xc("iPad")||Xc("iPod")};
Xd=function(a){Xd[" "](a);return a};
Yd=function(a,b){try{return Xd(a[b]),!0}catch(c){}return!1};
Zd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
$d=function(){var a=g.A.document;return a?a.documentMode:void 0};
g.ce=function(a){return Zd(Saa,a,function(){return 0<=g.Ec(be,a)})};
g.de=function(a){return Number(Taa)>=a};
g.ee=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.fe=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.ge=function(a,b,c){return a+c*(b-a)};
he=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ie=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
je=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ke=function(a,b){this.width=a;this.height=b};
g.le=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
me=function(a){return a.width*a.height};
qe=function(a){return a?new ne(oe(a)):pe||(pe=new ne)};
re=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.ve=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.se(document,"*",a,b)};
g.we=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.se(c,"*",a,b)[0]||null}return c||null};
g.se=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.fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
ye=function(a,b){g.Cb(b,function(c,d){c&&"object"==typeof c&&c.Zi&&(c=c.Mg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:xe.hasOwnProperty(d)?a.setAttribute(xe[d],c):pc(d,"aria-")||pc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
ze=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ke(a.clientWidth,a.clientHeight)};
Ce=function(a){var b=Ae(a);a=a.parentWindow||a.defaultView;return g.Be&&g.ce("10")&&a.pageYOffset!=b.scrollTop?new g.ie(b.scrollLeft,b.scrollTop):new g.ie(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Ae=function(a){return a.scrollingElement?a.scrollingElement:g.De||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Ee=function(a){return a?a.parentWindow||a.defaultView:window};
He=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Uaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.sd(h.name),'"');if(h.type){f.push(' type="',g.sd(h.type),'"');var l={};g.Yb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Fe(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):ye(f,h));2<d.length&&Ge(e,f,d,2);return f};
Ge=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.Ma(f)||g.Na(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Na(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.Ab(h?g.ob(f):f,e)}}};
g.Ie=function(a){return Fe(document,a)};
Fe=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Je=function(a){return document.createTextNode(String(a))};
g.Ke=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Le=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Me=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Waa=function(a){return Vaa&&void 0!=a.children?a.children:g.Ne(a.childNodes,function(b){return 1==b.nodeType})};
g.Oe=function(a){var b;if(Xaa&&!(g.Be&&g.ce("9")&&!g.ce("10")&&g.A.SVGElement&&a instanceof g.A.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Na(b)&&1==b.nodeType?b:null};
g.Pe=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};
oe=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Qe=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.Ke(a);var c=oe(a);a.appendChild(c.createTextNode(String(b)))}};
Te=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&&(!Re(a)||Se(a)):b=Re(a)&&Se(a);if(b&&g.Be){var c;"function"!==typeof a.getBoundingClientRect||g.Be&&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};
Re=function(a){return g.Be&&!g.ce("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Se=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Ve=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Ue(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.fb(f.className.split(/\s+/),c))},!0,d)};
Ue=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};
ne=function(a){this.i=a||g.A.document||document};
We=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.sd(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=qe(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Baa(g.gc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.sd(a)+".js"});g.nd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
C=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())})};
Yaa=function(a){return g.Qc(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.l=null;this.i=this.u=this.B=0;this.C=!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.l=b;a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B};
df=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.l[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.l[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.l[a.i++],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.C=!0};
ef=function(a){var b=a.l;var c=b[a.i+0];var d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d};
ff=function(a){this.i=bf(a,void 0,void 0);this.C=this.i.i;this.l=this.u=-1;this.B=!1};
gf=function(a){var b=a.i;(b=b.i==b.u)||(b=a.B)||(b=a.i,b=b.C||0>b.i||b.i>b.u);if(b)return!1;a.C=a.i.i;b=ef(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.u=b>>>3;a.l=c;return!0};
hf=function(a){switch(a.l){case 0:if(0!=a.l)hf(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?hf(a):a.i.advance(8);break;case 2:if(2!=a.l)hf(a);else{var b=ef(a.i);a.i.advance(b)}break;case 5:5!=a.l?hf(a):a.i.advance(4);break;case 3:b=a.u;do{if(!gf(a)){a.B=!0;break}if(4==a.l){a.u!=b&&(a.B=!0);break}hf(a)}while(1);break;default:a.B=!0}};
jf=function(a){var b=ef(a.i);a=a.i;var c=a.l,d=a.i,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=qb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.i=d;return c+b};
kf=function(a){var b=ef(a.i);a=a.i;if(0>b||a.i+b>a.l.length)a.C=!0,b=new Uint8Array(0);else{var c=a.l.subarray(a.i,a.i+b);a.i+=b;b=c}return b};
nf=function(){this.i=[]};
g.of=function(a,b){for(;127<b;)a.i.push(b&127|128),b>>>=7;a.i.push(b)};
g.pf=function(a,b){a.i.push(b>>>0&255);a.i.push(b>>>8&255);a.i.push(b>>>16&255);a.i.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)};
Zaa=function(a){var b=[];uf(a,function(c){b.push(c)});
return b};
g.cf=function(a){!g.Be||g.ce("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.rc(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.u=[];this.l=0;this.i=new nf};
g.xf=function(a){for(var b=new Uint8Array(a.l+a.i.length()),c=a.u,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.i.end();b.set(c,e);a.u=[b];return b};
g.yf=function(a,b,c){if(null!=c&&null!=c)if(g.of(a.i,8*b),a=a.i,0<=c)g.of(a,c);else{for(b=0;9>b;b++)a.i.push(c&127|128),c>>=7;a.i.push(1)}};
g.Bf=function(a,b,c){if(null!=c&&null!=c){g.of(a.i,8*b);a=a.i;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.zf=b;g.Af=d;c=g.zf;for(b=g.Af;0<b||127<c;)a.i.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.i.push(c)}};
g.Cf=function(a,b,c){if(null!=c){g.of(a.i,8*b+1);a=a.i;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.Af=0<1/d?0:2147483648,g.zf=0;else if(isNaN(d))g.Af=2147483647,g.zf=4294967295;else if(1.7976931348623157E308<d)g.Af=(c<<31|2146435072)>>>0,g.zf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.Af=(c<<31|d/4294967296)>>>0,g.zf=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.Af=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.zf=4503599627370496*
d>>>0}g.pf(a,g.zf);g.pf(a,g.Af)}};
g.Df=function(){};
g.If=function(a,b,c,d,e,f){a.i=null;b||(b=c?[c]:[]);a.J=c?String(c):void 0;a.B=0===c?-1:0;a.l=b;a:{c=a.l.length;b=-1;if(c&&(b=c-1,c=a.l[b],!(null===c||"object"!=typeof c||Array.isArray(c)||Ef&&c instanceof Uint8Array))){a.C=b-a.B;a.u=c;break a}-1<d?(a.C=Math.max(d,b+1-a.B),a.u=null):a.C=Number.MAX_VALUE}a.I={};if(e)for(d=0;d<e.length;d++)b=e[d],b<a.C?(b+=a.B,a.l[b]=a.l[b]||Ff):(Gf(a),a.u[b]=a.u[b]||Ff);if(f&&f.length)for(d=0;d<f.length;d++)g.Hf(a,f[d])};
Gf=function(a){var b=a.C+a.B;a.l[b]||(a.u=a.l[b]={})};
g.Jf=function(a,b){if(b<a.C){var c=b+a.B,d=a.l[c];return d!==Ff?d:a.l[c]=[]}if(a.u)return d=a.u[b],d===Ff?a.u[b]=[]:d};
$aa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.cf(a):null};
Kf=function(a,b){var c=g.Jf(a,b);return null==c?0:c};
g.Lf=function(a,b,c){b<a.C?a.l[b+a.B]=c:(Gf(a),a.u[b]=c);return a};
Mf=function(a,b,c){0!==c?g.Lf(a,b,c):b<a.C?a.l[b+a.B]=null:(Gf(a),delete a.u[b]);return a};
g.Hf=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Jf(a,f);null!=h&&(c=f,d=h,g.Lf(a,f,void 0))}return c?(g.Lf(a,c,d),c):0};
g.Nf=function(a,b,c){a.i||(a.i={});if(!a.i[c]){for(var d=g.Jf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}b=a.i[c];b==Ff&&(b=a.i[c]=[]);return b};
g.Of=function(a){if(a.i)for(var b in a.i){var c=a.i[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&g.Of(c[d]);else c&&g.Of(c)}return a.l};
aba=function(a){var b=Pf(g.Of(a)),c=g.If;g.If=function(d,e,f,h,l,m){c(d,b,f,h,l,m);g.If=c};
a=new a.constructor(b);g.If!==c&&(g.If=c);return a};
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(Ef&&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};
Qf=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};
Sf=function(a){return a?a.passive&&bba()?a:a.capture||!1:!1};
Tf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Sf(d)),!0):!1};
Uf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Sf(void 0))};
Wf=function(){return!Vf()&&(Xc("iPod")||Xc("iPhone")||Xc("Android")||Xc("IEMobile"))};
Vf=function(){return Xc("iPad")||Xc("Android")&&!Xc("Mobile")||Xc("Silk")};
Xf=function(a){try{return!!a&&null!=a.location.href&&Yd(a,"foo")}catch(b){return!1}};
Yf=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
dba=function(){var a=[];Yf(cba,function(b){a.push(b)});
return a};
fba=function(a){return(a=eba.exec(a))&&a[0]||""};
gba=function(){var a=Zf;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""};
iba=function(){var a=g.Ie("IFRAME"),b={};g.Ab(hba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
$f=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ag=function(a){return a.right-a.left};
bg=function(a,b,c){b instanceof g.ie?(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.cg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
dg=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};
eg=function(){this.u="&";this.l={};this.B=0;this.i=[]};
fg=function(a,b){var c={};c[a]=b;return[c]};
hg=function(a,b,c,d,e){var f=[];Yf(a,function(h,l){var m=gg(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
gg=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(gg(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(hg(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
kba=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=jba(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.i.length;f++)for(var h=a.i[f],l=a.l[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=hg(l[m],a.u,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.u;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
jba=function(a){var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 3997-b-a.u.length-1};
jg=function(a){ig();return hd(a,null)};
g.kg=function(a){ig();return oc(a)};
g.mg=function(a,b,c){if("string"===typeof b)(b=lg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=lg(c,d);f&&(c.style[f]=e)}};
lg=function(a,b){var c=ng[b];if(!c){var d=wd(b);c=d;void 0===a.style[d]&&(d=(g.De?"Webkit":og?"Moz":g.Be?"ms":g.pg?"O":null)+Paa(d),void 0!==a.style[d]&&(c=d));ng[b]=c}return c};
g.qg=function(a,b){var c=a.style[wd(b)];return"undefined"!==typeof c?c:a.style[lg(a,b)]||""};
rg=function(a,b){var c=oe(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
sg=function(a,b){return rg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.ug=function(a,b,c){if(b instanceof g.ie){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.tg(d,!1);a.style.top=g.tg(b,!1)};
vg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
lba=function(a){if(g.Be&&!g.de(8))return a.offsetParent;var b=oe(a),c=sg(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=sg(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.wg=function(a){var b=oe(a),c=new g.ie(0,0);var d=b?oe(b):document;d=!g.Be||g.de(9)||"CSS1Compat"==qe(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=vg(a);b=Ce(qe(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
yg=function(a,b){var c=new g.ie(0,0),d=Ee(oe(a));if(!Yd(d,"parent"))return c;var e=a;do{var f=d==b?g.wg(e):xg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Cg=function(a,b){var c=Bg(a),d=Bg(b);return new g.ie(c.x-d.x,c.y-d.y)};
xg=function(a){a=vg(a);return new g.ie(a.left,a.top)};
Bg=function(a){if(1==a.nodeType)return xg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ie(a.clientX,a.clientY)};
g.Dg=function(a,b,c){if(b instanceof g.ke)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.tg(b,!0);a.style.height=g.tg(c,!0)};
g.tg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eg=function(a){var b=mba;if("none"!=sg(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};
mba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.De&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=vg(a),new g.ke(a.right-a.left,a.bottom-a.top)):new g.ke(b,c)};
g.Fg=function(a,b){a.style.display=b?"":"none"};
Jg=function(){if(Gg&&!Xf(Hg)){var a="."+Ig.domain;try{for(;2<a.split(".").length&&!Xf(Hg);)Ig.domain=a=a.substr(a.indexOf(".")+1),Hg=window.parent}catch(b){}Xf(Hg)||(Hg=window)}return Hg};
Kg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ke(b.innerWidth,b.innerHeight)).round():ze(b||window).round()}catch(d){return new g.ke(-12245933,-12245933)}};
Lg=function(a,b,c){try{a&&(b=b.top);var d=Kg(a,b,void 0===c?!1:c),e=Ce(qe(b.document).i);if(-12245933==d.width){var f=d.width;var h=new $f(f,f,f,f)}else h=new $f(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new $f(-12245933,-12245933,-12245933,-12245933)}};
nba=function(a){var b={};g.Ab(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
taa(a,function(c){return null===b[c.event]})};
Mg=function(){this.zc=0;this.i=!1;this.l=-1;this.jn=!1;this.Ag=0};
Ng=function(){this.l=null;this.i=!1};
Og=function(a){Ng.call(this);this.u=a};
Pg=function(){Ng.call(this)};
Qg=function(){Ng.call(this)};
Rg=function(){this.i={};this.l=!0;this.u={}};
Sg=function(a,b,c){a.i[b]||(a.i[b]=new Og(c));return a.i[b]};
oba=function(a){a.i.queryid||(a.i.queryid=new Qg)};
Tg=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
Ug=function(a,b){if(Lb(a.u,b))return a.u[b];var c=a.i[b];if(c)return c.getValue()};
Vg=function(a){var b={},c=g.Db(a.i,function(d){return d.i});
g.Cb(c,function(d,e){var f=void 0!==a.u[e]?String(a.u[e]):d.i&&null!==d.l?String(d.l):"";0<f.length&&(b[e]=f)},a);
return b};
pba=function(a){a=Vg(a);var b=[];g.Cb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
qba=function(){this.i=this.Bl=null};
Wg=function(){};
Yg=function(){if(!Xg())throw Error();};
Xg=function(){return!(!Zg||!Zg.performance)};
$g=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ah=function(){};
dh=function(a){a=a||bh();for(var b=new ch(g.A.location.href,g.A,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&rba.test(f.url)&&(c=f);if(f.url&&!f.Hy){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new sba(b,e,c)};
bh=function(){var a=g.A,b=[],c=null;do{var d=a;if(Xf(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ch(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.A;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.Hy=!0);return b};
sba=function(a,b,c){this.i=a;this.l=b;this.u=c};
ch=function(a,b,c){this.url=a;this.Of=b;this.Hy=!!c;this.depth=null};
eh=function(a,b){this.i=a;this.depth=b};
uba=function(){function a(l,m){return null==l?m:l}
var b=bh(),c=Math.max(b.length-1,0),d=dh(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new eh([f.url,f.Hy?2:0],a(f.depth,1)));e&&e!=f&&h.push(new eh([e.url,2],0));b.url&&b!=f&&h.push(new eh([b.url,0],a(b.depth,c)));d=g.Qc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=fba(b.url))&&d.push([new eh([e,1],a(b.depth,c))]);d.push([]);return g.Qc(d,function(l){return tba(c,l)})};
tba=function(a,b){g.fh(b,function(e){return 0<=e.depth});
var c=gh(b,function(e,f){return Math.max(e,f.depth)},-1),d=xaa(c+2);
d[0]=a;g.Ab(b,function(e){return d[e.depth+1]=e.i});
return d};
vba=function(){var a=uba();return g.Qc(a,function(b){return gg(b)})};
hh=function(){this.l=new ah;this.i=Xg()?new Yg:new Wg};
wba=function(){ih();var a=Zg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Zg.setInterval&&"function"===typeof Zg.clearInterval&&"function"===typeof Zg.setTimeout&&"function"===typeof Zg.clearTimeout)};
jh=function(a){ih();var b=Jg()||Zg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
kh=function(){ih();return vba()};
lh=function(){};
ih=function(){return lh.getInstance().getContext()};
mh=function(a){(0,g.If)(this,a,0,-1,null,null)};
xba=function(a){this.u=a;this.i=-1;this.l=this.B=0};
nh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.i)return b.apply(null,g.la(d));try{return a.i=a.u.i.now(),b.apply(null,g.la(d))}finally{a.B+=a.u.i.now()-a.i,a.i=-1,a.l+=1}}};
yba=function(a,b){this.l=a;this.u=b;this.i=new xba(a)};
zba=function(){};
qh=function(){this.u=void 0;this.l=this.I=0;this.C=-1;this.featureSet=new Rg;Sg(this.featureSet,"mv",oh).i=!0;Sg(this.featureSet,"omid",ph);Sg(this.featureSet,"epoh",ph).i=!0;Sg(this.featureSet,"epph",ph).i=!0;Sg(this.featureSet,"umt",ph).i=!0;Sg(this.featureSet,"phel",ph).i=!0;Sg(this.featureSet,"phell",ph).i=!0;Sg(this.featureSet,"oseid",Aba).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new Pg);a.i.sloi.i=!0;Sg(this.featureSet,"xdi",ph).i=!0;Sg(this.featureSet,"amp",ph).i=!0;Sg(this.featureSet,
"prf",ph).i=!0;Sg(this.featureSet,"gtx",ph).i=!0;Sg(this.featureSet,"mvp_lv",ph).i=!0;Sg(this.featureSet,"vcm",ph).i=!0;Sg(this.featureSet,"dov",oh).i=!0;Sg(this.featureSet,"ssmol",ph).i=!0;Sg(this.featureSet,"zocl",ph).i=!0;this.i=new yba(ih(),this.featureSet);this.B=!1;this.flags=new zba};
Bba=function(){var a="https:";Zg&&Zg.location&&"http:"===Zg.location.protocol&&(a="http:");this.l=a;this.i=.01;this.u=Math.random()};
rh=function(a,b,c,d,e){if((d?a.u:Math.random())<(e||a.i))try{if(c instanceof eg)var f=c;else f=new eg,Yf(c,function(l,m){var n=f,p=n.B++,r=fg(m,l);n.i.push(p);n.l[p]=r});
var h=kba(f,a.l,"/pagead/gen_204?id="+b+"&");h&&jh(h)}catch(l){}};
sh=function(){var a=g.A.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Sa()};
th=function(){var a=void 0===a?g.A:a;return(a=a.performance)&&a.now?a.now():null};
Cba=function(a,b){var c=th()||sh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
vh=function(){var a=Jg();this.events=[];this.l=a||g.A;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.i=uh()||(null!=b?b:1>Math.random())};
Ah=function(a){a&&wh&&uh()&&(wh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),wh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Dh=function(){var a=Bh;this.i=Ch;this.kD="jserror";this.gA=!0;this.Vw=null;this.l=this.Xy;this.gb=void 0===a?null:a};
Gh=function(a,b,c,d){return nh(qh.getInstance().i.i,function(){try{if(a.gb&&a.gb.i){var e=a.gb.start(b.toString(),3);var f=c();a.gb.end(e)}else f=c()}catch(m){var h=a.gA;try{Ah(e);var l=new Eh(Fh(m));h=a.l(b,l,void 0,d)}catch(n){a.Xy(217,n)}if(!h)throw m;}return f})()};
Ih=function(a,b,c){var d=Hh;return nh(qh.getInstance().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Gh(d,a,function(){return b.apply(void 0,f)},c)})};
Fh=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};
Eh=function(a){Qf.call(this,Error(a),{message:a})};
Jh=function(){var a=Jg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Bh.disable())};
Dba=function(a){Hh.Vw=function(b){g.Ab(a,function(c){c(b)})}};
Kh=function(a,b){return Gh(Hh,a,b,void 0)};
Lh=function(a,b){return Ih(a,b,void 0)};
Mh=function(a,b,c,d){Hh.Xy(a,b,c,d)};
Nh=function(){return Date.now()-Eba};
Fba=function(){var a=qh.getInstance().u,b=0<=Oh?Nh()-Oh:-1,c=Ph?Nh()-Qh:-1,d=0<=Rh?Nh()-Rh:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Mh(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};
Sh=function(a,b,c){var d=new $f(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c};
Th=function(a,b,c,d,e,f,h){this.B=a;this.u=b;this.I=c;this.i=d;this.C=e;this.l=f;this.J=h};
Uh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Xf(a)&&(c=a,b=d);return{Of:c,level:b}};
Vh=function(a){var b=a!==a.top,c=a.top===Uh(a).Of,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),Gb(Gba,function(h){return"function"===typeof f[h]})||(e=1));
return{bi:f,compatibility:e,tQ:d}};
Hba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Wh=function(a,b,c,d){var e=void 0===e?!1:e;c=Ih(d,c,void 0);Tf(a,b,c,{capture:e})};
Xh=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Yh=function(a){return new $f(a.top,a.right,a.bottom,a.left)};
Zh=function(a){var b=a.top||0,c=a.left||0;return new $f(b,c+(a.width||0),b+(a.height||0),c)};
$h=function(a){return null!=a&&0<=a&&1>=a};
Iba=function(){var a=g.Wc;return a?ai("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Bc(a,b)})||Bc(a,"OMI/")&&!Bc(a,"XiaoMi/")?!0:Bc(a,"Presto")&&Bc(a,"Linux")&&!Bc(a,"X11")&&!Bc(a,"Android")&&!Bc(a,"Mobi"):!1};
bi=function(){this.u=!Xf(Zg.top);this.isMobileDevice=Vf()||Wf();var a=bh();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Cd(a[a.length-1].url)||"":"";this.i=new $f(0,0,0,0);this.B=new g.ke(0,0);this.C=new g.ke(0,0);this.J=new $f(0,0,0,0);this.I=0;this.L=!1;this.l=!(!Zg||!Vh(Zg).bi);this.update(Zg)};
ci=function(a,b){b&&b.screen&&(a.B=new g.ke(b.screen.width,b.screen.height))};
di=function(a,b){var c=a.i?new g.ke(ag(a.i),a.i.getHeight()):new g.ke(0,0);var d=b;d=void 0===d?Zg:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.ke(f,e)}catch(x){w=new g.ke(-12245933,-12245933)}a.C=w};
ei=function(){var a=bi.getInstance();if(0<a.I||a.L)return!0;a=ih().l.isVisible();var b=0===$g(Ig);return a||b};
fi=function(a){this.u=a;this.l=0;this.i=null};
gi=function(a,b,c){this.Of=a;this.ma=void 0===c?"na":c;this.B=[];this.be=!1;this.u=new Sh(-1,!0,this);this.i=this;this.J=b;this.W=this.la=this.L=!1;this.ea="uk";this.ca=!1;this.C=!0};
ii=function(a,b,c){if(!a.W||(void 0===c?0:c))a.W=!0,a.ea=b,a.J=0,a.i!=a||hi(a)};
ji=function(a,b){g.fb(a.B,b)||(a.B.push(b),b.Ho(a.i),b.vl(a.u),b.uj()&&(a.L=!0))};
ki=function(a){a=a.i;a.bB();a.aB();var b=bi.getInstance();b.J=Lg(!1,a.Of,b.isMobileDevice);a.XH();a.u.i=a.OD()};
li=function(a){a.L=a.B.length?ai(a.B,function(b){return b.uj()}):!1};
mi=function(a){var b=g.ob(a.B);g.Ab(b,function(c){c.vl(a.u)})};
hi=function(a){var b=g.ob(a.B);g.Ab(b,function(c){c.Ho(a.i)});
a.i!=a||mi(a)};
ni=function(a,b,c,d){this.element=a;this.i=new $f(0,0,0,0);this.Y=null;this.B=new $f(0,0,0,0);this.l=b;this.featureSet=c;this.ca=d;this.X=!1;this.timestamp=-1;this.J=new Th(b.u,this.i,new $f(0,0,0,0),0,0,Nh(),0)};
oi=function(a){this.C=!1;this.i=a;this.B=g.Ia};
pi=function(a,b,c){this.u=void 0===c?0:c;this.l=a;this.i=null==b?"":b};
Jba=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
qi=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.l<b.l?!0:a.l>b.l?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
ri=function(){this.u=0;this.i=[];this.l=!1};
Kba=function(a,b){(0,g.Ab)(b.i,function(c){a.add(c.l,c.i,Jba(c))})};
si=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Yf(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
ti=function(a){var b=Lba;a.l&&(g.xb(a.i,function(c,d){return qi(d,c)?1:qi(c,d)?-1:0}),a.l=!1);
return gh(a.i,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Lba=function(a){var b=a.l;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Ai=function(a){var b=void 0===b?!0:b;this.i=new ri;void 0!==a&&Kba(this.i,a);b&&this.i.add("v",zi,-16)};
Mba=function(a){var b=[],c=[];g.Cb(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)};
Bi=function(){if(zi&&"unreleased"!==zi)return zi};
Ci=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Bi();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);jh(a)};
Di=function(){this.i=0};
g.Ei=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Fi=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ma(d)?g.Fi.apply(null,d):g.Ei(d)}};
g.E=function(){this.Zg=this.Zg;this.Eg=this.Eg};
g.I=function(a,b){g.Gi(a,g.Qa(g.Ei,b))};
g.Gi=function(a,b){a.Zg?b():(a.Eg||(a.Eg=[]),a.Eg.push(b))};
Nba=function(a,b,c){(0,g.Ab)(a.u,function(d){var e=a.i;if(!d.i&&(d.u(b,c),d.B())){d.i=!0;var f=d.l(),h=new ri;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.C);d=Di.getInstance();h.add("i",d.i++);h.add("adk",e);si(h,f);e=new Ai(h);Ci(e)}})};
Hi=function(){this.l=this.u=this.B=this.i=0};
Ii=function(a){this.l=a=void 0===a?Oba:a;this.i=g.Qc(this.l,function(){return new Hi})};
Ki=function(a,b){return Ji(a,function(c){return c.i},void 0===b?!0:b)};
Mi=function(a,b){return Li(a,b,function(c){return c.i})};
Ni=function(a,b){return Ji(a,function(c){return c.u},void 0===b?!0:b)};
Oi=function(a,b){return Li(a,b,function(c){return c.u})};
Pi=function(a,b){return Li(a,b,function(c){return c.l})};
Qi=function(a){g.Ab(a.i,function(b){b.l=0})};
Ji=function(a,b,c){a=g.Qc(a.i,function(d){return b(d)});
return c?a:Pba(a)};
Li=function(a,b,c){var d=g.db(a.l,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
Pba=function(a){return g.Qc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Ri=function(){this.l=new Ii;this.ma=new Hi;this.Y=this.J=-1;this.Ha=1E3;this.Ja=new Ii([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ia=this.ca=-1};
Si=function(a,b){return Ni(a.l,void 0===b?!0:b)};
Ui=function(a,b){var c=Ti(b);return 0===c?0:Ti(a)/c};
Ti=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Qba=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.Oe(a)||a){var d=oe(a),e=d&&Ee(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Rba=function(a,b,c){if(!a||!b)return!1;b=bg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Jg();Xf(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Hba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=oe(c))&&b.defaultView&&b.defaultView.frameElement)&&Qba(b,a);d=a===c;a=!d&&a&&Ue(a,function(e){return e===c});
return!(b||d||a)};
Sba=function(a,b,c,d){return bi.getInstance().u?!1:0>=ag(a)||0>=a.getHeight()?!0:c&&d?Kh(208,function(){return Rba(a,b,c)}):!1};
Vi=function(a,b,c){g.E.call(this);this.position=Tba.clone();this.uu=this.Nt();this.Vy=-2;this.IQ=Date.now();this.fH=-1;this.lastUpdateTime=b;this.ju=null;this.vt=!1;this.Du=null;this.opacity=-1;this.requestSource=c;this.pH=this.Zy=g.Ia;this.kg=new qba;this.kg.Bl=a;this.kg.i=a;this.Oo=!1;this.Qm={fz:null,dz:null};this.SG=!0;this.ds=null;this.Jo=this.XL=!1;qh.getInstance().I++;this.Me=this.ey();this.eH=-1;this.Nc=null;this.UL=!1;a=this.featureSet=new Rg;Sg(a,"od",Uba);Sg(a,"opac",ph).i=!0;Sg(a,"sbeos",
ph).i=!0;Sg(a,"prf",ph).i=!0;Sg(a,"mwt",ph).i=!0;Sg(a,"iogeo",ph);(a=this.kg.Bl)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Vba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+xd()):a.getAttribute("data-"+xd()))&&(bi.getInstance().l=!0);1==this.requestSource?Tg(this.featureSet,"od",1):Tg(this.featureSet,"od",0)};
Wi=function(a,b){if(b!=a.Jo){a.Jo=b;var c=bi.getInstance();b?c.I++:0<c.I&&c.I--}};
Xi=function(a,b){if(a.Nc){if(b.getName()===a.Nc.getName())return;a.Nc.dispose();a.Nc=null}var c=b.create(a.kg.i,a.featureSet,a.uj());if(c=null!=c&&c.Yv()?c:null)a.Nc=c};
Yi=function(a,b,c){if(!a.ju||-1==a.lastUpdateTime||-1===b.l||-1===a.ju.l)return 0;a=b.l-a.ju.l;return a>c?0:a};
Wba=function(a,b,c){if(a.Nc){a.Nc.Rk();var d=a.Nc.J,e=d.B,f=e.i;if(null!=d.I){var h=d.u;a.Du=new g.ie(h.left-f.left,h.top-f.top)}f=a.fv()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.KD(d);a.ju=d;a.wa(f,b,c,!1,h,e,d.J)}};
Xba=function(a){if(a.vt&&a.ds){var b=1==Ug(a.featureSet,"od"),c=bi.getInstance().i,d=a.ds,e=a.Nc?a.Nc.getName():"ns",f=new g.ke(ag(c),c.getHeight());c=a.fv();a={wQ:e,Du:a.Du,dR:f,fv:c,zc:a.Me.zc,bR:b};if(b=d.l){b.Rk();e=b.J;f=e.B.i;var h=null,l=null;null!=e.I&&f&&(h=e.u,h=new g.ie(h.left-f.left,h.top-f.top),l=new g.ke(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={wQ:b.getName(),Du:h,dR:l,fv:c,bR:!1,zc:e}}else c=null;c&&Nba(d,a,c)}};
Yba=function(a,b,c){b&&(a.Zy=b);c&&(a.pH=c)};
Zi=function(){};
aj=function(a){if(a instanceof Zi)return a;if("function"==typeof a.Mj)return a.Mj(!1);if(g.Ma(a)){var b=0,c=new Zi;c.next=function(){for(;;){if(b>=a.length)throw $i;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.bj=function(a,b,c){if(g.Ma(a))try{g.Ab(a,b,c)}catch(d){if(d!==$i)throw d;}else{a=aj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==$i)throw d;}}};
Zba=function(a){if(g.Ma(a))return g.ob(a);a=aj(a);var b=[];g.bj(a,function(c){b.push(c)});
return b};
$ba=function(){this.B=this.i=this.u=this.l=this.C=0};
aca=function(a){var b={};b=(b.ptlt=g.Sa()-a.C,b);var c=a.l;c&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
cj=function(){Mg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
dj=function(a){return $h(a.volume)&&.1<=a.volume};
bca=function(){var a={};this.l=(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.i={};for(var b in this.l)0<this.l[b][1]&&(this.i[b]=0);this.u=0};
ej=function(a,b){var c=a.l[b],d=c[1];a.u+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
cca=function(a){var b=g.Kb(a.l),c=0,d;for(d in a.i)g.fb(b,d)&&1==a.i[d]&&(c+=a.l[d][1],a.i[d]=2);return c};
dca=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.l[c][1]}return b};
fj=function(){this.i=this.l=0};
gj=function(){Ri.call(this);this.u=new Hi;this.la=this.W=this.ea=0;this.L=-1;this.La=new Hi;this.C=new Hi;this.i=new Ii;this.I=this.B=-1;this.X=new Hi;this.Ha=2E3;this.ga=new fj;this.Ca=new fj;this.za=new fj};
hj=function(a,b,c){var d=a.la;Ph||c||-1==a.L||(d+=b-a.L);return d};
eca=function(){this.i=!1};
ij=function(a,b){this.i=!1;this.l=a;this.L=b;this.u=0};
kj=function(a,b){if(a.B(b)){var c=jj(a.L,a.l,b);a.u|=c;return 0==c}return!1};
lj=function(a,b,c,d){ni.call(this,a,b,c,d)};
mj=function(a,b,c){ni.call(this,null,a,b,c);this.I=a.isActive();this.C=0};
nj=function(a){return[a.top,a.left,a.bottom,a.right]};
oj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Vi.call(this,b,c,d);this.Cx=0;this.Pe={};this.Ee=new bca;this.CH={};this.vf="";this.fp=null;this.La=!1;this.i=[];this.on=e;this.I=f;this.B=null;this.u=-1;this.la=this.W=void 0;this.Y=this.X=0;this.ia=-1;this.Ha=this.Ca=!1;this.ea=this.J=this.l=this.Hp=this.Ja=0;new Ii;this.ga=this.ma=0;this.za=-1;this.ye=0;this.L=g.Ia;this.ca=[this.Nt()];this.Pa=2;this.Nn={};this.Nn.pause="p";this.Nn.resume="r";this.Nn.skip="s";this.Nn.mute="m";this.Nn.unmute=
"um";this.Nn.exitfullscreen="ef";this.C=null};
pj=function(a){0!=a.ye&&(a.ye=3)};
qj=function(a){return void 0===a?a:Number(a)?Xh(a,3):0};
rj=function(a,b){return a.ca[null!=b&&b<a.ca.length?b:a.ca.length-1]};
sj=function(a){var b=!!Ug(qh.getInstance().featureSet,"umt");return a.W||!b&&!a.la?0:1};
fca=function(a,b){if(2==a.ye)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.u/3)?0:c);var d=a.L(a)||{};d=void 0!==d.currentTime?d.currentTime:a.X;var e=d-a.X,f=0;0<=e?(a.Y+=c,a.ga+=Math.max(c-e,0),f=Math.min(e,a.Y)):a.ma+=Math.abs(e);0!=e&&(a.Y=0);-1==a.za&&0<e&&(a.za=0<=Rh?Nh()-Rh:-1);a.X=d;return f};
gca=function(a,b){ai(a.I,function(c){return c.l==b.l})||a.I.push(b)};
tj=function(a,b,c){return 15E3<=b?!0:a.Ca?(void 0===c?0:c)?!0:0<a.u?b>=a.u/2:0<a.ia?b>=a.ia:!1:!1};
hca=function(a){var b=Xh(a.Me.zc,2),c=a.Ee.u,d=a.Me,e=rj(a),f=qj(e.B),h=qj(e.I),l=qj(d.volume),m=Xh(e.J,2),n=Xh(e.Y,2),p=Xh(d.zc,2),r=Xh(e.ca,2),t=Xh(e.ia,2);d=Xh(d.Ag,2);a=a.ol().clone();a.round();e=Si(e,!1);return{cR:b,ir:c,vu:f,qu:h,hq:l,wu:m,ru:n,zc:p,xu:r,tu:t,Ag:d,position:a,Cu:e}};
vj=function(a,b){uj(a.i,b,function(){return{cR:0,ir:void 0,vu:-1,qu:-1,hq:-1,wu:-1,ru:-1,zc:-1,xu:-1,tu:-1,Ag:-1,position:void 0,Cu:[]}});
a.i[b]=hca(a)};
uj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
yj=function(a,b,c){var d=a.CH[b];if(null!=d)return d;d=ica(a,b);var e=Nb(wj,function(f){return f==b});
a=xj(a,d,d,c,jca[wj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
zj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
xj=function(a,b,c,d,e){if(a.Oo)return{"if":0};var f=a.ol().clone();f.round();var h=bi.getInstance(),l=qh.getInstance(),m=a.og(),n=a.Nc?a.Nc.getName():"ns",p={};p["if"]=h.u?1:void 0;p.sdk=a.B?a.B:void 0;p.t=a.IQ;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.Nc?a.Nc.Y:null)f=f.clone(),f.round(),p.cp=nj(f);p.tos=Ki(m.l,!1);p.mtos=Si(m);p.mcvt=m.ma.u;p.ps=void 0;p.vht=hj(m,Nh(),2==a.ye);p.mut=m.La.u;p.a=qj(a.Me.volume);p.mv=qj(m.I);p.fs=a.Jo?1:0;p.ft=m.X.i;p.at=m.C.i;p.as=.1<=m.B?1:0;p.atos=Ki(m.i);p.ssb=
Ki(m.Ja,!1);p.amtos=Ni(m.i,!1);p.uac=a.Ja;p.vpt=m.u.i;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=tj(a,m.u.i,!0)?1:0;p.efpf=a.Pa;if("gsv"==n||"nis"==n)n=a.Nc,0<n.C&&(p.nnut=n.C);p.tcm=sj(a);p.nmt=a.ma;p.bt=a.ga;p.pst=a.za;p.vpaid=a.W;p.dur=a.u;p.vmtime=a.X;p.is=a.Ee.u;1<=a.i.length&&(p.i0=a.i[0].ir,p.a0=[a.i[0].hq],p.c0=[a.i[0].zc],p.ss0=[a.i[0].Ag],n=a.i[0].position,p.p0=n?nj(n):void 0);2<=a.i.length&&(p.i1=a.i[1].ir,p.a1=zj(a.i[1].vu,a.i[1].hq,a.i[1].qu),p.c1=zj(a.i[1].wu,a.i[1].zc,a.i[1].ru),
p.ss1=zj(a.i[1].xu,a.i[1].Ag,a.i[1].tu),n=a.i[1].position,p.p1=n?nj(n):void 0,p.mtos1=a.i[1].Cu);3<=a.i.length&&(p.i2=a.i[2].ir,p.a2=zj(a.i[2].vu,a.i[2].hq,a.i[2].qu),p.c2=zj(a.i[2].wu,a.i[2].zc,a.i[2].ru),p.ss2=zj(a.i[2].xu,a.i[2].Ag,a.i[2].tu),n=a.i[2].position,p.p2=n?nj(n):void 0,p.mtos2=a.i[2].Cu);4<=a.i.length&&(p.i3=a.i[3].ir,p.a3=zj(a.i[3].vu,a.i[3].hq,a.i[3].qu),p.c3=zj(a.i[3].wu,a.i[3].zc,a.i[3].ru),p.ss3=zj(a.i[3].xu,a.i[3].Ag,a.i[3].tu),n=a.i[3].position,p.p3=n?nj(n):void 0,p.mtos3=a.i[3].Cu);
p.cs=dca(a.Ee);b&&(p.ic=cca(a.Ee),p.dvpt=m.u.l,p.dvs=Pi(m.l,.5),p.dfvs=Pi(m.l,1),p.davs=Pi(m.i,.5),p.dafvs=Pi(m.i,1),c&&(m.u.l=0,Qi(m.l),Qi(m.i)),a.ln()&&(p.dtos=m.ea,p.dav=m.W,p.dtoss=a.Cx+1,c&&(m.ea=0,m.W=0,a.Cx++)),p.dat=m.C.l,p.dft=m.X.l,c&&(m.C.l=0,m.X.l=0));p.ps=[h.C.width,h.C.height];p.bs=[ag(h.i),h.i.getHeight()];p.scs=[h.B.width,h.B.height];p.dom=h.domain;a.Hp&&(p.vds=a.Hp);if(0<a.I.length||a.on)b=g.ob(a.I),a.on&&b.push(a.on),p.pings=g.Qc(b,function(r){return r.toString()});
b=g.Qc(g.Ne(a.I,function(r){return r.C()}),function(r){return r.getId()});
uaa(b);p.ces=b;a.l&&(p.vmer=a.l);a.J&&(p.vmmk=a.J);a.ea&&(p.vmiec=a.ea);p.avms=a.Nc?a.Nc.getName():"ns";a.Nc&&g.Yb(p,a.Nc.ll());d?(p.c=Xh(a.Me.zc,2),p.ss=Xh(a.Me.Ag,2)):p.tth=Nh()-Aj;p.mc=Xh(m.Y,2);p.nc=Xh(m.J,2);p.mv=qj(m.I);p.nv=qj(m.B);p.lte=Xh(a.Vy,2);d=rj(a,e);Si(m);p.qmtos=Si(d);p.qnc=Xh(d.J,2);p.qmv=qj(d.I);p.qnv=qj(d.B);p.qas=.1<=d.B?1:0;p.qi=a.vf;p.avms||(p.avms="geo");p.psm=m.ga.i;p.psv=m.ga.getValue();p.psfv=m.Ca.getValue();p.psa=m.za.getValue();l=pba(l.featureSet);l.length&&(p.veid=l);
a.C&&g.Yb(p,aca(a.C));return p};
ica=function(a,b){if(g.fb(kca,b))return!0;var c=a.Pe[b];return void 0!==c?(a.Pe[b]=!0,!c):!1};
mca=function(){this.i={};var a=Ee();Bj(this,a,document);var b=lca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Bj(this,c,c.document);Bj(this,a.top,a.top.document)}}catch(d){}};
lca=function(){var a=document.documentElement;try{if(!Xf(Ee().top))return"2";var b=[],c=Ee(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"}};
Bj=function(a,b,c){Wh(c,"mousedown",function(){return nca(a)},301);
Wh(b,"scroll",function(){return oca(a)},302);
Wh(c,"touchmove",function(){return pca(a)},303);
Wh(c,"mousemove",function(){return qca(a)},304);
Wh(c,"keydown",function(){return rca(a)},305)};
nca=function(a){g.Cb(a.i,function(b){1E5<b.u||++b.u})};
oca=function(a){g.Cb(a.i,function(b){1E5<b.i||++b.i})};
pca=function(a){g.Cb(a.i,function(b){1E5<b.i||++b.i})};
rca=function(a){g.Cb(a.i,function(b){1E5<b.l||++b.l})};
qca=function(a){g.Cb(a.i,function(b){1E5<b.B||++b.B})};
g.Dj=function(a){var b=[];Cj(new sca,a,b);return b.join("")};
sca=function(){};
Cj=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),Cj(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),Ej(d,c),c.push(":"),Cj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ej(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);}}};
Ej=function(a,b){b.push('"',a.replace(tca,function(c){var d=Fj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Fj[c]=d);return d}),'"')};
Gj=function(){this.i=[];this.l=[]};
Hj=function(a,b){return g.cb(a.i,function(c){return c.vf==b})};
Kj=function(a,b){return b?g.cb(a.i,function(c){return c.kg.Bl==b}):null};
uca=function(a,b){return g.cb(a.l,function(c){return 2==c.Ui()&&c.vf==b})};
Mj=function(){var a=Lj;return 0==a.i.length?a.l:0==a.l.length?a.i:g.nb(a.l,a.i)};
Nj=function(a,b){var c=1==b.Ui()?a.i:a.l,d=bb(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Nc&&b.Nc.Mp(),b.dispose(),!0):!1};
vca=function(a){var b=Lj;if(Nj(b,a)){switch(a.Ui()){case 0:var c=function(){return null};
case 2:c=function(){return uca(b,a.vf)};
break;case 1:c=function(){return Hj(b,a.vf)}}for(var d=c();d;d=c())Nj(b,d)}};
wca=function(a,b){var c=Lj,d=g.Ne(a,(void 0===b?0:b)?function(e){return!Hj(c,e.vf)}:function(e){return!Kj(c,e.kg.Bl)});
c.i.push.apply(c.i,g.la(d))};
Oj=function(a){var b=Lj,c=[];g.Ab(a,function(d){ai(b.i,function(e){return e.kg.Bl===d.kg.Bl&&e.vf===d.vf})||(b.i.push(d),c.push(d))})};
Pj=function(){this.i=this.l=null};
Qj=function(a,b){function c(d,e){b(d,e)}
if(null==a.l)return!1;a.i=g.cb(a.l,function(d){return null!=d&&d.dB()});
a.i&&(a.i.init(c)?ki(a.i.i):b(a.i.i.Ao(),a.i));return null!=a.i};
Rj=function(a){a=xca(a);oi.call(this,a.length?a[a.length-1]:new gi(Zg,0));this.u=a;this.l=null};
xca=function(a){if(!a.length)return[];a=(0,g.Ne)(a,function(c){return null!=c&&c.cB()});
for(var b=1;b<a.length;b++)ji(a[b-1],a[b]);return a};
Sj=function(a,b,c,d){ni.call(this,a,b,c,d);this.W=this.L=this.C=this.I=this.u=null};
Tj=function(a){return a.u&&a.u.takeRecords?a.u.takeRecords():[]};
zca=function(a){if(!a.element)return!1;var b=a.element,c=a.l.i.Of,d=qh.getInstance().i.i;a.u=new c.IntersectionObserver(nh(d,function(e){return Uj(a,e)}),yca);
d=nh(d,function(){a.u.unobserve(b);a.u.observe(b);Uj(a,Tj(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.C=new g.A.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.u.observe(b);Uj(a,Tj(a));return!0};
Uj=function(a,b){try{if(b.length){a.L||(a.L=Nh());var c=Aca(b),d=yg(a.element,a.l.i.Of),e=d.x,f=d.y;a.i=new $f(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Yh(c.intersectionRect);a.B=bg(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Mp(),Mh(299,l)}};
Aca=function(a){return gh(a,function(b,c){return b.time>c.time?b:c},a[0])};
Vj=function(a){a=void 0===a?Zg:a;oi.call(this,new gi(a,2))};
Xj=function(){var a=Wj();gi.call(this,Zg.top,a,"geo")};
Wj=function(){qh.getInstance();var a=bi.getInstance();return a.u||a.l?0:2};
Yj=function(){};
Zj=function(){this.done=!1;this.i={rK:0,oC:0,T3:0,hD:0,Cy:-1,IK:0,HK:0,JK:0};this.C=null;this.I=!1;this.u=null;this.J=0;this.l=new fi(this)};
bk=function(){var a=ak;a.I||(a.I=!0,Bca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.B.apply(a,g.la(c))}),a.B())};
Cca=function(){Yj.getInstance();var a=Pj.getInstance();null!=a.i&&a.i.i?ki(a.i.i):bi.getInstance().update(Zg)};
ck=function(a,b,c){if(!a.done&&(a.l.cancel(),0!=b.length)){a.u=null;try{Cca();var d=Nh(),e=qh.getInstance();e.C=d;if(null!=Pj.getInstance().i)for(e=0;e<b.length;e++)Wba(b[e],d,c);else rh(Ch,"",{strategy_not_selected:1,bin:e.l},!0,void 0);for(d=0;d<b.length;d++)Xba(b[d]);++a.i.hD;Dca()}finally{c?g.Ab(b,function(f){f.Me.zc=0}):a.l.schedule()}}};
Bca=function(a,b){if(!a.C){var c=Ih(142,b,void 0);ih();var d;Ig.visibilityState?d="visibilitychange":Ig.mozVisibilityState?d="mozvisibilitychange":Ig.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Tf(Ig,d,c,{capture:!1})&&(a.C=c)}};
dk=function(){var a=Pj.getInstance();if(null!=a.i){var b=a.i;g.Ab(Mj(),function(c){return Xi(c,b)})}};
Dca=function(){var a=qh.getInstance();Ug(a.featureSet,"llp")};
ek=function(a,b){var c=a.J;Ph&&(c+=b-Qh);return c};
Eca=function(a){var b=ak;a=void 0===a?function(){return{}}:a;
Hh.kD="av-js";Ch.i=.01;Dba([function(c){var d=qh.getInstance(),e={};e=(e.bin=d.l,e.type="error",e);d=Vg(d.featureSet);if(!b.u){var f=Zg.document,h=0<=Oh?Nh()-Oh:-1,l=Nh();-1==b.i.Cy&&(h=l);var m=bi.getInstance(),n=qh.getInstance(),p=Vg(n.featureSet),r=Mj();try{if(0<r.length){var t=m.i;t&&(p.bs=[ag(t),t.getHeight()]);var w=m.C;w&&(p.ps=[w.width,w.height]);Zg.screen&&(p.scs=[Zg.screen.width,Zg.screen.height])}else p.url=encodeURIComponent(Zg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Oh;p.bin=n.l;void 0!==Zg.google_osd_load_pub_page_exp&&(p.olpp=Zg.google_osd_load_pub_page_exp);p.deb=[1,b.i.rK,b.i.oC,b.i.hD,b.i.Cy,0,b.l.l,b.i.IK,b.i.HK,b.i.JK].join("-");p.tvt=ek(b,l);m.l&&(p.inapp=1);if(null!==Zg&&Zg!=Zg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Zg.location.href.substring(0,512)));var x=m.J;p.is=[ag(x),x.getHeight()]}}catch(F){p.error=1}b.u=p}t=g.Vb(b.u);w=qh.getInstance().i;if(1==Ug(w.u,"prf")){x=new mh;f=w.i;h=0;-1<f.i&&(h=f.u.i.now()-f.i);x=Mf(x,
1,f.B+h);f=w.i;x=Mf(x,5,-1<f.i?f.l+1:f.l);x=Mf(x,2,w.l.i.u());x=Mf(x,3,w.l.i.l());x=Mf(x,4,w.l.i.i());w={};f=new g.wf;var y=void 0===y?0:y;h=g.Jf(x,1);h=null==h?h:+h;y=null==h?y:h;0!==y&&g.Cf(f,1,y);y=Kf(x,2);0!==y&&g.Bf(f,2,y);y=Kf(x,3);0!==y&&g.Bf(f,3,y);y=Kf(x,4);0!==y&&g.Bf(f,4,y);y=Kf(x,5);0!==y&&g.yf(f,5,y);y=g.xf(f);y=(w.pf=g.sf(y),w)}else y={};g.Yb(t,y);g.Yb(c,e,d,t,a());if(e=Bi())d={},g.Yb(c,(d.v=encodeURIComponent(e),d))}])};
Fca=function(){var a=fk||Zg;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
gk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
ik=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?hk(c,a):c}}};
jk=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 hk(f,b,c)}};
kk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
lk=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}};
hk=function(a,b,c){return void 0===c||c?g.Ne(a,function(d,e){return g.fb(b,e)}):g.Qc(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)})};
ok=function(a,b){var c={sv:"889",cb:"j"};c.nas=Lj.i.length;c.msg=a;if(void 0!==b){var d=mk(b);d&&(c.e=nk[d])}return c};
pk=function(a){return pc(a,"custom_metric_viewable")};
mk=function(a){var b=pk(a)?"custom_metric_viewable":a.toLowerCase();return Nb(wj,function(c){return c==b})};
Gca=function(){this.i=void 0;this.l=!1;this.u=0;this.B=-1;this.C="tos"};
Ica=function(a){try{var b=a.split(",");return b.length>g.Kb(Hca).length?null:gh(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===qk[e[0]]||!qk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Jca=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?Oi(b.i,a.i):Oi(b.l,a.i);case "tos":return a.l?Mi(b.i,a.i):Mi(b.l,a.i)}return 0};
rk=function(a,b,c,d){ij.call(this,b,d);this.I=a;this.J=c};
sk=function(a){ij.call(this,"fully_viewable_audible_half_duration_impression",a)};
tk=function(a,b){ij.call(this,a,b)};
uk=function(){this.l=this.B=this.I=this.C=this.u=this.i=""};
Kca=function(){};
vk=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.Yb(f,a);void 0!==c&&g.Yb(f,c);a=ti(si(new ri,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
wk=function(){};
xk=function(a,b,c){mj.call(this,a,b,c)};
yk=function(a){a=void 0===a?Zg:a;oi.call(this,new gi(a,2))};
zk=function(a,b,c){mj.call(this,a,b,c)};
Ak=function(a){a=void 0===a?Zg:a;oi.call(this,new gi(a,2))};
Bk=function(){gi.call(this,Zg,2,"mraid");this.ia=0;this.X=this.Y=!1;this.I=null;this.l=Vh(this.Of);this.u.i=new $f(0,0,0,0);this.ga=!1};
Ck=function(a,b,c){a.Rl("addEventListener",b,c)};
Fk=function(a){qh.getInstance().B=!!a.Rl("isViewable");Ck(a,"viewableChange",Lca);"loading"===a.Rl("getState")?Ck(a,"ready",Dk):Ek(a)};
Ek=function(a){"string"===typeof a.l.bi.AFMA_LIDAR?(a.Y=!0,Mca(a)):(a.l.compatibility=3,a.I="nc",ii(a,"w"))};
Mca=function(a){a.X=!1;var b=1==Ug(qh.getInstance().featureSet,"rmmt"),c=!!a.Rl("isViewable");(b?!c:1)&&ih().setTimeout(Lh(524,function(){a.X||(Gk(a),Mh(540,Error()),a.I="mt",ii(a,"w"))}),500);
Nca(a);Ck(a,a.l.bi.AFMA_LIDAR,Hk)};
Nca=function(a){var b=1==Ug(qh.getInstance().featureSet,"sneio"),c=void 0!==a.l.bi.AFMA_LIDAR_EXP_1,d=void 0!==a.l.bi.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.l.bi.AFMA_LIDAR_EXP_2=!0);c&&(a.l.bi.AFMA_LIDAR_EXP_1=!b)};
Gk=function(a){a.Rl("removeEventListener",a.l.bi.AFMA_LIDAR,Hk);a.Y=!1};
Ik=function(a,b){if("loading"===a.Rl("getState"))return new g.ke(-1,-1);var c=a.Rl(b);if(!c)return new g.ke(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.ke(-1,-1):new g.ke(d,c)};
Dk=function(){try{var a=Bk.getInstance();a.Rl("removeEventListener","ready",Dk);Ek(a)}catch(b){Mh(541,b)}};
Hk=function(a,b){try{var c=Bk.getInstance();c.X=!0;var d=a?new $f(a.y,a.x+a.width,a.y+a.height,a.x):new $f(0,0,0,0);var e=Nh(),f=ei();var h=new Sh(e,f,c);h.i=d;h.volume=b;c.vl(h)}catch(l){Mh(542,l)}};
Lca=function(a){var b=qh.getInstance(),c=Bk.getInstance();a&&!b.B&&(b.B=!0,c.ga=!0,c.I&&ii(c,"w",!0))};
Jk=function(){this.be=!1;this.i=null;this.u=new wk;this.l=null;var a={};this.L=(a.start=this.KL,a.firstquartile=this.FL,a.midpoint=this.HL,a.thirdquartile=this.LL,a.complete=this.DL,a.pause=this.yz,a.resume=this.GG,a.skip=this.JL,a.viewable_impression=this.ql,a.mute=this.Ep,a.unmute=this.Ep,a.fullscreen=this.GL,a.exitfullscreen=this.EL,a.fully_viewable_audible_half_duration_impression=this.ql,a.measurable_impression=this.ql,a.abandon=this.yz,a.engagedview=this.ql,a.impression=this.ql,a.creativeview=
this.ql,a.progress=this.Ep,a.custom_metric_viewable=this.ql,a.bufferstart=this.yz,a.bufferfinish=this.GG,a);a={};this.W=(a.overlay_resize=this.IL,a.abandon=this.vy,a.close=this.vy,a.collapse=this.vy,a.overlay_unmeasurable_impression=function(b){return yj(b,"overlay_unmeasurable_impression",ei())},a.overlay_viewable_immediate_impression=function(b){return yj(b,"overlay_viewable_immediate_impression",ei())},a.overlay_unviewable_impression=function(b){return yj(b,"overlay_unviewable_impression",ei())},
a.overlay_viewable_end_of_session_impression=function(b){return yj(b,"overlay_viewable_end_of_session_impression",ei())},a);
qh.getInstance().l=3;Oca(this);this.B=!1};
Kk=function(a,b,c,d){b=a.Lr(null,d,!0,b);b.B=c;wca([b],a.B);return b};
Pca=function(a,b,c){nba(b);var d=a.l;g.Ab(b,function(e){var f=g.Qc(e.l,function(h){var l=Ica(h);if(null==l)h=null;else if(h=new Gca,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.l=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=qc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.u=l,h.B=-1):(h.u=-1,h.B=l);h.C=void 0===m?"tos":m}return h});
ai(f,function(h){return null==h})||gca(c,new rk(e.id,e.event,f,d))})};
Qca=function(a){a=a.l;return[new tk("viewable_impression",a),new sk(a)]};
Rca=function(){var a=[];bi.getInstance();var b=qh.getInstance();Ug(b.featureSet,"dov");a.push(Xj.getInstance());Ug(b.featureSet,"mvp_lv")&&a.push(Bk.getInstance());b=[new yk,new Ak];b.push(new Rj(a));b.push(new Vj(Zg));return b};
Sca=function(a){if(!a.be){a.be=!0;try{var b=Nh(),c=qh.getInstance(),d=bi.getInstance();Oh=b;c.u=79463069;"o"!==a.i&&(fk=Uh(Zg).Of);if(wba()){ak.i.oC=0;ak.i.Cy=Nh()-b;var e=Rca(),f=Pj.getInstance();f.l=e;Qj(f,function(){Lk()})?ak.done||(dk(),ji(f.i.i,a),bk()):d.u?Lk():bk()}else Mk=!0}catch(h){throw Lj.reset(),h;
}}};
Ok=function(a){ak.l.cancel();Nk=a;ak.done=!0};
Pk=function(a){if(a.i)return a.i;var b=Pj.getInstance().i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
Qk=function(a,b,c){if(null==a.l)return b.Hp|=4,!1;a=jj(a.l,c,b);b.Hp|=a;return 0==a};
Lk=function(){var a=[new Vj(Zg)],b=Pj.getInstance();b.l=a;Qj(b,function(){Ok("i")})?ak.done||(dk(),bk()):Ok("i")};
Rk=function(a,b,c){if(!b.La){var d=yj(b,"start",ei());a=a.u.i(d).i;var e={id:"lidarv"};e.r=c;e.v="889v";Fd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Fca();Fd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+ti(si(new ri,e));Ci(c);b.La=!0}};
Sk=function(a,b,c){ck(ak,[a],!ei());vj(a,c);4!=c&&uj(a.ca,c,a.Nt);return yj(a,b,ei())};
Oca=function(a){Eca(function(){var b=Tk();null!=a.i&&(b.sdk=a.i);var c=Pj.getInstance();null!=c.i&&(b.avms=c.i.getName());return b})};
Tca=function(a,b,c,d){if(a.B)var e=Hj(Lj,b);else e=Kj(Lj,c),null!==e&&e.vf!==b&&(a.yq(e),e=null);e||(b=a.Lr(c,Nh(),!1,b),0==Lj.l.length&&(qh.getInstance().u=79463069),Oj([b]),e=b,e.B=Pk(a),d&&(e.fp=d));return e};
Uca=function(a,b){b.J=0;for(var c in Uk)null==a[c]&&(b.J|=Uk[c]);Vk(a,"currentTime");Vk(a,"duration")};
Vca=function(a){g.Ab(Lj.i,function(b){3==b.ye&&a.yq(b)})};
Vk=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Tk=function(){var a=bi.getInstance(),b={};return b.sv="889",b["if"]=a.u?"1":"0",b.nas=String(Lj.i.length),b};
Wk=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
Yk=function(a){return!!(1<<a&Xk)};
$ca=function(){try{Wca()}catch(d){}var a="a=1&b="+Xk+"&",b=[],c=99;g.Ab(Xca,function(d,e){var f=!1;try{f=d(Zg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Ab(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Ab(Yca,function(d){var e="false";try{e=d(Zg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Ab(Zca,function(d){var e="";try{e=g.tf(d(Zg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Wca=function(){if(!Zk){var a=function(){$k=!0;Zg.document.removeEventListener("webdriver-evaluate",a,!0)};
Zg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){al=!0;Zg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Zg.document.addEventListener("webdriver-evaluate-response",b,!0);Zk=!0}};
ada=function(){this.l=-1};
bl=function(){this.l=64;this.i=Array(4);this.C=Array(this.l);this.B=this.u=0;this.reset()};
cl=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.i[0];c=a.i[1];e=a.i[2];var f=a.i[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.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295};
dl=function(){this.l=null};
el=function(a){return function(b){var c=new bl;c.update(b+a);return Yaa(c.digest()).slice(-8)}};
fl=function(a,b){this.u=a;this.B=b};
jj=function(a,b,c){var d=a.i(c);if("function"===typeof d){var e={};e=(e.sv="889",e.cb="j",e.e=bda(b),e);var f=yj(c,b,ei());g.Yb(e,f);c.CH[b]=f;a=2==c.Ui()?Mba(e).join("&"):a.B.i(e).i;try{return d(c.vf,a,b),0}catch(h){return 2}}else return 1};
bda=function(a){var b=pk(a)?"custom_metric_viewable":a;a=Nb(wj,function(c){return c==b});
return nk[a]};
gl=function(a,b,c){fl.call(this,a,b);this.l=c};
hl=function(){Jk.call(this);this.I=null;this.C=!1;this.J={};this.u=new dl};
cda=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&Pca(a,c,b)};
dda=function(a,b,c){var d=Hj(Lj,b);d||(d=c.opt_nativeTime||-1,d=Kk(a,b,Pk(a),d),c.opt_osdId&&(d.fp=c.opt_osdId));return d};
eda=function(a,b,c){var d=Hj(Lj,b);d||(d=Kk(a,b,"n",c.opt_nativeTime||-1));return d};
fda=function(a,b){var c=Hj(Lj,b);c||(c=Kk(a,b,"h",-1));return c};
gda=function(a){qh.getInstance();switch(Pk(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};
jl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Yb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.u.i(ok("ol",d));if(void 0!==d)if(void 0!==mk(d))if(Mk)b=ok("ue",d);else if(Sca(a),"i"==Nk)b=ok("i",d),b["if"]=0;else if(b=a.St(b,e))if(a.B&&3==b.ye)b="stopped";else{b:{"i"==Nk&&(b.Oo=!0,a.Tz());c=e.opt_fullscreen;void 0!==c&&Wi(b,!!c);var f;if(c=!bi.getInstance().l)(c=Bc(g.Wc,"CrKey")||Bc(g.Wc,"PlayStation")||Bc(g.Wc,"Roku")||Iba()||Bc(g.Wc,"Xbox"))||(c=g.Wc,c=Bc(c,"AppleTV")||
Bc(c,"Apple TV")||Bc(c,"CFNetwork")||Bc(c,"tvOS")),c||(c=g.Wc,c=Bc(c,"sdk_google_atv_x86")||Bc(c,"Android TV")),c=!c;c&&(ih(),c=0===$g(Ig));if(f=c){switch(b.Ui()){case 1:Rk(a,b,"pv");break;case 2:a.Kz(b)}Ok("pv")}c=d.toLowerCase();if(f=!f)f=Ug(qh.getInstance().featureSet,"ssmol")&&"loaded"===c?!1:g.fb(hda,c);if(f&&0==b.ye){"i"!=Nk&&(ak.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Rh=f="number"===typeof f?f:Nh();b.vt=!0;var h=ei();b.ye=1;b.Pe={};b.Pe.start=!1;b.Pe.firstquartile=!1;b.Pe.midpoint=!1;
b.Pe.thirdquartile=!1;b.Pe.complete=!1;b.Pe.resume=!1;b.Pe.pause=!1;b.Pe.skip=!1;b.Pe.mute=!1;b.Pe.unmute=!1;b.Pe.viewable_impression=!1;b.Pe.measurable_impression=!1;b.Pe.fully_viewable_audible_half_duration_impression=!1;b.Pe.fullscreen=!1;b.Pe.exitfullscreen=!1;b.Cx=0;h||(b.og().L=f);ck(ak,[b],!h)}(f=b.Nn[c])&&ej(b.Ee,f);g.fb(ida,c)&&!b.Oo&&b.on&&0!=b.ye&&(f=b.on,f.i||(f.i=kj(f,b)));switch(b.Ui()){case 1:var l=pk(c)?a.L.custom_metric_viewable:a.L[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,
d),void 0!==d)){e=ok(void 0,c);g.Yb(e,d);d=e;break b}d=void 0}3==b.ye&&(a.B?b.Nc&&b.Nc.Mp():a.yq(b));b=d}else b=ok("nf",d);else b=void 0;else Mk?b=ok("ue"):(b=a.St(b,e))?(d=ok(),g.Yb(d,xj(b,!0,!1,!1)),b=d):b=ok("nf");return"string"===typeof b?a.B&&"stopped"===b?il:a.u.i(void 0):a.u.i(b)};
kl=function(a){return qh.getInstance(),"h"!=Pk(a)&&Pk(a),!1};
ll=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.u,b.moatInit=a.C,b.moatViewability=a.I,b.integralAdsViewability=a.B,b.doubleVerifyViewability=a.l,b};
ml=function(a,b,c){c=void 0===c?{}:c;a=jl(hl.getInstance(),b,c,a);return ll(a)};
nl=function(a,b){b=void 0===b?!1:b;var c=hl.getInstance().St(a,{});c?pj(c):b&&(c=hl.getInstance().Lr(null,Nh(),!1,a),c.ye=3,Oj([c]))};
ol=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};
jda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],F=e[3],D=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=F^x&(y^F);var K=1518500249}else G=x^y^F,K=1859775393;else 60>w?(G=x&y|F&(x|y),K=2400959708):(G=x^y^F,K=3395469782);G=((r<<5|r>>>27)&4294967295)+G+D+K+t[w]&4294967295;D=F;F=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+D&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,OK: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}}};
pl=function(a,b,c){var d=String(g.A.location.href);return d&&a&&b?[b,kda(ol(d),a,c||null)].join(" "):null};
kda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Ab(d,function(l){e.push(l)}),ql(e.join(" "));
var f=[],h=[];g.Ab(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.gb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Ab(d,function(l){e.push(l)});
a=ql(e.join(" "));a=[c,a];g.gb(h)||a.push(h.join(""));return a.join("_")};
ql=function(a){var b=jda();b.update(a);return b.OK().toLowerCase()};
ul=function(a){this.i=a||{cookie:""}};
vl=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Cc(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}};
wl=function(a){return!!lda.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
xl=function(a,b,c,d){(a=g.A[a])||(a=(new ul(document)).get(b));return a?pl(a,c,d):null};
yl=function(){var a=[];var b=void 0===b?!1:b;var c=ol(String(g.A.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=g.A.__SAPISID||g.A.__APISID||g.A.__3PSAPISID||g.A.__OVERRIDE_SID;wl(e)&&(f=f||g.A.__1PSAPISID);if(f)e=!0;else{var h=new ul(document);f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");wl(e)&&(f=f||h.get("__Secure-1PAPISID"));e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?g.A.__SAPISID:g.A.__APISID,
e||(e=new ul(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?pl(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&wl(b)&&((b=xl("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=xl("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
mda=function(a){var b=g.Ha("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.A.$googDebugFname||b}catch(h){e="Not available",c=!0}b=zl(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,Al[c])c=Al[c];else{c=String(c);if(!Al[c]){var f=/function\s+([^\(]+)/m.exec(c);Al[c]=f?f[1]:"[Anonymous]"}c=Al[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};
zl=function(a,b){b||(b={});b[Bl(a)]=!0;var c=a.stack||"",d=a.q3;d&&!b[Bl(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=zl(d,b));return c};
Bl=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
g.Cl=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.l=!1};
Dl=function(a,b){g.Cl.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.i=null;a&&this.init(a,b)};
Fl=function(a){return!(!a||!a[El])};
oda=function(a,b,c,d,e){this.listener=a;this.i=null;this.src=b;this.type=c;this.capture=!!d;this.Sd=e;this.key=++nda;this.Mr=this.ht=!1};
Gl=function(a){a.Mr=!0;a.listener=null;a.i=null;a.src=null;a.Sd=null};
Hl=function(a){this.src=a;this.listeners={};this.i=0};
Il=function(a,b){var c=b.type;c in a.listeners&&g.kb(a.listeners[c],b)&&(Gl(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
Jl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Mr&&f.listener==b&&f.capture==!!c&&f.Sd==d)return e}return-1};
Ll=function(a,b,c,d,e){if(d&&d.once)return Kl(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ll(a,b[f],c,d,e);return null}c=Ml(c);return Fl(a)?a.ya(b,c,g.Na(d)?!!d.capture:!!d,e):Nl(a,b,c,!1,d,e)};
Nl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Na(e)?!!e.capture:!!e,l=Ol(a);l||(a[Pl]=l=new Hl(a));c=l.add(b,c,d,h,f);if(c.i)return c;d=pda();c.i=d;d.src=a;d.listener=c;if(a.addEventListener)qda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ql(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Rl++;return c};
pda=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=rda;return a};
Kl=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Kl(a,b[f],c,d,e);return null}c=Ml(c);return Fl(a)?a.Uy(b,c,g.Na(d)?!!d.capture:!!d,e):Nl(a,b,c,!0,d,e)};
Sl=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Sl(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=Ml(c),Fl(a)?a.Gb(b,c,d,e):a&&(a=Ol(a))&&(b=a.Sq(b,c,d,e))&&Tl(b)};
Tl=function(a){if("number"!==typeof a&&a&&!a.Mr){var b=a.src;if(Fl(b))Il(b.l,a);else{var c=a.type,d=a.i;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ql(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Rl--;(c=Ol(b))?(Il(c,a),0==c.i&&(c.src=null,b[Pl]=null)):Gl(a)}}};
Ql=function(a){return a in Ul?Ul[a]:Ul[a]="on"+a};
rda=function(a,b){if(a.Mr)var c=!0;else{c=new Dl(b,this);var d=a.listener,e=a.Sd||a.src;a.ht&&Tl(a);c=d.call(e,c)}return c};
Ol=function(a){a=a[Pl];return a instanceof Hl?a:null};
Ml=function(a){if("function"===typeof a)return a;a[Vl]||(a[Vl]=function(b){return a.handleEvent(b)});
return a[Vl]};
g.Wl=function(){g.E.call(this);this.l=new Hl(this);this.Ha=this;this.ma=null};
Xl=function(a,b,c,d){b=a.l.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.Mr&&h.capture==c){var l=h.listener,m=h.Sd||h.src;h.ht&&Il(a.l,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Yl=function(a,b){this.u=a;this.B=b;this.l=0;this.i=null};
Zl=function(a,b){a.B(b);100>a.l&&(a.l++,b.next=a.i,a.i=b)};
am=function(a){"function"!==typeof g.A.setImmediate||g.A.Window&&g.A.Window.prototype&&!Xc("Edge")&&g.A.Window.prototype.setImmediate==g.A.setImmediate?($l||($l=sda()),$l(a)):g.A.setImmediate(a)};
sda=function(){var a=g.A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Xc("Presto")&&(a=function(){var e=g.Ie("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.B)(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&&!Xc("Trident")&&!Xc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.FC;c.FC=null;e()}};
return function(e){d.next={FC:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.A.setTimeout(e,0)}};
bm=function(a){g.A.setTimeout(function(){throw a;},0)};
cm=function(){this.l=this.i=null};
dm=function(){this.next=this.scope=this.i=null};
g.hm=function(a,b){em||tda();fm||(em(),fm=!0);gm.add(a,b)};
tda=function(){if(g.A.Promise&&g.A.Promise.resolve){var a=g.A.Promise.resolve(void 0);em=function(){a.then(im)}}else em=function(){am(im)}};
im=function(){for(var a;a=gm.remove();){try{a.i.call(a.scope)}catch(b){bm(b)}Zl(jm,a)}fm=!1};
km=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
mm=function(a){this.Ma=0;this.Ql=void 0;this.jo=this.Sk=this.zn=null;this.Vt=this.Ox=!1;if(a!=g.Ia)try{var b=this;a.call(void 0,function(c){lm(b,2,c)},function(c){lm(b,3,c)})}catch(c){lm(this,3,c)}};
nm=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1};
pm=function(a,b,c){var d=om.get();d.l=a;d.onRejected=b;d.context=c;return d};
qm=function(a){if(a instanceof mm)return a;var b=new mm(g.Ia);lm(b,2,a);return b};
rm=function(a){return new mm(function(b,c){c(a)})};
tm=function(a,b,c){sm(a,b,c,null)||g.hm(g.Qa(b,a))};
uda=function(a){return new mm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],tm(e,b,c)})};
vda=function(a){return new mm(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],tm(m,g.Qa(f,l),h);
else b(e)})};
vm=function(a,b){var c=pm(b,b,void 0);c.u=!0;um(a,c);return a};
g.xm=function(a,b){return wm(a,null,b,void 0)};
ym=function(a,b){if(0==a.Ma)if(a.zn){var c=a.zn;if(c.Sk){for(var d=0,e=null,f=null,h=c.Sk;h&&(h.u||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ma&&1==d?ym(c,b):(f?(d=f,d.next==c.jo&&(c.jo=d),d.next=d.next.next):zm(c),Am(c,e,3,b)))}a.zn=null}else lm(a,3,b)};
um=function(a,b){a.Sk||2!=a.Ma&&3!=a.Ma||Bm(a);a.jo?a.jo.next=b:a.Sk=b;a.jo=b};
wm=function(a,b,c,d){var e=pm(null,null,null);e.i=new mm(function(f,h){e.l=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 Cm?h(l):f(m)}catch(n){h(n)}}:h});
e.i.zn=a;um(a,e);return e.i};
lm=function(a,b,c){0==a.Ma&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ma=1,sm(c,a.TQ,a.UQ,a)||(a.Ql=c,a.Ma=b,a.zn=null,Bm(a),3!=b||c instanceof Cm||wda(a,c)))};
sm=function(a,b,c,d){if(a instanceof mm)return um(a,pm(b||g.Ia,c||null,d)),!0;if(km(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if("function"===typeof e)return xda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
xda=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)}};
Bm=function(a){a.Ox||(a.Ox=!0,g.hm(a.VK,a))};
zm=function(a){var b=null;a.Sk&&(b=a.Sk,a.Sk=b.next,b.next=null);a.Sk||(a.jo=null);return b};
Am=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.Vt;a=a.zn)a.Vt=!1;if(b.i)b.i.zn=null,Dm(b,c,d);else try{b.u?b.l.call(b.context):Dm(b,c,d)}catch(e){Em.call(null,e)}Zl(om,b)};
Dm=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
wda=function(a,b){a.Vt=!0;g.hm(function(){a.Vt&&Em.call(null,b)})};
Cm=function(a){Wa.call(this,a)};
g.Fm=function(a,b){g.Wl.call(this);this.Hf=a||1;this.ts=b||g.A;this.AC=(0,g.B)(this.HQ,this);this.BE=g.Sa()};
g.Gm=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.B)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.B)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.A.setTimeout(a,b||0)};
Hm=function(a,b){var c=null;return g.xm(new mm(function(d,e){c=g.Gm(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.A.clearTimeout(c);
throw d;})};
g.Im=function(a,b){this.l={};this.i=[];this.Xl=this.u=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.Im)for(c=a.nh(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Km=function(a){if(a.u!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Jm(a.l,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.u!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],Jm(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
Jm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Lm=function(a,b){this.i=this.L=this.B="";this.u=null;this.C=this.J="";this.I=!1;var c;a instanceof g.Lm?(this.I=void 0!==b?b:a.I,g.Mm(this,a.B),this.L=a.L,g.Nm(this,a.i),g.Om(this,a.u),this.J=a.getPath(),Pm(this,a.l.clone()),this.C=a.C):a&&(c=String(a).match(Ad))?(this.I=!!b,g.Mm(this,c[1]||"",!0),this.L=Qm(c[2]||""),g.Nm(this,c[3]||"",!0),g.Om(this,c[4]),this.J=Qm(c[5]||"",!0),Pm(this,c[6]||"",!0),this.C=Qm(c[7]||"")):(this.I=!!b,this.l=new Rm(null,this.I))};
g.Mm=function(a,b,c){a.B=c?Qm(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Nm=function(a,b,c){a.i=c?Qm(b,!0):b};
g.Om=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
Pm=function(a,b,c){b instanceof Rm?(a.l=b,yda(a.l,a.I)):(c||(b=Sm(b,zda)),a.l=new Rm(b,a.I))};
g.Tm=function(a){return a instanceof g.Lm?a.clone():new g.Lm(a,void 0)};
Qm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Sm=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Ada),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Ada=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Rm=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b};
Um=function(a){a.i||(a.i=new g.Im,a.l=0,a.u&&Fd(a.u,function(b,c){a.add(rd(b),c)}))};
Wm=function(a,b){Um(a);b=Vm(a,b);return Jm(a.i.l,b)};
g.Xm=function(a,b,c){a.remove(b);0<c.length&&(a.u=null,a.i.set(Vm(a,b),g.ob(c)),a.l=a.l+c.length)};
Vm=function(a,b){var c=String(b);a.B&&(c=c.toLowerCase());return c};
yda=function(a,b){b&&!a.B&&(Um(a),a.u=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Xm(this,e,c))},a));
a.B=b};
Zm=function(a){if(g.rc(g.td(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Lm(a)}catch(c){return null!=g.cb(Ym,function(d){return 0<a.search(d)})}return b.C.match(Bda)?!0:null!=g.cb(Ym,function(c){return null!=a.match(c)})};
g.$m=function(a,b){return a.replace(Cda,function(c,d){try{var e=Rb(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.rc(g.td(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
an=function(){this.i=[];this.l=-1};
Dda=function(a){-1==a.l&&(a.l=gh(a.i,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.l};
g.bn=function(a,b,c){g.E.call(this);this.i=null;this.B=!1;this.I=a;this.C=c;this.l=b||window;this.u=(0,g.B)(this.gB,this)};
cn=function(a){a=a.l;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
dn=function(a){a=a.l;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.M=function(a,b,c){g.E.call(this);this.i=a;this.Hf=b||0;this.l=c;this.u=(0,g.B)(this.hB,this)};
g.en=function(a,b){a.isActive()||a.start(b)};
g.fn=function(a){a.isActive()&&a.mg()};
gn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
hn=function(a){return a.classList?a.classList:gn(a).match(/\S+/g)||[]};
g.jn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.kn=function(a,b){return a.classList?a.classList.contains(b):g.fb(hn(a),b)};
g.N=function(a,b){if(a.classList)a.classList.add(b);else if(!g.kn(a,b)){var c=gn(a);g.jn(a,c+(0<c.length?" "+b:b))}};
g.ln=function(a,b){if(a.classList)g.Ab(b,function(f){g.N(a,f)});
else{var c={};g.Ab(hn(a),function(f){c[f]=!0});
g.Ab(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;g.jn(a,d)}};
g.mn=function(a,b){a.classList?a.classList.remove(b):g.kn(a,b)&&g.jn(a,g.Ne(hn(a),function(c){return c!=b}).join(" "))};
g.nn=function(a,b){a.classList?g.Ab(b,function(c){g.mn(a,c)}):g.jn(a,g.Ne(hn(a),function(c){return!g.fb(b,c)}).join(" "))};
g.O=function(a,b,c){c?g.N(a,b):g.mn(a,b)};
on=function(a,b){var c=!g.kn(a,b);g.O(a,b,c)};
g.pn=function(){g.Wl.call(this);this.Ma=0;this.endTime=this.startTime=null};
Eda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Qc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.mg(a,"transition",c.join(","))};
qn=function(a,b,c,d,e){g.pn.call(this);this.i=a;this.C=b;this.I=c;this.B=d;this.J=Array.isArray(e)?e:[e]};
rn=function(a,b,c,d){return new qn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Gda=function(a){a=Cc(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 Fda))return null}return a};
sn=function(a){var b=g.A.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
tn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Be&&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)};
Lda=function(a){if(!a)return Sc;var b=document.createElement("div").style,c=Hda(a);g.Ab(c,function(d){var e=g.De&&d in Ida?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pc(e,"--")||pc(e,"var")||(d=tn(Jda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Gda(d),null!=d&&tn(Kda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Naa(b.cssText||"")};
Hda=function(a){g.Ma(a)?a=g.ob(a):(a=g.Kb(a),g.kb(a,"cssText"));return a};
g.vn=function(a){var b,c=b=0,d=!1;a=a.split(Mda);for(var e=0;e<a.length;e++){var f=a[e];g.un.test(f)?(b++,c++):Nda.test(f)?d=!0:Oda.test(f)?c++:Pda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.wn=function(a,b,c,d,e,f,h,l){this.i=a;this.C=b;this.u=c;this.I=d;this.B=e;this.J=f;this.l=h;this.L=l};
g.xn=function(a,b){if(0==b)return a.i;if(1==b)return a.l;var c=g.ge(a.i,a.u,b),d=g.ge(a.u,a.B,b),e=g.ge(a.B,a.l,b);c=g.ge(c,d,b);d=g.ge(d,e,b);return g.ge(c,d,b)};
g.yn=function(a,b,c){this.B=a;this.C=b;this.i=this.u=a;this.I=c||0};
g.zn=function(a){a.i=Math.min(a.C,2*a.i);a.u=Math.min(a.C,a.i+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.i):0));a.l++};
An=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Qda=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")};
Bn=function(a){return(a=a.exec(g.Wc))?a[1]:""};
Cn=function(a){return 0<=g.Ec(Rda,a)};
g.Dn=function(a){g.E.call(this);this.C=1;this.u=[];this.B=0;this.i=[];this.l={};this.I=!!a};
Sda=function(a,b,c){g.hm(function(){a.apply(b,c)})};
g.En=function(a){this.i=a};
Fn=function(a){this.i=a};
Gn=function(a){this.data=a};
Hn=function(a){return void 0===a||a instanceof Gn?a:new Gn(a)};
In=function(a){this.i=a};
g.Jn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Sa()||!!b&&b>g.Sa()};
g.Kn=function(a){this.i=a};
Tda=function(){};
Ln=function(){};
Mn=function(a){this.i=a};
Nn=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
On=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
Qn=function(a,b){this.l=a;this.i=null;if(g.Be&&!g.de(9)){Pn||(Pn=new g.Im);this.i=Pn.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),Pn.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}};
Rn=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Uda[b]})};
Sn=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Tn=function(a,b){this.l=a;this.i=b+"::"};
g.Un=function(a){var b=new Nn;return b.isAvailable()?a?new Tn(b,a):b:null};
bo=function(a,b){this.i=a;this.l=b};
co=function(a){this.i=[];if(a)a:{if(a instanceof co){var b=a.nh();a=a.qg();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new bo(b[d],a[d]));break a}}else b=g.Kb(a),a=g.Jb(a);for(d=0;d<b.length;d++)eo(this,b[d],a[d])}};
eo=function(a,b,c){var d=a.i;d.push(new bo(b,c));b=d.length-1;a=a.i;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};
fo=function(){co.call(this)};
go=function(){};
ho=function(a){(0,g.If)(this,a,0,-1,Vda,null)};
io=function(a){(0,g.If)(this,a,0,-1,null,null)};
Wda=function(a,b){for(;gf(b)&&4!=b.l;)switch(b.u){case 1:var c=kf(b);g.Lf(a,1,c);break;case 2:c=kf(b);g.Lf(a,2,c);break;case 3:c=kf(b);g.Lf(a,3,c);break;case 4:c=kf(b);g.Lf(a,4,c);break;case 5:c=ef(b.i);g.Lf(a,5,c);break;default:hf(b)}return a};
Xda=function(a){a=a.split("");var b=[-525185888,null,1504247229,470947735,function(c){c.reverse()},
function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
-1644061314,1405552455,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
-1407416813,null,541846464,"Zw81-",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(""))},
a,777853316,a,1812042341,265728811,470947735,-504445941,-951091539,function(c,d){c.push(d)},
-1027001397,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
-1577410156,-1142454742,-9819330,441823701,-1301180629,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
250082513,-1457193802,-1951682585,430141329,-157311161,-1780676777,1421948780,-1301180629,null,369839549,a,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-1083887959,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(""))},
-1496187322,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
250082513,"push"];b[1]=b;b[10]=b;b[39]=b;b[5](b[1],b[23]);b[24](b[1],b[45]);b[44](b[16],b[48]);b[46](b[1],b[35]);b[31](b[46],b[32]);b[4](b[46],b[25]);b[29](b[19],b[3]);b[10](b[15],b[38]);b[10](b[6],b[7]);b[0](b[15],b[32]);b[30](b[44]);b[25](b[46],b[7]);b[30](b[44]);b[30](b[44]);b[30](b[46]);b[30](b[44]);b[35](b[31],b[10]);b[35](b[20],b[1]);b[35](b[40],b[24]);b[3](b[20],b[15]);b[38](b[44],b[39]);b[30](b[22]);b[11](b[46],b[2]);b[38](b[31],b[36]);b[41](b[17],b[27]);b[16](b[6]);b[49](b[41],b[21]);b[25](b[19],
b[42]);b[2](b[17],b[4]);b[29](b[32]);b[16](b[6]);b[25](b[17],b[18]);b[8](b[23],b[48]);b[8](b[32],b[16]);b[38](b[0],b[29]);b[28](b[43],b[45]);b[8](b[19],b[40]);b[8](b[30],b[46]);b[8](b[19],b[26]);b[38](b[17],b[35]);return a.join("")};
ko=function(a,b,c){a&&(a.dataset?a.dataset[jo(b)]=String(c):a.setAttribute("data-"+b,c))};
lo=function(a){return a?a.dataset?a.dataset[jo("loaded")]:a.getAttribute("data-loaded"):null};
jo=function(a){return mo[a]||(mo[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
oo=function(a){var b=arguments;1<b.length?no[b[0]]=b[1]:1===b.length&&Object.assign(no,b[0])};
g.P=function(a,b){return a in no?no[a]:b};
po=function(a){return g.P(a,void 0)};
Yda=function(a){qo.forEach(function(b){return b(a)})};
so=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.ro(b),Yda(b)}}:a};
g.ro=function(a,b,c,d){var e=g.Ha("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),oo("ERRORS",e))};
to=function(a){var b=g.Ha("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.P("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),oo("ERRORS",b))};
g.uo=function(a,b){"function"===typeof a&&(a=so(a));return window.setTimeout(a,b)};
vo=function(a,b){"function"===typeof a&&(a=so(a));return window.setInterval(a,b)};
g.wo=function(a){window.clearTimeout(a)};
g.Bo=function(a,b,c){var d=g.xo();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){yo[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.zo[a]?h():g.uo(h,0)}catch(l){g.ro(l)}},c);
yo[e]=!0;Ao[a]||(Ao[a]=[]);Ao[a].push(e);return e}return 0};
g.Co=function(a){var b=g.xo();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Ab(a,function(c){b.unsubscribeByKey(c);delete yo[c]}))};
g.Do=function(a,b){var c=g.xo();return c?c.publish.apply(c,arguments):!1};
Fo=function(a){var b=g.xo();if(b)if(b.clear(a),a)Eo(a);else for(var c in Ao)Eo(c)};
g.xo=function(){return g.A.ytPubsubPubsubInstance};
Eo=function(a){Ao[a]&&(a=Ao[a],g.Ab(a,function(b){yo[b]&&delete yo[b]}),a.length=0)};
g.Go=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(Zda,""),c=c.replace($da,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else aea(a,b,c)};
aea=function(a,b,c){c=void 0===c?null:c;var d=Ho(a),e=document.getElementById(d),f=e&&lo(e),h=e&&!f;f?b&&b():(b&&(f=g.Bo(d,b),b=""+g.Pa(b),Io[b]=f),h||(e=bea(a,d,function(){lo(e)||(ko(e,"loaded","true"),g.Do(d),g.uo(g.Qa(Fo,d),0))},c)))};
bea=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ie("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.nd(e,g.kg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Ho=function(a){var b=document.createElement("a");g.md(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ud(a)};
g.Ko=function(a){a=Jo(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.Lo=function(a,b){var c=Jo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
Mo=function(a){a=Jo(a);return Array.isArray(a)?g.Qc(a,function(b){return String(b||"")}):[String(a||"")]};
Jo=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
No=function(){var a=[],b=g.P("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.P("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Po=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Oo+"VisibilityState";if(b in a)return a[b]};
Qo=function(a,b){var c;ai(a,function(d){c=b[d];return!!c});
return c};
Ro=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 cea||(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.i=a.pageX;this.l=a.pageY}}catch(e){}};
So=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.l=a.clientY+b}};
dea=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Nb(To,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Na(e[4])&&g.Na(d)&&g.Ub(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Wo=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=dea(a,b,c,d);if(e)return e;e=++Uo.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Ro(l);if(!Ue(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Ro(l);
l.currentTarget=a;return c.call(a,l)};
h=so(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Vo()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);To[e]=[a,b,c,h,d];return e};
eea=function(a,b){var c=document.body||document;return g.Wo(c,"click",function(d){var e=Ue(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Xo=function(a){a&&("string"==typeof a&&(a=[a]),g.Ab(a,function(b){if(b in To){var c=To[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Vo()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete To[b]}}))};
g.Yo=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Zo=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.Yo(a)};
$o=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};
ap=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.ie(b,c)};
g.bp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.cp=function(a){a=a||window.event;return!1===a.returnValue||a.oE&&a.oE()};
g.dp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
fea=function(a){return eea(a,function(b){return g.kn(b,"ytp-ad-has-logging-urls")})};
g.ep=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Wo(a,b,function(){g.Xo(e);c.apply(a,arguments)},d)};
fp=function(a){for(var b in To)To[b][0]==a&&g.Xo(b)};
gp=function(a){this.J=a;this.i=null;this.B=0;this.I=null;this.C=0;this.l=[];for(a=0;4>a;a++)this.l.push(0);this.u=0;this.Y=g.Wo(window,"mousemove",(0,g.B)(this.W,this));this.L=vo((0,g.B)(this.X,this),25)};
hp=function(){};
jp=function(a,b){return ip(a,0,b)};
g.kp=function(a,b){return ip(a,1,b)};
lp=function(){hp.apply(this,arguments)};
g.mp=function(){return!!g.Ha("yt.scheduler.instance")};
ip=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ha("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.uo(a,c||0)};
g.np=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ha("yt.scheduler.instance.cancelJob");b?b(a):g.wo(a)}};
op=function(a){var b=g.Ha("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
rp=function(){var a={},b=void 0===a.QL?!0:a.QL;a=void 0===a.SP?!1:a.SP;if(null==g.Ha("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?g.Sa()-Math.max(c,0):-1;g.Da("_lact",c,window);g.Da("_fact",c,window);-1==c&&pp();g.Wo(document,"keydown",pp);g.Wo(document,"keyup",pp);g.Wo(document,"mousedown",pp);g.Wo(document,"mouseup",pp);b&&(a?g.Wo(window,"touchmove",function(){qp("touchmove",200)},{passive:!0}):(g.Wo(window,"resize",function(){qp("resize",200)}),g.Wo(window,"scroll",function(){qp("scroll",
200)})));
new gp(function(){qp("mouse",100)});
g.Wo(document,"touchstart",pp,{passive:!0});g.Wo(document,"touchend",pp,{passive:!0})}};
qp=function(a,b){sp[a]||(sp[a]=!0,g.kp(function(){pp();sp[a]=!1},b))};
pp=function(){null==g.Ha("_lact",window)&&(rp(),g.Ha("_lact",window));var a=g.Sa();g.Da("_lact",a,window);-1==g.Ha("_fact",window)&&g.Da("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()};
tp=function(){var a=g.Ha("_lact",window),b;null==a?b=-1:b=Math.max(g.Sa()-a,0);return b};
up=function(){return g.Ha("yt.ads.biscotti.lastId_")||""};
vp=function(a){g.Da("yt.ads.biscotti.lastId_",a,void 0)};
xp=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length)try{var l=wp(h[0]||""),m=wp(h[1]||"");l in d?Array.isArray(d[l])?pb(d[l],m):d[l]=[d[l],m]:d[l]=m}catch(t){var n=t,p=h[0],r=String(xp);n.args=[{key:p,value:h[1],query:a,method:gea==r?"unchanged":r}];hea.hasOwnProperty(p)||to(n)}}return d};
yp=function(a){var b=[];g.Cb(a,function(c,d){var e=qd(d),f;Array.isArray(c)?f=c:f=[c];g.Ab(f,function(h){""==h?b.push(e):b.push(e+"="+qd(h))})});
return b.join("&")};
zp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return xp(a,"&")};
Ap=function(a){a=a.split(",");return a=a.map(function(b){return zp(b)})};
g.Bp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),zp(1<a.length?a[1]:a[0])):{}};
g.Dp=function(a,b){return Cp(a,b||{},!0)};
Ep=function(a,b){return Cp(a,b||{},!1)};
Cp=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=zp(e[1]||"");for(var f in b)if(c||!Lb(e,f))e[f]=b[f];return g.Od(a,e)+d};
Fp=function(a){if(!b)var b=window.location.href;var c=g.Bd(1,a),d=g.Cd(a);c&&d?(a=a.match(Ad),b=b.match(Ad),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Cd(b)==d&&(Number(g.Bd(4,b))||null)==(Number(g.Bd(4,a))||null):!0;return a};
Gp=function(a){a||(a=document.location.href);a=g.Bd(1,a);return null!==a&&"https"==a};
Hp=function(a){a=g.Cd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
wp=function(a){return a&&a.match(iea)?a:rd(a)};
Kp=function(a){var b=Ip;a=void 0===a?up():a;var c=Object,d=c.assign,e=Jp(b);var f=b.i;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=Kg(!1,b.i.top);l={};m=new an;g.A.SVGElement&&g.A.document.createElementNS&&m.set(0);n=iba();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&
m.set(2);g.A.crypto&&g.A.crypto.subtle&&m.set(3);g.A.TextDecoder&&g.A.TextEncoder&&m.set(4);m=Dda(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=$g(b.l),l.wgl=!!Zg.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Jp=function(a){var b={};b.dt=jea;b.flash="0";a:{try{var c=a.i.top.location.href}catch(f){a=2;break a}a=c?c===a.l.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Zg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Zg.navigator&&"unknown"!==typeof Zg.navigator.javaEnabled&&!!Zg.navigator.javaEnabled&&Zg.navigator.javaEnabled();Zg.screen&&(b.u_h=Zg.screen.height,b.u_w=Zg.screen.width,b.u_ah=Zg.screen.availHeight,b.u_aw=Zg.screen.availWidth,b.u_cd=
Zg.screen.colorDepth);Zg.navigator&&Zg.navigator.plugins&&(b.u_nplug=Zg.navigator.plugins.length);Zg.navigator&&Zg.navigator.mimeTypes&&(b.u_nmime=Zg.navigator.mimeTypes.length);return b};
kea=function(){if(!Lp)return null;var a=Lp();return"open"in a?a:null};
g.Np=function(a){switch(Mp(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Mp=function(a){return a&&"status"in a?a.status:-1};
lea=function(a,b){b=void 0===b?{}:b;var c=Fp(a),d=g.Ko("web_ajax_ignore_global_headers_if_set"),e;for(e in Op){var f=g.P(Op[e]);!f||!c&&!Pp(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Pp(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||Pp(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||Pp(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=yp(Kp(void 0));
return b};
Qp=function(a,b){var c=g.Cd(a),d=zd(g.Bd(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=zp(b),f={};g.Ab(mea,function(h){e[h]&&(f[h]=e[h])});
return Ep(a,f)};
Pp=function(a){return g.Cd(a)?!1:!0};
nea=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=Rp(a,b);var d=Sp(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=b.context||g.A,f=!1,h;fetch(a,c).then(function(l){if(!f){f=!0;h&&g.wo(h);var m=l.ok,n=function(p){p=p||{};m?b.onSuccess&&b.onSuccess.call(e,p,l):b.onError&&b.onError.call(e,p,l);b.onFinish&&b.onFinish.call(e,p,l)};
"JSON"==(b.format||"JSON")&&(m||400<=l.status&&500>l.status)?l.json().then(n,function(){n(null)}):n(null)}})["catch"](function(){b.onError&&b.onError.call(e,{},{})});
b.onFetchTimeout&&0<b.timeout&&(h=g.uo(function(){f||(f=!0,g.wo(h),b.onFetchTimeout.call(b.context||g.A))},b.timeout))}else g.Tp(a,b)};
g.Tp=function(a,b){var c=b.format||"JSON";a=Rp(a,b);var d=Sp(a,b),e=!1,f=Up(a,function(m){if(!e){e=!0;l&&g.wo(l);var n=g.Np(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=oea(a,c,m,b.convertToSafeHtml);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.A;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.onFinish&&b.onFinish.call(r,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.uo(function(){e||(e=!0,f.abort(),g.wo(l),h.call(b.context||g.A,f))},b.timeout)}return f};
Rp=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.P("XSRF_FIELD_NAME",void 0),d=b.urlParams;d&&(d[c]&&delete d[c],a=g.Dp(a,d));return a};
Sp=function(a,b){var c=g.P("XSRF_FIELD_NAME",void 0),d=g.P("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=po("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Cd(a)&&!b.withCredentials&&g.Cd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=zp(e),g.Yb(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Md(e));f=e||f&&!g.Pb(f);
!Vp&&f&&"POST"!=b.method&&(Vp=!0,g.ro(Error("AJAX request with postData should use POST")));return e};
oea=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,to(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)?pea(a):null)e={},g.Ab(a.getElementsByTagName("*"),function(h){e[h.tagName]=qea(h)})}d&&Wp(e);
return e};
Wp=function(a){if(g.Na(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.kd(g.gc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Wp(a[b])};
pea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
qea=function(a){var b="";g.Ab(a.childNodes,function(c){b+=c.nodeValue});
return b};
Up=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&so(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=kea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Ko("debug_forward_web_query_parameters")&&(a=Qp(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=lea(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};
Xp=function(){var a=/Chrome\/(\d+)/.exec(g.Wc);return a?parseFloat(a[1]):NaN};
Yp=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Wc);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("."))};
$p=function(){return Zp("android")&&Zp("chrome")&&!(Zp("trident/")||Zp("edge/"))&&!Zp("cobalt")};
aq=function(){return Zp("armv7")||Zp("aarch64")||Zp("android")};
g.bq=function(){return Zp("cobalt")};
cq=function(){return Zp("cobalt")&&Zp("appletv")};
dq=function(){return Zp("(ps3; leanback shell)")||Zp("ps3")&&g.bq()};
eq=function(){return Zp("(ps4; leanback shell)")||Zp("ps4")&&g.bq()};
g.fq=function(){return g.bq()&&(Zp("ps4 vr")||Zp("ps4 pro vr"))};
gq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Wc);return!!(a&&600<=parseInt(a[1],10))};
hq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Wc);return!!(a&&602<=parseInt(a[1],10))};
iq=function(){return Zp("iemobile")||Zp("windows phone")&&Zp("edge")};
kq=function(){return jq&&Zp("applewebkit")&&!Zp("version")&&(!Zp("safari")||Zp("gsa/"))};
mq=function(){return g.lq&&Zp("version/")};
nq=function(){return Zp("smart-tv")&&Zp("samsung")};
Zp=function(a){var b=g.Wc;return b?0<=b.toLowerCase().indexOf(a):!1};
g.pq=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.bq())a&&(a=g.Hc(g.Lc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.gd(id(a)).toString(),a=qd(g.Dj(a))),g.rc(a)||(a=He("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),oe(a).body.appendChild(a)));else if(e)Up(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Up(a,b,"GET","",d);else{b:{try{var f=new paa({url:a});if(f.u&&f.l||f.B){var h=zd(g.Bd(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Sd(a,"ri"));break b}}catch(m){}l=!1}l?oq(a)?(b&&b(),c=!0):c=!1:c=!1;c||rea(a,b)}};
qq=function(a,b,c){c=void 0===c?"":c;oq(a,c)?b&&b():g.pq(a,b,void 0,void 0,c)};
oq=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
rea=function(a,b){var c=new Image,d=""+sea++;rq[d]=c;c.onload=c.onerror=function(){b&&rq[d]&&b();delete rq[d]};
c.src=a};
tea=function(a,b){if("log_event"===a.endpoint){var c="";a.re&&(sq[a.re.token]=tq(a.re),c=a.re.token);var d=uq.get(c)||[];uq.set(c,d);d.push(a.payload);b&&(vq=new b);c=g.Lo("web_logging_max_batch")||100;var e=(0,g.Q)();d.length>=c?wq({writeThenSend:!0}):10<=e-xq&&(yq(),xq=e)}};
uea=function(a,b){if("log_event"===a.endpoint){var c="";a.re&&(sq[a.re.token]=tq(a.re),c=a.re.token);var d=new Map;d.set(c,[a.payload]);b&&(vq=new b);return new mm(function(e){vq&&vq.isReady()?zq(d,e,{bypassNetworkless:!0}):e()})}};
wq=function(a){a=void 0===a?{}:a;return new mm(function(b){g.wo(Aq);g.wo(Bq);Bq=0;vq&&vq.isReady()?(zq(uq,b,a),uq.clear()):(yq(),b())})};
yq=function(){g.Ko("web_gel_timeout_cap")&&!Bq&&(Bq=g.uo(wq,6E4));g.wo(Aq);var a=g.P("LOGGING_BATCH_TIMEOUT",g.Lo("web_gel_debounce_ms",1E4));g.Ko("shorten_initial_gel_batch_timeout")&&Cq&&(a=vea);Aq=g.uo(function(){wq({writeThenSend:!0})},a)};
zq=function(a,b,c){var d=vq;c=void 0===c?{}:c;var e=Math.round((0,g.Q)()),f=a.size;a=g.q(a);for(var h=a.next();!h.done;h=a.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Wb({context:g.Dq(d.i||g.Eq())});l.events=m;(m=sq[h])&&wea(l,h,m);delete sq[h];xea(l,e);g.Ko("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&qq("/generate_204");g.Fq(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();Gq=Math.round((0,g.Q)()-e)},
onError:function(){f--;f||b()},
XE:c});Cq=!1}};
xea=function(a,b){a.requestTimeMs=String(b);g.Ko("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.P("EVENT_ID",void 0);if(c){var d=g.P("BATCH_CLIENT_COUNTER",void 0)||0;d||(d=Math.floor(Math.random()*Hq/2));d++;d>Hq&&(d=1);oo("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Iq&&Gq&&g.Ko("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Iq,roundtripMs:String(Gq)});Iq=c;Gq=0}};
wea=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
tq=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
Kq=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.Q)());e[a]=b;a=tp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Ko("log_sequence_info_on_gel_web")&&d.tk&&(a=e.context,b=d.tk,Jq[b]=b in Jq?Jq[b]+1:0,a.sequence={index:Jq[b],groupKey:b},d.SK&&delete Jq[d.tk]);(d.U3?uea:tea)({endpoint:"log_event",payload:e,re:d.re},c)};
Lq=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Mq=function(){if(!g.A.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.A.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.A.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.A.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.A.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.Oq=function(a,b,c,d,e){Nq.set(""+a,b,{pu:c,path:"/",domain:void 0===d?"youtube.com":d,lQ:void 0===e?!1:e})};
g.Pq=function(a,b){return Nq.get(""+a,b)};
g.Qq=function(a,b,c){Nq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
yea=function(){if(!Nq.isEnabled())return!1;if(!Nq.isEmpty())return!0;Nq.set("TESTCOOKIESENABLED","1",{pu:60});if("1"!==Nq.get("TESTCOOKIESENABLED"))return!1;Nq.remove("TESTCOOKIESENABLED");return!0};
g.Sq=function(){this.i=g.P("ALT_PREF_COOKIE_NAME","PREF");this.l=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Pq(this.i);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])&&(Rq[d]=c.toString())}}};
g.Uq=function(a,b){return!!((Tq("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Vq=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Wq=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Tq=function(a){a=void 0!==Rq[a]?Rq[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Yq=function(){var a,b=g.A.navigator;if(a=b?b.connection:void 0){b=Xq[a.type||"unknown"]||"CONN_UNKNOWN";a=Xq[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Zq=function(){return"INNERTUBE_API_KEY"in no&&"INNERTUBE_API_VERSION"in no};
g.Eq=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0),gE:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),hE:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),jE:g.P("INNERTUBE_CONTEXT_HL",void 0),iE:g.P("INNERTUBE_CONTEXT_GL",void 0),kE:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",mE:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),lE:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Dq=function(a){var b={client:{hl:a.jE,gl:a.iE,clientName:a.hE,clientVersion:a.innertubeContextClientVersion,configInfo:a.gE}},c=g.A.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.P("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=No();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.Ko("web_include_display_mode_killswitch")){var d;b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?
d:{};b.client.mainAppWebInfo.webDisplayMode=Mq()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.Ko("music_web_display_mode_killswitch")){var e;b.client.TE=null!=(e=b.client.TE)?e:{};b.client.TE.webDisplayMode=Mq()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.P("DELEGATED_SESSION_ID")&&!g.Ko("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});if(a=Yq())b.client.connectionType=a,g.Ko("web_log_effective_connection_type")&&
(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.q(Object.entries(zp(g.P("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?c.deviceMake=l:"cmodel"===h?c.deviceModel=l:"cbr"===h?c.browserName=l:"cbrver"===h?c.browserVersion=l:"cos"===h?c.osName=l:"cosver"===h?c.osVersion=l:"cplatform"===h&&(c.platform=l)}b.client=e.call(a,d,c);return b};
zea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.uC||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ha("gapi.auth.getToken")().n3:b=yl());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Ko("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return d};
$q=function(a){var b;(b=g.Un(a))||(a=new Qn(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new In(a):null;this.l=document.domain||window.location.hostname};
ar=function(a,b){this.version=a;this.args=b};
br=function(a,b){this.topic=a;this.i=b};
dr=function(a,b){var c=cr();c&&c.publish.call(c,a.toString(),a,b)};
Aea=function(a,b,c){var d=cr();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ha("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(er[e])try{if(h&&a instanceof br&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Xl){var p=new m;m.Xl=p.version}var r=m.Xl}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ob(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){g.ro(t)}},fr[a.toString()]?g.mp()?g.kp(l):g.uo(l,0):l())});
er[e]=!0;gr[a.toString()]||(gr[a.toString()]=[]);gr[a.toString()].push(e);return e};
Ir=function(a,b,c){var d=Aea(a,function(e){b.apply(c,arguments);Hr(d)},c);
return d};
Hr=function(a){var b=cr();b&&("number"===typeof a&&(a=[a]),g.Ab(a,function(c){b.unsubscribeByKey(c);delete er[c]}))};
cr=function(){return g.Ha("ytPubsub2Pubsub2Instance")};
Jr=function(){this.BQ=!0};
Kr=function(){Jr.i||(Jr.i=new Jr);return Jr.i};
Bea=function(a,b,c){return qm(a.It(b,c))};
Cea=function(){var a={};for(Lr=new Mr(void 0===a.handleError?Nr:a.handleError,void 0===a.logEvent?g.Or:a.logEvent);0<Pr.length;)switch(a=Pr.shift(),a.type){case "ERROR":Lr.fd(a.payload);break;case "EVENT":Lr.logEvent(a.eventType,a.payload)}};
Rr=function(a){Qr||(Lr?Lr.fd(a):(Pr.push({type:"ERROR",payload:a}),10<Pr.length&&Pr.shift()))};
Sr=function(a,b){Qr||(Lr?Lr.logEvent(a,b):(Pr.push({type:"EVENT",eventType:a,payload:b}),10<Pr.length&&Pr.shift()))};
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.la(c))};
Ur=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Vr=function(a){return a.substr(0,a.indexOf(":"))||a};
Xr=function(a,b,c,d){b=void 0===b?{}:b;c=void 0===c?Wr[a]:c;d=void 0===d?Dea[a]:d;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;this.level=d;Object.setPrototypeOf(this,Xr.prototype)};
Yr=function(a){Xr.call(this,"MISSING_OBJECT_STORE",{I3:a},Wr.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Yr.prototype)};
Fea=function(a,b,c){b=Vr(b);var d=a instanceof Error?a:Error("Unexpected error: "+a);if(d instanceof Xr)return d;if("QuotaExceededError"===d.name)return new Xr("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:b});if(g.Zr&&"UnknownError"===d.name)return new Xr("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:b});if("InvalidStateError"===d.name&&Eea.some(function(e){return d.message.includes(e)}))return new Xr("EXECUTE_TRANSACTION_ON_CLOSED_DB",{objectStoreNames:c,
dbName:b});d.args=[{name:"IdbError",K3:d.name,dbName:b,objectStoreNames:c}];d.level="WARNING";return d};
Gea=function(a){if(!a)throw Error();throw a;};
Hea=function(a){return a};
$r=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.q(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.q(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.l=a;this.state={status:"PENDING"};this.i=[];this.onRejected=[];try{this.l(c,b)}catch(e){b(e)}};
bs=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 $r?as(a,b,f,d,e):d(f)}catch(h){e(h)}};
cs=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 $r?as(a,b,f,d,e):d(f)}catch(h){e(h)}};
as=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof $r?as(a,b,f,d,e):d(f)},function(f){e(f)})};
ds=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)};
es=function(a){return new Promise(function(b,c){ds(a,b,c)})};
fs=function(a){return new $r(function(b,c){ds(a,b,c)})};
gs=function(a,b){return new $r(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
hs=function(a,b){this.request=a;this.cursor=b};
is=function(a){return fs(a).then(function(b){return null===b?null:new hs(a,b)})};
js=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.u=Math.round((0,g.Q)());this.l=!1};
ls=function(a,b,c){a=a.i.createObjectStore(b,c);return new ks(a)};
ps=function(a,b,c,d){return ms(a,[b],{mode:"readwrite",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(e){return ns(os(e,b),c,d)})};
ms=function(a,b,c,d){return C(a,function f(){var h=this,l,m,n,p,r,t,w,x,y,F,D;return z(f,function(G){switch(G.i){case 1:var K={mode:"readonly",Zk:!1};"string"===typeof c?K.mode=c:K=c;l=K;h.transactionCount++;m=l.Zk?g.Lo("ytidb_transaction_try_count",1):1;case 2:if(n){G.Pb(3);break}m--;p=Math.round((0,g.Q)());sa(G,4);r=h.i.transaction(b,l.mode);K=new qs(r);K=Iea(K,d);return v(G,K,6);case 6:return t=G.l,w=Math.round((0,g.Q)()),rs(h,p,w,void 0,b.join(),l),G["return"](t);case 4:x=ua(G);y=Math.round((0,g.Q)());
F=Fea(x,h.i.name,b.join());if((D=F instanceof Xr&&"EXPLICIT_ABORT"===F.type)||0>=m)rs(h,p,y,F,b.join(),l),n=F;G.Pb(2);break;case 3:return G["return"](Promise.reject(n))}})})};
rs=function(a,b,c,d,e,f){b=c-b;d?(d instanceof Xr&&("QUOTA_EXCEEDED"===d.type||"QUOTA_MAYBE_EXCEEDED"===d.type)&&Sr("QUOTA_EXCEEDED",{dbName:Vr(a.i.name),objectStoreNames:e,transactionCount:a.transactionCount,transactionMode:f.mode}),d instanceof Xr&&"UNKNOWN_ABORT"===d.type&&(Sr("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:e,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c-a.u}),a.l=!0),ts(a,!1,e,b),Rr(d)):ts(a,!0,e,b)};
ts=function(a,b,c,d){Sr("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.l,duration:d,isSuccessful:b})};
ks=function(a){this.i=a};
Jea=function(a,b){return us(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
Kea=function(a,b,c){var d=[];return us(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e["continue"]()}).then(function(){return d})};
ns=function(a,b,c){return fs(a.i.put(b,c))};
us=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return vs(a).then(function(d){return gs(d,c)})};
Lea=function(a,b){var c={},d=c.query;c=c.direction;d="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,c):a.i.openCursor(d,c);return is(d).then(function(e){return gs(e,b)})};
qs=function(a){var b=this;this.i=a;this.l=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()});
b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)});
b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.aborted){e=Xr;for(var f=b.i.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.i.db.name,mode:b.i.mode});d(e)}})})};
Iea=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})};
os=function(a,b){var c=a.i.objectStore(b),d=a.l.get(c);d||(d=new ks(c),a.l.set(c,d));return d};
ws=function(a){this.i=a};
Mea=function(a,b,c){var d=[];return xs(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e["continue"]()}).then(function(){return d})};
xs=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return vs(a).then(function(d){return gs(d,c)})};
ys=function(a,b){this.request=a;this.cursor=b};
vs=function(a){return fs(a).then(function(b){return null===b?null:new ys(a,b)})};
Nea=function(a,b,c){return C(this,function e(){var f,h,l,m,n,p,r,t,w,x;return z(e,function(y){if(1==y.i)return f=self.indexedDB.open(a,b),h=c,l=h.blocked,m=h.blocking,n=h.FQ,p=h.upgrade,r=h.closed,w=function(){t||(t=new js(f.result,{closed:r}));return t},f.addEventListener("upgradeneeded",function(F){if(null===F.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&"none"!==F.dataLoss&&Sr("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:Vr(a)});var D=w(),G=new qs(f.transaction);p&&p(D,F.oldVersion,F.newVersion,G)}),l&&f.addEventListener("blocked",function(){l()}),v(y,es(f),2);
x=y.l;m&&x.addEventListener("versionchange",function(){m(w())});
x.addEventListener("close",function(){Sr("IDB_UNEXPECTEDLY_CLOSED",{dbName:Vr(a),dbVersion:x.version});n&&n()});
return y["return"](w())})})};
zs=function(a,b,c){c=void 0===c?{}:c;return Nea(a,b,c)};
As=function(a,b){b=void 0===b?{}:b;return C(this,function d(){var e,f,h;return z(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return v(l,es(e),0)})})};
Bs=function(a,b){this.name=a;this.options=b;this.u=!1};
Ds=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Cs.open(),2);d=e.l;return e["return"](ms(d,["databases"],"readwrite",function(f){var h=os(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.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return ns(h,a).then(function(){})})}))})})};
Es=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Cs.open(),2);d=e.l;return e["return"](d["delete"]("databases",a))})})};
Oea=function(){return C(this,function b(){var c,d;return z(b,function(e){switch(e.i){case 1:if(jq&&gq()&&!hq()&&!g.Ko("ytidb_allow_on_ios_safari_v8_and_v9")||g.Fs)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);sa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return v(e,Ds(d),4);case 4:return v(e,Es("yt-idb-test-do-not-use"),5);case 5:return e["return"](!0);case 2:return ua(e),e["return"](!1)}})})};
Hs=function(){if(void 0!==Gs)return Gs;Qr=!0;return Gs=Oea().then(function(a){Qr=!1;return a})};
Js=function(){if(void 0===Is)throw Error("Datasync ID not set");return Is};
Ks=function(a){if(void 0===Is)throw a=new Xr("AUTH_INVALID"),Rr(a),a;var b=Js();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Ls=function(a,b,c,d){var e;return C(this,function h(){var l,m;return z(h,function(n){switch(n.i){case 1:return v(n,Pea({caller:"openDbImpl",publicName:a,version:b}),2);case 2:return Ur(a),c?l={actualName:a,publicName:a,userIdentifier:void 0}:l=Ks(a),l.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1,sa(n,3),v(n,Ds(l),5);case 5:return v(n,zs(l.actualName,b,d),6);case 6:return n["return"](n.l);case 3:return m=ua(n),sa(n,7),v(n,Es(l.actualName),9);case 9:ta(n,8);break;case 7:ua(n);
case 8:throw m;}})})};
Pea=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Hs(),2);if(!e.l)throw d=new Xr("IDB_NOT_SUPPORTED",{context:a}),Rr(d),d;e.i=0})})};
Qea=function(a,b,c){c=void 0===c?{}:c;return Ls(a,b,!1,c)};
Rea=function(a,b,c){c=void 0===c?{}:c;return Ls(a,b,!0,c)};
Sea=function(a,b){b=void 0===b?{}:b;return C(this,function d(){var e;return z(d,function(f){if(1==f.i)return v(f,Hs(),2);if(3!=f.i){if(!f.l)return f["return"]();Ur(a);e=Ks(a);return v(f,As(e.actualName,b),3)}return v(f,Es(e.actualName),0)})})};
Tea=function(a,b){b=void 0===b?{}:b;return C(this,function d(){return z(d,function(e){if(1==e.i)return v(e,Hs(),2);if(3!=e.i){if(!e.l)return e["return"]();Ur(a);return v(e,As(a,b),3)}return v(e,Es(a),0)})})};
Ms=function(a,b){Bs.call(this,a,b);this.options=b;Ur(a)};
Ns=function(a,b){var c;return function(){c||(c=new Ms(a,b));return c}};
Os=function(){$r.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
Qs=function(){Ps||(Ps=new $q("yt.offline"));return Ps};
Ss=function(){g.Wl.call(this);this.B=this.C=this.I=this.u=!1;this.i=Rs();this.B=g.Ko("validate_network_status");Uea(this);Vea(this)};
Rs=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Vea=function(a){window.addEventListener("online",function(){return C(a,function c(){var d=this;return z(c,function(e){if(1==e.i)return d.B?v(e,Ts(d),3):(d.i=!0,e.Pb(2));2!=e.i&&(d.i=e.l);d.u&&d.i&&d.dispatchEvent("ytnetworkstatus-online");Us(d);if(d.C&&g.Ko("offline_error_handling")){var f=Qs().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.Tr(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.ro(l)}Qs().set("errors",{},2592E3,!0)}}e.i=0})})})};
Uea=function(a){window.addEventListener("offline",function(){return C(a,function c(){var d=this;return z(c,function(e){if(1==e.i)return d.B?v(e,Ts(d),3):(d.i=!1,e.Pb(2));2!=e.i&&(d.i=e.l);d.u&&!d.i&&d.dispatchEvent("ytnetworkstatus-offline");Us(d);e.i=0})})})};
Us=function(a){a.I&&(to(new g.Tr("NetworkStatusManager state did not match poll",(0,g.Q)()-0)),a.I=!1)};
Ts=function(a){return C(a,function c(){var d;return z(c,function(e){switch(e.i){case 1:return sa(e,2),v(e,fetch("/generate_204",{method:"HEAD"}),4);case 4:d=!0;ta(e,3);break;case 2:ua(e),d=!1;case 3:return e["return"](d)}})})};
Ws=function(a){a=void 0===a?{}:a;g.Wl.call(this);var b=this;this.u=this.C=0;Ss.i||(Ss.i=new Ss);this.i=Ss.i;this.i.u=!0;a.eM&&(this.i.C=!0);a.Pu?(this.Pu=a.Pu,this.i.ya("ytnetworkstatus-online",function(){Vs(b,"publicytnetworkstatus-online")}),this.i.ya("ytnetworkstatus-offline",function(){Vs(b,"publicytnetworkstatus-offline")})):(this.i.ya("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),this.i.ya("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Vs=function(a,b){a.Pu?a.u?(g.np(a.C),a.C=g.kp(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.u=(0,g.Q)())},a.Pu-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.B=b,a.u=(0,g.Q)()):a.dispatchEvent(b)};
Ys=function(a,b){b=void 0===b?{}:b;Hs().then(function(){Xs||(Xs=new Ws({eM:!0}));Xs.i.i!==Rs()&&to(new g.Tr("NetworkStatusManager isOnline does not match window status"));g.Tp(a,b)})};
Zs=function(a,b){b=void 0===b?{}:b;Hs().then(function(){g.Tp(a,b)})};
Wea=function(a,b){b=void 0===b?{}:b;Hs().then(function(){g.Tp(a,b)})};
g.$s=function(a){this.i=null;a?this.i=a:Zq()&&(this.i=g.Eq())};
g.Fq=function(a,b,c,d){!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&to(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),g.ro(a),a;var e={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
onFetchSuccess:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
onFetchError:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.i.kE;f&&(c=f);f=zea(a.i.mE||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.i.innertubeApiVersion+"/"+b;f={alt:"json"};a.i.lE&&e.headers.Authorization||(f.key=a.i.innertubeApiKey);var h=g.Dp(""+c+b,f);(function(l){l=void 0===l?!1:l;try{g.Ko("use_fetch_for_op_xhr")?nea(h,e):l&&d.retry&&!d.XE.bypassNetworkless?(e.method="POST",!d.XE.writeThenSend&&g.Ko("nwl_send_fast_on_unload")?
Wea(h,e):Ys(h,e)):(e.method="POST",e.postParams||(e.postParams={}),g.Tp(h,e))}catch(m){if("InvalidAccessError"==m.name)to(Error("An extension is blocking network request."));else throw m;}})(!1)};
g.Or=function(a,b,c){c=void 0===c?{}:c;var d=g.$s;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.$s==g.$s&&(d=null);Kq(a,b,d,c)};
Xea=function(){this.ko=[];this.pn=[]};
bt=function(){at||(at=new Xea);return at};
Yea=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=ct(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=ct(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=ct(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
ct=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
ft=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=dt(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=Yea(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?dt(f+".ve",h,l,m):0;d+=f;d+=dt(e,a[e],b,c);if(500<d)break}}else c[b]=et(a),d+=c[b].length;else c[b]=et(a),d+=c[b].length;return d};
dt=function(a,b,c,d){c+="."+a;a=et(b);d[c]=a;return c.length+a.length};
et=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Nr=function(a){g.gt(a)};
g.ht=function(a){g.gt(a,"WARNING")};
g.gt=function(a,b){var c=void 0===c?{}:c;c.name=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;if(a){a.level&&(c=a.level);if(g.Ko("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args));e.push("File name: "+
a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(5<=it)){e=Zea;var f=mda(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.i||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var r=0;r<a.args.length&&!(p=ft(a.args[r],"params."+r,d,p),500<=p);r++);else if(a.hasOwnProperty("params")&&
a.params){var t=a.params;if("object"===typeof a.params)for(r in t){if(t[r]){var w="params."+r,x=et(t[r]);d[w]=x;p+=w.length+x.length;if(500<p)break}}else d.params=et(t)}if(e.length)for(r=0;r<e.length&&!(p=ft(e[r],"params.context."+r,d,p),500<=p);r++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);d={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:d,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);if("IGNORED"===a.level)e=
0;else a:{e=bt();h=g.q(e.pn);for(l=h.next();!l.done;l=h.next())if(l=l.value,d.message&&d.message.match(l.kM)){e=l.weight;break a}e=g.q(e.ko);for(h=e.next();!h.done;h=e.next())if(h=h.value,h.callback(d)){e=h.weight;break a}e=1}d.sampleWeight=e;e=g.q($ea);for(h=e.next();!h.done;h=e.next())if(h=h.value,h.xz[d.name])for(r=g.q(h.xz[d.name]),l=r.next();!l.done;l=r.next())if(n=l.value,l=d.message.match(n.xh)){d.params["params.error.original"]=l[0];r=n.groups;n={};for(f=0;f<r.length;f++)n[r[f]]=l[f+1],d.params["params.error."+
r[f]]=l[f+1];d.message=h.ME(n);break}d.params||(d.params={});e=bt();d.params["params.errorServiceSignature"]="msg="+e.pn.length+"&cb="+e.ko.length;d.params["params.serviceWorker"]="false";g.A.document&&g.A.document.querySelectorAll&&(d.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(0!==d.sampleWeight&&!jt.has(d.message)){"ERROR"===c?(kt.V("handleError",d),g.Ko("record_app_crashed_web")&&
0===lt&&1===d.sampleWeight&&(lt++,g.Or("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),afa++):"WARNING"===c&&kt.V("handleWarning",d);if(g.Ko("kevlar_gel_error_routing")){h=c;b:{e=g.q(bfa);for(l=e.next();!l.done;l=e.next())if(Zp(l.value.toLowerCase())){e=!0;break b}e=!1}if(e)e=void 0;else{l={stackTrace:d.stack};d.fileName&&(l.filename=d.fileName);e=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==e.length&&(1!==e.length||isNaN(Number(e[0]))?2!==e.length||isNaN(Number(e[0]))||
isNaN(Number(e[1]))||(l.lineNumber=Number(e[0]),l.columnNumber=Number(e[1])):l.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:d.message,errorClassName:d.name,sampleWeight:d.sampleWeight};"ERROR"===h?e.level="ERROR_LEVEL_ERROR":"WARNING"===h&&(e.level="ERROR_LEVEL_WARNNING");h={isObfuscated:!0,browserStackInfo:l};l={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(l.experimentIds=g.P("FEXP_EXPERIMENTS"));if(r=d.params)for(n=g.q(Object.keys(r)),f=n.next();!f.done;f=
n.next())f=f.value,l.kvPairs.push({key:"client."+f,value:String(r[f])});r=po("SERVER_NAME");n=po("SERVER_VERSION");r&&n&&(l.kvPairs.push({key:"server.name",value:r}),l.kvPairs.push({key:"server.version",value:n}));e={errorMetadata:l,stackTrace:h,logMessage:e}}e&&(g.Or("clientError",e),wq())}if(!g.Ko("suppress_error_204_logging")){e=d.params||{};c={urlParams:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},postParams:{url:g.P("PAGE_NAME",
window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.postParams){d.stack&&(c.postParams.stack=d.stack);h=g.q(Object.keys(e));for(l=h.next();!l.done;l=h.next())l=l.value,c.postParams["client."+l]=e[l];if(e=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(h=g.q(Object.keys(e)),l=h.next();!l.done;l=h.next())l=l.value,c.postParams[l]=e[l];e=g.P("SERVER_NAME",void 0);h=g.P("SERVER_VERSION",void 0);e&&h&&(c.postParams["server.name"]=e,c.postParams["server.version"]=
h)}g.Tp(g.P("ECATCHER_REPORT_HOST","")+"/error_204",c)}jt.add(d.message);it++}}}};
cfa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.la(c))};
mt=function(){this.l=!1;this.i=null};
nt=function(a,b,c,d,e){e=e?window.trayride.ad:window.botguard.bg;if(d)try{a.i=new e(b,c?function(){return c(b)}:g.Ia)}catch(f){g.ht(f)}else{try{a.i=new e(b)}catch(f){g.ht(f)}c&&c(b)}};
dfa=function(a,b){var c=ot;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){return c.i.hot?c.i.hot(d,!0,a):c.i.invoke(d,!0,a)})]):Promise.resolve(null)};
pt=function(){return g.Pq("CONSENT","").startsWith("YES+")};
rt=function(){if(!g.Ko("disable_ad_status_on_html5_clients")&&(!g.Ko("condition_ad_status_fetch_on_consent_cookie_html5_clients")||pt())&&"1"!=Rb(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){qt=!0;"google_ad_status"in window?oo("DCLKSTAT",1):oo("DCLKSTAT",2)};
try{g.Go("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}efa.push(g.kp(function(){if(!(qt||"google_ad_status"in window)){try{if(a){var b=""+g.Pa(a),c=Io[b];c&&g.Co(c)}}catch(d){}qt=!0;oo("DCLKSTAT",3)}},5E3))}};
ut=function(a,b){var c=g.Vb(b),d;return g.xm(new mm(function(e,f){c.onSuccess=function(h){g.Np(h)?e(h):f(new tt("Request failed, status="+Mp(h),"net.badstatus",h))};
c.onError=function(h){f(new tt("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new tt("Request timed out","net.timeout",h))};
d=g.Tp(a,c)}),function(e){e instanceof Cm&&d.abort();
return rm(e)})};
g.vt=function(a,b,c,d){function e(h,l,m){return g.xm(h,function(n){return 0>=l||403===Mp(n.xhr)?rm(new tt("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(ut(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new mm(function(l){setTimeout(l,h)})}
return e(ut(a,b),c-1,d)};
tt=function(a,b,c){Wa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
wt=function(){this.Ma=0;this.i=null};
xt=function(a){var b=new wt;a=void 0===a?null:a;b.Ma=2;b.i=void 0===a?null:a;return b};
zt=function(a){var b=new wt;a=void 0===a?null:a;b.Ma=1;b.i=void 0===a?null:a;return b};
Bt=function(a){Wa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof At;this.isTimeout=a instanceof tt&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Cm};
At=function(){Wa.call(this,"Biscotti ID is missing from server")};
ffa=function(){if(g.Ko("disable_biscotti_fetch_on_html5_clients"))return rm(Error("Fetching biscotti ID is disabled."));if(g.Ko("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!pt())return rm(Error("User has not consented - not fetching biscotti id."));if("1"==Rb(g.P("PLAYER_VARS",{}),"privembed",!1))return rm(Error("Biscotti ID is not available in private embed mode"));Ct||(Ct=g.xm(ut("//googleads.g.doubleclick.net/pagead/id",Dt).then(Et),function(a){return Ft(2,a)}));
return Ct};
Et=function(a){a=a.responseText;if(!pc(a,")]}'"))throw new At;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new At;a=a.id;vp(a);Ct=zt(a);Gt(18E5,2);return a};
Ft=function(a,b){var c=new Bt(b);vp("");Ct=xt(c);0<a&&Gt(12E4,a-1);throw c;};
Gt=function(a,b){g.uo(function(){g.xm(ut("//googleads.g.doubleclick.net/pagead/id",Dt).then(Et,function(c){return Ft(b,c)}),g.Ia)},a)};
Ht=function(){try{var a=g.Ha("yt.ads.biscotti.getId_");return a?a():ffa()}catch(b){return rm(b)}};
ifa=function(){var a=void 0===a?window.location.href:a;if(g.Ko("kevlar_disable_theme_param"))return null;var b=zd(g.Bd(5,a));if(gfa(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Bp(a).theme;return hfa.get(c)||null}catch(d){}return null};
gfa=function(a){var b=jfa.map(function(c){return c.toLowerCase()});
return!g.Ko("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
It=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()};
Lt=function(a){var b;Jt()?Kt()==a&&(b=document):b=a;return b&&(a=Qo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Mt=function(a){return g.cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
kfa=function(){var a=document;return g.cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Jt=function(){return!!Qo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Kt=function(a){a=void 0===a?!1:a;var b=Qo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Nt=function(a){g.E.call(this);this.I=[];this.za=a||this};
Ot=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.Pt=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.R=function(a){a=void 0===a?!1:a;g.E.call(this);this.qd=new g.Dn(a);g.I(this,this.qd)};
Qt=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Rt=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Tt=function(a,b,c,d){g.R.call(this);this.u=!!b;this.I=a;this.W=c||a;this.L=!!d;this.i=new Nt(this);g.I(this,this.i);this.C=this.J=null;this.B=this.l=!1;b&&(g.De&&a.setAttribute("draggable","true"),a.style.touchAction="none");St(this)};
Ut=function(a,b,c){a.i.N(a.W,b,c,void 0,!a.u)};
St=function(a){a.C=null;a.J=null;Ut(a,Vt("over"),a.SE);Ut(a,"touchstart",a.xA);a.u&&Ut(a,Vt("down"),a.mM)};
Wt=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
Vt=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Xt=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||{}};
lfa=function(a){a instanceof Xt||(a=new Xt(a));return a};
Zt=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.Sa();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Yt)for(b=1,c=0;c<Yt.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Yt.charCodeAt(c),b++;return a};
$t=function(){for(var a=Zt(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.au=function(){return g.Qc(Zt(),function(a){return(a&15).toString(16)}).join("")};
bu=function(a){this.i=a};
g.cu=function(a){return new bu({trackingParams:a})};
nfa=function(a){var b=mfa++;return new bu({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
du=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
eu=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
fu=function(a){return g.P(eu(void 0===a?0:a),void 0)};
g.gu=function(a){return(a=fu(void 0===a?0:a))?new bu({veType:a,youtubeData:void 0}):null};
hu=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},oo("csn-to-ctt-auth-info",a));return a};
g.iu=function(a){a=void 0===a?0:a;var b=g.P(du(a));if(!b&&!g.P("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null};
ofa=function(a,b,c){var d=hu();(c=g.iu(c))&&delete d[c];b&&(d[a]=b)};
ju=function(a){return hu()[a]};
lu=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(du(c))||b!==g.P(eu(c)))ofa(a,d,c),oo(du(c),a),oo(eu(c),b),b=function(){setTimeout(function(){a&&Kq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ku,clientScreenNonce:a},g.$s)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
mu=function(a){ar.call(this,1,arguments);this.csn=a};
g.ou=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Qc(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.Pb(e)||!e.trackingParams&&!e.veType)&&g.ht(Error("Child VE logged with no data"));d={re:ju(b),tk:b};"UNDEFINED_CSN"==b?nu("visualElementAttached",c,d):a?Kq("visualElementAttached",c,a,d):g.Or("visualElementAttached",c,d)};
g.pu=function(a,b,c){var d=g.Ko("use_default_events_client")?void 0:g.$s;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={re:ju(a),tk:a};"UNDEFINED_CSN"==a?nu("visualElementShown",b,c):d?Kq("visualElementShown",b,d,c):g.Or("visualElementShown",b,c)};
qu=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={re:ju(b),tk:b,SK:d};"UNDEFINED_CSN"==b?nu("visualElementHidden",c,d):a?Kq("visualElementHidden",c,a,d):g.Or("visualElementHidden",c,d)};
ru=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={re:ju(b),tk:b};"UNDEFINED_CSN"==b?nu("visualElementGestured",c,d):a?Kq("visualElementGestured",c,a,d):g.Or("visualElementGestured",c,d)};
pfa=function(){return g.tf(Math.random()+"")};
nu=function(a,b,c){tu.push({payloadName:a,payload:b,options:c});uu||(uu=Ir(vu,qfa))};
qfa=function(a){if(tu){for(var b=g.q(tu),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Kq(c.payloadName,c.payload,null,c.options));tu.length=0}uu=0};
g.wu=function(a,b,c){g.ou(g.Ko("use_default_events_client")?void 0:g.$s,a,b,[c])};
g.xu=function(a,b){var c=g.Ko("use_default_events_client")?void 0:g.$s;g.Ab(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={re:ju(a),tk:a};"UNDEFINED_CSN"==a?nu("visualElementShown",d,e):c?Kq("visualElementShown",d,c,e):g.Or("visualElementShown",d,e)})};
g.yu=function(a,b){var c=g.Ko("use_default_events_client")?void 0:g.$s;g.Ab(b,function(d){qu(c,a,d,void 0,void 0)})};
g.zu=function(a,b,c){ru(g.Ko("use_default_events_client")?void 0:g.$s,a,b,c)};
Au=function(){this.l=new Set;this.i=new Set;this.u=new Map};
g.Du=function(a,b,c){var d=c&&0<c?c:0;c=d?g.Sa()+1E3*d:0;if((d=d?(0,g.Bu)():Cu())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Eu=function(a){var b=Cu(),c=(0,g.Bu)();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.Fu=function(a){try{var b=Cu(),c=(0,g.Bu)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Gu=function(){return g.Eu("yt-remote-session-screen-id")};
Ju=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Hu(a)||c.some(function(e){return!Hu(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Iu(a,d.value);return a};
Iu=function(a,b){for(var c in b)if(Hu(b[c])){if(c in a&&!Hu(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Iu(a[c],b[c])}else if(Ku(b[c])){if(c in a&&!Ku(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Lu(a[c],b[c])}else a[c]=b[c];return a};
Lu=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Hu(d)?a.push(Iu({},d)):Ku(d)?a.push(Lu([],d)):a.push(d);return a};
Hu=function(a){return"object"===typeof a&&!Array.isArray(a)};
Ku=function(a){return"object"===typeof a&&Array.isArray(a)};
Nu=function(){void 0===Mu&&(Mu=g.Un());return Mu};
Ou=function(){var a=Nu();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
Pu=function(a){var b=Nu();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
Qu=function(a){return Ou()[a]||0};
Ru=function(){var a=Ou();return Object.keys(a)};
Su=function(a){var b=Ou();return Object.keys(b).filter(function(c){return b[c]===a})};
Tu=function(a,b){var c=Ou();b!==c[a]&&(0!==b?c[a]=b:delete c[a],Pu(c))};
rfa=function(a){var b=Ou();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);Pu(b);JSON.stringify(b);return b};
sfa=function(){var a=Nu();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
Xu=function(){return C(this,function b(){var c,d,e;return z(b,function(f){switch(f.i){case 1:c=Nu();if(!c)return f["return"](Promise.reject("No LocalStorage"));if(Uu){f.Pb(2);break}d=Js();e=c.get("yt-player-lv-id");if(!e){c.set("yt-player-lv-id",d);f.Pb(3);break}if(e===d){f.Pb(3);break}return v(f,Vu(),5);case 5:c.set("yt-player-lv-id",d);case 3:Uu=!0;case 2:return f["return"](Wu().open())}})})};
tfa=function(){return C(this,function b(){var c;return z(b,function(d){c=Wu();return d["return"](c["delete"]())})})};
Yu=function(a,b){return C(this,function d(){var e;return z(d,function(f){if(1==f.i)return v(f,Xu(),2);e=f.l;return f["return"](ms(e,["index","media","metadata","playerdata"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");l=[os(h,"index")["delete"](l),os(h,"media")["delete"](l),os(h,"playerdata")["delete"](l)];b&&l.push(os(h,"metadata")["delete"](a));return Os.all(l).then(function(){})}))})})};
$u=function(){return C(this,function b(){var c;return z(b,function(d){if(1==d.i)return v(d,Xu(),2);c=d.l;return d["return"](ms(c,["index","media"],"readwrite",function(e){var f={};return us(os(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=Os.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=Zu(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h["delete"]().then(function(){}),ufa("Deleting unexpected index key "+h.getKey());
return Os.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=rfa(h);return Lea(os(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||(os(e,"media")["delete"](r.getKey()),r.getKey());return r["continue"]()}).then(function(){return p})})}))})})};
vfa=function(a,b){return C(this,function d(){var e,f;return z(d,function(h){if(1==h.i)return v(h,Xu(),2);e=h.l;f={offlineVideoData:b};return v(h,ps(e,"metadata",f,a),0)})})};
wfa=function(a,b){var c=Math.floor(Date.now()/1E3);C(this,function e(){var f,h;return z(e,function(l){if(1==l.i)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},v(l,Xu(),2);h=l.l;return v(l,ps(h,"playerdata",f,a),0)})})};
bv=function(a,b,c,d,e,f){return C(this,function l(){var m,n,p,r;return z(l,function(t){switch(t.i){case 1:return m=Qu(a),4===m?t["return"](Promise.resolve(4)):v(t,Xu(),2);case 2:return n=t.l,sa(t,3),v(t,ms(n,["index","media"],"readwrite",function(w){if(void 0!==e&&void 0!==f){var x=""+a+"|"+b.id+"|"+e;x=ns(os(w,"media"),f,x)}else x=Os.resolve(void 0);var y=av(a,b.isVideo()),F=av(a,!b.isVideo()),D={fmts:d,format:c||{}};y=ns(os(w,"index"),D,y);var G=Zu(d);w=G?os(w,"index").get(F):Os.resolve(void 0);
return Os.all([w,x,y]).then(function(K){K=g.q(K).next().value;var J=Qu(a);4!==J&&G&&void 0!==K&&Zu(K.fmts)&&(J=1,Tu(a,J));return J})}),5);
case 5:return t["return"](t.l);case 3:p=ua(t);r=Qu(a);if(4===r)return t["return"](r);Tu(a,4);throw p;}})})};
xfa=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Xu(),2);d=e.l;return e["return"](ms(d,["index"],"readonly",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");return os(f,"index").getAll(h).then(function(l){return l.map(function(m){return m?m.format:{}})})}))})})};
yfa=function(a,b,c){return C(this,function e(){var f;return z(e,function(h){if(1==h.i)return v(h,Xu(),2);f=h.l;return h["return"](ms(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return os(l,"media").get(m)}))})})};
zfa=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Xu(),2);d=e.l;return e["return"](ms(d,["playerdata","index"],"readonly",function(f){var h=os(f,"playerdata").get(a),l=IDBKeyRange.bound(a+"|",a+"~");return os(f,"index").getAll(l).then(function(m){return h.then(function(n){if(!n||!n.player)return n;delete n.player.streamingData;if(0===m.length)return n;for(var p=[],r=g.q(m),t=r.next();!t.done;t=r.next())t=t.value,t.format&&p.push(t.format);n.player.streamingData=
{adaptiveFormats:p};return n})})}))})})};
Afa=function(a){return C(this,function c(){var d,e,f,h;return z(c,function(l){return 1==l.i?v(l,Xu(),2):3!=l.i?(d=l.l,e=[],f=[],h=[],v(l,ms(d,["metadata"],"readonly",function(m){return us(os(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 x=t.next();!x.done;x=t.next())x=x.value,x.url&&e.push(x.url)}f.push.apply(f,g.la(cv(w)))}else h.push.apply(h,
g.la(cv(w)));return n["continue"]()})}),3)):l["return"](e.concat(f.filter(function(m){return!h.includes(m)})))})})};
cv=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};
ev=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,Xu(),2);d=e.l;return e["return"](ms(d,["index","metadata"],"readonly",function(f){return dv(f,a)}))})})};
fv=function(){return C(this,function b(){var c;return z(b,function(d){if(1==d.i)return v(d,Xu(),2);c=d.l;return d["return"](ms(c,["index","metadata"],"readonly",function(e){return Os.all(Ru().map(function(f){return dv(e,f)}))}))})})};
dv=function(a,b){var c=os(a,"metadata").get(b),d=IDBKeyRange.bound(b+"|",b+"~");return os(a,"index").getAll(d).then(function(e){e=e.map(function(l){return l?l.fmts:""}).join(",");
var f={videoId:b,totalSize:0,downloadedSize:0,status:Qu(b),videoData:null};if(e.length){e=Ap(e);e=g.q(e);for(var h=e.next();!h.done;h=e.next())h=h.value,f.totalSize+=+h.mket*+h.avbr,f.downloadedSize+=h.hasOwnProperty("dlt")?(+h.dlt||0)*+h.avbr:+h.mket*+h.avbr}return c.then(function(l){f.videoData=(null===l||void 0===l?void 0:l.offlineVideoData)||null;return f})})};
gv=function(a){return C(this,function c(){return z(c,function(d){Tu(a,0);return d["return"](Yu(a,!0))})})};
Vu=function(){return C(this,function b(){var c;return z(b,function(d){c=Nu();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=Nu();e&&e.remove("yt-player-lv");return v(d,tfa(),0)})})};
Zu=function(a){return!!a&&-1===a.indexOf("dlt")};
av=function(a,b){return""+a+"|"+(b?"v":"a")};
ufa=function(){};
hv=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
iv=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new hv(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
jv=function(a,b){return new hv(a,a+b-1)};
kv=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
lv=function(){var a=this;this.i=this.l=oaa;this.promise=new mm(function(b,c){a.l=b;a.i=c})};
Bfa=function(a,b){this.policy=a;this.i=b;this.u=this.l=0;this.ne=null;this.C=[];this.indexRange=this.initRange=null;this.chunkSize=a.Cs;this.B=new Uint8Array(this.chunkSize);this.I=new lv};
Cfa=function(a){var b=mv(a);b=bv(a.policy.i,a.i.info,nv(a),b);ov(a,b)};
pv=function(a){return!!a.ne&&a.ne.u};
tv=function(a,b){if(!pv(a)){if(1===b.info.type)a.initRange=jv(0,b.i.totalLength);else if(2===b.info.type){if(!a.ne||1!==a.ne.type)return;a.indexRange=jv(a.u*a.chunkSize+a.l,b.i.totalLength)}else if(3===b.info.type){if(3===a.ne.type&&!qv(a.ne,b.info)){a.C=[];var c=a.ne;if(b.info.va!==c.va+(c.yd?1:0)||0!==b.info.rb)return}if(b.info.yd){c=g.q(a.C);for(var d=c.next();!d.done;d=c.next())rv(a,d.value);a.C=[]}else{a.C.push(b);a.ne=b.info;return}}a.ne=b.info;rv(a,b);pv(a)&&(c=new Uint8Array(a.B.buffer,0,
a.l),d={mket:Math.round(a.i.index.nl()).toString(),avbr:Math.round(a.i.info.C).toString()},d=yp(d),c=bv(a.policy.i,a.ne.i.info,nv(a),d,a.u,c),ov(a,c,!0))}};
rv=function(a,b){for(var c=0,d=uv(b.i);c<d.length;){var e=Math.min(d.length-c,a.B.byteLength-a.l),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.B.set(f,a.l);a.l+=e;c+=e;if(a.l===a.B.length){if(b.info===a.ne&&pv(a)&&c===d.length)break;e=mv(a);e=bv(a.policy.i,a.i.info,nv(a),e,a.u,a.B);ov(a,e);a.B=new Uint8Array(a.chunkSize);a.l=0;a.u+=1}}};
mv=function(a){a={dlt:Math.round(a.ne?a.ne.B:0),mket:Math.round(a.i.index.nl()),avbr:Math.round(a.i.info.C)};return yp(a)};
nv=function(a){var b,c,d={lmt:a.i.lastModified,docid:a.policy.i,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.u*a.chunkSize+a.l};d="local://localhost/videoplayback?"+yp(d);d={itag:+a.i.info.Vb(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.l,lastModified:String(a.i.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:kv(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:kv(c),url:d};var e=a.i.info;if(e=0<e.id.indexOf(";")?e.id.split(";")[1]:null)d.xtags=
e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.i)d.audioChannels=a}return d};
ov=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.I.resolve(d)},function(d){a.I.reject(d)})};
vv=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
wv=function(a){return String.fromCharCode.apply(null,a)};
xv=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.i=(this.l=e)?0:8;this.dataOffset=this.offset+this.i};
yv=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
zv=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
Av=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
Bv=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
Cv=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
Dv=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return wv(d)};
Dfa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
Ev=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};
Fv=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
Hv=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=Gv(this,"Sequence-Number");this.I=Gv(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Gv(this,"Ingestion-Walltime-Us")/1E6;this.l=(Gv(this,"First-Frame-Time-Us")+Gv(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ch=Gv(this,"Target-Duration-Us")/1E6;this.B="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=Gv(this,"Crypto-Period-Index");
this.u=Gv(this,"Crypto-Period-Seconds")};
Jv=function(a){var b;a.data["Cuepoint-Type"]?b=new Fv(Iv?Number(a.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Efa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Kv=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
Gv=function(a,b){return Number(a.data[b])||0};
Ffa=function(a,b){this.i=a;this.duration=b};
Lv=function(a,b,c,d,e){this.l=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
Mv=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};
Ov=function(a,b){var c=g.Nv(a,0,1952868452),d=g.Nv(a,0,1953658222);if(c&&d){c.skip(1);var e=yv(c)<<16|zv(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.i;var f=Bv(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=yv(d)<<16|zv(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=Bv(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.i,l=Bv(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
Qv=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Nv(a,0,1836476516))?Pv(a):NaN};
Gfa=function(a){var b=g.Nv(a,0,1937011556);if(!b)return null;b=Rv(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Rv(a,b.dataOffset+78,1936995172),d=Rv(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),yv(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=Rv(a,d.dataOffset,1886547818)){var h=Rv(a,d.dataOffset,1886546020),l=Rv(a,d.dataOffset,2037673328);if(!l&&(l=Rv(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
Av(h)/65536,f=Av(h)/65536,e=Av(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Lv(b,c,f,e,a)}return null};
Rv=function(a,b,c){for(;Sv(a,b);){var d=Tv(a,b);if(d.type===c)return d;b+=d.size}return null};
g.Nv=function(a,b,c){for(;Sv(a,b);){var d=Tv(a,b);if(d.type===c)return d;b=Uv(d.type)?b+8:b+d.size}return null};
Vv=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
Tv=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new xv(a,b,c,d)};
Pv=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Wv=function(a){a=new xv(a.data,a.offset,a.size,a.type,a.l);var b=yv(a);a.skip(7);var c=Bv(a);if(0===b){b=Bv(a);var d=Bv(a)}else b=Cv(a),d=Cv(a);a.skip(2);for(var e=zv(a),f=[],h=[],l=0;l<e;l++){var m=Bv(a);f.push(m);h.push(Bv(a));a.skip(4)}return{ov:c,RK:b,oD:d,Fz:f,kv:h}};
Sv=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
Uv=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Xv=function(a){a.skip(4);return{jQ:Dv(a,0),value:Dv(a,0),ov:Bv(a),Q3:Bv(a),y3:Bv(a),id:Bv(a),NE:Dv(a),offset:a.offset}};
Yv=function(a,b){for(var c=Rv(a,0,b);c;)c.markAsSkip(),c=Rv(a,c.offset+c.size,b)};
Zv=function(a,b){for(var c=0,d=[];Sv(a,c);){var e=Tv(a,c);e.type===b&&d.push(e);c=Uv(e.type)?c+8:c+e.size}return d};
Hfa=function(a,b){var c=g.Nv(a,0,1937011556),d=g.Nv(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.Nv(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 Dfa(a.byteLength+d);Ev(h,a,0,c.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;Ev(h,a,c.offset+16,c.size-16);Ev(h,e,e.byteOffset+f.dataOffset+8,d);Ev(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.Nv(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if($v)return h.data;d=g.Nv(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
Ifa=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};
Jfa=function(a){a=Zv(a,1886614376);g.Ab(a,function(b){return!b.l});
return g.Qc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Kfa=function(a){var b=gh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Ab(a,function(e){c.set(e,d);d+=e.length});
return c};
aw=function(a,b){this.l=a;this.i=0;this.start=b||0};
bw=function(a){return a.i>=a.l.byteLength};
hw=function(a,b,c){var d=new aw(c);if(!cw(d,a))return!1;d=dw(d);if(!ew(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=fw(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?gw(d-9,8):gw(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 aw(a);iw(b);if(cw(b,[408125543,374648427,174,224]))b=dw(b);else return null;for(var c=a=null;!bw(b);){var d=fw(b,!1);if(21432===d)switch(jw(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=dw(b):kw(b)}if(!c)return null;for(var e,f=d=b=null;!bw(c);)switch(fw(c,!1)){case 30321:if(3!==jw(c))return null;break;case 30324:b=lw(c);break;case 30323:f=lw(c);break;case 30325:d=lw(c);break;case 30322:e=fw(c,!0);e=mw(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:kw(c)}return e?new Lv(a,b,f,d,e):null};
dw=function(a){var b=fw(a,!0),c=a.l.byteOffset+a.i;c=new DataView(a.l.buffer,c,Math.min(b,a.l.buffer.byteLength-c));c=new aw(c,a.start+a.i);a.i+=b;return c};
jw=function(a){for(var b=fw(a,!0),c=nw(a),d=1;d<b;d++)c=256*c+nw(a);return c};
lw=function(a){var b=fw(a,!0),c=0;4===b?c=a.l.getFloat32(a.i):8===b&&(c=a.l.getFloat64(a.i));a.i+=b;return c};
ow=function(a){var b=fw(a,!0);return wv(mw(a,b))};
nw=function(a){return a.l.getUint8(a.i++)};
fw=function(a,b){var c=nw(a);if(1===c){for(var d=c=0;7>d;d++)c=256*c+nw(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+nw(a),d*=128;return b?c-d:c};
kw=function(a){var b=fw(a,!0);a.i+=b};
iw=function(a){var b=a.i;a.i=0;var c=!1;try{ew(a,440786851)&&(a.i=0,ew(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,to(d);else throw d;}a.i=b;return c};
Mfa=function(a){if(!ew(a,440786851,!0))return null;var b=a.i;fw(a,!1);var c=fw(a,!0)+a.i-b;a.i=b+c;if(!ew(a,408125543,!1))return null;fw(a,!0);if(!ew(a,357149030,!0))return null;var d=a.i;fw(a,!1);var e=fw(a,!0)+a.i-d;a.i=d+e;if(!ew(a,374648427,!0))return null;var f=a.i;fw(a,!1);var h=fw(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.l.buffer,
a.l.byteOffset+d,e),c+12);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+f,h),c+12+e);return l};
pw=function(a){var b=a.i,c={oA:1E6,pA:1E9,duration:0,Qz:0,Tr:0};if(!ew(a,408125543))return a.i=b,null;c.Qz=fw(a,!0);c.Tr=a.start+a.i;if(ew(a,357149030))for(var d=dw(a);!bw(d);){var e=fw(d,!1);2807729===e?c.oA=jw(d):2807730===e?c.pA=jw(d):17545===e?c.duration=lw(d):kw(d)}else return a.i=b,null;a.i=b;return c};
rw=function(a,b,c){var d=a.i,e=[];if(!ew(a,475249515))return a.i=d,null;for(var f=dw(a);ew(f,187);){var h=dw(f);if(ew(h,179)){var l=jw(h);if(ew(h,183)){h=dw(h);for(var m=b;ew(h,241);)m=jw(h)+b;e.push({Pm:m,qt:l})}}}if(0<e.length&&c===e[0].Pm)for(qw&&to(Error("opus_oboe")),b=0;b<e.length;b++)e[b].Pm+=1;a.i=d;return e};
tw=function(a){var b=a.i;a.i=0;var c=1E6;cw(a,[408125543,357149030,2807729])&&(c=jw(a));a.i=b;return c};
Nfa=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!uw(a)||!ew(a,160))return a.i=c,NaN;fw(a,!0);var d=a.i;if(!ew(a,161))return a.i=c,NaN;fw(a,!0);nw(a);var e=nw(a)<<8|nw(a);a.i=d;if(!ew(a,155))return a.i=c,NaN;d=jw(a);a.i=c;return(e+d)*b/1E9};
uw=function(a){if(!vw(a)||!ew(a,524531317))return!1;fw(a,!0);return!0};
vw=function(a){if(iw(a)){if(!ew(a,408125543))return!1;fw(a,!0)}return!0};
cw=function(a,b){for(var c=0;c<b.length;c++){if(!ew(a,b[c]))return!1;c!==b.length-1&&fw(a,!0)}return!0};
ew=function(a,b,c){c=void 0===c?!1:c;if(bw(a))return!1;for(var d=a.i;fw(a,!1)!==b;)if(kw(a),d=a.i,bw(a))return!1;c&&(a.i=d);return!0};
gw=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};
mw=function(a,b){var c=new Uint8Array(a.l.buffer,a.l.byteOffset+a.i,b);a.i+=b;return c};
yw=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.L=[];this.I="";this.va=-1;this.I=void 0===d?"":d;this.va=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.rb=l||0;this.l=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.rb+this.l===this.range.length:void 0===p?!!this.l:p;this.yd=a;this.range?(this.C=this.startTime+this.duration*this.rb/this.range.length,this.J=this.duration*this.l/this.range.length,this.B=this.C+this.J):ww(this);3!==this.type||0<=this.va||
!this.i.Qf()||g.ht(new g.Tr("b168859904",xw(this)))};
ww=function(a){a.C=a.startTime;a.J=a.duration;a.B=a.C+a.J};
Ofa=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.va!==a.va);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.rb+b.l===a.rb+a.l:d};
zw=function(a){return 1===a.type||2===a.type};
Aw=function(a){return 3===a.type||6===a.type};
qv=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.rb+a.l===b.range.start+b.rb:a.va===b.va?a.rb+a.l===b.rb:a.va+1===b.va&&0===b.rb&&a.yd:!1};
Bw=function(a,b){return qv(a,b)||he(a.B,b.C)||a.va+1===b.va&&0===b.rb&&a.yd?!0:!1};
Pfa=function(a){1===a.length||g.fh(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new hv(a[0].range.start+a[0].rb,b.range.start+b.rb+b.l-1)};
xw=function(a){a=Cw(a);var b="";g.Cb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
Cw=function(a){var b={};b.itag=a.i.info.Vb();b.type=""+a.type;b.seg=String(a.va);a.range&&(b.range=""+(a.range.start+a.rb)+"-"+(a.range.start+a.rb+a.l-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.J).toFixed(1);b.off=String(a.rb);b.len=String(a.l);a.yd&&(b.end="1");a.u&&(b.eos="1");return b};
Dw=function(a,b){var c=b.i;a.I="updateWithEmsg";a.va=c;b.B&&(a.u=b.B)};
Ew=function(a,b){var c=b.va;a.I="updateWithSegmentInfo";a.va=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,ww(a)};
Fw=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.u=this.l=0;this.B=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Gw=function(a,b){if(0===a.i.length)return!1;var c=a.i[a.i.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
Hw=function(a,b){for(var c=g.q(b.i),d=c.next();!d.done;d=c.next())a.append(d.value)};
Iw=function(a){a.B=void 0;a.l=0;a.u=0};
Jw=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.l].length};
Kw=function(a){if(!a.B){var b=a.i[a.l];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
Lw=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(!Jw(a,b,c)){var d=a.l,e=a.u;a.focus(b+c-1);e=new Uint8Array(a.u+a.i[a.l].length-e);for(var f=0,h=d;h<=a.l;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.l-d+1,e);Iw(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)};
uv=function(a,b,c){a=Lw(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Mw=function(a){a=uv(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};
Nw=function(a,b){a.focus(b);return a.i[a.l][b-a.u]};
Ow=function(a,b){a.focus(b);return Jw(a,b,4)?Kw(a).getUint32(b-a.u):256*(256*(256*Nw(a,b)+Nw(a,b+1))+Nw(a,b+2))+Nw(a,b+3)};
Pw=function(a,b,c){this.info=a;this.u=c;this.l=null;this.B=-1;this.timestampOffset=0;this.i=b instanceof Fw?b:new Fw([b])};
Qw=function(a){return Lw(a.i)};
Rw=function(a,b){if(1!==a.info.i.info.containerType||a.info.rb||!a.info.yd)return!0;for(var c=Qw(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};
Sw=function(a,b,c){var d;if(!(d=!qv(a.info,b.info)||a.info.yd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?Gw(a.i,c.i[0]):1);d=c}if(d)return null;c=new yw(a.info.type,a.info.i,a.info.range,a.info.I,a.info.va,a.info.startTime,a.info.duration,a.info.rb,a.info.l,a.info.u,a.info.yd);d=b.info;c.l+=d.l;c.range&&(c.J+=d.J);c.B=d.B;c.yd=d.yd;c.u=c.u||d.u;d=new Fw;Hw(d,a.i);Hw(d,b.i);c=new Pw(c,d,a.u);c.l=b.l||a.l;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.u=!1);return c};
Uw=function(a){g.Tw(a.info.i.info)||a.info.i.info.ce();if(-1!==a.B)return a.B;if(a.l&&Kv(a.l))return a.B=Kv(a.l),a.B;if(g.Tw(a.info.i.info)){var b=Qw(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;Sv(b,f);){var h=Tv(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=Pv(h):1952867444===h.type&&isNaN(d)&&(d=Vv(h));f=Uv(h.type)?f+8:f+h.size}!e&&c&&(e=Qv(c));b=d/e}else b=new aw(Qw(a)),c=a.u?b:new aw(new DataView(a.info.i.i.buffer)),d=tw(c),c=b.i,b.i=0,uw(b)?ew(b,231)?(d=jw(b)*
d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.B=b||a.info.C;return a.B};
Ww=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Uw(a)+b;Vw(a,c);a.timestampOffset=b};
Vw=function(a,b){g.Tw(a.info.i.info)||a.info.i.info.ce();a.B=b;if(g.Tw(a.info.i.info)){for(var c=Qw(a),d=a.info.i.i,e=NaN,f=NaN,h=0;Sv(c,h);){var l=Tv(c,h);isNaN(e)&&(1936286840===l.type?e=l.data.getUint32(l.dataOffset+8):1836476516===l.type&&(e=Pv(l)));if(1952867444===l.type){!e&&d&&(e=Qv(d));var m=Vv(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=Uv(l.type)?h+8:h+l.size}return!0}c=new aw(Qw(a));e=a.u?c:new aw(new DataView(a.info.i.i.buffer));d=b;f=tw(e);e=c.i;c.i=0;if(uw(c)&&ew(c,231))if(h=fw(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.l.setUint8(c.i+f,d&255),d>>>=8;c.i=e;c=!0}else c=!1;return c};
Xw=function(a){g.Tw(a.info.i.info)||a.info.i.info.ce();if(a.l&&6===a.info.type)return a.l.Ch;if(g.Tw(a.info.i.info)){var b=Qw(a);var c=0;b=Zv(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Wv(d.value),c+=d.kv[0]/d.ov;c=c||NaN;if(!(0<=c))a:{c=Qw(a);b=a.info.i.i;for(var e=d=0,f=0;Sv(c,d);){var h=Tv(c,d);if(1836476516===h.type)e=Pv(h);else if(1836019558===h.type){!e&&b&&(e=Qv(b));if(!e){c=NaN;break a}var l=Rv(h.data,h.dataOffset,1953653094),m=e,n=Rv(l.data,l.dataOffset,1952868452);l=
Rv(l.data,l.dataOffset,1953658222);var p=Av(n);Av(n);p&2&&Av(n);n=p&8?Av(n):0;var r=Av(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var F=Bv(l);t&&Av(l);p&&Av(l);for(var D=t=0;D<F;D++){var G=w?Av(l):n;x&&Av(l);p&&0===D||!y||Av(l);r&&Av(l);t+=G}f+=t/m}d=Uv(h.type)?d+8:d+h.size}c=f||NaN}}else c=new aw(Qw(a)),b=a.u?c:new aw(new DataView(a.info.i.i.buffer)),c=Nfa(c,tw(b));return c||a.info.J};
Yw=function(a){var b=Qw(a);var c=(c=g.Nv(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.Nv(b,0,1836476516))?Pv(b):a?Qv(a):NaN);return c};
Zw=function(a){if(!a.l){g.Tw(a.info.i.info)||a.info.i.info.ce();if(g.Tw(a.info.i.info)){var b=Qw(a),c=Rv(b,0,1701671783);if(c){var d=Xv(c);var e=d.jQ;d=Mv(d.NE);if(b=Rv(b,c.offset+c.size,1701671783))if(b=Xv(b),b=Mv(b.NE),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 Hv(d,e):null}else e=null}else{e=new aw(Qw(a));d=e.i;e.i=0;c=b=null;if(cw(e,[408125543,307544935,29555,26568]))for(f=dw(e);!bw(f);){var h=fw(f,!1);17543===h?c=Mv(ow(f)):17827===h?b=ow(f):
kw(f)}e.i=d;e=c?new Hv(c,b):null}a.l=e}};
Hx=function(){this.i=.125;this.l=!1;this.u=0;this.yf=!1};
Ix=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Xi?!1:c.Xi;var e=new Hx;e.l=a.Z("html5_streaming_xhr_no_mp4_holdback_chunk");e.u=g.S(a.experiments,"html5_time_based_consolidation_ms");a.Z("html5_resume_streaming_requests")&&(e.i=0);e.yf=d||c;return e};
g.Jx=function(){this.B=new Hx;this.om=this.nm=!1;this.fm=2;this.I=20971520;this.J=8388608;this.C=120;this.Za=3145728;this.ca=62914560;this.ib=10485760;this.gm=this.jm=this.De=0;this.np=!1;this.W=NaN;this.gh=0;this.Ri=this.Dp=2;this.Bf=3;this.wm=2;this.ia=2097152;this.tm=1048576;this.La=!1;this.Kc=1800;this.dm=5;this.Y=15;this.qd=1;this.l=1.15;this.u=1.05;this.lm=!0;this.ma=!1;this.xm=.8;this.Dk=this.kc=!1;this.Db=6;this.Hj=this.Wa=!1;this.fh=.5;this.lc=0;this.Oh=this.oc=!1;this.Xe=this.Ce=0;this.ep=
2;this.jc=5E3;this.Bk=6;this.Pa=this.km=!1;this.X=.5;this.wc=2;this.tc=this.Qo=0;this.To=1.5;this.Zo=this.eh=.5;this.Zc=15;this.cm=1;this.zm=this.We=!1;this.em=0;this.Aj=this.Uj=this.Io=this.rm=this.Gj=this.Ye=this.qm=this.mm=!1;this.Ze=0;this.Am=this.Zl=this.ro=this.Eg=!1;this.Hd=0;this.Ac=this.Sb=this.Kh=this.Jp=this.Af=this.Ja=this.Po=this.Ve=this.Bm=!1;this.Ha=!0;this.Fc=this.la=this.pm=this.Ca=!1;this.zj=!0;this.Cf=!1;this.i="";this.Cs=1048576;this.Ek=this.Lh=this.Sc=this.tj=!1;this.Vd=46800;
this.ea=this.sj=this.Qh=this.Tc=this.Zg=!1;this.zp=!0;this.vj=this.jj=this.sm=this.ym=this.hj=this.Si=this.vo=!1;this.za=0;this.Bj="";this.kj=this.gj=!1;this.ga=!0;this.Mh=this.Jh=this.Ck=this.qp=this.af=!1;this.ld=0;this.L=this.Yi=this.Cm=this.Ij=this.Pf=!1};
Qfa=function(a,b){1080<b.Na().i&&!a.nm&&(a.I=36700160,a.J=5242880,a.Za=10485760,a.ia=4194304,a.nm=!0);2160<b.Na().i&&!a.om&&(a.I=104857600,a.W=13107200,a.om=!0);a.tm=Math.max(65536,Math.min(a.ia,5*b.l))};
Lx=function(a){a=a.split("");Kx.vd(a,2);Kx.r1(a,2);Kx.vd(a,1);Kx.Yp(a,54);Kx.Yp(a,14);Kx.Yp(a,12);Kx.vd(a,3);return a.join("")};
Mx=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.ht(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Ox=function(a,b,c){return b&&b.test(a)||Nx&&c&&c.test(a)?!0:!1};
Qx=function(a){return(a=Px&&Px.exec(a))?a[0]:""};
Rx=function(a){var b=void 0===b?!1:b;return Mx(Ox(a,Rfa,Sfa),a,b,"Trusted Stream URL")};
g.Sx=function(a){var b=void 0===b?!1:b;return Mx(Ox(a,Tfa,Ufa),a,b,"Trusted Image URL")};
Tx=function(a){var b=void 0===b?!1:b;return Mx(Ox(a,Vfa,null),a,b,"Trusted Promoted Video Domain URL")};
Xfa=function(a){var b=void 0===b?!1:b;return Mx(Ox(a,Wfa,null),a,b,"Drm Licensor URL")};
Ux=function(a,b){b=void 0===b?!1:b;return Mx(Ox(a,Yfa,Zfa),a,b,"Captions URL")};
Vx=function(a){a=new g.Lm(a);g.Mm(a,document.location.protocol);g.Nm(a,document.location.hostname);document.location.port&&g.Om(a,document.location.port);return a.toString()};
Wx=function(a){a=new g.Lm(a);g.Mm(a,document.location.protocol);return a.toString()};
Xx=function(a,b){this.l=a;this.B=void 0===b?!1:b;this.u=this.path=this.scheme="";this.i={};this.url=""};
Yx=function(a){a.url||(a.url=$fa(a));return a.url};
$x=function(a){Zx(a);return a.u};
ay=function(a){return a.l?pc(a.l,"local"):"local"===a.scheme};
by=function(a){Zx(a);return g.Fb(a.i,function(b){return null!==b})};
cy=function(a){Zx(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=Yx(a);b=new g.Lm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.i.replace(/^[^.]*/,""),g.Nm(b,"r"+d+"---"+a[1]+c),b=new Xx(b.toString()),b.set("fallback_count","1"),b;d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Nm(b,"redirector.googlevideo.com"),c=b.toString()):b.i.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Nm(b,"www.youtube.com"),c=b.toString()):c=Vx(c);b=new Xx(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Zx=function(a){if(a.l){if(!Rx(a.l)&&!a.l.startsWith("local"))throw Error("Untrusted URL: "+a.l);var b=g.Tm(a.l);a.scheme=b.B;a.u=b.i+(null!=b.u?":"+b.u:"");var c=b.getPath();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.i;a.i=dy(c);
g.Ra(a.i,ey(b.l.toString()));g.Ra(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.l="";a.url="";a.B&&(b=a.get("n"))&&(b=Xda(b),a.set("n",b))}};
$fa=function(a){Zx(a);var b=a.scheme+(a.scheme?"://":"//")+a.u+a.path;if(by(a)){var c=[];g.Cb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
dy=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&fy(c,a[b],a[b+1]);return c};
ey=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?fy(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
fy=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};
gy=function(a){this.Ig=a;this.i={};this.url=""};
hy=function(a,b){var c=b.indexOf("?");if(0<c){var d=ey(b.substr(c+1));g.Cb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=dy(b);g.Cb(c,function(e,f){this.set(f,e)},a)};
g.iy=function(a){a.url||(a.url=aga(a));return a.url};
aga=function(a){var b=Yx(a.Ig),c=[];g.Cb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=by(a.Ig)?"&":"?";return b+a+d};
jy=function(a,b){var c=new Xx(b),d=c.get("req_id");d&&a.set("req_id",d);g.Cb(a.i,function(e,f){c.set(f,null)});
return c};
cga=function(){this.u=this.i=this.l=this.started=this.B=0};
dga=function(a){a.B=(0,g.Q)();a.started+=1};
ky=function(a,b){var c=a.started+4*a.i;b&&(c+=a.u);return Math.pow(1.6,c)};
ly=function(a,b){a[b]||(a[b]=new cga);return a[b]};
ega=function(a){this.u=null;this.C=this.l=0;this.i=a;this.B=a.clone()};
ny=function(a,b,c){var d=ly(c,$x(a.i));if(d.l>=b.ep||1<=d.i)if(a=my(a),c=ly(c,$x(a)),c.l+c.i<=d.l+d.i)return!0;return!1};
fga=function(a,b){var c=b?my(a):a.i;return new gy(c)};
my=function(a){a.u||(a.u=cy(a.B));return a.u};
oy=function(a){return 1<a.l?a.C+1E3*Math.pow(1.6,a.l-1)<(0,g.Q)():!0};
g.py=function(a,b,c){b.Ig===a.i&&(a.i=jy(b,c));b.Ig===a.u&&(a.u=jy(b,c))};
qy=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.u=!1;this.C=null;this.L=0;this.B=null;this.W=NaN;this.I=null;this.info=b;this.l=new ega(a)};
ry=function(a,b){this.info=a;this.callback=b;this.L=!1;this.B=0;this.C=!1;this.i=null;this.state=1};
sy=function(a){return g.fh(a.info.i,function(b){return 3===b.type})};
ty=function(a,b){a.state=b;a.Hr(b)};
gga=function(a){a.i&&a.i.B?(a=a.i.B,a=new yw(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.va,a.startTime+a.duration,0,a.rb+a.l,0,!1)):(a=a.info.i[0],a=new yw(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.va,a.startTime,0,a.rb,0,!1));return a};
uy=function(a,b,c,d,e,f,h,l,m,n){this.va=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.md=n;this.endTime=b+c;this.l=h||0;this.range=f||null;this.pending=l||!1;this.md=n||null};
hga=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d};
vy=function(a,b){this.i=a;this.I="";this.B=this.le=NaN;this.C=this.requestId=null;this.l=a[0].i.l;this.u=b||"";this.range=this.i[0].range&&0<this.i[0].l?Pfa(this.i):null};
wy=function(a){return!zw(a.i[a.i.length-1])};
yy=function(a){return 4===a.i[a.i.length-1].type};
g.zy=function(a,b,c){if(a.I){var d=new gy(new Xx(a.I));a.u&&hy(d,a.u)}else/http[s]?:\/\//.test(a.u)?d=new gy(new Xx(a.u)):(b=null===a.C?ny(a.l,b,c):a.C,d=fga(a.l,b),a.u&&hy(d,a.u));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.le)||d.set("headm",a.le.toString());isNaN(a.B)||d.set("mffa",a.B+"ms");a.urlParams&&g.Cb(a.urlParams,function(e,f){d.set(f,e)});
return d};
Ay=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.J*a.i.info.l)};
By=function(a,b,c){var d=a.i[0];if(a.range)var e=jv(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.u&&0<=a.u.indexOf("/range/")||"1"===a.l.B.get("defrag")||"1"===a.l.B.get("otf"))return null;e=jv(0,4096)}else if(d.i.info.video)return null;c=new yw(5,d.i,e,"createProbeRequestInfo"+d.I,d.va);a=new vy([c],a.u);a.C=b;return a};
g.Cy=function(){this.count=0;this.u=1;this.l=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
Dy=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
Ey=function(a,b,c,d,e,f){qy.call(this,a,b,c,d);this.contentLength=e;this.lastModified=f;this.J=null;this.index=new g.Cy};
Fy=function(a,b,c,d){for(var e=[];b<=a.index.Rb();b++){var f=a.index,h=b;f=jv(f.ck(h),h+1<f.count||f.l?f.offsets[h+1]-f.offsets[h]:-1);h=a.index.jf(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.Rb()&&m+n===f.length;e.push(new yw(3,a,f,"getRequestInfoForRange",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new vy(e)};
Gy=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.ce=!1};
Hy=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{for(var m=b.subarray(c+f,c+f+l),n=new ho,p=new ff(m);gf(p)&&4!=p.l;){var r;switch(p.u){case 2:f=r=kf(p);g.Jf(n,2).push(f);break;case 4:r=kf(p);g.Lf(n,4,r);break;case 7:r=ef(p.i);g.Lf(n,7,r);break;case 9:r=ef(p.i);g.Lf(n,9,r);break;case 10:r=ef(p.i);
g.Lf(n,10,r);break;case 11:r=df(p.i);g.Lf(n,11,r);break;case 12:r=ef(p.i);g.Lf(n,12,r);break;case 13:f=r=kf(p);g.Jf(n,13).push(f);break;case 14:r=new io;f=p;var t=r,w=Wda,x=f.i.u,y=ef(f.i),F=f.i.i+y;f.i.u=F;w(t,f);f.i.i=F;f.i.u=x;f=n;t=r;w=io;var D=g.Nf(f,w,14),G=t?t:new w;var K=g.Jf(f,14);D.push(G);K.push(g.Of(G));break;case 15:r=jf(p);g.Lf(n,15,r);break;case 16:r=jf(p);g.Lf(n,16,r);break;case 17:r=ef(p.i);g.Lf(n,17,r);break;case 1:r=df(p.i);g.Lf(n,1,r);break;case 3:r=jf(p);g.Lf(n,3,r);break;case 5:r=
jf(p);g.Lf(n,5,r);break;case 6:r=jf(p);g.Lf(n,6,r);break;case 8:r=kf(p);g.Lf(n,8,r);break;default:hf(p)}}f=n;if(null!==f){var J=f;break a}}catch(H){}}c+=e}J=null}catch(H){J=null}}if(null!=J)for(b=g.Jf(J,7),null==b||a.ce||(a.cryptoPeriodIndex=b),b=g.Jf(J,10),null!=b&&0<b&&!a.ce&&(a.i=b),J=g.Jf(J,2),J=!J.length||J[0]instanceof Uint8Array?J:g.Qc(J,$aa),J=g.q(J),b=J.next();!b.done;b=J.next())a.l.push(g.sf(b.value,4))};
Iy=function(a){this.i=a;this.offset=0};
Jy=function(a){if(a.offset>=a.i.totalLength)throw Error();return Nw(a.i,a.offset++)};
Ky=function(a,b){b=void 0===b?!1:b;var c=Jy(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=Jy(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+Jy(a),d*=128;return b?c:c-d};
Ly=function(a,b,c){g.R.call(this);var d=this;this.u=a;this.l=[];this.i=null;this.Y=-1;this.L=0;this.ea=NaN;this.W=0;this.B=b;this.Pa=c;this.I=NaN;this.la=0;this.ma=-1;this.C=this.X=this.Ja=this.Ca=this.za=this.Ha=this.ia=this.J=this.ca=null;this.u.i&&(this.C=new Bfa(this.u,this.B),this.C.I.promise.then(function(e){d.C=null;1==e&&d.V("localmediachange",e)},function(){d.C=null;
d.V("localmediachange",4)}),Cfa(this.C));
this.La=!1;this.ga=0};
My=function(a){return a.l.length?a.l[0]:null};
Ny=function(a){return a.l.length?a.l[a.l.length-1]:null};
Uy=function(a,b,c){if(a.ia){if(a.u.gj){var d=a.ia;var e=c.info;d=d.va!==e.va&&e.va!==d.va+1||d.type!==e.type||he(d.C,e.C)&&d.va===e.va?!1:Bw(d,e)}else d=Bw(a.ia,c.info);d||(a.I=NaN,a.la=0,a.ma=-1)}a.ia=c.info;a.B=c.info.i;0==c.info.rb?Oy(a):!a.B.Qf()&&a.J&&Dw(c.info,a.J);a.i?(c=Sw(a.i,c),a.i=c):a.i=c;a:{c=g.Tw(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.yd)break a;6===a.i.info.type?Py(a,b,a.i):Qy(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.Y&&0==a.L){var f=a.i.i,h=-1;e=-1;if(c){for(var l=
0;l+8<f.totalLength;){var m=Ow(f,l),n=Ow(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 Iy(f);for(m=l=!1;;){n=f.ck();var p=f;try{var r=Ky(p,!0),t=Ky(p,!1);var w=r;var x=t}catch(F){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.ck()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.ck()+y);if(160===p){0>h&&(e=h=f.ck()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.L=e-h}if(a.Y>
d)break;a.Y?(d=Ry(a,a.Y),d.u&&!a.B.Qf()&&Sy(a,d),Py(a,b,d),Ty(a,d),a.Y=0):a.L&&(d=Ry(a,0>a.L?Infinity:a.L),a.L-=d.i.totalLength,Ty(a,d))}}a.i&&a.i.info.yd&&(Ty(a,a.i),a.i=null)};
Qy=function(a,b){!a.B.Qf()&&0==b.info.rb&&(g.Tw(b.info.i.info)||b.info.i.info.ce())&&Zw(b);if(1===b.info.type)try{Sy(a,b),Vy(a,b)}catch(d){g.ro(d);var c=Cw(b.info);c.hms="1";a.V("error",c||{})}b.info.i.ty(b);a.C&&tv(a.C,b)};
iga=function(a){var b=a.l.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
Wy=function(a){return g.Qc(a.l,function(b){return b.info})};
Ry=function(a,b){var c=a.i,d=Math.min(b,c.i.totalLength);if(d==c.i.totalLength)return a.i=null,c;d=Math.min(d,c.info.l);var e=c.i.split(d),f=e.Yt;e=e.Kn;var h=new yw(c.info.type,c.info.i,c.info.range,c.info.I,c.info.va,c.info.startTime,c.info.duration,c.info.rb,d,!1,!1);f=new Pw(h,f,c.u);c=new yw(c.info.type,c.info.i,c.info.range,c.info.I,c.info.va,c.info.startTime,c.info.duration,c.info.rb+d,c.info.l-d,c.info.u,c.info.yd);c=new Pw(c,e,!1);c=[f,c];a.i=c[1];return c[0]};
Sy=function(a,b){var c=Qw(b);if(!a.u.rm&&Xy(b.info.i.info)&&"bt2020"===b.info.i.info.Na().primaries){var d=new aw(c);cw(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;Yy(d)&&!Xy(d)&&(d=Qw(b),iw(new aw(d)),hw([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Tw(d.info)?d.B=Gfa(c):d.info.ce()&&(d.B=Lfa(c))));b.info.i.info.ce()&&
b.info.isVideo()&&(c=Qw(b),iw(new aw(c)),hw([408125543,374648427,174,224],30320,c)&&hw([408125543,374648427,174,224],21432,c));if(a.u.Pf&&b.info.i.info.ce()){c=Qw(b);var e=new aw(c);if(cw(e,[408125543,374648427,174,29637])){d=fw(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.B.info.audio&&g.Tw(b.info.i.info)){d=Qw(b);c=g.Nv(d,0,1701606260);f=g.Nv(d,0,1836476516);if(c&&f){c.skip(2);var h=zv(c),l=Bv(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(Cv(c)),
e.push(Cv(c)),m.push(zv(c)),n.push(zv(c));else for(h=0;h<l;++h)d.push(Av(c)),e.push(Av(c)),m.push(zv(c)),n.push(zv(c));c=Pv(f);c=new Ffa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.Tw(b.info.i.info))for(d=Qw(b),e=g.Nv(d,0,1701082227);e;)e.markAsSkip(),e=g.Nv(d,e.offset+e.size,1701082227);a.La=!0;b.info.i.I=c}}a.B.Qf()||b.info.i.i||b.info.i.indexRange||(g.Tw(b.info.i.info)?(c=Qw(b),(d=Rv(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 aw(Qw(b))),c&&(b.info.i.i=c))};
Py=function(a,b,c){if(a.B.Qf()){if(a.La&&a.B.Qf()&&c.info.va==c.info.i.index.Rb()&&(b=Qw(c),b=g.Nv(b,0,1953658222))){b.skip(1);var d=yv(b)<<16|zv(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=Bv(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Bv(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.ca&&!!a.ca.B.I)if(b=c.info.isVideo())b=Yw(c),h=a.ca,Zy?(l=1/b,b=$y(a,b)>=$y(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.B.Qf()&&c.info.va==c.info.i.index.Rb()&&
(b=a.ca,Zy?(l=Yw(c),h=1/l,l=$y(a,l),b=$y(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,Ov(Qw(c),b))}else{h=!1;a.J||(Zw(c),c.l&&(a.J=c.l,h=!0,Dw(c.info,c.l),l=c.info.i.info,f=Qw(c),g.Tw(l)?Yv(f,1701671783):l.ce()&&hw([408125543],307544935,f)));if(f=l=Xw(c))f=c.info.i.info.ce()&&160===Nw(c.i,0);if(f)a.W+=l,a.I=NaN;else{if(a.u.ro){var n=a.Pa(Uw(c),1);e=n;if(0<=a.I&&6!==c.info.type){f=n-a.I;var p=f-a.la;d=c.info.va;var r=a.Ha?a.Ha.va:-1,t=a.Ca?a.Ca:-1,w=a.za?a.za:-1;m=a.u.Hd&&f>a.u.Hd;
var x=a.u.ld&&p>a.u.ld;1E-4<Math.abs(p)&&(a.u.Zl&&a.V("avsyncissue",{audio:""+ +!!a.B.info.audio,sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)}),a.ma=d);n=0;a.u.Am&&(m||x||(e=a.I),a.u.Bm&&a.ca&&!a.B.info.audio&&g.Tw(c.info.i.info)&&(x=a.ca,m=x.ma,x=x.la,p=.02<Math.abs(x-f),(d==m||d>m&&d>a.ma)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Ov(Qw(c),d),d=Xw(c),n=l-d,l=d)));a.la=f+n}}else isNaN(a.I)?
e=c.info.startTime:e=a.I;Vw(c,e)?(isNaN(a.ea)&&(a.ea=e),a.W+=l,a.I=e+l):(l=Cw(c.info),l.smst="1",a.V("error",l||{}))}a.Ha=c.info;a.za=Xw(c);c.B&&(a.Ca=c.B);if(h&&a.J){h=az(a,!0);Ew(c.info,h);a.i&&Ew(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())Ew(l.value,h);(c.info.yd||a.i&&a.i.info.yd)&&6!==c.info.type||(a.X=h,a.V("placeholderinfo",h),a.u.L||bz(a))}}Vy(a,c);a.ga&&Ww(c,a.ga)};
Ty=function(a,b){if(b.info.yd){a.Ja=b.info;if(a.J){var c=az(a,!1);a.V("segmentinfo",c);a.X||a.u.L||bz(a);a.X=null}Oy(a)}a.C&&tv(a.C,b);if(c=Ny(a))if(c=Sw(c,b,a.u.Si)){a.l.pop();a.l.push(c);return}a.l.push(b)};
Oy=function(a){a.i=null;a.Y=-1;a.L=0;a.J=null;a.ea=NaN;a.W=0;a.X=null};
Vy=function(a,b){if(a.B.info.Qd){if(b.info.i.info.ce()){var c=new aw(Qw(b));if(cw(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=fw(c,!0);c=16!==d?null:mw(c,d)}else c=null;d="webm"}else b.info.L=Jfa(Qw(b)),c=Kfa(b.info.L),d="cenc";c&&c.length&&(c=new Gy(c,d),c.ce=b.info.i.info.ce(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.u.jj&&b.l&&b.l.u&&(c.i=b.l.u),a.V("needkeyinfo",c))}};
bz=function(a){var b=a.J,c=Jv(b);c&&(c.startSecs+=a.ea,a.V("cuepoint",c,b.i))};
az=function(a,b){var c,d=a.J;a.u.L&&(c=Jv(d))&&(c.startSecs+=a.ea);if(d.data["Stitched-Video-Id"]||d.data["Stitched-Video-Cpn"]||d.data["Stitched-Video-Duration-Us"]||d.data["Stitched-Video-Start-Frame-Index"]||d.data["Serialized-State"]){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.q(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,
-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.q(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}e=new hga(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new uy(d.i,a.ea,b?d.Ch:a.W,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
$y=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ga*b)/b:a.ga;a.B.I&&c&&(c+=a.B.I.i);return c+a.getDuration()};
cz=function(a,b){0>b||(a.l.forEach(function(c){return Ww(c,b)}),a.ga=b)};
g.dz=function(){this.segments=[]};
ez=function(a,b){if(b>a.Rb())a.segments=[];else{var c=bb(a.segments,function(d){return d.va>=b},a);
0<c&&a.segments.splice(0,c)}};
fz=function(a,b,c,d,e,f){f=void 0===f?0:f;qy.call(this,a,b,d,void 0);this.X=c;this.Ch=f;this.J=!0;this.index=e||new g.dz;this.Un()&&(this.u=!0)};
gz=function(a,b){this.i=a;this.I=this.C=!1;this.l=0;this.u=null;this.slices=[];this.B=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].l||(this.i[0].l=this.length):1===this.i.length||g.fh(this.i,function(c){return!!c.range})};
hz=function(a,b,c){a.u&&(Hw(a.u,b),b=a.u,a.u=null);for(var d=0,e=0,f=g.q(a.i),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.l<=a.l)d+=h.l;else{if(zw(h)&&!c&&a.l+b.totalLength-e<d+h.l){a.u=b.split(e).Kn;break}var l=a.l-d;var m=a;if(1===h.type)m.C=!0,m=!1;else if(3===h.type||4===h.type){var n=m.C&&!m.I;m.I=!0;m=n}else m=!1;m=m||h.i.Un()&&!l;n=a;var p=e,r=b,t=!!c,w=r.totalLength-p;h.range&&(w=Math.min(h.l-l,w));t=h.range?h.rb+l+w===h.range.length:t;l=new yw(h.type,h.i,h.range,"reslice"+h.I,
h.va,h.startTime,h.duration,h.rb+l,w,t&&h.u,t);t=w;p=r.split(p).Kn.split(t).Yt;n.slices.push(new Pw(l,p,m));l=w;a.l+=l;e+=l;d+=h.l;if(e===b.totalLength)break}};
iz=function(a){var b=a.slices;a.slices=[];a.B=g.ab(b).info;return b};
jga=function(a){return a.length-a.l+a.slices.reduce(function(b,c){return b+c.i.totalLength},0)};
jz=function(){g.R.apply(this,arguments);this.i={}};
kga=function(a,b){return new g.M(function(){a.i[b].isFailed=!0;a.V("FAILED",{formatId:b})},3E3)};
lga=function(a){return Object.values(a.i).some(function(b){return 0<b.bytesShifted})};
mga=function(a){return Object.keys(a.i).every(function(b){return a.isComplete(b)})};
nga=function(a){return Object.values(a.i).some(function(b){return b.isFailed})};
kz=function(a,b,c,d){ry.call(this,b,d);this.formatId=a;this.l=c;this.i=new gz(this.info.i,this.info.range.length);oga(this);this.l.isFailed(this.formatId)?ty(this,6):this.l.isComplete(this.formatId)?ty(this,5):this.l.rg(this.formatId)&&ty(this,2)};
oga=function(a){a.l.subscribe("PROGRESS",function(b){b.formatId===a.formatId&&ty(a,Math.max(2,a.state))});
a.l.subscribe("DONE",function(b){b.formatId===a.formatId&&ty(a,5)});
a.l.subscribe("FAILED",function(b){b.formatId===a.formatId&&ty(a,6)})};
lz=function(a){for(;a.l.rg(a.formatId);){var b=a.i,c=a.l.Bh(a.formatId);var d=a.l;var e=a.formatId;d=0===d.i[e].expectedBytes-d.i[e].bytesShifted&&d.isComplete(e);hz(b,c,d)}};
mz=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
nz=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)};
oz=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};
pz=function(a,b){return 0<=oz(a,b)};
pga=function(a,b){if(!a)return NaN;var c=oz(a,b);return 0<=c?a.start(c):NaN};
qz=function(a,b){if(!a)return NaN;var c=oz(a,b);return 0<=c?a.end(c):NaN};
rz=function(a){return a&&a.length?a.end(a.length-1):NaN};
sz=function(a,b){var c=qz(a,b);return 0<=c?c-b:0};
tz=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 mz(d,e)};
uz=function(a,b,c){c=void 0===c?function(d){return d}:c;
this.X=a;this.i=b;this.u=[];this.B=new Ly(a,b,c);this.l=this.J=null;this.ma=0;this.ca=b.info.l;this.ga=0;this.L=b.mr();this.I=-1;this.za=b.mr();this.C=this.L;this.W=!1;this.Y=-1;this.ea=null;this.ia=0;this.la=!1};
vz=function(a,b){b&&Zy&&cz(a.B,b.ky());a.J=b};
wz=function(a){return a.J&&a.J.Kt()};
xz=function(a,b){a.u.push(b);a.l=g.ab(b.info.i)};
zz=function(a){for(;a.u.length&&5==a.u[0].state;){var b=a.u.shift();yz(a,b);a.ma=b.AD()}a.u.length&&(b=a.u[0],b.kp()&&(!b.info.kh()||b instanceof kz)&&yz(a,b))};
yz=function(a,b){if(b.kp())for(var c=g.q(b.kB()),d=c.next();!d.done;d=c.next())Az(a,b,d.value)};
Az=function(a,b,c){switch(c.info.type){case 1:case 2:Qy(a.B,c);break;case 4:var d=c.info.i.iB(c);c=c.info;var e=a.l;e&&e.i===c.i&&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.va===c.va&&e.rb===c.rb&&e.l===c.l&&(a.l=g.ab(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())Az(a,b,c.value);break;case 3:Uy(a.B,b,c);break;case 6:Uy(a.B,b,c),a.l=c.info}};
Ez=function(a,b,c){c=void 0===c?!1:c;if(a.J){var d=a.J.He(),e=qz(d,b),f=NaN,h=wz(a);h&&(f=qz(d,h.i.index.jf(h.va)));if(e==f&&a.l&&a.l.l&&Bz(Cz(a),0))return b}a=Dz(a,b,c);return 0<=a?a:NaN};
Gz=function(a,b){a.i.Je();var c=Dz(a,b);if(0<=c)return c;c=a.B;c.C?(c=c.C,c=c.ne&&3===c.ne.type?c.ne.startTime:0):c=Infinity;b=Math.min(b,c);a.l=a.i.pl(b).i[0];Fz(a)&&a.J&&a.J.abort();a.ga=0;return a.l.startTime};
Hz=function(a){a.L=!0;a.C=!0;a.I=-1;Gz(a,Infinity)};
Iz=function(a){var b=0;g.Ab(a.u,function(c){var d=b;c=c.i&&c.i.length?jga(c.i):Ay(c.info);b=d+c},a);
return b+=iga(a.B)};
Jz=function(a,b){if(!a.J)return 0;var c=wz(a);if(c&&c.u)return c.B;c=a.J.He(!0);return sz(c,b)};
Lz=function(a){Kz(a);a=a.B;a.l=[];Oy(a)};
Mz=function(a,b,c,d){Kz(a);for(var e=a.B,f=!1,h=e.l.length-1;0<=h;h--){var l=e.l[h];l.info.va>=b&&(e.l.pop(),e.I-=Xw(l),f=!0)}f&&(e.ia=0<e.l.length?e.l[e.l.length-1].info:null);d>c?Gz(a,d):a.l=a.i.Ik(b-1,!1).i[0]};
Pz=function(a,b){var c;for(c=0;c<a.u.length&&b!==a.u[c];c++);if(c==a.u.length)Nz(a,b);else{for(;c<a.u.length;)Nz(a,a.u.pop());var d=Oz(a);a.X.ga&&d&&d.i.Qf()&&ai(b.info.i,function(e){return e.i===d.i&&e.va===d.va&&!!d.l&&d.rb+d.l>e.rb&&d.rb+d.l<=e.rb+e.l})?a.l=d:Aw(b.info.i[0])?a.l=gga(b):a.l=null}};
Fz=function(a){var b;!(b=!a.X.Qh&&"f"===a.i.info.i)&&(b=a.X.i)&&(b=a.B,b=!!b.C&&pv(b.C));if(b)return!0;b=wz(a);if(!b)return!1;var c=b.u&&b.yd;return a.za&&0<a.Y?c||b.va>=a.Y:c};
Cz=function(a){var b=[],c=wz(a);c&&b.push(c);b=g.nb(b,Wy(a.B));g.Ab(a.u,function(d){g.Ab(d.info.i,function(e){d.L&&(b=g.Ne(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.rb>=e.range.start+e.rb&&f.range.start+f.rb+f.l<=e.range.start+e.rb+e.l:f.va===e.va&&f.rb>=e.rb&&(f.rb+f.l<=e.rb+e.l||e.yd))}));
(Aw(e)||4===e.type)&&b.push(e)})});
a.l&&!Ofa(a.l,g.ab(b),a.l.i.Qf())&&b.push(a.l);return b};
Bz=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Bw(a[c-1],a[c]))return!1;return!0};
Dz=function(a,b,c){c=void 0===c?!1:c;if(!a.l||!a.l.l)return NaN;a=Cz(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.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:Bz(a,c?b:0)?a[b].startTime:NaN};
Qz=function(a){return ai(a.u,function(b){return 3<=b.state})};
Rz=function(a){return!(!a.l||a.l.i==a.i)};
Sz=function(a){return Rz(a)&&a.i.Je()&&a.l.i.info.l<a.i.info.l};
Tz=function(a,b,c){return(a=Oz(a))&&!a.u?a.B>b&&a.B<b+c:!1};
Oz=function(a){var b=Ny(a.B);return b?b.info:wz(a)};
Kz=function(a){g.Ab(a.u,function(b){Nz(this,b)},a);
a.u=[];a.l=null};
Nz=function(a,b){var c=a.X.ga&&b.info.i[0].i.Qf();b.L&&!c&&(c=a.B,c.X&&!c.u.Ve&&c.V("placeholderrollback",c.X),c.X=null,c.J=null,c.ia=c.Ja,c.I-=c.W,Oy(c));b.dispose()};
Uz=function(a){return!!a.l&&-1!=a.l.va&&a.l.va<a.i.index.Th()};
Vz=function(a){var b=a.l;b&&-1==b.va&&(a=Ny(a.B))&&Aw(a.info)&&(a=a.info.va,b.I="updateLastSliceRequested",b.va=a)};
Wz=function(a,b,c,d){a.B.subscribe(b,c,d)};
Xz=function(a){return ai(a.u,function(b){return b.C})};
qga=function(a,b,c,d,e){this.va=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
Yz=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""};
Zz=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};
$z=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};
aA=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
bA=function(){this.i=[];this.l=null;this.I=0;this.u=[];this.C=!1;this.J="";this.B=-1};
rga=function(a){var b=a.u;a.u=[];return b};
sga=function(){this.B=[];this.i=null;this.l={};this.u={}};
wga=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=tga(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=uga(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=vga(a,f));if(null==h)return;h.update(e,c);pb(d,rga(h))}pb(a.B,d);vaa(a.B,function(l){return 1E3*l.startSecs+l.i})};
xga=function(a){a.i&&(a.i.i=[]);g.Cb(a.l,function(b){b.i=[]});
g.Cb(a.u,function(b){b.i=[]})};
tga=function(a){a.i||(a.i=new bA);return a.i};
uga=function(a,b){a.l[b]||(a.l[b]=new bA);return a.l[b]};
vga=function(a,b){a.u[b]||(a.u[b]=new bA);return a.u[b]};
cA=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
dA=function(a){if(a.Lq())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
eA=function(a){a=void 0===a?{}:a;var b=void 0===a.Xi?!1:a.Xi,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.jA?!1:a.jA;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&cA()?3:2:c&&d?-1:1};
fA=function(a){return eA({hasSubfragmentedFmp4:a.B.yf,Xi:a.B.yf,defraggedFromSubfragments:a.Uj,isManifestless:!0,jA:a.ma})};
gA=function(a){var b=void 0===a?{}:a;a=void 0===b.Ch?0:b.Ch;var c=void 0===b.Hi?!1:b.Hi,d=void 0===b.Wj?0:b.Wj,e=void 0===b.Od?0:b.Od,f=void 0===b.Yf?Infinity:b.Yf,h=void 0===b.vr?0:b.vr;b=void 0===b.xe?!1:b.xe;this.segments=[];this.i=this.Qp=-1;this.l=null;this.fg=a;this.Wj=d;this.Hi=c;this.Od=e;this.Yf=f;this.vr=h;this.xe=b};
iA=function(a,b,c){b=hA(a,b);return 0<=b&&(c||!a.segments[b].pending)};
hA=function(a,b){return wb(a.segments,function(c){return b-c.va})};
jA=function(a,b,c){c=void 0===c?{}:c;fz.call(this,a,b,"",void 0,void 0,c.Ch||0);this.index=new gA(c)};
kA=function(a,b,c,d,e){qy.call(this,a,b,d,e);this.J=c;this.index=new g.dz};
lA=function(a,b,c){var d=a.index.iy(b),e=a.index.jf(b),f=a.index.getDuration(b),h=0;c?f=h=0:0<a.info.l&&(h=a.info.l*f);c=b===a.index.Rb()&&0<h;a=new yw(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new vy([a],d)};
yga=function(a,b){if(!a.index.Wc()){for(var c=[],d=b.I,e=b.J.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 uy(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
zga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=xp(b||"","&");var c={};g.Ab(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.U=function(a,b){return"true"===a.flags[b]};
g.S=function(a,b){return Number(a.flags[b])||0};
g.mA=function(a,b){var c=a.flags[b];return c?c.toString():""};
nA=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Aga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
qA=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.quality=f||oA(a,b);this.i=g.pA[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.pA[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.l=l||"";this.primaries=m||"";this.streamType=n||0};
oA=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=rA[0],f=0;f<rA.length;f++){var h=rA[f],l=g.pA[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
uA=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.Qd=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.I=!0;this.isSupported=this.B=null;this.containerType=sA(b);this.l=h||0;this.C=l||0;this.i=tA[this.Vb()]||""};
Yy=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
Xy=function(a){return"9h"===a.i||"(h"===a.i};
vA=function(a){return"1"===a.i};
g.Tw=function(a){return 1===a.containerType};
wA=function(a){return"application/x-mpegURL"===a.mimeType};
xA=function(a){return a.includes("vtt")||a.includes("text/mp4")};
sA=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};
yA=function(a,b,c,d,e){var f=new nA;b in g.pA||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.pA[b],d=Math.round(16*e/9));d=new qA(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new uA(c,a,f,d)};
zA=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
AA=function(){var a=g.Ha("yt.player.utils.videoElement_");a||(a=g.Ie("VIDEO"),g.Da("yt.player.utils.videoElement_",a,void 0));return a};
BA=function(a){var b=AA();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Bga=function(a){try{var b=CA('video/mp4; codecs="avc1.42001E"')||CA('video/webm; codecs="vp9"');return(CA('audio/mp4; codecs="mp4a.40.2"')||CA('audio/webm; codecs="opus"'))&&(b||!a)||BA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
CA=function(a){if(/opus/.test(a)&&(g.DA&&!Cn("38")||g.DA&&Zp("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!eq())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!BA(a)};
EA=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
FA=function(){var a=AA();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
GA=function(){var a=AA();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
HA=function(a,b,c,d){g.R.call(this);var e=this;this.Pc=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.XD={error:function(){!e.na()&&e.isActive&&e.V("error",e)},
updateend:function(){!e.na()&&e.isActive&&e.V("updateend",e)}};
Qt(this.Pc,this.XD);this.Bs=this.isActive};
g.IA=function(a,b,c){this.errorCode=a;this.i=b;this.details=c||{}};
g.JA=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||""};
KA=function(a){var b=void 0===b?!1:b;if(a instanceof g.IA)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.gt(a):g.ht(a);return new g.IA(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
LA=function(a,b,c,d,e){var f;g.R.call(this);var h=this;this.Yb=a;this.ee=b;this.id=c;this.containerType=d;this.isVideo=e;this.xE=this.iu=this.ne=null;this.appendWindowStart=this.timestampOffset=0;this.BC=mz([],[]);this.ct=!1;this.Sd=function(l){return h.V(l.type,h)};
if(null===(f=this.Yb)||void 0===f?0:f.addEventListener)this.Yb.addEventListener("updateend",this.Sd),this.Yb.addEventListener("error",this.Sd)};
MA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
NA=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1};
OA=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaSource=a;this.ee=b;this.isView=c;this.u=0;this.callback=null;this.events=new Nt(this);g.I(this,this.events);this.wr=new NA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.ee.webkitMediaSourceURL,!0);a=this.mediaSource||this.ee;Ot(this.events,a,["sourceopen","webkitsourceopen"],this.C);Ot(this.events,a,["sourceclose","webkitsourceclose"],this.B)};
Cga=function(a,b){PA(a)?g.hm(function(){b(a)}):a.callback=b};
QA=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.u=b,a.ee.webkitSourceSetDuration(b))}catch(c){}};
RA=function(a){return!!a.i||!!a.l};
PA=function(a){try{return"open"===SA(a)}catch(b){return!1}};
TA=function(a){try{return"closed"===SA(a)}catch(b){return!0}};
SA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.ee.webkitSourceState){case a.ee.SOURCE_OPEN:return"open";case a.ee.SOURCE_ENDED:return"ended";default:return"closed"}};
UA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
VA=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.Pc:a.i,f=a.l.isView()?a.l.Pc:a.l,h=new OA(a.mediaSource,a.ee,!0);h.wr=a.wr;e=new HA(e,b,c,d);b=new HA(f,b,c,d);h.i=e;h.l=b;g.I(h,e);g.I(h,b);PA(a)||a.i.xp(a.i.pc());return h};
Dga=function(a,b){return WA(function(c,d){return g.vt(c,d,4,1E3)},a,b)};
g.XA=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=wv(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
WA=function(a,b,c){b.match(Ega);return a(b,c).then(function(d){var e=g.XA(d);return e?WA(a,e,c):d})};
YA=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.R.call(this);this.la=this.duration=0;this.xe=this.J=this.isLive=this.u=!1;this.Yf=this.Od=0;this.isOtf=this.ej=!1;this.ia=(0,g.Q)();this.W=Infinity;this.i={};this.sourceUrl=a||"";this.Ma=this.X=0;this.C=null;this.Ha=!!b&&g.U(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.ca=[];this.La=!!b&&g.U(b,"html5_live_self_init_segments");this.B=null;this.Pa=c;this.za=!b||!g.U(b,"html5_manifest_without_credentials");
this.Y=0;this.ga=!!b&&g.U(b,"disable_html5_manifest_namespace_redux");this.ma="";this.ea=NaN;this.Ca=b&&g.U(b,"disable_html5_duration_caching")?Infinity:10;this.I=this.L=this.l=0;this.Ja=!!b&&g.U(b,"html5_reset_index_on_mismatch")};
Fga=function(a){return g.Fb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
ZA=function(a){return g.Fb(a.i,function(b){return!!b.info.Qd})};
Gga=function(a){return g.Fb(a.i,function(b){return xA(b.info.mimeType)})};
$A=function(a){return g.Fb(a.i,function(b){return b.info.video?2==b.info.video.projectionType:!1})};
aB=function(a){return g.Fb(a.i,function(b){return b.info.video?3==b.info.video.projectionType:!1})};
bB=function(a){return g.Fb(a.i,function(b){return b.info.video?4==b.info.video.projectionType:!1})};
Hga=function(a){return g.Fb(a.i,function(b){return b.info.video?1==b.info.video.stereoLayout:!1})};
Iga=function(a){return Gb(a.i,function(b){return b.info.video?b.zz():!0})};
cB=function(a){return g.Fb(a.i,function(b){return ay(b.l.i)})};
dB=function(a,b){a.i[b.info.id]=b};
eB=function(a,b,c,d,e,f){var h=Jga(a);return d||e?Kga(a,e,b,f):3==h?Lga(a,b,c,f):Mga(a,b,c,f)};
Mga=function(a,b,c,d){c=void 0===c?0:c;var e=new YA("",d,!1);e.duration=c||0;g.Ab(a,function(f){var h=fB(f,b,e.duration),l=iv(f.init),m=iv(f.index),n=parseInt(f.clen,10),p=gB(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&dB(e,new Ey(p,h,l,m,n,f))});
return e};
Lga=function(a,b,c,d){c=void 0===c?0:c;var e=new YA("",d,!1);e.duration=c||0;g.Ab(a,function(f){var h=fB(f,b,e.duration),l=gB(f.url,f.sp,f.s);if(!g.Tw(h)){var m=d&&g.U(d,"html5_manifestless_vp9_otf"),n=d&&g.U(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?dB(e,new kA(l,h,"sq/0")):(m=iv(f.init),f=iv(f.index),dB(e,new kA(l,h,"",m,f))))});
e.isOtf=!0;return e};
Kga=function(a,b,c,d){var e=new YA("",d,!0);g.Ab(a,function(f){var h=fB(f,c),l=gB(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.Od=e.Od||n;e.Yf=e.Yf||p;var r=!xA(h.mimeType);l&&dB(e,new jA(l,h,{Ch:m,Hi:r,Wj:f,Od:n,Yf:p,vr:300,xe:b}))});
e.u=!b;e.ej=!0;e.isManifestless=!0;e.isLive=!b;e.xe=b;e.J=!!e.Od&&!!e.Yf&&isFinite(e.Yf);return e};
fB=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 qA(+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===hB&&(hB=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((hB||iB)&&('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.l&&(r="16"),"arib-std-b67"==l.l&&(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 nA(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new zA(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Aga(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 uA(e,d,l,h,m,p,n,c,f)};
Jga=function(a){return ai(a,function(b){return 3==+b.stream_type})?3:0};
jB=function(a,b){return a.C?qb(a.C.B,b):a.ca.length?qb(a.ca,b):[]};
gB=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Xx(a,!0);a.set("alr","yes");c&&(c=Lx(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
mB=function(a,b){var c=Yz(b,"id");c=c.replace(":",";");var d=Yz(b,"mimeType"),e=Yz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(Yz(b,"bandwidth"),10)/8;var f=parseInt(Zz(b,"BaseURL").getAttribute(kB(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(Yz(b,"width"),10);var l=parseInt(Yz(b,"height"),10),m=parseInt(Yz(b,"frameRate"),10),n=Nga(Yz(b,kB(a,"projectionType")));a:switch(Yz(b,kB(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}Yz(b,"video_level");h=new qA(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(Yz(b,"audioSamplingRate"),10),m=parseInt(Yz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Oga(Yz(b,kB(a,"spatialAudioType"))),l=new nA(l,m,n),m=Yz(b,"lang")||"und",n=Zz(b,"Role")){var r=Yz(n,"value")||"";Lb(lB,r)?(n=m+"."+lB[r],p="main"==r,m=Yz(b,kB(a,"langName"))||m+" - "+r,m=new zA(m,
n,p)):m=null}else m=null;p=null;if(n=Zz(b,"ContentProtection"))if(g.bq())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 uA(c,d,l,h,m,p,e,f)};
Nga=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}};
Oga=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}};
nB=function(a,b){b=void 0===b?"":b;a.Ma=1;a.ia=(0,g.Q)();return g.xm(Dga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.za}).then((0,g.B)(a.sL,a)),(0,g.B)(a.tL,a))};
Pga=function(a,b,c){return nB(new YA(a,b,c),a)};
oB=function(a){return a.isLive&&(0,g.Q)()-a.ia>=a.W};
pB=function(a){var b=a.W;isFinite(b)&&(oB(a)?a.refresh():(b=Math.max(0,a.ia+b-(0,g.Q)()),a.B||(a.B=new g.M(a.refresh,b,a),g.I(a,a.B)),a.B.start(b)))};
Qga=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.Wc())return c.Rb()+1}return 0};
rB=function(a){if(a.isManifestless&&a.J&&qB(a))return qB(a);a=a.i;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Wc()&&(f.I&&(b=!0),h=h.nl(),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)};
qB=function(a){return a.L&&a.l?a.L-a.l:0};
sB=function(a){if(!isNaN(a.ea))return a.ea;var b=a.i,c;for(c in b){var d=b[c].index;if(d.Wc()){b=0;for(c=d.Th();c<=d.Rb();c++)b+=d.getDuration(c);b/=d.Eo();b=.5*Math.round(b/.5);d.Eo()>a.Ca&&(a.ea=b);return b}if(a.isLive&&(d=b[c],d.Ch))return d.Ch}return NaN};
Rga=function(a,b){var c=Ob(a.i,function(e){return e.index.Wc()});
if(!c)return NaN;c=c.index;var d=c.oh(b);return c.jf(d)==b?b:d<c.Rb()?c.jf(d+1):NaN};
Sga=function(a,b){g.Cb(a.i,function(c){g.Cb(b,function(d,e){var f=c.l;f.i.set(e,d);f.B.set(e,d);f.u&&f.u.set(e,d)})})};
Tga=function(a,b){if(!a.i["0"]){var c=new uA("0","fakesb",void 0,new qA(0,0,0,void 0,void 0,"auto"),null,null,1);a.i["0"]=b?new fz(new Xx("http://www.youtube.com/videoplayback"),c,"fake"):new Ey(new Xx("http://www.youtube.com/videoplayback"),c,new hv(0,0),new hv(0,0),0,NaN)}};
tB=function(a,b,c){for(var d in a.i){var e=xA(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c==e){e=a.i[d].index;var f=hA(e,b);0<=f&&e.segments.splice(f,1)}}};
kB=function(a,b){return a.ga?"yt:"+b:a.ma+":"+b};
Uga=function(a){return g.cb(Object.values(a.i),function(b){return b.info.Qd&&b.info.video?480<b.info.video.i&&"H"==b.info.i:!1})};
uB=function(a,b,c,d,e){g.R.call(this);this.u=this.ca=this.i=null;this.X=!1;this.l=e?1:0;this.C=this.I=NaN;this.L=0;this.B=b;this.W=a;this.J=c;this.B.L&&a.isManifestless||Wz(this.J,"cuepoint",this.ea,this);this.ia=d;this.Y=null};
vB=function(a,b,c){a.B.Ac&&(b.startSecs+=isNaN(a.L)?0:a.L);a=a.W;a.ca.push(b);a.V("cuepointsadded",c)};
xB=function(a,b,c,d){Mz(a.J,d,c,b);Mz(a.ia,d,c,b);tB(a.W,d,!0);tB(a.W,d,!1);wB(a,"sdai","rollbk2_seg_"+d+"_rbt_"+c.toFixed(3)+"_lt_"+b.toFixed(3))};
yB=function(a,b){if(a.i){a.u=null;a.X=!1;var c=a.i.md.durationSecs-(b.startTime+a.L-a.i.md.startSecs);0>=c||(c=new Fv(a.i.md.startSecs-(a.B.Ac&&!isNaN(a.L)?a.L:0),c,a.i.md.context,a.i.md.identifier,"stop",a.i.md.i+1E3*b.duration),wB(a,"cuepointdiscontinuity","segNum."+b.va),a.B.L?vB(a,c,b.va):a.ea(c,b.va))}};
zB=function(a,b){a.u=null;a.X=!1;0<b&&4===a.l&&(a.l=5)};
wB=function(a,b,c){a.V("ctmp",b,c,!1)};
AB=function(a,b,c,d,e){g.R.call(this);this.B=0;this.l=b;this.i=c;this.C=a;this.W=d;this.X=e;this.I=0;this.J=this.C.isManifestless&&!this.C.xe;this.u=!1;this.L=null};
BB=function(a,b){var c=a.i.index,d=a.l.va;iA(c,d)||b&&b.va==d?(a.C=!iA(c,d),a.W=!iA(c,d)):(a.C=!0,a.W=!0)};
DB=function(a,b,c,d){if(!b.i.Je())return 0!=c&&(20<b.ia&&!b.la&&(d=b.ea,CB(a,"requestLoopDispose","segNum."+d,!0),to(new g.Tr("b172965563","requestLoopDispose.segNum."+d)),b.la=!0),Kz(b)),c;a=Ez(b,c);if(!isNaN(a))return a;Lz(b);return d&&(a=qz(d.He(),c),!isNaN(a))?(Gz(b,a+Vga),c):Gz(b,c)};
Xga=function(a,b,c,d){if(a.u&&a.B){var e=Wga(a,b,c);if(-1!=e){a.l.C=!1;a.i.C=!1;a.J=!0;g.hm(function(){CB(a,"seekreason","behindMinSq");EB(a,e)});
return}}c?a.l.W=!1:a.i.W=!1;var f=a.W.Yi||!a.J;0<=Ez(a.l,a.B)&&0<=Ez(a.i,a.B)&&f?((a.l.C||a.i.C)&&CB(a,"iterativeSeeking","done;count."+a.I,!1),a.l.C=!1,a.i.C=!1):d&&g.hm(function(){if(a.J||!a.W.Ha)FB(a);else{var h=b.startTime,l=b.duration,m=c?a.l.C:a.i.C;m=!a.na()&&m;var n=-1!=a.l.I&&-1!=a.i.I,p=!a.l.W&&!a.i.W;m&&n&&p&&(a.B>=h&&a.B<h+l+.1?((c?a.l:a.i).C=!1,a.l.C||a.i.C||(CB(a,"iterativeSeeking","done;count."+a.I,!1),a.I=0)):8>a.I?(a.I++,CB(a,"iterativeSeeking","inprogress;count."+a.I+";target."+
a.B+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.B)):(CB(a,"iterativeSeeking","incomplete;count."+a.I+";target."+a.B+";actual."+h,!1),a.I=0,a.l.C=!1,a.i.C=!1,a.V("seekplayerrequired",h+.1,!0)))}})};
Wga=function(a,b,c){if(!a.u)return-1;c=(c?a.l:a.i).i.index;var d=c.oh(a.B);return(iA(c,a.C.Od)||b.va==a.C.Od)&&d<a.C.Od?a.C.Hc():-1};
EB=function(a,b){!a.na()&&a.J&&-1!=a.l.I&&-1!=a.i.I&&(a.J=!1,a.V("seekplayerrequired",b+.1,!0))};
FB=function(a){var b=-1!=a.l.I,c=-1!=a.i.I;if(!b||!c)if(b=!b&&a.l.cg(),c=!c&&a.i.cg(),b||c)if(c=b?a.l:a.i,b=b?a.i:a.l,c.I=c.cg().info.va,-1!=b.I){var d=Math.max(b.i.index.jf(b.I),c.i.index.jf(c.I));CB(a,"seekreason","initManifestlessSync");g.hm(function(){return EB(a,d)});
a.L&&(a.L.resolve(d+.1),a.L=null)}};
CB=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
GB=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
IB=function(){this.u=this.i=0;this.l=Array.from({length:HB.length}).fill(0)};
JB=function(){};
KB=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.i=!1};
LB=function(){this.profiles=new JB};
MB=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new IB),a.profiles[b].yG(c,d))};
NB=function(){};
OB=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
PB=function(a){this.i=this.l=0;this.alpha=Math.exp(Math.log(.5)/a)};
RB=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.l=!1;this.B=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.I=QB(this);this.u=c;this.C=d};
QB=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
SB=function(a,b){if(!a.l&&0===a.valueIndex)return 0;a.B&&(g.xb(a.I,function(c,d){return a.values[c]-a.values[d]}),a.B=!1);
return a.values[a.I[Math.round(b*((a.l?a.i:a.valueIndex)-1))]]||0};
$ga=function(a){var b=new Yga;this.policy=a;this.X=b;this.L=this.Y=0;this.B=-1;this.I=this.J=TB();this.C=new RB(4,1,.6,.4);this.i=new RB(10,1,.5,.4);this.l=a.i?new PB(a.l):new RB(a.l,20,.5,.4);this.W=new RB(5,1,.25);this.u=new RB(30,1,.5);a=Zga();this.l.ih(this.policy.B,0<a.byterate?a.byterate:this.policy.u);0<a.delay&&this.C.ih(1,Math.min(+a.delay,2));0<a.stall&&this.i.ih(1,+a.stall);0<a.init&&(this.I=Math.min(a.init,this.I));this.B=TB()};
UB=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.W.ih(b,c/b);f||(a.J=TB());e||a.u.ih(1,b-d)};
VB=function(a){a=a.C.Uf();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
WB=function(a,b,c){isNaN(c)||(a.L+=c);isNaN(b)||(a.Y+=b)};
XB=function(a){a=a.l.Uf();return 0<a?a:1};
YB=function(a){var b=XB(a);b=1/((a.i.Uf()||0)+1/b);a=a.W.Uf();return Math.max(b,0<a?a:1)};
ZB=function(a){return{delay:VB(a),stall:a.i.Uf()||0,byterate:XB(a),init:a.I}};
aC=function(a){-1<a.B&&3E4<TB()-a.B&&($B(ZB(a)),a.B=TB())};
bC=function(a){return 4E3<=TB()-a.J};
cC=function(a,b,c,d){g.R.call(this);this.i=a;this.ia=b;this.ca=c;this.Y=d;this.ea=NaN;this.u=this.W=this.C=null;this.l=this.J=this.L=this.I=NaN;this.B=!1;this.X=NaN};
aha=function(a,b,c,d){return a.Pa&&a.Ja&&3===fA(a)?new cC(a,b,c,d):null};
dC=function(a,b){if(a.i.Po){var c=b.info.l;if(0>=c)a.X=NaN;else{var d=YB(a.ia),e=b.index.fg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*e+a.i.X)/c,e-a.i.wc))}}};
bha=function(a,b){var c=g.Sa()/1E3,d=c-a.I,e=c-a.L,f=e>=a.i.eh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.J&&(l=b-a.J,a.J=b);l/e<a.i.To&&(h=!0);a.L=c}c=d>=a.i.wc&&!a.B;if(!f&&!c&&eC(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=g.Sa()/1E3-(a.ca.Uf()||0)-a.W.l-a.i.X;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){fC(a,NaN,"n",b);f=NaN;break a}d=b-a.i.tc;d<c&&(c=d)}else a.B&&(d=c+a.i.X-a.ea+a.i.Zo,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.i.tc))),c=d);f=c=Math.max(c,f)}a.l=f;if(isNaN(a.l))return gC(a),NaN;if(!h&&eC(a,b))return hC(a,
b),NaN;if(a.l<=a.u.startTime)return fC(a,NaN,"y",b),gC(a),NaN;if(!a.Y(a.l,!1))return!hC(a,b)&&h&&(fC(a,NaN,"t",b),gC(a)),NaN;h=a.l;fC(a,h,"s",b);gC(a);return h};
hC=function(a,b){return a.Y(a.l,!0)?!1:(fC(a,NaN,"ns",b),gC(a),!0)};
eC=function(a,b){return isNaN(b)?!0:isNaN(a.l)?!1:b<a.l+(a.B?a.i.tc:a.i.Qo)};
gC=function(a){a.C=null;a.W=null;a.u=null;a.I=NaN;a.L=NaN;a.J=NaN;a.l=NaN;a.B=!1};
fC=function(a,b,c,d){var e=a.C.Hs();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.l).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.I).toFixed(0);e.ssr_n=g.Sa().toFixed(0);e.ssr_f=(1E3*a.W.l).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.ca.Uf()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.i.index;iA(b,a.u.va,!0)&&(e.ssr_ist=(1E3*b.jf(a.u.va)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.va)).toFixed(0));e=g.JA(e);a.V("ctmp","ssr",e,!1)};
nC=function(a){if(!iC){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);iC=new Uint8Array(256);jC=[];kC=[];lC=[];mC=[];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;iC[f]=e;b=e<<1^(e>>7&&283);var h=b^e;jC.push(b<<24|e<<16|e<<8|h);kC.push(h<<24|jC[f]>>>8);lC.push(e<<24|kC[f]>>>8);mC.push(e<<24|lC[f]>>>8)}}this.i=[0,0,0,0];this.u=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=(iC[a>>16&255]^d)<<24|iC[a>>8&255]<<16|iC[a&255]<<8|iC[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.B=e;this.l=16};
oC=function(a,b){for(var c=0;4>c;c++)a.i[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.l=16};
pC=function(a){for(var b=a.B,c=a.i[0]^b[0],d=a.i[1]^b[1],e=a.i[2]^b[2],f=a.i[3]^b[3],h=3;0<=h&&!(a.i[h]=-~a.i[h]);h--);for(h=4;40>h;){var l=jC[c>>>24]^kC[d>>16&255]^lC[e>>8&255]^mC[f&255]^b[h++];var m=jC[d>>>24]^kC[e>>16&255]^lC[f>>8&255]^mC[c&255]^b[h++];var n=jC[e>>>24]^kC[f>>16&255]^lC[c>>8&255]^mC[d&255]^b[h++];f=jC[f>>>24]^kC[c>>16&255]^lC[d>>8&255]^mC[e&255]^b[h++];c=l;d=m;e=n}a=a.u;c=[c,d,e,f];for(d=0;16>d;)a[d++]=iC[c[0]>>>24]^b[h]>>>24,a[d++]=iC[c[1]>>16&255]^b[h]>>16&255,a[d++]=iC[c[2]>>
8&255]^b[h]>>8&255,a[d++]=iC[c[3]&255]^b[h++]&255,c.push(c.shift())};
cha=function(a,b){ko(a,"version",b)};
qC=function(a,b,c,d,e,f){g.E.call(this);this.sb=a;this.fb=b;this.xc=c;this.Fa=d;this.l=e;this.i=f};
eha=function(a,b,c){c.Ap?(rC(a.sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),dha(a.l,b)):sC(a.i,c.Nj,b.slotId)};
fha=function(a,b,c,d){var e=tC(a.Fa.get(),1);rC(a.sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return uC(a.xc.get(),c,d,e.clientPlaybackNonce,e.SC,e.daiEnabled,e)},b)};
vC=function(a){this.value=a};
wC=function(a){this.value=a};
xC=function(a){this.value=a};
yC=function(a){this.value=a};
zC=function(){vC.apply(this,arguments)};
AC=function(a){this.value=a};
BC=function(a){this.value=a};
CC=function(a){this.value=a};
DC=function(a){this.value=a};
EC=function(a){this.value=a};
FC=function(a){this.value=a};
GC=function(){vC.apply(this,arguments)};
HC=function(){vC.apply(this,arguments)};
IC=function(a){this.value=a};
JC=function(a){this.value=a};
KC=function(a){this.value=a};
LC=function(a){this.value=a};
MC=function(a){this.value=a};
NC=function(a){this.value=a};
OC=function(a){this.value=a};
PC=function(a){this.value=a};
QC=function(a){this.value=a};
RC=function(a){this.value=a};
SC=function(a){this.value=a};
TC=function(a){this.value=a};
UC=function(a){this.value=a};
VC=function(a){this.value=a};
WC=function(a){this.value=a};
XC=function(a){this.value=a};
YC=function(a){this.value=a};
ZC=function(a){this.value=a};
$C=function(a){this.value=a};
aD=function(a){this.value=a};
bD=function(a){this.value=a};
cD=function(a){this.value=a};
dD=function(a){this.value=a};
eD=function(a){this.value=a};
fD=function(a){this.value=a};
gD=function(a){this.value=a};
hD=function(a){this.value=a};
iD=function(a){this.value=a};
jD=function(a){this.value=a};
kD=function(){vC.apply(this,arguments)};
lD=function(){vC.apply(this,arguments)};
mD=function(a,b,c){if(c&&c!==a.Ya)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.oa.i.has(c.value))return!1;return!0};
nD=function(a,b){this.yk=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
oD=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.Ya&&a.Jb instanceof nD};
pD=function(a,b){this.Fd=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
qD=function(a,b,c,d,e,f){this.yk=b;this.i=c;this.visible=d;this.l=void 0===e?!1:e;this.u=void 0===f?!1:f;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
rD=function(a){return a?"layout:  "+a.layoutType:""};
sD=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof qD&&a.l||a instanceof pD&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
tD=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.Ya:"");c&&(d.layout=rD(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.ht(a)}};
uD=function(a,b,c,d,e,f){g.E.call(this);this.sb=a;this.xc=b;this.Sw=c;this.Aa=d;this.i=e;this.Fa=f};
vD=function(a,b,c,d){this.u=a;this.md=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
g.xD=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=gha++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||wD.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.fh(d.thumbnails,function(e){return g.Sx(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
yD=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
hha=function(a,b){switch(a.style){case wD.CHAPTER_MARKER:return b?8:5;case wD.AD_MARKER:return 6;case wD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.zD=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.AD=function(a){return"crn_"+a};
g.BD=function(a){return"crx_"+a};
CD=function(a,b,c,d,e){g.xD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.l=!1;this.u=null};
DD=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
ED=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
FD=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new An(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new An(Math.max(0,b.u-b.i),0x7ffffffffffff):new An(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.u);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new An(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.md;a=1E3*d.startSecs;if(c){if(a<b.l)return new An(a-4E3,a);c=Math.max(0,a-b.l-1E4);return new An(b.B?b.l:Math.floor(b.l+Math.random()*c),a)}return new An(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
GD=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.HD=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.ID=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=He("B",null,h||l));d.italics&&(h=He("I",null,h||l));d.strikethrough&&(h=He("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=He("A",null,h||l),g.md(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||He("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:He("SPAN",null,b)};
JD=function(a,b){ar.call(this,1,arguments)};
KD=function(a,b){ar.call(this,1,arguments);this.i=a};
iha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
MD=function(a){var b=LD(a);if(b.aft)return b.aft;a=g.P((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};
ND=function(a){return!!g.Ha("yt.timing."+(a||"")+"pingSent_")};
OD=function(a,b){g.Da("yt.timing."+(b||"")+"pingSent_",a,void 0)};
QD=function(a){return g.Ha("ytcsi."+(a||"")+"data_")||PD(a)};
RD=function(a){a=QD(a);a.info||(a.info={});return a.info};
LD=function(a){a=QD(a);a.tick||(a.tick={});return a.tick};
SD=function(a){var b=QD(a).nonce;b||(b=$t(),QD(a).nonce=b);return b};
PD=function(a){var b={tick:{},info:{}};g.Da("ytcsi."+(a||"")+"data_",b,void 0);return b};
UD=function(a){var b=LD(a||""),c=MD(a);c&&!TD&&(dr(jha,new JD(Math.round(c-b._start),a)),TD=!0)};
VD=function(){var a=g.Ha("ytcsi.debug");a||(a=[],g.Da("ytcsi.debug",a,void 0),g.Da("ytcsi.reference",{},void 0));return a};
XD=function(a){a=a||"";var b=WD();if(b[a])return b[a];var c=VD(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
YD=function(a){a=a||"";var b=WD();b[a]&&delete b[a];var c=VD(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
WD=function(){var a=g.Ha("ytcsi.reference");if(a)return a;VD();return g.Ha("ytcsi.reference")};
ZD=function(){this.i=0};
$D=function(){ZD.i||(ZD.i=new ZD);return ZD.i};
bE=function(a,b){aE[b]=aE[b]||{count:0};var c=aE[b];c.count++;c.time=(0,g.Q)();a.i||(a.i=jp(function(){var d=(0,g.Q)(),e;for(e in aE)aE[e]&&6E4<d-aE[e].time&&delete aE[e];a&&(a.i=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.ht(c)),!0):!1};
cE=function(a){return!!g.P("FORCE_CSI_ON_GEL",!1)||g.Ko("csi_on_gel")||!!QD(a).useGel};
dE=function(a){a=QD(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
eE=function(a){PD(a);kha();OD(!1,a);a||(g.P("TIMING_ACTION")&&oo("PREVIOUS_ACTION",g.P("TIMING_ACTION")),oo("TIMING_ACTION",""))};
kE=function(a,b,c,d){d=d?d:a;fE(d);YD(d);eE(d);QD(d).useGel=!0;XD(d||"").info.actionType=a;oo(d+"TIMING_AFT_KEYS",b);oo(d+"TIMING_ACTION",a);gE("yt_sts","c",d);hE("_start",c,d);if(cE(d)){a={actionType:iE[po((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:iE[po("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.iu())a.clientScreenNonce=b;b=SD(d);$D().info(a,b)}g.Da("ytglobal.timing"+(d||"")+"ready_",!0,void 0);jE(d)};
gE=function(a,b,c){if(null!==b)if(RD(c)[a]=b,cE(c)){var d=b;b=dE(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 lE){b=lE[a];g.fb(lha,b)&&(d=!!d);a in mE&&"string"===typeof d&&(d=mE[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=Ju({},e)}else g.fb(mha,a)||g.ht(new g.Tr("Unknown label logged with GEL CSI",
a)),b=void 0;b&&nE(b,c)}else XD(c||"").info[a]=b};
nE=function(a,b){if(cE(b)){var c=XD(b||"");Ju(c.info,a);c=dE(b);c.gelInfos||(c.gelInfos={});Ju(c.gelInfos,a);c=SD(b);$D().info(a,c)}};
hE=function(a,b,c){var d=LD(c);if(g.Ko("use_first_tick")&&oE(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;pE.mark&&(pc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),pE.mark(e))}e=b||(0,g.Q)();d[a]=e;e=dE(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.Q)();if(cE(c)){XD(c||"").tick[a]=b||(0,g.Q)();e=SD(c);if("_start"===a){var f=$D();bE(f,"baseline_"+e)||g.Or("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else $D().tick(a,e,b);UD(c);e=!0}else e=!1;e||(jE(c),XD(c||"").tick[a]=b||(0,g.Q)());
return d[a]};
qE=function(a){var b="above_the_fold";pE&&pE.measure&&(pc(b,"measure_")||(b="measure_"+b),a?pE.measure(b,a):pE.measure(b))};
oE=function(a,b){var c=LD(b);return a in c};
rE=function(a,b){oE("_start",b)&&!oE(a,b)&&hE(a,void 0,b)};
jE=function(a){if(!ND(a)){var b=g.P((a||"")+"TIMING_ACTION",void 0),c=LD(a);if(g.Ha("ytglobal.timing"+(a||"")+"ready_")&&b&&oE("_start")&&MD(a))if(UD(a),a)JE(a);else{b=!0;var d=g.P("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&JE(a)}}};
nha=function(){switch(Po()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
JE=function(a){if(!cE(a)){var b=LD(a),c=RD(a),d=b._start,e=g.P("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.P((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=MD(a);var l=LD(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&RD(a).yt_pvis&&"youtube"===e&&(gE("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.Q)();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;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||g.Ko("always_send_csi_204_with_beacon"))?qq(f):g.pq(f);OD(!0,a);dr(KE,new KD(p.aft+(Number(h)||0),a))}};
fE=function(a){if(cE(a))oE("_start",a)&&hE("aa",void 0,a);else if(!ND(a)){var b=g.P("CSI_SERVICE_NAME","youtube");g.P((a||"")+"TIMING_ACTION",void 0)&&b&&(hE("aa",void 0,a),gE("ap",1,a),gE("yt_fss","c",a),JE(a))}};
LE=function(a,b){this.id=a;this.i=b;this.captionTracks=[];this.l=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
ME=function(a,b,c,d){this.u=c;this.reason=d;this.l=a||0;this.i=b||0};
NE=function(a,b){return a.l===b.l&&a.i===b.i&&a.u===b.u&&a.reason===b.reason};
OE=function(a,b,c,d){return new ME(g.pA[a]||0,g.pA[b]||0,c,d)};
PE=function(a){var b=g.pA.auto;return a.l===b&&a.i===b};
QE=function(a){var b=a.i||a.l;return Ob(oha,function(c){return g.pA[c]===b})||"auto"};
RE=function(a,b){var c=g.pA[b];return a.l<=c&&(!a.i||a.i>=c)};
SE=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.i=b||null;this.l=c||null;if(this.i)for(a=new Set,b=g.q(this.i),c=b.next();!c.done;c=b.next())if(c=c.value,c.u&&!a.has(c.u.id)){var d=new LE(c.id,c.u);a.add(c.u.id);this.audioTracks.push(d)}};
VE=function(a,b,c,d){var e=[],f=new Set,h=a.X||a.La,l={};if(cB(c)){for(var m in c.i)c.i.hasOwnProperty(m)&&(d=c.i[m],l[d.info.i]=[d.info]);return l}for(var n in c.i)if(c.i.hasOwnProperty(n)){m=c.i[n];var p=m.info.Vb();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Ca)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.Ja&&"h"===m.info.i&&m.info.video&&1080<m.info.video.i)e.push(p),e.push("blkhigh264");else if(a.Ha&&m.info.video&&4320<=m.info.video.i&&
32<m.info.video.fps)e.push(p),e.push("blk8khfr");else{var r=b.i.get(m.info.i);r=r&&0<r.Pz;h&&r?(f.add(m.info.i),e.push(p),e.push("byerr")):(r=TE(b,m.info),!0!==r?(e.push(p),e.push(r)):"(h"!==m.info.i||b.B?(r="MAC3"===m.info.i||"MEAC3"===m.info.i||"M"===m.info.i,c.isLive&&r&&!a.ga?(e.push(p),e.push("blk51live")):(l[m.info.i]=l[m.info.i]||[],l[m.info.i].push(m.info))):(e.push(p),e.push("enchdr")))}else e.push(p),e.push("blk2khfr")}a.i&&(d(e.join(".")),c="bfflt."+UE(l),d(c));for(var t in l)l.hasOwnProperty(t)&&
(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=pha(a,l[c]),l[c]=qha(b,l[c])));if(h)for(f=g.q(f.values()),h=f.next();!h.done;h=f.next())(h=b.i.get(h.value))&&--h.Pz;b=g.Db(l,function(w){return!!w.length});
a.i&&(l="aftflt."+UE(l),d(l));return b};
WE=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
UE=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(WE(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Vb())}return b.join(".")};
rha=function(a,b,c){var d={};g.Cb(b,function(e,f){var h=e.filter(function(l){if(!l.Qd)return!1;if("("===l.i||"(h"===l.i){if(a.l&&c&&"widevine"===c.flavor){var m=l.mimeType+"; experimental=allowed";return!!l.Qd[c.flavor]&&!!c.i[m]}if(!XE(a,YE.CRYPTOBLOCKFORMAT)&&!a.Y||a.W)return!1}return c&&l.Qd[c.flavor]&&c.i[l.mimeType]?!0:!1});
h.length&&(d[f]=h)});
return d};
sha=function(a,b,c,d,e,f){function h(F){return!!l[F]}
f=void 0===f?!1:f;var l=VE(a,b,c,e);ZA(c)&&(l=rha(b,l,d),a.i&&(b="enflt."+UE(l),e(b)));if(cB(c))return e=g.cb(Object.values(l),function(F){return!!F.length&&!!F[0].audio}),a=g.cb(Object.values(l),function(F){return!!F.length&&!!F[0].video}),e&&a||xt(),zt(new SE(a,e));
b=ZE(a);b=g.cb(b,h);if(!b)return a.i&&e("noaudio"),xt();d=l[b];l["9"]&&l.h&&c.ej&&!a.la&&(a.i&&e("dltvp9"),delete l["9"]);var m=l["9h"]?"9h":"9",n=l["1"],p=l[m];n&&n.length&&(a.l.highestAv1Resolution=n[n.length-1].Na().i);p&&p.length&&(a.l.highestVp9Resolution=p[p.length-1].Na().i);var r=[],t=[];if(a.Y&&!a.u)for(t=Fga(c)?n||l["9h"]?["1","9h"]:["9","h"]:["1","9","h"],a.i&&e("newhybpref."+t.join(".")),c=g.q(t),f=c.next();!f.done;f=c.next())r=r.concat(l[f.value]).filter(function(F){return F});
else if(0<a.I&&p&&n){if(!f){var w=Math.min(a.I,$E(n)),x=$E(p),y=function(F){return F<=w||F>x};
a.i&&e("lth."+w+".uth."+x);n=n.filter(function(F){return y(F.Na().i)});
p=p.filter(function(F){return!y(F.Na().i)})}t=["1",
m];r=n.concat(p).filter(function(F){return F})}if(r.length&&!a.u){aF(r,d,t);
if(a.i){a=[];m=g.q(r);for(c=m.next();!c.done;c=m.next())a.push(c.value.Vb());e("hbdfmt."+a.join("."))}return zt(new SE(r,d,bF(l,"",b)))}r=cF(a);r=g.cb(r,h);if(!r){if(l["1"]&&a.Wa)return e=l["1"],aF(e,d),zt(new SE(e,d,bF(l,"1",b)));a.i&&e("novideo");return xt()}a.Db&&"1"===r&&l[m]&&(c=$E(l["1"]),$E(l[m])>c&&(r=m));"9"===r&&l.h&&(m=$E(l["9"]),$E(l.h)>1.5*m&&(r="h"));a.i&&e("vfmly."+WE(r));m=l[r];if(!m.length)return a.i&&e("novfmly."+WE(r)),xt();aF(m,d);return zt(new SE(m,d,bF(l,r,b)))};
bF=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)?(aF(d,e),new SE(d,e)):null};
aF=function(a,b,c){c=void 0===c?[]:c;g.xb(a,function(d,e){var f=e.Na().height*e.Na().width-d.Na().height*d.Na().width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.l-d.l);return f});
g.xb(b,function(d,e){return e.l-d.l})};
qha=function(a,b){var c=gh(b,function(d,e){return 32<e.Na().fps?Math.min(d,e.Na().width):d},Infinity);
Infinity>c&&(b=a.J&&(a.X||XE(a,YE.FRAMERATE))?g.Ne(b,function(d){return 32<d.Na().fps||d.Na().width<c}):g.Ne(b,function(d){return!(32<d.Na().fps)}));
dq()&&(b=g.Ne(b,function(d){return"299"!==d.Vb()}));
return b};
pha=function(a,b){return b=g.Ne(b,function(c){return c.Na().i<=a.Pa})};
$E=function(a){return gh(a,function(b,c){return Math.max(b,c.Na().i)},0)};
tha=function(){this.ib=this.u=this.ia=this.W=this.L=this.ca=this.ea=this.za=this.ma=!1;this.C=0;this.Ja=!1;this.Ca=!0;this.Ha=!1;this.I=0;this.Za=!1;this.Pa=Infinity;this.Sb=!1;this.Db=!0;this.la=this.ga=!1;this.l={};this.Wa=this.i=this.Y=!1;this.B=this.J=null;this.La=this.X=!1};
cF=function(a){if(a.za)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Za&&b.unshift("1");a.u&&b.unshift("h");a.J&&b.unshift(a.J);return b};
ZE=function(a){var b=["o","a","A"];a.ca&&(b=["m","M"].concat(b));a.L&&(b=["mac3","MAC3"].concat(b));a.W&&(b=["meac3","MEAC3"].concat(b));a.ma&&(b=["so","sa"].concat(b));!a.ib||a.ia||a.B||b.unshift("a");a.ea&&b.unshift("ah");a.B&&b.unshift(a.B);return b};
fF=function(a,b,c){b=void 0===b?{}:b;if(XE(a.B,YE.AV1_CODECS)&&XE(a.B,YE.HEIGHT)&&XE(a.B,YE.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=dF();if(d)return b.localPref=d}catch(f){}d=g.S(a.experiments,"html5_av1_thresh");var e=g.S(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.S(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.S(a.experiments,"html5_av1_thresh_arm"))&&aq()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return vA(f)}))&&a.B)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(eF("1",c.fps),eF("1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&(b.hdr=1,d*=.75)}else c=eF("1",30),b.perfCap30=c,d=Math.min(d,c),c=eF("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
gF=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.i={};this.l=this.keySystemAccess=null;this.I=this.J=-1;this.B=null;this.C="";this.L=!!d&&g.U(d,"edge_nonprefixed_eme");this.C=d?g.mA(d,"html5_hdcp_probing_stream_url"):""};
iF=function(a){return a.L?!1:!a.keySystemAccess&&!!hF()&&"com.microsoft.playready"===a.keySystem};
jF=function(a){return"com.microsoft.playready"===a.keySystem};
kF=function(a){return g.Fs&&"com.microsoft.playready"===a.keySystem&&!!navigator.requestMediaKeySystemAccess};
lF=function(a){return!a.keySystemAccess&&!!hF()&&"com.apple.fps.1_0"===a.keySystem};
mF=function(a){return"com.youtube.fairplay"===a.keySystem};
nF=function(a){return"fairplay"===a.flavor};
hF=function(){var a=window,b=a.MSMediaKeys;gq()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
pF=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.DA&&!g.bq())return Cn("45");if(g.Fs||g.Be)return g.U(a,"edge_nonprefixed_eme");if(g.oF)return Cn("47");if(g.Zr){var b=g.S(a,"html5_safari_desktop_eme_min_version");if(b)return Cn(b)}return!g.U(a,"html5_disable_nonprefixed_eme_for_other")};
uha=function(a,b,c){var d=cq(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.la(e),g.la(qF.playready)):[].concat(g.la(qF.playready),g.la(e))};
rF=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ia=e;this.i=[];this.l={};this.B={};this.callback=null;this.C=!1;this.u=[];this.initialize(a,!c);this.aa()};
wha=function(a,b){a.callback=b;a.u=[];pF(a.experiments)?sF(a):vha(a)};
sF=function(a){if(!a.na())if(0===a.i.length)a.callback(a.u);else{var b=a.i[0],c=a.l[b],d=xha(a,c);a.aa();navigator.requestMediaKeySystemAccess(b,d).then(so(function(e){if(!a.na()){a.aa();c.keySystemAccess=e;if(jF(c)){e=AA();for(var f=g.q(Object.keys(a.B[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[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())tF(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())tF(a,c,f.value)}a.u.push(c);a.Z("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),sF(a)):a.callback(a.u)}}),so(function(){a.aa();
a.C=!a.C&&"widevine"===a.l[a.i[0]].flavor;a.C||a.i.shift();sF(a)}))}};
tF=function(a,b,c){a.Z("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
xha=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};jF(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.B[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.C?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.Z("html5_enable_cobalt_experimental_vp9_decoder")&&
a.Z("html5_enable_tvos_encrypted_vp9")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.Z("html5_query_sw_secure_crypto_for_android")&&(mq()||$p())&&(a.Ia("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
vha=function(a){if(hF()&&g.Zr)a.aa(),a.u.push(new gF("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=yha(),c=g.cb(a.i,function(d){var e=a.l[d],f=!1,h=!1,l;for(l in a.B[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.aa(),a.u.push(a.l[c])):a.aa();a.i=[]}a.callback(a.u)};
yha=function(){var a=hF();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=AA();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Yga=function(){this.i=0};
uF=function(a,b,c){this.experiments=a;this.X=b;this.Y=void 0===c?!1:c;this.I=!!g.Ha("cast.receiver.platform.canDisplayType");this.C={};this.L=!1;this.i=new Map;this.J=!0;this.B=!g.U(this.experiments,"html5_disable_protected_hdr");this.l=!1;this.W=g.U(this.experiments,"html5_disable_vp9_encrypted");a=g.Ha("cast.receiver.platform.getValue");this.u=!this.I&&a&&a("max-video-resolution-vpx")||null};
TE=function(a,b,c){c=void 0===c?1:c;var d=b.Vb();if("0"===d||g.U(a.experiments,"html5_use_media_capability")&&b.isSupported)return!0;var e=b.mimeType;if(vA(b)&&a.L)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(XE(a,YE.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.DA?Cn(53):g.oF&&Cn(64)))return"dopus";var f=c;f=void 0===f?1:f;c=
{};b.video&&(b.video.width&&(c[YE.WIDTH.name]=b.video.width),b.video.height&&(c[YE.HEIGHT.name]=b.video.height),b.video.fps&&(c[YE.FRAMERATE.name]=b.video.fps*f),b.video.l&&(c[YE.EOTF.name]=b.video.l),b.l&&(c[YE.BITRATE.name]=8*b.l*f),"("===b.i&&(c[YE.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[YE.DECODETOTEXTURE.name]="true");b.audio&&b.audio.i&&(c[YE.CHANNELS.name]=b.audio.i);a.l&&Yy(b)&&(c[YE.EXPERIMENTAL.name]="allowed");
f=g.q(Object.keys(YE));for(var h=f.next();!h.done;h=f.next()){h=YE[h.value];var l;if(l=c[h.name])(l=h===YE.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.U(a.experiments,"html5_ignore_h264_framerate_cap")&&h===YE.FRAMERATE&&("H"===l.i||"h"===l.i)),l=!(l||h===YE.DECODETOTEXTURE&&!g.U(a.experiments,"html5_decode_to_texture_cap"));if(l)if(XE(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(Xy(b)&&h===YE.EOTF)return"dvp92"}!g.U(a.experiments,"disable_html5_cast_hdcp_filter2")&&
a.I&&b.video&&1080<b.video.i&&b.Qd&&(e+="; hdcp=2.2");return"227"!==d||g.U(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.U(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
vF=function(){var a=$p()&&!Cn(29),b=Zp("google tv")&&Zp("chrome")&&!Cn(30),c=cq();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
wF=function(a,b,c){var d=480;b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&TE(a,e,c)){d=e.video.i;break}return d};
g.xF=function(a,b){b=void 0===b?!1:b;return vF()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(AA(),"application/x-mpegURL")?!0:!1};
XE=function(a,b){b.name in a.C||(a.C[b.name]=zha(a,b));return a.C[b.name]};
zha=function(a,b){if(a.u)return!!a.u[b.name];if(b===YE.BITRATE&&g.U(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===YE.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)};
yF=function(){g.R.call(this);this.items={}};
Aha=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.l=new Uint8Array(a.buffer,16)};
zF=function(a){try{return g.cf(a)}catch(b){return null}};
Bha=function(a,b){this.onesieUstreamerConfig=null;if(!b&&a)try{b=JSON.parse(a)}catch(f){}if(b){var c=b.clientKey?zF(b.clientKey):null,d=b.encryptedClientKey?zF(b.encryptedClientKey):null,e=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.Q)():null;c&&d&&e&&(this.i=new Aha(c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=zF(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
Cha=function(){this.l=17;this.u=13E4;this.B=.5;this.i=!1};
BF=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.ek=b;this.l={};this.u=this.i=0;this.B=new g.M(function(){AF(c)},1E4);
g.I(this,this.B)};
DF=function(a,b){CF(a,b);return a.values[b]&&a.ek[b]?a.values[b]/Math.pow(2,a.i/a.ek[b]):0};
CF=function(a,b){if(!a.values[b]){var c=EF();a.values=c.values||{};a.ek=c.halfLives||{};a.l=c.values?Object.assign({},c.values):{}}};
AF=function(a){var b=EF();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.l[e]&&(a.values[e]+=b[e]-a.l[e]),c[e]=DF(a,e);a.l=c}Dha(a.l,a.ek)};
V=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
FF=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
GF=function(a,b){return void 0===b||null===b?a:Number(b)};
HF=function(a,b){return void 0===b||null===b?a:b.toString()};
IF=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(Eha);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
JF=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Ko("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
iG=function(a,b,c){var d,e;g.E.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Vd=this.lc=this.kc=this.Hd=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Zc=NaN;this.Sb=!1;this.Ca=0;this.Cf=this.Ac=this.Pf=this.Ri=!1;a=a?g.Vb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new zga(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Ha=b?b.serializedForcedExperimentIds:HF("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.Z("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:HF("",a.csp_nonce);Nx=this.Z("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(y){f=""}this.oc=f;this.Tc=(f=window.location.ancestorOrigins)?Array.from(f):[];f=!this.Z("web_player_context_config_embeds_fields_killswitch");this.l=V(!1,b&&f?b.isEmbed:a.is_embed);if(b&&b.device){var h=
b.device;h.brand&&(this.deviceParams.cbrand=h.brand);h.browser&&(this.deviceParams.cbr=h.browser);h.browserVersion&&(this.deviceParams.cbrver=h.browserVersion);this.deviceParams.c=h.interfaceName||"WEB";this.deviceParams.cver=h.interfaceVersion||"html5";h.interfaceTheme&&(this.deviceParams.ctheme=h.interfaceTheme);this.deviceParams.cplayer=h.interfacePlayerType||"UNIPLAYER";h.model&&(this.deviceParams.cmodel=h.model);h.network&&(this.deviceParams.cnetwork=h.network);h.os&&(this.deviceParams.cos=h.os);
h.osVersion&&(this.deviceParams.cosver=h.osVersion);h.platform&&(this.deviceParams.cplatform=h.platform)}else this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.Z("wpcc_loader_url_killswitch")?this.loaderUrl=this.l||KF(this)&&b.loaderUrl?b.loaderUrl||"":this.oc:this.loaderUrl=this.l||KF(this)&&a.loaderUrl?HF("",a.loaderUrl):this.oc;this.u=Ox(this.loaderUrl,Fha,Gha);h=this.loaderUrl;var l=void 0===l?!1:l;this.Aj=Mx(Ox(h,Hha,null),h,
l,"Trusted Ad Domain URL");this.la=V(!1,a.privembed);this.protocol=0===this.oc.indexOf("http:")?"http":"https";this.ca=Qx((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Qx(this.oc)||this.protocol+"://www.youtube.com/";l=b?b.eventLabel:a.el;h="detailpage";"adunit"===l?h=this.l?"embedded":"detailpage":"embedded"===l||this.u?h=FF(h,l,Iha):l&&(h="embedded");this.ia=h;rp();l=null;h=b?b.playerStyle:a.ps;var m=g.fb(LF,h);!h||m&&!this.u||(l=h);this.playerStyle=l;this.J=(this.I=g.fb(LF,this.playerStyle))&&
"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.zj=!this.J;this.ea=V(!1,a.disableplaybackui);this.tc=this.Z("variable_playback_rate")&&this.Z("enable_vsp")?!0:AA().defaultPlaybackRate?MF||g.lq||NF?g.oF&&Cn("20")||g.DA&&Cn("4")||g.pg&&Cn("11")||hq():!(g.pg&&!Zp("chrome")||MF||Zp("android")||Zp("silk")):!1;this.kj=V(!1,a.enable_faster_speeds);this.i=V("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.i?l=!this.I:(l=Number(g.Sa()/
1E3),h=g.Sq.getInstance(),l=this.Z("block_desktop_background_playback_with_mobile_cookie")&&h&&l>Number(h.get("dhmu",l.toString())));this.vj=l;this.Wa="3"===this.controlsType||this.i||V(!1,a.use_media_volume);this.X=GA();this.Ek=g.OF;this.eh=V(!1,b&&f?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=V(!1,(b&&f?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.Z("embeds_pfp_chazal_ui_killswitch"));var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Kh=g.PF(this)&&!this.eh||V(!QF(this)&&
!RF(this)&&!this.I,n);this.fh=b?!!b.mobileIphoneSupportsInlinePlayback:V(!1,a.playsinline);n=this.i&&SF&&null!=TF&&0<TF&&2.3>=TF;l=b?b.useNativeControls:a.use_native_controls;h=this.i&&!this.Z("embeds_enable_mobile_custom_controls");l=UF(this)||!n&&V(h,l)?"3":"1";h=b?b.controlsType:a.controls;this.controlsType="0"!==h&&0!==h?l:"0";this.qd=this.i;this.color=FF("red",b&&f?b.progressBarColor:a.color,Jha);this.Bk="3"===this.controlsType||V(!1,b&&f?b.embedsShowModestBranding:a.modestbranding)&&"red"===
this.color;this.Ja=!this.l;this.Lh=(l=!this.Ja&&!RF(this)&&!this.J&&!this.I&&!QF(this))&&!this.Bk&&"1"===this.controlsType;this.Db=g.VF(this)&&l&&"0"===this.controlsType&&!this.Lh;this.Ij=this.Ck=n;this.Mh=WF&&!g.ce(601)?!1:!0;this.tj=this.l||!1;this.La=RF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=HF("",b&&f?b.widgetReferrer:a.widget_referrer);var p;b&&f?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.u||V(!0,p);n=!0;b&&b.disableMdxCast&&(n=!1);this.De=
this.Z("enable_cast_for_web_unplugged")&&g.XF(this)&&n||p&&n&&"1"===this.controlsType&&!this.i&&(RF(this)||g.VF(this)||g.YF(this))&&!g.ZF(this)&&!$F(this);this.Hj=EA()||FA();p=b?!!b.supportsAutoplayOverride:V(!1,a.autoplayoverride);this.Kc=!this.i&&!Zp("nintendo wiiu")&&!Zp("nintendo 3ds")||p;p=b?!!b.enableMutedAutoplay:V(!1,a.mutedautoplay);n=this.Z("embeds_enable_muted_autoplay")&&g.PF(this);this.Sc=p&&n&&this.X&&!UF(this);p=(RF(this)||QF(this))&&"blazer"===this.playerStyle;this.Ve=b?!!b.disableFullscreen:
!V(!0,a.fs);this.za=!this.Ve&&(p||Jt());this.Bf=this.Z("uniplayer_block_pip")&&($p()&&Cn(58)&&!mq()||jq);p=g.PF(this)&&!this.eh;var r;b?void 0!==b.disableRelatedVideos&&(r=!b.disableRelatedVideos):r=a.rel;this.ib=p||V(!this.I,r);this.Jh=V(!1,b&&f?b.enableContentOwnerRelatedVideos:a.co_rel);this.C=mq()&&0<TF&&4.4>=TF?"_top":"_blank";this.Fc=g.YF(this);this.Ze=V("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "gmail":r="gm";break;
case "books":r="gb";break;case "docs":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.Y=r;this.W=HF("",b&&f?b.authorizedUserIndex:a.authuser);var t;b?void 0!==b.disableWatchLater&&(t=!b.disableWatchLater):t=a.showwatchlater;this.Yi=(this.l&&!this.la||!!this.W)&&V(!this.J,this.u?t:void 0);this.Ce=
b?!!b.disableKeyboardControls:V(!1,a.disablekb);this.loop=V(!1,a.loop);this.pageId=HF("",!this.Z("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Gj=V(!0,a.canplaylive);this.Si=V(!1,a.livemonitor);this.disableSharing=V(this.I,b?b.disableSharing:a.ss);(t=b&&this.Z("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(r=t.split("x"),2!==r.length?t=null:(t=Number(r[0]),r=Number(r[1]),t=isNaN(t)||isNaN(r)||0>=t*r?null:new g.ke(t,r))):
t=null;this.Oh=t;this.mute=b?!!b.startMuted:V(!1,a.mute);this.af=!this.mute&&V("0"!==this.controlsType,a.store_user_volume);t=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:FF(void 0,t,aG);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":HF("",a.cc_lang_pref);t=FF(2,b&&f?b.captionsLanguageLoadPolicy:a.cc_load_policy,aG);"3"===this.controlsType&&2===t&&(t=3);this.ma=t;this.ld=b?b.hl||"en_US":HF("en_US",a.hl);this.region=b?b.contentRegion||
"US":HF("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":HF("en",a.host_language);this.hj=!this.la&&Math.random()<g.S(this.experiments,"web_player_api_logging_fraction");this.ga=!this.la;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:V(!0,a.deviceHasDisplay);this.Zc=GF(this.Zc,a.ismb);t=a;g.mA(this.experiments,"html5_qoe_intercept")?t=g.mA(this.experiments,"html5_qoe_intercept"):this.zj?(t=t.vss_host||"s.youtube.com",this.Z("www_for_videostats")&&"s.youtube.com"===
t&&(t=bG(this.ca)||"www.youtube.com")):t="video.google.com";this.Qh=t;cG(this,a,!0);this.L=new yF;g.I(this,this.L);t=b?b.innertubeApiKey:HF("",a.innertube_api_key);r=b?b.innertubeApiVersion:HF("",a.innertube_api_version);p=b?b.innertubeContextClientVersion:HF("",a.innertube_context_client_version);this.Xe={innertubeApiKey:po("INNERTUBE_API_KEY")||t,innertubeApiVersion:po("INNERTUBE_API_VERSION")||r,gE:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),hE:this.deviceParams.c,innertubeContextClientVersion:po("INNERTUBE_CONTEXT_CLIENT_VERSION")||
p,jE:this.hostLanguage,iE:this.region,kE:po("INNERTUBE_HOST_OVERRIDE")||"",mE:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),lE:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.gh=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new uF(this.experiments,this.Z("html5_force_hfr_support")?!0:dG(this)||dq()||eq()||eG(this),g.DA&&g.ce(56)||g.oF&&g.ce(54)||eG(this));t=this.Zc;r=this.experiments;p=new Cha;g.fG(this)&&(p.i=!0,p.B=.1);g.U(r,"html5_pctile_bandwidth_estimator")&&(p.i=
!1);t&&(p.u=t/8);this.schedule=new $ga(p);this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:V(!1,a.enable_safety_mode);t=this.ea?!1:RF(this)&&"blazer"!==this.playerStyle;var w;b&&f?null!=b.disableAutonav&&(w=!b.disableAutonav):w=a.allow_autonav;this.jc=V(t,!this.J&&w);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:V(!1,a.send_visitor_id_header);this.Pa=(0,g.Q)();var x;"docs"===this.playerStyle&&(b&&f?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);
this.disableNativeContextMenu=V(!1,x);this.sj=dG(this)&&this.Z("enable_skip_intro_button");this.embedConfig=HF("",b&&f?b.serializedEmbedConfig:a.embed_config);this.We=V(!1,a.full_window);this.Za=!g.XF(this)&&!gG(this)&&!g.ZF(this)&&!$F(this)&&!0;this.livingRoomAppMode=FF("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,hG);this.transparentBackground=b?!!b.transparentBackground:V(!1,a.transparent_background);this.useFastSizingOnWatchDefault=
V(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:V(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:V(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:V(!1,a.use_miniplayer_ui);this.showBackButton=V(!1,a.showbackbutton);this.Bj=1E-4>Math.random();this.Ye=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Bha(a.onesie_hot_config,
null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.Z("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.Dk=c;this.wc=new BF;g.I(this,this.wc);this.Cf=V(!1,a.force_gvi);Is=this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.gj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.Af=0};
cG=function(a,b,c){c=void 0===c?!1:c;a.lc=HF(a.lc,b.video_id);a.kc=HF(a.kc,b.eventid);for(var d=[],e=g.q(Object.keys(jG)),f=e.next();!f.done;f=e.next()){f=jG[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Bj&&(d.sort(),g.ht(new g.Tr("Player client parameters changed after startup",d)));a.userAge=GF(a.userAge,b.user_age);a.userDisplayImage=HF(a.userDisplayImage,b.user_display_image);g.Sx(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=
HF(a.userDisplayName,b.user_display_name);a.Hd=HF(a.Hd,b.user_gender);a.csiPageType=HF(a.csiPageType,b.csi_page_type);a.csiServiceName=HF(a.csiServiceName,b.csi_service_name);a.Ze=V(a.Ze,b.enablecsi);a.pageId=HF(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
kG=function(a,b){return!a.I&&$p()&&Cn(55)&&"3"===a.controlsType&&!b};
g.lG=function(a){a=bG(a.ca);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.mG=function(a){return g.ZF(a)?"music.youtube.com":g.lG(a)};
nG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
oG=function(a){return RF(a)&&!g.XF(a)};
UF=function(a){return WF&&!a.fh||Zp("nintendo wiiu")||Zp("nintendo 3ds")?!0:!1};
$F=function(a){return"area120-boutique"===a.playerStyle};
g.ZF=function(a){return"music-embed"===a.playerStyle};
g.fG=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
KF=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
eG=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.pG=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
dG=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.qG=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
gG=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.XF=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
rG=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.sG=function(a){return g.XF(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||rG(a)};
tG=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.uG=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
vG=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.wG=function(a){return g.qG(a)&&a.Z("web_player_i_see_captions")};
g.yG=function(a){return(a.deviceHasDisplay&&g.DA&&!jq&&"3"!==a.controlsType?g.lq?a.l&&g.ce(51):!0:!1)||(a.deviceHasDisplay&&g.oF&&!jq&&"3"!==a.controlsType?g.lq?a.l&&g.ce(48):g.ce(38):!1)||(a.deviceHasDisplay&&g.pg&&!jq&&"3"!==a.controlsType?g.lq?a.l&&g.ce(37):g.ce(27):!1)||a.deviceHasDisplay&&g.xG&&!iq()&&g.ce(11)||a.deviceHasDisplay&&g.Zr&&g.ce("604.4")};
Kha=function(a){if(g.VF(a)&&SF)return!1;if(g.oF){if(!g.ce(47)||!g.ce(52)&&g.ce(51))return!1}else if(g.Zr)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
RF=function(a){return"detailpage"===a.ia};
g.VF=function(a){return"embedded"===a.ia};
zG=function(a){return"leanback"===a.ia};
QF=function(a){return"adunit"===a.ia||"gvn"===a.playerStyle};
g.YF=function(a){return"profilepage"===a.ia};
g.PF=function(a){return a.l&&g.VF(a)&&!QF(a)&&!a.I};
AG=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.ht(new g.Tr("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.BG=function(a){var b=g.mG(a);!a.Z("yt_embeds_disable_new_error_lozenge_url")&&Lha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
bG=function(a){var b=g.Cd(a);return(a=Number(g.Bd(4,a))||null)?b+":"+a:b};
CG=function(a){this.i=a};
DG=function(a,b,c){if(c)return xt();var d={};c=AA();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.ff().mimeType)){var f=e.i.Na().quality;if(!d[f]||d[f].ff().ce())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Ab(rA,function(l){(l=d[l])&&h.push(l)});
return h.length?zt(h):xt()};
EG=function(a,b,c){this.u=a;this.l=b;this.cpn=c;this.B=0;this.i=""};
FG=function(a,b,c){a.cpn&&(b=g.Od(b,{cpn:a.cpn}));c&&(b=g.Od(b,{L3:c}));return b};
GG=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
Mha=function(a){for(var b=[],c=[],d=g.q(a.l),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.B?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.l=b.concat(c)};
Nha=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.i=void 0===p?null:p;this.audioChannels=r;this.B=(null===l||void 0===l?void 0:l.split(","))||[];this.u=m||null;this.Qd=n||"";this.l=""};
HG=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 zA(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new Nha(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};
IG=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.l=null};
Oha=function(a,b){if(!(jq||gq()||cq()))return null;var c=HG(b,g.U(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.i&&(l=m.i.getId(),e[l]||(m=new LE(l,m.i),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
Sha=function(a,b,c,d,e){if(!(jq||gq()||cq()))return xt();var f=Pha(c),h=HG(c,g.U(a.experiments,"html5_filter_fmp4_in_hls"),a.B.B);if(!h)return xt();g.U(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||Qha(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.S(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.U(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var F=g.q(y.B);for(var D=F.next();!D.done;D=F.next())if(D=D.value,h[D]){y.l=D;break}y.l||(y.l=Rha(h,y));if(D=h[y.l]){c.push(y);F="fairplay"===y.Qd?l:null;var G="";"PQ"===y.u?G="smpte2084":"HLG"===y.u&&(G="arib-std-b67");G&&(t=G);n.push(JG(D,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,F,G));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}F=n.reduce(function(K,J){return J.ff().isEncrypted()&&
K},!0)?l:null;
d=Math.max(d,g.S(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(JG(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,F,t));return DG(a.B,n,kG(a,b))};
JG=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new uA(d,"application/x-mpegURL",new nA(0,t,null,w),new qA(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new EG(a,b,c);a.B=n?n:1369843;return new IG(d,a,l)};
Pha=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};
Rha=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.Qd===b.Qd&&!e.audioChannels)return d}return""};
Qha=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]};
KG=function(a,b){this.i=a;this.l=b};
Tha=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 Xx(h.url,!0);if(h.s){var l=h.sp,m=Lx(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=yA(h.type,h.quality,h.itag,h.width,h.height);e.push(new KG(h,f))}}return DG(a.B,e,kG(a,b))};
LG=function(a,b){this.i=a;this.l=b};
Uha=function(a){var b=[];g.Ab(a,function(c){if(c&&c.url){var d=yA(c.type,"medium","0");b.push(new LG(d,c.url))}});
return b};
Vha=function(a,b,c){c=Uha(c);return DG(a.B,c,kG(a,b))};
MG=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isHeadless?!1:d.isHeadless;var e=void 0===d.gp?!1:d.gp;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isHeadless=c;this.gp=e;this.videoDuration=d};
NG=function(a){return{videoId:a.videoId,status:a.status,isHeadless:a.isHeadless}};
Wha=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=zF(a.ustreamerConfig))};
g.OG=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.i=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.PG=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("")};
TG=function(a,b,c,d){a||(a=b&&QG.hasOwnProperty(b)&&RG.hasOwnProperty(b)?RG[b]+"_"+QG[b]:void 0);b=a;if(!b)return null;a=b.match(SG);if(!a||5!==a.length)return null;if(a=b.match(SG)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
VG=function(a){for(var b={},c=g.q(Object.keys(UG)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[UG[d]];e&&(b[d]=e)}return b};
WG=function(a,b){for(var c={},d=g.q(Object.keys(UG)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Sx(f)&&(c[UG[e]]=f)}return c};
ZG=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(XG)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=XG[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=YG(h.url);g.Sx(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=YG(a.url),g.Sx(a)&&(b["maxresdefault.jpg"]=a));return b};
YG=function(a){return a.startsWith("//")?"https:"+a:a};
$G=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Xha[a];return null};
aH=function(a){return a&&a.baseUrl||""};
bH=function(a){a=g.Bp(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};
cH=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.ma=c)};
Yha=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=dH(d.baseUrl);if(!e)return;d=new g.OG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.HD(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Ov=b.audioTracks||[];a.OA=b.defaultAudioTrackIndex||0;a.PA=b.translationLanguages?g.Qc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.HD(f.languageName)}}):
[];
a.Ek=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Zha=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},zp(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,zi:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,zi: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,
zi:0===h?5:7})}}};
$ha=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
eH=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)};
gH=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)?
(c=zp(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=aia[c]);(c=a.projectionType)&&(b.projection_type=bia[c]);(c=a.stereoLayout)&&(b.stereo_layout=cia[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=dia[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(fH[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec=
c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=$G(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=eia[a])&&(b.primaries=a);return g.Md(b)};
hH=function(a){g.R.call(this);this.i=null;this.u=new fo;this.i=null;this.J=new Set;this.C=a||""};
kH=function(a,b,c){for(c=iH(a,c);0<=c;){var d=a.levels[c];if(d.Wc(Math.floor(b/(d.columns*d.rows)))&&(d=g.jH(d,b)))return d;c--}return g.jH(a.levels[0],b)};
mH=function(a,b,c){c=iH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Wc(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),eo(d.u,f,{EE:f,OE:e}))}lH(a)};
lH=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=fia(a,b)}};
fia=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=nH(a.levels[b.EE],b.OE);c.onload=function(){var d=b.EE,e=b.OE;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);lH(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.Zx()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.oH=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.u=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
nH=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Od(c,{sigh:a.signature}));return Wx(c)};
g.jH=function(a,b){b>=a.dw()&&a.Sp();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var h=a.Sp()+1-d*c;if(h<a.columns){var l=h;d=1}else l=a.columns,d=h<d?Math.ceil(h/a.columns):a.rows;return{url:nH(a,c),column:f,columns:l,row:e,rows:d,Au:a.width*l,zu:a.height*d}};
pH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;hH.call(this,c);this.isLive=d;this.L=!!e;this.levels=this.l(a,b);this.B=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
qH=function(a,b,c){return(a=a.levels[b])?a.Is(c):-1};
iH=function(a,b){var c=a.B.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.B.set(b,d),d;a.B.set(b,c-1);return c-1};
rH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.oH.call(this,a,b,c,0);this.l=null;this.I=d?3:0};
sH=function(a,b,c,d){pH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].lB(c)};
gia=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Od(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
hia=function(a){navigator.mediaCapabilities?tH(a.videoInfos).then(function(){return a},function(){return a}):zt(a)};
tH=function(a){var b=navigator.mediaCapabilities;if(!b)return zt(a);var c=a.map(function(d){var e;if(e=b)d.video?(e=d.video,d={type:"media-source",video:{contentType:d.mimeType,width:e.width||640,height:e.height||360,bitrate:8*d.l||1E6,framerate:e.fps||30}}):d.audio?(e=d.audio,d={type:"media-source",audio:{contentType:d.mimeType,channels:e.i||2,bitrate:8*d.l||128E3,samplerate:e.sampleRate||44100}}):d=null,e=b.decodingInfo(d);return e});
return vda(c).then(function(d){for(var e=0;e<d.length;e++)a[e].I=d[e].smooth,a[e].B=d[e].powerEfficient,a[e].isSupported=d[e].supported;return a},function(){return a})};
g.wH=function(a,b){g.R.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.GH=this.adSafetyReason=this.adQueryId=this.Dp=null;this.Jp={start:NaN,end:NaN};this.gq="";this.Qd=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.ca="";this.NA=this.Dk=!1;this.WB=null;this.Bf=this.Zc=this.Cf=this.Gw=!1;this.J=null;this.Sc=!1;this.Zo=this.hj=NaN;this.Kw={};this.Tx=this.cycToken=null;this.author="";this.vo=0;this.Pv=!1;this.ro=null;this.Nv=
this.QA=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.kc=this.fh="";this.contentCheckOk=!1;this.Db=0;this.Zl=this.Mh=!1;this.endSeconds=0;this.DH=this.ld=this.l=this.Hx=null;this.Uv="";this.Y=!1;this.eh=this.Bk=0;this.MA=this.pipable=this.ph=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Sb=this.isPrivate=this.isListed=this.Cw=this.mutedAutoplay=this.ki=!1;this.Iw="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=
this.Ew=this.Ri=this.xe=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.xd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.La=0;this.reloadReason="";this.Fw=this.VB=this.Hd=!1;this.keywords={};this.Wa="";this.Yi=0;this.qm=!1;this.liveChunkReadahead=NaN;this.gm=0;this.We=null;this.Io=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.rh=[];this.X=[];this.racyCheckOk=!1;this.cC={};this.Sr=0;this.u=
null;this.autonavState=1;this.xC=null;this.shortDescription="";this.Ha=this.hx=!1;this.pm=this.lc=this.startSeconds=0;this.rm=this.JH=this.JE=uH;this.suggestions=null;this.ep=this.np=void 0;this.Af=null;this.Sx=!1;this.expandedSubtitle=this.dm=this.subtitle=this.title="";this.gh=this.vE=this.multiMarkersPlayerBarRenderer=this.Qv=void 0;this.Ck=[];this.hlsFormats=this.tj="";this.jm=this.om=this.Ce=this.Za=this.ga=this.jj=this.fm=null;this.Yg="vvt";this.Ac=!1;this.Sy=null;this.cF="";this.Bj=NaN;this.Cm=
this.ym=this.xm=this.wm=this.tm=this.Bm=this.zj=this.Am=this.Aj=this.zm="";this.Pf=null;this.ZD=!1;this.L={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.VA=this.UA=NaN;this.oc=this.Si=this.Kc=this.TB=this.WA=!1;this.kj=!0;this.jc={};this.captionTracks=[];this.Ov=[];this.OA=0;this.PA=[];this.Ek=!1;this.Jh=new LE("und",new zA("Default","und",!0));this.Hw=0;this.I=null;this.Xe=[];this.Fc=[];this.sm=this.tc="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=
this.SA=this.Lh=this.mh=this.Rv=this.Cs=this.zp=null;this.Ij=!1;this.W=null;this.Bw=this.Kh=this.useCobaltWidevine=this.bE=this.kn=this.ib=!1;this.bG=this.sG=NaN;this.defraggedFromSubfragments=this.Xi=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Qo=this.Ny=this.Tc=!1;this.interstitials=[];this.C=this.Dw=!1;this.gj=this.YB=this.Pa="";this.lm=null;this.Qc="";this.za=this.XA=!1;this.XB=this.vj="";this.Lw=this.Jw=this.Vv=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.sj=!1;this.af=this.Vd=!0;this.errorDetail=this.userGenderAge="";this.yy=this.My=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Pi=this.errorReason=this.errorCode=null;this.Hj=this.Gj="";this.De=!1;this.IG=this.xG=this.Yf=this.Od=0;this.km=this.fetchType=null;this.eC=!0;this.DE=void 0;this.IH=-1;this.Ze=this.wc=!1;this.Oh=null;this.Z("web_player_ux_module_wait")&&
this.B.Za&&this.X.push("ux");this.wc=this.Z("web_new_autonav_countdown");this.Ze=this.Z("web_new_big_thumbnail_endscreen");vH(this,b)};
g.CH=function(a,b,c,d){b&&b.cpn&&g.ht(new g.Tr("CPN provided in VideoData update",{J3:b.cpn,Ff:a.clientPlaybackNonce,A3:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.Pi=null);c?(JF(b),vH(a,b),xH(a)&&yH(a)):(b=b||{},a.Z("embeds_enable_updatedata_from_embeds_response_killswitch")||zH(a,b),AH(a,b),BH(a,b),a.V("dataupdated"))};
BH=function(a,b){a.fflags=HF(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.ca=Wx(c));a.Dk=V(a.Dk,b.iv_ads_only);a.NA=V(a.NA,b.iv_allow_in_place_switch);a.isPharma=V(a.isPharma,b.is_pharma);a.author=HF(a.author,b.author);a.fh=dH(b.ttsurl)||a.fh;a.Pv=V(a.Pv,b.cc_asr);a.kc=HF(a.kc,b.channel_path);a.channelBanner=HF(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.dg=HF(c,a.dg);a.videoCountText=HF(a.videoCountText,b.video_count_text);a.autonavState=FF(a.autonavState,b.autonav_state,iia);a.clientPlaybackNonce=
HF(a.clientPlaybackNonce,b.cpn);a.subscribed=V(a.subscribed,b.subscribed);a.rawViewCount=GF(a.rawViewCount,b.view_count);a.shortViewCount=HF(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=HF(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=HF(a.lengthText||"",b.lengthText);a.ku=HF(a.ku||"",b.ku);a.jq=HF(a.jq||"",b.jq);a.title=HF(a.title,b.title);a.subtitle=HF(a.subtitle,b.subtitle);a.dm=HF(a.dm,b.expanded_title);a.expandedSubtitle=HF(a.expandedSubtitle,b.expanded_subtitle);
a.gq=HF(a.gq,b.aria_label);a.ypcPreview=HF(a.ypcPreview,b.ypc_preview);a.Yy=HF(a.Yy,b.ypc_origin);a.Ac=V(a.Ac,b.ypc_is_premiere_trailer);a.vj=HF(a.vj,b.ypc_clickwrap_message);a.paygated=V(a.paygated,b.paygated);a.ZD=V(a.ZD,b.requires_purchase);a.showShareButton=!V(!a.showShareButton,b.ss);a.Vd=V(a.Vd,b.showwatchlater);a.af=V(a.af,b.shownotifybutton);a.sj=V(a.sj,b.copy_share);if(c=b.keywords)a.keywords=DH(c.split(","));if(c=b.rvs)a.suggestions=Ap(c);a.contentCheckOk=V(a.contentCheckOk,b.cco);a.racyCheckOk=
V(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=V(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=HF(a.oauthToken,b.oauth_token);a.Wa=HF(a.Wa,b.kpt);a.visitorData=HF(a.visitorData,b.visitor_data);if(c=b.session_data)a.Cd=xp(c,"&");if(c=b.endscreen_autoplay_session_data)a.Hx=xp(c,"&");a.cm=HF(a.cm,b.endscreen_ad_tracking_data);a.WE=V(a.WE,b.wait_for_vast_info_cards_xml);a.Ax=V(a.Ax,b.suppress_creator_endscreen);a.UB=V(a.UB,b.is_trueview_action);a.wE=HF(a.wE,b.tracking_list);a.Gj=HF(a.Gj,
b.clip);a.Hj=HF(a.Hj,b.clipt);EH(a,b)};
vH=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="150");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Pi=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||$t());a.Sb=V(a.B.Si,b.livemonitor);zH(a,b);var h=b.raw_player_response;if(!h){var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=g.q(m),
p=n.next();!p.done;p=n.next()){var r=p.value.playerAnnotationsUrlsRenderer;if(r){r.adsOnly&&(a.Dk=!0);r.allowInPlaceSwitch&&(a.NA=!0);var t=r.loadPolicy;t&&(a.annotationsLoadPolicy=jia[t]);var w=r.invideoUrl;w&&(a.ca=Wx(w));a.Gw=!0;break}}var x=a.playerResponse.attestation;x&&cH(a,x);var y=a.playerResponse.heartbeatParams;if(y){var F=y.heartbeatToken;F&&(a.drmSessionId=y.drmSessionId||"",a.heartbeatToken=F,a.UA=Number(y.intervalMilliseconds),a.VA=Number(y.maxRetries),a.WA=!!y.softFailOnError,a.TB=
!!y.useInnertubeHeartbeatsForDrm,a.Cf=!0);a.heartbeatServerData=y.heartbeatServerData;a.Z("heartbeat_iff_heartbeat_params_filled")&&(a.Cf=!0)}var D=a.playerResponse.messages;D&&$ha(a,D);var G=a.playerResponse.multicamera;if(G){var K=G.playerLegacyMulticameraRenderer;if(K){var J=K.metadataList;J&&(a.XB=J,a.Fc=Ap(J))}}var H=a.playerResponse.overlay;if(H){var L=H.playerControlsOverlayRenderer;if(L){var T=L.controlBgHtml;null!=T?(a.Pa=T,a.C=!0):(a.Pa="",a.C=!1);if(L.mutedAutoplay){var na=L.mutedAutoplay.playerMutedAutoplayOverlayRenderer;
if(na&&na.endScreen){var wa=na.endScreen.playerMutedAutoplayEndScreenRenderer;wa&&wa.text&&(a.YB=g.HD(wa.text))}}else a.mutedAutoplay=!1}}var Ka=a.playerResponse.playabilityStatus;if(Ka){var Ua=Ka.backgroundability;Ua&&Ua.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var lc=Ka.offlineability;lc&&lc.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var sb=Ka.contextParams;sb&&(a.contextParams=sb);var Zc=Ka.pictureInPicture;Zc&&Zc.pictureInPictureRenderer.playableInPip&&(a.pipable=
!0);Ka.playableInEmbed&&(a.allowEmbed=!0);var Sb=Ka.ypcClickwrap;if(Sb){var $b=Sb.playerLegacyDesktopYpcClickwrapRenderer,xh=Sb.ypcRentalActivationRenderer;if($b)a.vj=$b.durationMessage||"",a.Bf=!0;else if(xh){var xc=xh.durationMessage;a.vj=xc?g.HD(xc):"";a.Bf=!0}}var yc=Ka.errorScreen;if(yc){if(yc.playerLegacyDesktopYpcTrailerRenderer){var Tb=yc.playerLegacyDesktopYpcTrailerRenderer;a.Cm=Tb.trailerVideoId||"";var lf=yc.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var rl=lf&&lf.ypcTrailerRenderer}else if(yc.playerLegacyDesktopYpcOfferRenderer)Tb=
yc.playerLegacyDesktopYpcOfferRenderer;else if(yc.ypcTrailerRenderer){rl=yc.ypcTrailerRenderer;var Rf=rl.fullVideoMessage;a.zj=Rf?g.HD(Rf):""}Tb&&(a.xm=Tb.itemTitle||"",Tb.itemUrl&&(a.ym=Tb.itemUrl),Tb.itemBuyUrl&&(a.tm=Tb.itemBuyUrl),a.wm=Tb.itemThumbnail||"",a.Am=Tb.offerHeadline||"",a.Aj=Tb.offerDescription||"",a.Bm=Tb.offerId||"",a.zm=Tb.offerButtonText||"",a.Sy=Tb.offerButtonFormattedText||null,a.Bj=Tb.overlayDurationMsec||NaN,a.zj=Tb.fullVideoMessage||"",a.Zc=!0);if(rl){var $w=rl.unserializedPlayerResponse;
if($w)a.Pf={raw_player_response:$w};else{var ax=rl.playerVars;a.Pf=ax?zp(ax):null}a.Zc=!0}}}var ae=a.playerResponse.playbackTracking;if(ae){var hr=b,bx=aH(ae.googleRemarketingUrl);bx&&(a.googleRemarketingUrl=bx);var ir=aH(ae.youtubeRemarketingUrl);ir&&(a.youtubeRemarketingUrl=ir);var cx=aH(ae.ptrackingUrl);if(cx){var Vn=bH(cx),jr=Vn.oid;jr&&(a.aC=jr);var dx=Vn.pltype;dx&&(a.bC=dx);var ex=Vn.ptchn;ex&&(a.ZB=ex);var fx=Vn.ptk;fx&&(a.mm=encodeURIComponent(fx))}var kr=aH(ae.ppvRemarketingUrl);kr&&(a.ppvRemarketingUrl=
kr);var gx=aH(ae.qoeUrl);if(gx){for(var ui=g.Bp(gx),hx=g.q(Object.keys(ui)),lr=hx.next();!lr.done;lr=hx.next()){var yh=lr.value,mr=ui[yh];ui[yh]=Array.isArray(mr)?mr.join(","):mr}var nr=ui.cat;nr&&(a.gj=nr);var ix=ui.live;ix&&(a.Iw=ix)}var Wn=aH(ae.remarketingUrl);if(Wn){a.remarketingUrl=Wn;var sE=bH(Wn);sE.foc_id&&(a.L.focEnabled=!0);var or=sE.data;or&&(a.L.rmktEnabled=!0,or.engaged&&(a.L.engaged="1"));a.L.baseUrl=Dd(Wn)+zd(g.Bd(5,Wn))}var jx=aH(ae.videostatsPlaybackUrl);if(jx){var $c=bH(jx),Xn=
$c.adformat;if(Xn&&(hr.adformat=Xn,!a.Z("process_video_data_ad_format_in_player_tracking_killswitch"))){var Yn=a.T(),pr=TG(Xn,a.sm,Yn.l,Yn.u);pr&&(a.adFormat=pr)}var ad=$c.aqi;ad&&(hr.ad_query_id=ad);var zg=$c.autoplay;zg&&(a.ki="1"==zg);var qr=$c.autonav;qr&&(a.ph="1"==qr);var kx=$c.delay;kx&&(a.Db=vd(kx));var lx=$c.ei;lx&&(a.eventId=lx);"adunit"===$c.el&&(a.ki=!0);var mx=$c.feature;mx&&(a.mH=mx);var nx=$c.list;nx&&(a.playlistId=nx);var rr=$c.of;rr&&(a.DQ=rr);var sr=$c.osid;sr&&(a.osid=sr);var ox=
$c.referrer;ox&&(a.referrer=ox);var px=$c.sdetail;px&&(a.cH=px);var qx=$c.sourceid;qx&&(a.XR=qx);var tr=$c.ssrt;tr&&(a.To="1"==tr);var Zn=$c.subscribed;Zn&&(a.subscribed="1"==Zn,a.L.subscribed=Zn);var tE=$c.uga;tE&&(a.userGenderAge=tE);var sl=$c.upt;sl&&(a.SQ=sl);var Ij=$c.vm;Ij&&(a.videoMetadata=Ij)}var ur=aH(ae.videostatsWatchtimeUrl);if(ur){var rx=bH(ur).ald;rx&&(a.OP=rx)}if(ae.promotedPlaybackTracking){var te=ae.promotedPlaybackTracking;te.startUrls&&(a.nm=te.startUrls);te.firstQuartileUrls&&
(a.Ow=te.firstQuartileUrls);te.secondQuartileUrls&&(a.Pw=te.secondQuartileUrls);te.thirdQuartileUrls&&(a.Qw=te.thirdQuartileUrls);te.completeUrls&&(a.Nw=te.completeUrls);te.engagedViewUrls&&(1<te.engagedViewUrls.length&&g.ht(new g.Tr("There are more than one engaged_view_urls.")),a.Ye=te.engagedViewUrls[0])}}var sx=a.playerResponse.playerAds;if(sx)for(var uE=b,vE=g.q(sx),ue=vE.next();!ue.done;ue=vE.next()){var vr=ue.value;if(vr){var wE=vr.playerLegacyDesktopWatchAdsRenderer;if(wE){var vi=wE.playerAdParams;
if(vi){"1"==vi.autoplay&&(a.ki=!0);a.adSafetyReason=vi.encodedAdSafetyReason||null;void 0!==vi.showContentThumbnail&&(a.kj=!!vi.showContentThumbnail);uE.enabled_engage_types=vi.enabledEngageTypes;break}}}}var Jd=a.playerResponse.playerConfig;if(Jd){var bd=Jd.manifestlessWindowedLiveConfig;if(bd){var tx=Number(bd.minDvrSequence),wr=Number(bd.maxDvrSequence),ux=Number(bd.minDvrMediaTimeMs),xr=Number(bd.maxDvrMediaTimeMs);tx&&(a.Od=tx);ux&&(a.IG=ux/1E3);wr&&(a.Yf=wr);xr&&(a.xG=xr/1E3)}var yr=Jd.daiConfig;
if(yr){yr.enableDai&&(a.xd=!0);var vx=yr.enableServerStitchedDai;vx&&(a.enableServerStitchedDai=vx)}var $n=Jd.audioConfig;if($n){var wx=$n.loudnessDb;null!=wx&&(a.hj=wx);$n.audioMuted&&(a.Sc=!0);$n.muteOnStart&&(a.Sc=!0)}var xx=Jd.playbackEndConfig;if(xx){var zr=xx.endSeconds;zr&&a.mutedAutoplay&&(a.endSeconds=zr)}var Ag=Jd.fairPlayConfig;if(Ag){var yx=Ag.certificate;yx&&(a.ld=zF(yx));var Ar=Number(Ag.keyRotationPeriodMs);0<Ar&&(a.XP=Ar);var xE=Number(Ag.keyPrefetchMarginMs);0<xE&&(a.WP=xE)}var wi=
Jd.playbackStartConfig;if(wi){a.Lw=Number(wi.startSeconds);var zx=wi.liveUtcStartSeconds,Br=!1;a.Z("html5_start_seconds_priority")&&(Br=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);zx&&!Br&&(a.liveUtcStartSeconds=Number(zx));var Cr=wi.startPosition;if(Cr){var Ax=Cr.utcTimeMillis;Ax&&!Br&&(a.liveUtcStartSeconds=.001*Number(Ax));var Bx=Cr.streamTimeMillis;Bx&&(a.pm=.001*Number(Bx))}}else{var Dr=Jd.skippableSegmentsConfig;if(Dr){var Cx=Dr.introSkipDurationMs;Cx&&(a.Vv=Number(Cx)/1E3);var Er=Dr.outroSkipDurationMs;
Er&&(a.Jw=Number(Er)/1E3)}}var tl=Jd.skippableIntroConfig;if(tl){var Z8=Number(tl.startMs),$8=Number(tl.endMs);isNaN(Z8)||isNaN($8)||(a.sG=Z8,a.bG=$8)}var a9=Jd.streamSelectionConfig;a9&&(a.eh=Number(a9.maxBitrate));var b9=Jd.vrConfig;b9&&(a.kn="1"==b9.partialSpherical);var Dx=Jd.webDrmConfig;if(Dx){Dx.skipWidevine&&(a.bE=!0);var c9=Dx.widevineServiceCert;c9&&(a.DH=zF(c9));Dx.useCobaltWidevine&&(a.useCobaltWidevine=!0);Dx.startWithNoQualityConstraint&&(a.Kh=!0)}var d9=Jd.mediaCommonConfig;if(d9){var yE=
d9.dynamicReadaheadConfig;yE&&(a.maxReadAheadMediaTimeMs=yE.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=yE.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=yE.readAheadGrowthRateMs||NaN)}}var Jj=a.playerResponse.streamingData;if(Jj){var e9=Jj.adaptiveFormats;if(e9){for(var f9=[],g9=g.q(e9),zh=g9.next();!zh.done;zh=g9.next()){var zE=zh.value;f9.push(gH(zE));var h9=zE.loudnessDb;zE.itag&&null!=h9&&(a.Kw[zE.itag.toString()]=h9)}a.adaptiveFormats=f9.join(",")}var oQ=Jj.formats;if(oQ){var Ex=
[],i9=g.q(oQ);for(zh=i9.next();!zh.done;zh=i9.next()){var pQ=zh.value;Ex.push(pQ.itag+"/"+pQ.width+"x"+pQ.height)}a.Uv=Ex.join(",");Ex=[];var j9=g.q(oQ);for(zh=j9.next();!zh.done;zh=j9.next()){var Fr=zh.value,Fx={itag:Fr.itag,type:Fr.mimeType,quality:Fr.quality},k9=Fr.url;k9&&(Fx.url=k9);var l9=Fr.cipher||Fr.signatureCipher;if(l9){var qQ=zp(l9);Fx.sp=qQ.sp;Fx.s=qQ.s;Fx.url=qQ.url}Ex.push(g.Md(Fx))}a.tj=Ex.join(",")}var rQ=Jj.hlsFormats;if(rQ){var m9=Jd||null,AE={};if(m9){var sQ=m9.audioPairingConfig;
if(sQ&&sQ.pairs)for(var n9=g.q(sQ.pairs),tQ=n9.next();!tQ.done;tQ=n9.next()){var o9=tQ.value,uQ=o9.videoItag;AE[uQ]||(AE[uQ]=[]);AE[uQ].push(o9.audioItag)}}for(var p9={},q9=g.q(rQ),ao=q9.next();!ao.done;ao=q9.next()){var r9=ao.value;p9[r9.itag]=r9.bitrate}var s9=[],t9=g.q(rQ);for(ao=t9.next();!ao.done;ao=t9.next()){var mf=ao.value,xi={itag:mf.itag,type:mf.mimeType,url:mf.url,bitrate:mf.bitrate,width:mf.width,height:mf.height,fps:mf.fps},BE=mf.audioTrack;if(BE){var u9=BE.displayName;u9&&(xi.name=u9,
xi.audio_track_id=BE.id,BE.audioIsDefault&&(xi.is_default="1"))}if(mf.drmFamilies){for(var v9=[],w9=g.q(mf.drmFamilies),vQ=w9.next();!vQ.done;vQ=w9.next())v9.push(fH[vQ.value]);xi.drm_families=v9.join(",")}var CE=AE[mf.itag];if(CE&&CE.length){xi.audio_itag=CE.join(",");var x9=p9[CE[0]];x9&&(xi.bitrate+=x9)}var y9=$G(mf);y9&&(xi.eotf=y9);mf.audioChannels&&(xi.audio_channels=mf.audioChannels);s9.push(g.Md(xi))}a.hlsFormats=s9.join(",")}var wQ=Jj.licenseInfos;if(wQ&&0<wQ.length){for(var z9={},A9=g.q(wQ),
xQ=A9.next();!xQ.done;xQ=A9.next()){var B9=xQ.value,C9=B9.drmFamily,D9=B9.url;C9&&D9&&(z9[fH[C9]]=D9)}a.Qd=z9}var E9=Jj.drmParams;E9&&(a.drmParams=E9);var F9=Jj.dashManifestUrl;F9&&(a.ea=g.Od(F9,{cpn:a.clientPlaybackNonce}));var G9=Jj.hlsManifestUrl;G9&&(a.hlsvp=G9);var H9=Jj.probeUrl;H9&&(a.probeUrl=Wx(g.Od(H9,{cpn:a.clientPlaybackNonce})))}var I9=a.playerResponse.trackingParams;I9&&(a.ia=I9);var mc=a.playerResponse.videoDetails;if(mc){var yi=b,yQ=mc.videoId;yQ&&(a.videoId=yQ,yi.video_id||(yi.video_id=
yQ));var J9=mc.channelId;J9&&(a.L.uid=J9.substr(2));var zQ=mc.title;zQ&&(a.title=zQ,yi.title||(yi.title=zQ));var AQ=mc.lengthSeconds;AQ&&(a.lengthSeconds=Number(AQ),yi.length_seconds||(yi.length_seconds=AQ));var K9=mc.keywords;K9&&(a.keywords=DH(K9));var BQ=mc.channelId;BQ&&(a.Bg=BQ,yi.ucid||(yi.ucid=BQ));var L9=mc.viewCount;L9&&(a.rawViewCount=Number(L9));var CQ=mc.author;CQ&&(a.author=CQ,yi.author||(yi.author=CQ));var M9=mc.shortDescription;M9&&(a.shortDescription=M9);var N9=mc.isCrawlable;N9&&
(a.isListed=N9);var O9=mc.musicVideoType;O9&&(a.musicVideoType=O9);var DQ=mc.isLive;null!=DQ&&(a.isLivePlayback=DQ);if(DQ||mc.isUpcoming)a.isPremiere=!mc.isLiveContent;var P9=mc.thumbnail;P9&&(a.jc=ZG(P9));var Q9=Jd||null,EQ=b;mc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);mc.isUpcoming&&(a.isUpcoming=!0);if(mc.isPostLiveDvr)a.xe=!0;else{var FQ=!1;if(a.Sb)a.allowLiveDvr=FH(!0),a.isLivePlayback=!0;else if(mc.isLive){EQ.livestream="1";a.allowLiveDvr=FH(!!mc.isLiveDvrEnabled);a.Ja=27;mc.isLowLatencyLiveStream&&
(a.isLowLatencyLiveStream=!0);var R9=mc.latencyClass;R9&&(a.latencyClass=kia[R9]||"UNKNOWN");a.Mh=!0;var S9=mc.liveChunkReadahead;S9&&(a.liveChunkReadahead=S9);var Gx=Q9&&Q9.livePlayerConfig;if(Gx){Gx.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Gx.hasSubfragmentedWebm&&(a.Xi=!0);Gx.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var T9=Gx.liveExperimentalContentId;T9&&(a.liveExperimentalContentId=Number(T9))}FQ=!0}else mc.isUpcoming&&(FQ=!0);FQ&&(a.isLivePlayback=!0,EQ.adformat&&
"8"!==EQ.adformat.split("_")[1]||a.X.push("heartbeat"),a.Z("heartbeat_iff_heartbeat_params_filled")||(a.Cf=!0),a.Zl=!0)}var U9=mc.isPrivate;U9&&(a.isPrivate=V(a.isPrivate,U9))}if(Ka){var V9=mc||null,W9=!1,Gr=Ka.errorScreen;W9=Gr&&(Gr.playerLegacyDesktopYpcOfferRenderer||Gr.playerLegacyDesktopYpcTrailerRenderer||Gr.ypcTrailerRenderer)?!0:V9&&V9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Ka.status);if(!W9){a.errorCode="150";var DE=Gr&&Gr.playerErrorMessageRenderer;if(DE){a.playerErrorMessageRenderer=
DE;var X9=DE.reason;X9&&(a.errorReason=g.HD(X9));var HQ=DE.subreason;HQ&&(a.Pi=g.HD(HQ),a.em=HQ)}else a.errorReason=Ka.reason||null;var IQ=Ka.status;if("LOGIN_REQUIRED"===IQ)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===IQ)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===IQ){var Y9=Ka.errorScreen,Z9=Y9&&Y9.playerKavRenderer;a.errorDetail=Z9&&Z9.kavUrl?"4":"3"}else a.errorDetail=Ka.isBlockedInRestrictedMode?"5":"0"}}var $9=a.playerResponse.interstitialPods;$9&&Zha(a,$9);a.ca&&a.eventId&&(a.ca=
Ep(a.ca,{ei:a.eventId}));var JQ=a.playerResponse.captions;JQ&&JQ.playerCaptionsTracklistRenderer&&Yha(a,JQ.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.Lw=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.VE=a.accountLinkingConfig.alsParam);a.Z("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&
a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&eH(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}AH(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var a$=b.hlsdvr;null!=a$&&(a.allowLiveDvr=FH("1"==a$));a.adQueryId=b.ad_query_id||null;a.adSafetyReason||(a.adSafetyReason=b.encoded_ad_safety_reason||null);a.GH=b.agcid||null;a.zp=b.ad_id||null;a.Cs=b.ad_sys||null;a.Rv=b.encoded_ad_playback_context||null;a.Sc=
V(a.Sc,b.infringe||b.muted);a.authKey=b.authkey;a.bF=b.authuser;a.xC=b.autonav_watch_endpoint||null;a.mutedAutoplay=V(a.mutedAutoplay,b&&b.playmuted)&&a.Z("embeds_enable_muted_autoplay");a.Mh=V(a.Mh,b.enable_cardio);a.Zl=V(a.Zl,b.enable_cardio_before_playback);a.endSeconds=GF(a.endSeconds,a.Jw||b.end||b.endSeconds);a.ia=HF(a.ia,b.itct);a.Cw=V(a.Cw,b.noiba);a.Ew=V(a.Ew,b.is_live_destination);a.isLivePlayback=V(a.isLivePlayback,b.live_playback);b.isUpcoming&&(a.isUpcoming=V(a.isUpcoming,b.isUpcoming));
a.xe=V(a.xe,b.post_live_playback);a.isMdxPlayback=V(a.isMdxPlayback,b.mdx);var EE=b.mdx_control_mode;EE&&(a.mdxControlMode="number"===typeof EE?EE:vd(EE));a.Bw=V(a.Bw,b.is_inline_playback_no_ad);a.La=GF(a.La,b.reload_count);a.reloadReason=HF(a.reloadReason,b.reload_reason);a.kj=V(a.kj,b.show_content_thumbnail);a.Fw=V(a.Fw,b.utpsa);a.Sx=V(a.Sx,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.Tx=b.tkn||null;var b$=WG(b);0<Object.keys(b$).length&&(a.jc=b$);a.la=HF(a.la,b.vvt);a.mdxEnvironment=HF(a.mdxEnvironment,
b.mdx_environment);a.eR=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=HF(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?GF(0,b.index):GF(a.playlistIndex,b.index));a.jC=b.pyv_view_beacon_url;a.zC=b.pyv_quartile25_beacon_url;a.IC=b.pyv_quartile50_beacon_url;a.eD=b.pyv_quartile75_beacon_url;a.sC=b.pyv_quartile100_beacon_url;var c$=b.remarketing_url;c$&&(a.remarketingUrl=c$);var d$=b.ppv_remarketing_url;d$&&(a.ppvRemarketingUrl=d$);var e$=b.session_data;
!a.iD&&e$&&(a.iD=xp(e$,"&").feature);a.Aw=1==GF(a.Aw?1:0,b.is_fling);a.vnd=GF(a.vnd,b.vnd);a.Ve=HF(a.Ve,b.force_ads_url);a.yg=HF(a.yg,b.ctrl);a.wf=HF(a.wf,b.ytr);a.Sj=b.ytrcc;a.rD=b.ytrexp;a.Yw=b.ytrext;a.tc=HF(a.tc,b.adformat);a.sm=HF(a.sm,b.attrib);a.slotPosition=GF(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.To=V(a.To,b.ssrt);a.videoId=JF(b)||a.videoId;a.Ca=HF(a.Ca,b.vss_credentials_token);a.Yg=HF(a.Yg,b.vss_credentials_token_type);a.Tc=V(a.Tc,b.audio_only);a.Ny=V(a.Ny,b.aac_high);a.Qo=
V(a.Qo,b.prefer_low_quality_audio);a.gj=HF(a.gj,b.qoe_cat);a.De=V(a.De,b.download_media);a.za=V(a.za,b.prefer_gapless);a:{var KQ=a.playerResponse;if(KQ&&KQ.adPlacements)for(var f$=g.q(KQ.adPlacements),LQ=f$.next();!LQ.done;LQ=f$.next()){var FE=LQ.value.adPlacementRenderer;if(null!=FE&&"AD_PLACEMENT_KIND_START"==(FE.config&&FE.config.adPlacementConfig&&FE.config.adPlacementConfig.kind)){var g$$=!0;break a}}g$$=!1}g$$&&(a.adModule=!0,a.X.push("ad"));var h$=b.adaptive_fmts;h$&&(a.adaptiveFormats=h$);
var i$=b.allow_embed;i$&&(a.allowEmbed="1"==i$);var j$=b.backgroundable;j$&&(a.backgroundable="1"==j$);var k$=b.autonav;k$&&(a.ph="1"==k$);var l$=b.autoplay;l$&&(a.ki="1"==l$);var m$=b.iv_load_policy;m$&&(a.annotationsLoadPolicy=FF(a.annotationsLoadPolicy,m$,aG));var n$=b.cc_lang_pref;n$&&(a.captionsLanguagePreference=HF(n$,a.captionsLanguagePreference));var o$=b.cc_load_policy;o$&&(a.ro=FF(a.ro,o$,aG));var p$=b.cached_load;p$&&(a.Nv=V(a.Nv,p$));"0"==b.dash&&(a.QA=!0);var q$=b.dashmpd;q$&&(a.ea=g.Od(q$,
{cpn:a.clientPlaybackNonce}));var r$=b.delay;r$&&(a.Db=vd(r$));var s$=a.Jw||b.end;void 0!=s$&&(a.clipEnd=GF(a.clipEnd,s$));var t$=b.fmt_list;t$&&(a.Uv=t$);b.heartbeat_preroll&&a.X.push("heartbeat");a.Bk=-Math.floor(10*Math.random());a.Io=-Math.floor(40*Math.random());var u$=b.is_listed;u$&&(a.isListed=V(a.isListed,u$));var v$=b.is_private;v$&&(a.isPrivate=V(a.isPrivate,v$));var w$=b.pipable;w$&&(a.pipable=V(a.pipable,w$));a.MA=a.pipable&&a.B.Hj;a.hx=a.MA&&(!a.B.showMiniplayerButton||a.Z("web_player_pip"));
var x$=b.paid_content_overlay_duration_ms;x$&&(a.paidContentOverlayDurationMs=vd(x$));var y$=b.paid_content_overlay_text;y$&&(a.paidContentOverlayText=y$);var z$=b.url_encoded_fmt_stream_map;z$&&(a.tj=z$);var A$=b.hls_formats;A$&&(a.hlsFormats=A$);var B$=b.hlsvp;B$&&(a.hlsvp=B$);var GE=b.length_seconds;GE&&(a.lengthSeconds="string"===typeof GE?vd(GE):GE);var HE=b.live_start_walltime;HE&&(a.gm="number"===typeof HE?HE:vd(HE));var IE=b.live_manifest_duration;IE&&(a.We="number"===typeof IE?IE:vd(IE));
var C$=b.player_params;C$&&(a.playerParams=C$);var D$=b.partnerid;D$&&(a.Ja=GF(a.Ja,D$));var E$=b.probe_url;E$&&(a.probeUrl=Wx(g.Od(E$,{cpn:a.clientPlaybackNonce})));var MQ=b.pyv_billable_url;MQ&&Tx(MQ)&&(a.Ye=MQ);var NQ=b.pyv_conv_url;NQ&&Tx(NQ)&&(a.kC=NQ);EH(a,b);0<a.startSeconds||(a.startSeconds=GF(a.startSeconds,a.Lw||a.Vv||b.start||b.startSeconds),a.lc=a.startSeconds);if(a.Z("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var F$=b.live_utc_start;if(null!=
F$)a.liveUtcStartSeconds=Number(F$);else{var OQ=a.startSeconds;OQ&&isFinite(OQ)&&1E9<OQ&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var G$=b.utc_start_millis;G$&&(a.liveUtcStartSeconds=.001*Number(G$))}}else{var H$=b.live_utc_start;null!=H$&&(a.liveUtcStartSeconds=Number(H$));var I$=b.utc_start_millis;I$&&(a.liveUtcStartSeconds=.001*Number(I$))}var J$=b.stream_time_start_millis;J$&&(a.pm=.001*Number(J$));var K$=a.Vv||b.start;void 0==K$||"1"==b.resume||
a.isLivePlayback||(a.clipStart=GF(a.clipStart,K$));var L$=b.url_encoded_third_party_media;L$&&(a.Af=Ap(L$));var PQ=b.ypc_offer_button_formatted_text;if(PQ){var M$=JSON.parse(PQ);a.Sy=null!=M$?M$:null;a.cF=PQ}var N$=b.ypc_offer_button_text;N$&&(a.zm=N$);var O$=b.ypc_offer_description;O$&&(a.Aj=O$);var P$=b.ypc_offer_headline;P$&&(a.Am=P$);var Q$=b.ypc_full_video_message;Q$&&(a.zj=Q$);var R$=b.ypc_offer_id;R$&&(a.Bm=R$);var S$=b.ypc_buy_url;S$&&(a.tm=S$);var T$=b.ypc_item_thumbnail;T$&&(a.wm=T$);var U$=
b.ypc_item_title;U$&&(a.xm=U$);var V$=b.ypc_item_url;V$&&(a.ym=V$);var W$=b.ypc_vid;W$&&(a.Cm=W$);b.ypc_overlay_timeout&&(a.Bj=Number(b.ypc_overlay_timeout));var X$=b.ypc_trailer_player_vars;X$&&(a.Pf=zp(X$));var Y$=b.ypc_original_itct;Y$&&(a.gR=Y$);a.Bg=HF(a.Bg,b.ucid);b.baseUrl&&(a.L.baseUrl=b.baseUrl);b.uid&&(a.L.uid=b.uid);b.oeid&&(a.L.oeid=b.oeid);b.ieid&&(a.L.ieid=b.ieid);b.ppe&&(a.L.ppe=b.ppe);b.engaged&&(a.L.engaged=b.engaged);b.subscribed&&(a.L.subscribed=b.subscribed);a.L.focEnabled=V(a.L.focEnabled,
b.focEnabled);a.L.rmktEnabled=V(a.L.rmktEnabled,b.rmktEnabled);a.om=b.storyboard_spec||null;a.jm=b.live_storyboard_spec||null;a.WB=b.iv_endscreen_url||null;a.Gw=V(a.Gw,b.iv3_module);a.Cf=V(a.Cf,b.ypc_license_checker_module);a.Zc=V(a.Zc,b.ypc_module);a.Bf=V(a.Bf,b.ypc_clickwrap_module);a.Zc&&a.X.push("ypc");a.Bf&&a.X.push("ypc_clickwrap");a.cC={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,
cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};BH(a,b);GH(a)?HH(a)&&(a.isLivePlayback&&a.ea?a.Kc=!0:a.ld&&(a.Si=!0)):IH(a)?a.Kc=!0:!JH(a,a.adaptiveFormats)&&a.ea&&(a.Kc=!0);var SQ=b.adpings;SQ&&(a.Dp=SQ?zp(SQ):null);var aaa=b.feature;aaa&&(a.mH=
aaa);var baa=b.referrer;baa&&(a.referrer=baa);var caa=b.cotn;caa&&(a.cotn=caa);a.clientScreenNonce=HF(a.clientScreenNonce,b.csn);a.Sr=GF(a.Sr,b.root_ve_type);a.Yi=GF(a.Yi,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.qm=V(a.qm,b.upg_content_filter_mode);var daa=b.unplugged_location_info;daa&&(a.W=daa);var eaa=b.unplugged_partner_opt_out;eaa&&(a.qp=HF("",eaa));a.Ij=V(a.Ij,b.disable_watch_next);a.Qh=HF(a.Qh,b.internal_ip_override);a.Dw=!!b.is_yto_interstitial;(a.interstitials.length||
a.Dw)&&a.X.push("yto");var faa=b.rh;faa&&(a.rh=faa);b.gv&&(a.gv=b.gv)};
AH=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D,G,K,J,H=b.raw_watch_next_response;if(!H){var L=b.watch_next_response;L&&(H=JSON.parse(L))}if(H){a.watchNextResponse=H;var T=a.watchNextResponse.contents;if(T){var na=T.singleColumnWatchNextResults;if(na){var wa=GF(0,b.autoplay_count);if(na.autoplay&&na.autoplay.autoplay&&!na.playlist){var Ka=na.autoplay.autoplay.sets,Ua={},lc={},sb=null;if(Ka){for(var Zc=g.q(Ka),Sb=Zc.next();!Sb.done;Sb=Zc.next()){var $b=Sb.value.autoplayVideoRenderer;if($b&&$b.compactVideoRenderer){sb=
$b.compactVideoRenderer;break}}var xh=Ka[0].autoplayVideo;if(xh){var xc=xh.clickTrackingParams;xc&&(Ua.itct=xc);Ua.autonav="1";Ua.playnext=String(wa)}}else Ua.feature="related-auto";if(sb){lc.autonav="1";lc.video_id=sb.videoId;var yc=sb.shortBylineText;yc&&(lc.author=g.HD(yc));var Tb=sb.title;Tb&&(lc.title=g.HD(Tb))}lc.endscreen_autoplay_session_data=g.Md(Ua);a.suggestions=[lc]}}var lf=T.twoColumnWatchNextResults}a.kQ=!(null===(c=null===lf||void 0===lf?void 0:lf.autoplay)||void 0===c||!c.autoplay);
var rl=a.watchNextResponse.playerOverlays;if(rl){var Rf=rl.playerOverlayRenderer;if(Rf){var $w=Rf.endScreen;if($w){var ax=$w.watchNextEndScreenRenderer;if(ax)var ae=ax.results}var hr=Rf.videoDetails;if(hr){var bx=hr.embeddedPlayerOverlayVideoDetailsRenderer;var ir=hr.musicEmbeddedPlayerOverlayVideoDetailsRenderer;ir&&(a.Tv=ir.title,a.Sv=ir.byline)}var cx=Rf.actions;if(cx)for(var Vn=g.q(cx),jr=Vn.next();!jr.done;jr=Vn.next()){var dx=jr.value;dx.likeButtonRenderer&&(a.likeButtonRenderer=dx.likeButtonRenderer)}var ex=
null===(e=null===(d=Rf.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(ex)for(var fx=g.q(ex),kr=fx.next();!kr.done;kr=fx.next()){var gx=kr.value;if(null===(h=null===(f=gx.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.vE=gx.suggestedActionRenderer}var ui=null===(l=Rf.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;ui&&(a.multiMarkersPlayerBarRenderer=
null===(m=ui.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.Qv=null===(p=null===(n=ui.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.fR=null===(r=ui.playerBarActionButton)||void 0===r?void 0:r.buttonRenderer);g.VF(a.B)&&(a.Vd=!!Rf.addToMenu);lia(a,Rf.shareButton);var hx=Rf.productsInVideoOverlayRenderer;hx&&(a.shoppingOverlayRenderer=hx.shoppingOverlayRenderer);var lr=Rf.autoplay;if(lr)var yh=lr.playerOverlayAutoplayRenderer}}if(!ae&&lf){var mr=
lf.endScreen&&lf.endScreen.endScreen;mr&&(ae=mr.results)}if(lf){var nr=lf.desktopOverlay&&lf.desktopOverlay.desktopOverlayConfigRenderer;nr&&(nr.suppressShareButton&&(a.showShareButton=!1),nr.suppressWatchLaterButton&&(a.Vd=!1))}bx&&mia(a,b,bx);var ix=GF(0,b.autoplay_count);if(ae){for(var Wn=lf||null,sE=yh||null,or=[],jx=!0,$c=g.q(ae),Xn=$c.next();!Xn.done;Xn=$c.next()){var Yn=Xn.value,pr=void 0,ad=null;if(Yn.endScreenVideoRenderer){var zg=Yn.endScreenVideoRenderer,qr=zg.title;ad={id:zg.videoId,length_seconds:zg.lengthInSeconds};
var kx=zg.publishedTimeText;kx&&(ad.publishedTimeText=g.HD(kx));var lx=zg.shortBylineText;lx&&(ad.author=g.HD(lx));var mx=zg.shortViewCountText;mx&&(ad.short_view_count_text=g.HD(mx));if(qr){ad.title=g.HD(qr);var nx=qr.accessibility;if(nx){var rr=nx.accessibilityData;rr&&rr.label&&(ad.aria_label=rr.label)}}var sr=zg.navigationEndpoint;if(sr){pr=sr.clickTrackingParams;var ox=sr.watchEndpoint;ox&&(ad.Ix=ox)}var px=zg.thumbnailOverlays;if(px)for(var qx=g.q(px),tr=qx.next();!tr.done;tr=qx.next()){var Zn=
tr.value.thumbnailOverlayTimeStatusRenderer;if(Zn)if("LIVE"===Zn.style){ad.live_playback="1";break}else if("UPCOMING"===Zn.style){ad.isUpcoming=!0;break}}var tE=ZG(zg.thumbnail),sl=VG(tE);sl.iurlmq&&(sl={iurlmq:sl.iurlmq,iurlhq:sl.iurlmq});Object.assign(ad,sl)}else if(Yn.endScreenPlaylistRenderer){var Ij=Yn.endScreenPlaylistRenderer,ur=Ij.navigationEndpoint;if(!ur)continue;var rx=ur.watchEndpoint;if(!rx)continue;var te=rx.videoId;ad={list:Ij.playlistId,video_id:te,playlist_length:Ij.videoCount,thumbnail_ids:te};
var sx=Ij.title;sx&&(ad.playlist_title=g.HD(sx));var uE=Ij.shortBylineText;uE&&(ad.playlist_author=g.HD(uE));pr=ur.clickTrackingParams;var vE=ZG(Ij.thumbnail);Object.assign(ad,VG(vE))}ad&&(ad.session_data=g.Md({itct:pr}),jx?(nia(ad,Wn,sE,ix),or.splice(0,0,ad),jx=!1):or.push(ad))}a.suggestions=or}if(yh){a.eC=!!yh.preferImmediateRedirect;a.wc=a.wc||!!yh.webShowNewAutonavCountdown;a.Ze=a.Ze||!!yh.webShowBigThumbnailEndscreen;if(a.wc||a.Ze){var ue=yh,vr=ae||null,wE=lf||null,vi,Jd,bd={id:ue.videoId},tx=
null===(Jd=null===(vi=null===vr||void 0===vr?void 0:vr[0])||void 0===vi?void 0:vi.endScreenVideoRenderer)||void 0===Jd?void 0:Jd.navigationEndpoint;tx&&(bd.session_data=g.Md({itct:tx.clickTrackingParams}));var wr=ue.videoTitle;if(wr){bd.title=g.HD(wr);var ux=wr.accessibility;if(ux){var xr=ux.accessibilityData;xr&&xr.label&&(bd.aria_label=xr.label)}}var yr=ue.byline;yr&&(bd.author=g.HD(yr));var vx=ue.publishedTimeText;vx&&(bd.publishedTimeText=g.HD(vx));var $n=ue.shortViewCountText;$n&&(bd.short_view_count_text=
g.HD($n));var wx=ue.thumbnailOverlays;if(wx)for(var xx=g.q(wx),zr=xx.next();!zr.done;zr=xx.next()){var Ag=zr.value.thumbnailOverlayTimeStatusRenderer;if(Ag)if("LIVE"===Ag.style){bd.live_playback="1";break}else if("UPCOMING"===Ag.style){bd.isUpcoming=!0;break}else if("DEFAULT"===Ag.style&&Ag.text){bd.lengthText=g.HD(Ag.text);var yx=Ag.text.accessibility;if(yx){var Ar=yx.accessibilityData;Ar&&Ar.label&&(bd.ku=Ar.label)}break}}var xE=ZG(ue.background),wi=VG(xE);wi.iurlmq&&(wi={iurlmq:wi.iurlmq,iurlhq:wi.iurlmq});
Object.assign(bd,wi);var zx=ue.nextButton;if(zx){var Br=zx.buttonRenderer;if(Br){var Cr=Br.navigationEndpoint;if(Cr){var Ax=Cr.watchEndpoint;Ax&&(bd.Ix=Ax)}}}if(ue.topBadges){var Bx=ue.topBadges[0];if(Bx){var Dr=Bx.metadataBadgeRenderer;Dr&&"BADGE_STYLE_TYPE_PREMIUM"==Dr.style&&(bd.gv=!0)}}var Cx=ue.alternativeTitle;Cx&&(bd.jq=g.HD(Cx));nia(bd,wE,ue,ix);a.suggestions||(a.suggestions=[]);a.suggestions[0]=bd}null!=yh.countDownSecs&&(a.IH=1E3*yh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&
(a.jc=ZG(a.watchNextResponse.currentVideoThumbnail));if(!a.Z("player_parse_profile_picture_from_watch_next_killswitch")){var Er=null===(F=null===(y=null===(x=null===(w=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===w?void 0:w.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===F?void 0:F.contents;if(Er&&Er[1]){var tl=null===(J=null===(K=null===(G=null===(D=Er[1].videoSecondaryInfoRenderer)||void 0===D?void 0:D.owner)||void 0===
G?void 0:G.videoOwnerRenderer)||void 0===K?void 0:K.thumbnail)||void 0===J?void 0:J.thumbnails;tl&&tl.length&&(a.dg=tl[tl.length-1].url)}}}};
KH=function(a){return!!(a.u&&a.u.videoInfos&&a.u.videoInfos.length)};
OH=function(a){if(a.Z("html5_single_format_policy")&&a.Oh)return a.Oh;var b=a.za,c=!!a.i&&($A(a.i)||aB(a.i)||bB(a.i)),d=a.B,e=!!a.i&&a.i.ej,f=LH(a),h=a.Ny;a.isAd();var l=a.isOtf(),m=MH(a,"html5_samsung_vp9_live"),n=new tha;if(g.U(d.experiments,"html5_high_res_logging")||g.U(d.experiments,"html5_logging_format_selection"))n.i=!0;n.za=f;n.ea=h&&d.u;Zp("windows nt 5.1")&&!g.oF&&(n.u=!0);if(f=c)f=d.Z("disable_html5_ambisonic_audio")||!(g.yG(d)||d.Z("html5_enable_spherical")||d.Z("html5_enable_spherical3d"))?
!1:Kha(d);f&&(n.ma=!0);b&&(n.u=!0,n.ib=!0);l&&!g.U(d.experiments,"html5_otf_prefer_vp9")&&(n.u=!0);XE(d.B,YE.CHANNELS)&&(g.U(d.experiments,"html5_enable_aac51")&&(n.ca=!0),g.U(d.experiments,"html5_enable_ac3")&&(n.L=!0),g.U(d.experiments,"html5_enable_eac3")&&(n.W=!0),g.U(d.experiments,"html5_enable_ac3_gapless")&&(n.ia=!0));g.U(d.experiments,"html5_block_8k_hfr")&&(n.Ha=!0);n.C=g.S(d.experiments,"html5_max_selectable_quality_ordinal");!g.U(d.experiments,"html5_kaios_hd_killswitch")&&NF&&(n.Pa=480);
if(e||c)n.Ca=!1;n.Ja=!1;b=fF(d,n.l);0<b&&2160>b&&(MA()||g.U(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+MA(),n.I=b);2160<=b&&(n.Za=!0);dF()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.Db=!1);n.Sb=m;m=g.Fs||nq()&&!m?!1:!0;n.la=m;n.Y=g.U(d.experiments,"html5_format_hybridization");n.Wa=g.U(d.experiments,"html5_offline_av1_fallback");n.X=g.U(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff");n.La=g.U(d.experiments,"html5_disable_codec_on_platform_errors");cq()&&a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.L=!0,n.W=!0);a.np&&(n.J=a.np);a.ep&&(n.B=a.ep);n.ga=a.isLivePlayback&&NH(a)&&a.B.Z("html5_drm_live_audio_51");return a.Oh=n};
pia=function(a){a.ld||a.i&&ZA(a.i);var b={};a.i&&(b=VE(OH(a),a.B.B,a.i,function(c){return a.V("ctmp","fmtflt",c)}));
b=new rF(b,a.B.experiments,a.bE,oia(a),a.Ia);g.I(a,b);a.Si=!1;a.Y=!0;wha(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.l=a.ld;e.J=a.XP;e.I=a.WP;break;case "widevine":e.B=a.DH}a.Xe=c;if(0<a.Xe.length&&(a.I=a.Xe[0],g.PH(a))){c=[];d=g.q(Object.entries(a.I.i));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.Ia("drmProbe",c.join("."))}yH(a)})};
RH=function(a,b){var c;(c=!b)||(c=!(!HH(a)&&a.adaptiveFormats));if(c)return null;MH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(iB=!0);var d=QH(b);c=eB(d,a.Qd,a.lengthSeconds,a.isLivePlayback,a.xe,a.B.experiments);0<d.length&&(d=d[0],d.url&&d.sp&&d.s&&(d=gB(d.url,d.sp,d.s),d=Number(d.get("max_sq"))||Infinity,isFinite(d)&&(a.Ri=!0)));if(d=c.isManifestless)d=!(a.Z("html5_manifestless_vp9")||a.Z("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||
!qia(c));return d?(c.dispose(),null):c};
JH=function(a,b){var c=RH(a,b);if(!c)return!1;SH(a,c);return!0};
HH=function(a){return cq()&&!TH(a)};
TH=function(a){return MH(a,"html5_enable_tvos_dash_dogfood")||a.Z("html5_enable_tvos_dash")&&(a.Z("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
oia=function(a){return a.useCobaltWidevine?a.Z("html5_enable_tvos_widevine")&&cq()?TH(a):MH(a,"html5_enable_androidtv_cobalt_widevine")&&Zp("cobalt")&&Zp("android")?!0:!1:!1};
qia=function(a){return a.isManifestless&&CA('video/webm; codecs="vp9"')&&g.Fb(a.i,function(b){return Yy(b.info)})};
UH=function(a){return!(!a.i||!a.i.isManifestless)};
ria=function(a){if(!cA())return!1;if(a.Z("html5_streaming_debug"))return!0;if(g.Fs)return!1;if(g.bq()){var b=Yp();if(16<=b&&17>b)return!1}return!UH(a)||"ULTRALOW"!=a.latencyClass&&21530001!=VH(a)?window.AbortController?a.Z("html5_streaming_xhr")||a.Z("html5_streaming_xhr_manifestless")&&UH(a)?!0:!1:!1:!0};
sia=function(a){return eA({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Xi:a.Xi,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:UH(a),jA:ria(a)})};
VH=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=sB(a.i)?21530001:a.liveExperimentalContentId};
GH=function(a){return cq()&&TH(a)?!1:!vF()||a.QA?!0:!1};
tia=function(a){a.Y=!0;a.Kc=!1;if(!a.ea&&IH(a))xfa(a.videoId).then(function(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=gH(f.value),e.push(f);a:if(d=e.join(","),e=RH(a,a.adaptiveFormats))if(d=RH(a,d)){f=g.q(Object.keys(d.i));for(var h=f.next();!h.done;h=f.next()){var l=h.value;h=d.i[l];l=e.i[l];if(!l||h.lastModified<l.lastModified){WH(a,!0);a.km=new MG(a.videoId,2,{gp:!0});d.dispose();SH(a,e);break a}}e.dispose();SH(a,d)}else SH(a,e);a.Ia("dlr","")},function(){return JH(a,a.adaptiveFormats)}).then(function(){yH(a)});
else{Rx(a.ea)||g.ht(new g.Tr("DASH MPD Origin invalid: ",a.ea));var b=a.ea,c=g.S(a.B.experiments,"dash_manifest_version")||4;b=g.Od(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Od(b,{pacing:0}));Pga(b,a.B.experiments,a.isLivePlayback).then(function(d){a.na()||(SH(a,d,!0),hE("mrc"),yH(a))},function(d){a.na()||(a.Y=!1,a.V("dataloaderror",new g.IA("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
hE("mrs")}};
yH=function(a){a.na()||(a.Y=!1,a.V("dataloaded"))};
SH=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.I(a,b);b.Od=a.Od;b.Yf=a.Yf;b.I=a.IG;b.L=a.xG;uia(a)&&a.X.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.We=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Ia,a),c?b.subscribe("refresh",a.qF,a):b.subscribe("cuepointsadded",a.OC,a));ZA(b)&&(a.Si=!0)};
NH=function(a){return a.Qd?!0:!!a.i&&ZA(a.i)};
zia=function(a,b){if(a.na())return xt();a.u=null;a.ga=null;a.Za=null;var c=a.B.deviceParams.c;a.Z("disable_rqs")||(a.ib=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||g.PH(a));return via(a,b).then(void 0,function(){return wia(a,b)}).then(void 0,function(){return xia(a)}).then(void 0,function(){return yia(a)})};
via=function(a,b){var c=b||GH(a);return a.i&&!c?(LH(a)&&Tga(a.i,a.isLivePlayback),MH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.B.l=!0),Aia(a).then(function(){return sha(OH(a),a.B.B,a.i,a.I,function(d){return a.V("ctmp","fmtflt",d)},a.Z("html5_dynamic_av1_hybrid_threshold")).then(function(d){Bia(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Oh&&a.Ia("av1",g.JA(a.Oh.l))})})):xt()};
Aia=function(a){if(!a.i||!a.i.i||!a.Z("html5_use_media_capability"))return zt();for(var b=[],c=g.q(Object.keys(a.i.i)),d=c.next();!d.done;d=c.next())(d=a.i.i[d.value])&&d.info&&b.push(d.info);return tH(b)};
wia=function(a,b){if(b&&a.hlsvp)return xt();if(a.hlsFormats){var c=QH(a.hlsFormats);a.fm=Oha(a.B,c);var d=a.clientPlaybackNonce;return Sha(a.B,a.isAd(),c,a.eh,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.ff())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.i)>l&&(l=n.ff().audio.i);2<l&&a.Ia("hlschl",""+l);XH(a,e)})}return xt()};
xia=function(a){return a.Af&&a.VB?Vha(a.B,a.isAd(),a.Af).then(function(b){XH(a,b)}):xt()};
yia=function(a){var b=QH(a.tj,a.Uv);if(a.hlsvp){var c=gia(a.hlsvp,a.clientPlaybackNonce,a.eh);b.push(c)}return Tha(a.B,a.isAd(),b,Cia(a)).then(function(d){XH(a,d)})};
Bia=function(a,b){a.u=b;var c=a.getAvailableAudioTracks();c=c.concat(a.Jh);for(var d=0;d<a.Ov.length;d++)for(var e=a.Ov[d],f=0;f<c.length;f++){var h=c[f],l=h.i.id==e.audioTrackId;if(h.i.isDefault&&d==a.OA||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.B=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.l=a.captionTracks[e.forcedCaptionTrackIndex]);
h.u=e.visibility||"UNKNOWN";h.captionsInitialState=e.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.I&&a.u&&a.u.videoInfos&&!(0>=a.u.videoInfos.length)&&(c=wA(a.u.videoInfos[0]),c!=("fairplay"==a.I.flavor)))for(d=g.q(a.Xe),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.I=e;break}};
XH=function(a,b){a.Za=b;Bia(a,new SE(g.Qc(a.Za,function(c){return c.ff()})))};
Cia=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.mm&&(b.ptk=a.mm,b.oid=a.aC,b.ptchn=a.ZB,b.pltype=a.bC);return b};
g.YH=function(a){return HH(a)&&a.ld?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Qd||null};
Dia=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.HD(b.text):a.paidContentOverlayText};
ZH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?vd(b.durationMs):a.paidContentOverlayDurationMs};
$H=function(a){var b="";if(a.Iw)return a.Iw;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.aI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
Eia=function(a){return a.i&&!isNaN(rB(a.i))?rB(a.i):UH(a)?0:a.lengthSeconds};
Fia=function(a){return!!(a.ea||a.adaptiveFormats||a.tj||a.Af||a.hlsvp)};
xH=function(a){var b=g.fb(a.X,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Y&&(Fia(a)||g.fb(a.X,"heartbeat")||b)};
QH=function(a,b){var c=Ap(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};
lia=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.sj=!!e.copyTextEndpoint)};
zH=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.mh=c);if(a.mh){if(c=a.mh.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.mh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Pa=d,a.C=!0):(a.Pa="",a.C=!1);if(d=c.defaultThumbnail)a.jc=ZG(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&mia(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Tv=d.title,a.Sv=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Vd=!!c.addToWatchLaterButton;lia(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.lm=new Wha(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=vd(c.videoDurationSeconds));a.Z("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&eH(a,c.webPlayerActionsPorting);if(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.HD(l.shortBylineText):"",n=l.title?g.HD(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.HD(c.titleText));c.shortBylineText&&(d.author=g.HD(c.shortBylineText));a.SA=d}}a.mh.playabilityStatus&&(a.Lh=a.mh.playabilityStatus,Gia(a)&&(a.errorDetail="0",a.Lh&&(c=a.Lh.embeddedPlayerErrorMessageRenderer)))&&
(a.RA=c.embeddedPlayerErrorMessageRenderer);(c=a.mh.attestation)&&cH(a,c)}};
nia=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.Md(d)};
mia=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.HD(e));if(d=d.subtitle)b.subtitle=g.HD(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.HD(d);if(d=c.subtitle)b.expanded_subtitle=g.HD(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.af=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.My=b.toggledServiceEndpoint||null,a.yy=b.defaultServiceEndpoint||null):(a.My=b.defaultServiceEndpoint||null,a.yy=b.toggledServiceEndpoint||
null))}};
g.bI=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
cI=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.dI=function(a){return!!a.i&&$A(a.i)};
g.eI=function(a){return!!a.i&&aB(a.i)};
uia=function(a){return g.eI(a)||g.dI(a)||g.fI(a)||g.gI(a)};
g.gI=function(a){return!!a.i&&bB(a.i)};
g.fI=function(a){return!!a.i&&Hga(a.i)};
Hia=function(a){a.u=a.u.l};
g.Iia=function(a){if(a.Ax)return null;var b=a.WB;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Jia=function(a){return a.Ax?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.hI=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.iI=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};
jI=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.B.ia};
kI=function(a){if(a.isAd()&&a.videoId!=a.B.lc)return a.B.lc};
lI=function(a){return a.ki||"detailpage"==jI(a)||a.mutedAutoplay};
mI=function(a){if(lI(a)){if("detailpage"==jI(a))return a.ph||0<a.La;if(!g.U(a.B.experiments,"enable_auto_play_param_fix_for_masthead_ad")||"17_8"!==a.adFormat||a.ph)if("adunit"!=jI(a)||!a.Ye)return!0}return!1};
g.nI=function(a){return a.oauthToken||a.B.Vd};
Kia=function(a,b){b=void 0===b?!1:b;var c=1,d=g.S(a.B.experiments,"html5_default_ad_gain");d&&a.isAd()&&(c=d);d=a.hj;a.u&&a.u.i&&a.u.i[0]&&a.Kw[a.u.i[0].id]&&(d=a.Kw[a.u.i[0].id]);if(b&&!a.Zo&&null!=d){var e=0;g.U(a.B.experiments,"html5_diff_bias_over_ad_content")&&(e=a.isAd()?0:3);d-=Math.min(0,e+Math.max(a.B.Af,g.S(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.Zo=d}return Math.min(1,Math.pow(10,-d/20))||c};
LH=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.B.deviceParams.c&&"MUSIC"===a.B.deviceParams.ctheme;!a.Tc&&(tG(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Tc=!0);if(b=g.bq())b=/Starboard\/([0-9]+)/.exec(g.Wc),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;
var d;if(d=!a.Tc)c||(c=a.B,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.Z("cast_prefer_audio_only_for_atv_and_uploads")||a.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Tc=!0);return!a.B.deviceHasDisplay||a.Tc&&a.B.u};
pI=function(a){return oI(a)&&!!a.adaptiveFormats};
oI=function(a){return!!(a.Z("hoffle_save")&&a.De&&a.B.u)};
WH=function(a,b){if(a.De!=b&&(a.De=b)&&a.i){var c=a.i,d;for(d in c.i){var e=c.i[d];e.u=!1;e.i=null}}};
IH=function(a){var b;if(b=a.Z("hoffle_load")&&a.adaptiveFormats)b=a.videoId,b=!!b&&1===Qu(b);return!(!b||a.De)};
Lia=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&ay(b[a.l.id].l.i)&&!!b[a.J.id]&&ay(b[a.J.id].l.i)};
Gia=function(a){return(a=a.Lh)&&a.showError?a.showError:!1};
g.PH=function(a){return a.Z("disable_rqs")?!1:MH(a,"html5_high_res_logging")};
MH=function(a,b){return a.Z(b)?!0:(a.fflags||"").includes(b+"=true")};
Mia=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
EH=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Mw=c.quartile_0_url,a.gC=c.quartile_25_url,a.hC=c.quartile_50_url,a.iC=c.quartile_75_url,a.fC=c.quartile_100_url,a.nm=c.quartile_0_urls,a.Ow=c.quartile_25_urls,a.Pw=c.quartile_50_urls,a.Qw=c.quartile_75_urls,a.Nw=c.quartile_100_urls)};
FH=function(a){return a?vF()?!0:qI&&5>rI?!1:!0:!1};
DH=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};
dH=function(a){if(a){if(Ux(a))return a;a=Vx(a);if(Ux(a,!0))return a}return""};
Nia=function(a){this.i=a};
Oia=function(a){var b=new Nia(a.G);return{iL:function(){return b}}};
sI=function(a,b){this.i=a;this.za=b||{};this.L=String(Math.floor(1E9*Math.random()));this.J={};this.W=0};
Pia=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}};
tI=function(){g.R.call(this);var a=this;this.i={};g.Gi(this,function(){return Object.keys(a.i).forEach(function(b){return delete a.i[b]})})};
vI=function(){if(null===uI){uI=new tI;hl.getInstance().i="b";var a=hl.getInstance(),b="h"==Pk(a)||"b"==Pk(a),c=!(qh.getInstance(),!1);b&&c&&(a.C=!0,a.I=new mca)}return uI};
Qia=function(a,b,c){a.i[b]=c};
Ria=function(a){this.u=a;this.l={};this.i=Wf()?500:g.fG(a.T())?1E3:2500};
Tia=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.l||(a.l[d.mimeType]=a.u.canPlayType(d.mimeType));return a.l[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return Sia(a,c)};
Sia=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.i||h<a.i||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.i||(!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.i||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
wI=function(a,b){this.i=a;this.C=b;this.l=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};
xI=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||[]]])};
Uia=function(a){return(a=a.pings)?Object.fromEntries(xI(a)):{}};
yI=function(a,b,c,d,e){sI.call(this,a,Uia(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ca=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.u=new wI(0,[]);this.I=this.ga=null;this.Ha=b;this.ma=[];this.C={};this.ia=null;this.l=0;this.X=this.ca=this.B=null;this.ea=e;this.Y=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.ia=b);this.C=zp(this.i.playerVars||"");if(b=this.i.external)this.ma=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.l=b/1E3,this.C.length_seconds=
this.l.toString()),(b=Tia(this.Ha,this.ma))?(this.ca=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.ca)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.B=this.i.externalVideoId||null,this.ga=this.C.ucid||null,this.l=GF(this.l,this.C.length_seconds),this.ea&&this.B&&(this.Y=this.ea(this.B)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.ro(f)}this.I=
this.i.clickthroughEndpoint||null;this.u=new wI(0,[this.l])};
Via=function(a){var b=a.C||{};1<a.u.l&&(b.slot_pos=a.u.i);b.autoplay="1";return b};
zI=function(a){return 0<a.l&&7.05>=a.l};
AI=function(){this.i=[];this.u=null;this.l=0};
BI=function(a,b){b&&a.i.push(b)};
CI=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};
DI=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};
EI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
FI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Wia=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=CI(a.impressionCommands)||[];b.error=CI(a.errorCommands)||[];b.mute=CI(a.muteCommands)||[];b.unmute=CI(a.unmuteCommands)||[];b.pause=CI(a.pauseCommands)||[];b.rewind=CI(a.rewindCommands)||[];b.resume=CI(a.resumeCommands)||[];b.skip=CI(a.skipCommands)||[];b.close=CI(a.closeCommands)||[];b.clickthrough=CI(a.clickthroughCommands)||[];b.fullscreen=CI(a.fullscreenCommands)||[];b.active_view_viewable=CI(a.activeViewViewableCommands)||
[];b.active_view_measurable=CI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=CI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=CI(a.endFullscreenCommands)||[];b.channel_clickthrough=CI(a.channelClickthroughCommands)||[];b.abandon=CI(a.abandonCommands)||[];b.progress=DI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=DI(a.progressCommands.filter(function(c){return FI(c)&&he(EI(c),0)}));
b.first_quartile=DI(a.progressCommands.filter(function(c){return FI(c)&&he(EI(c),.25)}));
b.midpoint=DI(a.progressCommands.filter(function(c){return FI(c)&&he(EI(c),.5)}));
b.third_quartile=DI(a.progressCommands.filter(function(c){return FI(c)&&he(EI(c),.75)}));
b.complete=DI(a.progressCommands.filter(function(c){return FI(c)&&he(EI(c),1)}));
return b};
GI=function(a){sI.call(this,a,Wia(a));this.l=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};
Xia=function(a,b,c,d){this.id=b;this.Y=a.placementStartPings||[];this.X=a.placementEndPings||[];this.B=d.md;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.u=(this.I=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=FD(b,d);if(null==f)d=new CD(b,new An(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(go.getInstance().i++).toString(36);var h=d.daiEnabled||d.md;f=new CD(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.md||0<d.i)if(d=FD(b,d,!0))h=new CD(b,d,!1,"prefetch:"+e,3),f.u=h,h.u=f;d=[h,f]}this.ca=d[0];this.i=d[1];this.l=c;this.J=!1;this.C={};this.W={};this.L=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
HI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
JI=function(a){var b={};Yia(a,b);Zia(b);b.LACT=II(function(){return tp().toString()});
b.VIS=II(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=II(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
$ia=function(a){var b={};if(!a.kind)return g.gt(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.gt(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=II(Ya(Math.round(vd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=II(Ya("0"));return b};
II=function(a){return{toString:function(){return a()}}};
aja=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.Pb(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};
Yia=function(a,b){b.CPN=II(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.ht(Error("Video data is null.")),c=null);return c});
b.AD_MT=II(function(){return bja(a,2)});
b.MT=II(function(){return bja(a,1)});
b.P_H=II(function(){return a.Ka().Vf().height.toString()});
b.P_W=II(function(){return a.Ka().Vf().width.toString()});
b.PV_H=II(function(){return a.Ka().getVideoContentRect().height.toString()});
b.PV_W=II(function(){return a.Ka().getVideoContentRect().width.toString()})};
bja=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
Zia=function(a){a.CONN=II(Ya("0"));a.WT=II(function(){return Date.now().toString()})};
KI=function(a){var b=Object.assign({},{});b.MIDROLL_POS=HI(a)?II(Ya(Math.round(a.i.start/1E3).toString())):II(Ya("0"));return b};
cja=function(a){var b={};b.SLOT_POS=II(Ya(a.u.i.toString()));return b};
dja=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};
LI=function(a){for(var b={},c=g.q(eja),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
MI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.la(b)));return c};
NI=function(){};
OI=function(a){this.i=a};
PI=function(a){this.i=a;Gp()};
fja=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.Gi(this,function(){return b.i=null})};
gja=function(a){return QI(a)&&1==a.getPlayerState(2)};
QI=function(a){a=a.hc();return void 0!==a&&2==a.getPlayerType()};
RI=function(a){a=a.T();return dG(a)&&!g.sG(a)&&"desktop-polymer"==a.playerStyle};
SI=function(a,b){var c=a.T();UF(c)||"3"!=c.controlsType||a.Ka().Ur(b)};
hja=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};
ija=function(a){this.i=a;var b=hl.getInstance(),c=a.xd();b.B!==c&&((b.B=c)||Vca(b));g.U(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&Tg(qh.getInstance().featureSet,"ssmol",1)};
jja=function(a,b,c,d,e,f,h){f=void 0===f?new PI(new OI(d.getVideoData(1))):f;h=void 0===h?!1:h;g.E.call(this);this.l=a;this.J=b;this.u=c;this.i=d;this.W=f;this.I=Array.from(this.l.za.progress||[]);this.I.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.B={TA:.25,SECOND:.5,dC:.75};this.C=null;this.L=h};
mja=function(a,b,c){!TI(a)&&0<c&&(UI(a,b),VI(a)?kja(a,b,c):lja(a,b,c))};
XI=function(a,b){TI(a)||(VI(a)?(UI(a,0,!0),kja(a,b,b)):(UI(a,0,!0),lja(a,0,0,!0)),WI(a,"complete"))};
UI=function(a,b,c){for(c=void 0===c?!1:c;a.l.W<a.I.length;){var d=YI(a,"progress"),e=a.I[a.l.W];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&ZI(a,f,d,e.headers||[]);a.l.W++}else break}};
lja=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.B.TA||d)&&WI(a,"first_quartile");(b>=c*a.B.SECOND||d)&&WI(a,"midpoint");(b>=c*a.B.dC||d)&&WI(a,"third_quartile")};
$I=function(a,b,c,d){if(null==a.C){if(c<d||1<c-d)return}else if(a.C>d||d>c)return;WI(a,b)};
kja=function(a,b,c){if(0<c&&0<b){var d=a.i.Xa(a.i.getPresentingPlayerType());g.W(d,16)||g.W(d,32)||($I(a,"first_quartile",b,c*a.B.TA),$I(a,"midpoint",b,c*a.B.SECOND),$I(a,"third_quartile",b,c*a.B.dC))}a.C=b};
aJ=function(a,b){for(var c=YI(a,b),d=g.q(a.l.za[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&ZI(a,f,c,e.headers||[])}a.l.J[b]=!0};
WI=function(a,b){a.l.J.hasOwnProperty(b)||aJ(a,b)};
bJ=function(a,b){return a.l.J.hasOwnProperty(b)};
ZI=function(a,b,c,d){for(var e=a.W,f=e.send,h={},l=JI(a.i),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.u);f.call(e,b,a,c,d)};
YI=function(a,b){var c=a.J;var d=a.l;if(d.lr()){var e=hja(b);if(null==e)d={};else{var f;(f=d.la()())||(f=(f=c.i)&&f.hc?(f=f.hc())&&2==f.getPlayerType()?cJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.i.isFullscreen()},d=ml(e,d.L,c)):d={}}}else d={};return d?Object.assign({},d):{}};
VI=function(a){return!g.U(a.i.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.L};
TI=function(a){return VI(a)&&!bJ(a,"impression")};
nja=function(a){return VI(a)&&bJ(a,"seek")};
eJ=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.i=e;this.l=f;this.id=dJ(a)};
dJ=function(a){return a+(":"+(go.getInstance().i++).toString(36))};
fJ=function(a){this.i=a};
oja=function(a,b){if(0===b||1===b&&(a.i.i||g.sG(a.i)||g.fG(a.i)||gG(a.i)||!g.Zr))return!0;var c=g.we("video-ads");return null!=c&&"none"!==rg(c,"display")};
g.gJ=function(a,b){this.state=a;this.Gl=b};
hJ=function(a,b){return g.W(a.state,b)&&!g.W(a.Gl,b)?1:!g.W(a.state,b)&&g.W(a.Gl,b)?-1:0};
g.iJ=function(a,b){return 0<hJ(a,b)};
jJ=function(a,b,c,d,e,f){f=void 0===f?0:f;g.R.call(this);this.G=a;this.l=d;this.u=e;this.u.i[b.L]=this;this.u.subscribe("adactiveviewmeasurable",this.lG,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.mG,this);this.u.subscribe("adoverlaymeasurableimpression",this.nG,this);this.u.subscribe("adoverlayunviewableimpression",this.oG,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.pG,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.qG,this);
this.u.subscribe("adviewableimpression",this.rG,this);this.ad=b;this.ia=[];this.macros=c;this.J=!1;this.ca=!oja(new fJ(this.G.T()),f)};
kJ=function(a,b){pb(a.ia,b);pja(a,b,1)};
qja=function(a){a=a.l;a.u=MI(a.u,dja(0,"No playable media files can be selected"));WI(a,"error")};
pja=function(a,b,c){0!=b.length&&(b=g.Qc(b,function(d){return new GD(d,c,d.id)}),a.V("onAdUxUpdate",b))};
lJ=function(a){var b={};b.abandon=a.abandonCommands&&CI(a.abandonCommands.commands)||[];sI.call(this,a,b)};
mJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;eJ.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.dA=e;this.ev=f};
nJ=function(a,b,c,d,e,f){jJ.call(this,a,b,c,d,e,1);this.B=b;this.i=b.i.durationMilliseconds||0;this.gb=null;this.C=f};
oJ=function(a){sI.call(this,a);this.l=zp(this.i.playerVars||"")};
pJ=function(){sI.apply(this,arguments)};
qJ=function(){sI.apply(this,arguments)};
rJ=function(){sI.apply(this,arguments)};
sJ=function(){sI.apply(this,arguments)};
tJ=function(){sI.apply(this,arguments)};
rja=function(a,b,c,d,e,f,h,l,m){this.W=a;this.B=b;this.I=c;this.i=d;this.C=e;this.L=f;this.J=h;this.u=l;this.l=m};
uJ=function(a,b,c,d,e){jJ.call(this,a,b,c,d,e);var f=this;this.C=b;this.i=new g.M(function(){f.ke("load_timeout")},1E4);
g.I(this,this.i);this.B=new Nt(this);g.I(this,this.B)};
sja=function(a){eJ.call(this,"ad-message",a)};
vJ=function(a,b,c,d,e,f,h){jJ.call(this,a,b,c,d,e);var l=this;this.C=b;this.L=b.i.durationMs||0;this.I=h;this.W=!1;this.i=this.B=0;this.X=function(){var m=l.G.getProgressState().current;m<l.B?l.kf():m>l.i&&l.Te()}};
tja=function(a){if(a.I&&a.W){a.W=!1;a=g.q(a.I.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.i){b=c.i;c.i=void 0;c.l=void 0;c=c.u();wJ(c.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.Kd);for(var d=c.next();!d.done;d=c.next())d.value.qf(b)}else tD("Received AdNotify terminated event when no slot is active")}}};
xJ=function(a,b,c,d){eJ.call(this,"invideo-overlay",a,b,c,d);this.i=d};
yJ=function(a,b,c,d,e){jJ.call(this,a,b,c,d,e);this.i=b};
uja=function(a,b){eJ.call(this,"persisting-overlay",a,b)};
zJ=function(a,b,c,d,e){jJ.call(this,a,b,c,d,e);this.i=b};
vja=function(){eJ.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.AJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Lv:c.Lv},e=d.next())e=e.value,c.Lv=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Lv}}(c));
return a};
BJ=function(a){return a?g.HD(a):null};
wja=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};
xja=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
yja=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Bja=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&&(zja(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=BJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Aja(a,b,c,d))}};
zja=function(a,b,c){var d=BJ(b.confirmLabel)||"",e=BJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(BJ(l.value)||"");h=b.headerTitle?g.HD(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:BJ(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)}};
Aja=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:BJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=wja(b.navigationEndpoint);var h=yja(b[1]),l=[yja(b[0])];(b=xja(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)};
Cja(a,e,d)}}};
Cja=function(a,b,c){a.muteAdInfo.goneText=BJ(b.title)||"";a.muteAdInfo.questionText=BJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=BJ(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=BJ(e.reason)||"";e=wja(e.endpoint)[0];a.push({label:d,url:e})}};
Dja=function(a,b){var c=new vja;c.adBadgeText="Ad";1<a.l&&(c.adPodPositionInfoString=g.AJ("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.i+1),ADS_COUNT:String(a.l)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.i+1;c.adPodLength=a.l;null!=a.u&&(c.adBreakEndSeconds=a.u/1E3);b&&(c.adVideoId=b);return c};
CJ=function(a,b,c,d,e,f,h){this.u=a;this.B=b;this.i=JI(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.J=d;this.I=e;this.l=h};
Eja=function(a,b,c,d){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 e=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var f;if(f=a.l)f=a.l,f=g.fG(f.G.T())&&g.U(f.G.T().experiments,"html5_check_video_ad_completed_before_ping_skip_on_tv");f&&d&&d()||((f=e.adRendererCommands&&e.adRendererCommands.clickCommand)?a.lg(f):a.C.ul())};
b.skipShown=function(){a.lg(e.adRendererCommands&&e.adRendererCommands.impressionCommand)}}};
Fja=function(a,b,c){Bja(b,c,function(d){a.lg(d)},function(d){a.sendAdsPing(d)})};
Gja=function(a){if(g.U(a.J.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)};
Hja=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,adBreakRemainingLengthSeconds:null}};
Ija=function(a,b,c,d,e,f,h,l){this.i=c;this.l=new CJ(a,b,d,e,h,void 0,f);this.u=l};
Jja=function(a,b,c,d){var e=Hja();e.instreamAdPlayerOverlayRenderer=b;c&&(e.adNextParams=c);e.executeCommand=function(f){a.l.lg(f)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Eja(a.l,e,b.skipOrPreviewRenderer.skipAdRenderer,d)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Fja(a.l,e,b.adInfoRenderer.adHoverTextButtonRenderer)}e.isBumper=zI(a.i)&&!e.isSkippable;e.isPostroll=a.i.isPostroll;a.i.isSkippable();b=a.i.B;c=a.i.getVideoUrl();b?e.videoId=b:c&&(e.videoUrl=c);if(b=(b=a.i.I)&&b.urlEndpoint)e.clickThroughUrl=b.url||"";e.sendAdsPing=
function(f){a.l.sendAdsPing(f)};
e.daiEnabled=a.u;e.remoteSlotsData=a.i.Y;return e};
Kja=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};
Mja=function(a,b,c,d,e,f){this.i=new CJ(a,b,c,d,e,Lja(f))};
Nja=function(a,b){var c=Hja();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){a.i.lg(e)};
var d=Kja(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Eja(a.i,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Fja(a.i,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.i.sendAdsPing(e)};
return c};
Lja=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=II(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=II(a);return b};
DJ=function(a,b,c){g.R.call(this,!0);var d=this;this.I=b;this.C=c;this.l=a;this.gb=new g.Fm(200);this.gb.ya("tick",function(){var e=Date.now(),f=e-d.B;d.B=e;d.i+=f;d.i>=d.l&&(d.i=d.l,d.gb.stop());e=d.i/1E3;d.C&&d.C.Ab(e);Oja(d,{current:e,duration:d.l/1E3})});
g.I(this,this.gb);this.i=0;this.u=null;g.Gi(this,function(){d.u=null});
this.B=0};
Oja=function(a,b){a.I.xa("onAdPlaybackProgress",b);a.u=b};
Pja=function(a){eJ.call(this,"survey",a)};
EJ=function(a,b,c,d,e,f,h){jJ.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new Nt;g.I(this,this.B);this.B.N(this.G,"resize",function(){450>l.G.Ka().Vf().width&&(g.Pt(l.B),l.kf())});
this.L=0;this.I=h(this,function(){return""+(Date.now()-l.L)});
if(this.i=g.fG(a.T())?new DJ(1E3*b.l,a,f):null)g.I(this,this.i),this.B.N(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.C.i,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,l.I.lg(m&&m.timeoutCommands)):g.gt(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
Qja=function(a,b){eJ.call(this,"survey-interstitial",a,b)};
FJ=function(a,b,c,d,e){jJ.call(this,a,b,c,d,e,1);this.i=b};
Rja=function(a){eJ.call(this,"ad-text-interstitial",a)};
GJ=function(a,b,c,d,e,f){jJ.call(this,a,b,c,d,e);this.B=b;this.i=b.i.durationMilliseconds||0;this.gb=null;this.C=f};
Sja=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Cd(window.location.href);e&&d.push(e);e=g.Cd(a);if(g.fb(d,e)||!e&&pc(a,"/"))if(g.Ko("autoescape_tempdata_url")&&(d=document.createElement("a"),g.md(d,a),a=d.href),a&&(d=Ed(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.iu()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+ud(d).toString(36),c=c?g.Md(c):"",g.Oq(d,c,f||5))}else f=b,c="ST-"+ud(d).toString(36),
f=f?g.Md(f):"",g.Oq(c,f,5)};
g.Tja=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.Od(a,b)+c;a=a instanceof g.Gc?a:g.Mc(a);d.href=g.Hc(a)};
g.HJ=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Sja(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.Tja(a))};
g.IJ=function(a,b,c){c&&Sja(a,c);c=g.Lc(a);c=g.Hc(c);a!=c&&to(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||ud(a).toString(36))};
Uja=function(a){a=void 0===a?null:a;eJ.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
Vja=function(a){a=void 0===a?null:a;eJ.call(this,"ad-title");this.videoTitle=a};
Wja=function(a){a=void 0===a?null:a;eJ.call(this,"advertiser-name");this.channelName=a};
JJ=function(a,b,c,d,e){e=void 0===e?!1:e;eJ.call(this,"player-overlay",a,{},b,d);this.u=c;this.i=d;this.ev=e};
Xja=function(a){eJ.call(this,"skip-button",a)};
Yja=function(a){eJ.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};
KJ=function(a,b,c,d,e,f,h,l,m,n,p){jJ.call(this,a,b,c,d,e,1);var r=this;this.Gy=!0;this.W=n;this.i=b;this.B=h;this.ga=new Nt(this);g.I(this,this.ga);this.I=new g.M(function(){r.ke("load_timeout")},1E4);
g.I(this,this.I);this.Y=!1;this.ma=m(this);this.la=f;this.L=l;this.C=p;this.X=this.ea=!1};
Zja=function(a){if(a.L&&g.U(a.G.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.i.u,c=b.B,d=b.u,e=b.i;b=b.C;if(void 0===c)g.gt(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.gt(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.i.l)}};
NJ=function(a,b){if(null!==a.W&&(a.ea||LJ(a.C))){a.ea=!1;for(var c=$ja(a),d=g.q(a.W.listeners),e=d.next();!e.done;e=d.next()){e=e.value;var f=c;var h=b;LJ(e.Aa.get())&&!e.i&&"aderror"===h&&(aka(e,f,[],!1),bka(e.u(),e.l),cka(e.u(),e.l));if(e.i&&e.i.layoutId===f){if(LJ(e.Aa.get()))switch(h){case "adabandoned":f="abandoned";break;case "aderror":f="error";break;default:f="normal"}else f="adabandoned"===h?"abandoned":"normal";MJ(e.u(),e.l,e.i,f);e.l=null;e.i=null}else LJ(e.Aa.get())||tD("Received AD_ENDED for unknown layout")}}};
OJ=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
$ja=function(a){if(a=a.i.i.elementId)return a;g.gt(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
dka=function(a,b){var c=Jja(a.ma,b,a.i.i.adNextParams||"",function(){return a.X});
c.attributionInfo=Dja(a.i.u,a.i.B||"");a.G.xa("onAdInfoChange",c);a.X=!1};
PJ=function(a){var b=a.i.i,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.G.T();if(g.sG(d)&&!c.skipOrPreviewRenderer){var e=a.G.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.sG(d)&&g.gt(new g.Tr("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.i.isSkippable()&&!zI(a.i)?d.skipAdRenderer=eka(a):d.adPreviewRenderer=fka(a,!1,zI(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Pb(c.skipOrPreviewRenderer)&&
g.gt(new g.Tr("IAPOR.skipOrPreview was filled, but empty.",b));return c};
eka=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=fka(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
fka=function(a,b,c){var d=a.G.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.AJ("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.AJ("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.AJ("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=nG(a.G.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
gka=function(a){function b(p,r){var t=a.QP,w=Object.assign({},{});w.FINAL=II(Ya("1"));w.SLOT_POS=II(Ya("0"));return MI(t,LI(w),r)}
function c(p){return null==p?{create:function(){return null}}:{create:function(r,t,w){var x=b(r,t);
t=a.uv(r,x);r=p(r,x,t,w);g.I(r,t);return r}}}
var d=c(function(p,r,t){return new yJ(a.G,p,r,t,a.Qi)}),e=c(function(p,r,t){return new nJ(a.G,p,r,t,a.Qi,a.Da)}),f=c(function(p,r,t){return new zJ(a.G,p,r,t,a.Qi)}),h=c(function(p,r,t){return new GJ(a.G,p,r,t,a.Qi,a.Da)}),l=c(function(p,r,t){return new FJ(a.G,p,r,t,a.Qi)}),m=c(function(p,r,t){return new vJ(a.G,p,r,t,a.Qi,a.Da,a.lk)}),n=c(function(p,r,t){return new uJ(a.G,p,r,t,a.Qi,a.Da)});
this.sK=new rja({create:function(p,r){var t=MI(b(p,r),LI(cja(p))),w=a.uv(p,t),x=new KJ(a.G,p,t,w,a.Qi,a.GK,a.Da,a.daiEnabled,function(y){return new Ija(a.Da,t,p,y,a.G,a.Ge,a.ji,a.daiEnabled)},a.mk,a.Ge);
g.I(x,w);return x}},d,{create:function(p,r){var t=a.uv(p,r),w=new EJ(a.G,p,r,t,a.Qi,a.Da,function(x,y){return new Mja(a.Da,r,x,a.G,a.ji,y)});
g.I(w,t);return w}},e,f,h,l,m,n)};
QJ=function(a,b){this.l=a;this.i={};this.u=void 0===b?!1:b};
hka=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{KK:new An(d,c),SL:new Fv(d,c-d,a.context,a.identifier,a.event,a.i)}};
RJ=function(){this.i=[]};
ika=function(a,b,c){var d=g.vb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
jka=function(){this.i=new RJ};
SJ=function(a){this.i=a};
kka=function(a){a=[a,a.u].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
lka=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()};
nka=function(a,b){var c=void 0===c?Date.now():c;if(a.l)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.i;TJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:mka(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&UJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i);e=e.startSecs+e.i/1E3;e>a.B&&a.u.getCurrentTime()>e&&UJ("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i)}};
oka=function(a,b,c){a.l&&TJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
pka=function(a,b){a.l&&TJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.zK}})};
UJ=function(a,b){TJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
TJ=function(a){g.Or("adsClientStateChange",a)};
mka=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"}};
VJ=function(a){this.G=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.Wh=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
qka=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.l="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.Wh=!1;a.i=!1};
rka=function(a){a.i=!1;kE("video_to_ad",["apbs"],void 0,void 0)};
WJ=function(a){a.B?ska(a):(a.i=!1,kE("ad_to_ad",["apbs"],void 0,void 0))};
ska=function(a){a.i=!1;kE("ad_to_video",["pbresume"],void 0,void 0)};
tka=function(a){a.Wh&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(hE("apbs",void 0,a.actionType),g.Ko("finalize_all_timelines")&&(a=a.actionType,fE(a),YD(a),eE(a))))};
uka=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
g.wka=function(a){return(a=vka[a.toString()])?a:"LICENSE"};
XJ=function(){g.E.call(this);this.l=null;this.I=this.C=!1;this.u=new g.Wl;g.I(this,this.u)};
YJ=function(a){a=a.Wq();return 1>a.length?NaN:a.end(a.length-1)};
xka=function(a,b,c){a.Jk()||a.getCurrentTime()>b||10<c||(a.play(),g.uo(function(){xka(a,a.getCurrentTime(),c+1)},500))};
yka=function(a,b){a.l&&null!==b&&b.i===a.l.i||(a.l&&a.l.dispose(),a.l=b)};
ZJ=function(a){return sz(a.Tf(),a.getCurrentTime())};
zka=function(a,b){if(0===a.Fg()||0<a.Hh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.Wq();if(d.length||!c)return pz(d,b)}return c};
Aka=function(a){var b=a.Tf();return 0<rz(b)&&a.getDuration()?b.end(b.length-1):0};
$J=function(a){var b=a.getDuration();return Infinity===b?1:b?a.Do()/b:0};
aK=function(a){switch(a.Hh()){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}};
g.bK=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
cK=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.bK(b,c)};
dK=function(a,b){return cK(a,a.state|b)};
eK=function(a,b){return cK(a,a.state&~b)};
fK=function(a,b,c){return cK(a,(a.state|b)&~c)};
g.W=function(a,b){return!!(a.state&b)};
g.gK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.hK=function(a){return g.W(a,8)&&!g.W(a,2)&&!g.W(a,1024)};
iK=function(a){return a.Kb()&&!g.W(a,16)&&!g.W(a,32)};
Bka=function(a){return g.W(a,8)&&g.W(a,16)};
g.jK=function(a){return g.W(a,1)&&!g.W(a,2)};
kK=function(a){return g.W(a,128)?-1:g.W(a,2)?0:g.W(a,64)?-1:g.W(a,1)&&!g.W(a,32)?3:g.W(a,8)?1:g.W(a,4)?2:-1};
lK=function(a,b,c,d,e,f,h,l){g.R.call(this);this.Df=a;this.G=b;this.i=d;this.L=this.i.l instanceof sI?this.i.l:null;this.l=null;this.Y=!1;this.I=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ea=0;this.ia=!1;this.Tj=e;this.qo=f;this.Nk=h;this.ca=!1;this.daiEnabled=l};
Cka=function(a){if(QI(a.G)){var b=a.G.getVideoData(2);b=a.i.W[b.Qc]||null;if(!b)return a.Oi(),!0;(!a.l||a.l&&a.l.ad!==b)&&a.Up(b)}else if(1===a.G.getPresentingPlayerType()&&a.l)return a.Oi(),!0;return!1};
Dka=function(a){(a=a.baseUrl)&&g.pq(a,void 0,Zm(a))};
Eka=function(a,b){a.I.lq(a.i.i.i,b,a.uD(),a.wD(),a.isLiveStream())};
mK=function(a){Fka(a.Df,a.i.i,a);a.daiEnabled&&!a.i.J&&(Gka(a,a.xD()),a.i.J=!0)};
Gka=function(a,b){for(var c=nK(a),d=a.i.i.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=Hka(h);e.push({externalVideoId:h.B,originalMediaDurationMs:(1E3*h.l).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.u.B=a.i.i.start;h.u.u=c;if(!Ika(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+Hka(p)},0);
oka(a.Tj,a.i.i.Nq(),c);pka(a.Tj,{cueIdentifier:a.i.B&&a.i.B.identifier,zK:e})};
Hka=function(a){var b=1E3*a.l;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
nK=function(a){var b=a.i.i.end;a=ika(a.qo,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
Ika=function(a,b,c,d){var e=a.Nk.create(b,LI(KI(a.i)),a.i.i.i);c=e.jD(c,d);g.Ei(e);if(!c)return!1;a.i.W[c]=b;return!0};
Jka=function(a){if(a.ia)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Sa()/1E3)-a.ea;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
Kka=function(a,b,c){this.i=a;this.l=b;this.u=c};
oK=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.I=new Map};
pK=function(){oK.i||(oK.i=new oK);return oK.i};
Lka=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.l.has(c)&&a.u&&a.u();var h=g.iu(c),l=g.gu(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.ou(a.client,h,l,[g.cu(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.ou(a.client,h,l,[g.cu(d.playerResponse.trackingParams)]))})};
Mka=function(a,b){qK(a,g.cu(b),void 0,void 0)};
qK=function(a,b,c,d){d=void 0===d?0:d;if(a.l.has(d))a.B.push([b,c]);else{var e=g.iu(d);c=c||g.gu(d);e&&c&&g.ou(a.client,e,c,[b])}};
Oka=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){Nka(a,b,c);var f=g.gu(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,qK(a,l[0],l[1]||f,c.layer);f=g.q(a.C);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.iu(h);var n=m[0]||g.gu(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={re:ju(l),tk:l},"UNDEFINED_CSN"==l?nu("visualElementStateChanged",m,n):h?Kq("visualElementStateChanged",m,h,n):g.Or("visualElementStateChanged",
m,n))}}};
g.iu(c.layer)||a.u();if(c.dD)for(var d=g.q(c.dD),e=d.next();!e.done;e=d.next())Lka(a,e.value,c.layer);else g.gt(Error("Delayed screen needs a data promise."))};
Nka=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.MP?c.MP:c.layer;var e=g.iu(d);d=g.gu(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.aD,n=c.re,p=Pka(),r={csn:p,pageVe:(new bu({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.ht(new g.Tr("newScreen() parent element does not have a VE - rootVe",
b));m&&(r.cloneCsn=m);m={re:n,tk:p};h?Kq("screenCreated",r,h,m):g.Or("screenCreated",r,m);dr(vu,new mu(p));var t=p}catch(w){cfa(w,{Sr:b,rootVe:d,parentVisualElement:void 0,v3:e,M3:f,aD:c.aD});g.gt(w);return}lu(t,b,c.layer,c.re);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Ko("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(Qka));for(f=b.next();!f.done;f=b.next())if(g.iu(f.value)==e){b=!0;break a}b=!1}b=!b}b&&qu(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-
1].csn=t||"");gE("csn",t);Au.getInstance().clear();d=g.gu(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Ko("web_mark_root_visible")||g.Ko("music_web_mark_root_visible"))&&g.pu(t,d,void 0);a.l["delete"](c.layer||0);a.u=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.has(c.layer)&&d&&qK(a,b,d,c.layer)};
rK=function(){this.i={};if(this.l=yea()){var a=g.Pq("CONSISTENCY");a&&Rka(this,{encryptedTokenJarContents:a})}};
Rka=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c);
a.l&&g.Oq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
sK=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Ska(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
Tka=function(){sK.i||(sK.i=new sK);return sK.i};
Ska=function(a){return void 0===a.localStorage?new $q("yt-client-location"):a.localStorage};
tK=function(a,b){b=void 0===b?!1:b;var c=g.P("INNERTUBE_CONTEXT");if(!c)return g.gt(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.P("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.Sq.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.Uq(0,165)?m="USER_INTERFACE_THEME_DARK":g.Uq(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.Ko("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:ifa()||m;h.userInterfaceTheme=l;g.Ko("web_log_connection")&&!d&&(l=Yq())&&(h.connectionType=l);
if("MWEB"===h.clientName||"WEB"===h.clientName)h.mainAppWebInfo={graftUrl:g.A.location.href},g.Ko("kevlar_woffle")&&Lq.i&&(h.mainAppWebInfo.pwaInstallabilityStatus=Lq.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.Ko("web_include_display_mode_killswitch")||(h.mainAppWebInfo.webDisplayMode=Mq());g.Ko("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.Pq("EXPERIMENTS_DEBUG"):Nq.get("EXPERIMENTS_DEBUG"))?h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;h=No();rK.i||(rK.i=new rK);l=g.Jb(rK.i.i);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.Sq.getInstance();h=g.Uq(0,58);l=l.get("gsml","");c.user=Object.assign({},c.user);h&&(c.user.enableSafetyMode=h);l&&(c.user.lockedSafetyMode=!0);(h=g.P("DELEGATED_SESSION_ID"))&&!g.Ko("pageid_as_header_web")&&(c.user.onBehalfOfUser=
h);!d&&(d=g.iu())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.Ko("web_enable_client_location_service")&&(d=Tka(),c.client||(c.client={}),d.i?(c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.i.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.i.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.i.coords.accuracy,c.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):d.locationPlayabilityToken&&(c.client.locationPlayabilityToken=
d.locationPlayabilityToken));d=null===(e=c.adSignalsInfo)||void 0===e?void 0:e.consentBumpParams;e=Kp(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});!pt()&&d&&(c.adSignalsInfo.consentBumpParams=d);return c};
uK=function(){Jr.apply(this,arguments);this.i={}};
Uka=function(){vK||(vK=new uK);return vK};
Vka=function(a,b){b?a.i.Authorization="Bearer "+b:delete a.i.Authorization};
Wka=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Xka=function(){var a=null;Ht().then(function(b){return a=b},function(b){return a=Wka(b)});
return a};
Yka=function(){var a=Hm(1E3,"NO_BID");return vm(g.xm(uda([Ht(),a]),Wka),function(){return a.cancel()})};
Zka=function(a){return a.jc?g.Uq(g.Sq.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
wK=function(a){this.player=a;this.l=this.i=1;this.u=g.S(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3};
yK=function(a,b,c,d){c=void 0===c?{}:c;var e=c.wq,f=c.Yd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().jj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:Zka(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.kl(),LACT:tp(),LIVE_INDEX:e?a.l++: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:a.player.Ka().Vf().height,
P_W:a.player.Ka().Vf().width,YT_REMOTE:h?h.join(","):""},m=Jp(Ip);Object.keys(m).forEach(function(r){null!=m[r]&&(l[r.toUpperCase()]=m[r].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Hp(b)&&(d.sts="18694",(e=a.player.T().Ha)&&(d.forced_experiments=e));b=Ep(g.$m(b,l),d);a.player.getVideoData();d=b.split("?");if(2!==d.length)return rm(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;h=e.next().value;e={};f=a.player.T();var n=null===c||void 0===c?void 0:c.oauthToken;if(n&&Gp()&&(e.Authorization="Bearer "+n,g.U(f.experiments,"get_midroll_info_use_client_rpc"))){var p=Uka();Vka(p,n)}h=zp(h);return g.U(f.experiments,"get_midroll_info_use_client_rpc")?
(p=a.player.bk(p),a=$ka(a,b,l,c.isMdxPlayback),g.xK(p,a,"/youtubei/v1/player/ad_break")):g.sG(f)?ut(d,{excludeXsrf:!0,format:"RAW",headers:e,method:"POST",postParams:h,timeout:a.u,withCredentials:!0}):ut(b,{excludeXsrf:!0,format:"RAW",headers:e,method:"GET",timeout:a.u,withCredentials:!0})};
dla=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Fp(b),f=ala(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=ala(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=yp(Kp(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=[];bla.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};
gla=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in ela&&(f.clientName=ela[d[0]]),d[1]in fla&&(f.platform=fla[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
$ka=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=hla.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=ila.test(b),l=jla.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=kla.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=lla.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.lG(a.player.T()),r=tK(a.player.getVideoData(1).ia,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";dla(r,b,t.toString(),a.player.T());a={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18694,autonavState:Zka(a.player.T())};d&&(d={},gla(d,c.YT_REMOTE)&&(a.mdxContext=d));if(d=mla.includes(p)?void 0:g.Pq("PREF")){for(var w=d.split(/[:&]/),x=0,y=w.length;x<y;x++){var F=w[x].split("=");if(("SML"===F[0].toUpperCase()||"GSML"===F[0].toUpperCase())&&1<F.length&&"TRUE"===F[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in nla)for(d=d.split(/[:&]/),
x=nla.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,F=d.length;y<F;y++){var D=d[y].split("=");if(D[0]===w&&parseInt("0x"+D[1],16)&x){d=!0;break a}}d=!1}a.autoCaptionsDefaultOn=d}b=ola.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(r.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:a};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,
context:r,adSignalsInfoString:yp(Kp(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());return f};
zK=function(a,b,c,d,e,f){g.R.call(this);this.I=a;this.l=b;this.u=c;this.C=d;this.i=e;this.B=f;pla(this)};
qla=function(a,b){var c={isEmpty:!0,sE:!1,Nj:[]};if(!b)return c;b&&b.trackingParams&&Mka(pK(),b.trackingParams);if(b&&b.adThrottled)return c.sE=!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.gb(d))return c;if(0<a.i.i.end){var e=a.i.i.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.Nj=d;
c.isEmpty=!1;return c};
pla=function(a){[a.i.ca,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Fka(a.l,b,a)})};
AK=function(a,b,c,d,e,f,h,l){lK.call(this,a,b,c,d,e,f,h,l);this.B=d.l;this.C=-1;this.J=this.u=null;this.W=rla(this.Ot())};
sla=function(a){a.C++;var b=a.Ot();b?a.Up(b):a.al()};
rla=function(a){return a?tla.some(function(b){return a instanceof b}):!1};
ula=function(a){this.i=new Kka(function(b){b=new lK(a.Df,a.G,a.ZC(),b,a.Tj,a.qo,a.Nk,a.daiEnabled);mK(b);return b},function(b){return new zK(a.Sw,a.Df,a.G,a.Mk,b,a.Tj)},function(b){b=new AK(a.Df,a.G,a.ZC(),b,a.Tj,a.qo,a.Nk,a.daiEnabled);
mK(b);return b})};
vla=function(a,b){AI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Or("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),BI(this,new pJ(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),BI(this,e),c.push(e.l)):e.adActionInterstitialRenderer?(e=new lJ(e.adActionInterstitialRenderer),BI(this,e)):e.adIntroRenderer&&(e=new oJ(e.adIntroRenderer),
BI(this,e),this.l=1),this.i.filter(function(f){return f instanceof yI}).forEach(function(f,h){if(f instanceof yI){var l=new wI(h,c);
f.u=l}})};
xla=function(a,b){AI.call(this);var c=a.persistingOverlay;this.u=c&&c.persistingAdOverlayRenderer?new rJ(c.persistingAdOverlayRenderer):null;BI(this,wla(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new GI(c.instreamSurveyAdRenderer);break a}}c=null}BI(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.l=1,c=new lJ(c.adActionInterstitialRenderer)):c=null:c=null;BI(this,c)};
wla=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.l=1,new lJ(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new tJ(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Or("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new pJ(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new sJ(b.surveyTextInterstitialRenderer):null};
yla=function(a,b,c){this.u=a;this.i=b;this.l=c};
zla=function(a){var b=new OI(a.TC),c=new PI(b);return{eL:function(){return b},
gy:function(){return c}}};
Ala=function(a){this.i=a};
Bla=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new Xia(b,c,h,d)}catch(l){g.ro(l)}};
Cla=function(a){var b=new Ala(a.tK);return{tD:function(){return b}}};
Dla=function(a){g.E.call(this);this.i=a;this.l=new ija(a.G);this.gw=new fja(a.G);g.I(this,this.gw)};
Ela=function(a){return function(){return new VJ(a.i.G)}};
Fla=function(a){return function(b,c){return new jja(b,a.l,c,a.i.G,a.gw,a.i.ji,a.i.daiEnabled)}};
BK=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.Gi(this,function(){return b.i=null});
var c=Mt(a);if(c){var d=function(){b.i&&b.i(!!Kt())};
this.l.addEventListener(c,d);g.Gi(this,function(){b.l.removeEventListener(c,d)})}};
CK=function(a){g.E.call(this);this.i=a};
Gla=function(a){var b=window.document;return g.sG(a.T())?new BK(b):new CK(a)};
Hla=function(a){g.E.call(this);this.aI=new lka(a.G,a.contentCpn,a.daiEnabled)};
Ila=function(a){DK=a&&a.data};
Kla=function(a){Jla=a&&a.data};
Lla=function(a){EK=a&&a.data};
Mla=function(a){FK=a&&a.data};
Nla=function(a){GK=a&&a.data};
Ola=function(){GK=FK=EK=DK=null};
JK=function(a,b){g.E.call(this);var c=this;this.fc=a;this.Jf=b;this.hd=new Map;this.i=new Map;HK(this,"commandExecutorCommand",function(d,e,f){c.lg(d.commands,e,f)});
IK(this,"commandExecutorCommand",function(d,e,f){Pla(c,d.commands,e,f)});
HK(this,"clickTrackingParams",function(){});
IK(this,"clickTrackingParams",function(){})};
Qla=function(a,b){HK(a,b.Ti(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Rla=function(a,b){IK(a,b.Ti(),function(c,d,e,f){b.gk(c,d,e,f)})};
HK=function(a,b,c){a.na();a.hd.get(b)&&g.ro(Error("Extension name "+b+" already registered"));a.hd.set(b,c)};
IK=function(a,b,c){a.na();a.i.get(b)&&g.ro(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
Pla=function(a,b,c,d){b=void 0===b?[]:b;a.na();var e=[],f=[],h=(KK(a.Jf,c)?"Layout retrievable. ":"Layout not retrievable. ")+"Ordered commands: ";b=g.q(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var m="";l.loggingUrls&&(m="loggingUrls filled on ");var n="not recognized command";l.adPingingEndpoint?n="adPingingEndpoint":l.pingingEndpoint?n="pingingEndpoint":l.muteAdEndpoint?n="muteAdEndpoint: "+l.muteAdEndpoint.type:l.adLifecycleCommand?n="adLifecycleCommand: "+l.adLifecycleCommand.action:
l.clearCueRangesCommand?n="clearCueRangesCommand":l.openPopupAction?n="openPopupAction":l.changeEngagementPanelVisibilityAction?n="changeEngagementPanelVisibilityAction":l.clearCueRangesCommand?n="clearCueRangesCommand":l.urlEndpoint&&(n="urlEndpoint");h=h.concat(m.concat(n),", ");l.hasOwnProperty("pingingEndpoint")||l.hasOwnProperty("adPingingEndpoint")?e.push(l):f.push(l)}e=g.q(e);for(l=e.next();!l.done;l=e.next())LK(a,l.value,c,d,h);d=g.q(f);for(l=d.next();!l.done;l=d.next())LK(a,l.value,c)};
Sla=function(a,b){a.fc.get().xa("innertubeCommand",{openPopupAction:b})};
LK=function(a,b,c,d,e){a.na();b.loggingUrls&&Tla(a,"loggingUrls",b.loggingUrls,c,d,e);b=g.q(Object.entries(b));for(var f=b.next();!f.done;f=b.next()){var h=g.q(f.value);f=h.next().value;h=h.next().value;"openPopupAction"===f?Sla(a,h):Ula.hasOwnProperty(f)||Tla(a,f,h,c,d,e)}};
Vla=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){g.ro(f)}else b=new g.Tr("Unhandled field",b),to(b)};
Tla=function(a,b,c,d,e,f){(a=a.i.get(b))||new g.Tr("Unhandled field",b);try{a(c,d,e,f)}catch(h){g.ro(h)}};
Xla=function(a,b,c,d){for(var e=!1,f=g.q(b.si.entries()),h=f.next();!h.done;h=f.next())h=g.q(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.Ya&&"core"===h.Sa&&(e=!0);e?(d=Wla(b,d))?c.dr(d):tD("No triggering layout ID available when attempting to mute."):g.hm(function(){a.Oi()})};
Wla=function(a,b){if(b)return b;for(var c=g.q(a.si.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.Ya&&"core"===d.Sa)return e.layoutId}};
MK=function(a,b,c,d,e){g.R.call(this);var f=this;this.i=b;this.za=null;this.Wa=c;this.ca=e.Ge;this.Y=e.Jl;this.Ha=Oia({G:b}).iL();this.l=null;this.u=new Map;c=this.i.T().experiments;var h=zla({TC:b.getVideoData(1)}),l=new Dla({ji:h.gy(),G:b,daiEnabled:!1});g.I(this,l);this.Em=new Set;this.du=-1;this.ea=[];this.I=null;this.L=new Map;this.J=new Map;this.W=new Set;this.B=new Nt(this);g.I(this,this.B);this.C=new Nt(this);g.I(this,this.C);this.ia=this.Pa=this.ga=!1;this.X=g.sG(b.T());this.Za=d;d=new Hla({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
t3:this,daiEnabled:!1,G:this.i});g.I(this,d);this.ma=d.aI;this.Ja=(new jka({u3:this,R3:g.U(c,"html5_recognize_predict_start_cue_point"),O3:g.U(c,"html5_persist_cue_range_killswitch")})).i;var m=Zb(LI(JI(this.i)));e=new gka({Da:this,GK:l.gw,Qi:vI(),ji:h.gy(),G:this.i,QP:m,uv:Fla(l),daiEnabled:!1,mk:e.mk,Ge:this.ca,lk:e.lk});this.la=(new ula({Mk:this.Wa,Nk:e.sK,Sw:a,Df:this,s3:this.Ha,Qi:vI(),ZC:Ela(l),Tj:this.ma,qo:this.Ja,G:this.i,Y3:m,uv:function(n){return Fla(l)(n,m)},
daiEnabled:!1})).sD();this.Ca=Cla({tK:new yla(new Ria(b),c,function(n){return f.J.has(n)?f.J.get(n):null})}).tD();
this.La=Gla(this.i);g.I(this,this.La);this.ib=zG(this.i.T())?g.U(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.U(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
bma=function(a,b){var c=a.i.getVideoData(1);if(c.Nv||g.P("SERVED_VIA_SPF_HISTORY"))g.U(a.i.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.Y.Yk():NK(a);else{if(RI(a.i)){var d=Yla(a.i);d.addEventListener("updateKevlarOrC3Companion",Ila);d.addEventListener("onPlaShelfInfoCardsReady",Kla);d.addEventListener("updateEngagementPanelAction",Lla);d.addEventListener("changeEngagementPanelVisibility",Mla);d.addEventListener("scrollToEngagementPanel",Nla);window.addEventListener("yt-navigate-start",
Ola)}a.B.N(a.i,"applicationplayerstatechange",a.UM);a.B.N(a.i,g.AD("ad"),a.pz,a);a.B.N(a.i,g.BD("ad"),a.pN,a);a.B.N(a.i,"aduxclicked",a.FM);a.B.N(a.i,"videodatachange",a.wP);d=Zla(a,b);d=$la(a,d);d=ama(a,d);0<d.length&&OK(a,d);a.I&&c.subscribe("cuepointupdated",a.oF,a);PK(a.ca)||NK(a);g.hm(a.YQ,a)}};
Zla=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)?(g.sG(a.i.T())&&a.i.getVideoData(1).ej()||(a.I=c),!1):!0})};
$la=function(a,b){a.L=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.L.set(c.elementId,c),!1):!0})};
ama=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
cma=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.ro(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof zK?!1:c instanceof lK?!c.gn():!0})};
NK=function(a){var b=dma(a);if(0<b.length){PK(a.ca)||cma(a,b)&&a.Y.Yk();var c=g.S(a.i.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.X&&g.fG(a.i.T())?(c=new g.M(function(){ema(a,b)},c),g.I(a,c),c.start()):g.hm(function(){ema(a,b)})}else PK(a.ca)||a.Y.Yk()};
dma=function(a){for(var b=fma(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.Em["delete"](d.value);return b};
fma=function(a){var b=[];a=g.q(a.Em);for(var c=a.next();!c.done;c=a.next())c=c.value,DD(c)&&b.push(c);return b};
gma=function(a,b,c){c=void 0===c?null:c;var d=a.Ca,e=d.create;var f=1E3*a.i.getDuration(1);f=new vD(f,1E3*a.i.getCurrentTime(1)||0,!1,g.U(a.i.T().experiments,"html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.ea.length,c);a.ea=a.ea.concat(b);return b};
ema=function(a,b){if(!a.na())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.pz(d.value)};
OK=function(a,b,c){b=gma(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.la.create(d)})};
hma=function(a){a.ga||(a.C.N(a.i,"presentingplayerstatechange",a.bI),a.C.N(a.i,"internalAbandon",a.uM),a.C.N(a.i,"progresssync",a.zP),a.C.N(a.i,"onVolumeChange",a.AP),a.C.N(a.La,"fullscreentoggled",a.BN),a.ga=!0);g.N(a.i.getRootNode(),"ad-showing");g.N(a.i.getRootNode(),"ad-interrupting");g.U(a.i.T().experiments,"enable_html5_teal_ad_badge")&&RI(a.i)&&g.N(a.i.getRootNode(),"ad-teal-design");a.i.oi(2)};
QK=function(a,b,c){var d=!!a.l&&a.l||null,e=d&&d.gn()&&(QI(a.i)||!1);d=b&&d&&d.reset()||null;a.l&&ima(a,a.l);a.l=null;a.du=-1;e&&jma(a,c);a.ia||a.Y.Yk();b&&d&&(d.YA().l=!1,mK(d))};
jma=function(a,b){g.Pt(a.C);a.ga=!1;g.mn(a.i.getRootNode(),"ad-showing");a.ib?(a.ia||a.Y.Yk(),kma(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),kma(a));g.mn(a.i.getRootNode(),"ad-interrupting");g.U(a.i.T().experiments,"enable_html5_teal_ad_badge")&&g.mn(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
kma=function(a){if(a.Pa)!a.X&&g.fG(a.i.T())&&(g.U(a.i.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.U(a.i.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.Nl(2);else if(a.i.Nl(2),!a.X){var b=a.i.Xa(1);g.W(b,4)&&!g.W(b,2)&&a.i.playVideo()}};
Fka=function(a,b,c){if(b instanceof CD){if(a.X&&ED(b)&&g.W(a.i.Xa(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.u.has(b)?g.ro(Error(b.toString()+" has already been seen")):(a.Em.add(b),a.u.set(b,c),DD(b)||a.i.sd([b],1))}else g.ro(Error("Should use AdCueRange instead of CueRange"))};
ima=function(a,b){for(var c=a.u,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.Ei(b)};
RK=function(a,b){this.i=a;this.B=b};
SK=function(a){g.E.call(this);this.l=a};
TK=function(a){SK.call(this,!0);this.i=a};
lma=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.Gt()});
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 tp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
mma=function(a,b){g.E.call(this);var c=this;this.u=[];this.J=!1;this.l=0;this.C=this.I=this.B=!1;this.X=null;var d=(0,g.B)(a,b);this.i=new g.M(function(){return d(c.X)},300);
g.I(this,this.i);this.W=this.L=Infinity};
nma=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.u.includes(d.identifier))return!0}return!1};
UK=function(){var a="ytp-id-"+oma.toString();oma++;return a};
g.VK=function(a){g.E.call(this);this.Ha={};this.kc={};this.element=this.createElement(a)};
WK=function(a,b,c,d){if("{{"===d.substr(0,2))a.kc[d]=[b,c];else return d};
pma=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.D?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Ie("BR"));c.push(g.Je(h))}):c.push(g.Je(e))}return c};
XK=function(a,b,c,d){if("child"===c){g.Ke(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.D?[d]:d;c=pma(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.mg(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Hc(g.Lc(a))),b.setAttribute(c,a))};
g.X=function(a){g.VK.call(this,a);this.ab=!0;this.W=!1;this.listeners=[]};
g.YK=function(a,b){b?a.show():a.hide()};
g.ZK=function(a){g.X.call(this,a);this.ia=new g.R;g.I(this,this.ia)};
$K=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.ZK.call(this,c);this.api=a;this.Da=b;this.macros={};this.componentType=d;this.J=null;this.Za=h;this.layoutId=e;this.i=f;this.Ja=null;this.HG=new TK(this.element);g.I(this,this.HG);this.Wa=this.N(this.element,"click",this.onClick);this.ea=[];this.ca=new mma(this.onClick,this);g.I(this,this.ca);this.ib=!1;this.X=null};
qma=function(a,b,c){a.Da?a.Da.executeCommand(b,a.macros,c):g.ro(Error("null or undefined adService"))};
aL=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return to(Error("Got null or undefined adText object")),"";var c=g.td(a.text);if(!a.isTemplated)return c;if(null==b)return to(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};
rma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.gb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.td(a.thumbnails[0].url)};
sma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.gb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.ke(0,0):new g.ke(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.tma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}};
bL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"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.cL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"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.dL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"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"}}]}};
uma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"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"}}]}};
vma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",vb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
wma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",vb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.eL=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"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"}}]}};
xma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}};
yma=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"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"}}]}};
zma=function(){return{D:"svg",U:{viewBox:"0 0 24 24"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"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"}}]}};
Ama=function(){return{D:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{D:"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.fL=function(){return{D:"svg",U:{viewBox:"0 0 24 24"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"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"}}]}};
gL=function(){return{D:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"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"}}]}};
Bma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",vb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
hL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.iL=function(){return{D:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"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"}}]}};
Cma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}};
Dma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}};
Ema=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}};
Fma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.jL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.kL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}};
Gma=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}};
lL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}};
mL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{D:"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{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{D:"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{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"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"}},{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.eL();case "INFO_OUTLINE":return Ama();case "REMOVE_CIRCLE":return{D:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"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 hL();case "LIKE":return g.fL();case "DISLIKE":return zma();default:return g.ht(new g.Tr("Unexpected icon:",a)),null}};
nL=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={D:"button",ka:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});$K.call(this,a,b,e,void 0===f?"button":f,c,d);this.l=this.u=this.B=null;this.C=h;this.hide()};
Hma=function(a){var b=null;null!=a.l&&(b=[a.l.serviceEndpoint,a.l.navigationEndpoint].filter(function(c){return null!=c}),a.l.command&&(b=b.concat(a.l.command)));
return b||[]};
oL=function(){g.E.call(this);var a=this;this.i=new Map;this.l=fea(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.pq(b[c],void 0,void 0)})};
Ima=function(){null==pL&&(pL=new oL);return pL};
qL=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=Jma(c);if(d){c=He("SPAN",null,d);break a}}c=g.Je(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Kma(e,b))}return 1==c.length?c[0]:He("SPAN",null,c)};
Kma=function(a,b){var c=null,d=a.text;b&&(d=Jma(d)||d);a.bold&&(c=He("B",null,c||d));a.italics&&(c=He("I",null,c||d));a.strikethrough&&(c=He("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=He("A",null,c||d);g.md(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),Ima().register(c,e),g.N(c,"ytp-ad-has-logging-urls")}return c||He("SPAN",null,d)};
Jma=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(He("BR")),b.push(a[c]);return b}return null};
rL=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;$K.call(this,a,b,{D:"span",ka:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.u=null;this.I=f;this.C=e;this.hide()};
sL=function(a){return a&&a.thumbnails&&!g.gb(a.thumbnails||null)&&a.thumbnails[0].url?g.td(a.thumbnails[0].url):""};
tL=function(a,b,c,d,e,f){f=void 0===f?!1:f;$K.call(this,a,b,{D:"img",K:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.l=f;this.hide()};
uL=function(a,b,c,d,e,f){e=void 0===e?[]:e;$K.call(this,a,b,{D:"div",ka:["ytp-ad-confirm-dialog-background"],S:[{D:"div",K:"ytp-ad-confirm-dialog-container",S:[{D:"div",ka:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-confirm-dialog-title",ba:"{{title}}"},{D:"div",K:"ytp-ad-confirm-dialog-messages"},{D:"div",K:"ytp-ad-confirm-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-confirm-dialog-cancel-button",ba:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-confirm-dialog-confirm-button",
ba:"{{confirmLabel}}"}]}]}]},{D:"button",ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{D:"span",K:"ytp-ad-button-icon",S:[g.eL()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.L=this.ha("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.ha("ytp-ad-confirm-dialog-cancel-button");this.I=this.ha("ytp-ad-confirm-dialog-confirm-button");this.Y=this.ha("ytp-ad-confirm-dialog-messages");this.B=null;this.l=new Nt;g.I(this,this.l);this.u=null;this.hide()};
Lma=function(a,b){if(b.title){var c=g.HD(b.title);a.Ba("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=qL(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.HD(b.cancelLabel),a.Ba("cancelLabel",c),a.l.N(a.C,"click",function(e){return a.hw(e)}));
b.confirmLabel&&(c=g.HD(b.confirmLabel),a.Ba("confirmLabel",c),a.l.N(a.I,"click",function(e){return a.nz(e)}));
a.l.N(a.L,"click",function(e){return a.mz(e)})};
vL=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=dJ("ytp-ad-toggle-button-input");$K.call(this,a,b,{D:"div",ka:["ytp-ad-toggle-button"].concat(e),S:[{D:"label",K:"ytp-ad-toggle-button-label",U:{"for":h},S:[{D:"span",K:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{D:"span",K:"ytp-ad-toggle-button-untoggled-icon",ba:"{{untoggledIconTemplateSpec}}"},{D:"span",K:"ytp-ad-toggle-button-toggled-icon",ba:"{{toggledIconTemplateSpec}}"}]},{D:"input",
K:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{D:"span",K:"ytp-ad-toggle-button-text",ba:"{{buttonText}}"},{D:"span",K:"ytp-ad-toggle-button-tooltip",ba:"{{tooltipText}}"}]}]},f,c,d);this.B=this.ha("ytp-ad-toggle-button");this.l=this.ha("ytp-ad-toggle-button-input");this.ha("ytp-ad-toggle-button-label");this.Y=this.ha("ytp-ad-toggle-button-icon");this.I=this.ha("ytp-ad-toggle-button-untoggled-icon");this.C=this.ha("ytp-ad-toggle-button-toggled-icon");this.ga=this.ha("ytp-ad-toggle-button-text");
this.u=null;this.L=!1;this.hide()};
wL=function(a){a.L&&(a.isToggled()?(g.Fg(a.I,!1),g.Fg(a.C,!0)):(g.Fg(a.I,!0),g.Fg(a.C,!1)))};
Mma=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
xL=function(a){Nt.call(this);this.i=a;this.N(this.i,"onAdUxUpdate",this.J)};
yL=function(a,b,c,d,e,f,h){$K.call(this,a,b,c,d,e,f);this.l=h;g.I(this,this.l);this.la=this.I=-1};
zL=function(a){a.l&&-1===a.I&&(a.I=a.l.subscribe("b",a.Ll,a),a.la=a.l.subscribe("a",a.Dn,a),a.Ll())};
AL=function(a){null!=a.l&&-1!==a.I&&(a.l.Nf(a.I),a.l.Nf(a.la),a.la=-1,a.I=-1)};
BL=function(a,b,c,d,e,f){$K.call(this,a,b,{D:"div",K:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.l=null;this.hide()};
CL=function(a,b){b&&g.Qe(a.element,aL(a.l,b))};
DL=function(a,b){g.R.call(this);this.Da=b;this.u=!1;this.l=0;this.Sd=new Nt(this);g.I(this,this.Sd);this.durationMs=a;this.i=new g.Fm(100);g.I(this,this.i);this.Sd.N(this.i,"tick",this.Ab);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.EL=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.FL=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)};
GL=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.u=null;this.B=f;this.hide()};
HL=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-feedback-dialog-background",S:[{D:"div",K:"ytp-ad-feedback-dialog-container",S:[{D:"div",K:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-feedback-dialog-title",S:[{D:"span",ba:"{{title}}"}]},{D:"span",K:"ytp-ad-info-dialog-feedback-options-title",ba:"{{reasonsTitle}}"},{D:"div",K:"ytp-ad-info-dialog-feedback-options"},{D:"div",K:"ytp-ad-feedback-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-feedback-dialog-cancel-button",
ba:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-feedback-dialog-confirm-button",ba:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.l=null;this.I=this.ha("ytp-ad-feedback-dialog-cancel-button");this.L=this.ha("ytp-ad-feedback-dialog-confirm-button");this.Y=this.ha("ytp-ad-info-dialog-feedback-options");this.ga=this.ha("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
Qma=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new nL(a.api,a.Da,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.I(a,a.l),a.l.init(dJ("button"),c,a.macros),a.l.ya("click",a.jF,a),a.l.fa(a.element));b.title&&(c=g.HD(b.title),a.Ba("title",c));b.reasonsTitle&&(c=g.HD(b.reasonsTitle),a.Ba("reasonsTitle",c));b.reasons&&Nma(a,b.reasons);b.cancelLabel&&(c=g.HD(b.cancelLabel),a.Ba("cancelLabel",c),g.Wo(a.I,"click",function(){return a.jF()}));
b.confirmLabel&&(c=g.HD(b.confirmLabel),a.Ba("confirmLabel",c),g.Wo(a.L,"click",function(){return Oma(a)}));
b.undoRenderer&&Pma(a,b.undoRenderer)};
Nma=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?to(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?to(Error("AdFeedbackReason.endpoint was not set.")):(d=new Rma(d,e),g.I(a,d),a.Y.appendChild(d.i.element),a.C.push(d)))}};
Pma=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.u=new nL(a.api,a.Da,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.I(a,a.u),a.u.init(dJ("ad-feedback-undo-mute-button"),c,a.macros),a.u.ya("click",a.uP,a),a.u.fa(a.ga)):to(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Oma=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Da.executeCommand(b[0].l,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("c"),a.hide())};
Rma=function(a,b){this.l=b;this.i=new g.ZK({D:"label",K:"ytp-ad-feedback-dialog-reason-label",S:[{D:"input",K:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{D:"span",K:"ytp-ad-feedback-dialog-reason-text",ba:g.HD(a)}]});this.u=this.i.ha("ytp-ad-feedback-dialog-reason-input")};
IL=function(a,b,c,d){uL.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
JL=function(a,b,c,d,e){$K.call(this,a,b,{D:"div",K:"ytp-ad-info-dialog-background",S:[{D:"div",K:"ytp-ad-info-dialog-container",S:[{D:"div",K:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-info-dialog-title",ba:"{{title}}"},{D:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{D:"div",K:"ytp-ad-info-dialog-message"},{D:"div",K:"ytp-ad-info-dialog-mute-container"},{D:"div",K:"ytp-ad-info-dialog-confirm-container",S:[{D:"button",K:"ytp-ad-info-dialog-confirm-button",ba:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.l=this.u=null;this.L=this.ha("ytp-ad-info-dialog-confirm-button");this.Ca=this.ha("ytp-ad-info-dialog-mute-container");this.za=this.ha("ytp-ad-info-dialog-message");this.la=this.ha("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.ga=e;this.I=null;this.ma=!1;this.Y=null;this.hide()};
Sma=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Da.executeCommand(b,a.macros)})};
Tma=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.u=new HL(a.api,a.Da,a.layoutId,a.i),g.I(a,a.u),a.u.init(dJ("ad-feedback-dialog"),c,a.macros),a.u.fa(a.ga),a.u.subscribe("c",function(){return a.V("e")}))};
Uma=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.C=new IL(a.api,a.Da,a.layoutId,a.i),g.I(a,a.C),a.C.init(dJ("ad-mute-confirm-dialog"),c,a.macros),a.C.fa(a.ga),a.C.subscribe("d",function(){return a.V("e")}))};
Vma=function(a){a.l&&a.l.ya("click",a.oB,a);g.Wo(a.L,"click",function(){return a.oB()})};
KL=function(a,b,c,d,e,f){rL.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.l=null;this.B=e;this.hide()};
Wma=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.ro(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new JL(a.api,a.Da,a.layoutId,a.i,a.B),g.I(a,a.l),a.l.init(dJ("ad-info-dialog"),b,c),a.l.fa(a.B),a.l.subscribe("f",function(){return a.V("h")}),a.l.subscribe("e",function(){return a.V("g")}))};
Yma=function(a,b,c){null==a.button?g.ro(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.N(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(Wma(a,b,c),a.button.ya("click",function(){a.l&&!a.l.ab&&(a.l.show(),Xma(a))})):a.button.ya("click",function(){return Xma(a)}))};
Xma=function(a){a.api.onAdUxClicked("ad-info-icon-button")};
g.LL=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.u=b;this.B=void 0===d?b:d;this.i=f;this.l=e;this.delay=new g.M(this.Av,0,this);g.I(this,this.delay)};
ML=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
NL=function(a,b,c,d,e){yL.call(this,a,b,{D:"div",K:"ytp-ad-message-overlay",S:[{D:"div",K:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Y=-1;this.ma=this.ha("ytp-ad-message-slot");this.B=new g.ZK({D:"span",K:"ytp-ad-message-container"});this.B.fa(this.ma);g.I(this,this.B);this.u=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-message-text");g.I(this,this.u);this.u.fa(this.B.element);this.L=new g.LL(this.B,400,!1,100,function(){return f.hide()});
g.I(this,this.L);this.C=0;this.ga=!1;this.hide()};
Zma=function(a,b){var c=a.api.getRootNode();g.O(c,"ytp-ad-overlay-open",b);g.O(c,"ytp-ad-overlay-closed",!b)};
OL=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.ma=-1;this.u=new g.ZK({D:"span",K:"ytp-ad-preview-container"});g.I(this,this.u);this.B=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-preview-text");g.I(this,this.B);this.B.fa(this.u.element);this.L=new g.ZK({D:"span",K:"ytp-ad-preview-image"});g.I(this,this.L);this.C=new tL(this.api,this.Da,this.layoutId,this.i);g.I(this,this.C);this.C.fa(this.L.element);this.L.fa(this.u.element);
this.u.fa(this.element);this.Y=new g.LL(this.u,400,!1,100,function(){return h.hide()});
g.I(this,this.Y);this.ga=0;this.za=!1;this.Ca=f;this.hide()};
PL=function(a){a.Y.show(100);a.show()};
QL=function(a,b,c,d){BL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
RL=function(a,b,c,d,e){yL.call(this,a,b,{D:"div",ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{D:"div",K:"ytp-flyout-cta-icon-container"},{D:"div",K:"ytp-flyout-cta-body",S:[{D:"div",K:"ytp-flyout-cta-text-container",S:[{D:"div",K:"ytp-flyout-cta-headline-container"},{D:"div",K:"ytp-flyout-cta-description-container"}]},{D:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.L=new tL(this.api,this.Da,this.layoutId,this.i,"ytp-flyout-cta-icon");g.I(this,this.L);this.L.fa(this.ha("ytp-flyout-cta-icon-container"));
this.C=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-flyout-cta-headline");g.I(this,this.C);this.C.fa(this.ha("ytp-flyout-cta-headline-container"));this.B=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-flyout-cta-description");g.I(this,this.B);this.B.fa(this.ha("ytp-flyout-cta-description-container"));this.u=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.I(this,this.u);this.u.fa(this.ha("ytp-flyout-cta-action-button-container"));this.Y=null;this.ga=0;this.hide()};
SL=function(a,b,c,d,e){$K.call(this,a,b,{D:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.l=null;this.B=new vL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.I(this,this.B);this.B.fa(this.element);this.u=new vL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.I(this,this.u);this.u.fa(this.element);this.C=new g.LL(this,400,!1,500,function(){return f.hide()});
g.I(this,this.C);this.hide()};
$ma=function(a,b){a.B.init(dJ("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.u.init(dJ("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.pB)};
TL=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.u=a;this.l=!1;this.W=d;this.I=!1;this.i=null;0<b&&(this.i=new g.M(this.vC,b,this),g.I(this,this.i));this.C=new g.M(this.vC,c,this);g.I(this,this.C);this.L=rn(this.u,e,1,d);g.I(this,this.L);this.J=rn(this.u,0,d,1);g.I(this,this.J);this.B=new Nt;g.I(this,this.B)};
UL=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.L=null;this.ga=!1;this.ma=f;this.B=new g.ZK({D:"span",ka:["ytp-ad-skip-button-container"]});g.I(this,this.B);this.B.fa(this.element);this.u=this.C=null;this.za=new g.LL(this.B,500,!1,100,function(){return h.hide()});
g.I(this,this.za);this.Y=new TL(this.B.element,15E3,5E3,.5,.5);g.I(this,this.Y);this.hide()};
bna=function(a){var b=a.L&&a.L.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return g.U(a.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?ana(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
ana=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
VL=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Y=f;this.L=!1;this.C=0;this.B=this.u=null;this.hide()};
WL=function(a,b){if(!a.L)if(a.L=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b){var c=a.B;c.za.show();c.show()}else a.B.show()};
XL=function(a,b,c,d,e){$K.call(this,a,b,{D:"div",K:"ytp-ad-persisting-overlay",S:[{D:"div",K:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.u=this.ha("ytp-ad-persisting-overlay-skip");this.l=e;g.I(this,this.l);this.hide()};
YL=function(a,b,c,d){nL.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
ZL=function(a,b,c,d,e){e=void 0===e?!1:e;$K.call(this,a,b,{D:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.l=e;this.hide()};
$L=function(a,b){this.l=a;this.i=b};
aM=function(a){return a.i-a.l};
bM=function(a,b){return a.l+b*aM(a)};
cM=function(a,b,c){return aM(a)?g.ee((b-a.l)/aM(a),0,1):null!=c?c:Infinity};
dM=function(a,b){g.ZK.call(this,{D:"div",K:"ytp-ad-persistent-progress-bar-container",S:[{D:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.l=b;g.I(this,this.l);this.Yc=this.ha("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()};
eM=function(a,b,c,d,e,f){$K.call(this,a,b,{D:"div",K:"ytp-ad-player-overlay",S:[{D:"div",K:"ytp-ad-player-overlay-flyout-cta"},{D:"div",K:"ytp-ad-player-overlay-instream-info"},{D:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-player-overlay-progress-bar"},{D:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=f;this.L=this.ha("ytp-ad-player-overlay-flyout-cta");this.u=this.ha("ytp-ad-player-overlay-instream-info");this.B=null;cna(this)&&(a=
He("div"),g.N(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new QL(this.api,this.Da,this.layoutId,this.i),c.fa(a),c.init(dJ("ad-title"),{text:b.title},this.macros),g.I(this,c)),this.B=a);this.C=this.ha("ytp-ad-player-overlay-skip-or-preview");this.ga=this.ha("ytp-ad-player-overlay-progress-bar");this.Y=this.ha("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.I(this,this.l);this.hide()};
cna=function(a){a=a.api.T();return tG(a)&&a.i};
fM=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.Od("/sharing_services",a);g.pq(d)};
g.ena=function(a,b,c){b=dna(null,b,c);if(b=od(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Bo("LOGGED_IN",function(d){g.Co(g.P("LOGGED_IN_PUBSUB_KEY",void 0));oo("LOGGED_IN",!0);a(d)}),oo("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
dna=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=Nd(c,"mode",a));a=Nd(d,"next",c);b&&(a=Nd(a,"feature",b));return a};
fna=function(a,b){var c=g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)?a:Ep(a,{key:g.P("INNERTUBE_API_KEY")});var d=g.P("INNERTUBE_HOST_OVERRIDE");d&&(c=String(d)+String(Ed(c)));return c};
gna=function(a){return{method:"POST",mode:Fp(a)?"same-origin":"cors",credentials:Fp(a)?"same-origin":"include"}};
gM=function(a,b,c,d,e){this.i=a;this.B=b;this.l=c;this.handleError=d;this.u=e};
iM=function(a,b,c){var d=void 0===d?hM:d;var e=hna(a,b);if(!e)return a.handleError(new g.Tr("Error: No request builder found for command.",b)),qm({});var f=ina(e,b,c,d);if(f)return new mm(function(h){return C(a,function m(){var n=this,p;return z(m,function(r){if(1==r.i)return v(r,jna(n,f.config),2);p=r.l;h(kna(n,f,p));r.i=0})})});
a.handleError(new g.Tr("Error: Failed to build request for command.",b));return qm({})};
g.xK=function(a,b,c){var d=void 0===d?{Hm:{identity:hM}}:d;var e=void 0===e?!0:e;b.context||(b.context=tK(void 0,e));return new mm(function(f){return C(a,function l(){var m=this,n,p,r;return z(l,function(t){if(1==t.i)return v(t,jna(m,d),2);n=t.l;p=fna(c,n);r={input:p,Qr:gna(p),Dy:b,config:d};f(kna(m,r,n));t.i=0})})})};
kna=function(a,b,c){return C(a,function e(){var f=this,h,l,m,n,p;return z(e,function(r){if(1==r.i)return h=f,r.Pb(2);if(2!=r.i&&(l=r.l)&&!l.isExpired())return r["return"](Promise.resolve(l.i()));m=JSON.stringify(b.Dy);b.Qr=Object.assign(Object.assign({},b.Qr),{headers:c});n=Object.assign({},b.Qr);"POST"===b.Qr.method&&(n=Object.assign(Object.assign({},n),{body:m}));p=f.B.fetch(b.input,n);return r["return"](p.then(function(t){if(t&&h.u)for(var w=g.q(h.u),x=w.next();!x.done;x=w.next())x.value.fn(t,
b);return Promise.resolve(t)}))})})};
lna=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.fA)return-1<Mo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.i.fA[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.vx)return-1<Mo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.i.vx[b.continuationCommand.request];for(var e in b)if(a.i.nt[e]){if(-1<Mo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
jna=function(a,b){return C(a,function d(){var e=this;return z(d,function(f){if(e.l.BQ){var h=f["return"],l,m,n=(null===(m=null===b||void 0===b?void 0:b.Hm)||void 0===m?void 0:m.identity)||hM;m=null===(l=null===b||void 0===b?void 0:b.Hm)||void 0===l?void 0:l.sessionIndex;l=e.l.It(n,{sessionIndex:m});l=Object.assign(Object.assign({},mna()),l);f=h.call(f,l)}else f=f["return"](nna(e,b));return f})})};
nna=function(a,b){var c,d,e=(null===(c=null===b||void 0===b?void 0:b.Hm)||void 0===c?void 0:c.identity)||hM,f=null===(d=null===b||void 0===b?void 0:b.Hm)||void 0===d?void 0:d.sessionIndex;return Bea(a.l,e,{sessionIndex:f}).then(function(h){return Promise.resolve(Object.assign(Object.assign({},mna()),h))})};
mna=function(){var a={"Content-Type":"application/json"},b=g.P("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);(b=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=b);(b=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]=b);g.Ko("webfe_track_one_platform_auth_mismatch")&&(a["X-Youtube-Bootstrap-Logged-In"]=g.P("LOGGED_IN",!1));(b=g.P("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=b);return a};
hna=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.fA){var e=a.i.fA[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.vx&&(e=a.i.vx[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.nt[f]&&(e=a.i.nt[f]))return new e};
pna=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=ona[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(ona).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]};
g.jM=function(a){return"/youtubei/v1/"+pna(a)};
kM=function(){};
ina=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?hM:d;var e={context:tK(b.clickTrackingParams)};var f=a.i(b);if(f){a.l(e,f,c);var h,l;a=g.jM(a.u());(b=null===(l=null===(h=b.commandMetadata)||void 0===h?void 0:h.webCommandMetadata)||void 0===l?void 0:l.apiUrl)&&(a=b);h=fna(a);e={input:h,Qr:gna(h),Dy:e,config:Object.assign({},void 0)};e.config.Hm?e.config.Hm.identity=d:e.config.Hm={identity:d};return e}g.gt(new g.Tr("Error: Failed to create Request from Command.",b))};
lM=function(){};
mM=function(){};
nM=function(){};
oM=function(){};
pM=function(){};
qM=function(){};
rM=function(){this.i=this.l=void 0};
qna=function(){rM.i||(rM.i=new rM);return rM.i};
g.tM=function(a,b){if(!sM){var c={nt:{feedbackEndpoint:nM,modifyChannelNotificationPreferenceEndpoint:oM,playlistEditEndpoint:pM,subscribeEndpoint:lM,unsubscribeEndpoint:mM,webPlayerShareEntityServiceEndpoint:qM}},d=g.Ko("web_enable_client_location_service")?Tka():void 0,e=[];d&&e.push(d);void 0===a&&(a=Kr());void 0===b&&(b=qna());gM.i=new gM(c,b,a,Nr,e);sM=gM.i}return sM};
sna=function(){var a,b;return C(this,function d(){var e;return z(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.queryUsageAndQuota)?f["return"](rna()):f["return"]()})})};
rna=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Mr=function(a,b){var c=this;this.handleError=a;this.i=b;this.l=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.l=!0})};
una=function(a,b){sna().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:tna(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:tna(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
tna=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
vna=function(){rE("bg_l","player_att");uM=(0,g.Q)()};
wna=function(a){a=void 0===a?{}:a;var b=ot;a=void 0===a?{}:a;return b.i?b.i.hot?b.i.hot(void 0,void 0,a):b.i.invoke(void 0,void 0,a):null};
xna=function(a,b){a=void 0===a?{}:a;return dfa(a,b)};
yna=function(a,b){var c=this;this.videoData=a;this.u=b;var d={};this.l=(d.c1a=function(){if(vM(c)){var e="";c.videoData&&c.videoData.ma&&(e=c.videoData.ma+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);rE("bg_v","player_att");e=c.u?wna(e):g.Ha("yt.abuse.player.invokeBotguard")(e);rE("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else rE("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.u?parseInt(g.P("DCLKSTAT",0),10):(f=g.Ha("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.ma?this.i=zp(this.videoData.ma):this.i={}};
zna=function(a){if(a.videoData&&a.videoData.ma){for(var b=[a.videoData.ma],c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.l[d]&&(d=a.l[d](a.i))&&b.push(d);return b.join("&")}return null};
Bna=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return Ana(a)});
if(a.videoData&&a.videoData.ma){for(var c=[a.videoData.ma],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&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)};
vM=function(a){return a.u?ot.be():(a=g.Ha("yt.abuse.player.botguardInitialized"))&&a()};
Ana=function(a){if(!vM(a))return rE("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.ma&&(b=a.videoData.ma+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.u?xna:g.Ha("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){rE("bg_v","player_att");e(d,g.Lo("botguard_async_snapshot_timeout_ms",3E3)).then(function(h){h?(rE("bg_s","player_att"),f("r1a="+h)):(rE("bg_e","player_att"),f("r1c=2"))},function(){rE("bg_e","player_att");
f("r1c=3")})})};
Cna=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 wM(a)};
wM=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};
Dna=function(a,b,c,d){if(g.Na(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
g.xM=function(a){var b=a.T(),c=Ena(b),d=a.ia;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=jI(a);"leanback"===f?e="WATCH":b.Z("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Sb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Yi)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:Fna[e]}});a.qm&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.W)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.oc&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=Gna[b];c.request=d;d=c.user||{};if(b=a.la)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Wa)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
Ena=function(a){var b=tK(),c=b.client||{};if(a.Ha){var d=a.Ha.split(","),e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo={livingRoomAppMode:e};b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.La)b.thirdParty={embedUrl:a};return b};
yM=function(a,b,c){var d=a.videoId,e=g.xM(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tp()),referer:document.location.toString(),signatureTimestamp:18694};g.Sq.getInstance();a.ph&&(h.autonav=!0);g.Uq(0,141)&&(h.autonavState=g.Uq(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Uq(0,66);mI(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.Aw&&(h.fling=!0);var l=a.Ve;if(l){var m={},n=l.split("|");3===
n.length?(m.breakType=Hna[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.gm;if(null!=l){l={startWalltime:String(l)};if(m=a.We)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Hd&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.U(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};var p=
a.wf;if(p)if(m=a.Yw,n=p.startsWith("!"),p=p.split("-"),3===p.length){n&&(p[0]=p[0].substr(1));n={applicationState:n?"INACTIVE":"ACTIVE",clientFormFactor:Ina[p[1]]||"UNKNOWN_FORM_FACTOR",clientName:Jna[p[0]]||"UNKNOWN_INTERFACE",clientVersion:p[2]||"",platform:Kna[p[1]]||"UNKNOWN_PLATFORM"};if(m){try{var r=JSON.parse(m)}catch(w){g.ht(w)}if(r){var t={params:[{key:"ms",value:r.ms}]};n.osName=r.os_name;n.userAgent=r.user_agent;n.windowHeightPoints=r.window_height_points;n.windowWidthPoints=r.window_width_points}}l.remoteContexts=
[{adSignalsInfo:t,remoteClient:n}]}else l.remoteContexts=[{remoteClient:{clientName:"UNKNOWN_INTERFACE"}}];if(t=a.Sj)l.skippableAdsSupported=t.split(",").includes("ska");h.mdxContext=l}t=b.width;0<t&&(h.playerWidthPixels=t);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.Z("hoffle_save")&&oI(a)&&(d.forOffline=!0);a=a.T();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=e;d.captionParams={};e=g.Uq(g.Sq.getInstance(),65);g.wG(a)&&(d.captionParams.deviceCaptionsOn=null!=e?!e:!1);g.qG(a)&&a.Z("web_player_i_see_captions_2")&&(a=(0,g.Lna)(),null===a||void 0===a?0:a.length)&&(d.captionParams.viewerSelectedCaptionLangs=a);return d};
Mna=function(a){var b=a.T();g.Sq.getInstance();var c={context:g.xM(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===jI(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Jh&&(c.showContentOwnerOnly=!0);g.Uq(0,141)&&(c.autonavState=g.Uq(0,140)?"STATE_OFF":"STATE_ON");return c};
Ona=function(a){var b,c;return C(this,function e(){var f,h,l,m,n;return z(e,function(p){if(1==p.i)return f=g.tM(),h={context:tK(),videoIds:[a]},l=g.jM(Nna),v(p,g.xK(f,h,l),2);m=p.l;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)})})};
zM=function(a){if(void 0===a?0:a){if(void 0===Is)throw Error("Datasync ID is not set.");return"yt-player-local-img:"+Js()}return"yt-player-local-img"};
Pna=function(a,b){return"caches"in window&&a.length?window.caches.open(zM(void 0===b?!1:b)).then(function(c){return Promise.all(a.map(function(d){return c["delete"](d)}))}).then(function(){return Promise.resolve()}):Promise.resolve()};
Qna=function(a,b){return"caches"in window&&fetch&&a.length?window.caches.open(zM(void 0===b?!1:b)).then(function(c){return c.addAll(a)}):Promise.resolve()};
AM=function(a,b,c){this.api=a;this.player=b;this.player.subscribe("localmediachange",this.i,this);this.l=c;Rna(this);this.aa()};
Sna=function(a){return C(this,function c(){var d;return z(c,function(e){return 1==e.i?v(e,Afa(a),2):3!=e.i?(d=e.l,v(e,Pna(d),3)):e["return"](gv(a))})})};
Tna=function(){return C(this,function b(){return z(b,function(c){if(1==c.i){var d=Promise,e=d.all;var f="caches"in window?window.caches["delete"](zM(!1)):Promise.resolve(!0);c=v(c,e.call(d,[f,Vu()]),2)}else c=c["return"]();return c})})};
Rna=function(a){$u().then(function(){var b=Su(2);b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=BM(a,c);a.aa();d||Tu(c,3)}a.aa();CM(a)})};
Wna=function(a,b){return C(a,function d(){var e,f=this;return z(d,function(h){if(1==h.i)return Qu(b)?h["return"]():v(h,Ona(b),2);if(3!=h.i)return e=h.l,v(h,Una(f,b,e),3);0===Su(2).length?Vna(f,b):Tu(b,3);h.i=0})})};
Xna=function(a,b){var c,d;return C(a,function f(){var h,l,m;return z(f,function(n){if(1==n.i)return v(n,zfa(b),2);h=n.l;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)})})};
BM=function(a,b){var c=a.api.hc(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:pI(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
Vna=function(a,b){Tu(b,2);var c=Yna(a,{videoId:b,download_media:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){var e;if(g.U(a.api.T().experiments,"hoffle_api")){var f=c.getPlayerResponse(),h=null===(e=null===f||void 0===f?void 0:f.videoDetails)||void 0===e?void 0:e.videoId;f&&h&&wfa(h,f)}});
a.player.Ah(c,a.l);var d=Zna();g.U(a.player.T().experiments,"hoffle_lmqf_killswitch")||(d=OE(d,d,!0,"m"),DM(a.player,d));a.aa();EM(a.player,!1)};
Yna=function(a,b){return new g.wH(a.player.T(),b)};
Zna=function(){switch(g.Sq.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
CM=function(a){if(!(0<Su(2).length)){var b=Su(3);0<b.length&&Vna(a,b[0])}};
Una=function(a,b,c){return C(a,function e(){var f=this;return z(e,function(h){if(1==h.i)h=g.U(f.api.T().experiments,"hoffle_api")?v(h,vfa(b,c),2):h["return"]();else{var l=h["return"],m,n,p=$na(c.thumbnail);p=p.concat($na(null===(n=null===(m=c.channel)||void 0===m?void 0:m.offlineChannelData)||void 0===n?void 0:n.thumbnail));m=p.length?Qna(p):Promise.resolve(void 0);h=l.call(h,m)}return h})})};
$na=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};
HM=function(a,b){g.E.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.C={};this.J={};this.l={};this.L=[];this.I={};this.B={};this.u=null;this.W=new Set;FM(this,"cueVideoById",this.cueVideoById);FM(this,"loadVideoById",this.loadVideoById);FM(this,"cueVideoByUrl",this.cueVideoByUrl);FM(this,"loadVideoByUrl",this.loadVideoByUrl);FM(this,"playVideo",this.playVideo);FM(this,"pauseVideo",this.pauseVideo);FM(this,"stopVideo",this.stopVideo);FM(this,"clearVideo",this.clearVideo);
FM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);FM(this,"getVideoBytesTotal",this.getVideoBytesTotal);FM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);FM(this,"getVideoStartBytes",this.getVideoStartBytes);FM(this,"cuePlaylist",this.cuePlaylist);FM(this,"loadPlaylist",this.loadPlaylist);FM(this,"nextVideo",this.nextVideo);FM(this,"previousVideo",this.previousVideo);FM(this,"playVideoAt",this.playVideoAt);FM(this,"setShuffle",this.setShuffle);FM(this,"setLoop",this.setLoop);FM(this,
"getPlaylist",this.kL);FM(this,"getPlaylistIndex",this.getPlaylistIndex);FM(this,"getPlaylistId",this.getPlaylistId);FM(this,"loadModule",this.loadModule);FM(this,"unloadModule",this.unloadModule);FM(this,"setOption",this.setOption);FM(this,"getOption",this.getOption);FM(this,"getOptions",this.getOptions);FM(this,"mute",this.mute);FM(this,"unMute",this.unMute);FM(this,"isMuted",this.isMuted);FM(this,"setVolume",this.setVolume);FM(this,"getVolume",this.getVolume);FM(this,"seekTo",this.seekTo);FM(this,
"getPlayerState",this.getPlayerState);FM(this,"getPlaybackRate",this.getPlaybackRate);FM(this,"setPlaybackRate",this.setPlaybackRate);FM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);FM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
FM(this,"setPlaybackQuality",this.setPlaybackQuality);FM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);FM(this,"getCurrentTime",this.getCurrentTime);FM(this,"getDuration",this.getDuration);FM(this,"addEventListener",this.xK);FM(this,"removeEventListener",this.aQ);FM(this,"getDebugText",this.getDebugText);FM(this,"getVideoData",function(){return c.Tt()});
FM(this,"addCueRange",this.addCueRange);FM(this,"removeCueRange",this.removeCueRange);FM(this,"setSize",this.setSize);FM(this,"getApiInterface",this.getApiInterface);FM(this,"destroy",this.destroy);FM(this,"showVideoInfo",this.showVideoInfo);FM(this,"hideVideoInfo",this.hideVideoInfo);FM(this,"isVideoInfoVisible",this.isVideoInfoVisible);FM(this,"getSphericalProperties",this.getSphericalProperties);FM(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().I||(FM(this,"getVideoEmbedCode",
this.getVideoEmbedCode),FM(this,"getVideoUrl",this.getVideoUrl));FM(this,"getMediaReferenceTime",this.getMediaReferenceTime);GM(this,"getInternalApiInterface",this.getInternalApiInterface);GM(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);GM(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);GM(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);GM(this,"getAdState",this.getAdState);GM(this,"sendAbandonmentPing",this.sendAbandonmentPing);GM(this,"setLoopRange",this.setLoopRange);
GM(this,"getLoopRange",this.getLoopRange);GM(this,"setAutonavState",this.setAutonavState);GM(this,"seekToLiveHead",this.seekToLiveHead);GM(this,"seekToStreamTime",this.seekToStreamTime);GM(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);GM(this,"getStreamTimeOffset",this.getStreamTimeOffset);GM(this,"getVideoData",this.Tt);GM(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);GM(this,"deleteLocalMediaById",this.deleteLocalMediaById);GM(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);
GM(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);GM(this,"fetchLocalMedia",this.YK);GM(this,"fetchLocalMediaById",this.fetchLocalMediaById);GM(this,"downloadVideo",this.downloadVideo);GM(this,"refreshAllVideos",this.refreshAllVideos);GM(this,"deleteVideos",this.deleteVideos);GM(this,"deleteAllVideos",this.deleteAllVideos);GM(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);GM(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);GM(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);
GM(this,"getAppState",this.getAppState);GM(this,"addInfoCardXml",this.addInfoCardXml);GM(this,"updateLastActiveTime",this.updateLastActiveTime);GM(this,"setBlackout",this.setBlackout);GM(this,"setAccountLinkState",this.setAccountLinkState);GM(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);GM(this,"setUserEngagement",this.setUserEngagement);GM(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);GM(this,"setFauxFullscreen",this.setFauxFullscreen);GM(this,"setUseFastSizingOnWatch",
this.setUseFastSizingOnWatch);GM(this,"getPresentingPlayerType",this.getPresentingPlayerType);GM(this,"canPlayType",this.canPlayType);GM(this,"updatePlaylist",this.updatePlaylist);GM(this,"updateVideoData",this.updateVideoData);GM(this,"updateEnvironmentData",this.updateEnvironmentData);GM(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);GM(this,"setCardsVisible",this.setCardsVisible);GM(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);GM(this,"setSafetyMode",
this.setSafetyMode);GM(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
GM(this,"getVideoAspectRatio",this.getVideoAspectRatio);GM(this,"getPreferredQuality",this.getPreferredQuality);GM(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);GM(this,"onAdUxClicked",this.onAdUxClicked);GM(this,"getFeedbackProductData",this.getFeedbackProductData);GM(this,"getStoryboardFrame",this.getStoryboardFrame);GM(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);GM(this,"getStoryboardLevel",this.getStoryboardLevel);GM(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
GM(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);GM(this,"setAutonav",this.setAutonav);GM(this,"isNotServable",this.isNotServable);GM(this,"channelSubscribed",this.channelSubscribed);GM(this,"channelUnsubscribed",this.channelUnsubscribed);GM(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);GM(this,"togglePictureInPicture",this.togglePictureInPicture);GM(this,"supportsGaplessAudio",this.supportsGaplessAudio);GM(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
GM(this,"clearQueue",this.clearQueue);GM(this,"isFastLoad",function(){return!1});
GM(this,"getPlayerResponse",this.getPlayerResponse);GM(this,"getAudioTrack",this.WK);GM(this,"setAudioTrack",this.setAudioTrack);GM(this,"getAvailableAudioTracks",this.XK);GM(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);GM(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);GM(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);GM(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);GM(this,"setMinimized",this.setMinimized);GM(this,"confirmYpcRental",
this.confirmYpcRental);GM(this,"handleExternalCall",this.handleExternalCall);GM(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);GM(this,"getStatsForNerds",this.getStatsForNerds);GM(this,"setScreenLayer",this.setScreenLayer);GM(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);GM(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);GM(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);GM(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);
GM(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);GM(this,"setGlobalCrop",this.setGlobalCrop);GM(this,"getVisibilityState",this.getVisibilityState);GM(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);GM(this,"setInternalSize",this.setInternalSize)};
FM=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.aa();return c.apply(a,e)};
a.l.hasOwnProperty(b)||GM(a,b,c);a.L.push(b)};
IM=function(a,b,c){a.J[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.aa();return c.apply(a,e)};
a.l.hasOwnProperty(b)||GM(a,b,c);a.L.push(b)};
GM=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.aa();return c.apply(a,e)}};
Yla=function(a){a.u||(a.u={},g.Ra(a.u,a.C),g.Ra(a.u,a.J),a.u.addEventListener=function(b,c){aoa(a,b,c)},a.u.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Pa(c)),e=a.B[d];
e&&(a.app.Yj.unsubscribe(b,e),e=a.B,d in e&&delete e[d])});
return a.u};
aoa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Pa(c));if(!a.B[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ha(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.u,data:h})};
a.B[d]=f;a.app.Yj.subscribe(b,f)}};
boa=function(a,b,c){b=g.ee(Math.floor(b),0,100);isFinite(b)&&JM(a.app,{volume:b,muted:a.isMuted()},c)};
coa=function(a,b){JM(a.app,{muted:!0,volume:a.getVolume()},b)};
doa=function(a,b){JM(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.LM=function(a){var b=KM(a.app.Ua());if(b)return b.Kq();a=a.app.Ua();a=g.ZF(a.G.T())?a.gd.get("music"):void 0;return a?a.Kq():null};
NM=function(a,b){HM.call(this,a,b);var c=this;this.i=!1;IM(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(MM(c,d),e)});
IM(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(MM(c,d),e,f,h)});
IM(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(MM(c,d),e,f,h)});
IM(this,"seekBy",this.seekBy);IM(this,"mutedAutoplay",this.mutedAutoplay);IM(this,"showControls",this.showControls);IM(this,"hideControls",this.hideControls);IM(this,"cancelPlayback",this.cancelPlayback);IM(this,"getProgressState",this.getProgressState);IM(this,"isInline",this.isInline);IM(this,"setInline",this.setInline);IM(this,"getStoryboardFormat",this.getStoryboardFormat);IM(this,"getVideoContentRect",this.getVideoContentRect);IM(this,"toggleFullscreen",this.toggleFullscreen);IM(this,"isFullscreen",
this.isFullscreen);IM(this,"getVideoStats",this.getVideoStats);IM(this,"getPlayerSize",this.getPlayerSize);IM(this,"toggleSubtitles",this.toggleSubtitles);IM(this,"setCenterCrop",this.setCenterCrop);IM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);IM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);IM(this,"setSizeStyle",this.setSizeStyle);IM(this,"wakeUpControls",this.wakeUpControls)};
MM=function(a,b){var c={};if(a.app.T().J)for(var d=g.q(eoa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(foa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
g.OM=function(a){NM.call(this,a);this.iw=null};
PM=function(a){a=a.Ua();var b=a.gd.get("endscreen");return b&&b.Hn()?!0:a.Wr()||g.ZF(a.G.T())};
g.QM=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.SM=function(a){var b=g.RM(a.Ua());return a.app.Sf&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Wi()||!!a.getPlaylist()};
g.UM=function(a){return(a=g.TM(a.Ua()))?a.Pt():{}};
g.goa=function(a){a=(a=a.getVideoData())&&a.l;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.hoa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.ea)};
g.VM=function(a,b,c){a=a.Ka().element;var d=wb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Le(a,b,d);b.setAttribute("data-layer",String(c))};
g.WM=function(a){var b=a.T();if(!b.jc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.U(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.U(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.U(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.C&&f;return!c.ypcPreview&&(!d||e)&&!g.fb(c.X,"ypc")&&!a&&(!g.PF(b)||f)};
ioa=function(a){if(!a.Z("html5_inline_video_quality_survey"))return!1;var b=g.Y(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.l||!c.l.video||1080>c.l.video.i||c.XA)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.l.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.Z("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ia("iqss",e,!0),!0):!1};
g.XM=function(){Nt.apply(this,arguments)};
YM=function(a,b){this.u=a;this.timerName="";this.l=!1;this.i=b||null;this.l=!1};
joa=function(a){a=a.timerName;gE("yt_sts","p",a);hE("_start",void 0,a)};
koa=function(a,b,c){var d=g.VF(b.B)&&b.B.Kc&&lI(b);if(b.B.Ze&&(RF(b.B)||zG(b.B)||d)&&!a.l){a.l=!0;g.P("TIMING_ACTION")||oo("TIMING_ACTION",a.u.csiPageType);a.u.csiServiceName&&oo("CSI_SERVICE_NAME",a.u.csiServiceName);if(a.i){b=a.i.Mq();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,hE(e,b[e],a.timerName);b=a.i.uq;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,gE(e,b[e],a.timerName);b=a.i;b.i={};b.uq={}}gE("yt_pvis",nha(),a.timerName);gE("yt_pt","html5",a.timerName);
c&&!oE("pbs",a.timerName)&&a.tick("pbs",c);c=a.u;!zG(c)&&!RF(c)&&oE("_start",a.timerName)&&JE(a.timerName)}};
g.ZM=function(a,b){this.type=a||"";this.id=b||""};
g.$M=function(a,b){g.R.call(this);this.i=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.B=this.loaded=!1;this.Cd=this.Hx=this.l=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.C={};this.u=0;var c=b.session_data;c&&(this.Cd=xp(c,"&"));this.J=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;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.B||(this.listId=new g.ZM("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.ZM(c.substr(0,2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=
!0):loa(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=b.video)&&!g.U(a.experiments,"listajax_wexit_cleanup_killswitch")&&(this.items=c.slice(0),this.loaded=!0);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.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.C=WG(b,"playlist_");this.I=(c=b.thumbnail_ids)?c.split(","):[]};
aN=function(a){return!!(a.playlist||a.list||a.api)};
moa=function(a){var b=a.index+1;return b>=a.length?0:b};
noa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
bN=function(a,b){a.index=g.ee(b,0,a.length-1);a.startSeconds=0};
loa=function(a){if(!a.B){var b=b||a.listId;b={list:b};var c=a.Na();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
cN=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.Na();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;if(d=b.index)a.index=d;else if(c&&(c=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==c))for(d=0;d<a.items.length;d++)if(a.items[d].video_id===c){a.index=
d;break}a.setShuffle(!1);a.B=!1;a.loaded=!0;a.u++;a.l&&a.l()}};
dN=function(a,b){a.l=b;a.loaded&&g.uo(a.l,0)};
qoa=function(a,b){return C(this,function d(){var e,f,h,l;return z(d,function(m){if(1==m.i){e=g.tM();var n=a.T(),p={context:g.xM(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list,w=b.listType;if(t){var x;"user_uploads"===w?x={username:t}:x={playlistId:t};ooa(a,n,r,x);p.playlistRequest=x}else b.playlist?(x={templistVideoIds:b.playlist.toString().split(",")},ooa(a,n,r,x),p.playlistRequest=x):r&&(r={videoId:r},n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=
g.jM(poa);return v(m,g.xK(e,f,h),2)}l=m.l;g.CH(a,{raw_embedded_player_response:l},!1);m.i=0})})};
ooa=function(a,b,c,d){a=a.playlistIndex;d.playlistIndex=String(a?a:1);d.videoId=c?c:"";b&&(d.serializedThirdPartyEmbedConfig=b)};
g.eN=function(a){g.R.call(this);this.loaded=!1;this.player=a};
g.fN=function(a,b){return xA(a.info.mimeType)?b?a.info.Vb()===b:!0:!1};
g.roa=function(a,b){if(null!=a.i&&g.sG(b.T())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.ej())return!1;var c=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(e){return g.fN(e,"386")}),d=!!a.i&&!a.i.isManifestless&&Gga(a.i);
return c||d};
gN=function(a,b){g.E.call(this);this.G=a;this.B=b;this.uq={};this.i={};this.l=null;this.gd=new Map;this.u=g.U(a.T().experiments,"web_player_defer_modules")};
g.hN=function(a){return a.gd.get("captions")};
uoa=function(a,b){switch(b){case "ad":return iN(a);case "annotations_module":var c=a.G.T();if($F(c))c=!1;else{var d=a.G.getVideoData();c=d.UB||"3"===c.controlsType?!1:c.L.isEmpty()&&"annotation-editor"!==c.playerStyle&&"live-dashboard"!==c.playerStyle?!!d.ca||!!g.hI(d)||!!g.iI(d):!0}return c;case "attribution":return c=a.G.T(),g.U(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.G.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===
c.playerStyle?c=!0:(c=a.G.getVideoData(),c=!!c&&(!!g.Iia(c)||!!g.Jia(c))),c;case "embed":return g.PF(a.G.T());case "endscreen":return g.soa(a);case "heartbeat":return a.cA();case "kids":return gG(a.G.T());case "remote":return a.G.T().De;case "miniplayer":return a.G.T().showMiniplayerUiWhenMinimized;case "music":return g.ZF(a.G.T());case "captions":return c=a.G.getVideoData(),!!c.fh||!!c.captionTracks.length||g.roa(c,a.G);case "unplugged":return g.XF(a.G.T());case "ux":return a.G.T().Za;case "webgl":return toa(a);
case "ypc":return a.Wr();case "ypc_clickwrap":return c=a.G.getVideoData(),c.Bf&&!c.Dw;case "yto":return!!a.G.getVideoData().X.includes("yto");default:return g.gt(Error("Module descriptor "+b+" does not match")),!1}};
jN=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.gd.get(b);if(!f||e)if(c||(c=function(){jN(a,b,void 0,d,e)}),f=f||voa(a,b,c,uoa(a,b)))a.gd.set(b,f),f.create(),d&&a.G.xa("onApiChange")};
woa=function(a){a.u&&(jN(a,"endscreen"),a.yx(),jN(a,"creatorendscreen",void 0,!0))};
g.soa=function(a){var b=a.G.T();if(zG(b)||b.I||!b.ib&&!b.Fc)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.U(b.experiments,"desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.U(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.U(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.U(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.TM=function(a){return a.gd.get("webgl")};
toa=function(a){var b=a.G.getVideoData(),c=a.G.T().experiments,d=g.fq(),e=g.U(c,"enable_spherical_kabuki");a=g.yG(a.G.T());if(g.gI(b))return d||e||a||g.U(c,"html5_enable_spherical");if(g.dI(b))return a||d||e||g.U(c,"html5_enable_spherical");if(g.eI(b))return a||d||g.U(c,"html5_enable_spherical3d");if(g.fI(b))return a||g.U(c,"html5_enable_anaglyph3d")||!1;d=b.l&&b.l.video&&b.l.video.isHdr();return a&&!g.YH(b)&&!d&&(g.U(c,"enable_webgl_noop")||g.U(c,"html5_enable_bicubicsharp")||g.U(c,"html5_enable_smartsharp"))};
xoa=function(a){g.U(a.G.T().experiments,"web_player_ux_module_wait")&&a.gd.get("ux")&&a.G.jd("ux")};
yoa=function(a){xoa(a);jN(a,"ux",void 0,!0)};
iN=function(a){if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
voa=function(a,b,c,d){try{if(d){var e=g.kN[b];if(e)return new e(a.G);"creatorendscreen"===b?zoa(a,"annotations_module",c):zoa(a,b,c)}else a.G.jd(b)}catch(f){a.G.jd(b),g.gt(f)}return null};
lN=function(a,b,c){for(var d=g.q(a.gd),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.ri(b))&&(g.Ei(f),a.gd["delete"](e))}};
mN=function(a){return a.gd.get("ad")};
nN=function(a){if(gG(a.G.T()))return a.gd.get("kids")};
g.RM=function(a){if(a.G.T().De)return a.gd.get("remote")};
oN=function(a){if(g.XF(a.G.T()))return a.gd.get("unplugged")};
KM=function(a){if(a.G.T().Za)return a.gd.get("ux")};
g.pN=function(a){return a.gd.get("annotations_module")};
qN=function(a){return a.gd.get("creatorendscreen")};
zoa=function(a,b,c){if(a.B){for(var d=a.B+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.Ie("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.na()||c.call(a)},p=function(){a.na()||a.G.jd(b)},r=h.onload;
h.onload=function(y){am(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var F=new g.Tr("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.gt(F)}am(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":am(n)}x&&x(y)};
f&&((e=a.G.T().cspNonce)&&h.setAttribute("nonce",e),g.nd(h,g.kg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.Gi(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.kN[b]=null;"annotations_module"===b&&(g.kN.creatorendscreen=null)}))}};
rN=function(a,b,c){g.Cl.call(this,b,a);this.i=c};
g.sN=function(a){XJ.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new rN(b,c.type,c))}};
uN=function(a,b,c,d){g.R.call(this);var e=this;this.target=a;this.jt=b;this.l=0;this.I=!1;this.B=new g.ie(NaN,NaN);this.i=new g.XM(this);this.ea=this.u=this.J=null;g.I(this,this.i);b=d?4E3:3E3;this.W=new g.M(function(){tN(e,1,!1)},b,this);
g.I(this,this.W);this.X=new g.M(function(){tN(e,2,!1)},b,this);
g.I(this,this.X);this.Y=new g.M(function(){tN(e,512,!1)},b,this);
g.I(this,this.Y);this.ca=c&&0<c.Fc.length?5E3:3E3;d||(this.u=this.i.N(a,"mouseover",this.Bu),this.i.N(a,"mousemove",this.nM),this.i.N(a,"mouseleave",this.oM));og?this.i.N(a,"keypress",this.aM):this.i.N(a,"focusin",this.bL);this.C=this.i.N(a,"mousedown",this.PE);this.L=this.i.N(a,"touchstart",this.hH,void 0,!0);tN(this,640,!0)};
Aoa=function(a){tN(a,4,!1);a.J&&(a.i.Gb(a.J),a.J=null,a.u=a.i.N(a.target,"mouseover",a.Bu));a.u&&(a.i.Gb(a.u),a.u=a.i.N(a.target,"mouseover",a.Bu))};
tN=function(a,b,c){a.na();var d=!a.l;c?(a.l|=b,b&1&&a.W.start(),b&2&&a.X.start()):(a.l&=~b,b&1&&a.W.stop(),b&2&&a.X.stop(),b&512&&a.Y.stop());a.l&512&&!(a.l&128)&&g.en(a.Y,a.ca);b=!a.l;d!==b&&a.V("autohideupdate",b)};
g.vN=function(a){g.X.call(this,{D:"button",ka:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.wa);this.wa()};
wN=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.U(b.experiments,"web_player_contain_thumbnail")||b.I)&&c.push("ytp-exp-contain-thumbnail");g.X.call(this,{D:"div",ka:c,S:[{D:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.ha("ytp-cued-thumbnail-overlay");c=new g.vN(a);g.I(this,c);c.fa(b);this.u=new g.XM(this);g.I(this,this.u);this.api=a;this.C=this.ha("ytp-cued-thumbnail-overlay-image");this.B=c;this.l=new g.LL(this,250);g.I(this,this.l);this.i=new g.M(this.wa,0,this);g.I(this,
this.i);this.wa();this.N(a,"appresize",this.Ta);this.N(a,"presentingplayerstatechange",this.iI);this.N(a,"ypcStateChanged",this.GP);RF(a.T())&&this.N(a,"videoplayerreset",this.hI)};
Boa=function(a){var b=!a.T().Ve&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.xN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.FL(a))return g.bp(a),!0;b.pauseVideo();a=e.getAttribute("href");g.HJ(a,d,!0);return!1};
g.yN=function(a,b,c){if(oG(b.T())&&2!==b.getPresentingPlayerType()){if(g.FL(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.bp(c),!0}else if(!b.T().Z("embeds_enable_webview_nonjs_navigation")||!g.PF(b.T())||!mq()&&!kq()){var d=g.FL(c);d&&b.pauseVideo();g.HJ(a,void 0,!0);d&&(g.IJ(a),g.bp(c))}return!1};
zN=function(){return{D:"div",K:"ytp-spinner-container",S:[{D:"div",K:"ytp-spinner-rotator",S:[{D:"div",K:"ytp-spinner-left",S:[{D:"div",K:"ytp-spinner-circle"}]},{D:"div",K:"ytp-spinner-right",S:[{D:"div",K:"ytp-spinner-circle"}]}]}]}};
AN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.BN=function(a,b,c){a=a.T();return g.U(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Ce?g.AJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.CN=function(a){g.X.call(this,{D:"div",ka:["ytp-error"],U:{role:"alert"},S:[{D:"div",K:"ytp-error-content",S:[{D:"div",K:"ytp-error-icon-container",S:[{D:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{D:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"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"}}]}]},{D:"div",K:"ytp-error-content-wrap",
S:[{D:"div",K:"ytp-error-content-wrap-reason",ba:"{{content}}"},{D:"div",K:"ytp-error-content-wrap-subreason",ba:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.DN=function(a){a=a.split(Coa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",U:{href:a[c],target:a[c+1]},ba:a[c+2]})}return{D:"span",S:b}};
FN=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().l);a=a.api.getVideoData();b=g.AJ(g.EN[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",ba:f});d.push(b[0]);h&&d.push({D:"br"});d.push({D:"a",U:{href:c,target:e?"_blank":null},ba:b[2]});d.push(b[4]);return{D:"span",S:d}};
Doa=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)}};
Eoa=function(a){for(var b=0;b<a.keys.length;b++)a.Gb(a.keys[b]);a.keys=[]};
HN=function(a){g.XM.call(this);this.G=a;this.i=new Set;this.mediaSession=navigator.mediaSession;GN(this,"play",function(){a.playVideo()});
GN(this,"pause",function(){a.pauseVideo()});
GN(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
GN(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.Oa);this.N(a,"presentingplayerstatechange",this.ug);this.Oa()};
GN=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
IN=function(a){g.X.call(this,{D:"div",K:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.B=new g.X({D:"div",ka:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.u=!1;this.l=new g.LL(this.B,250,!1,100);this.Mc=this.i=null;g.I(this,this.B);this.B.fa(this.element);g.I(this,this.l);this.N(a,"videodatachange",this.Oa);this.N(a,"presentingplayerstatechange",this.Wb)};
Foa=function(a,b){var c=Dia(b),d=ZH(b);a.i?b.videoId&&b.videoId!==a.videoId&&(g.fn(a.i),a.videoId=b.videoId,a.u=!!d):c&&d&&(a.i=new g.M(a.kb,d,a),g.I(a,a.i),g.Qe(g.we("ytp-paid-content-overlay-text",a.element),c))};
Goa=function(a,b){a.i&&(g.W(b,8)&&a.u?(a.u=!1,a.Dc(),a.i.start()):(g.W(b,2)||g.W(b,64))&&a.videoId&&(a.videoId=null))};
JN=function(a){g.X.call(this,{D:"div",K:"ytp-spinner",S:[zN(),{D:"div",K:"ytp-spinner-message",ba:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ha("ytp-spinner-message");this.i=new g.M(this.show,500,this);g.I(this,this.i);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"playbackstalledatstart",this.u);a=a.Xa();Hoa(a)?this.i.start():this.hide()};
Hoa=function(a){return g.W(a,128)?!1:g.W(a,16)||g.W(a,1)?!0:!1};
g.KN=function(a,b,c,d){d=void 0===d?!1:d;g.ZK.call(this,b);var e=this;this.G=a;this.ga=d;this.J=new g.XM(this);this.X=new g.LL(this,c,!0,void 0,void 0,function(){e.l&&e.element&&(e.l.getAttribute("aria-haspopup"),e.l.setAttribute("aria-expanded","true"),e.focus())});
g.I(this,this.J);g.I(this,this.X)};
Ioa=function(a){a.l&&(document.activeElement&&g.Pe(a.element,document.activeElement)&&(Te(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=void 0);g.Pt(a.J);a.L=void 0};
LN=function(a,b,c){a.If()?a.kb():a.Dc(b,c)};
MN=function(a){var b=g.mA(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",ka:["ytp-unmute-icon"],S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}]},
{D:"div",ka:["ytp-unmute-text"],ba:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",ka:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.KN.call(this,a,{D:"button",ka:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{D:"div",K:"ytp-unmute-inner",S:d}]},100);this.seen=this.i=!1;this.api=a;this.api.Hb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.Fr,this);this.N(a,"presentingplayerstatechange",
this.ug);this.ya("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.PF(this.api.T());g.YK(this,a);a&&Joa(this);this.u=a};
Joa=function(a){a.seen||(a.seen=!0,a.api.Qa(a.element,!0))};
g.ON=function(a){g.XM.call(this);var b=this;this.api=a;this.aA=!1;this.aj=null;this.ot=!1;this.Rd=null;this.xx=this.tv=!1;this.wA=this.yA=null;this.AE=NaN;this.vA=this.zq=!1;this.zr=0;this.Rw=[];var c=a.T(),d=a.Ka();this.wC=new g.M(this.jz,0,this);g.I(this,this.wC);g.ZF(c)||(this.po=new wN(a),g.I(this,this.po),g.VM(a,this.po.element,4));if(Koa()){var e=new JN(a);g.I(this,e);e=e.element;g.VM(a,e,4)}var f=a.getVideoData();this.Lc=new uN(d,function(l){return b.jt(l)},f,c.qd);
g.I(this,this.Lc);this.Lc.subscribe("autohideupdate",this.di,this);var h=new IN(a);g.I(this,h);g.VM(a,h.element,4);this.yv=new MN(a);g.I(this,this.yv);g.VM(this.api,this.yv.element,2);this.zy=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.Fr);this.qv=new g.M(this.Bp,200,this);g.I(this,this.qv);this.Py=f.videoId;this.EG=new g.M(function(){b.zr=0},350);
g.I(this,this.EG);this.ut=new g.M(function(){b.vA||NN(b)},350,this);
g.I(this,this.ut);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.ZF(c)&&g.N(f,"ytp-music-player");!g.U(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new HN(a),g.I(this,f));this.N(a,"appresize",this.Ta);this.N(a,"presentingplayerstatechange",this.ug);this.N(a,"videodatachange",this.Oa);this.N(a,"videoplayerreset",this.mO);
this.N(a,"autonavvisibility",function(){b.Ak()});
this.N(a,"sizestylechange",function(){b.Ak()});
this.N(d,"click",this.MO,this);this.N(d,"dblclick",this.NO,this);c.za&&(this.N(d,"gesturechange",this.OO,this),this.N(d,"gestureend",this.PO,this));this.El=[d.rq];this.po&&this.El.push(this.po.element);e&&this.El.push(e)};
PN=function(a,b){if(!b)return!1;var c=a.api.cd();if(c.hm()&&(c=c.he())&&g.Pe(c,b))return c.controls;for(c=0;c<a.El.length;c++)if(g.Pe(a.El[c],b))return!1;return g.kn(b,"ytp-player-content")||g.kn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Loa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Ka().Zt||!1)&&a.api.T().i&&QN&&11<=rI;a=g.PF(a.api.T())&&a.api.T().Z("embeds_enable_mobile_custom_controls")&&a.api.T().i&&QN;return!(!b&&!a)};
RN=function(a,b){return!PN(a,Zo(b))&&g.FL(b)};
NN=function(a){a.Lc.wk();if(g.U(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.tv&&a.xx)a.xx=!1;else if(!a.api.T().ea&&!a.Xj()){var b=a.api.Xa();g.W(b,2)&&PM(a.api)||a.Jn(b);if(!a.api.T().za||b.isCued()||g.W(b,1024)){var c=a.api.dv();g.Or("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.W(b,2048);c&&(b.isCued()||d)?(g.Or("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||
g.Or("embedsRequestStorageAccessFailedState",{state:b.state}),a.Bp())}else a.qv.isActive()?(a.au(),a.qv.stop()):a.qv.start()}};
Moa=function(a,b){if(g.FL(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=a.api.Xa();!g.W(c,4)||g.W(c,8)||g.W(c,2)||a.Bp();return!0}return!1};
Noa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Koa=function(){var a=$p()&&67<=Xp();return!Zp("tizen")&&!NF&&!a&&!0};
SN=function(a,b){b=void 0===b?2:b;g.R.call(this);this.api=a;this.i=null;this.Sd=new Nt(this);g.I(this,this.Sd);this.l=Ooa;this.Sd.N(this.api,"presentingplayerstatechange",this.Wb);this.i=this.Sd.N(this.api,"progresssync",this.Ab);this.zi=b;1===this.zi&&this.Ab()};
TN=function(a){g.X.call(this,{D:"button",ka:["ytp-button","ytp-back-button"],S:[{D:"div",K:"ytp-arrow-back-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{D:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",vb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.YK(this,a.T().showBackButton);this.ya("click",this.onClick)};
g.UN=function(a){g.X.call(this,{D:"div",S:[{D:"div",K:"ytp-bezel-text-wrapper",S:[{D:"div",K:"ytp-bezel-text",ba:"{{title}}"}]},{D:"div",K:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{D:"div",K:"ytp-bezel-icon",ba:"{{icon}}"}]}]});this.G=a;this.l=new g.M(this.show,10,this);this.i=new g.M(this.hide,500,this);g.I(this,this.l);g.I(this,this.i);this.hide()};
WN=function(a,b,c){if(0>=b){c=lL();b="muted";var d=0}else c=c?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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";VN(a,c,b,d+"%")};
Poa=function(a,b){var c=b?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.G.getPlaybackRate(),e=g.AJ("Speed is $RATE",{RATE:String(d)});VN(a,c,e,d+"x")};
VN=function(a,b,c,d){d=void 0===d?"":d;a.Ba("label",void 0===c?"":c);a.Ba("icon",b);g.fn(a.i);a.l.start();a.Ba("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
YN=function(a,b,c){g.X.call(this,{D:"button",ka:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.PF(a.T()))},S:[{D:"span",K:"ytp-cards-button-icon-default",S:[{D:"div",K:"ytp-cards-button-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}]},
{D:"div",K:"ytp-cards-button-title",ba:"Info"}]},{D:"span",K:"ytp-cards-button-icon-shopping",S:[{D:"div",K:"ytp-cards-button-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",K:"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"}},{D:"path",K:"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"}},{D:"path",K:"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"}}]}]},{D:"div",
K:"ytp-cards-button-title",ba:"Shopping"}]}]});this.G=a;this.u=b;this.B=c;this.i=null;this.l=new g.LL(this,250,!0,100);g.I(this,this.l);g.O(this.B,"ytp-show-cards-title",g.PF(a.T()));this.hide();this.ya("click",this.onClicked);this.ya("mouseover",this.DN);XN(this,!0)};
XN=function(a,b){b?a.i=g.ZN(a.u.Ob(),a.element):(a.i=a.i,a.i(),a.i=null)};
$N=function(a,b,c){g.X.call(this,{D:"div",K:"ytp-cards-teaser",S:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",S:[{D:"span",K:"ytp-cards-teaser-label",ba:"{{text}}"}]}]});var d=this;this.G=a;this.X=b;this.Ki=c;this.B=new g.LL(this,250,!1,250);this.i=null;this.J=new g.M(this.XN,300,this);this.I=new g.M(this.WN,2E3,this);this.C=[];this.l=null;this.L=new g.M(function(){d.element.style.margin="0"},250);
this.u=null;g.I(this,this.B);g.I(this,this.J);g.I(this,this.I);g.I(this,this.L);this.N(c.element,"mouseover",this.sB);this.N(c.element,"mouseout",this.rB);this.N(a,"cardsteasershow",this.jP);this.N(a,"cardsteaserhide",this.kb);this.N(a,"cardstatechange",this.qH);this.N(a,"presentingplayerstatechange",this.qH);this.N(a,"appresize",this.IA);this.N(a,"onShowControls",this.IA);this.N(a,"onHideControls",this.EK);this.ya("click",this.EQ);this.ya("mouseenter",this.kI)};
Roa=function(a,b,c,d){var e=window.location.search;if(38===b.Ja&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Od("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.eR});if(30===b.Ja&&"docs"===a.playerStyle)return g.Od("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.bF,authkey:b.authKey,eurl:a.La});if(33===b.Ja&&"google-live"===a.playerStyle)return g.Od("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Y&&g.gt(Error("getVideoInfoUrl for invalid namespace: "+a.Y));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.La,ps:a.playerStyle,el:jI(b),hl:a.ld,list:b.playlistId,agcid:b.GH,aqi:b.adQueryId,sts:18694,lact:tp()};g.Ra(f,a.deviceParams);a.Ha&&(f.forced_experiments=a.Ha);b.la?(f.vvt=b.la,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.nI(b)&&(f.access_token=g.nI(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.zp&&(f.ad_id=b.zp);null!==b.Cs&&(f.ad_sys=b.Cs);null!==b.Rv&&(f.encoded_ad_playback_context=b.Rv);b.Sx&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.ma&&2!==a.ma&&(f.cc_load_policy=a.ma);var h=g.Uq(g.Sq.getInstance(),65);g.wG(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.cm&&(f.endscreen_ad_tracking=
b.cm);(h=a.L.get(b.videoId))&&h.ws&&(f.ic_track=h.ws);b.ia&&(f.itct=b.ia);mI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.ph&&(f.autonav="1");b.Cw&&(f.noiba="1");g.U(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.wf&&(f.ytr=b.wf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.wf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Sj&&(f.ytrcc=b.Sj);b.Fw&&(f.utpsa="1");b.Aw&&(f.is_fling="1");b.Bw&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Ve&&(h=
3===b.Ve.split("|").length,f.force_ad_params=h?b.Ve:"||"+b.Ve);b.oc&&(f.preload=b.oc);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Hd&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");kI(b)&&(f.content_v=kI(b));b.Sb&&(f.livemonitor=1);a.W&&(f.authuser=a.W);a.pageId&&(f.pageid=a.pageId);a.kc&&(f.ei=a.kc);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.gm&&(f.live_start_walltime=b.gm);a.u&&b.We&&(f.live_manifest_duration=b.We);a.u&&b.playerParams&&(f.player_params=
b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.Tx&&(f.tkn=b.Tx);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Wa&&(f.kpt=b.Wa);b.Yi&&(f.kids_age_up_mode=b.Yi);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.qm&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.W?(h=null!=b.W.latitudeE7&&null!=b.W.longitudeE7?b.W.latitudeE7+","+b.W.longitudeE7:",",h+=","+(b.W.clientPermissionState||0)+","+(b.W.locationRadiusMeters||
"")+","+(b.W.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.Qh&&(f.internalipoverride=b.Qh);a.embedConfig&&(f.embed_config=a.embedConfig);a.Jh&&(f.co_rel="1");0<a.Tc.length&&(f.ancestor_origins=Array.from(a.Tc).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.Gj&&b.Hj&&(f.clip=b.Gj,f.clipt=
b.Hj);b.Ij&&(f.disable_watch_next="1");a.Z("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(yM(b,c,d)));a.Z("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(Mna(b)));for(var l in f)!Qoa.has(l)&&f[l]&&512<String(f[l]).length&&(g.ht(Error("GVI param too long: "+l)),f[l]="");b=a.ca;g.XF(a)&&(b=Qx(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.ca);a=g.Od(b+"get_video_info",f);e&&(a=Qp(a,e));return a};
g.aO=function(a,b){return a.ca+"timedtext_video?ref=player&v="+b.videoId};
g.bO=function(a){var b={};b.feature=a;return b};
Soa=function(a){var b={};a.Yw&&(b.ytrext=a.Yw);return g.Pb(b)?void 0:b};
dO=function(a,b){g.X.call(this,{D:"button",ka:[cO.BUTTON,cO.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{D:"div",K:cO.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.iL()]},{D:"div",K:cO.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{D:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"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.i=!1;a.Hb(this.element,this,36927);this.ya("click",this.onClick,this);this.Ba("pressed",!1);this.Ba("label","Get notified about every new video")};
Toa=function(a,b){a.i=b;a.element.classList.toggle(cO.NOTIFICATIONS_ENABLED,a.i);if(g.U(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.My:c.yy){var d=a.api.bk();d?iM(d,c):g.ro(Error("No innertube service available when updating notification preferences."))}else g.ro(Error("No update preferences command available."));else g.ro(Error("No video data when updating notification preferences."))}else g.Tp("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",postParams:{channel_id:a.channelId,receive_all_updates:!a.i}})};
Uoa=function(a,b,c){return b?a.ca+"subscription_ajax":c?"/subscription_service":""};
g.fO=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.VF(w)||g.YF(w))c.target=w.C;g.X.call(this,{D:"div",ka:["ytp-button","ytp-sb"],S:[{D:"a",K:"ytp-sb-subscribe",U:c,S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},a]},b?{D:"div",K:"ytp-sb-count",ba:b}:""]}]});f&&g.N(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=w.userDisplayName&&g.VF(w)&&!g.U(w.experiments,"subscribe_tooltipkillswitch");g.X.call(this,{D:"div",ka:["ytp-button","ytp-sb"],S:[{D:"div",K:"ytp-sb-subscribe",U:p?{title:g.AJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":AG(w),"data-tooltip-opaque":String(g.PF(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},
a]},b?{D:"div",K:"ytp-sb-count",ba:b}:""]},{D:"div",K:"ytp-sb-unsubscribe",U:p?{title:g.AJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":AG(w),"data-tooltip-opaque":String(g.PF(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{D:"div",K:"ytp-sb-text",S:[{D:"div",K:"ytp-sb-icon"},c]},d?{D:"div",K:"ytp-sb-count",ba:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.ha("ytp-sb-subscribe"),F=this.ha("ytp-sb-unsubscribe");
f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.l():this.u();var D=function(){a:{var K=x.channelId;if(m||n){var J=r.T();var H={c:K};if(g.U(J.experiments,"embeds_botguard_with_subscribe_killswitch"))H="";else{var L;ot.be()&&(L=wna(H));H=L||""}if(g.U(J.experiments,"web_player_innertube_subscription_update")){J=r.getVideoData();if(!J){g.ro(Error("No video data available when updating subscription."));break a}J=J.subscribeCommand;if(!J){g.ro(Error("No subscribe command in videoData."));break a}L=r.bk();
if(!L){g.ro(Error("No innertube service available when updating subscriptions."));break a}iM(L,J,{botguardResponse:H,feature:m})}else g.Tp(Uoa(J,!!m,!!n),m?{method:"POST",urlParams:{action_create_subscription_to_channel:1,c:K},postParams:{feature:m,silo_name:null,r2b:H},withCredentials:!0}:n?{method:"POST",urlParams:{action_subscribe:1},postParams:{channel_ids:K,itct:n}}:{});r.xa("SUBSCRIBE",K)}}F.focus();F.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var K=x.channelId;
if(m||n){var J=r.T();g.U(J.experiments,"web_player_innertube_subscription_update")?(J=r.getVideoData(),iM(r.bk(),J.unsubscribeCommand,{feature:m})):g.Tp(Uoa(J,null!=m,null!=n),m?{method:"POST",urlParams:{action_remove_subscriptions:1},postParams:{c:K,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",urlParams:{action_unsubscribe:1},postParams:{channel_ids:K,itct:n}}:{});r.xa("UNSUBSCRIBE",K)}y.focus();y.removeAttribute("aria-hidden");F.setAttribute("aria-hidden","true")};
this.N(y,"click",D);this.N(F,"click",G);this.N(y,"keypress",function(K){13===K.keyCode&&D(K)});
this.N(F,"keypress",function(K){13===K.keyCode&&G(K)});
this.N(r,"SUBSCRIBE",this.l);this.N(r,"UNSUBSCRIBE",this.u);this.i&&p&&(this.tooltip=this.i.Ob(),eO(this.tooltip),g.Gi(this,g.ZN(this.tooltip,y)),g.Gi(this,g.ZN(this.tooltip,F)))}else g.N(y,"ytp-sb-disabled"),g.N(F,"ytp-sb-disabled")}};
gO=function(a,b){g.X.call(this,{D:"div",K:"ytp-title-channel",S:[{D:"div",K:"ytp-title-beacon"},{D:"a",K:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().C,"aria-label":"{{channelLogoLabel}}"}},{D:"div",K:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{D:"div",K:"ytp-title-expanded-heading",S:[{D:"h2",K:"ytp-title-expanded-title",S:[{D:"a",ba:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().C,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",
K:"ytp-title-expanded-subtitle",ba:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ha("ytp-title-channel");this.i=this.ha("ytp-title-channel-logo");this.B=this.ha("ytp-title-expanded-overlay");this.u=this.l=this.subscribeButton=null;this.C=g.PF(this.api.T());a.Hb(this.i,this,36925);this.C&&Voa(this);this.N(a,"videodatachange",this.wa);this.N(a,"videoplayerreset",this.wa);this.wa()};
Voa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.la){var d=b.W?null:dna(),e=new g.fO("Subscribe",null,"Subscribed",null,!0,!1,c.Bg,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.I(a,e);e.fa(a.B);a.api.Hb(e.element,a,36926);e.hide();a.N(e.element,"click",function(){a.api.ub(e.element)});
var f=new dO(a.api,c.Bg);a.l=f;g.I(a,f);f.fa(a.B);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.af&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.af&&(f.hide(),Toa(f,!1))})}a.Ba("flyoutUnfocusable","true");
a.Ba("channelTitleFocusable","-1");b.i?a.N(a.i,"click",function(h){Woa(a)&&(h.preventDefault(),a.isExpanded()?a.nx():a.Rx());a.api.ub(a.i)}):(a.N(a.channel,"mouseenter",a.Rx),a.N(a.channel,"mouseleave",a.nx),a.N(a.channel,"focusin",a.Rx),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.nx()}),a.N(a.i,"click",function(){a.api.ub(a.i)}));
a.u=new g.M(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Qa(a.subscribeButton.element,!1)),a.l&&(a.l.hide(),a.api.Qa(a.l.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.I(a,a.u);a.N(a.channel,Xoa,function(){Yoa(a)});
a.N(a.api,"onHideControls",a.Nz);a.N(a.api,"appresize",a.Nz);a.N(a.api,"fullscreentoggled",a.Nz)};
Yoa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
Woa=function(a){var b=a.api.getPlayerSize();return a.C&&524<=b.width};
g.iO=function(a,b,c,d){g.ZK.call(this,a);this.priority=b;c&&g.hO(this,c);d&&this.Ec(d)};
g.jO=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{D:c?"a":"div",ka:b,U:a,S:[{D:"div",K:"ytp-menuitem-icon",ba:"{{icon}}"},{D:"div",K:"ytp-menuitem-label",ba:"{{label}}"},{D:"div",K:"ytp-menuitem-content",ba:"{{content}}"}]}};
kO=function(a,b){a.Ba("icon",b)};
g.hO=function(a,b){a.Ba("label",b)};
lO=function(a,b,c,d,e,f){var h={D:"div",K:"ytp-panel"};if(c){var l="ytp-panel-title";var m={D:"div",K:"ytp-panel-header",S:[{D:"button",ka:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({D:"button",ka:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={D:"div",K:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.ZK.call(this,h);this.content=b;d&&h.S?b.fa(this.element,h.S.length-1):b.fa(this.element);this.YD=!1;this.ML=d;c&&(c=this.ha(l),this.N(c,"click",this.XM),this.YD=!0,
e&&(n=this.ha(n),this.N(n,"click",e)));b.subscribe("size-change",this.lF,this);this.N(a,"fullscreentoggled",this.lF)};
g.mO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.ZK({D:"div",K:"ytp-panel-menu",U:h});lO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.I(this,this.menuItems)};
g.nO=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.sz,a);a.items=[];g.Ke(a.menuItems.element);a.menuItems.V("size-change")};
Zoa=function(a,b){return b.priority-a.priority};
oO=function(a){var b=g.jO({"aria-haspopup":"true"});g.iO.call(this,b,a);this.ya("keydown",this.i)};
pO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
qO=function(a,b){g.iO.call(this,g.jO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.ya("click",this.onClick)};
rO=function(a,b,c,d){g.mO.call(this,a);this.G=a;this.bb=c;this.Qb=d;this.ai=new qO("Loop",7);this.getVideoUrl=new oO(6);this.Uh=new oO(5);this.Sh=new oO(4);this.nb=new oO(3);this.Or=new g.iO(g.jO({href:"{{href}}",target:this.G.T().C},void 0,!0),2,"Troubleshoot playback issue");this.no=new g.ZK({D:"div",ka:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},ba:"{{text}}"});this.UC=new lO(this.G,this.no);this.xl=null;g.I(this,this.ai);this.Ub(this.ai,!0);this.ai.ya("click",this.LP,
this);a.Hb(this.ai.element,this.ai,28661);g.I(this,this.getVideoUrl);this.Ub(this.getVideoUrl,!0);this.getVideoUrl.ya("click",this.JP,this);a.Hb(this.getVideoUrl.element,this.getVideoUrl,28659);g.I(this,this.Uh);this.Ub(this.Uh,!0);this.Uh.ya("click",this.KP,this);a.Hb(this.Uh.element,this.Uh,28660);g.I(this,this.Sh);this.Ub(this.Sh,!0);this.Sh.ya("click",this.IP,this);a.Hb(this.Sh.element,this.Sh,28658);g.I(this,this.nb);this.Ub(this.nb,!0);this.nb.ya("click",this.HP,this);g.I(this,this.Or);this.Ub(this.Or,
!0);this.Or.ya("click",this.HO,this);b=new g.iO(g.jO(),1,"Stats for nerds");g.I(this,b);this.Ub(b,!0);b.ya("click",this.ZO,this);g.I(this,this.no);this.no.ya("click",this.oN,this);g.I(this,this.UC);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.DA&&g.ce(43)&&(c=!0);g.oF&&!g.ce(41)&&(c=!1);c&&(this.xl=new g.X({D:"textarea",K:"ytp-html5-clipboard",U:{readonly:""}}),g.I(this,this.xl),this.xl.fa(this.element));kO(this.ai,{D:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},S:[{D:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});kO(this.nb,{D:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"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"}}]});kO(this.Or,{D:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"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"}}]});kO(b,Ama());this.N(a,"loopchange",this.wF);this.N(a,"videodatachange",this.Oa);$oa(this);this.Ah(this.G.getVideoData())};
tO=function(a,b){var c=!1;if(a.xl){var d=a.xl.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.bb.kb():(a.no.Ec(b,"text"),g.sO(a.bb,a.UC),AN(a.no.element),a.xl&&(a.xl=null,$oa(a)));return c};
$oa=function(a){var b=!!a.xl;g.hO(a.nb,b?"Copy debug info":"Get debug info");pO(a.nb,!b);g.hO(a.Sh,b?"Copy embed code":"Get embed code");pO(a.Sh,!b);g.hO(a.getVideoUrl,b?"Copy video URL":"Get video URL");pO(a.getVideoUrl,!b);g.hO(a.Uh,b?"Copy video URL at current time":"Get video URL at current time");pO(a.Uh,!b);kO(a.Sh,b?yma():null);kO(a.getVideoUrl,b?gL():null);kO(a.Uh,b?gL():null)};
g.uO=function(a,b){g.KN.call(this,a,{D:"div",ka:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.B=null;this.Os=this.maxWidth=0;this.size=new g.ke(0,0);this.ya("keydown",this.lI)};
apa=function(a){var b=a.i[a.i.length-1];if(b){g.Dg(a.element,a.maxWidth||"100%",a.Os||"100%");g.mg(b.element,"minWidth","250px");g.mg(b.element,"width","");g.mg(b.element,"height","");g.mg(b.element,"maxWidth","100%");g.mg(b.element,"maxHeight","100%");g.mg(b.content.element,"height","");var c=g.Eg(b.element);c.width+=1;c.height+=1;g.mg(b.element,"width",c.width+"px");g.mg(b.element,"height",c.height+"px");g.mg(b.element,"maxWidth","");g.mg(b.element,"maxHeight","");var d=0;b.YD&&(d=b.ha("ytp-panel-header"),
d=g.Eg(d).height);var e=0;b.ML&&(e=b.ha("ytp-panel-footer"),g.mg(e,"width",c.width+"px"),e=g.Eg(e).height);g.mg(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.mg(b.element,"width",c.width+"px")));a.size=c}};
g.sO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);vO(a,c,b)};
g.wO=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];vO(a,b,c,!0)}};
vO=function(a,b,c,d){bpa(a);b&&(b.unsubscribe("size-change",a.Gp,a),b.unsubscribe("back",a.xg,a));c.subscribe("size-change",a.Gp,a);c.subscribe("back",a.xg,a);if(a.ab){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.fa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;apa(a);g.Dg(a.element,e);a.B=new g.M(function(){cpa(a,b,c,d)},20,a);
a.B.start()}else c.fa(a.element),b&&b.detach()};
cpa=function(a,b,c,d){a.B.dispose();a.B=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.mn(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.mn(c.element,"ytp-panel-animate-forward"));g.Dg(a.element,a.size);a.I=new g.M(function(){g.mn(a.element,"ytp-popup-animating");b.detach();g.nn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
bpa=function(a){a.B&&a.B.mg();a.I&&a.I.mg()};
g.xO=function(a,b,c){g.uO.call(this,a);this.ea=b;this.Qb=c;this.u=new g.XM(this);this.Y=new g.M(this.oP,1E3,this);this.ca=this.C=null;g.I(this,this.u);g.I(this,this.Y);a.Hb(this.element,this,28656);g.N(this.element,"ytp-contextmenu");dpa(this);this.hide()};
dpa=function(a){g.Pt(a.u);if("gvn"!==a.G.T().playerStyle){var b=a.G.Ka();a.u.N(b,"contextmenu",a.lN);a.u.N(b,"touchstart",a.nI,null,!0);a.u.N(b,"touchmove",a.WF,null,!0);a.u.N(b,"touchend",a.WF,null,!0)}};
epa=function(a){a.G.isFullscreen()?g.VM(a.G,a.element,9):a.fa(document.body)};
g.yO=function(a,b,c){c=void 0===c?240:c;g.X.call(this,{D:"button",ka:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.PF(a.T()))},S:[{D:"div",K:"ytp-copylink-icon",ba:"{{icon}}"},{D:"div",K:"ytp-copylink-title",ba:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.Ob();b=a.T();eO(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.PF(b)&&!g.ZF(b));a.Hb(this.element,this,86570);this.ya("click",
this.onClick);this.N(a,"videodatachange",this.wa);this.N(a,"videoplayerreset",this.wa);this.N(a,"appresize",this.wa);this.wa();g.Gi(this,g.ZN(this.tooltip,this.element))};
fpa=function(a){a.Ba("icon",bL());if(a.api.T().i)zO(a.tooltip,a.element,"Link copied to clipboard");else{a.Ba("title-attr","Link copied to clipboard");AO(a.tooltip);zO(a.tooltip,a.element);var b=a.ya("mouseleave",function(){a.Gb(b);a.wa();a.tooltip.Ji()})}};
gpa=function(a,b){return C(a,function d(){var e=this;return z(d,function(f){if(1==f.i)return sa(f,2),v(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f["return"](!0);ua(f);var h=f["return"],l=!1,m=g.Ie("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(jq){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)})})};
BO=function(a){g.X.call(this,{D:"div",K:"ytp-doubletap-ui",S:[{D:"div",K:"ytp-doubletap-fast-forward-ve"},{D:"div",K:"ytp-doubletap-rewind-ve"},{D:"div",K:"ytp-doubletap-static-circle",S:[{D:"div",K:"ytp-doubletap-ripple"}]},{D:"div",K:"ytp-doubletap-overlay-a11y"},{D:"div",K:"ytp-doubletap-seek-info-container",S:[{D:"div",K:"ytp-doubletap-arrows-container",S:[{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"}]},{D:"div",K:"ytp-doubletap-tooltip",
S:[{D:"div",K:"ytp-chapter-seek-text",ba:"{{seekText}}"},{D:"div",K:"ytp-doubletap-tooltip-label",ba:"{{seekTime}}"}]}]}]});this.G=a;this.u=new g.M(this.show,10,this);this.l=new g.M(this.hide,700,this);this.i=this.ha("ytp-doubletap-static-circle");g.I(this,this.u);g.I(this,this.l);this.hide();this.B=this.ha("ytp-doubletap-fast-forward-ve");this.C=this.ha("ytp-doubletap-rewind-ve");this.G.Hb(this.B,this,28240);this.G.Hb(this.C,this,28239);this.G.Qa(this.B,!0);this.G.Qa(this.C,!0)};
CO=function(a,b,c){var d=a.G.Ka().getPlayerSize();g.fn(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.N(a.element,"ytp-time-seeking");a.i.style.width="110px";a.i.style.height="110px";1===b?(a.i.style.right="",a.i.style.left=.8*d.width-30+"px"):-1===b&&(a.i.style.right="",a.i.style.left=.1*d.width-15+"px");a.i.style.top=.5*d.height+15+"px";hpa(a,c)};
DO=function(a,b,c){g.fn(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");a.i.style.width="0";a.i.style.height="0";g.N(a.element,"ytp-chapter-seek");a.Ba("seekText",c);a.Ba("seekTime","")};
hpa=function(a,b){var c=g.AJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ba("seekTime",c)};
EO=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
FO=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};
ipa=function(a,b){var c=FO(a,b)+1;return c<a.length?c:-1};
jpa=function(a,b){return FO(a,b)-1};
g.GO=function(a,b,c,d,e,f,h){g.XM.call(this);var l=this;this.api=a;this.contextMenu=c;this.Lc=d;this.Qb=e;this.i=f;this.B=h;this.u=new g.M(function(){kpa(l,!1)},1E3);
this.l="";g.I(this,this.u);a=g.Qa(this.Xz,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.VD);this.N(c.element,"keydown",this.VD);this.N(b,"keyup",this.WD);this.N(c.element,"keyup",this.WD)};
IO=function(a,b,c,d){var e=g.hN(a.api.Ua());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.HO.length;h++){var l=g.HO[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);kpa(a,!0);a.u.start()}};
lpa=function(a,b){a.api.Ke();if(g.W(a.api.Xa(),4)){var c=a.api.getVideoData().l;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
kpa=function(a,b){g.hN(a.api.Ua())&&a.api.setOption("captions","sampleSubtitles",b)};
JO=function(a,b,c){g.X.call(this,{D:"button",ka:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{D:"div",K:"ytp-overflow-icon",S:[{D:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{D:"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.G=a;this.i=b;this.visible=!1;this.tooltip=this.i.Ob();
a.Hb(this.element,this,16499);this.N(a,"appresize",this.wa);this.N(a,"fullscreentoggled",this.wa);this.N(a,"presentingplayerstatechange",this.wa);this.wa();g.Gi(this,g.ZN(this.tooltip,this.element));this.ya("click",function(){a.ub(d.element);LN(c,d.element,!1)})};
KO=function(a,b){g.KN.call(this,a,{D:"div",K:"ytp-overflow-panel",U:{id:UK(),role:"dialog"},S:[{D:"div",K:"ytp-overflow-panel-content",S:[{D:"div",K:"ytp-overflow-panel-action-buttons",ba:"{{buttons}}"}]},{D:"button",ka:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.eL()]}]},250);this.actionButtons=[];this.tooltip=b.Ob();this.i=this.ha("ytp-overflow-panel-content");this.closeButton=this.ha("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.kb);g.Gi(this,g.ZN(this.tooltip,
this.closeButton));this.ya("click",this.oI);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Zf);this.hide()};
LO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ba("buttons",a.actionButtons))};
mpa=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.zb(b)};
MO=function(a,b,c){var d=b.Na(c),e=a.T(),f=d.te("default.jpg");g.X.call(this,{D:"a",ka:["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:[{D:"div",K:"ytp-video-menu-item-index",ba:String(c+1)},{D:"div",K:"ytp-video-menu-item-now-playing",ba:"\u25b6"},{D:"div",K:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{D:"div",K:"ytp-video-menu-item-title",ba:d.title},{D:"div",
K:"ytp-video-menu-item-author",ba:d.author}]});this.api=a;this.index=c;this.ya("click",this.onClick)};
NO=function(a){g.KN.call(this,a,{D:"div",K:"ytp-playlist-menu",U:{role:"dialog",id:UK()},S:[{D:"div",K:"ytp-playlist-menu-header",S:[{D:"div",K:"ytp-playlist-menu-title",S:[{D:"a",K:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},ba:"{{title}}"},{D:"button",ka:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.eL()]}]},{D:"div",K:"ytp-playlist-menu-subtitle",ba:"{{subtitle}}"}]},{D:"div",K:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.B=
this.playlist=null;this.items=this.ha("ytp-playlist-menu-items");this.u=new g.XM(this);this.i=[];a=this.ha("ytp-playlist-menu-close");this.N(a,"click",this.kb);a=this.ha("ytp-playlist-menu-title-name");this.N(a,"click",this.nP);g.I(this,this.u);this.hide()};
OO=function(a,b,c){g.X.call(this,{D:"button",ka:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{D:"div",K:"ytp-playlist-menu-button-icon",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}]},{D:"div",K:"ytp-playlist-menu-button-text",ba:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Ob();a.Hb(this.element,this,70344);this.N(a,"videodatachange",this.i);this.N(a,"onPlaylistUpdate",this.i);this.N(a,"presentingplayerstatechange",this.wa);this.N(a,"appresize",this.wa);this.hide();this.i();g.Gi(this,g.ZN(this.tooltip,this.element));this.ya("click",function(){a.ub(d.element);LN(c,d.element,!1)})};
PO=function(a,b,c){g.X.call(this,{D:"div",K:"ytp-promotooltip-wrapper",S:[{D:"div",K:"ytp-promotooltip-container",S:[{D:"div",K:"ytp-promotooltip-content",S:[{D:"div",K:"ytp-promotooltip-title",ba:"{{title}}"},{D:"div",K:"ytp-promotooltip-details",ba:"{{details}}"}]},{D:"div",K:"ytp-promotooltip-buttons",S:[{D:"div",K:"ytp-promotooltip-dismiss-button",ba:"{{dismissButtonText}}",U:{tabindex:"0"}},{D:"div",K:"ytp-promotooltip-accept-button",ba:"{{acceptButtonText}}",U:{tabindex:"0","aria-haspopup":"true"}}]}]},
{D:"div",K:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.i=this.u=null;this.title=this.ha("ytp-promotooltip-title");this.details=this.ha("ytp-promotooltip-details");this.acceptButton=this.ha("ytp-promotooltip-accept-button");this.dismissButton=this.ha("ytp-promotooltip-dismiss-button");this.I=this.C=this.l=this.B=!1;g.YK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.l=!!a)this.G.Jg(this.element,this,!0),this.G.Tl(this.element,a);this.N(c,"onShowControls",
this.kw);this.N(c,"onHideControls",this.nN);this.N(c,"resize",this.Ta);this.N(this.acceptButton,"click",this.vM);this.N(this.dismissButton,"click",this.sN);this.N(document,"click",this.pI)};
npa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
QO=function(a){g.YK(a,!1);a.l&&a.G.Qa(a.element,a.ab)};
RO=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=a.G.bk();(null===h||void 0===h?0:lna(h,f))&&iM(h,f,e)}}};
opa=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};
SO=function(a,b){g.X.call(this,{D:"button",ka:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.jL()]});this.G=a;this.N(a,"presentingplayerstatechange",this.i);this.ya("click",this.onClick,this);var c=a.Xa();g.YK(this,g.W(c,2));g.ZN(b.Ob(),this.element)};
g.TO=function(a,b,c,d){d=void 0===d?240:d;g.X.call(this,{D:"button",ka:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.PF(a.T()))},S:[{D:"div",K:"ytp-share-icon",ba:"{{icon}}"},{D:"div",K:"ytp-share-title",ba:"Share"}]});this.api=a;this.i=b;this.u=c;this.l=d;this.visible=!1;this.tooltip=this.i.Ob();b=a.T();a.Hb(this.element,this,28664);this.ya("click",this.onClick);this.N(a,"videodatachange",this.wa);this.N(a,"videoplayerreset",
this.wa);this.N(a,"appresize",this.wa);this.N(a,"presentingplayerstatechange",this.wa);this.wa();g.O(this.element,"ytp-show-share-title",g.PF(b)&&!g.ZF(b));g.Gi(this,g.ZN(this.tooltip,this.element))};
ppa=function(a){"InvalidStateError"!==a.name&&g.gt(a)};
g.UO=function(a,b){var c=UK(),d=a.T();c={D:"div",K:"ytp-share-panel",U:{id:UK(),role:"dialog","aria-labelledby":c},S:[{D:"div",K:"ytp-share-panel-inner-content",S:[{D:"div",K:"ytp-share-panel-title",U:{id:c},ba:"Share"},{D:"a",ka:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.C,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ba:"{{linkText}}"},{D:"label",K:"ytp-share-panel-include-playlist",S:[{D:"input",K:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{D:"div",K:"ytp-share-panel-loading-spinner",S:[zN()]},{D:"div",K:"ytp-share-panel-service-buttons",ba:"{{buttons}}"},{D:"div",K:"ytp-share-panel-error",ba:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",ka:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.eL()]}]};g.KN.call(this,a,c,250);this.api=a;this.tooltip=b.Ob();this.i=[];this.C=this.ha("ytp-share-panel-inner-content");this.closeButton=this.ha("ytp-share-panel-close");
this.N(this.closeButton,"click",this.kb);g.Gi(this,g.ZN(this.tooltip,this.closeButton));this.B=this.ha("ytp-share-panel-include-playlist-checkbox");this.N(this.B,"click",this.wa);this.u=this.ha("ytp-share-panel-link");g.Gi(this,g.ZN(this.tooltip,this.u));this.ya("click",this.qI);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Zf);this.N(a,"onLoopRangeChange",this.gM);this.hide()};
rpa=function(a,b){qpa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Gk:e.Gk},f++){e.Gk=c[f];a:switch(e.Gk.img||e.Gk.iconId){case "facebook":var h={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"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={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"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.X({D:"a",ka:["ytp-share-panel-service-button","ytp-button"],U:{href:e.Gk.url,target:"_blank",title:e.Gk.sname||e.Gk.serviceName},S:[h]}),h.ya("click",function(m){return function(n){if(g.FL(n)){var p=m.Gk.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.Gc?p:g.Lc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Wd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Ie("A"),g.md(y,w),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=od("",t,p,y),r=g.Hc(w),t&&(g.xG&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.kd(g.gc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.sd(r)+'">'),(w=t.document)&&w.write&&(w.write(g.gd(r)),w.close()))):(t=od(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.bp(n)}}}(e)),g.Gi(h,g.ZN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
c=new g.X({D:"a",ka:["ytp-share-panel-service-button","ytp-button"],S:[{D:"span",K:"ytp-share-panel-service-button-more",S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"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.ya("click",function(m){g.yN(l,a.api,m)&&a.api.xa("SHARE_CLICKED")});
g.Gi(c,g.ZN(a.tooltip,c.element));a.i.push(c);a.Ba("buttons",a.i)};
qpa=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ei(c);a.i=[]};
XO=function(a,b,c){c=void 0===c?!0:c;g.X.call(this,{D:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.La=b;this.ma=this.I=this.i=this.B=this.u=this.l=this.expanded=this.enabled=this.dismissed=!1;this.Ja=!0;this.ga=new g.M(function(){d.badge.element.style.width=""},200,this);
this.X=new g.M(function(){VO(d);WO(d)},200,this);
this.dismissButton=new g.X({D:"button",ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.I(this,this.dismissButton);this.C=new g.X({D:"div",K:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",K:"ytp-suggested-action-badge-title",ba:"{{badgeLabel}}"},this.dismissButton]});g.I(this,this.C);this.badge=new g.X({D:"button",ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.C]});g.I(this,this.badge);this.badge.fa(this.element);this.J=new g.LL(this.badge,250,!1,100);g.I(this,this.J);this.ca=new g.LL(this.C,250,!1,100);g.I(this,this.ca);this.la=new g.bn(this.uQ,null,this);g.I(this,this.la);this.Y=new g.bn(this.TK,null,this);g.I(this,this.Y);g.I(this,this.ga);g.I(this,this.X);this.G.Jg(this.badge.element,this.badge,!0);this.G.Jg(this.dismissButton.element,this.dismissButton,!0);this.N(this.G,"onHideControls",function(){d.i=!1;WO(d);VO(d);d.Xg()});
this.N(this.G,"onShowControls",function(){d.i=!0;WO(d);VO(d);d.Xg()});
this.N(this.badge.element,"click",this.kz);this.N(this.dismissButton.element,"click",this.lz);this.N(this.G,"pageTransition",this.rI);this.N(this.G,"appresize",this.Xg);this.N(this.G,"fullscreentoggled",this.AN);this.N(this.G,"cardstatechange",this.bN);this.N(this.G,"annotationvisibility",this.WQ,this)};
VO=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)};
WO=function(a,b){var c=a.I||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.la.stop(),a.Y.stop(),a.ga.stop(),a.la.start()):(g.YK(a.C,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),spa(a))};
spa=function(a){a.u&&a.G.Qa(a.badge.element,a.Xr());a.B&&a.G.Qa(a.dismissButton.element,a.Xr()&&(a.I||a.i||!a.l))};
tpa=function(a){var b=a.text||"";g.Qe(g.we("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.za?a.za:"")};
upa=function(a,b){b?a.B&&a.G.ub(a.dismissButton.element):a.u&&a.G.ub(a.badge.element)};
YO=function(a,b){XO.call(this,a,b);var c=this;this.L=this.ea=this.ia=!1;this.N(this.G,g.AD("shopping_overlay_visible"),function(){c.pe(!0)});
this.N(this.G,g.BD("shopping_overlay_visible"),function(){c.pe(!1)});
this.N(this.G,g.AD("shopping_overlay_expanded"),function(){c.I=!0;WO(c)});
this.N(this.G,g.BD("shopping_overlay_expanded"),function(){c.I=!1;WO(c)});
this.N(this.G,"changeProductsInVideoVisibility",this.qO);this.N(this.G,"videodatachange",this.Oa);this.N(this.G,"paidcontentoverlayvisibilitychange",this.hO)};
ZO=function(a){a.G.Oe("shopping_overlay_visible");a.G.Oe("shopping_overlay_expanded")};
$O=function(a){g.KN.call(this,a,{D:"button",ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",K:"ytp-skip-intro-button-text",ba:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.M(function(){b.hide()},5E3);
this.i=this.u=NaN;g.I(this,this.B);this.ca=function(){b.show()};
this.Y=function(){b.hide()};
this.I=function(){var c=b.G.getCurrentTime();c>b.u/1E3&&c<b.i/1E3&&b.show()};
this.N(this.G,"videodatachange",function(c,d){b.Go(c,d)});
this.N(this.element,"click",function(){b.G.seekTo(b.i/1E3)});
this.hide()};
aP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},ba:"{{icon}}"});this.G=a;this.ya("click",this.onClick);this.N(a,"airplayactivechange",this.wa);this.N(a,"airplayavailabilitychange",this.wa);this.wa();g.Gi(this,g.ZN(b.Ob(),this.element))};
bP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{D:"div",K:"ytp-autonav-toggle-button-container",S:[{D:"div",K:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.G=a;this.l=[];this.i=!1;this.isChecked=!0;a.Hb(this.element,this,113681);this.N(a,"presentingplayerstatechange",this.Vp);this.ya("click",this.onClick);this.tooltip=b.Ob();g.Gi(this,g.ZN(b.Ob(),this.element));this.Vp()};
vpa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ba("title",b);a.Ba("label",b);AO(a.tooltip)};
g.dP=function(a){g.X.call(this,{D:"div",K:"ytp-gradient-bottom"});this.l=g.Ie("CANVAS");this.i=this.l.getContext("2d");this.B=NaN;this.l.width=1;this.u=g.ZF(a.T());g.cP(this,a.Ka().getPlayerSize().height)};
g.cP=function(a,b){if(a.i){var c=Math.floor(b*(a.u?1:.4));c=Math.max(c,47);var d=c+2;if(a.B!==d){a.B=d;a.l.height=d;a.i.clearRect(0,0,1,d);var e=a.i.createLinearGradient(0,2,0,2+c);if(a.u)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.i.fillStyle=e;a.i.fillRect(0,2,1,c);a.element.style.height=
d+"px";try{a.element.style.backgroundImage="url("+a.l.toDataURL()+")"}catch(h){}}}};
eP=function(a,b){g.X.call(this,{D:"div",K:"ytp-chapter-container",S:[{D:"button",ka:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{D:"span",U:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",ba:"\u2022"},{D:"div",K:"ytp-chapter-title-content",ba:"{{title}}"},{D:"div",K:"ytp-chapter-title-chevron",S:[{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"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.G=a;this.I=b;this.B="";this.currentIndex=0;this.u=void 0;this.i=!0;this.C=this.ha("ytp-chapter-container");this.l=this.ha("ytp-chapter-title");this.updateVideoData("newdata",this.G.getVideoData());this.N(a,"videodatachange",this.updateVideoData);this.N(this.C,"click",this.onClick);this.N(a,"onVideoProgress",this.Ab);this.N(a,"SEEK_TO",this.Ab);this.N(a,"innertubeCommand",this.onClickCommand)};
wpa=function(a,b,c,d,e){var f=b.zu/b.rows,h=Math.min(c/(b.Au/b.columns),d/f),l=b.Au*h,m=b.zu*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.fP=function(a){g.X.call(this,{D:"div",K:"ytp-storyboard-framepreview",S:[{D:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.ha("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.XM(this);this.i=new g.LL(this,100);g.I(this,this.events);g.I(this,this.i);this.N(this.api,"presentingplayerstatechange",this.Wb)};
gP=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){gP(a,a.api.Lg())}),a.events.N(a.api,"progresssync",a.oe),a.events.N(a.api,"appresize",a.C)),a.u=NaN,hP(a),a.i.show(200)):(c&&g.Pt(a.events),a.i.hide(),a.i.stop())};
hP=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.Ka().getPlayerSize(),e=iH(b,d.width);c=qH(b,e,c);c!==a.u&&(a.u=c,mH(b,c,d.width),b=kH(b,c,d.width),wpa(a.B,b,d.width,d.height))};
iP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",ka:["ytp-fullerscreen-edu-text"],ba:"Scroll for details"},{D:"div",ka:["ytp-fullerscreen-edu-chevron"],S:[{D:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.i=a;this.B=b;this.l=new g.LL(this,250,void 0,100);this.C=this.u=!1;a.Hb(this.element,this,61214);this.B=b;g.I(this,this.l);this.N(a,
"fullscreentoggled",this.wa);this.N(a,"presentingplayerstatechange",this.wa);this.ya("click",this.onClick);this.wa()};
g.jP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},ba:"{{icon}}"});this.G=a;this.l=b;this.message=null;this.i=g.ZN(this.l.Ob(),this.element);this.u=new g.M(this.BK,2E3,this);g.I(this,this.u);this.N(a,"fullscreentoggled",this.zh);this.N(a,"presentingplayerstatechange",this.wa);this.ya("click",this.onClick);if(Jt()){var c=this.G.Ka();this.N(c,kfa(),this.rz);this.N(c,Mt(document),this.qk)}a.T().za||a.T().Z("embeds_enable_mobile_custom_controls")||
this.disable();this.wa();this.zh(a.isFullscreen())};
kP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[Dma()]});this.G=a;this.visible=!1;this.ya("click",this.onClick);this.N(a,"fullscreentoggled",this.wa);this.Ba("title",g.BN(a,"Miniplayer","i"));g.Gi(this,g.ZN(b.Ob(),this.element));a.Hb(this.element,this,62946);this.wa()};
lP=function(a,b,c){g.X.call(this,{D:"button",ka:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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.G=a;this.i=!1;this.l=new g.M(this.u,400,this);this.tooltip=b.Ob();eO(this.tooltip);g.I(this,this.l);this.ya("click",function(){LN(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.wa(!1)});
this.N(a,"videodatachange",this.Oa);this.wa(!0);g.Gi(this,g.ZN(this.tooltip,this.element))};
mP=function(a){g.KN.call(this,a,{D:"div",K:"ytp-multicam-menu",U:{role:"dialog"},S:[{D:"div",K:"ytp-multicam-menu-header",S:[{D:"div",K:"ytp-multicam-menu-title",S:["Switch camera",{D:"button",ka:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.eL()]}]}]},{D:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.XM(this);this.items=this.ha("ytp-multicam-menu-items");this.i=[];g.I(this,this.u);a=this.ha("ytp-multicam-menu-close");this.N(a,"click",this.kb);this.hide()};
nP=function(){g.E.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.bn(this.i,null,this);g.I(this,this.delay)};
xpa=function(a,b){if("path"===b.D)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=xpa(a,d)))return d}};
Apa=function(a,b,c){c=xpa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=UK();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=ypa(e),m=ypa(c);oP(a,function(n){d.setAttribute("d",zpa(l,m,n))},200)};
oP=function(a,b,c){a.l=b;a.startTime=(0,g.Q)();a.duration=c;a.i()};
ypa=function(a){var b=[];a=a.match(Bpa);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};
zpa=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};
g.pP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-mute-button","ytp-button"],U:a.T().X?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ba:"{{icon}}"});this.G=a;this.i=null;this.B=this.L=this.C=this.Y=NaN;this.ca=this.I=null;this.u=[];this.l=[];this.visible=!1;this.J=null;var c=this.G.T();this.Ba("icon",lL());this.tooltip=b.Ob();this.i=new g.VK({D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{D:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",K:"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"}}]},{D:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{D:"path",K:"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"}}]}]},{D:"path",vb:!0,ka:["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"}},{D:"path",vb:!0,ka:["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.I(this,this.i);this.I=this.i.ha("ytp-svg-volume-animation-speaker");this.ca=this.I.getAttribute("d");this.u=g.ve("ytp-svg-volume-animation-mover",this.i.element);
this.l=g.ve("ytp-svg-volume-animation-hider",this.i.element);this.ea=new nP;g.I(this,this.ea);this.X=new nP;g.I(this,this.X);this.ya("click",this.YN);this.N(a,"appresize",this.uB);this.N(a,"onVolumeChange",this.Tg);var d=null;if(c.X)g.Gi(this,g.ZN(b.Ob(),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.KN(a,{D:"span",ka:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{D:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.C},ba:e[2]},e[4]]},100,!0);g.I(this,d);d.hide();d.subscribe("show",function(f){b.Cq(d,f)});
g.VM(a,d.element,4)}this.message=d;a.Hb(this.element,this,28662);this.uB(a.Ka().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Epa=function(a,b){a.Y=b;var c=a.ca;b&&(c+=zpa(Cpa,Dpa,b));a.I.setAttribute("d",c)};
Fpa=function(a,b){a.L=b;for(var c=20*b,d=0;d<a.u.length;d++)a.u[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=lL():e=a.i;for(c=0;c<a.l.length;c++)a.l[c].style.display=0===b?"none":"";e!==a.J&&(a.Ba("icon",e),a.J=e)};
qP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[Dma()]});this.G=a;this.Ba("title","Picture in Picture");this.ya("click",this.onClick);g.Gi(this,g.ZN(b.Ob(),this.element))};
g.rP=function(a,b){g.X.call(this,{D:"button",ka:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},ba:"{{icon}}"});this.G=a;this.i=null;this.transition=new nP;this.tooltip=b.Ob();g.I(this,this.transition);this.N(a,"fullscreentoggled",this.Oa);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"videodatachange",this.Oa);Gpa(this,a.Xa());this.ya("click",this.Bp,this);g.Gi(this,g.ZN(b.Ob(),this.element))};
Hpa=function(a){switch(a){case 1:return Ema();case 2:return Cma();case 3:return g.jL();case 4:return Gma();default:return null}};
Gpa=function(a,b){var c=g.bI(a.G.getVideoData()),d=!1;if(g.hK(b))var e=c?4:2;else g.W(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.i!==e){c=null;switch(e){case 2:c=g.BN(a.G,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.BN(a.G,"Play","k");break;case 4:c="Stop live playback"}3===e?a.update({title:c,label:null,icon:Hpa(e)}):(a.update({title:c,label:c}),(c=Hpa(e))&&a.i&&3!==a.i?Apa(a.transition,a.element,c):a.Ba("icon",c));AO(a.tooltip);a.i=e}};
g.sP=function(a,b){return aN(b)?(b.fetch=0,new g.$M(a,b)):new g.wH(a,b)};
g.uP=function(a,b,c){g.X.call(this,{D:"a",ka:[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?hL():Fma()]});var d=this;this.G=a;this.i=c;this.playlist=this.videoData=null;this.I=!1;this.B=this.C=this.l=null;this.u=!1;this.tooltip=b.Ob();this.N(a,"fullscreentoggled",this.Oa);
this.N(a,"videodatachange",this.Oa);this.N(a,"onPlaylistUpdate",this.Oa);this.i||this.N(a,"appresize",this.lw);this.N(a,"mdxpreviousnextchange",function(){tP(d);d.lw()});
this.Oa()};
Ipa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Oa,a)};
Jpa=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
Kpa=function(a){var b=g.RM(a.G.Ua());return b?a.i?b.hasNext():b.Wi():!1};
tP=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.SM(a.G)&&(!a.i||c);var d=a.i&&g.WM(a.G),e=Kpa(a),f=a.i&&5===a.G.getPresentingPlayerType(),h=g.BN(a.G,"Next","SHIFT+n"),l=g.BN(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.u)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.Na(a.i?moa(a.playlist):noa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.G.T().getVideoUrl(m.videoId,
n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.EL(m.lengthSeconds):null;b.preview=m.te("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.sP(a.G.T(),a.videoData.suggestions[0]),b.url=l.rl(),b.text=l.title,b.duration=l instanceof g.wH?g.EL(l.lengthSeconds):null,b.preview=l.te("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.u||e||f?a.l||(a.l=g.ZN(a.tooltip,a.element),a.C=a.ya("click",
a.onClick,a)):a.l&&(a.l(),a.l=null,a.Gb(a.C),a.C=null);AO(a.tooltip)};
Lpa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
vP=function(){g.X.call(this,{D:"div",K:"ytp-chapter-hover-container",S:[{D:"div",K:"ytp-progress-bar-padding"},{D:"div",K:"ytp-progress-list",S:[{D:"div",ka:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",K:"ytp-load-progress"},{D:"div",K:"ytp-hover-progress"},{D:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.u=this.ha("ytp-ad-progress-list");this.B=this.ha("ytp-load-progress");this.C=this.ha("ytp-play-progress");this.l=this.ha("ytp-hover-progress");
this.i=this.ha("ytp-chapter-hover-container")};
wP=function(a,b){g.mg(a.i,"width",b)};
xP=function(a,b){g.mg(a.i,"margin-right",b+"px")};
yP=function(a,b){return"PLAY_PROGRESS"===b?a.C:"LOAD_PROGRESS"===b?a.B:a.l};
Mpa=function(){this.u=this.position=this.B=this.i=this.C=this.l=this.width=NaN};
Npa=function(){g.X.call(this,{D:"div",K:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.zP=function(a,b){g.ZK.call(this,{D:"div",K:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{D:"div",ka:["ytp-progress-bar"],U:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{D:"div",K:"ytp-chapters-container"},{D:"div",K:"ytp-marker-crenellation-list"},{D:"div",K:"ytp-timed-markers-container"},{D:"div",K:"ytp-clip-start-exclude"},{D:"div",K:"ytp-clip-end-exclude"},
{D:"div",K:"ytp-scrubber-container",S:[{D:"div",ka:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{D:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",K:"ytp-bound-time-left",ba:"{{boundTimeLeft}}"},{D:"div",K:"ytp-bound-time-right",ba:"{{boundTimeRight}}"},{D:"div",K:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},ba:"{{clipstarticon}}"},{D:"div",K:"ytp-clip-end",U:{title:"{{clipendtitle}}"},ba:"{{clipendicon}}"}]});this.api=a;this.oc=!1;this.B=this.Kc=0;this.ga=1;this.Sc=this.X=0;
this.C=null;this.Y=this.Za=0;this.wc=this.ha("ytp-marker-crenellation-list");this.ea={};this.Wa={};this.clipEnd=Infinity;this.Ja=this.ha("ytp-clip-end");this.Db=new g.Tt(this.Ja,!0);this.tc=this.ha("ytp-clip-end-exclude");this.Zc=this.ha("ytp-clip-start-exclude");this.clipStart=0;this.La=this.ha("ytp-clip-start");this.Sb=new g.Tt(this.La,!0);this.L=this.ma=0;this.Yc=this.ha("ytp-progress-bar");this.jc={};this.ib=this.ha("ytp-chapters-container");this.Tc=this.ha("ytp-timed-markers-container");this.i=
[];this.Ca=[];this.la=-1;this.za=this.ca=0;this.J=null;this.qd=this.ha("ytp-scrubber-button");this.ld=this.ha("ytp-scrubber-container");this.Pa=new g.ie;this.Ac=new Mpa;this.l=new $L(0,0);this.I=null;this.u=this.lc=!1;this.Fc=null;this.tooltip=b.Ob();g.Gi(this,g.ZN(this.tooltip,this.Ja));g.I(this,this.Db);this.Db.subscribe("hoverstart",this.iF,this);this.Db.subscribe("hoverend",this.hF,this);this.N(this.Ja,"click",this.Su);g.Gi(this,g.ZN(this.tooltip,this.La));g.I(this,this.Sb);this.Sb.subscribe("hoverstart",
this.iF,this);this.Sb.subscribe("hoverend",this.hF,this);this.N(this.La,"click",this.Su);Opa(this);this.N(a,"resize",this.Ta);this.N(a,"presentingplayerstatechange",this.tI);this.N(a,"videodatachange",this.Go);this.N(a,"videoplayerreset",this.yL);this.N(a,"cuerangesadded",this.tH);this.N(a,"cuerangesremoved",this.bQ);this.N(a,"cuerangemarkersupdated",this.tH);this.N(a,"onLoopRangeChange",this.sH);this.N(a,"innertubeCommand",this.onClickCommand);this.updateVideoData(a.getVideoData(),!0);this.sH(a.getLoopRange())};
Opa=function(a){if(0===a.i.length){var b=new vP;a.i.push(b);g.I(a,b);b.fa(a.ib,0)}for(;1<a.i.length;)a.i.pop().dispose();wP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
Ppa=function(a){for(;a.Ca.length;)a.Ca.pop().dispose()};
Spa=function(a,b){var c,d,e=null===(c=a.jc[b])||void 0===c?void 0:c.chapters;e&&(Qpa(a,e),a.api.getVideoData().Ck=a.i);if(e=null===(d=a.jc[b])||void 0===d?void 0:d.markers){var f;Ppa(a);e=g.q(e);for(var h=e.next();!h.done;h=e.next()){var l=h.value;h=new Npa;if(l=l.markerRenderer)h.title=(null===(f=l.title)||void 0===f?void 0:f.simpleText)||"",h.timeRangeStartMillis=l.timeRangeStartMillis||NaN,h.thumbnailUrl=l.thumbnailUrl||"",h.onActiveCommand=(null===l||void 0===l?void 0:l.onActiveCommand)||void 0,
a.Ca.push(h),g.I(a,h),h.fa(a.Tc,a.Tc.children.length)}Rpa(a,a.Ca)}};
Rpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=Tpa(a,d.timeRangeStartMillis/(1E3*a.l.i),AP(a));g.mg(d.element,"transform","translateX("+e+"px)")}};
Qpa=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};f.title=Lpa(e.title);var h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=e.onActiveCommand,c++);a.i.length<=c&&(f=new vP,a.i.push(f),g.I(a,f),f.fa(a.ib,a.ib.children.length));a.i[c].startTime=e.startTime;
a.i[c].title=e.title?e.title:"";a.i[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.i.length;)a.i.pop().dispose();g.BP(a);CP(a)};
g.BP=function(a){a.ca=a.i.length-1;a.za=0;Upa(a,!0)&&Upa(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){xP(a.i[d],0);wP(a.i[d],Math.floor(a.i[d].width)+"px");break}wP(a.i[c],"0")}else c===a.i.length-1?wP(a.i[c],Math.floor(a.i[c].width+b)+"px"):(b=a.i[c].width+b,d=Math.round(b),b-=d,wP(a.i[c],d+"px"))};
Upa=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.l.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.B){for(var h=a.B-(a.u?3:2)*a.ca,l=0===a.za?3:h*a.za,m=g.q(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,xP(a.i[c],a.u?3:2));g.O(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0<t.width?
t.width+=n:r<p.i.length-1&&(p.i[r+1].width+=n);xP(p.i[r],0);b&&(a.ca--,m/f>a.za&&(a.za=m/f),d=!0)}c++}}return d};
CP=function(a){if(a.B){var b=a.api.getProgressState(),c=new $L(b.seekableStart,b.seekableEnd),d=cM(c,b.loaded,0);b=cM(c,b.current,0);var e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;DP(a,b,d);e&&EP(a);Vpa(a)}};
GP=function(a,b){var c=bM(a.l,b.u);if(1<a.i.length){c=FP(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.u?3:2);c=(a.i[c].startTime+(b.B-d)/a.i[c].width*((c===a.i.length-1?1E3*a.l.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
Wpa=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.B-(a.u?3:2)*a.ca)};
Xpa=function(a,b,c,d){b=g.ee(b,0,a.u?60:40);a.X=b;var e=a.ga;a.ga=b/(a.u?60:40)*(Math.max(aM(a.l)/a.B,1)-1)+1;b=a.B*a.ga;a.Y=g.ee(d*b-c,0,b-a.B);e!==a.ga&&EP(a)};
EP=function(a){var b=AP(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=Waa(a.wc),f=0;if(a.X>.2*(a.u?60:40)&&1===a.i.length)for(var h=aM(a.l)/60*d,l=Math.ceil(aM(a.l)/60*c);l<h;l++){var m=e[f];m||(m=g.Ie("DIV"),a.wc.appendChild(m));f++;0===l%60?g.jn(m,"ytp-60m-progress"):0===l%30?g.jn(m,"ytp-30m-progress"):0===l%15?g.jn(m,"ytp-15m-progress"):g.jn(m,"ytp-1m-progress");m.style.left=(60*l/aM(a.l)-c)*b.i+"px"}b=a.lc?a.l.i:0;a.update({boundTimeLeft:g.EL(bM(a.l,c)-b),boundTimeRight:g.EL(bM(a.l,d)-b)});for(c=e.length-
1;c>=f;c--)g.Me(e[c]);a.element.style.height=a.X+(a.u?8:5)+"px";a.V("height-change",a.X);a.qd.style.height=a.X+(a.u?20:13)+"px";e=g.q(Object.keys(a.ea));for(f=e.next();!f.done;f=e.next())Ypa(a,f.value);HP(a);DP(a,a.L,a.ma)};
AP=function(a){var b=a.Pa.x,c=a.B*a.ga;b=g.ee(b,0,a.B);a.Ac.update(b,a.B,-a.Y,-(c-a.Y-a.B));return a.Ac};
DP=function(a,b,c){a.L=b;a.ma=c;var d=AP(a),e=a.l.i,f=bM(a.l,a.L),h=g.AJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.EL(f,!0),DURATION:g.EL(e,!0)}),l=FO(a.i,1E3*f);l=a.i[l].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.I&&2!==a.api.getPresentingPlayerType()&&(e=a.I.startTimeMs/1E3,f=a.I.endTimeMs/1E3);e=cM(a.l,e,0);h=cM(a.l,f,1);f=g.ee(b,e,h);c=g.ee(c,e,h);b=Tpa(a,b,d);g.mg(a.ld,"transform","translateX("+
b+"px)");IP(a,d,e,f,"PLAY_PROGRESS");IP(a,d,e,c,"LOAD_PROGRESS")};
IP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.ca*(a.u?3:2),l=c*h;c=FP(a,l);var m=d*h;h=FP(a,m);"HOVER_PROGRESS"===e&&(h=FP(a,b.i*d,!0),m=b.i*d-Zpa(a,b.i*d)*(a.u?3:2));b=Math.max(l-$pa(a,c),0);for(d=c;d<f;d++)yP(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,JP(a,yP(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.ee(m-$pa(a,h),0,f);c===h&&(m-=b);JP(a,yP(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)JP(a,yP(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)JP(a,yP(a.i[h],e),0,a.i[h].width)};
$pa=function(a,b){if(b>=a.i.length)return a.B;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
JP=function(a,b,c,d,e){e||a.api.T().i?b.style.width=c+"px":g.mg(b,"transform","scalex("+(d?c/d:0)+")")};
FP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=Zpa(a,b)*(a.u?3:2));c=g.q(a.i);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.i.length?d-1:d};
Tpa=function(a,b,c){for(var d=b*a.l.i*1E3,e=-1,f=g.q(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.u?3:2)*a.ca)+(a.u?3:2)*(0>e?0:e)+c.l};
Zpa=function(a,b){for(var c=a.i.length,d=0,e=g.q(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.u?3:2,d++;else break;return d===c?c-1:d};
g.KP=function(a,b,c,d){var e=a.B!==c;a.Kc=b;a.B=c;a.u=d;EP(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.BP(a)};
HP=function(a){var b=!!a.I&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.I?(c=a.I.startTimeMs/1E3,d=a.I.endTimeMs/1E3):(e=c>a.l.l,f=0<a.l.i&&d<a.l.i);g.O(a.element,"ytp-loop-range-enabled",b);g.O(a.element,"ytp-clip-start-enabled",e);g.O(a.element,"ytp-clip-end-enabled",f);b=e?cM(a.l,c,0):0;d=f?cM(a.l,d,1):1;a.La.style.left=Math.round(1E3*b)/10+"%";a.Ja.style.left=Math.round(1E3*d)/10+"%";a.Zc.style.width=Math.round(1E3*b)/10+"%";a.tc.style.left=Math.round(1E3*d)/10+
"%";a.tc.style.width=Math.round(1E3*(1-d))/10+"%"};
Vpa=function(a){var b=AP(a);IP(a,b,a.L,Math.max(b.u,a.L),"HOVER_PROGRESS");for(var c=FP(a,b.i*a.L,!0),d=FP(a,b.B,!0),e=c;e<=d;e++)g.O(a.i[e].l,"ytp-hover-progress-light",b.u>a.L);g.O(a.qd,"ytp-scrubber-button-hover",c===d&&1<a.i.length)};
Ypa=function(a,b){var c=a.ea[b],d=a.Wa[b],e=AP(a),f=cM(a.l,c.start/1E3,0),h=hha(c,a.u)/e.width;var l=cM(a.l,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.ee(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.i+e.l,0)+"px";JP(a,d,g.ee((l-c)*e.i+e.l,0,e.width),e.width,void 0===f?!1:f)};
aqa=function(a,b){var c=b.getId();a.ea[c]===b&&(g.Me(a.Wa[c]),delete a.ea[c],delete a.Wa[c])};
bqa=function(a,b){b?a.J||(a.element.removeAttribute("aria-disabled"),a.J=new g.Tt(a.Yc,!0),a.J.subscribe("hovermove",a.tO,a),a.J.subscribe("hoverend",a.sO,a),a.J.subscribe("dragstart",a.rO,a),a.J.subscribe("dragmove",a.vO,a),a.J.subscribe("dragend",a.uO,a),a.Fc=a.ya("keydown",a.uI)):a.J&&(a.element.setAttribute("aria-disabled","true"),a.Gb(a.Fc),a.J.cancel(),a.J.dispose(),a.J=null)};
g.cqa=function(a){var b=2*a.B*g.pG();return 1E3*aM(a.l)/a.api.getPlaybackRate()/b};
LP=function(a,b,c){g.X.call(this,{D:"button",K:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},ba:"{{icon}}"});this.G=a;this.bb=c;this.i=null;this.N(a,"onMdxReceiversChange",this.wa);this.N(a,"presentingplayerstatechange",this.wa);this.N(a,"appresize",this.wa);this.wa();this.ya("click",this.l,this);g.Gi(this,g.ZN(b.Ob(),this.element))};
MP=function(a,b,c){g.X.call(this,{D:"button",ka:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":UK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.kL()]});this.G=a;this.bb=c;this.l=!0;this.ya("click",this.u);this.N(a,"onPlaybackQualityChange",this.updateBadge);this.N(a,"videodatachange",this.updateBadge);this.N(a,"webglsettingschanged",this.updateBadge);this.N(a,"appresize",this.i);g.Gi(this,g.ZN(b.Ob(),this.element));this.G.Hb(this.element,this,
28663);this.updateBadge();this.i(a.Ka().getPlayerSize())};
NP=function(a,b){a.l=!!b;a.i(a.G.Ka().getPlayerSize())};
OP=function(a,b){qO.call(this,"Annotations",6);this.G=a;this.bb=b;this.i=!1;this.N(a,"videodatachange",this.wa);this.N(a,"onApiChange",this.wa);this.subscribe("select",this.l,this);this.wa()};
g.PP=function(a,b,c,d,e,f,h){g.iO.call(this,g.jO({"aria-haspopup":"true"}),b,a);this.bb=d;this.B=!1;this.l=null;this.options={};this.u=new g.mO(c,void 0,a,e,f,h);g.I(this,this.u);this.ya("keydown",this.vI);this.ya("click",this.open)};
dqa=function(a){if(a.l){var b=a.options[a.l];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.l=null}};
g.QP=function(a,b){g.nO(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.l;l&&(d=!0);h&&h.priority===-e?(l=a,g.hO(l.options[f],l.Ih(f,!0)),delete a.options[f]):h=a.ax(f,-e,l);c[f]=h;a.u.Ub(h,!0)}d||(a.l=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};
RP=function(a,b){g.PP.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.i=new g.X({D:"div",S:[{D:"span",ba:"Audio track"},{D:"span",K:"ytp-menuitem-label-count",ba:"{{content}}"}]});g.I(this,this.i);g.hO(this,this.i);this.N(a,"videodatachange",this.wa);this.N(a,"onPlaybackAudioChange",this.wa);this.wa()};
SP=function(a,b){qO.call(this,"Autoplay",7);this.G=a;this.bb=b;this.i=!1;this.u=[];this.N(a,"presentingplayerstatechange",this.l);this.subscribe("select",this.C,this);a.Hb(this.element,this,113682);this.l()};
TP=function(a,b,c,d){d=new g.X({D:"div",ka:["ytp-linked-account-popup-button"],ba:d,U:{role:"button",tabindex:"0"}});b=new g.X({D:"div",K:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{D:"div",K:"ytp-linked-account-popup-title",ba:b},{D:"div",K:"ytp-linked-account-popup-description",ba:c},{D:"div",K:"ytp-linked-account-popup-buttons",S:[d]}]});g.KN.call(this,a,{D:"div",K:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.I(this,this.dialog);
d.ya("click",function(){e.kb()});
g.I(this,d);g.VM(this.G,this.element,4);this.hide()};
UP=function(a,b){g.iO.call(this,g.jO({"aria-haspopup":"true"}),1);this.G=a;this.bb=b;this.l=this.i=!1;this.N(this.G,"videodatachange",this.B);this.ya("click",this.onClick);this.B()};
VP=function(a){return a?g.HD(a):""};
WP=function(a,b){g.PP.call(this,"Quality",2,a,b);this.G=a;this.C={};this.i="unknown";g.N(this.u.element,"ytp-quality-menu");this.N(a,"videodatachange",this.Wp);this.N(a,"videoplayerreset",this.Wp);this.N(a,"onPlaybackQualityChange",this.vB);this.Wp()};
eqa=function(a,b,c){a=a.C[b];var d=g.pA[b];c={D:"span",ka: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({D:"sup",K:"ytp-swatch-color",ba:e}));return c};
XP=function(a,b,c,d,e,f,h){g.X.call(this,{D:"div",K:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",K:"ytp-slider",S:[{D:"div",K:"ytp-slider-handle"}]}]});this.I=a;this.C=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.Y=f;this.range=this.maximumValue-this.minimumValue;this.ca=this.ha("ytp-slider-section");this.l=this.ha("ytp-slider");this.L=this.ha("ytp-slider-handle");
this.B=new g.Tt(this.l,!0);this.i=h?h:c;g.I(this,this.B);this.B.subscribe("dragmove",this.xI,this);this.N(this.element,"keydown",this.yI);this.N(this.element,"wheel",this.wI);this.init()};
ZP=function(a){XP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.u=g.Ie("P");this.ea=raa(this.X,this);g.N(this.l,"ytp-speedslider");g.N(this.u,"ytp-speedslider-text");a=this.u;var b=this.l;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);YP(this);this.N(this.G,"onPlaybackRateChange",this.ia)};
YP=function(a){a.u.textContent=$P(a,a.i)+"x"};
$P=function(a,b){var c=Number(g.ee(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))};
aQ=function(a){g.ZK.call(this,{D:"div",K:"ytp-speedslider-component"});this.i=new ZP(a);g.I(this,this.i);this.element.appendChild(this.i.element)};
fqa=function(a){var b=new aQ(a);lO.call(this,a,b,"Custom");g.I(this,b)};
bQ=function(a,b){var c=new fqa(a);g.PP.call(this,"Playback speed",5,a,b,"Custom",function(){g.sO(b,c)});
g.I(this,c);this.G=a;this.C=this.i=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.wa);this.wa()};
gqa=function(a,b){var c=cQ(b);a.options[c]?a.bh(c):b===a.C&&a.i&&(a.bh(a.i),a.Ec(b.toString()))};
iqa=function(a){g.QP(a,a.I.map(cQ));a.i=null;a.C=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(hqa(a,b),g.PP.prototype.Ue.call(a,a.i))};
hqa=function(a,b){a.C=b;a.i=g.AJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(cQ);c.unshift(a.i);g.QP(a,c)};
cQ=function(a){return a.toString()};
dQ=function(a,b,c,d){var e=new g.mO(b,void 0,"Video Override");g.PP.call(this,d.text||"",a,b,c,"Video Override",function(){g.sO(c,e)});
var f=this;g.N(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Bb(a,this.getKey,this);this.I=e;g.I(this,this.I);d=new g.iO({D:"div",K:"ytp-menuitemtitle",ba:"Allow for a different caption style if specified by the video."},0);g.I(this,d);this.I.Ub(d,!0);this.C=new g.iO({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ba:"On"}]},-1);g.I(this,this.C);this.I.Ub(this.C,!0);this.N(this.C.element,
"click",function(){jqa(f,!0)});
this.i=new g.iO({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ba:"Off"}]},-2);g.I(this,this.i);this.I.Ub(this.i,!0);this.N(this.i.element,"click",function(){b.ub(f.i.element);jqa(f,!1)});
g.QP(this,g.Qc(a,this.getKey))};
jqa=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.bb.xg()};
eQ=function(a,b){g.mO.call(this,a,void 0,"Options");var c=this;this.Cl={};for(var d=0;d<g.HO.length;d++){var e=g.HO[d],f=new dQ(-d,a,b,e);g.I(this,f);f.subscribe("settingChange",this.vg,this);this.Cl[e.option.toString()]=f;this.Ub(f,!0)}d=new g.iO(g.jO(),-g.HO.length,"Reset");g.I(this,d);d.ya("click",function(){c.vg("reset",!0)});
this.Ub(d,!0)};
fQ=function(a,b){g.PP.call(this,"Auto-translate",0,a,b);this.languages={}};
kqa=function(a,b){a.languages=g.Bb(b,a.getKey,a);g.QP(a,g.Qc(b,a.getKey))};
gQ=function(a,b){var c=new eQ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.wG(a.T())&&(e={D:"div",K:"ytp-panel-footer-content",S:[{D:"span",ba:d[0]},{D:"a",K:"ytp-panel-footer-content-link",ba:"Settings",U:{href:"/account_playback"}},{D:"span",ba:d[1]}]});g.PP.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.sO(b,c)},e);
var f=this;this.G=a;this.bb=b;this.tracks={};this.I=new g.M(function(){lqa(f,!1)},3E3);
g.I(this,this.I);this.J=new g.X({D:"div",S:[{D:"span",ba:"Subtitles/CC"},{D:"span",K:"ytp-menuitem-label-count",ba:"{{content}}"}]});g.I(this,this.J);g.hO(this,this.J);this.i=new fQ(a,b);g.I(this,this.i);this.i.subscribe("select",this.AI,this);this.C=c;g.I(this,this.C);this.C.subscribe("settingChange",this.vg,this);b.subscribe("show",this.YO,this);this.N(a,"videodatachange",this.wa);this.N(a,"onApiChange",this.wa);this.N(a,"onCaptionsTrackListChanged",this.wa);this.N(a,"captionschanged",this.wa);
this.wa()};
lqa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
hQ=function(a){g.uO.call(this,a,"ytp-settings-menu");var b=this;this.ud=new g.mO(this.G);this.Ty=this.settingsButton=null;this.be=!1;g.I(this,this.ud);this.hide();g.sO(this,this.ud);a.Hb(this.element,this,108341,!0);this.subscribe("show",function(c){b.pe(c)})};
mqa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
iQ=function(a,b){g.X.call(this,{D:"button",ka:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},ba:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new nP;this.tooltip=b.Ob();g.I(this,this.transition);this.N(a,"sizestylechange",this.wa);this.N(a,"fullscreentoggled",this.wa);this.N(a,"presentingplayerstatechange",this.wa);this.wa();this.ya("click",this.onClick);g.Gi(this,g.ZN(this.tooltip,this.element))};
g.jQ=function(a,b){g.X.call(this,{D:"button",ka:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.BN(a,"Subtitles/closed captions","c")},S:[xma()]});this.G=a;this.N(a,"videodatachange",this.wa);this.N(a,"appresize",this.wa);this.N(a,"promotooltipacceptbuttonclicked",this.i);this.N(a,"onApiChange",this.wa);this.N(a,"onCaptionsTrackListChanged",this.wa);this.N(a,"captionschanged",this.wa);this.wa();this.ya("click",this.onClick);g.Gi(this,g.ZN(b.Ob(),this.element))};
g.kQ=function(a,b,c){c=void 0===c?350:c;g.X.call(this,{D:"div",ka:["ytp-time-display","notranslate"],S:[{D:"span",K:"ytp-time-current",ba:"{{currenttime}}"},{D:"span",K:"ytp-time-separator",ba:" / "},{D:"span",K:"ytp-time-duration",ba:"{{duration}}"}]});this.api=a;this.J=c;this.liveBadge=new g.X({D:"button",ka:["ytp-live-badge","ytp-button"],U:{disabled:"true"},ba:"{{content}}"});this.i=null;this.l=!1;this.I=this.C=null;this.isPremiere=!1;this.B=this.u=null;this.liveBadge.Ec("Live");g.I(this,this.liveBadge);
this.liveBadge.fa(this.element);this.tooltip=b.Ob();this.ya("click",this.onClick);this.N(a,"presentingplayerstatechange",this.Ab);this.N(a,"appresize",this.Ab);this.N(a,"videodatachange",this.Oa);(a=a.getVideoData())&&this.updateVideoData(a);this.Ab()};
nQ=function(a,b,c){g.X.call(this,{D:"div",K:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",K:"ytp-volume-slider",S:[{D:"div",K:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.J=c;this.Xh=!1;this.X=this.volume=0;this.I=null;this.hasFocus=this.l=this.u=!1;this.i=b;this.J=c;this.B=b.ue();this.L=this.ha("ytp-volume-slider");this.Y=this.ha("ytp-volume-slider-handle");
this.C=new g.Tt(this.L,!0);g.I(this,this.C);this.C.subscribe("dragstart",this.cP,this);this.C.subscribe("dragmove",this.CI,this);this.C.subscribe("dragend",this.bP,this);this.N(a,"onVolumeChange",this.Tg);this.N(a,"appresize",this.wB);this.N(a,"fullscreentoggled",this.qk);this.N(a,"onShowControls",this.PC);this.N(a,"onHideControls",this.PC);this.N(this.element,"keydown",this.DI);this.N(this.element,"focus",function(){lQ(d,d.l,d.u,!0,d.i.Xh())});
this.N(this.element,"blur",function(){lQ(d,d.l,d.u,!1,d.i.Xh())});
this.wB(a.Ka().getPlayerSize());mQ(this,a.getVolume(),a.isMuted())};
mQ=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ba("valuenow",d);a.Ba("valuetext",e);a.Y.style.left=(a.B?60:40)*c+"px";a.volume=b};
nqa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);lQ(a,b,a.u,a.hasFocus,a.i.Xh())};
lQ=function(a,b,c,d,e){var f=a.l||a.u||a.hasFocus||a.Xh;a.l=b;a.u=c;a.hasFocus=d;a.Xh=e;b=a.l||a.u||a.hasFocus||a.Xh;f!==b&&(b?a.I=a.N(a.element,"wheel",a.BI):(a.Gb(a.I),a.I=null),g.O(a.J,"ytp-volume-slider-active",b))};
g.GQ=function(a,b){var c=a.T(),d=g.mG(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.ZF(c)&&e.push("ytp-youtube-music-button");g.X.call(this,{D:"a",ka:e,U:{href:"{{url}}",target:c.C,title:g.AJ("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},ba:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Hb(this.element,this,28666);this.ya("click",this.onClick);this.N(a,"videodatachange",this.Oa);this.N(a,"onLoopRangeChange",
this.Oa);this.N(a,"appresize",this.Ta);this.Oa();g.Gi(this,g.ZN(b.Ob(),this.element));this.Ta()};
RQ=function(a,b,c){g.XM.call(this);var d=this;this.G=a;this.u=b;this.Lc=c;this.la=NaN;this.ma=this.ga=null;this.i=new hQ(this.G);this.Yc=new g.zP(this.G,this.u);this.muteButton=null;this.wi=new g.kQ(this.G,this.u);this.C=this.B=this.L=this.ea=null;this.W=new qP(this.G,this.u);this.ia=new g.jP(this.G,this.u);this.ae=new g.bn(this.Dr,null,this);this.J=null;c=a.T();this.Lc.subscribe("autohideupdate",this.di,this);var e=!a.Xa().isCued(),f=this.G.T().Z("html5_player_bottom_linear_gradient");f||!g.ZF(c)&&
!g.U(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.X({D:"div",K:"ytp-gradient-bottom-container",S:[{D:"div",K:"ytp-gradient-bottom-extension"},{D:"div",K:"ytp-gradient-bottom"}]}):new g.X({D:"div",K:"ytp-gradient-bottom"}):this.ma=f=new g.dP(a);g.I(this,f);g.VM(a,f.element,8);this.Y=new g.LL(f,250,e,100);g.I(this,this.Y);this.l=new g.X({D:"div",K:"ytp-chrome-bottom",S:[{D:"div",K:"ytp-chrome-controls"}]});g.I(this,this.l);g.VM(a,this.l.element,8);this.X=new g.LL(this.l,250,e,
100);g.I(this,this.X);this.ca=this.l.element.children[0];g.Gi(this.i,function(){a.dn()===d.i&&(a.iw=null)});
g.I(this,this.i);a.iw=this.i;g.VM(a,this.i.element,6);this.i.subscribe("show",function(m){var n=d.u.Ob(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:QQ(n);n.B.show();break;default:n.B.show()}else n.B.hide();n.I=p;b.Yz(d.i,m)});
g.I(this,this.Yc);this.Yc.fa(this.l.element,0);e=new g.fP(a);g.I(this,e);g.VM(a,e.element,4);f=new g.VK({D:"div",K:"ytp-left-controls"});g.I(this,f);f.fa(this.ca);e=new g.uP(a,b,!1);g.I(this,e);e.fa(f.element);c.ea||(e=new g.rP(a,b),g.I(this,e),e.fa(f.element));e=new g.uP(a,b,!0);g.I(this,e);e.fa(f.element);e=new g.X({D:"span",K:"ytp-volume-area"});g.I(this,e);e.fa(f.element);if(!c.Wa&&(this.muteButton=new g.pP(a,b),g.I(this,this.muteButton),this.muteButton.fa(e.element),c.X)){var h=new nQ(a,b,this.l.element);
g.I(this,h);h.fa(e.element);e=new g.Tt(e.element);g.I(this,e);e.subscribe("hoverstart",function(){nqa(h,!0)});
e=new g.Tt(f.element);g.I(this,e);e.subscribe("hoverend",function(){nqa(h,!1)})}g.I(this,this.wi);
this.wi.fa(f.element);e=new g.VK({D:"div",K:"ytp-right-controls"});g.I(this,e);this.ea=new eP(a,this.Yc);g.I(this,this.ea);this.ea.fa(f.element);e.fa(this.ca);a.T().jc&&g.U(c.experiments,"web_player_move_autonav_toggle")&&(f=new bP(a,b),g.I(this,f),f.fa(e.element));g.U(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&oG(c)&&(this.L=new iP(a,b),g.I(this,this.L),this.L.fa(e.element));f=new g.jQ(a,b);g.I(this,f);f.fa(e.element);f=new MP(a,b,this.i);g.I(this,f);mqa(this.i,f);f.fa(e.element);
var l=new mP(a);g.I(this,l);g.VM(a,l.element,5);l.subscribe("show",function(m){b.Um(l,m)});
f=new lP(a,b,l);g.I(this,f);f.fa(e.element);f=a.getVideoData();if(c.Lh||f.C&&"1"===c.controlsType)this.B=new g.GQ(a,b),g.I(this,this.B),this.B.fa(e.element);c.showMiniplayerButton&&!g.U(a.T().experiments,"web_player_pip")&&(this.C=new kP(a,b),g.I(this,this.C),this.C.fa(e.element));g.I(this,this.W);this.W.fa(e.element);f.hx||this.W.hide();c.We||(f=new iQ(a,b),g.I(this,f),f.fa(e.element));c.De&&(f=new LP(a,b,this.i),g.I(this,f),f.fa(e.element));c.gh&&(c=new aP(a,b),g.I(this,c),c.fa(e.element));g.I(this,
this.ia);this.ia.fa(e.element);g.I(this,this.ae);this.N(a,"appresize",this.Ta);this.N(a,"fullscreentoggled",this.Ta);this.N(a,"presentingplayerstatechange",this.mw);this.N(a,"videodatachange",this.Oa);this.Ta()};
oqa=function(a,b){a.G.Xa().isCued()||b?b&&(a.X.hide(),a.Y.hide(),a.muteButton&&a.muteButton.zb(!1),a.B&&a.B.zb(!1),a.C&&a.C.zb(!1),a.u.Ob().Ji(a.l.element)):b||(a.X.show(),a.Y.show(),a.muteButton&&a.muteButton.zb(!0),a.B&&a.B.zb(!0),a.C&&a.C.zb(!0),a.di())};
pqa=function(a){var b=a.G.Ka().getPlayerSize().width;return Math.max(b-2*TQ(a),100)};
TQ=function(a){var b=a.u.ue();return 12*(a.G.getVideoData().C?0:b?2:1)};
UQ=function(a){var b=a.u.ue()?72:50;a=a.G.T();g.qG(a)&&(b=54,g.U(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
VQ=function(a,b){XO.call(this,a,b,!1);var c=this;this.N(this.G,"videodatachange",this.Oa);this.N(this.G,g.AD("suggested_action_button_visible"),function(){c.pe(!0)});
this.N(this.G,g.BD("suggested_action_button_visible"),function(){c.pe(!1)})};
WQ=function(a){a.G.Oe("suggested_action_button_visible")};
YQ=function(a){g.X.call(this,{D:"div",K:XQ.TITLE,S:[{D:"div",K:XQ.TEXT,S:[{D:"a",ka:[XQ.LINK,XQ.SESSIONLINK],U:{target:a.T().C,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ba:"{{title}}"},{D:"div",K:XQ.SUBTEXT,S:[{D:"a",K:XQ.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},ba:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.ha(XQ.LINK);a.Hb(this.element,this,23851);this.N(a,"videodatachange",this.wa);this.N(a,"videoplayerreset",
this.wa);this.wa()};
qqa=function(a){a.Ba("channelLink","");a.Ba("channelName","");a.Ba("channelTitleFocusable","-1")};
g.ZQ=function(a,b){g.X.call(this,{D:"div",S:[{D:"div",K:"ytp-tooltip-text-wrapper",S:[{D:"div",K:"ytp-tooltip-image"},{D:"div",K:"ytp-tooltip-title",ba:"{{title}}"},{D:"span",K:"ytp-tooltip-text",ba:"{{text}}"}]},{D:"div",K:"ytp-tooltip-bg",S:[{D:"div",K:"ytp-tooltip-duration",ba:"{{duration}}"}]}]});var c=this;this.api=a;this.ia=b;this.env=this.api.T();this.ea=this.env.i;this.bg=this.ha("ytp-tooltip-bg");this.image=this.ha("ytp-tooltip-image");this.text=this.ha("ytp-tooltip-text");this.title=this.ha("ytp-tooltip-title");
this.L=function(e){(e=$o(e))&&g.Pe(c.activeElement,e)||c.Di()};
this.u=function(e){3===c.type&&c.Di();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.u),e.addEventListener("mouseout",c.L),e.removeEventListener("focus",c.u),e.addEventListener("blur",c.L),rqa(c,e,2))};
this.X=function(){c.Di()};
this.activeElement=null;this.B=new g.LL(this,100);this.type=null;this.J=!1;this.i=null;this.l=NaN;this.C="";this.nw=this.api.Ka().getPlayerSize().width;this.I=!0;this.scale=1;this.Y=new g.M(this.bM,250,this);this.ca=new g.M(this.Di,5E3,this);g.I(this,this.B);g.I(this,this.Y);g.I(this,this.ca);if(MF){var d=this.ha("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
eO=function(a){a.element.setAttribute("aria-live","polite")};
uqa=function(a,b,c,d,e,f,h,l){if(!a.ea){3===a.type&&a.Di();1!==a.type&&(g.jn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.I&&a.B.show(),a.i&&a.i.dispose(),a.i=a.api.Lg(),a.i&&a.i.subscribe("l",a.sF,a));a.update({text:d,title:h?h:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=iH(a.i,160*a.scale),g.U(a.env.experiments,"web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=qH(a.i,d,c));sqa(a,d);if(l)switch(c=g.Eg(a.element).width,
l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}tqa(a,!!e,b,f)}};
g.$Q=function(a){1===a.type&&a.Di()};
g.ZN=function(a,b){if(a.ea)return g.Ia;b.addEventListener("mouseover",a.u);b.addEventListener("focus",a.u);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.activeElement===b&&a.Di();b.removeEventListener("mouseover",a.u);b.removeEventListener("focus",a.u)}};
zO=function(a,b,c){if(a.type)if(3===a.type)a.Di();else return;rqa(a,b,3,c)};
rqa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Tr("showElementTooltip called with non-element.",b.toString()),g.gt(a);else{isNaN(a.l)||(a.l=NaN,a.bg.style.background="");a.activeElement=b;a.J=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.jn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",
!!b);a.type=c;a.api.addEventListener("appresize",a.X);a.I&&(QQ(a),a.B.show(0))}};
QQ=function(a){var b;a.activeElement&&(b=a.activeElement.getAttribute("data-tooltip-text"));if(b&&!a.J){var c=a.activeElement;a.Ba("text",b);var d=c.getAttribute("data-duration");a.update({title:a.C,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.ln(a.element,
["ytp-text-detail","ytp-preview"]);g.O(a.element,"ytp-has-duration",!!d)}else a.Ba("text",a.C),g.nn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);tqa(a,!!b)};
tqa=function(a,b,c,d){var e=Math.min(a.nw,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ia.ip(a.element,a.activeElement,c,1===a.type,d);a.element.style.top?g.N(a.element,"ytp-bottom"):a.element.style.bottom&&g.N(a.element,"ytp-top");3===a.type&&a.ca.start()};
AO=function(a){a.activeElement&&!a.J&&a.activeElement.hasAttribute("title")&&(a.C=a.activeElement.getAttribute("title")||"",a.activeElement.removeAttribute("title"),a.I&&QQ(a))};
sqa=function(a,b){g.O(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.l)){a.l=b;var c=160*a.scale,d=160*a.scale,e=kH(a.i,a.l,c);wpa(a.bg,e,c,d,!0);a.Y.start()}};
vqa=function(a){var b=a.activeElement;3===a.type&&a.ca.stop();a.api.removeEventListener("appresize",a.X);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null};
g.aR=function(a,b){g.X.call(this,{D:"button",ka:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.PF(a.T()))},S:[{D:"div",K:"ytp-watch-later-icon",ba:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",ba:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.i=this.l=!1;this.tooltip=b.Ob();eO(this.tooltip);a.Hb(this.element,this,28665);this.ya("click",this.onClick,this);this.N(a,"videoplayerreset",this.FI);this.N(a,"appresize",
this.Ps);this.N(a,"videodatachange",this.Ps);this.N(a,"presentingplayerstatechange",this.Ps);this.Ps();var c=this.G.T(),d=wqa();c.l&&d?(xqa(),yqa(this)):this.wa(2);g.O(this.element,"ytp-show-watch-later-title",g.PF(c));g.Gi(this,g.ZN(b.Ob(),this.element))};
zqa=function(a,b){g.ena(function(){xqa({videoId:b});window.location.reload()},"wl_button",g.lG(a.G.T()))};
yqa=function(a){if(!a.i){a.i=!0;a.wa(3);var b=a.G.getVideoData();b=a.l?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.bk(),d=a.l?function(){a.l=!1;a.i=!1;a.wa(2);a.G.T().u&&a.G.xa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.l=!0;
a.i=!1;a.wa(1);a.G.T().i&&zO(a.tooltip,a.element);a.G.T().u&&a.G.xa("WATCH_LATER_VIDEO_ADDED")};
iM(c,b).then(d,function(){a.i=!1;Aqa(a,"An error occurred. Please try again later.")})}};
Aqa=function(a,b){a.wa(4,b);a.G.T().u&&a.G.xa("WATCH_LATER_ERROR",b)};
Bqa=function(a,b){var c=a.G.T();if(b!==a.icon){switch(b){case 3:var d=zN();break;case 1:d=bL();break;case 2:d={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.U(c.experiments,"watch_later_iconchange_killswitch")?{D:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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.Ba("icon",d);
a.icon=b}};
bR=function(a){g.ON.call(this,a);var b=this;this.Fy=(this.zl=g.PF(this.api.T()))&&(this.api.T().i||mq()||kq());this.lx=48;this.mx=69;this.Mi=null;this.Fl=[];this.Qb=new g.UN(this.api);this.Aq=new BO(this.api);this.Vg=new g.X({D:"div",K:"ytp-chrome-top"});this.us=[];this.tooltip=new g.ZQ(this.api,this);this.backButton=this.hp=null;this.channelAvatar=new gO(this.api,this);this.title=new YQ(this.api,this);this.gg=new g.VK({D:"div",K:"ytp-chrome-top-buttons"});this.Dg=null;this.Ki=new YN(this.api,this,
this.Vg.element);this.overflowButton=this.wg=null;this.Mf="1"===this.api.T().controlsType?new RQ(this.api,this,this.Lc):null;this.contextMenu=new g.xO(this.api,this,this.Qb);this.Xw=!1;this.Bt=new g.X({D:"div",U:{tabindex:"0"}});this.At=new g.X({D:"div",U:{tabindex:"0"}});this.Kr=null;this.aA=this.ot=!1;var c=a.Ka(),d=a.T(),e=a.getVideoData();this.zl&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),g.U(d.experiments,"embeds_enable_player_overlays_autohide")&&this.Fy&&(g.N(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.lx=60,this.mx=89);this.api.T().i&&(g.N(a.getRootNode(),"ytp-mobile"),this.zl&&this.api.T().Z("embeds_enable_mobile_custom_controls")&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.mh=e&&e.mh;g.I(this,this.Qb);g.VM(a,this.Qb.element,4);g.I(this,this.Aq);g.VM(a,this.Aq.element,4);e=new g.X({D:"div",K:"ytp-gradient-top"});g.I(this,e);g.VM(a,e.element,1);this.uA=new g.LL(e,250,!0,100);g.I(this,this.uA);
g.I(this,this.Vg);g.VM(a,this.Vg.element,1);this.tA=new g.LL(this.Vg,250,!0,100);g.I(this,this.tA);g.I(this,this.tooltip);g.VM(a,this.tooltip.element,4);var f=new NO(a);g.I(this,f);g.VM(a,f.element,5);f.subscribe("show",function(l){b.Um(f,l)});
this.us.push(f);this.hp=new OO(a,this,f);g.I(this,this.hp);d.showBackButton&&(this.backButton=new TN(a),g.I(this,this.backButton),this.backButton.fa(this.Vg.element));this.zl||this.hp.fa(this.Vg.element);this.channelAvatar.fa(this.Vg.element);g.I(this,this.channelAvatar);g.I(this,this.title);this.title.fa(this.Vg.element);g.I(this,this.gg);this.gg.fa(this.Vg.element);this.Dg=new g.aR(a,this);g.I(this,this.Dg);this.Dg.fa(this.gg.element);var h=new g.UO(a,this);g.I(this,h);g.VM(a,h.element,5);h.subscribe("show",
function(l){b.Um(h,l)});
this.us.push(h);this.shareButton=new g.TO(a,this,h);g.I(this,this.shareButton);this.shareButton.fa(this.gg.element);this.jg=new g.yO(a,this);g.I(this,this.jg);this.jg.fa(this.gg.element);d.sj&&(e=new $O(a),g.I(this,e),g.VM(a,e.element,4));this.zl&&this.hp.fa(this.gg.element);g.I(this,this.Ki);this.Ki.fa(this.gg.element);e=new $N(a,this,this.Ki);g.I(this,e);e.fa(this.gg.element);this.wg=new KO(a,this);g.I(this,this.wg);g.VM(a,this.wg.element,5);this.wg.subscribe("show",function(){b.Um(b.wg,b.wg.If())});
this.us.push(this.wg);this.overflowButton=new JO(a,this,this.wg);g.I(this,this.overflowButton);this.overflowButton.fa(this.gg.element);this.Mf&&g.I(this,this.Mf);"3"===d.controlsType&&(e=new SO(a,this),g.I(this,e),g.VM(a,e.element,8));g.I(this,this.contextMenu);this.contextMenu.subscribe("show",this.yH,this);e=new dM(a,new SN(a));g.I(this,e);g.VM(a,e.element,4);this.Bt.ya("focus",this.cL,this);g.I(this,this.Bt);this.At.ya("focus",this.dL,this);g.I(this,this.At);(this.jk=d.qd?null:new g.GO(a,c,this.contextMenu,
this.Lc,this.Qb,this.Aq,function(){return b.Xj()}))&&g.I(this,this.jk);
this.zl||(this.PG=new YO(this.api,this),g.I(this,this.PG),g.VM(a,this.PG.element,4));this.aH=new VQ(this.api,this);g.I(this,this.aH);g.VM(a,this.aH.element,4);this.El.push(this.Qb.element);this.N(a,"fullscreentoggled",this.qk);this.N(a,"offlineslatestatechange",function(){b.api.qr()&&tN(b.Lc,128,!1)});
this.N(a,"cardstatechange",function(){b.Gh()});
this.N(a,"resize",this.mN);this.N(a,"showpromotooltip",this.PN)};
Cqa=function(a){var b=a.api.T(),c=g.W(a.api.Xa(),128);return b.l&&c&&!a.api.isFullscreen()};
cR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==rg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=cR(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
Dqa=function(a,b,c){var d;if(g.U(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.Kr){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.Kr=new PO(e,a,a.api),g.I(a,a.Kr),g.VM(a.api,a.Kr.element,8));null===
(d=a.Kr)||void 0===d?void 0:d.kw(e,c)}}};
g.dR=function(a){g.eN.call(this,a);this.chrome=null;this.load()};
eR=function(a){this.l=a;this.B=this.i=0;this.u=-1};
fR=function(a){var b=Nw(a.l,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=Nw(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
gR=function(a,b){for(a.B=b;a.i+1<=a.l.totalLength;){var c=a.u;0>c&&(c=fR(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}switch(e){case 0:fR(a);break;case 1:a.i+=8;break;case 2:c=fR(a);a.i+=c;break;case 5:a.i+=4}}return!1};
hR=function(a,b,c){c=void 0===c?0:c;return gR(a,b)?fR(a):c};
iR=function(a,b){var c=void 0===c?"":c;if(!gR(a,b))return c;c=fR(a);if(!c)return"";var d=uv(a.l,a.i,c);a.i+=c;return g.A.TextDecoder?(new TextDecoder).decode(d):g.Ye(d)};
jR=function(a,b){var c=void 0===c?null:c;if(!gR(a,b))return c;c=fR(a);var d=uv(a.l,a.i,c);a.i+=c;return d};
kR=function(){this.i=0;this.u=void 0;this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.A.TextEncoder&&(this.u=new TextEncoder)};
lR=function(a,b){var c=a.i+b;if(!(a.l.length>=c)){for(var d=2*a.l.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.l);a.l=c;a.view=new DataView(a.l.buffer)}};
mR=function(a,b){if(268435455<b){lR(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(lR(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
nR=function(a,b,c){mR(a,b<<3|2);b=c.length;mR(a,b);lR(a,b);a.l.set(c,a.i);a.i+=b};
pR=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(oR(g.Xe(c)).buffer);nR(a,b,c)};
qR=function(a){return new Uint8Array(a.l.buffer,0,a.i)};
rR=function(a){a=new eR(new Fw([g.cf(decodeURIComponent(a))]));var b=iR(a,2);return{entityType:Eqa[hR(a,4)],entityId:b}};
sR=function(a,b){var c=new kR;pR(c,2,a);var d=Fqa[b];mR(c,32);mR(c,d);mR(c,40);mR(c,1);c=qR(c);return encodeURIComponent(g.sf(c))};
Gqa=function(a){this.i=a;this.l=new Set};
tR=function(a,b,c){return os(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})};
Hqa=function(a,b,c){return c?(c=c.map(function(d){return tR(a,d,b)}),Os.all(c).then(function(d){return d.filter(function(e){return void 0!==e})})):os(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})};
uR=function(a,b,c){function d(){return ns(os(a.i,"EntityStore"),f).then(function(h){a.l.add(h);return h})}
var e=b.key||b.id;if(!e)throw Error("Entity key is missing from the EntityMutationPayload");var f={key:e,entityType:c,data:b};return c?os(a.i,"EntityStore").get(e).then(function(h){if(h&&c&&h.entityType!==c)throw Error("Incorrect entity type");}).then(d):d()};
Iqa=function(a,b){var c=b.map(function(d){return uR(a,d,"offlineOrchestrationActionWrapperEntity")});
return Os.all(c)};
vR=function(a,b){return os(a.i,"EntityStore")["delete"](b).then(function(){a.l.add(b)})};
wR=function(){g.E.apply(this,arguments);this.i=[];if(void 0===Is)throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Js()),a.onmessage=this.l.bind(this);this.channel=a};
xR=function(a,b,c){return C(a,function e(){var f,h,l,m,n=this;return z(e,function(p){if(1==p.i)return v(p,Jqa().open(),2);if(3!=p.i)return f=p.l,v(p,ms(f,["EntityStore"],b,function(r){h=new Gqa(r);return c(h)}),3);
l=p.l;h&&(m=[].concat(g.la(h.l)),0<m.length&&(n.channel&&n.channel.postMessage(m),Kqa(n,m)));return p["return"](l)})})};
yR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
zR=function(a,b,c){return xR(a,"readwrite",function(d){return uR(d,b,c)})};
Lqa=function(a,b){return xR(a,"readwrite",function(c){return Iqa(c,b)})};
Mqa=function(a,b){return xR(a,"readwrite",function(c){return vR(c,b)})};
AR=function(a,b,c){return xR(a,"readonly",function(d){return tR(d,b,c)})};
BR=function(a,b,c){return xR(a,"readonly",function(d){return Hqa(d,b,c)})};
Kqa=function(a,b){for(var c=g.q(a.i),d=c.next();!d.done;d=c.next())d=d.value,d=d(b),Nqa&&d&&Nqa.push(d)};
Oqa=function(){return C(this,function b(){var c;return z(b,function(d){if(1==d.i)return(c=!g.Ko("enable_web_pes"))?d.Pb(2):v(d,Hs(),3);2!=d.i&&(c=!d.l);if(c)return d["return"]();if(CR)return d["return"](CR);CR=new wR;return d["return"](CR)})})};
DR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)};
ER=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
Pqa=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
FR=function(){var a=Qqa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Redux.compose.apply(null,[Redux.applyMiddleware.apply(Redux,g.la(b))].concat(g.la(c)));c=Redux.createStore;this.store=c(a,b)};
Rqa=function(a,b,c,d){var e={},f={};return Object.assign(Object.assign({},a),(f[b]=Object.assign(Object.assign({},a[b]),(e[c]=d,e)),f))};
Uqa=function(a){var b=Sqa;return C(this,function d(){var e;return z(d,function(f){if(1==f.i){e=a.mutations;if(!e||0>=e.length)return f["return"]();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return v(f,Tqa(e),2)}e.length=0;f.i=0})})};
Tqa=function(a){return C(this,function c(){var d;return z(c,function(e){return 1==e.i?v(e,Oqa(),2):(d=e.l)?v(e,xR(d,"readwrite",function(f){for(var h=[],l=g.q(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=Hb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(uR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
m.type&&h.push(vR(f,m.entityKey)))}return Os.all(h)}),0):e["return"]()})})};
GR=function(a){this.i=a};
HR=function(a,b,c){this.status=a;this.l=b;this.i=c};
IR=function(a,b){this.i=a;this.u=b};
Xqa=function(a,b){return C(a,function d(){var e,f=this,h;return z(d,function(l){switch(l.i){case 1:return e=b.entityKey,sa(l,2),v(l,Vqa(f,e),4);case 4:return(h=l.l)?v(l,Wqa(f,h),5):l["return"](JR(b,!1));case 5:return l["return"](JR(b,!0,h.orchestrationActions));case 2:return ua(l),l["return"](JR(b,!1))}})})};
Yqa=function(a,b){return C(a,function d(){var e,f=this,h,l,m,n;return z(d,function(p){switch(p.i){case 1:return e=b.entityKey,v(p,AR(f.i,e,"playbackData"),2);case 2:return h=p.l,v(p,AR(f.i,sR(rR(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy"),3);case 3:l=p.l;if(!h||!l)return p["return"](JR(b,!1));m={lastPlayerResponseTimestampSeconds:h.playerResponseTimestamp,offlineToken:l.offlineToken};sa(p,4);return v(p,Vqa(f,e,m),6);case 6:return(n=p.l)?v(p,Wqa(f,n),7):p["return"](JR(b,!1));
case 7:return p["return"](JR(b,!0,n.orchestrationActions));case 4:return ua(p),p["return"](JR(b,!1))}})})};
Vqa=function(a,b,c){return C(a,function e(){var f,h=this,l,m;return z(e,function(n){f=g.tM();var p=h.u,r={entityKey:b};c&&(r.refreshData=c);l={context:Ena(p),videos:[r]};m=g.jM(Zqa);return n["return"](g.xK(f,l,m))})})};
Wqa=function(a,b){return C(a,function d(){return z(d,function(e){return b.frameworkUpdates&&b.frameworkUpdates.entityBatchUpdate?v(e,Uqa(b.frameworkUpdates.entityBatchUpdate),0):e["return"]()})})};
JR=function(a,b,c){return new HR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",DR(a),c)};
KR=function(){GR.apply(this,arguments)};
ara=function(a,b){return C(a,function d(){var e,f=this,h;return z(d,function(l){switch(l.i){case 1:return e=DR(b),v(l,AR(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.l)return l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));sa(l,3);return v(l,$qa(f,b),5);case 5:ta(l,4);break;case 3:return ua(l),l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
bra=function(a,b){return C(a,function d(){var e,f=this,h;return z(d,function(l){switch(l.i){case 1:return e=DR(b),v(l,AR(f.i,b.entityKey,"transfer"),2);case 2:h=l.l;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));sa(l,3);return v(l,$qa(f,b),5);case 5:ta(l,4);break;case 3:return ua(l),l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
e))}})})};
$qa=function(a,b){var c;return C(a,function e(){var f,h,l=this;return z(e,function(m){f=null===(c=b.actionMetadata)||void 0===c?void 0:c.transferEntityActionMetadata;h={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:$t(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===f||void 0===f?void 0:f.maximumDownloadQuality,preferredAudioTrack:null===f||void 0===f?void 0:f.preferredAudioTrack};return v(m,zR(l.i,h,"transfer"),0)})})};
LR=function(){GR.apply(this,arguments)};
era=function(a,b){return C(a,function d(){var e,f,h,l,m=this,n,p,r,t,w,x;return z(d,function(y){switch(y.i){case 1:return e=DR(b),f=rR(b.entityKey),h=f.entityId,sa(y,2),v(y,Ona(h),4);case 4:return l=y.l,v(y,cra(m,l),5);case 5:n=y.l;p=n.videoEntity;r=n.channelEntity;var F=MR(p.thumbnail),D=MR(r.avatar);return v(y,Qna(F.concat(D),!0),6);case 6:ta(y,3);break;case 2:return ua(y),y["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return t=sR(h,"playbackData"),w={priority:0,retryScheduleIntervalsInSeconds:dra},
x={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:t,actionMetadata:w},y["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[x]))}})})};
gra=function(a,b){return C(a,function d(){var e,f,h=this,l,m,n,p,r,t,w,x;return z(d,function(y){switch(y.i){case 1:return e=DR(b),sa(y,2),f=rR(b.entityKey).entityId,v(y,xR(h.i,"readonly",function(F){var D=tR(F,sR(f,"ytMainVideoEntity"),"ytMainVideoEntity");F=tR(F,sR(f,"ytMainChannelEntity"),"ytMainChannelEntity");return Os.all([D,F])}),4);
case 4:l=y.l;m=g.q(l);n=m.next().value;p=m.next().value;if(!n||!p){y.Pb(5);break}r=MR(n.thumbnail);return v(y,fra(h,p),6);case 6:return t=y.l,v(y,Pna(r.concat(t),!0),5);case 5:return v(y,Mqa(h.i,b.entityKey),8);case 8:ta(y,3);break;case 2:if(w=ua(y),(x=w instanceof DOMError)&&"DataError"!==w.name||!x)return y["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return y["return"](new HR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
cra=function(a,b){var c;return C(a,function e(){var f,h,l,m,n=this;return z(e,function(p){switch(p.i){case 1:if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");f=null===(c=b.channel)||void 0===c?void 0:c.offlineChannelData;h={id:sR(b.videoId,"ytMainChannelEntity"),channelId:f.channelId,title:f.title,avatar:f.thumbnail};l={id:sR(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},
lengthSeconds:b.lengthSeconds?Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:h.id};m={id:sR(b.videoId,"ytMainDownloadedVideoEntity"),video:l.id,playbackData:sR(b.videoId,"playbackData"),offlineVideoPolicy:sR(b.videoId,"offlineVideoPolicy")};return v(p,zR(n.i,h,"ytMainChannelEntity"),2);case 2:return v(p,zR(n.i,l,"ytMainVideoEntity"),3);case 3:return v(p,zR(n.i,m,"ytMainDownloadedVideoEntity"),
4);case 4:return p["return"]({videoEntity:l,channelEntity:h,w3:m})}})})};
MR=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};
fra=function(a,b){return C(a,function d(){var e=this,f,h,l,m,n,p,r,t,w;return z(d,function(x){if(1==x.i)return f=MR(b.avatar),v(x,BR(e.i,"ytMainChannelEntity"),2);h=x.l;l=g.q(h);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.id!==b.id)for(p=g.q(MR(n.avatar)),r=p.next();!r.done;r=p.next())t=r.value,w=f.indexOf(t),-1!==w&&f.splice(w,1);return x["return"](f)})})};
NR=function(a,b,c,d,e,f,h,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=e;this.childActionIds=f;this.prereqActionId=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
OR=function(a){return{key:sR(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
hra=function(){this.actions=[]};
PR=function(a,b){g.E.call(this);this.i=a;this.I=b;this.u=new hra;this.B=yR(this.i,this.C.bind(this))};
jra=function(a,b){return C(this,function d(){var e;return z(d,function(f){if(1==f.i)return e=new PR(a,b),v(f,ira(e),2);e.l?Promise.resolve():QR(e);return f["return"](e)})})};
QR=function(a){return C(a,function c(){var d=this,e,f,h;return z(c,function(l){switch(l.i){case 1:if(d.l)throw Error("Already processing an action");if(d.na())return l["return"]();e=d.u.actions.shift();if(void 0===e)return l["return"]();d.l=e;f=d.I[e.entityType];sa(l,2,3);return v(l,f.l(e.action),5);case 5:return h=l.l,v(l,kra(d,e,h),3);case 3:l.W=[l.u];l.I=0;l.C=0;d.l=void 0;var m=l.W.splice(0)[0];(m=l.u=l.u||m)?m.qE?l.i=l.I||l.C:void 0!=m.Pb&&l.C<m.Pb?(l.i=m.Pb,l.u=null):l.i=l.C:l.i=4;break;case 2:return ua(l),
sa(l,7),v(l,lra(d,e),9);case 9:ta(l,3);break;case 7:ua(l);RR(d,e);l.Pb(3);break;case 4:return v(l,QR(d),0)}})})};
kra=function(a,b,c){return C(a,function e(){var f=this,h;return z(e,function(l){h=f;return"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status?v(l,xR(f.i,"readwrite",function(m){var n=[];if(c.i){var p=c.i.map(function(r){return OR(h.createAction(r,b))});
n.push(Iqa(m,p))}p=OR(b);n.push(vR(m,p.key));return Os.all(n)}),0):"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status?l.Pb(0):c.l?v(l,lra(f,b),0):l.Pb(0)})})};
RR=function(a,b){if(3>b.retryScheduleIndex){var c=a.u;c.actions.push.apply(c.actions,g.la([b]));c.actions.sort(c.i);return!0}return!1};
lra=function(a,b){return C(a,function d(){var e=this,f;return z(d,function(h){return 1==h.i?(b.retryScheduleIndex++,f=RR(e,b),v(h,mra(e,[b]),2)):h["return"](f)})})};
ira=function(a){return C(a,function c(){var d=this,e;return z(c,function(f){if(1==f.i)return v(f,BR(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.l;nra(d,e);f.i=0})})};
nra=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=rR(c.key),e=rR(c.actionProto.entityKey);RR(a,new NR(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec)))})};
mra=function(a,b){if(0===b.length)return Promise.resolve([]);var c=b.map(function(d){return OR(d)});
return Lqa(a.i,c)};
SR=function(a,b,c,d){this.api=a;this.player=b;this.i=d;this.player.subscribe("localmediachange",this.B,this);this.u=c;ora(this);this.aa()};
pra=function(a){return C(this,function c(){return z(c,function(d){return d["return"](gv(a))})})};
ora=function(a){$u().then(function(){var b=Su(2);b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d=d.player.getVideoData().videoId===c?d.player:null;a.aa();d||Tu(c,3)}a.aa()})};
qra=function(){switch(g.Sq.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
TR=function(a){g.E.call(this);this.i=a;this.l=yR(this.i,this.u.bind(this))};
rra=function(a,b){return C(a,function d(){var e,f=this,h,l,m,n,p,r;return z(d,function(t){switch(t.i){case 1:if(0===b.length)return t["return"]([]);e=b.map(function(w){return sR(w,"transfer")});
return v(t,BR(f.i,"transfer",e),2);case 2:h=t.l;l=h.map(function(w){return rR(w.key).entityId});
m=b.filter(function(w){return-1===l.indexOf(w)});
if(0===m.length)return t["return"]([]);n=g.q(m);p=n.next();case 3:if(p.done){t.Pb(5);break}r=p.value;return v(t,pra(r),4);case 4:p=n.next();t.Pb(3);break;case 5:return t["return"](m)}})})};
UR=function(a,b,c,d){g.E.call(this);this.l=a;this.u=yR(this.l,this.C.bind(this));this.J=new SR(b,c,d,this);this.B=new TR(this.l)};
VR=function(a){return C(a,function c(){var d=this,e;return z(c,function(f){if(1==f.i){if(d.i)throw Error("Already downloading a video");return v(f,sra(d),2)}return(e=f.l)?v(f,tra(d,e),0):f.Pb(0)})})};
tra=function(a,b){return C(a,function d(){var e=this,f;return z(d,function(h){switch(h.i){case 1:return e.i=b,f=null,sa(h,2),v(h,ura(e,b),4);case 4:f=h.l;e.I=f;ta(h,3);break;case 2:return ua(h),WR(e),h["return"]();case 3:var l=e.J,m=f,n=b.cotn;2===l.l?l.aa():(Tu(m.videoDetails.videoId,2),l.l=2,m=new g.wH(l.player.T(),{cotn:n,raw_player_response:m,download_media:!0,start:Infinity,disable_watch_next:!0}),l.player.Ah(m,l.u),m=qra(),g.U(l.player.T().experiments,"hoffle_lmqf_killswitch")||(m=OE(m,m,!0,
"m"),DM(l.player,m)),l.aa(),EM(l.player,!1));h.i=0}})})};
sra=function(a){return C(a,function c(){var d=this,e,f;return z(c,function(h){if(1==h.i)return v(h,BR(d.l,"transfer"),2);e=h.l;f=e.filter(vra).sort(wra);return 0===f.length?h["return"]():h["return"](f[0])})})};
xra=function(a){C(a,function c(){var d=this;return z(c,function(e){return v(e,YR(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
yra=function(a){C(a,function c(){var d=this;return z(c,function(e){if(1==e.i)return v(e,YR(d,"TRANSFER_STATE_COMPLETE"),2);WR(d);VR(d);e.i=0})})};
zra=function(a){C(a,function c(){var d=this;return z(c,function(e){if(1==e.i)return v(e,YR(d,"TRANSFER_STATE_FAILED","TRANSFER_FAILURE_REASON_INTERNAL"),2);WR(d);VR(d);e.i=0})})};
YR=function(a,b,c){return C(a,function e(){var f=this;return z(e,function(h){f.i.transferState=b;f.i.failureReason=c;return v(h,Ara(f),0)})})};
Ara=function(a){return C(a,function c(){var d=this;return z(c,function(e){return d.i?v(e,zR(d.l,d.i,"transfer"),0):e.Pb(0)})})};
WR=function(a){a.i=void 0;a.I=void 0};
ura=function(a,b){return C(a,function d(){var e,f,h,l=this,m;return z(d,function(n){if(1==n.i)return e=rR(b.key),f=e.entityId,h=sR(f,"playbackData"),v(n,AR(l.l,h,"playbackData"),2);m=n.l;if(null===m||void 0===m?0:m.playerResponseJson)return n["return"](JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})};
vra=function(a){return void 0!==ZR[a.transferState]};
wra=function(a,b){var c=ZR[a.transferState],d=ZR[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
Bra=function(a,b,c,d){this.B=a;this.api=b;this.player=c;this.C=d;this.l=this.init()};
Cra=function(a,b){return C(a,function d(){var e=this;return z(d,function(f){return f["return"](e.Qs(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})};
Dra=function(a){return C(a,function c(){var d=this,e,f;return z(c,function(h){if(1==h.i)return v(h,d.l,2);if(3!=h.i)return d.i?v(h,BR(d.i,"ytMainDownloadedVideoEntity"),3):h["return"]([]);e=h.l;f=e.map(function(l){return rR(l.id).entityId});
return h["return"](f)})})};
Era=function(){for(var a=$R.length;4>a;a++){var b=g.Ie("VIDEO");b.load();$R.push(new g.sN(b))}};
Fra=function(){this.l=200;this.i=12};
Gra=function(a){var b=new Fra;b.l=g.S(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.S(a.experiments,"html5_gapless_max_played_ranges");return b};
g.aS=function(a,b,c,d){d=void 0===d?!1:d;XJ.call(this);this.i=a;this.start=b;this.end=c;this.B=d};
Hra=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.ak()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.cd())&&b.isView()&&(b=b.i),b&&b.bn().length>a.i&&g.YH(e)))return"played-ranges";if(!e.u)return null;if(!e.u.i||!c.i)return"non-dash";if(e.u.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.YH(f)&&g.YH(e))return"content-protection";a=c.i[0].audio;
e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.DA?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"};
bS=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.i=b;this.l=c;this.B=this.u=null;this.I=-1;this.J=!1;this.C=new lv;this.Eh=d-1E3*b.pc();this.C.then(void 0,function(){});
this.timeout=new g.M(function(){e.ge("timeout")},1E4);
g.I(this,this.timeout);this.L=isFinite(d);this.status={status:0,error:null};this.aa()};
Mra=function(a){return C(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return z(c,function(x){if(1==x.i){e=d;if(d.na())return x["return"](Promise.reject(Error(d.status.error||"disposed")));d.aa();d.timeout.start();f=g.cS.Zr("gtfta");return v(x,d.C,2)}g.cS.Hq(f);h=d.i.cd();if(h.cj())return d.ge("ended_in_finishTransition"),x["return"](Promise.reject(Error(d.status.error||"")));if(!d.B||!PA(d.B))return d.ge("next_mse_closed"),x["return"](Promise.reject(Error(d.status.error||"")));if(d.l.mediaSource!==
d.B)return d.ge("next_mse_mismatch"),x["return"](Promise.reject(Error(d.status.error||"")));l=Ira(d);m=l.ZE;n=l.cD;p=l.YE;d.i.eg(!1,!0);r=Jra(h,m,p,!d.l.getVideoData().isAd());dS(d.l,r);d.L&&(d.l.seekTo(d.l.getCurrentTime()+.001,{gr:!0,sA:3}),r.play()||zt());t=h.nb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.Ia("gapless",g.JA(t));d.i.Ia("gaplessTo",d.l.getVideoData().clientPlaybackNonce);w=d.i.getPlayerType()===d.l.getPlayerType();Kra(d.i,n,!1,w,d.l.getVideoData().clientPlaybackNonce);
Kra(d.l,d.l.getCurrentTime(),!0,w,d.i.getVideoData().clientPlaybackNonce);g.hm(function(){!e.l.getVideoData().Ha&&g.hK(e.l.getPlayerState())&&Lra(e.l)});
eS(d,6);d.dispose();return x["return"](Promise.resolve())})})};
Pra=function(a){if(a.l.getVideoData().u){fS(a.l,a.B);eS(a,3);Nra(a);var b=Ora(a),c=b.OG;b=b.sQ;c.subscribe("updateend",a.Xn,a);b.subscribe("updateend",a.Xn,a);a.Xn(c);a.Xn(b)}};
Nra=function(a){a.i.unsubscribe("internalvideodatachange",a.Gm,a);a.l.unsubscribe("internalvideodatachange",a.Gm,a);a.i.unsubscribe("mediasourceattached",a.Gm,a);a.l.unsubscribe("statechange",a.Wb,a)};
Jra=function(a,b,c,d){a=a.isView()?a.i:a;return new g.aS(a,b,c,d)};
eS=function(a,b){a.aa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))};
Ira=function(a){var b=a.i.cd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:gS(a.i,!0);c=Math.min(a.Eh/1E3,c)+b;var d=a.L?100:0;a=c-a.l.ak()+d;return{LK:b,ZE:a,cD:c,YE:Infinity}};
Ora=function(a){return{OG:a.u.i.Pc,sQ:a.u.l.Pc}};
hS=function(a){g.E.call(this);var b=this;this.api=a;this.C=this.i=this.l=null;this.J=!1;this.B=null;this.L=Gra(this.api.T());this.u=null;this.I=function(){g.hm(function(){Qra(b)})}};
Rra=function(a,b,c,d){d=void 0===d?0:d;a.aa();a.No()||iS(a);a.B=new lv;a.l=b;var e=c,f=a.api.hc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*gS(f,!0);e>h&&(e=h-a.L.l,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.i=f,f=e,e=a.i,a.api.addEventListener(g.AD("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.xD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,gS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,gS(b)+l));f=Rga(e,h)||d;f!==d&&a.l.Ia("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.hc())d.wc=e;d.getVideoData().oc=!0;d.getVideoData().za=!0;EM(d,!0);e="";a.i&&(e=g.jS(a.i.C.provider),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ia("queued",e);0!==b&&d.seekTo(b+.01,{gr:!0,sA:3});a.u=new bS(a.L,a.api.hc(),a.l,c);c=a.u;c.aa();Infinity!==c.status.status&&(eS(c,1),c.i.subscribe("internalvideodatachange",
c.Gm,c),c.l.subscribe("internalvideodatachange",c.Gm,c),c.i.subscribe("mediasourceattached",c.Gm,c),c.l.subscribe("statechange",c.Wb,c),c.i.subscribe("newelementrequired",c.AF,c),c.Gm());return a.B};
Qra=function(a){C(a,function c(){var d=this,e,f,h,l;return z(c,function(m){switch(m.i){case 1:e=d;if(d.na())return m["return"]();d.aa();if(!d.B||!d.l)return d.aa(),m["return"]();d.J&&kS(d.api.hc(),!0,!1);f=null;if(!d.u){m.Pb(2);break}sa(m,3);return v(m,Mra(d.u),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return d.api.lt(d.l),g.cS.Ez("vqsp",function(){e.api.oi(e.l.getPlayerType())}),g.cS.Ez("vqpv",function(){e.api.playVideo()}),f&&Sra(d.l,f.message),l=d.B,iS(d),m["return"](l.resolve(void 0))}})})};
iS=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.AD("vqueued"),a.I);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.ge("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1};
Tra=function(){var a=Po();return!(!a||"visible"===a)};
Vra=function(a){var b=Ura();b&&document.addEventListener(b,a,!1)};
Wra=function(a){var b=Ura();b&&document.removeEventListener(b,a,!1)};
Ura=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Oo+"VisibilityState"])return"";a=Oo+"visibilitychange"}return a};
lS=function(){g.R.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.pe()};
Vra(this.B);this.C=this.getVisibilityState(this.lf(),this.isFullscreen(),this.me(),this.isInline(),this.Mo(),this.Lo())};
Xra=function(a){this.end=this.start=a};
pS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.B=b;this.i=c;this.za=new Map;this.C=new Map;this.X=[];this.l=[];this.ga=NaN;this.Y=this.W=null;this.ia=new g.M(function(){mS(d,d.ga)});
this.events=new g.XM(this);this.isLiveNow=!0;this.Ca=g.S(this.B.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.I=new g.M(function(){d.J=!0;d.i.Ia("sdai","aftimeout."+d.Ca.toString());nS(d,!1)},this.Ca);
this.J=!1;this.la=new Map;this.ea=[];this.L=null;this.ca=[];this.Ha=[];this.u=void 0;this.ma=0;this.i.getPlayerType();Yra(this.i,this);a=oS(0,Infinity);this.i.addCueRange(a);this.X.push(a);g.I(this,this.ia);g.I(this,this.events);g.I(this,this.I);this.events.N(this.api,g.AD("serverstitchedcuerange"),this.zd);this.events.N(this.api,g.BD("serverstitchedcuerange"),this.mf)};
asa=function(a,b,c,d,e,f,h){if(g.U(a.B.experiments,"web_player_ss_timeout_skip_ads")&&Zra(a,e,e+d))return"";a.J&&a.i.Ia("sdai","adaftto");var l=a.i;f=void 0===f?e+d:f;if(e>f)return a.fd("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),"";var m=1E3*l.Hc();if(e<m)return a.fd("Invalid playback enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+m),"";l=1E3*l.getDuration();if(f>l)return a.fd("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+
l),"";l=null;m=g.q(a.l);for(var n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Zb&&e<n.Xc||f<=n.Xc&&f>n.Zb)return a.fd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+qS(n))),"";if(f===n.Zb)return a.fd("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+qS(n))),"";
e===n.Xc&&(l=n)}m="childplayback_"+$ra++;h=h||b.raw_player_response;h||g.U(a.B.experiments,"web_player_parse_ad_response_killswitch")||(n=b.player_response)&&(h=JSON.parse(n));b.cpn||(b.cpn=$t());n=b.cpn;b=new g.wH(a.B,b);b.Qc=m;c={Qc:m,playerType:c,durationMs:d,Zb:e,Xc:f,playerResponse:h,cpn:n,videoData:b};a.l=a.l.concat(c).sort(function(p,r){return p.Zb-r.Zb});
l?c.Dm=l.Dm:c.Dm=c.cpn;a.I.isActive()&&(a.J=!1,a.I.stop(),nS(a,!0));a.aa();return m};
oS=function(a,b){return new g.xD(a,b,{namespace:"serverstitchedcuerange",priority:7})};
bsa=function(a,b,c){var d={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Zb:0,playerType:1,Xc:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){d=a.l.find(function(f){return f.cpn===b.adCpn});
var e=a.l.find(function(f){return f.cpn===c.adCpn});
e&&d&&rS(a.i,e,d,c.xk,b.xk)}else!b.isAd&&c.isAd?(a.api.V("serverstitchedvideochange"),e=c.Yd,a.ma=e.end-e.start,(e=a.l.find(function(f){return f.cpn===c.adCpn}))&&rS(a.i,e,d,c.xk,b.xk)):b.isAd&&!c.isAd&&(e=a.l.find(function(f){return f.cpn===b.adCpn}))&&(a.api.V("serverstitchedvideochange",e.Qc),a.ma=0,rS(a.i,d,e,c.xk,b.xk))};
sS=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.l);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Zb/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Qj:e,qn:b-d};d=h-e.Xc/1E3}return{Qj:void 0,qn:b-d}};
tS=function(a,b){for(var c={},d=g.q(a.C),e=d.next();!e.done;c={Hv:c.Hv},e=d.next()){e=g.q(e.value);var f=e.next().value;c.Hv=e.next().value;if(f.start<=b&&f.end>=b)return a.l.find(function(h){return function(l){return l.cpn===h.Hv}}(c))}};
mS=function(a,b){var c=a.Y||a.api.hc().getPlayerState();uS(a,!0);var d=sS(a,b).qn;a.aa();a.aa();a.i.seekTo(d);d=a.api.hc();var e=d.getPlayerState();g.hK(c)&&!g.hK(e)?d.playVideo():g.W(c,4)&&!g.W(e,4)&&d.pauseVideo()};
uS=function(a,b){a.ga=NaN;a.ia.stop();a.W&&b&&vS(a.W);a.Y=null;a.W=null};
wS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.aa();for(var d=b,e=c,f=g.q(a.za),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Eh>=d&&l.target&&l.target.Xc<=e&&(a.i.removeCueRange(h),a.za["delete"](h))}d=b;e=c;f=[];h=g.q(a.l);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Zb<d||l.Xc>e)&&f.push(l);a.l=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.i.removeCueRange(h),a.C["delete"](h));d=sS(a,b/
1E3);b=d.Qj;d=d.qn;b&&(d=1E3*d-b.Zb,csa(a,b,d,b.Zb+d));(b=sS(a,c/1E3).Qj)&&a.fd("Invalid clearEndTimeMs="+c+" that falls during "+qS(b)+".Child playbacks can only have duration updated not their start.")};
csa=function(a,b,c,d){a.aa();b.durationMs=c;b.Xc=d;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===b.cpn&&(c=f)}if(c){a=g.q(a.X);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Zb+b.durationMs:d.end===c.start&&(d.end=b.Zb);c.start=b.Zb;c.end=b.Zb+b.durationMs}};
qS=function(a){var b;return"playback={timelinePlaybackId="+a.Qc+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Zb+" parentReturnTimeMs="+a.Xc+"}"};
dsa=function(a,b,c){c=a.la.get(c);c||(c=0,a.B.Z("web_player_ss_media_time_offset")&&(c=0===a.i.getStreamTimeOffset()?a.i.pc():a.i.getStreamTimeOffset()),c=sS(a,b+c,1).Qj);return c};
esa=function(a,b,c){for(var d=g.q(a.X.entries()),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;f.start<b&&f.end>c?(e=f.end,f.end=b,e=oS(c,e),a.i.addCueRange(e),g.zb(a.X,e,function(h,l){return h.start-l.start})):f.start>=b&&f.start<c&&f.end>c?f.start=c:f.end>b&&f.end<=c&&f.start<b?f.end=b:f.start>=b&&f.end<=c&&(a.i.removeCueRange(f),a.X.splice(e,1))}};
fsa=function(a,b){for(var c=g.q(a.ea),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.ea.push(new Xra(b))};
gsa=function(a,b){for(var c=g.q(a.ea),d=c.next();!d.done;d=c.next())if(d=d.value,b>=d.start&&b<=d.end)return!0;return!1};
hsa=function(a,b){for(var c=[],d=g.q(a.l),e=d.next();!e.done;e=d.next())e=e.value,e.Dm===b&&e.cpn&&c.push(e.cpn);return c};
Zra=function(a,b,c){if(!a.ca.length)return!1;for(var d={},e=g.q(a.ca),f=e.next();!f.done;d={Qn:d.Qn},f=e.next()){d.Qn=f.value;f=1E3*d.Qn.startSecs;var h=1E3*d.Qn.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return ai(a.Ha,function(l){return function(m){return m.identifier===l.Qn.identifier}}(d))||(a.i.Ia("sdai","adskip_"+b),a.Ha.push(d.Qn)),!0}return!1};
nS=function(a,b){g.U(a.B.experiments,"html5_high_res_logging")&&a.i.Ia("sdai","adf.0");a.J&&a.L&&a.ca.push(a.L);a.L=null;var c=a.i;if(c.l){c=c.l;var d=c.u,e=c.currentTime;wB(d,"sdai","adfetchdone_to_"+b);b&&!isNaN(d.I)&&xB(d,e,d.I,d.C);d.l=4;g.en(c.W)}};
xS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.C=b;this.l=c;this.I=new Map;this.i=[];this.u=this.L=null;this.X=NaN;this.J=this.B=null;this.W=new g.M(function(){isa(d,d.X)});
this.Y=[];this.ca=new g.M(function(){var e=d.Y.pop();if(e){var f=e.Qc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Y.length&&g.en(d.ca,4500))}});
this.events=new g.XM(this);c.getPlayerType();g.I(this,this.W);g.I(this,this.ca);g.I(this,this.events);this.events.N(this.api,g.AD("childplayback"),this.zd);this.events.N(this.api,"onQueuedVideoLoaded",this.zO);this.events.N(this.api,"presentingplayerstatechange",this.ug)};
msa=function(a,b,c,d,e,f){var h=a.l;f=void 0===f?e+d:f;if(e>f)return a.fd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.Hc();if(e<l)return a.fd("e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+l),"";l=1E3*h.getDuration();if(f>l)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.pc(),a.fd(h),"";l=null;for(var m=g.q(a.i),
n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Zb&&e<n.Xc)return a.fd("e.overlappingEnter"),a.aa(),"";if(f<=n.Xc&&f>n.Zb)return a.fd("e.overlappingReturn"),a.aa(),"";if(f===n.Zb)return a.fd("e.outOfOrder"),a.aa(),"";e===n.Xc&&(l=n)}m="childplayback_"+jsa++;n={Yd:yS(d,!0),Eh:Infinity,target:null};var p={Qc:m,playerVars:b,playerType:c,durationMs:d,Zb:e,Xc:f,dl:n};a.i=a.i.concat(p).sort(function(w,x){return w.Zb-x.Zb});
l?ksa(a,l,{Yd:yS(l.durationMs,!0),Eh:a.C.Z("timeline_manager_transition_killswitch")?Infinity:l.dl.Eh,target:p}):(b={Yd:yS(e,!1),Eh:e,target:p},a.I.set(b.Yd,b),a.aa(),h.addCueRange(b.Yd));b=g.U(a.C.experiments,"html5_gapless_preloading");if(a.l===a.api.hc()&&(h=1E3*h.getCurrentTime(),h>=p.Zb&&h<p.Xc)){var r=a.api.hc().getPlayerState(),t=h-p.Zb;am(function(){lsa(a,p,t/1E3,r)});
b=!1}b&&(a.Y.unshift(p),g.en(a.ca,0));a.aa();return m};
yS=function(a,b){return new g.xD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
nsa=function(a,b,c,d){a.aa();a.u=d;a.api.wt(a.l,c,b)};
osa=function(a,b,c,d){a.aa();a.u=d;d=b.Qc;var e=b.playerVars,f=b.playerType;a.L=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
ksa=function(a,b,c){var d=b.dl;b.dl=c;zS(a,b)&&(c=a.api.hc(),d.Yd===a.u&&AS(a),a.aa(),c.removeCueRange(d.Yd),b=b.dl,a.aa(),c.addCueRange(b.Yd))};
AS=function(a){a.L=null;a.u=null;a.api.No()||a.api.clearQueue()};
psa=function(a,b){zS(a,b)||a.fd("e.childPlaybackIsNotPresenting");if(b.Xc===b.Zb+b.durationMs){var c=a.api.hc();return b.Zb+1E3*c.getCurrentTime()}return b.Xc};
BS=function(a,b){for(var c=0,d=g.q(a.i),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Zb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Qj:e,qn:b-f};c=h-e.Xc/1E3}return{Qj:null,qn:b-c}};
isa=function(a,b){var c=a.J||a.api.hc().getPlayerState();CS(a,!0);var d=g.U(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:DS(a.l),e=BS(a,d);d=e.Qj;e=e.qn;var f=d&&!zS(a,d)||!d&&a.l!==a.api.hc(),h=1E3*e;h=a.u&&a.u.start<=h&&h<=a.u.end;!f&&h||AS(a);a.aa();d?(a.aa(),lsa(a,d,e,c)):(a.aa(),ES(a,e,c))};
ES=function(a,b,c){var d=a.l,e=a.api.hc();d!==e&&a.api.oi(d.getPlayerType());d.seekTo(b);qsa(a,c)};
lsa=function(a,b,c,d){var e=zS(a,b);if(!e){a.api.oi(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.wH(a.C,b.playerVars);f.Qc=b.Qc;a.api.nk(f,b.playerType)}f=a.api.hc();e||(b=b.dl,a.aa(),f.addCueRange(b.Yd));f.seekTo(c);qsa(a,d)};
qsa=function(a,b){var c=a.api.hc(),d=c.getPlayerState();g.hK(b)&&!g.hK(d)?c.playVideo():g.W(b,4)&&!g.W(d,4)&&c.pauseVideo()};
CS=function(a,b){a.X=NaN;a.W.stop();a.B&&b&&vS(a.B);a.J=null;a.B=null};
zS=function(a,b){var c=a.api.hc();return!!c&&c.getVideoData().Qc===b.Qc};
rsa=function(a){var b=a.i.find(function(d){return zS(a,d)});
if(b){AS(a);var c=new g.bK(8);b=psa(a,b)/1E3;ES(a,b,c)}};
GS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.aa();for(var d=b,e=c,f=g.q(a.I),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Eh>=d&&l.target&&l.target.Xc<=e&&(a.l.removeCueRange(h),a.I["delete"](h))}d=b;e=c;f=[];h=g.q(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Zb>=d&&l.Xc<=e){var m=a;m.L===l&&AS(m);zS(m,l)&&m.api.Nl(l.playerType)}else f.push(l);a.i=f;d=BS(a,b/1E3);b=d.Qj;d=d.qn;b&&(d*=1E3,ssa(a,b,d,b.Xc===b.Zb+b.durationMs?b.Zb+d:
b.Xc));(b=BS(a,c/1E3).Qj)&&a.fd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Qc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Zb+" parentReturnTimeMs="+b.Xc+"}.Child playbacks can only have duration updated not their start."))};
ssa=function(a,b,c,d){a.aa();b.durationMs=c;b.Xc=d;d={Yd:yS(c,!0),Eh:c,target:null};ksa(a,b,d);zS(a,b)&&1E3*a.api.hc().getCurrentTime()>c&&(b=psa(a,b)/1E3,c=a.api.hc().getPlayerState(),ES(a,b,c))};
usa=function(a){a&&"web"!==a&&tsa.includes(a)};
JS=function(a,b){g.E.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.M(function(){HS(c);IS(c)});
g.I(this,this.i)};
HS=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire<b&&KS(a,c,!0)});
a.data=g.Ne(a.data,function(c){return!(c.expire<b)})};
KS=function(a,b,c){c&&a.l&&a.l(b.value)};
IS=function(a){a.i.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.i.start(Math.max(b-g.Sa(),0))};
LS=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.l=this.i=a-1};
vsa=function(a){return a.data[a.i]||0};
MS=function(a){g.E.call(this);this.B=a;this.i=new Map;this.l=new g.M(this.u,250,this);g.I(this,this.l);this.start()};
NS=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)var d=void 0;else{d=c.buffer;for(var e=[];d.l!==d.i;)d.l=(d.l+1)%d.data.length,e.push(d.data[d.l]);d=e}return d||[]};
OS=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:vsa(c.buffer))||0};
PS=function(a){this.l=a;this.i=NaN;this.buffer=new LS(100)};
wsa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Vb()+")":a.Vb()};
QS=function(a,b){g.E.call(this);var c=this;this.i=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.l=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.l.observe(a)};
SS=function(a){g.X.call(this,{D:"div",ka:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",K:g.RS.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.rq=this.ha(g.RS.VIDEO_CONTAINER);this.lp=new g.cg(0,0,0,0);this.qb=null;this.Nu=new g.cg(0,0,0,0);this.ny=this.bz=this.az=NaN;this.Zt=this.KC=!1;this.tx=NaN;this.Ly=!1;this.ur=null;this.dispatchEvent=function(){};
this.qz=function(){b.element.focus()};
this.Fv=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.Ok("ytp-transparent");"0"===e.controlsType&&this.Ok("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.Z("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");e.Z("web_player_bigger_buttons_like_mobile")&&g.N(this.element,"ytp-exp-bigger-button-like-mobile");cha(this.element,xsa(a));this.QG=!1;oG(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.Fv="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),
size:new g.ke(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ke(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.ke(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ke(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ke(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.ke(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.ke(426,240)},
{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ke(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ke(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ke(640,360)}]);this.KA=e.useFastSizingOnWatchDefault;this.Iq=new g.ke(NaN,NaN);ysa(this);this.N(a.Ea,"onMutedAutoplayChange",this.Fr)};
ysa=function(a){function b(){a.qb&&TS(a);US(a)!==a.Ly&&a.resize()}
function c(h,l){a.Go(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.Nu=new g.cg(0,0,0,0);a.lp=new g.cg(0,0,0,0)}
var f=a.app.Ea;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Gi(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
zsa=function(a){var b=g.U(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Y(a.app);if(c=c?c.getVideoData():null){if(g.dI(c)||g.eI(c)||g.gI(c))return 16/9;if(b&&KH(c)&&c.u.i)return b=c.u.videoInfos[0].video,VS(b.width,b.height)}return(a=a.qb)?VS(a.videoWidth,a.videoHeight):b?16/9:NaN};
Asa=function(a,b,c,d){var e=c,f=VS(b.width,b.height);a.KC?e=c<f?Infinity:0:isNaN(a.ny)?isNaN(a.bz)||(e=a.bz):e=a.ny;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};
VS=function(a,b){return 1>Math.abs(WS*b-a)||1>Math.abs(WS/a-b)?WS:a/b};
US=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Y(a.app);if(!b||b.hk())return!1;var c=a.app.Ea.Xa();a=!g.W(c,2)||!g.U(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().za;b=g.W(c,1024);return c&&a&&!b&&!c.isCued()};
TS=function(a){var b="3"===a.app.T().controlsType&&!a.Zt&&US(a)&&!a.app.xr||!1;a.qb.controls=b;a.qb.tabIndex=b?0:-1;b?a.qb.removeEventListener("focus",a.qz):g.U(a.app.T().experiments,"disable_focus_redirect")||a.qb.addEventListener("focus",a.qz)};
Bsa=function(a){var b=a.Vf(),c=1,d=!1,e=Asa(a,b,a.getVideoAspectRatio()),f=iq();if(US(a)){var h=zsa(a);var l=isNaN(h)||g.Fs||XS&&g.Zr;jq&&!g.ce(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.cg(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.cg((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Zr&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));if(f||a.QG)a.qb.style.display="";a.Ly=!0}else{l=-b.height;jq?l*=window.devicePixelRatio:g.xG&&(l-=window.screen.height);
l=new g.cg(0,l,b.width,b.height);if(f||a.QG)a.qb.style.display="none";a.Ly=!1}dg(a.Nu,l)||(a.Nu=l,g.XF(a.app.T())?(a.qb.style.setProperty("width",l.width+"px","important"),a.qb.style.setProperty("height",l.height+"px","important")):g.Dg(a.qb,new g.ke(l.width,l.height)),d=new g.ie(l.left,l.top),g.ug(a.qb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.cg((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);dg(a.lp,b)||(a.lp=b,d=!0);g.mg(a.qb,"transform",1===c?"":"scaleX("+c+")");return d};
Csa=function(){this.csn=g.iu();this.clientPlaybackNonce=null;this.elements=new Set;this.u=new Set;this.i=new Set;this.l=new Set};
Dsa=function(a,b){a.elements.has(b);a.elements["delete"](b);a.u["delete"](b);a.i["delete"](b);a.l["delete"](b)};
Esa=function(a){if(a.csn!==g.iu())if("UNDEFINED_CSN"===a.csn)a.csn=g.iu();else{var b=g.iu(),c=g.gu();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.wu(b,c,e)}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.pu(b,c,void 0)}};
YS=function(a,b,c,d,e){g.X.call(this,{D:"div",K:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.l=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.I+"em"};
ZS=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Ie("CANVAS"),a.l=c.getContext("2d")}catch(e){}if(a.l){var d=a.i*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.Ie("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.l&&(c=1<(window.devicePixelRatio||1)?2:1,a.u.height=a.heightPx*c,a.u.style.height=
a.heightPx+"px",a.l.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.l?a.l.clearRect(c*a.i,0,a.i,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
$S=function(a){var b=null;b={D:"button",ka:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},ba:"[x]"};g.X.call(this,{D:"div",K:"html5-video-info-panel",S:[b,{D:"div",K:"html5-video-info-panel-content",S:[{D:"div",S:[{D:"div",ba:"Video ID / sCPN"},{D:"span",ba:"{{video_id_and_cpn}}"}]},{D:"div",S:[{D:"div",ba:"Viewport / Frames"},{D:"span",ba:"{{dims_and_frames}}"}]},{D:"div",S:[{D:"div",ba:"Current / Optimal Res"},{D:"span",ba:"{{resolution}}"}]},{D:"div",S:[{D:"div",ba:"Volume / Normalized"},
{D:"span",ba:"{{volume}}"}]},{D:"div",S:[{D:"div",ba:"Codecs"},{D:"span",ba:"{{codecs}}"}]},{D:"div",U:{style:"{{shader_info_style}}"},S:[{D:"div",ba:"Shader Info"},{D:"span",ba:"{{shader_info}}"}]},{D:"div",U:{style:"{{color_style}}"},S:[{D:"div",ba:"Color"},{D:"span",ba:"{{color}}"}]},{D:"div",U:{style:"{{drm_style}}"},S:[{D:"div",ba:"Protected"},{D:"span",ba:"{{drm}}"}]},{D:"div",U:{style:"{{bandwidth_style}}"},S:[{D:"div",ba:"Connection Speed"},{D:"span",S:[{D:"span",ba:"{{bandwidth_chart}}"},
{D:"span",ba:"{{bandwidth_kbps}}"}]}]},{D:"div",U:{style:"{{network_activity_style}}"},S:[{D:"div",ba:"Network Activity"},{D:"span",S:[{D:"span",ba:"{{network_activity_chart}}"},{D:"span",ba:"{{network_activity_bytes}}"}]}]},{D:"div",S:[{D:"div",ba:"Buffer Health"},{D:"span",S:[{D:"span",ba:"{{buffer_health_chart}}"},{D:"span",ba:"{{buffer_health_seconds}}"}]}]},{D:"div",U:{style:"{{live_latency_style}}"},S:[{D:"div",ba:"Live Latency"},{D:"span",S:[{D:"span",ba:"{{live_latency_chart}}"},{D:"span",
ba:"{{live_latency_secs}}"}]}]},{D:"div",U:{style:"{{live_mode_style}}"},S:[{D:"div",ba:"Live Mode"},{D:"span",ba:"{{live_mode}}"}]},{D:"div",U:{style:"{{playback_categories_style}}"},S:[{D:"div",ba:"Playback Categories"},{D:"span",ba:"{{playback_categories}}"}]},{D:"div",S:[{D:"div",ba:"Mystery Text"},{D:"span",ba:"{{debug_info}}"}]},{D:"div",U:{style:"{{release_style}}"},S:[{D:"div",ba:"Player Release"},{D:"span",ba:"{{release_name}}"}]}]}]});b&&(b=this.ha("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.i=new YS(300,1,150,b,c);g.I(this,this.i);this.Ba("bandwidth_chart",this.i);this.u=new YS(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.I(this,this.u);this.Ba("live_latency_chart",this.u);this.l=new YS(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.I(this,this.l);this.Ba("buffer_health_chart",this.l);this.B=new YS(300,1,150,d,c);g.I(this,this.B);this.Ba("network_activity_chart",this.B);this.delay=new g.M(this.wa,
500,this);g.I(this,this.delay);this.C=a};
Fsa=function(a){a=void 0===a?{}:a;var b=a.yf,c=a.fg,d=a.Rb,e=a.Co;this.Uj=a.Uj;this.yf=b;this.fg=c;this.Rb=d;this.Co=e};
Gsa=function(a,b){if(0>b)return!0;var c=a.Rb();return b<c||b===c&&!a.Uj||b===c&&(c=a.Co())&&b===c.va?!0:!1};
Hsa=function(a,b,c){if(!Gsa(a,b))return 0;if(!a.yf||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Rb();return b<c||b===c&&(a=a.Co())&&b===a.va&&!a.pending?2:1};
Isa=function(a){this.schedule=a;this.i=NaN;this.l=[];this.totalBytes=0};
Jsa=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.kh?!1:e.kh;var f=void 0===e.dj?!1:e.dj,h=void 0===e.hn?!1:e.hn,l=e.sg,m=e.va;e=e.le;this.ga=null;this.ia=this.i=NaN;this.Ha=0;this.Y=this.la=this.l=this.B=NaN;this.za=this.ea=this.isActive=!1;this.u=0;this.ca=NaN;this.L=this.I=Infinity;this.X=NaN;this.Ca=!1;this.J=this.W=NaN;this.C=this.ma=void 0;this.kh=d;this.dj=f;this.hn=h;this.sg=l;this.va=m;this.le=e;this.schedule=a;this.Ja=b;this.La=c;this.snapshot=ZB(this.schedule)};
Ksa=function(a){return{rt:(g.Sa()-a.i).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.ca).toFixed(),pb:a.Ja.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.ia-a.i).toFixed(),elbowBytes:a.Ha.toFixed()}};
Nsa=function(a){a.i=g.Sa();a.B=a.i;a.l=0;a.la=a.i;a.Y=0;a.C&&(a.C=[]);a.ea=!1;a.za=!1;a.u=0;a.snapshot=ZB(a.schedule);a.I=Infinity;a.L=Infinity;Lsa(a);Msa(a,a.i);a.ca=(a.W-a.i)/1E3;a.J=NaN;a.ma=void 0};
aT=function(a){!a.J&&a.ga&&(a.J=a.ga(),3===a.J&&(a.ma=new Isa(a.schedule)));return a.J};
Psa=function(a,b,c,d){var e=(b-a.B)/1E3,f=c-a.l,h=aT(a);if(3===h&&f){var l=a.ma;l.l.push({G3:f,Z3:isNaN(l.i)?NaN:d-l.i,N3:d});l.i=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.u+=e,.2<e&&cT(a,.05,f)):cT(a,e,f),a.za=!0):bT(a,c)&&(1===h&&(d=(b-a.i)/1E3,Osa(a)||a.dj||(h=a.schedule,h.C.ih(1,d),aC(h))),a.ia=b,a.Ha=c,a.isActive=!0);a.dj||WB(a.schedule,e,f);a.B=b;a.l=c};
cT=function(a,b,c){if(!a.dj){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.hn;a=void 0===a?!1:a;d.l.ih(void 0===b?e:b,c/e);a||(d.J=TB())}};
eT=function(a,b,c){c=Math.round(c/1024);a.C&&a.C.push(dT(b-a.la,c-a.Y));a.la=b;a.Y=c};
bT=function(a,b){return b?a.sg&&1!==aT(a)?!0:2048<=b:!1};
fT=function(a){return bT(a,a.l)};
Lsa=function(a){a.X=a.i+1E3*a.snapshot.delay;a.Ca=!1};
gT=function(a,b){if(a.sg&&void 0!==a.va&&void 0!==a.le){var c=Math,d=c.min,e=a.I;var f=a.sg;var h=a.i;if(Gsa(f,a.va))f=b;else{var l=0;f.yf&&(l=.2);f=h+1E3*(f.fg+l)}a.I=d.call(c,e,f);c=Math;d=c.min;e=a.L;f=a.sg;h=a.i;l=Hsa(f,a.va,a.le);2===l?f=b:(h=l?b:h+1E3*f.fg,f.yf&&(h+=1E3*f.fg),f=h);a.L=d.call(c,e,f);a.I<=a.i?Lsa(a):(a.X=a.I,a.Ca=!0)}};
Osa=function(a){a.sg&&gT(a,g.Sa());return a.Ca};
Msa=function(a,b){b=void 0===b?g.Sa():b;if(a.sg){gT(a,b);var c=a.J?a.sg?1!==aT(a):!1:a.I!==a.L;if(c){if(c=a.L,b<c){a.W=a.L;return}}else c=a.I;c=Math.max(c,a.X)}else c=a.X;var d=a.Ja-a.l;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=fT(a)?d+b:d+Math.max(b,c);a.W=d};
dT=function(a,b){for(var c="";4095<a;)c+=dT(4095,0),a-=4095;for(;4095<b;)c+=dT(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))};
hT=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
iT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Sc&&(d=Math.abs(d));d/=a.playbackRate;var f=1/YB(a.schedule);var h=.9*(d-a.policy.Bf);h=Math.max(h,VB(a.schedule)+2048*f);c=h/f*a.policy.xm/(b+c);c=Math.min(c,d);a.policy.Zc&&e&&(c=Math.max(c,a.policy.Zc));return Qsa(a,c,b)};
Qsa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.wm*c),Math.min(Math.min(a.policy.ia,31*c),Math.ceil(b*c))))||65536};
Rsa=function(a,b){var c=Qsa(a,b.video?a.policy.Dp:a.policy.Ri,b.l);return a.policy.gh&&b.video?Math.max(c,a.policy.gh):c};
jT=function(a){var b=YB(a.schedule);if(a.policy.Dk)return b;var c=a.policy.tm,d=1E-9+VB(a.schedule);b*=Math.min(1,c/(b*d));a.policy.fh&&(c=((SB(a.schedule.u,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.policy.fh*c);return b};
kT=function(a){return jT(a)/a.playbackRate};
lT=function(){this.u=this.B=0;this.ticks={}};
Ssa=function(a,b,c,d,e,f){e=void 0===e?[]:e;this.ca=a;this.policy=b;this.C=c;this.I=d;this.Ha=e;this.ma=void 0===f?function(){}:f;
this.l=uH;this.i=this.W=null;this.X=-1;this.nextVideo=this.u=null;this.B=[];this.ia={};this.L=0;this.za=this.Y=this.J=!1;this.ea=0;this.la=new Set;this.Ca=!1;this.ga=null;this.l=uH;this.la=new Set};
Wsa=function(a,b,c){mT(a,b);Tsa(a,c);a.W=a.u;Usa(a);a.i=a.nextVideo;return Vsa(a)};
Xsa=function(a,b){if(NE(a.l,b))return null;if("m"===b.reason&&b.isLocked())return a.aa(),mT(a,b),a.L=a.B.length-1,nT(a),oT(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new GB(a.u,a.i,b.reason);"r"===b.reason&&(a.X=-1);mT(a,b);oT(a);if("r"===b.reason&&a.nextVideo===a.i)return new GB(a.u,a.nextVideo,b.reason);if(a.i&&a.nextVideo&&pT(a,a.i.info)<pT(a,a.nextVideo.info)){var c=a.l.reason;a.J=a.J||"r"===c||"u"===c||"v"===c}return null};
Ysa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,Vsa(a)}else a.za=a.W!==b,a.W=b;return null};
qT=function(a,b){b.W=(0,g.Q)();a.X=-1;mT(a,a.l);a.J=a.J||a.policy.qp};
rT=function(a){for(var b=(0,g.Q)()-6E4,c=g.q(a.I.videoInfos),d=c.next();!d.done;d=c.next())if(a.C.i[d.value.id].W>b)return!0;return!1};
Zsa=function(a,b){return new GB(a.W,a.i,b||a.l.reason)};
sT=function(a){return a.l.isLocked()};
$sa=function(a){return 0<a.B.length&&0===a.L};
Vsa=function(a){a.X=(0,g.Q)();a.J=!1;return new GB(a.W,a.i,a.l.reason)};
ata=function(a){var b=!sT(a)&&-1<a.X&&8E3>(0,g.Q)()-a.X,c=a.nextVideo&&3*pT(a,a.nextVideo.info)<kT(a.ca);if(!b||c)nT(a),oT(a),a.Y=a.Y||a.nextVideo!==a.i};
bta=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.i,h=c[f],l=h&&vA(h)&&h.video.i>a.policy.za,m=f<=a.policy.za?vA(e):Yy(e);if(!h||l||m)c[f]=e}return c};
mT=function(a,b){a.l=b;var c=a.I.videoInfos;if(!sT(a)){var d=(0,g.Q)()-6E4;c=g.Ne(c,function(p){if(p.l>this.policy.W)return this.aa(),!1;p=this.C.i[p.id];var r=p.info.i;return this.policy.kj&&this.la.has(r)||p.W>d?!1:4<p.l.l||4<p.L?(this.aa(),!1):p.C?!1:!0},a);
if(rT(a)){var e=g.Ne(c,function(p){p=p.Vb();return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.I.videoInfos);e=g.Ne(c,b.B,b);if(a.policy.vj||a.policy.Jh){var f="m"===b.reason||"s"===b.reason;a.policy.Ck&&XS&&g.Zr&&(!f||1080>b.i)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.B}));
if(!MA()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.i;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.i===h});
var l=bta(a,f)[h].i;e=e.filter(function(p){return!!p&&!!p.video&&p.i===l})}}var m=bta(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.i===m[p.video.i].i})}e.length||(e=[c[0]]);
e.sort(function(p,r){return pT(a,p)-pT(a,r)});
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(a.aa(),g.jb(e,c),c--):pT(a,f)*a.policy.l>pT(a,n)&&(a.aa(),g.jb(e,c-1),c--)}c=e[e.length-1];a.Ca=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.aa();a.B=e;Qfa(a.policy,c)};
Tsa=function(a,b){if(b)a.u=a.C.i[b];else{var c=g.cb(a.I.i,function(d){return!!d.u&&d.u.isDefault});
c=c||a.I.i[0];a.u=a.C.i[c.id]}nT(a)};
cta=function(a,b){for(var c=0;c+1<a.B.length&&"tiny"===a.B[c].Na().quality;)c++;var d=kT(a.ca)/a.policy.l;return pT(a,b.info)+pT(a,a.B[c])>d};
nT=function(a){if(!a.u||!a.policy.i)if(!a.u||!a.u.info.u)if(a.u=a.C.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Ca){if(b=!0,a.policy.pm){var c=bb(a.I.i,function(d){return"250"===d.Vb()});
0<=c&&(a.u=a.C.i[a.I.i[c].id],b=cta(a,a.u))}}else b=a.l.isLocked()?240>a.l.i:cta(a,a.u);b&&(a.u=a.C.i[g.ab(a.I.i).id])}};
oT=function(a){a.policy.af&&(a.ga=a.ga||new g.M(function(){a.policy.af&&a.i&&!rT(a)&&1===Math.floor(10*Math.random())?qT(a,a.i):a.ga.start()},6E4),g.en(a.ga));
if(!a.nextVideo||!a.policy.i)if(sT(a))a.nextVideo=360>=a.l.i?a.C.i[a.B[0].id]:a.C.i[g.ab(a.B).id],a.aa();else{for(var b=Math.min(a.L,a.B.length-1),c=kT(a.ca),d=pT(a,a.u.info),e=c/a.policy.u-d;0<b&&!(pT(a,a.B[b])<=e);b--);for(c=c/a.policy.l-d;b<a.B.length-1&&!(pT(a,a.B[b+1])>=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.L!==b&&a.aa();a.L=b}};
Usa=function(a){var b=a.policy.u,c=kT(a.ca)/b-pT(a,a.u.info);b=g.db(a.B,function(d){return pT(this,d)<c},a);
0>b&&(b=0);a.L=b;a.nextVideo=a.C.i[a.B[b].id];a.aa();a.Ha.length&&dta(a)};
dta=function(a){var b=a.Ha;if(!b.includes(a.nextVideo.Bo())){for(var c=g.q(a.I.videoInfos),d=c.next();!d.done;d=c.next()){d=a.C.i[d.value.id];var e=d.Bo();if(b.includes(e)){b=a.nextVideo.info.Vb();c=d.info.Vb();a.ma("onesieIfa","f."+b+";t."+c);a.aa();a.nextVideo=d;return}}a.ma("onesieIfa","mismatch."+b.join("."))}};
eta=function(a,b){a.policy.za=fF(b,{},a.I);mT(a,a.l);ata(a);a.J=a.nextVideo!==a.i};
pT=function(a,b){if(!a.ia[b.id]){var c=a.C.i[b.id].index.JD(a.ea,15);c=b.C&&a.i&&a.i.index.Wc()?c||b.C:c||b.l;a.ia[b.id]=c}c=a.ia[b.id];a.policy.lc&&b.video&&b.video.i>a.policy.lc&&(c*=1.5);return c};
fta=function(a,b){var c=Ob(a.C.i,function(d){return d.info.Vb()===b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
gta=function(a){var b=[];if("m"===a.l.reason||"s"===a.l.reason)return b;if(Iga(a.C)){for(var c=Math.max(0,a.L-2);c<a.L&&c<a.B.length;c++){var d=a.B[c].Vb();b.push(d)}b.reverse()}return b};
tT=function(a,b,c,d){this.target=a;this.trigger=b;this.l=c;this.u=d;this.i=0};
ita=function(a,b,c){var d=this;this.l=a;this.oe=b;this.loaded=this.status=0;this.error="";a=iv(this.l.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.i=new Fw;hta(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
hta=function(a){return C(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,F;return z(c,function(D){if(1==D.i){d.status=200;e=d.l.get("docid");f=rd(d.l.get("fmtid")||"");h=+(d.l.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!=D.i)return p<=n?v(D,yfa(e,f,p),5):D.Pb(0);r=D.l;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);F=new Uint8Array(r.buffer,
x,y);d.i.append(F);d.loaded+=y;d.loaded<l.length&&d.oe(g.Sa(),d.loaded);p++;return D.Pb(2)})})};
uT=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.ca=b;this.Y=c;this.ea=d;this.policy=e;this.status=0;this.response=void 0;this.X=!1;this.l=0;this.W=NaN;this.aborted=this.C=this.L=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.i=new Fw;this.id=jta++;this.B=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
lta=function(a,b){a.status=b.status;if(b.ok&&b.body)a.status=a.status||242,a.u=b.body.getReader(),a.na()?a.u.cancel()["catch"](function(){}):(a.J=b.headers,a.ea(),kta(a));
else a.onDone()};
kta=function(a){a.u.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.I&&(a.i.append(a.I),a.I=void 0);b.done?(a.u=void 0,a.onDone()):(a.l+=e.length,mta(a)?a.i.append(e):a.I=e,a.ca(d,a.l,c),kta(a))}},function(b){a.onError(b)}).then(void 0,g.ro)};
mta=function(a){var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.l&&a.policy.yf&&dA(a)&&b};
nta=function(a,b,c,d){var e=this;this.status=0;this.na=this.i=!1;this.l=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.C()};
this.u=c;this.B=b;this.C=d;a=so(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",so(function(f){e.oe(f)}),!1)};
xT=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Ir?[]:h.Ir;var l=void 0===h.gs?!1:h.gs;h=void 0===h.Jm?0:h.Jm;ry.call(this,b,e);var m=this;this.policy=a;this.timing=c;this.lastError=null;this.X=this.u=0;this.ea=!1;this.J=this.I=null;this.timing.ga=function(){var n;if(ota(m)){if(n=m.policy.Aj&&!(!window.performance||!window.performance.now)&&m.xhr&&m.xhr.wl()&&m.fj())n=m.xhr,n=n.policy.yf&&dA(n);n=n?m.info.i[0].i.info.video?3:4:2}else n=1;return n};
this.Y=d;this.gs=l;this.requestNumber=++pta;this.l=g.zy(this.info,this.policy,this.Y);this.l.set("rn",this.requestNumber.toString());this.l.set("rbuf",(1E3*h).toFixed().toString());this.gs&&this.l.set("smb","1");this.Ir=f||null;this.C=qta(this);this.ca=this.policy.Kc*(this.policy.ga?ky(vT(this),!1):1);this.W=new g.M(this.dQ,this.ca,this);this.info.l.C=(0,g.Q)();dga(vT(this));Nsa(this.timing);try{this.xhr=rta(this),this.W.start(),this.aa("Sent, itag="+this.l.get("itag")+(" seg="+this.info.i[0].va)+
(" range="+this.l.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.ab(this.info.i).B))+(" rtp="+(this.timing.W-Date.now()).toFixed(0))+(" isStreaming="+this.fj()))}catch(n){to(n),this.lastError="net.ssl",g.hm(function(){wT(m)})}};
qta=function(a){if(!(yy(a.info)&&a.info.kh()&&a.policy.We&&a.Ir)||2<=a.info.l.l||sta()||!tta())return!1;var b=a.l.get("aitags");if(!b)return!1;var c=rd(b).split(","),d=[];g.Ab(a.Ir,function(e){g.fb(c,e)&&d.push(e)});
if(!d.length)return!1;a.l.set("altitags",qd(d.join(",")));return!0};
vT=function(a){return ly(a.Y,$x(a.l.Ig))};
yta=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",6;if(!b.Xt())return a.lastError=204===b.status?"net.nocontent":"net.connect",6;var c="";if(uta(a)){var d=b.cg();2048>=d.totalLength&&(c=uv(d),c=wv(c),Rx(c)?a.aa():c="")}if(c){d=vT(a);(0,g.Q)();d.started=0;d.l=0;d.i=0;d=a.info;var e=a.l;g.py(d.l,e,c);d.requestId=e.get("req_id");return 4}c=b.Vm();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.Dz())return a.lastError="net.closed",6;vta(a,!0);if(a.policy.zp&&!d&&a.i&&(d=a.i.slices,
d.length&&!Rw(d[0])))return a.lastError="net.closed",6;e=sy(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(d=sy(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.ea=!0,a.policy.qm&&(e=d);d=a.timing;var f=e?Number(e):0;e=g.Sa();if(!d.ea){d.ea=!0;if(!d.dj){e=e>d.i&&4E12>e?e:g.Sa();eT(d,e,c);Psa(d,e,c);var h=aT(d);if(2===h&&f)cT(d,d.l/f,d.l);else if(2===h||1===h)f=(e-d.i)/1E3,(f<=d.schedule.X.i||!d.schedule.X.i)&&!d.za&&fT(d)&&cT(d,f,c),fT(d)&&(f=d.schedule,c=Math.max(c,2048),f.i.ih(1,d.u/c),aC(f));UB(d.schedule,
(e-d.i)/1E3||.05,d.l,d.ca,d.kh,d.hn)}d.deactivate()}c=vT(a);(0,g.Q)();c.started=0;c.l=0;c.i=0;a.info.l.l=0;(0,g.Q)()<wta+3E5||!a.l||ay(a.l.Ig)||!(c=$x(a.l.Ig))||0>c.indexOf("googlevideo.com")||(xta({primary:c}),wta=(0,g.Q)());a.aa();return 5};
wT=function(a){a.aa("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].va)+(" sliced="+(a.i&&a.i.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var b=a.timing,c=g.Sa();if(!b.dj){c=c>b.i&&4E12>c?c:g.Sa();eT(b,c,1024*b.Y);var d=(c-b.i)/1E3;if(2!==aT(b))if(fT(b)){b.u+=(c-b.B)/1E3;var e=b.schedule,f=b.l;f=Math.max(f,2048);e.i.ih(1,b.u/f);aC(e)}else Osa(b)||b.dj||(e=b.schedule,e.C.ih(1,d),aC(e)),b.ia=c;UB(b.schedule,d,b.l,b.ca,b.kh,b.hn);WB(b.schedule,(c-b.B)/1E3,0)}}"net.nocontent"!==
a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError&&a.policy.km?(b=vT(a),b.l+=1):(b=vT(a),b.i+=1),a.info.l.l++);ty(a,6)};
zta=function(a,b){if(b){var c=vT(a);c.u+=1}yT(a);a.lastError="net.timeout";wT(a)};
yT=function(a){a.aa();a.xhr&&a.xhr.abort();a.timing.deactivate()};
uta=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Lq();return(!a.fj()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)};
rta=function(a){var b=a.GI.bind(a),c=a.HI.bind(a),d=a.EP.bind(a);if(ay(a.l.Ig))return new ita(a.l,c,b);var e=g.iy(a.l);return a.policy.ma&&(a.policy.zm&&!isNaN(a.info.le)&&a.info.le>a.policy.em||a.C?0:cA())?new uT(e,c,b,d,a.policy.B):new nta(e,c,b,d)};
vta=function(a,b){if(b||a.xhr.wl()&&a.xhr.rg()&&!uta(a)&&!a.C){if(!a.i){if(a.fj())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Vm();a.i=new gz(a.info.i,c)}for(;a.xhr.rg();)hz(a.i,a.xhr.Bh(),b&&!a.xhr.rg())}};
ota=function(a){if(!a.policy.B.yf||!isNaN(a.info.le)&&0<a.info.le)return!1;if(!a.xhr.wl())return a.aa(),!0;if(!dA(a.xhr))return!1;if(isNaN(a.info.le)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.aa();else if(Number(b)>a.info.i[0].va)return!1}return!0};
zT=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.R.call(this);var n=this;this.schedule=a;this.policy=b;this.i=c;this.La=h;this.X=m;this.timing=new lT;this.mediaSource=null;this.J=this.currentTime=NaN;this.ia=this.Ha=0;this.ca=this.za=this.isSuspended=!1;this.la="";this.ea={};this.Pa=this.le=NaN;this.sg=null;this.timestampOffset=NaN;this.Wa=!1;this.Ca=0;this.L=!1;this.Y=null;this.I=new hT(a,b);a=m&&Object.keys(m.i);this.l=new Ssa(this.I,b,this.i,d,a,this.Uc.bind(this));b=Wsa(this.l,e,f&&f.id);this.audioTrack=
new uz(this.policy,b.audio,function(p,r){return Ata(n,p,r)});
this.videoTrack=new uz(this.policy,b.video,function(p,r){return Ata(n,p,r)});
Bta(this,this.audioTrack);Bta(this,this.videoTrack);this.videoTrack.B.ca=this.audioTrack.B;this.ma={updateend:this.II,error:this.QM};this.W=new g.M(this.Gg,0,this);g.I(this,this.W);this.Ja=new g.M(this.Gg,1E3,this);g.I(this,this.Ja);this.ib=new g.M(this.Gg,void 0,this);g.I(this,this.ib);this.Za=new g.M(this.Gg,1E4,this);g.I(this,this.Za);this.ga=new PB(5);(this.C=aha(this.policy,this.schedule,this.ga,function(p,r){return Cta(n,p,r)}))&&this.C.subscribe("ctmp",this.Uc,this);
this.u=new uB(this.i,this.policy,this.videoTrack,this.audioTrack,l);g.I(this,this.u);this.u.subscribe("ctmp",this.Uc,this);this.B=new AB(this.i,this.videoTrack,this.audioTrack,this.policy,this.u);g.I(this,this.B);Dta(this,this.B);this.aa()};
Eta=function(a){if(!a.X)return!1;var b=a.videoTrack.i.Bo(),c=a.audioTrack.i.Bo();c=void 0!==a.X.i[c]&&!a.X.isFailed(c);a=void 0!==a.X.i[b]&&!a.X.isFailed(b);return c&&a};
Fta=function(a,b,c){function d(m){m.isFailed()?(a.Uc("onesieMbf","1",!0),Pz(b,m),yy(m.info)&&AT(a,b,c,!0),a.Gg()):BT(a,m)&&a.Gg()}
var e=c.Bo(),f=c.an((a.X.i[e].expectedBytes||0)-(c.indexRange.length+c.initRange.length));c.u=!0;for(var h=0;h<f.length;h++){var l=new kz(e,f[h],a.X,d);xz(b,l)}};
Gta=function(a){var b=a.videoTrack.i.index;a.sg=new Fsa({Uj:a.policy.Uj,yf:a.policy.B.yf,fg:b.fg,Rb:function(){return b.Rb()},
Co:function(){return b.Co()}})};
DT=function(a,b){b=b||a.videoTrack&&a.videoTrack.l&&a.videoTrack.l.startTime||a.currentTime;var c=a.videoTrack,d=a.l,e=d.nextVideo&&d.nextVideo.index.oh(b)||0;d.ea!==e&&(d.ia={},d.ea=e,mT(d,d.l));ata(d);d.nextVideo&&!d.nextVideo.index.Wc()&&(d.ea=-1);CT(a,c,d.nextVideo);CT(a,a.audioTrack,a.l.u)};
ET=function(a,b){a.za=b;a.L||(a.aa(),a.isSuspended=!0)};
Hta=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.l&&(Rt(a.mediaSource.i,a.ma,a),Rt(a.mediaSource.l,a.ma,a));vz(a.audioTrack,null);vz(a.videoTrack,null);a.mediaSource=null};
GT=function(a,b){b=void 0===b?!1:b;a.aa();Hta(a);b?(a.aa(),a.L=!0):a.policy.Fc?ET(a,a.Wa):ET(a,!1);FT(a)};
IT=function(a){a.mediaSource&&TA(a.mediaSource)&&(GT(a),a.policy.ym&&HT(a,!0,"fmt.unplayable",{unexpected:1}))};
KT=function(a,b,c){var d=a.u;if(2===d.l||3===d.l||a.isSuspended&&(!bC(a.schedule)||a.za)||a.policy.i&&!bC(a.schedule))return!1;if(a.i.isManifestless){if(0<b.u.length&&b.l&&-1===b.l.va||b.u.length>=a.policy.cm&&!a.policy.oc||!a.policy.mm&&0<b.u.length&&!a.policy.B.yf)return!1;if(b.L)return!a.i.isLive||!isNaN(a.le)}if(Xz(b))return a.aa(),!1;if(!(b.l||a.i.isManifestless&&a.policy.oc&&b.L)){if(!b.i.Je())return!1;Gz(b,a.currentTime)}d=b.u.length+c.u.length;(Qz(b)||Qz(c)||a.i.isLive&&(!a.policy.oc||!b.u.length))&&
--d;if(d+1>=a.policy.fm)return!1;if(!b.l)return!0;d=b.l;if(!oy(d.i.l))return!1;4===d.type&&d.i.Je()&&(b.l=g.ab(d.i.Xu(d)),d=b.l);if(!d.u&&!d.i.Hk(d))return!1;var e=a.i.xe||a.i.J;if(a.i.isManifestless&&e){e=b.i.index.Rb();var f=c.i.index.Rb();e=Math.min(e,f);if(0<b.i.index.Qp&&0<e&&d.va>=e)return b.Y=e,c.Y=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(Sz(b)&&!a.policy.La)return!0;if(d.u||Iz(b)&&Iz(b)+Iz(c)>a.policy.Za)return!1;e=!b.C&&!c.C;f=b===a.videoTrack&&a.L;if(!(c=!!(c.l&&!c.l.u&&c.l.B<d.B)&&
(!a.i.isManifestless||c.l&&c.l.B&&d.B)&&e&&!f||a.policy.Ha&&!b.C&&c.C)&&(c=Aw(d))){c=d.B;a:if(d=a.u,d=d.i?d.i.md:null,a.L&&d)a=d.startSecs+d.durationSecs;else{d=JT(a,b,!0);!sT(a.l)&&0<a.policy.Y&&(e=((0,g.Q)()-a.Ha)/1E3,d=Math.min(d,a.policy.Y+a.policy.qd*e));d=a.currentTime+d;if(a.policy.Xe&&(e=Ita(a)+a.policy.Xe,e<d)){a.Uc("mrl","ori."+d+";mod."+e,!0);a.policy.Ek&&(a.Ha=(0,g.Q)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.J)&&b.isLocked()?!1:!0};
Kta=function(a,b,c){if(KT(a,b,c))if(c=Jta(a,b,c),a.policy.vo&&a.i.isManifestless&&!b.L&&0>c.i[0].va)a.Uc("invalidsq",xw(c.i[0]));else{if(a.Y){var d=a.u;var e=c.i[0].va;d=0>e&&!isNaN(d.C)?d.C:e;e=a.u;var f=(0>d||d===e.C)&&!isNaN(e.I)?e.I:c.i[0].C;if(e=a.Y.Xx(f,d,c.i[0].i.info.id)){f="decurl_itag"+c.i[0].i.info.Vb()+"_sg"+d+"_st"+f.toFixed(3)+".";if(a.policy.Cm&&b.u.length&&d-1===b.u[b.u.length-1].info.i[0].va){a.Uc("sdai","wt_daistate_on_sg"+(d-1));return}a.Uc("sdai",f);c.I=e}}a.policy.hj&&-1!==c.i[0].va&&
c.i[0].va<a.i.Od&&(c=b.i.Ik(a.i.Od,!1));d=c.i[0].va;b.ea===d?b.ia++:(b.ea=d,b.ia=0);xz(b,LT(a,c))}};
Jta=function(a,b,c){if(b.L){if(a.i.isLive){var d=a.i.Od&&a.i.J?b.i.Ik(a.i.Od,!1):b.i.pl(Infinity);d.le=a.le}else d=b.i.Ik(0,!1);a.C?0==d.le&&(d.B=a.C.X):d.B=a.Pa;return d}d=b.l;if(!d.i.Je())return d.i.Qf()?(a=iT(a.I,b.i.info.l,c.i.info.l,0),a=d.i.Tn(d,a)):a=d.i.Pp(d),a;var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.rb?0:d.range.length-(d.rb+d.l),h=d.i;Lta(a,b,e)&&0===f&&(a.i.isManifestless?h=b.i:(h=d.startTime+Mta,d.l&&(h+=d.duration),Gz(b,h),d=b.l,h=d.i));h.Qf()?(c=iT(a.I,h.info.l,c.i.info.l,
e,$sa(a.l)&&a.ca),d=Nta(d,c,Rz(b))):(0>d.va&&(c=Cw(d),c.pr=""+b.u.length,a.B.u&&(c.sk="1"),a.Uc("nosq",d.I+";"+g.JA(c))),d=h.Pp(d));a.L&&d.i.forEach(function(l){l.type=6});
return d};
Lta=function(a,b,c){if(!Rz(b)||!b.i.Je())return!1;var d=Math.min(15,.5*JT(a,b,!0)),e=Sz(b)||c<=d||a.l.J;a.aa("ready to adapt: "+e+", upgrade pending: "+Sz(b)+", health: "+c+", max health: "+d);return e};
Nta=function(a,b,c){b=a.i.Tn(a,b);if(b.range&&1<b.i.length)if(c||b.l.l||b.i[0].i!==a.i)b=a.i.Tn(a,b.i[0].l);else{c=b.i[b.i.length-1];var d=c.l/b.range.length;!c.yd&&.4>d&&(b=a.i.Tn(a,b.range.length-c.l))}return b};
Ota=function(a,b){var c=Ay(b),d=a.I,e=Math.min(2.5,VB(d.schedule));d=jT(d);var f=zw(b.i[0]),h=ay(b.l.i),l=a.policy.i,m;a.sg?m={kh:f,dj:h,hn:l,sg:a.sg,va:b.i[0].va,le:b.le}:m={kh:f,dj:h,hn:l};return new Jsa(a.schedule,c,c-e*d,m)};
LT=function(a,b){Aw(b.i[b.i.length-1])&&Pta(a,Ysa(a.l,b.i[0].i));var c=Ota(a,b);a.policy.Hj&&(c.C=[]);var d={Jm:Math.max(0,b.i[0].C-a.currentTime),Ir:a.policy.We&&yy(b)&&b.i[0].i.info.video?gta(a.l):void 0,gs:a.L};return new xT(a.policy,b,c,a.ea,function(e){a:{var f=e.info.i[0].i,h=f.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||!e.fj()||e.B||!(!a.mediaSource||a.isSuspended||3<Jz(h,a.currentTime))){var l=a.policy.Ze;if(!(!l||e.isComplete()||e.B<l||ny(e.info.l,a.policy,a.ea))){l=
a.ea;var m=$x(my(e.info.l));l=ly(l,m);l.i||l.l||l.started||(l=By(e.info,!0,a.policy.Ye))&&LT(a,l)}if(!a.na()&&2<=e.state){l=a.timing;var n=e.info.i[0].i;m=!l.l&&n.info.video;n=!l.i&&n.info.audio;4===e.state?m?l.tick("vrr"):n&&l.tick("arr"):5===e.state?m?(l.l=g.iy(e.l),op(4)):n&&(l.i=g.iy(e.l)):3===e.state&&m&&op(4);e.isComplete()&&(a.policy.Wa&&(l=Ksa(e.timing),m=e.timing,a.Uc("rqs",g.JA({rn:e.requestNumber.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.fj(),d:m.C?
m.C.join(""):""}))),e.ea&&a.Uc("sbwe3","1",!0));if(4===e.state)Pz(h,e),yy(e.info)&&AT(a,h,f,!0),a.Gg();else if(e.isComplete()&&5===e.info.i[0].type)5===e.state&&(f=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&f instanceof xT&&f.B&&zta(f,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&4!==e.state)if(f=e.xhr?e.xhr.getResponseHeader("X-Response-Itag"):null){a.aa();f=fta(a.l,f);h=e.info.range.length-f.dy();f.u=!0;e.info.i[0].i.u=!1;l=f.an(h)[0];e.info=l;if(e.i){h=e.i;l=l.i;
h.i=l;m=l[0].range;n=uv(h.slices[0].i);uv(g.ab(h.slices).i);for(var p=0;p<h.slices.length;p++){h.slices[p].info=l[p];var r=l[p].range;h.slices[p].i=new Fw([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.C=!1;CT(a,a.videoTrack,f);h=a.videoTrack;h.l&&(h.l.i=f);a.V("constraint",f.info.Na().quality);(h=e.xhr?e.xhr.getResponseHeader("X-Segment-Lmt"):null)&&f instanceof Ey&&(isNaN(f.lastModified)||f.lastModified===+h||Pz(a.videoTrack,e))}else e.C=!1;if(5===e.state){if(BT(a,e),a.u&&(f=a.u,h=e.info,
l=a.Y,0!==f.l&&l&&h.i[0].isVideo()))if(h.i[0].va>f.C&&(f.C=NaN,f.I=NaN),f.i&&f.i.va===h.i[0].va)if(m=f.i.md.event,"start"===m||"continue"===m){if(1===f.l||5===f.l)f.C=h.i[0].va,f.I=h.i[0].C,wB(f,"sdai","joinad_"+f.l+"_sg_"+f.C+"_st_"+f.I.toFixed(3)),f.l=2,l.py(f.i.md)}else f.l=5;else 1===f.l&&(f.l=5)}else if(a.policy.ma&&e.kp()&&!e.isComplete()&&!BT(a,e)&&!e.isFailed())break a;e.isFailed()&&(f=e.info.i[0].i,h=e.lastError,ay(f.l.i)&&(l=g.tf(e.Ie()),a.Uc("dldbrerr",l||"none")),e.canRetry()?(l=(f.info.video&&
1<f.l.l||410===e.u||500===e.u||503===e.u)&&!rT(a.l),m=e.Hs(),n=f.info.video?a.videoTrack:a.audioTrack,l&&(m.stun="1"),HT(a,!1,h,m),a.na()||(l&&(a.aa(),qT(a.l,f)),a.policy.Af&&1===e.info.i.length&&0<e.info.i[0].rb&&f!==n.i&&a.ca?a.V("reattachrequired"):(Pz(n,e),a.Gg()))):ay(f.l.i)?(a.V("localplaybackfailed"),HT(a,!1,"net.closed",{err:e.lastError||"",rn:e.requestNumber.toString()})):(HT(a,!1,h,e.Hs()),e.info.kh()?(f.C=h,a.Gg()):HT(a,!0,"net.retryexhausted",{err:h,rn:e.requestNumber.toString()})));a.Gg();
a.policy.jc&&e.isComplete()&&e.canRetry()&&ny(e.info.l,a.policy,a.ea)&&(f=a.ea,h=$x(e.info.l.i),f=ly(f,h),f.B+a.policy.jc*ky(f,!0)>(0,g.Q)()||(e=By(e.info,!1,a.policy.Ye))&&LT(a,e))}}}}},d)};
Pta=function(a,b){b&&(a.aa(),a.V("videoformatchange",b));a.policy.Ij&&a.l.za&&a.V("audioformatchange",Zsa(a.l,"a"))};
BT=function(a,b){var c=b.info.i[0].i,d=c.info.video?a.videoTrack:a.audioTrack;Qta(a,d,b);b.info.kh()&&!wy(b.info)&&(g.Ab(b.bw(),function(e){Qy(d.B,e)}),a.V("metadata",c));
zz(d);return!!d.cg()};
Qta=function(a,b,c){if(a.i.isManifestless&&b){b.L&&(c.na(),c.isComplete()||c.fj()||c.kp(),b.L=!1);c.Wx()&&a.ga.ih(1,c.Wx());b=c.jB();c=c.FD();a=a.i;for(var d in a.i){var e=a.i[d].index;e.Hi&&(b&&(e.Qp=Math.max(e.Qp,b)),c&&(e.i=Math.max(e.i||0,c)))}}};
NT=function(a){var b=a.mediaSource.i,c=a.mediaSource.l;if(Rta(a)){if(a.policy.Oh){if(!b.Zm()){var d=a.audioTrack.cg();d&&MT(a,b,d)}c.Zm()||(b=a.videoTrack.cg())&&MT(a,c,b)}a.ia||(a.ia=(0,g.Q)())}else{if(a.ia){d=(0,g.Q)()-a.ia;var e=Jz(a.audioTrack,a.currentTime),f=Jz(a.videoTrack,a.currentTime);a.aa();a.Uc("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ia=0}if(a.C){d=a.C;e=a.audioTrack;f=rz(a.mediaSource.l.He());if(d.C)d=bha(d,f);else{if(f=e.cg()){var h=
f.l;h&&h.C&&h.l&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.le&&e.fj()&&(d.C=e,d.W=h,d.u=f.info,d.I=g.Sa()/1E3,d.L=d.I,d.J=d.u.startTime)}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;Sta(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=g.Sa(),e.tick("vda"),rE("vda","video_to_ad"),e.u&&op(4)));if(a.mediaSource&&!TA(a.mediaSource)&&(Sta(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=g.Sa(),d.tick("ada"),rE("ada","video_to_ad"),d.B&&op(4)),d=!0),!a.na()&&a.mediaSource)){!a.policy.la&&Fz(a.videoTrack)&&
Fz(a.audioTrack)&&PA(a.mediaSource)&&!a.mediaSource.Wf()&&(e=wz(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.aa(),e=a.mediaSource,PA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.ee.webkitSourceEndOfStream(e.ee.EOS_NO_ERROR)),e=a.schedule,$B(ZB(e)),e.B=TB()));e=a.policy.gm;f=a.policy.np;d||!(0<e||f)||!PA(a.mediaSource)||Fz(a.videoTrack)||Fz(a.audioTrack)||(b.xs(a.currentTime,f,e),c.xs(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):UA());c&&g.en(a.W)}}};
Rta=function(a){if(Xz(a.videoTrack))return a.aa(),!0;var b=a.u;if(1===b.l||2===b.l||3===b.l)return!0;if(a.policy.Sb)return!1;if(b=a.B.u){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.u.length||d.u.length){var e=0,f=Wy(c.B).concat(Wy(d.B));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.l;c=c.i.info.l+d.i.info.l;e/=c;b=10<e?!0:10>c*(10-e)/kT(b)}else b=!0;(b=!b)||(b=a.videoTrack,b=0<b.u.length&&1==b.B.l.length&&My(b.B).info.J<b.ma)}if(b)return!0;if(!a.ca||!a.policy.Db||10>a.currentTime||360<
a.videoTrack.i.info.Na().i)return!1;b=Tz(a.videoTrack,a.currentTime,a.policy.Db)||Tz(a.audioTrack,a.currentTime,a.policy.Db);return(0<a.videoTrack.u.length||0<a.audioTrack.u.length||KT(a,a.videoTrack,a.audioTrack)||KT(a,a.audioTrack,a.videoTrack))&&b};
Sta=function(a,b,c){if(c.Wf())return!0;if(!c.dx())return!1;var d=b.cg(),e;if(!(e=!d||6===d.info.type)&&(e=a.u)){e=a.u;var f;if(f=0!=e.l&&b===e.ia)e=Oz(e.J),f=d.info.va>(e?e.va:-1);e=!!f}if(e)return!1;e=d.info;f=wz(b);!f||f.yd||qv(f,e)||c.abort();!c.Pq()||MA()?c.FA(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Pq()&&a.Uc("ctu","ct."+MA()+";prev_c."+c.Pq()+";curr_c."+e.i.info.containerType);f=e.i.I;a.policy.zj&&f&&(e=0+f.duration,f=-f.i,0===c.Ht()&&e===c.Vx()||c.Uz(0,e),f!==c.pc()&&
(c.xp(f),Zy&&cz(a.audioTrack.B,c.ky())));if(a.i.u&&0===d.info.rb&&(g.Tw(d.info.i.info)||a.policy.Jp)){if(null==c.Zm()){e=wz(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.L,f=d.info.L,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.yb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Zm(),f=d.info.i.i,e=e!==f&&!g.yb(e,f);e&&a.Uc("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.va);a.policy.kc&&!e&&(g.Tw(d.info.i.info)?(Yv(Qw(d),1836019574),Yv(Qw(d),1718909296)):(e=new aw(Qw(d)),
vw(e),ew(e,524531317,!0),d.i=d.i.split(e.start+e.i).Kn),d.u=!1)}a.policy.Cf&&d.u&&(d.u=!1);e=a.C&&!!a.C.C&&b.i.info.audio;f=a.i.isManifestless||d.u;if(!(a.i.u&&0!==d.info.rb||f&&!e)&&MT(a,c,d))return!0;if(e)return!1;e=a.currentTime+JT(a,b,!1);if(!(e=d.info.C>e)){a:if(a.policy.Zg&&(!d.info.rb||d.info.yd)&&a.Uc("sba",c.nb({as:xw(d.info)})),e=d.u?d.info.i.i:null,f=uv(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=Tta(a,c,f,d.info,e),"s"===e)a.Ca=0,e=!0;else{a.policy.sj||(c.abort(),
Lz(b));if("i"===e||"x"===e)Uta(a,"checked",e,d.info);else{if("q"===e&&(d.info.isVideo()?(e=a.policy,e.I=Math.floor(.8*e.I),e.ca=Math.floor(.8*e.ca),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.ib=Math.floor(.8*e.ib),e.C=Math.floor(.8*e.C)),!c.Wf()&&!a.mediaSource.isView&&c.xs(Math.min(a.currentTime,d.info.startTime),!0,5))){e=!1;break a}a.V("reattachrequired")}e=!1}e=!e}if(e)return!1;b.Bh(d);a.aa("Appended "+xw(d.info)+", buffered: "+nz(c.He()));return!0};
Uta=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.C=e,d.i.info.video&&!rT(a.l)&&qT(a.l,d.i)):"i"===c&&(15>a.Ca?(a.Ca++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Cw(d);d.mrs=SA(a.mediaSource);d.origin=b;d.reason=c;HT(a,f,e,d)};
Vta=function(a,b,c){var d=a.i,e=!1;for(l in d.i){var f=xA(d.i[l].info.mimeType)||d.i[l].info.isVideo();if(c==f)if(f=d.i[l].index,!iA(f,b.va))f.cw(b),e=!0;else if(d.Ja){e=b;var h=f.Rh(e.va);h&&h.startTime!==e.startTime?(f.segments=[],f.cw(e),e=!0):e=!1;e&&d.V("clienttemp","restMflIndex","1",!1)}}Xga(a.B,b,c,e);if(c)a:if(a=a.u,b.i&&a.Y&&a.Y.wz(b.startTime,b.i.l,b.i.u),a.B.ea){if(a.B.L){c=a.ca&&b.va==a.ca.va+1;a.ca=b;d=a.i&&b.va==a.i.va+1;d=a.i&&c&&d&&"stop"!=a.i.md.event&&"predictStart"!=a.i.md.event;
var l=b.md||null;f=a.J.i.index.Rb()<=b.va;e=a.W.isManifestless&&a.B.ea;if(l){a.i={md:l,va:b.va};if(!c){vB(a,l,b.va);break a}if(d&&f&&e){vB(a,l,b.va);break a}"continue"==l.event||"stop"==l.event?yB(a,b):vB(a,l,b.va)}else d&&yB(a,b)}c=a.i&&a.u&&a.i.va==a.u.va-1;c=a.i&&c&&"stop"!=a.i.md.event&&"predictStart"!=a.i.md.event;a.u&&a.u.va<b.va&&(c?yB(a,a.u):a.X=!0);a.u=b}};
MT=function(a,b,c){c.info.i.Je();var d=c.info.i.i;if(null==d||b.Zm()===d)return!1;var e=d,f=b.Jt();if(a.policy.Cf&&f&&b.isView()&&g.Tw(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Hfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Uc("fenc","1")}f=null;h=c.info.i.an(0);h.length&&(f=h[0].i[0]);a.policy.Mh&&b.abort();d=Tta(a,b,e,f,d);if("s"!==d)return Uta(a,"sepInit",d,c.info),!0;a.aa();return b.Wf()};
Tta=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11===f.code)return"i";if(12===f.code)return"x";if(22!==f.code&&0!==f.message.indexOf("Not enough storage"))return g.ro(f),"u";c=nz(b.He()).replace(/,/g,"_");d=g.tf(f.message);a.Uc("quex","br."+c+";t."+(a.mediaSource?b===a.mediaSource.l?"v":"a":"u")+";e."+d);return"q"}return TA(a.mediaSource)?"m":"s"};
Bta=function(a,b){Wz(b,"needkeyinfo",a.tM,a);Wz(b,"error",a.TN,a);Wz(b,"avsyncissue",a.SN,a);Wz(b,"placeholderinfo",function(c){a.i.isManifestless&&Vta(a,c,b===a.videoTrack)});
Wz(b,"placeholderrollback",function(c){a.i.isManifestless&&tB(a.i,c.va,b===a.videoTrack)});
Wz(b,"segmentinfo",function(c){a.i.isManifestless&&Vta(a,c,b===a.videoTrack)});
Wz(b,"localmediachange",a.UN.bind(a))};
Dta=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.L||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Uc(c,d,!1)});
b.subscribe("error",function(c,d,e){HT(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
JT=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.I;!a.policy.La&&sT(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.ib:a.policy.ca));c&&(d+=a.policy.Za);var e=sT(a.l)?b.l?b.l.i.info.l:b.i.info.l:b.ca;d/=e;0<a.policy.De&&a.mediaSource&&PA(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.l:a.mediaSource.i)&&!b.Wf()&&(b=b.He(),e=oz(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.De,a.policy.jm))));0<a.policy.C&&(d=Math.min(d,a.policy.C));
a.policy.Ce&&c&&!sT(a.l)&&(c=a.l,c=pT(c,g.ab(c.B))+pT(c,c.I.i[0]),c=a.policy.Ce*(c/jT(a.I)),c<d&&15>c&&a.Uc("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
Ita=function(a){if(!a.La)return Infinity;var b=g.Ne(OT(a.La),function(d){return"ad"===d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
Wta=function(a,b){(new tT(b,"cms",null,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.V.apply(a,["error"].concat(g.la(d)))})).send()};
Xta=function(a,b){if(a.mediaSource&&a.mediaSource.l){b-=!isNaN(a.timestampOffset)&&a.policy.Ac?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.B.u&&!TA(a.mediaSource)){var c=a.currentTime<=b&&b<a.currentTime+10,d=pz(a.mediaSource.l.He(),a.currentTime+Mta);c&&d&&(a.B.u=!1)}a.B.u||(a.currentTime=b);g.en(a.Ja)}};
Yta=function(a,b){var c=Cz(a.videoTrack).find(function(d){return d.startTime>=b&&Cta(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
Cta=function(a,b,c){if(!(a.videoTrack.i.Je()&&a.audioTrack.i.Je()&&a.mediaSource&&a.mediaSource.l&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=Ez(a.videoTrack,b,c);if(isNaN(d))return!1;a=Ez(a.audioTrack,a.policy.Ja?b:d,c);return isNaN(a)?!1:!0};
CT=function(a,b,c){b.i!==c&&(a.aa(),b.i=c)};
AT=function(a,b,c,d){c.Je()||c.u||!oy(c.l)||(d=c.an(d?Rsa(a.I,c.info):0),g.Ab(d,function(e){if("f"!==e.i[0].i.info.i){var f=LT(this,e);wy(e)&&xz(b,f)}},a),c.u=!0)};
HT=function(a,b,c,d){a.na()||(d=new g.IA(c,b,d),g.Pa(a),g.JA(d.details),a.V("error",d),"html5.invalidstate"!==c&&"fmt.unplayable"!==d.errorCode&&"fmt.unparseable"!==c&&b&&a.dispose())};
FT=function(a){Lz(a.audioTrack);Lz(a.videoTrack)};
Zta=function(a,b){var c=b.info.video?a.videoTrack:a.audioTrack;null!=c&&AT(a,c,b,!1)};
Ata=function(a,b,c){b/=c;isNaN(a.timestampOffset)&&$ta(a,b-Math.min(b,a.policy.Vd));return(b-a.timestampOffset)*c};
$ta=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.aa(),a.u.L=a.timestampOffset,a.V("timestamp",a.timestampOffset),a.i.isManifestless&&(a.i.l=a.timestampOffset))};
PT=function(a){this.i=a};
QT=function(){g.R.apply(this,arguments)};
RT=function(a,b,c,d){QT.call(this);var e=this;this.u=-1;this.i={};this.B=new g.M(this.C,0,this);g.I(this,this.B);this.l=new g.M(function(){e.na()||(e.B.start(Math.random()*c),e.l.start(b))},a,this);
g.I(this,this.l);d.subscribe("fairplay_next_need_key_info",this.I,this)};
aua=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
bua=function(a){var b=a.interval,c=a.Rr,d=a.FH,e=a.drmSessionId;this.url=a.url;this.interval=b;this.Rr=c;this.FH=d;this.drmSessionId=e};
cua=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.l={};this.nextFairplayKeyId=null};
eua=function(a){var b=wv(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=Mv(b.slice(d+2));if(null==b)return null;a=new cua(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.wka(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new bua({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Rr:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.l=dua(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
dua=function(a){if(!a)return{};a=a.split(";");var b={};g.Ab(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
ST=function(a,b){g.E.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.i=new g.yn(5E3,2E4,.2)};
fua=function(a,b,c){a.onSuccess=b;a.onError=c};
hua=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.aa(),0!==e.status&&e.response)if(hE("drm_net_r"),e=new Uint8Array(e.response),e=eua(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else gua(a,e)},
onError:function(e){gua(a,e)}};
c&&(b=Ud(b,"access_token",c));g.Tp(b,d);a.aa()};
gua=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)};
jua=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.na()){a.aa();hE("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.cf(f.license)}catch(x){}if(0!==h||l){l=new cua(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=iua[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");r.isHdr&&(t+="HDR");h[t]||(m.push(t),
h[t]=!0);var w=null;try{w=g.cf(r.keyId)}catch(x){}w&&(n[g.sf(w,4)]=t)}}l.i=m;l.l=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")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.uC="Bearer "+d);g.Fq(c,"player/get_drm_license",b,e)};
UT=function(a,b,c,d){g.R.call(this);this.videoData=a;this.u=b;this.la=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.L=this.Y=!1;this.B=null;this.ia=[];this.I=[];this.ca=!1;this.i={};this.ea=NaN;this.status="";this.W=!1;this.J=NaN;this.l=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.u.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.la&&(a.vvt=this.videoData.la,this.videoData.mdxEnvironment&&(a.mdx_environment=
this.videoData.mdxEnvironment));this.u.W&&(a.authuser=this.u.W);this.u.pageId&&(a.pageid=this.u.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.Z("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Wc))?e[1]:"")&&(a.cdt=e)}this.C=a;this.C.session_id=d;this.X=!0;"widevine"===this.l.flavor&&(this.C.hdr="1");"playready"===this.l.flavor&&(b=Number(g.mA(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&
0<=b&&(this.C.mfpe=""+b),this.X=!1,this.videoData.Z("html5_playready_enable_non_persist_license")&&(this.C.pst="0"));this.videoData.Z("html5_ytlfe_use_py3_spork")&&(this.C.dlc3="1");this.baseUrl=nF(this.l)?aua(c.initData).replace("skd://","https://"):this.l.u;this.fairplayKeyId=Sd(this.baseUrl,"ek")||"";if(b=Sd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ga=this.videoData.Z("html5_use_drm_retry");this.ia=c.l;this.aa();TT(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
oua=function(a,b){TT(a,"createkeysession");a.status="gr";hE("drm_gk_s");a.url=kua(a);try{a.B=b.createSession(a.la,function(d){TT(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.B&&(lua(a.B,function(d,e){mua(a,d,e)},function(d){a.na()||(a.aa(),a.error("drm.keyerror",!0,d))},function(){a.na()||(a.aa(),TT(a,"onkyadd"),a.L||(a.V("sessionready"),a.L=!0))},function(d){nua(a,d)}),g.I(a,a.B))};
kua=function(a){var b=a.baseUrl;Xfa(b)||a.error("drm.net",!0,"t.x");if(!Sd(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.u.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.q(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ud(b,d,a.C[d]);return b};
pua=function(a){var b={};Object.assign(b,a.C);return b};
qua=function(a,b){var c=new bua({FH:g.sf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
mua=function(a,b,c){if(!a.na())if(b){a.aa();TT(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":rua(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.Y||(hE("drm_gk_f"),a.Y=!0,a.V("newsession",a));if(a.videoData.Z("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.W&&"widevine"===a.l.flavor)a.W&&"license-request"!==c&&TT(a,"wvrenew.mt."+c,!0),qua(a,
b);else{if(jF(a.l)&&(b=sua(b),!b))return;nF(a.l)&&!a.videoData.useInnertubeDrmService()&&(b=vv(g.sf(b)));b=new ST(b,++a.requestNumber);fua(b,function(d,e){tua(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.S(a.u.experiments,"html5_license_server_error_retry_limit")||3);(h=d.i.l>=m)||(h=a.ga&&36E4<(0,g.Q)()-a.ea);h&&(l=!0,e="drm.net.retryexhausted");a.aa();TT(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&uua(a,d)}});
g.I(a,b);vua(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
rua=function(a,b){a.aa();TT(a,"sdpvrq");a.J=Date.now();if("widevine"!==a.l.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.l.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.u.deviceParams);c=g.Od("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:wv(b)}),responseType:"arraybuffer"};
g.vt(c,d,3,500).then(so(function(e){if(!a.na()){e=new Uint8Array(e.response);var f=wv(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),h=(Date.now()-a.J)/1E3,a.J=NaN,a.V("ctmp","provs",""+h.toFixed(3)),a.B&&a.B.update(e)):(e=h&&h.error&&h.error.message,h="e.parse",e&&(h+=";m."+e),a.error("drm.provision",!0,h))}}),so(function(e){a.na()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
nua=function(a,b){a.na()||0>=b.size||(b.forEach(function(c,d){var e=jF(a.l)?d:c,f=new Uint8Array(jF(a.l)?c:d);jF(a.l)&&wua(f);var h=g.sf(f,4);wua(f);f=g.sf(f,4);a.i[h]?a.i[h].status=e:a.i[f]?a.i[f].status=e:a.i[h]={type:"",status:e}}),a.aa("Key statuses changed: "+xua(a,",")),TT(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))};
VT=function(a){var b;if(b=a.X&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
vua=function(a,b){var c,d;a.status="km";hE("drm_net_s");if(a.videoData.useInnertubeDrmService()){var e=new g.$s(a.u.Xe),f={context:g.Dq(e.i||g.Eq())};f.drmSystem=yua[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.sf(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.l)||void 0===c?void 0:c.Na())||void 0===
d||!d.isHdr());a.videoData.Z("html5_request_only_hdr_or_sdr_keys")&&(f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR");if(!f.context||!f.context.client){a.aa();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.u.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=f.context.user||{};f.context.request=
f.context.request||{};a.videoData.la&&(f.context.user.credentialTransferTokens=[{token:a.videoData.la,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.Wa&&(f.context.user.kidsParent={oauthToken:a.videoData.Wa});if(nF(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.sf(l)}jua(b,f,e,g.nI(a.videoData))}else hua(b,a.url,a.videoData.oauthToken);a.status="rs"};
tua=function(a,b,c){if(!a.na()){if(a.requestNumber!==c&&"widevine"===a.l.flavor&&((a.u.Z("html5_drm_ignore_out_of_order_responses")||a.u.Z("html5_drm_ignore_out_of_order_responses_cfl"))&&TT(a,"drmOOO."+a.requestNumber+"."+c,!0),a.u.Z("html5_drm_ignore_out_of_order_responses")))return;TT(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(hE("drm_kr_s"),b.heartbeatParams&&b.heartbeatParams.url&&(a.videoData.Z("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.l.u.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),a.videoData.Z("html5_ytlfe_use_py3_spork")&&(b.heartbeatParams.url+="&dlc3=1")),b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.i&&(a.I=b.i,a.W=!0,a.ca=ai(a.I,function(d){return d.includes("HDR")})),b.l&&(a.i=Eb(b.l,function(d){return{type:d,
status:"unknown"}})),lF(a.l)&&!a.videoData.useInnertubeDrmService()?b.message=g.cf(wv(b.message)):mF(a.l)&&a.videoData.useInnertubeDrmService()&&(b.message=vv(g.sf(b.message))),a.B&&(a.aa(),TT(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){hE("drm_kr_f");
if(!VT(a))if(TT(a,"ksApiUnsup"),kF(a.l)){var d=zua(a.I);480<g.pA[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.L&&(a.ea=(0,g.Q)()),nF(a.l)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
uua=function(a,b){var c=b.i.getValue();c=new g.M(function(){vua(a,b)},c);
g.I(a,c);c.start();g.zn(b.i);a.aa();TT(a,"rtyrq")};
Aua=function(a,b){if(!VT(a)&&kF(a.l)&&!b)return"large";var c=[],d=!0;if(VT(a))for(var e=g.q(Object.keys(a.i)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.i[f].status&&c.push(a.i[f].type),"unknown"!==a.i[f].status&&(d=!1);if(!VT(a)||d)c=a.I;return zua(c)};
xua=function(a,b){for(var c=[],d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
Bua=function(a){var b=a.status+".";return VT(a)?b+xua(a,"."):b+a.I.join(".")};
Cua=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.i)if("output-restricted"===a.i[d].status&&(b=a.i[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
Dua=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
TT=function(a,b,c){c=void 0===c?!1:c;a.aa();(c||g.PH(a.videoData)||"playready"===a.l.flavor&&a.videoData.Z("html5_log_playready_high_res"))&&a.V("ctmp","drmlog",b)};
wua=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};
zua=function(a){return g.fb(a,"UHD2")?"highres":g.fb(a,"UHD1")?"hd2160":g.fb(a,"HD")?"hd1080":g.fb(a,"HD720")?"hd720":"large"};
sua=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=pd(new DOMParser,g.kd(g.gc("Uses only text content."),b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(oR(Zaa(a.childNodes[0].nodeValue)).buffer):null:null};
Eua=function(a,b,c,d,e){var f;"playready"===e?f=sua(a):"fairplay"===e&&(f=vv(g.sf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Raa(c,d),g.vt(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=eua(h))&&h.message&&b.update(h.message)}))};
WT=function(a,b,c,d,e){g.E.call(this);this.element=a;this.L=b;this.initData=c;this.i=d;this.l=e;this.sessionId="";this.J=this.I=this.u=this.C=null;this.B=new Nt(this);g.I(this,this.B);Fua(this)};
Fua=function(a){a.i?(a.B.N(a.i,"message",a.JI),a.B.N(a.i,"keystatuseschange",a.KI),a.i.closed&&a.i.closed.then(so(function(){a.na()||Zp("xboxone")&&a.u&&a.u("closed")}),null)):a.l&&(Ot(a.B,a.l,["mskeymessage",
"webkitkeymessage"],a.JF),Ot(a.B,a.l,["mskeyerror","webkitkeyerror"],a.IF),Ot(a.B,a.l,["mskeyadded","webkitkeyadded"],a.HF))};
lua=function(a,b,c,d,e){a.C=b;a.u=c;a.I=d;a.J=e};
Gua=function(a,b,c){g.ro(c);a.u&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.u(b))};
XT=function(a,b){g.E.call(this);this.element=a;this.i=b;this.I={};this.B=null;this.C=new Nt(this);this.u=this.l=null;g.I(this,this.C)};
ZT=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.na()||(a.l=b,a.element.setMediaKeys(b))});
iF(a.i)?a.u=new (hF())(a.i.keySystem):lF(a.i)?(a.u=new (hF())(a.i.keySystem),a.element.webkitSetMediaKeys(a.u)):Hua(a);return null};
Hua=function(a){Ot(a.C,a.element,["keymessage","webkitkeymessage"],a.NI);Ot(a.C,a.element,["keyerror","webkitkeyerror"],a.MI);Ot(a.C,a.element,["keyadded","webkitkeyadded"],a.LI)};
Jua=function(a,b){var c=Iua(b,a.i.l);c=a.u.createSession("video/mp4",c);return new WT(null,null,null,null,c)};
Kua=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.u.createSession("video/mp4",b,c);return new WT(null,null,null,null,c)};
$T=function(a,b){var c=a.I[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
Iua=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};
aU=function(a,b){g.E.call(this);this.i=g.Ie("video");this.l=null;this.C=[];this.B=new Nt(this);this.u=new gF("fairplay","com.youtube.fairplay","",b);this.u.l=a;g.I(this,this.B);this.init()};
bU=function(a,b,c){QT.call(this);var d=this;this.B=a;this.u=b;this.i=[];this.l=new g.M(function(){var e=d.i.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.u.values.length)f=!0;else{for(var h=g.q(d.u.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.i.length&&(e=d.i[0].time-(0,g.Q)(),d.l.start(Math.max(0,e)))},0);
g.I(this,this.l);c.subscribe("widevine_set_need_key_info",this.C,this)};
cU=function(){this.keys=[];this.values=[]};
dU=function(a,b){return g.db(a.keys,function(c){return g.yb(b,c)})};
fU=function(a,b,c){g.R.call(this);this.element=a;this.videoData=b;this.l=c;this.i=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.au();this.u=new cU;this.J=new cU;this.W=new cU;this.B=[];this.Ca=2;this.ca=new Nt(this);this.Ha=this.la=!1;this.heartbeatParams=null;this.ea=this.ga=this.ia=this.X=!1;this.I=null;this.ma=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||hF()||pF(c.experiments);c=g.U(this.l.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.Kh:g.U(this.l.experiments,
"html5_drm_start_from_null_constraint");this.L="fairplay"===this.i.flavor||c?uH:Lua;this.C=new XT(this.element,this.i);g.I(this,this.C);iF(this.i)&&(this.Y=new XT(this.element,this.i),g.I(this,this.Y));g.I(this,this.ca);c=this.element;this.i.keySystemAccess?this.ca.N(c,"encrypted",this.OI):Ot(this.ca,c,iF(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.bO);Mua(this);a:switch(c=this.i,a=this.l.experiments,b=this.u,c.flavor){case "fairplay":19.2999<Yp()?(a=c.J,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),
c=new RT(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new bU(g.U(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.I=c)g.I(this,this.I),this.I.subscribe("rotated_need_key_info_ready",this.rC,this);this.aa("Created, key system "+this.i.keySystem+", final EME "+pF(this.l.experiments));eU(this,"cks"+this.i.ff());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ja=new aU(this.videoData.ld,this.l.experiments),g.I(this,this.Ja))};
Mua=function(a){var b=ZT(a.C);b?b.then(so(function(){Nua(a)}),so(function(c){if(!a.na()){a.aa();
g.ro(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.aa(),eU(a,"mdkrdy"),a.X=!0);
a.Y&&(b=ZT(a.Y))};
Oua=function(a,b,c){a.Ha=!0;c=new Gy(b,c);a.l.Z("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));a.l.Z("html5_process_all_encrypted_events")?gU(a,c):a.l.Z("html5_eme_loader_sync")?gU(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?hU(a):gU(a,c)};
Pua=function(a,b){eU(a,"onneedkeyinfo");g.U(a.l.experiments,"html5_eme_loader_sync")&&(a.W.get(b.initData)||a.W.set(b.initData,b));gU(a,b)};
Rua=function(a,b){if(iF(a.i)&&!a.ia){var c=Ifa(b);if(0!==c.length){var d=new Gy(c);a.ia=!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){Qua(a,f,d)})},null)}}};
Qua=function(a,b,c){var d=b.createSession(),e=a.u.values[0],f=pua(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);Eua(h,d,a.i.u,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.ga=!0,Sua(a,Aua(e,a.ga)))});
d.generateRequest("cenc",c.initData)};
gU=function(a,b){if(!a.na()){eU(a,"onInitData");if(g.U(a.l.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.W.get(b.initData),d=a.J.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.J.remove(c);a.W.remove(c)}a.aa();eU(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.i.flavor?a.la&&!a.videoData.isLivePlayback?a.l.Z("html5_process_all_encrypted_events")&&hU(a):g.U(a.l.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.ce||(a.la=!0,c=b.cryptoPeriodIndex,
d=b.i,Hy(b),b.ce||(d&&b.i!==d?a.V("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.V("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex)),a.V("widevine_set_need_key_info",b)):a.rC(b)}};
Nua=function(a){if(!a.na())if(g.U(a.l.experiments,"html5_drm_set_server_cert")&&!g.fG(a.l)){var b=a.C.setServerCertificate();b?b.then(so(function(c){g.PH(a.videoData)&&a.V("ctmp","ssc",c)}),so(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(so(function(){iU(a)})):iU(a)}else iU(a)};
iU=function(a){a.na()||(a.X=!0,a.aa(),eU(a,"onmdkrdy"),hU(a))};
hU=function(a){if(a.Ha&&a.X&&!a.ea){for(;a.B.length;){var b=a.B[0];if(a.u.get(b.initData))if("fairplay"===a.i.flavor)a.u.remove(b.initData);else{a.B.shift();continue}Hy(b);break}a.B.length&&a.createSession(a.B[0])}};
Sua=function(a,b){var c=OE("auto",b,!1,"l");if(g.U(a.l.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Kh:g.U(a.l.experiments,"html5_drm_start_from_null_constraint")){if(NE(a.L,c))return}else if(RE(a.L,b))return;a.L=c;a.V("qualitychange");a.aa();eU(a,"updtlq"+b)};
eU=function(a,b,c){c=void 0===c?!1:c;a.na()||(a.aa(),(g.PH(a.videoData)||c)&&a.V("ctmp","drmlog",b))};
Tua=function(a){var b;if(b=g.bq()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&eU(a,"mtr."+g.sf(b,3),!0)};
jU=function(a,b,c){g.R.call(this);this.videoData=a;this.i=b;this.playerVisibility=c;this.I=0;this.u=this.l=null;this.W=this.C=this.B=!1;this.L=this.J=0};
mU=function(a,b,c){var d=!1,e=a.I+3E4<(0,g.Q)()||!1,f;if(f=a.videoData.Z("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.me()||f.isInline()||f.isBackground()||f.Mo()||f.Lo());f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.l;if(!e&&!a.videoData.Z("html5_disable_codec_on_platform_errors_cfl")&&((null===f||void 0===f?0:vA(f))||(null===f||void 0===f?0:Yy(f)))){if(a.videoData.Z("html5_disable_codec_on_platform_errors")){a.i.B.i.set(f.i,{mD:1,Pz:Number.MAX_SAFE_INTEGER});
var h="cfalls"}else if(a.videoData.Z("html5_disable_codec_on_errors_with_exp_backoff")){h=a.i.B;var l=f.i,m=0;h.i.has(l)&&(m=h.i.get(l).mD);h.i.set(l,{mD:m+1,Pz:Math.pow(2,m+1)});h="cfallexp"}else a.videoData.Z("html5_disable_codec_for_playback_on_error")&&a.l&&(l=a.l.l,m=f.i,l.la.has(m)?l=!1:(l.la.add(m),l.X=-1,mT(l,l.l),l=!0),l&&(h="cfallp"));h&&(d=e=!0,c[h]=f.i)}if(!e)return Uua(a,c);a.I=(0,g.Q)();e=a.videoData;e=e.ga?e.ga.CD()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");kU(a,"qoe.restart",
c);if(e&&Vua(a))return lU(a),!0;Zp("philips")&&Wua(a);!a.videoData.Z("html5_disable_codec_on_platform_errors")&&f&&vA(f)?(a.i.B.disableAv1(),d=!0):a.l?(b=a.l,c=(c=wz(b.videoTrack)||b.videoTrack.l)?c.i:b.videoTrack.i,c.L+=1,qT(b.l,c)):a.videoData.ga&&a.videoData.ga.Rz();a.V("newelementrequired",d);return!0};
Uua=function(a,b){if(a.videoData.Ha)return!1;a.i.Ca+=1;if(10>=a.i.Ca)return!1;b.exiled=""+a.i.Ca;kU(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
Wua=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
Vua=function(a){return a.B||"yt"!==a.i.Y?!1:a.videoData.Ha?25>a.videoData.La:!a.videoData.La};
lU=function(a){a.B||(a.B=!0,a.V("signatureexpiredreloadrequired"))};
Xua=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.Hh();b.details.merr=c?c.toString():"0";b.details.msg=a.u.Ie()}};
Yua=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
$ua=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="18694";if(Vua(a))return c?(a.C=!0,a.V("releaseloader")):(b.i&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.i=!1),kU(a,b.errorCode,b.details),lU(a)),!0;6048E5<(0,g.Q)()-a.i.Pa&&Zua(a,"signature");return!1};
Zua=function(a,b){try{window.location.reload();kU(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.fG(a.i)&&Wua(a)};
ava=function(a,b){a.i.B.B=!1;kU(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
nU=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{hA:!1}:d).hA)};
kU=function(a,b,c){a.V("qoeerror",b,c)};
bva=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d};
oU=function(a,b,c){this.i=a;this.Y=b;this.l=c;this.X=this.J=this.L=this.B=this.u=this.I=this.W=this.C=0;this.playbackRate=1};
dva=function(a,b,c){!g.U(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.fG(a.i)&&(c=c.compose(cva(a,b)));return c};
eva=function(a){return a.Z("html5_exponential_memory_for_sticky")?.5>DF(a.i.wc,"sticky-lifetime")?"auto":pU():pU()};
fva=function(a,b){var c=new ME(0,0,!1,"o");a.Z("html5_varispeed_playback_rate")&&1<a.playbackRate?(c=wF(a.i.B,b.i.videoInfos,a.playbackRate),c=new ME(0,c,!0,"o")):1<a.playbackRate&&(c=new ME(0,480,!0,"o"));return c};
cva=function(a,b){if(g.fG(a.i)&&XE(a.i.B,YE.HEIGHT))var c=b.i.videoInfos[0].Na().i;else{c=!!b.i.i;var d;UF(a.i)&&(d=window.screen&&window.screen.width?new g.ke(window.screen.width,window.screen.height):null);d||(d=a.i.Oh?a.i.Oh.clone():a.Y.Vf());(WF||XS||c)&&d.scale(g.pG());c=d;LH(b.videoData)||pI(b.videoData);var e=b.i.videoInfos;if(e.length){d=.85;var f=e[0].Na();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||SF||(d=.45);f=e[0];var h=f.Na();e=g.q(e);for(var l=e.next();!l.done&&
!(f=h=l.value,h=h.Na(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===f.Vb()?oA(h.width,h.height):h.quality;c=OE("auto",c,!1,"r")}else c=uH;c=c.i}c&&(c=Math.max(c,360));return new ME(0,c,!1,"r")};
gva=function(a,b){return C(a,function d(){var e;return z(d,function(f){if(!b.i.i)return f["return"](void 0);e=b.i.videoInfos;return f["return"](tH(e))})})};
hva=function(a,b){return C(a,function d(){var e,f,h,l,m=this;return z(d,function(n){if(1==n.i)return(e=b.i.videoInfos.find(function(p){return vA(p)}))?null!==e.B?n.Pb(2):v(n,tH([e]),2):n["return"](!1);
f=e.B||!1;h=b.i.videoInfos[0].video;l=Math.min(eF("1",h.fps),eF("1",30));m.l.Ia("mcrsp","itag."+e.id+";smooth."+ +e.I+";efficient."+ +f+";perf."+l);return n["return"](f)})})};
jva=function(a,b){if(!b.videoData.l||a.Z("html5_disable_performance_downgrade"))return!1;6E4<g.Sa()-a.W&&(a.C=0);a.C++;a.W=g.Sa();if(4!==a.C)return!1;iva(a,b.videoData.l);return!0};
lva=function(a,b,c,d){if(!b||!c||!b.videoData.l)return!1;var e=g.S(a.i.experiments,"html5_df_downgrade_thresh"),f=a.Z("html5_log_media_perf_info"),h=g.S(a.i.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.Q)()-a.I?0:f||0<e||0<h))return!1;a.I=(0,g.Q)();c=c.Ns();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.X;a.J=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.ib&&a.l.Ia("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.u=0,a.B=0,!1;d=60<m?l/m:0;0<d&&(a.L=d);a.B=0<h&&60*d>h?a.B+1:0;if(!e||g.fG(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;iva(a,b.videoData.l);a.l.Ia("dfd",kva());return!0};
mva=function(a,b){return 0>=g.S(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.Na()&&32<b.Na().fps)?!1:3<=a.B?(a.B=0,!0):!1};
iva=function(a,b){var c=b.Na().i-1;nva(b.i,b.Na().fps,c);c=a.l;c.l&&eta(c.l.l,c.u)};
ova=function(a,b){if(!b.i.i)return uH;var c=a.i.Z("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.S(a.i.experiments,"html5_performance_cap_floor");e=a.i.i?240:e;for(var f=g.q(b.i.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!vA(l))if(h=eF(l.i,l.Na().fps),l=l.Na().i,Math.max(h,e)>=l){d=l;break}}return new ME(0,d,!1,"b")};
pva=function(a,b){a.Z("html5_log_media_perf_info")&&(a.l.Ia("perfdb",kva()),a.l.Ia("hwc",""+navigator.hardwareConcurrency,!0),b&&a.l.Ia("mcdb",b.i.videoInfos.filter(function(c){return!1===c.I}).map(function(c){return c.Vb()}).join("-")))};
kva=function(){var a=Eb(qU(),function(b){return""+b});
return g.JA(a)};
rU=function(a,b){g.E.call(this);this.provider=a;this.I=b;this.i=-1;this.C=!1;this.l=-1;this.playerState=new g.bK;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.B=0;this.delay=new g.M(this.send,6E4,this);this.u=!1;g.I(this,this.delay)};
qva=function(a){0<=a.i||(3===a.provider.l.getVisibilityState()?a.C=!0:(a.i=g.jS(a.provider),a.delay.start()))};
rva=function(a){if(!(0>a.l)){var b=g.jS(a.provider),c=b-a.B;a.B=b;8===a.playerState.state?a.playTimeSecs+=c:g.jK(a.playerState)&&!g.W(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
sva=function(a){switch(a.i.Dk){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
tva=function(a){return(!a.Z("html5_health_to_gel")||a.i.Pa+36E5<(0,g.Q)())&&(a.Z("html5_health_to_gel_canary_killswitch")||a.i.Pa+36E5<(0,g.Q)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===sva(a))?a.Z("html5_health_to_qoe"):!0};
sU=function(a,b,c,d,e){var f={format:"RAW"},h={};Fp(a)&&Gp()&&(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.onFinish=e);return 1<Object.keys(f).length?f:null};
tU=function(a,b,c,d,e,f){Gp()&&c.token&&(a=g.Od(a,{ctt:c.token,cttype:c.rA,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Bp(a),Object.keys(c).includes("cpn")),f?Zs(a,b):Ys(a,b)):b?(f=g.Bp(a),Object.keys(f).includes("cpn"),g.Tp(a,b)):g.pq(a,d)};
g.vU=function(a){g.E.call(this);var b=this;this.provider=a;this.i={};this.sequenceNumber=1;this.za=NaN;this.Mc="N";this.I=this.Pa=this.Ha=this.ma=this.u=0;this.ca=this.Wa="";this.Ja=this.X=NaN;this.Ca=0;this.Za=-1;this.La=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ga=this.isOffline=this.Y=!1;this.Db=[];this.L=null;this.W=this.ia=this.B=!1;this.l=-1;this.ea=!1;this.ib=new g.M(this.AL,750,this);this.J=this.adCpn="";this.adFormat=void 0;this.Sb=0;g.I(this,this.ib);(a=navigator.getBattery?navigator.getBattery():
null)&&a.then&&a.then(function(c){b.L=c});
g.uU(this,0,"vps",["N"])};
g.uU=function(a,b,c,d){var e=a.i[c];e||(e=[],a.i[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
wU=function(a,b){var c=a.provider.l.getCurrentTime();g.uU(a,b,"cmt",[c.toFixed(3)]);c=a.provider.l.ak();if(a.C&&1E3*c>a.C.aF+100&&a.C){var d=a.C,e=d.isAd;a.la=1E3*b-d.hQ-(1E3*c-d.aF)-d.ZP;a.Ia("gllat","l."+a.la.toFixed()+";prev_ad."+ +e);delete a.C}};
xU=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.jS(a.provider);var c=a.provider.l.Rt();if(!isNaN(a.X)&&!isNaN(c.l)){var d=c.l-a.X;0<d&&g.uU(a,b,"bwm",[d,(c.B-a.Ja).toFixed(3)])}isNaN(a.X)&&c.l&&a.isOffline&&(a.isOffline=!1,g.uU(a,g.jS(a.provider),"is_offline",[a.isOffline?"1":"0"]),(d=a.provider.videoData.cotn)&&!a.i.cotn&&(a.i.cotn=[d]));a.X=c.l;a.Ja=c.B;isNaN(c.bandwidthEstimate)||g.uU(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.ib&&c.i&&a.Ia("bwinfo",c.i);a.L&&g.uU(a,b,"bat",
[a.L.level,a.L.charging?"1":"0"]);d=a.provider.l.getVisibilityState();a.Za!==d&&(g.uU(a,b,"vis",[d]),a.Za=d);wU(a,b);(d=uva(a.provider))&&d!==a.Ca&&(g.uU(a,b,"conn",[d]),a.Ca=d);vva(a,b,c)};
vva=function(a,b,c){if(!isNaN(c.Jm)){var d=c.Jm;c.u<d&&(d=c.u);g.uU(a,b,"bh",[d.toFixed(3)])}};
yU=function(a){for(var b=0,c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(gh(a.i[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.M(a.reportStats,0,a)).start()};
wva=function(a){a.provider.videoData.oc&&zU(a,"prefetch");a.provider.videoData.La&&a.Ia("reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.La);a.provider.videoData.Sb&&zU(a,"monitor");a.provider.videoData.isLivePlayback&&zU(a,"live");a.provider.videoData.yg&&a.Ia("ctrl",a.provider.videoData.yg,!0);if(a.provider.videoData.wf){var b=a.provider.videoData.wf.replace(/,/g,"_");a.Ia("ytp",b,!0)}a.provider.videoData.rD&&(b=a.provider.videoData.rD.replace(/,/g,"."),a.Ia("ytrexp",
b,!0));if(!g.U(a.provider.i.experiments,"html5_disable_gpu_reporting")){var c=a.provider.i.experiments;b=a.provider.videoData;c=g.U(c,"enable_white_noise")||g.U(c,"enable_webgl_noop")||g.U(c,"enable_gpu_logging");var d=g.fI(b)||g.dI(b)||g.eI(b)||g.gI(b),e=b.u&&vA(g.ab(b.u.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.AU)())&&(a.i.gpu=[b])}a.za=vo(function(){a.reportStats()},1E4)};
xva=function(a,b,c,d){var e=a.provider.l.getCurrentTime();c=[c,e.toFixed(3)];d&&c.push(d);g.uU(a,b,"error",c);a.W=!0};
yva=function(a){0<=a.l||(a.provider.i.Ac||3!==a.provider.l.getVisibilityState()?a.l=g.jS(a.provider):a.ea=!0)};
zU=function(a,b){var c=a.i.cat||[];c.push(b);a.i.cat=c};
zva=function(a,b,c,d,e,f,h,l){1===f&&a.reportStats();a.adCpn=b;a.J=c;a.adFormat=l;b=g.jS(a.provider);1===f&&g.uU(a,b,"vps",[a.Mc]);c=a.i.xvt||[];c.push("t."+b.toFixed(3)+";m."+h.toFixed(3)+";g.2;tt."+f+";np.0;c."+d+";d."+e);a.i.xvt=c;0===f&&(a.reportStats(),a.adCpn="",a.J="",a.adFormat=void 0)};
Ava=function(a){this.provider=a;this.J=!1;this.i=0;this.B=-1;this.lastUpdateTime=NaN;this.l=0;this.segments=[];this.I=this.C=0;this.W=this.provider.se().volume;this.L=this.provider.se().muted;this.u=BU(this.provider)};
CU=function(a){a.u.startTime=a.l;a.u.endTime=a.i;a.segments.length&&g.ab(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.u:a.segments.length&&a.u.isEmpty()||a.segments.push(a.u);a.C+=a.i-a.l;a.u=BU(a.provider);a.l=a.i};
Bva=function(a){return a.C+a.provider.l.getCurrentTime()-a.l};
Cva=function(a){a.segments.length&&a.i===a.l||CU(a);var b=a.segments;a.segments=[];return b};
Eva=function(a){Dva(a);a.I=vo(function(){a.update()},100);
a.lastUpdateTime=g.jS(a.provider);a.u=BU(a.provider)};
Dva=function(a){window.clearInterval(a.I);a.I=NaN};
Fva=function(a,b,c){c-=a.lastUpdateTime;return b===a.i&&.5<c};
DU=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.ia=this.ib=this.isFinal=this.Sc=this.Pa=this.autoplay=this.autonav=!1;this.jc="yt";this.B=this.I=null;this.sendVisitorIdHeader=this.ga=!1;this.pageId="";this.u="watchtime"===c;this.C="playback"===c;this.Za="delayplay"===c;this.Wa="atr"===c;this.Eg="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Wa?"/api/stats/"+c:"//"+b.Qh+"/api/stats/"+c;this.ld=!b.Z("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.C;this.oc=b.Z("embeds_enable_intersection_observer_v2");d&&(this.ib=d.fs,d.rtn&&(this.B=d.rtn),this.u?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.qd=d.mos,this.Zc=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.lc=d.inview),d.size&&(this.kc=d.size));this.deviceParams=g.Vb(b.deviceParams);this.Kc=b.La;this.experimentIds=b.experiments.experimentIds;this.ea=b.ld;this.jc=b.Y;this.region=b.region;this.userAge=b.userAge;this.Ca=b.Hd;this.Hd=tp();
this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.W=g.U(b.experiments,"vss_pings_using_networkless");this.X=g.U(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=g.nI(a);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=mI(a);this.autonav=a.ph||this.autonav;this.contentVideoId=kI(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Pa=a.C;a.Ca&&(this.J=a.Ca,this.La=a.Yg);a.mdxEnvironment&&
(this.mdxEnvironment=a.mdxEnvironment);this.i=a.vo;this.ca=a.Db;a.l&&(this.videoFormat=a.l.Vb(),a.J&&a.J.Vb()!==this.videoFormat&&(this.Ja=a.J.Vb()));a.i&&cB(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.ld?"embedded_unbranded":jI(a);this.ia=a.Hd;this.tc=a.Bk;if(b=$H(a))this.Tc=b;this.wc=a.Io;this.eventId=a.eventId;this.playlistId=a.wE||a.playlistId;this.yg=a.yg;this.wf=a.wf;this.Fc=a.To;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=
a.visitorData;this.osid=a.osid;this.Ac=a.DQ;this.referrer=a.referrer;this.la=a.iD||a.mH;this.ma=a.qp;this.za=a.SQ;this.userGenderAge=a.userGenderAge;this.Y=a.OP};
EU=function(a,b){return sU(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
Gva=function(a,b){return function(){var c=a.uri,d=FU(a),e=EU(a),f=a.W,h=a.X;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.Od(c,d);f?(null==e&&(e={}),h?Zs(c,e):Ys(c,e)):e?g.Tp(c,e):g.pq(c)}};
FU=function(a){var b={ns:a.jc,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.l(a.i),ei:a.eventId,fmt:a.videoFormat,fs:a.ib?"1":"0",rt:a.l(a.Zg),of:a.Ac,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Kc,lact:a.Hd,live:a.Tc,cl:(361452257).toString(),mos:a.qd,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Zc};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ra(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.Pa&&(b.dni="1");a.isFinal&&(b["final"]="1");a.ia&&(b.splay="1");a.ca&&(b.delay=a.ca);a.ea&&(b.hl=a.ea);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ca&&(b.uga=a.Ca+a.userAge);void 0!==a.Sb&&(b.len=a.l(a.Sb));!a.u&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.l(a.B));a.la&&(b.feature=a.la);a.playlistId&&(b.list=a.playlistId);a.yg&&(b.ctrl=a.yg);a.wf&&(b.ytr=a.wf);a.Fc&&(b.ssrt="1");a.Ja&&(b.afmt=a.Ja);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.Db&&(b.lio=a.l(a.Db));a.u?(b.idpj=a.tc,b.ldpj=a.wc,null!=a.I&&(b.rti=a.l(a.I)),a.Y&&(b.ald=a.Y)):void 0!==a.adType&&(b.at=a.adType);a.kc&&(a.C||a.Za||a.u&&a.oc)&&(b.size=a.kc);null!=a.lc&&(a.C||a.Za||a.u&&a.oc)&&(b.inview=a.l(a.lc));a.u&&(b.volume=GU(a,g.Qc(a.segments,function(d){return d.volume})),b.muted=GU(a,g.Qc(a.segments,function(d){return d.muted?1:0})),b.st=GU(a,g.Qc(a.segments,function(d){return d.startTime})),b.et=GU(a,g.Qc(a.segments,function(d){return d.endTime})),
ai(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=GU(a,g.Qc(a.segments,function(d){return d.playbackRate}))),ai(a.segments,function(d){return"-"!==d.i})&&(b.als=g.Qc(a.segments,function(d){return d.i}).join(",")));
ai(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=GU(a,g.Qc(a.segments,function(d){return d.visibilityState})));
ai(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=GU(a,g.Qc(a.segments,function(d){return d.connectionType})));
ai(a.segments,function(d){return 0!==d.l})&&(b.blo=GU(a,g.Qc(a.segments,function(d){return d.l})));
ai(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Qc(a.segments,function(d){return d.B}).join(","));
ai(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Qc(a.segments,function(d){return d.clipId}).join(","));
if(ai(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Qc(a.segments,function(d){return d.u}).join(",")}Gp()&&a.J&&(b.ctt=a.J,b.cttype=a.La,b.mdx_environment=a.mdxEnvironment);
a.Eg&&(b.etype=void 0!==a.L?a.L:0);a.ma&&(b.uoo=a.ma);a.za&&(b.upt=a.za);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=Hva[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
GU=function(a,b){return g.Qc(b,a.l).join(",")};
HU=function(a){g.E.call(this);this.provider=a;this.currentPlayerState="paused";this.l=NaN;this.I=[10,10,10,40];this.L=this.J=0;this.ca=this.Y=this.ia=this.ea=this.X=this.W=this.u=!1;this.B=this.C=NaN;this.i=new Ava(a)};
Kva=function(a){if(!a.u){g.U(a.provider.i.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.Sr||to(Error("Playback for EmbedPage"));var b=IU(a,"playback");a.I=[10+a.provider.videoData.Bk,10,10,40+a.provider.videoData.Io-a.provider.videoData.Bk,40];Eva(a.i);b.B=JU(a,!0);a.provider.videoData.enableServerStitchedDai&&0<a.B&&(b.i-=a.B);b.send();if(a.provider.videoData.mm){b=a.provider.i;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,
ei:c.eventId,ptk:c.mm,oid:c.aC,ptchn:c.ZB,pltype:c.bC,content_v:kI(c)};b=g.Od(b.ca+"ptracking",c);KU(a,b)}a.provider.videoData.Mh&&(LU(a,"playback"),a.C||Iva(a));a.provider.videoData.Db||Jva(a);a.u=!0;a=a.i;a.i=a.provider.l.getCurrentTime();a.lastUpdateTime=g.jS(a.provider);!(0===a.l&&5>a.i)&&2<a.i-a.l&&(a.l=a.i);a.J=!0}};
JU=function(a,b,c){c=void 0===c?NaN:c;var d=g.jS(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.J];a.J+1<a.I.length&&a.J++;var f=c+e;a.l=g.uo(function(){if(!a.na()){a.l=NaN;a.i.update();var h=Cva(a.i),l=Lva(a,h);b&&(l.I=f);var m=a.provider.Z("html5_expanded_max_vss_pings")?1E3:400;m=a.L>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=JU(a,!0,f));l.send();a.L++}},1E3*(f-d));
return f};
IU=function(a,b){var c=a.provider;c=Object.assign(c.se(),c.videoData.se());g.Ra(c,{state:a.currentPlayerState});c=new DU(a.provider.videoData,a.provider.i,b,c);c.i=a.provider.l.getCurrentTime();a.provider.videoData.isLivePlayback||(c.Sb=a.provider.l.getDuration());if(a.provider.videoData.i){var d=a.provider.videoData.i.gf(c.i);d&&(c.Db=d-c.i)}c.Zg=g.jS(a.provider);c.segments=[BU(a.provider)];return c};
Lva=function(a,b){var c=IU(a,"watchtime");if(a.provider.videoData.enableServerStitchedDai&&0<a.B){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.i-=a.B}else c.i=a.i.i;c.segments=b;return c};
MU=function(a){a.i.update();return Lva(a,Cva(a.i))};
Jva=function(a){a.provider.videoData.remarketingUrl&&!a.ea&&(KU(a,a.provider.videoData.remarketingUrl),a.ea=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.ia&&(KU(a,a.provider.videoData.youtubeRemarketingUrl),a.ia=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(KU(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ca&&(KU(a,a.provider.videoData.ppvRemarketingUrl),a.ca=!0);Mva(a)};
Nva=function(a){if(!a.na()&&a.u){a.currentPlayerState="paused";var b=MU(a);b.isFinal=!0;b.send();g.wo(a.C);a.dispose()}};
Iva=function(a){a.C=vo(function(){LU(a,"heartbeat")},3E4)};
LU=function(a,b){var c=a.provider.i,d=a.provider.videoData,e={ns:c.Y,el:jI(d),eurl:c.La,fmt:d.l?d.l.Vb():0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.l.getCurrentTime(),video_id:d.videoId,metric:b};mI(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=Bva(a.i));Object.assign(e,c.deviceParams);KU(a,g.Od(c.ca+"live_204",e))};
Ova=function(a,b,c){a.W||(c||(c=IU(a,"atr")),c.Ha=b,c.send(),a.W=!0)};
Mva=function(a){a.provider.videoData.L.eventLabel=jI(a.provider.videoData);a.provider.videoData.L.playerStyle=a.provider.i.playerStyle;a.provider.videoData.Ye&&(a.provider.videoData.L.feature="pyv");a.provider.videoData.L.vid=a.provider.videoData.videoId;var b=a.provider.videoData.L;a=a.provider.videoData;a=a.isAd()||!!a.Ye;b.isAd=a};
KU=function(a,b){var c=g.nI(a.provider.videoData),d=a.provider.Z("web_player_vss_pageid_header")?a.provider.i.pageId:void 0,e=a.provider.i.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.U(a.provider.i.experiments,"vss_pings_using_networkless"),h=g.U(a.provider.i.experiments,"vss_send_then_write");c=sU(b,d,e,c,void 0);tU(b,c,{token:a.provider.videoData.Ca,rA:a.provider.videoData.Yg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
Pva=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.l=0;this.muted=!1;this.i=this.clipId="-"};
NU=function(a,b,c,d){this.videoData=a;this.i=b;this.l=c;this.se=d;this.u=void 0};
g.jS=function(a){return Qva(a)()};
Qva=function(a){if(!a.u){var b=g.Qa(function(d){var e=(0,g.Q)();d&&631152E6>=e&&(g.ro(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.U(a.i.experiments,"html5_validate_yt_now")),c=b();
a.u=function(){return Math.round(b()-c)/1E3};
a.l.vz()}return a.u};
uva=function(a){if(navigator.connection&&navigator.connection.type)return Rva[navigator.connection.type]||Rva.other;if(g.fG(a.i)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
BU=function(a){var b=new Pva;b.B=a.se().cc||"-";b.playbackRate=a.l.getPlaybackRate();var c=a.l.getVisibilityState();0!==c&&(b.visibilityState=c);a.i.Sb&&(b.l=1);c=a.l.getAudioTrack();c.i&&c.i.id&&"und"!==c.i.id&&(b.u=c.i.id);b.connectionType=uva(a);b.volume=a.se().volume;b.muted=a.se().muted;b.clipId=a.se().clipid||"-";b.i=a.videoData.VE||"-";return b};
g.OU=function(a){g.E.call(this);var b=this;this.provider=a;this.l=this.qoe=this.i=null;this.Ff=void 0;this.u=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.Af&&(this.i=new HU(this.provider),g.I(this,this.i),this.qoe=new g.vU(this.provider),g.I(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ff=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Ff,this.i));tva(this.provider)&&(this.l=new rU(this.provider,function(c){b.Ia("h5h",c)}),g.I(this,this.l))};
Sva=function(a){var b;a.provider.videoData.enableServerStitchedDai&&a.Ff?null===(b=a.u.get(a.Ff))||void 0===b?void 0:CU(b.i):a.i&&CU(a.i.i)};
Tva=function(a,b,c,d){a.qoe&&(a=a.qoe,g.uU(a,g.jS(a.provider),"ad_playback",[b,c,d]))};
Uva=function(a,b){a.i&&Ova(a.i,b)};
Vva=function(a){if(!a.i)return null;var b=IU(a.i,"atr");return function(c){a.i&&Ova(a.i,c,b)}};
Wva=function(a,b,c,d){c.adFormat=c.tc;var e=b.l;b=new HU(new NU(c,b.i,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
ak:function(){return e.ak()},
Rt:function(){return e.Rt()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Yq:function(){return e.Yq()},
getVisibilityState:function(){return e.getVisibilityState()},
vz:function(){e.vz()},
Br:function(){e.Br()}},b.se));
b.B=d;g.I(a,b);return b};
Xva=function(){this.Jm=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN};
Yva=function(){this.l=g.zD;this.i=[]};
$va=function(a,b,c){var d=[];for(b=Zva(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
awa=function(a,b){for(var c=[],d=g.q(a.i),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
bwa=function(a){return a.i.slice(Zva(a,0x7ffffffffffff),a.i.length)};
Zva=function(a,b){var c=wb(a.i,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
cwa=function(a,b){for(var c=NaN,d=g.q(a.i),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};
dwa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
PU=function(a,b,c,d){g.E.call(this);this.X=a;this.Y=b;this.J=c;this.L=d;this.u=NaN;this.C=this.I=this.started=!1;this.l=[];this.W=new g.M(this.Jj,250,this);g.I(this,this.W);this.B=new g.M(this.Jj,0,this);g.I(this,this.B);this.i=new Yva};
OT=function(a){return a.na()?[]:a.i.i};
ewa=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.L(g.AD(e.namespace),e):a.L(g.BD(e.namespace),e)}};
fwa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.la(new Uint8Array(c))));a.close()}return b};
gwa=function(a){this.l=this.mediaTime=NaN;this.u=this.i=!1;this.B=.001;g.fG(a)&&g.S(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.B=g.S(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
QU=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
RU=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.l>(d||!a.u?1500:400);a.mediaTime=b;a.l=c;return!1};
hwa=function(a,b){this.videoData=a;this.i=b};
iwa=function(a,b,c){return zia(b,c).then(function(){return zt(new hwa(b,b.u))},function(d){d instanceof Error&&to(d);
d=b.isLivePlayback&&!g.xF(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.ea,drm:""+ +NH(b),f18:""+ +(0<=b.tj.indexOf("itag=18")),c18:""+ +BA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(NH(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +CA('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +CA('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +CA('video/webm; codecs="vp9"'));if(b.I){e.drmsys=b.I.keySystem;var f=0;b.I.i&&(f=Object.keys(b.I.i).length);e.drmst=""+f}return new g.IA(d,!0,e)})};
jwa=function(a){this.C=a;this.u=this.l=0;this.B=new LS(50)};
TU=function(a,b,c){g.R.call(this);this.videoData=a;this.experiments=b;this.L=c;this.l=[];this.B=0;this.u=!0;this.I=!1;this.J=0;c=new kwa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.Sb?c.l=3:g.bI(a)&&(c.l=2);g.U(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.L=!0);var d=sia(a);c.C=2===d||-1===d;c.C&&(c.Y++,21530001===VH(a)&&(c.I=g.S(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Zp("trident/")||Zp("edge/"))d=g.S(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u,
d);g.S(b,"html5_minimum_readahead_seconds")&&(c.u=g.S(b,"html5_minimum_readahead_seconds"));g.S(b,"html5_maximum_readahead_seconds")&&(c.W=g.S(b,"html5_maximum_readahead_seconds"));g.U(b,"html5_force_adaptive_readahead")&&(c.B=!0);g.S(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.S(b,"html5_allowable_liveness_drift_chunks"));g.S(b,"html5_readahead_ratelimit")&&(c.X=g.S(b,"html5_readahead_ratelimit"));switch(VH(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=g.U(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.C=1!==this.policy.l;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Sb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(VH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=SU(this,b);this.aa()};
lwa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===sia(a.videoData)&&--c;return UU(a)*c};
WU=function(a,b){var c=VU(a);var d=a.policy.i;a.I||(d=Math.max(d-1,0));d*=UU(a);return b>=c-d};
VU=function(a){return Math.max(a.L()-lwa(a,!0),a.videoData.Hc())};
mwa=function(a,b,c){b=WU(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2===a.policy.l||3===a.policy.l&&a.u};
nwa=function(a,b){var c=WU(a,b);a.I!==c&&a.V("livestatusshift",c);a.I=c};
UU=function(a){return a.videoData.i?sB(a.videoData.i)||5:5};
SU=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.u/UU(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.W/UU(a))),b)};
kwa=function(){this.Y=1;this.u=0;this.W=Infinity;this.X=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.I=NaN;this.J=this.L=!1};
ZU=function(a,b,c,d,e){g.E.call(this);this.u=a;this.videoData=b;this.V=c;this.visibility=d;this.L=e;this.l=this.B=null;this.J=this.i=0;this.I={};this.playerState=new g.bK;this.C=new g.M(this.W,1E3,this);g.I(this,this.C);this.la=new XU({delayMs:g.S(this.u.experiments,"html5_seek_timeout_delay_ms")});this.ea=new XU({delayMs:g.S(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.ma=YU(this,"html5_seek_set_cmt");this.ia=YU(this,"html5_seek_jiggle_cmt");this.ga=YU(this,"html5_seek_new_elem");
this.Ca=YU(this,"html5_unreported_seek_reseek");this.Y=YU(this,"html5_long_rebuffer_jiggle_cmt");this.ca=YU(this,"html5_reload_element_long_rebuffer");this.X=YU(this,"html5_ads_preroll_lock_timeout");this.za=new XU({delayMs:g.S(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tq:!g.U(this.u.experiments,"html5_report_slow_ads_as_error")})};
YU=function(a,b){var c=g.S(a.u.experiments,b+"_delay_ms"),d=g.U(a.u.experiments,b+"_cfl");return new XU({delayMs:c,tq:d})};
$U=function(a,b,c,d,e,f,h){owa(b,c)?(a.fd(e,b,h),b.tq||f()):(b.Uu&&b.l&&!b.B?(c=(0,g.Q)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.l>b.Uu,c=b.i&&c-b.i>b.Jz||f?b.B=!0:!1):c=!1,c&&(c=a.nb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.JA(c),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.I[e]=!1)))};
XU=function(a){a=void 0===a?{}:a;var b=void 0===a.Jz?1E3:a.Jz,c=void 0===a.Uu?3E4:a.Uu,d=void 0===a.tq?!1:a.tq;this.C=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.Jz=b;this.Uu=c;this.tq=d;this.i=this.l=this.u=this.startTimestamp=0;this.B=!1};
owa=function(a,b){if(!a.C||a.l)return!1;if(!b)return a.reset(),!1;var c=(0,g.Q)();if(!a.startTimestamp)a.startTimestamp=c,a.u=0;else if(a.u>=a.C)return a.l=c,!0;a.u+=1;return!1};
bV=function(a,b,c,d){g.R.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.Pa=d;this.policy=new pwa(this.X);this.L=new ZU(this.X,this.videoData,(0,g.B)(this.V,this),this.visibility,this.Pa);a={};this.la=(a.seekplayerrequired=this.mQ,a.videoformatchange=this.QI,a);this.playbackData=null;this.La=new Nt;this.W=this.u=this.B=this.i=null;this.l=NaN;this.C=0;this.I=null;this.ma=NaN;this.J=this.Y=null;this.ea=this.ca=!1;this.ga=new g.M(function(){qwa(e,!1)},this.policy.i);
this.Za=new g.M(function(){aV(e)});
this.Ja=new g.M(function(){e.aa();e.ca=!0;rwa(e)});
this.Ha=this.timestampOffset=0;this.za=!0;this.Ca=0;this.Wa=NaN;this.ia=new g.M(function(){var f=e.X.wc;f.i+=1E4/36E5;f.i-f.u>1/6&&(AF(f),f.u=f.i);e.ia.start()},1E4);
this.Z("html5_unrewrite_timestamps")?this.la.timestamp=this.xp:this.la.timestamp=this.RI;g.I(this,this.La);g.I(this,this.ga);g.I(this,this.Ja);g.I(this,this.Za);g.I(this,this.ia)};
swa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.W=new jwa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(UH(a.videoData)&&a.B){var c=a.B.ga.Uf()||0;break a}if(a.videoData.i){c=a.videoData.i.Y;break a}}c=0}return c}),a.u=new TU(a.videoData,a.X.experiments,function(){return cV(a,!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
eV=function(a,b){g.Pt(a.La);(a.i=b)?(twa(a),aV(a)):dV(a);var c=a.L;(c.B=b)&&g.en(c.C)};
gV=function(a,b){a.B&&Rt(a.B,a.la,a);(a.B=b)?(Qt(b,a.la,a),fV(a,!0)):dV(a);a.L.l=b};
hV=function(a){return!!a.u&&a.u.C};
uwa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.W&&d){var e=a.W;if(e.i&&!(c>=e.l&&c<e.u)){var f=e.i.oh(c);-1!==f&&(e.l=e.i.jf(f),e.u=e.l+e.i.getDuration(f),f=g.Sa()/1E3-e.i.gf(f),f-=e.C(),e.B.add(f))}}a.u&&(d&&(d=a.u,e=a.i?ZJ(a.i):0,d.B++,3>d.B||g.Sa()-d.J<d.policy.X||(d.J=g.Sa(),d.l.push(e),50<d.l.length&&d.l.shift(),d.aa())),d=a.u,mwa(d,c,void 0===b?!0:b),nwa(d,c),b&&qwa(a,!0))};
qwa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!WU(c,d)&&c.C?(c.aa(),c.policy.L&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.Hc()?(c.aa(),c=Math.min(c.videoData.Hc()+10,VU(c))):c=NaN;if(!isNaN(c)){if(a.Z("html5_in_buffer_ptl")&&a.B&&b){d=a.ga.isActive();var e=VU(a.u);if((e=Yta(a.B,e-a.pc()))&&!d){a.policy.i&&a.ga.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.pc()));a.seekTo(e+a.pc());return}}a.Z("html5_peg_to_live_logging")&&a.V("ctmp",
"ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.pc()));a.seekTo(c)}}};
cV=function(a,b){if(!a.videoData.isLivePlayback)return Eia(a.videoData);if(UH(a.videoData)&&a.videoData.Ri&&a.videoData.i)return rB(a.videoData.i);if(a.videoData.u&&a.videoData.u.i){if(!b&&a.u)return VU(a.u);var c=Eia(a.videoData);a.policy.l&&a.i&&(c=Math.max(c,Aka(a.i)));return c+a.timestampOffset}a.i?cq()?(c=a.i.Ms().getTime(),c=isNaN(c)?0:Math.max((g.Sa()-c)/1E3-30,0)):c=YJ(a.i)+a.timestampOffset||a.timestampOffset:c=a.timestampOffset;return c};
fV=function(a,b){if(a.u&&a.B){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.l.length){var d=c.i;b:{if(c.l.length){if(1<Math.min.apply(null,c.l)){c.aa();var e=SU(c,c.i-1);break b}if(c.policy.B){c.aa();e=SU(c,c.i+1);break b}}e=c.i}c.i=e;if(d=d!==c.i)c.aa(),c.l=[],c.B=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",lwa(a.u));c=a.B;d=a.u.i;e=a.u;e=(e.i-1+e.policy.i)*UU(e);var f=a.u.policy.I;c.le=Math.max(d-
1,0);c.C&&(c.C.ea=e);c.Pa=f}};
iV=function(a){return a.videoData.isLivePlayback&&!!a.videoData.u&&!a.videoData.u.i};
rwa=function(a){vwa(a).then(void 0,function(){dV(a)});
jV(a).then(function(c){wwa(a,c)},function(){dV(a)});
a.V("seekstart");if(g.PH(a.videoData)){var b=a.nb();b["native"]=""+ +a.ea;b.tgt=""+a.l;a.V("ctmp","seekStart",g.JA(b))}};
vwa=function(a){if(!a.Y)if(a.B)if(isFinite(a.l))a.aa(),a.Y=a.B.seek(a.l-a.timestampOffset);else{a.aa();var b=a.B;FT(b);b.B.u&&b.aa();b.C&&dC(b.C,b.videoTrack.i);g.en(b.W);b=b.B;var c=Math.max(b.l.B.I||0,b.i.B.I||0);Hz(b.l);Hz(b.i);var d=b.C,e;for(e in d.i)ez(d.i[e].index,Infinity);b.C.isManifestless&&(b.J=!0);b.V("setcurrenttime",c);b.u=!0;b.L=new lv;a.Y=b.L;a.l=a.B.getCurrentTime()+a.timestampOffset}else a.Y=qm(a.l-a.timestampOffset);return a.Y};
jV=function(a){var b=a.I;b||(a.I=new lv,b=a.I,aV(a));return b};
xwa=function(a,b,c){return isNaN(b)?NaN:g.ee(b,a.Hc(),cV(a,c))};
aV=function(a){if(a.I)if(!a.Z("html5_nondash_live_seek_killswitch")&&iV(a)&&a.i&&0<a.i.Fg()&&0<YJ(a.i)&&(a.l=xwa(a,a.l,!1)),!a.i||!ywa(a))a.Za.start(750);else if(!isNaN(a.l)&&isFinite(a.l)&&a.ma!==a.l-a.timestampOffset){var b=a.i.getCurrentTime()-a.l;if(Math.abs(b)<=a.Ca)zwa(a);else if(!a.videoData.isLivePlayback&&a.l>=cV(a)-.1)a.l=cV(a),a.I.resolve(cV(a)),a.V("ended");else try{var c=a.l-a.timestampOffset;a.aa();a.i.seekTo(c);a.L.i=c;a.ma=c;a.C=a.l}catch(d){a.aa()}}};
ywa=function(a){if(!a.i||0===a.i.Fg()||0<a.i.Hh())return!1;var b=0<a.i.getCurrentTime();if(!(a.Z("html5_nondash_mediaelementready_killswitch")||a.videoData.u&&a.videoData.u.i||a.videoData.isLivePlayback)&&NH(a.videoData))return b;if(0<=a.l){var c=a.i.Wq();if(c.length||!b)return pz(c,a.l-a.timestampOffset)}return b};
zwa=function(a){a.I?a.I.resolve(a.i.getCurrentTime()):a.aa()};
wwa=function(a,b){a.aa();if(a.J&&(a.J.resolve(b),a.V("seekend"),g.PH(a.videoData))){var c=a.nb();c["native"]=""+ +a.ea;a.V("ctmp","seekEnd",g.JA(c))}Awa(a)};
Awa=function(a){a.l=NaN;a.ma=NaN;a.I=null;a.Y=null;a.J=null;a.ca=!1;a.ea=!1;a.Ca=0;a.ga.stop();a.Ja.stop()};
dV=function(a){a.J&&a.aa();Awa(a)};
twa=function(a){if(a.i){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.La.N(a.i,c.value,function(d){var e=a.i;d=d.type;a.aa();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.I||a.ea&&d!==a.l)a.I=new lv,a.ma=d,e=e.getCurrentTime(),a.L.i=e,a.seekTo(d),a.ea=!0;break;case "seeked":zwa(a);break;case "loadedmetadata":a.za?(e="ss.",d=0,(cI(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.lc,e="utc.",d=cV(a)-a.gf(cV(a))+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.lc?(e="mss.",d=a.videoData.lc+a.pc()):a.Z("html5_unrewrite_timestamps")&&a.videoData.pm&&(e="stss.",d=a.videoData.pm),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.za=!1):a.videoData.lc&&a.V("ctmp","startSeconds",""+e+(a.videoData.lc+a.pc())),e=!!d):e=!1;a.Z("html5_nondash_live_seek_killswitch")&&
!e&&iV(a)&&(a.l=isFinite(a.l)?g.ee(a.l,a.Hc(),cV(a)):cV(a));aV(a);break;case "progress":aV(a)}});
a.J||a.C||a.policy.u||!a.i.Mz()||a.seekTo(.01)}};
Bwa=function(a,b){a.l=b;a.C=b;jV(a).then(function(c){wwa(a,c)},function(){dV(a)})};
pwa=function(a){this.i=g.S(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.l=g.U(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.B=a.Z("html5_seek_over_discontinuities");this.u=a.Z("html5_requires_seek_for_playback_at_zero_killswitch")};
kV=function(){this.i=this.started=!1};
lV=function(){this.i=this.l=void 0};
mV=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.I=new Uint8Array(64);this.l=0;this.C.set(a);this.u.set(a);for(a=0;64>a;a++)this.C[a]^=92,this.u[a]^=54;this.reset()};
Dwa=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.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,r,t=0;64>t;t++)p=n+Cwa[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.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0};
Fwa=function(a){var b=new Uint8Array(32),c=64-a.l;55<a.l&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.B,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.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;Ewa(a);return b};
Ewa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0};
Gwa=function(a,b,c){return C(this,function e(){var f,h,l,m,n,p,r,t;return z(e,function(w){switch(w.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Pb(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);sa(w,3);return v(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.l,v(w,h.sign(l,p,n),6);case 6:r=w.l;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=new mV(a);
t.update(b);t.update(c);var x=Fwa(t);t.update(t.C);t.update(x);x=Fwa(t);t.reset();f=x}return w["return"](f)}})})};
Iwa=function(a,b,c){return C(this,function e(){var f,h,l,m,n,p,r;return z(e,function(t){switch(t.i){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){t.Pb(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};sa(t,3);return v(t,Hwa(a),5);case 5:return m=t.l,n=g.cS.Zr("oan2"),v(t,h.encrypt(l,m,b),6);case 6:p=t.l;g.cS.Hq(n,Math.ceil(b.byteLength/16));f=new Uint8Array(p);ta(t,2);break;case 3:ua(t);case 2:return f||(r=new nC(a),oC(r,c),f=r.encrypt(b)),
t["return"](f)}})})};
Hwa=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
nV=function(a){var b=this,c=new nC(a);return function(d,e){return C(b,function h(){return z(h,function(l){oC(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
oV=function(a){this.i=a;this.iv=oR(Zt())};
Jwa=function(a,b){return C(a,function d(){var e=this;return z(d,function(f){return f["return"](Gwa(e.i.l,b,e.iv))})})};
Kwa=function(a){this.iv=jR(new eR(a),5)};
Lwa=function(a){a=jR(new eR(a),4);this.i=new Kwa(new Fw([a]))};
Nwa=function(a){a=new eR(a);this.i=hR(a,1);this.itag=hR(a,3);this.lastModifiedTime=hR(a,4);this.xtags=iR(a,5);hR(a,6);hR(a,8);hR(a,9,-1);hR(a,10);this.formatId=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===Mwa[tA[""+this.itag]]};
Owa=function(a){this.body=null;a=new eR(a);this.onesieProxyStatus=hR(a,1,-1);this.body=jR(a,4)};
Pwa=function(a){a=new eR(a);this.startTimeMs=hR(a,1);this.endTimeMs=hR(a,2)};
Qwa=function(a){var b=new eR(a);a=iR(b,3);var c=hR(b,5);this.i=hR(b,7);var d=jR(b,14);this.l=new Pwa(new Fw([d]));b=iR(b,15);this.formatId=a+";"+c+";"+b};
Rwa=function(a){this.u=a;this.l=!1;this.i=[]};
Swa=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift();a.u(b.streamId,b.buffer,!1)}};
Twa=function(a){var b,c;return C(this,function e(){var f=this,h,l,m,n;return z(e,function(p){switch(p.i){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"](nV(a));l=window.crypto.subtle;sa(p,2);return v(p,Hwa(a),4);case 4:m=p.l;ta(p,3);break;case 2:return ua(p),p["return"](nV(a));case 3:return p["return"](function(r,t){return C(h,function x(){var y,F,D;return z(x,function(G){if(1==G.i){if(n)return G["return"](n(r,t));y={name:"AES-CTR",
counter:t,length:128};sa(G,2);F=g.cS.Zr("oan2");return v(G,l.encrypt(y,m,r),4)}if(2!=G.i)return D=G.l,g.cS.Hq(F,Math.ceil(r.byteLength/16)),G["return"](new Uint8Array(D));ua(G);n=nV(a);return G["return"](n(r,t))})})})}})})};
pV=function(a,b){g.R.call(this);var c=this;this.I=a;this.C=b;this.l={};this.i={};this.iv=null;this.B=!1;this.u=null;this.queue=new Rwa(function(d,e,f){c.V("STREAM_DATA",{formatId:d,data:e,isDecrypted:f});e=c.i[d];e.numSlicesProcessing--;0===e.numSlicesProcessing&&(e.hasEnded?c.V("STREAM_ENDED",{formatId:d}):c.B&&c.V("STREAM_FAILED",{formatId:d}))})};
Uwa=function(a,b,c){if(1!==b.totalLength){var d=Nw(b,0);b=uv(b,1);d=a.l[d]||null;a.aa();d&&(a.i[d].numSlicesProcessing+=1,a=a.queue,a.i.push({streamId:d,buffer:b,isEncrypted:c}),a.l||Swa(a))}};
Vwa=function(a,b){C(a,function d(){var e=this,f,h,l,m,n,p,r,t;return z(d,function(w){switch(w.i){case 1:return e.V("PLAYER_RESPONSE_RECEIVED"),f=uv(b),sa(w,2),v(w,e.I(f,e.iv),4);case 4:h=w.l;ta(w,3);break;case 2:return l=ua(w),e.aa(),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new Owa(new Fw([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new g.IA("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();r=m.body;t=
g.A.TextDecoder?(new TextDecoder).decode(r):g.Ye(r);e.aa();e.aa();e.V("PLAYER_RESPONSE_READY",t);w.i=0}})})};
qV=function(a){var b=a.value;this.name=a.name;this.value=b};
Wwa=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
Xwa=function(a,b,c){var d=b.Xe;d="https://youtubei.googleapis.com/youtubei/"+d.innertubeApiVersion+"/player?key="+d.innertubeApiKey;var e=[new qV({name:"Content-Type",value:"application/json"})],f=g.nI(c);f&&e.push(new qV({name:"Authorization",value:"Bearer "+f}));e.push(new qV({name:"User-Agent",value:g.Wc}));(c=c.visitorData||g.P("VISITOR_DATA",void 0))&&e.push(new qV({name:"X-Goog-Visitor-Id",value:c}));(b=g.mA(b.experiments,"debug_sherlog_username"))&&e.push(new qV({name:"X-Youtube-Sherlog-Username",
value:b}));a=JSON.stringify(a);return new Wwa({url:d,httpHeaders:e,postBody:a})};
Ywa=function(a){var b=a.Fx,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.Fx=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
Zwa=function(a,b){return C(this,function d(){var e,f,h,l,m,n;return z(d,function(p){switch(p.i){case 1:return sa(p,2),v(p,b.encrypt(a.Mn()),4);case 4:e=p.l;ta(p,3);break;case 2:return ua(p),f=new g.IA("onesie.request.encrypt",!1),p["return"](Promise.reject(f));case 3:return h=b.i.encryptedClientKey,l=b.iv,v(p,Jwa(b,e),5);case 5:return m=p.l,n={Fx:e,encryptedClientKey:h,iv:l,hmac:m},p["return"](new Ywa(n))}})})};
$wa=function(a){var b=a.onesieUstreamerConfig;this.Gx=a.Gx;this.onesieUstreamerConfig=b};
axa=function(a,b,c){return C(this,function e(){var f,h;return z(e,function(l){if(1==l.i)return v(l,Zwa(a,b),2);f=l.l;h={Gx:f,onesieUstreamerConfig:c};return l["return"](new $wa(h))})})};
bxa=function(a,b){if(b+1<=a.totalLength){var c=Nw(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=Nw(a,b++);else if(2===c){c=Nw(a,b++);var d=Nw(a,b++);c=(c&63)+64*d}else if(3===c){c=Nw(a,b++);d=Nw(a,b++);var e=Nw(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=Nw(a,b++);d=Nw(a,b++);e=Nw(a,b++);var f=Nw(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),Jw(a,c,4)?c=Kw(a).getUint32(c-a.u,!0):(d=Nw(a,c+2)+256*Nw(a,c+3),c=Nw(a,c)+256*(Nw(a,
c+1)+256*d)),b+=5;return[c,b]};
cxa=function(a){this.l=a;this.i=new Fw};
dxa=function(a){var b=g.q(bxa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(bxa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Kn.split(b),b=d.Yt,d=d.Kn,a.l(c,b),a.i=d,dxa(a))};
gxa=function(a){return C(this,function c(){var d;return z(c,function(e){if(1==e.i)return v(e,exa(a),2);d=e.l;return e["return"]({video:d.video.map(fxa).flat(),audio:d.audio.map(fxa).flat()})})})};
fxa=function(a){return[a].concat(g.la(hxa[a]||[]))};
exa=function(a){return C(this,function c(){var d,e,f,h,l,m,n,p,r,t;return z(c,function(w){d=eB(ixa,null,0,!1,!1,void 0);e=a.T();f=e.B;h=function(){return!0};
l=OH(a);m=VE(l,f,d,h);n=function(x){return m[x]||[]};
p=ZE(l).map(n).flat();r=cF(l).map(n).flat();t=function(x){return x.id};
return w["return"]({video:r.map(t),audio:p.map(t)})})})};
kxa=function(a,b){var c,d;a:{var e,f=a.T().Ye;if(f){var h=null===(d=jxa())||void 0===d?void 0:d.primary;if(h&&f.baseUrl){d=new Xx("https://"+h+f.baseUrl);if(f=null===(e=a.lm)||void 0===e?void 0:e.urlQueryOverride)for(e=ey(f),e=g.q(Object.entries(e)),f=e.next();!f.done;f=e.next())h=g.q(f.value),f=h.next().value,h=h.next().value,d.set(f,h);if(!d.get("id")){f=zF(a.videoId);e=[];if(f)for(f=g.q(f),h=f.next();!h.done;h=f.next())e.push(h.value.toString(16).padStart(2,"0"));e=e.join("");if(!e){d=void 0;break a}d.set("id",
e)}break a}}d=void 0}!d&&(null===(c=a.lm)||void 0===c?0:c.url)&&(d=new Xx(a.lm.url));if(!d)return"";d.set("ack","1");d.set("cpn",a.clientPlaybackNonce);d.set("opr","1");d.set("pvi","135");d.set("pai","140");d.set("oaad","0");d.set("oavd","0");b?(e=b.audio,d.set("pvi",b.video.join(",")),d.set("pai",e.join(","))):(d.set("oad","0"),d.set("ovd","0"));return Yx(d)};
rV=function(a,b,c){var d=this;this.videoData=a;this.i=b;this.playerRequest=c;this.xhr=null;this.u=new lv;this.J=!1;this.C=new g.M(this.Y,1E4,this);this.L=!1;this.B=a.T();this.I=this.B.Ye;this.X=new oV(this.I.i);this.ca=new cxa(function(e,f){d.W.feed(e,f)});
g.U(this.B.experiments,"html5_onesie_media_bytes")&&(this.l=new jz);this.W=lxa(this)};
lxa=function(a){var b=new pV(function(c,d){return a.X.decrypt(c,d)},a.i);
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.i.tick("orfb");a.J=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.i.tick("oprr");a.u.resolve(c);a.C.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.i.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){sV(a,c.errorInfo)});
a.l&&(b.subscribe("STREAM_STARTED",function(c){var d=a.l;c=c.formatId;var e=kga(d,c);d.i[c]={slices:new Fw,isComplete:!1,bytesShifted:0,bytesReceived:0,hasDecryptedBytes:!1,failureTimeout:e,isFailed:!1};d.aa();e.start()}),b.subscribe("STREAM_METADATA",function(c){var d=a.l;
d.i[c.formatId].expectedBytes=c.numBytes;d.aa()}),b.subscribe("STREAM_DATA",function(c){var d=a.l,e=c.formatId,f=c.data;
c=c.isDecrypted;c=void 0===c?!1:c;var h=d.i[e];h.failureTimeout.start();!h.hasDecryptedBytes&&c&&(h.hasDecryptedBytes=!0);h.slices.append(f);h.bytesReceived+=f.length;d.V("PROGRESS",{formatId:e});d.aa()}),b.subscribe("STREAM_ENDED",function(c){var d=a.l;
c=c.formatId;var e=d.i[c];e.expectedBytes?(e.failureTimeout.stop(),e.isComplete=!0,d.V("DONE",{formatId:c}),d.aa()):d.i[c].failureTimeout.mg()}),b.subscribe("STREAM_FAILED",function(c){a.l.i[c.formatId].failureTimeout.mg()}));
return b};
sV=function(a,b){a.u.reject(b);a.C.stop();a.i.tick("ore");a.xhr&&a.xhr.abort()};
mxa=function(a){var b=a.xhr;102400<b.Vm()&&!a.L&&(a.i.tick("or100k"),a.L=!0);for(;b.rg();){var c=b.Bh();a.aa();a.ca.feed(c)}};
sxa=function(a,b,c,d,e,f){function h(m){return nxa(l,a)?oxa(a,e,f,c).then(function(){tV(a)},function(n){tV(a,!0);
throw n;}):pxa(a,b,c,m)}
a.na();a.Y=!0;var l=a.T();return g.U(l.experiments,"html5_onesie")&&g.U(l.experiments,"html5_onesie_player_config")&&"yt"===l.Y?qxa(a).then(function(){return rxa(a,d,e,f)}).then(function(){tV(a)},function(m){m=KA(m);
if(m.i)return tV(a,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")};
nxa=function(a,b){return!((a.Cf?0:a.Z("web_player_gvi_wexit")||("MWEB"===a.deviceParams.c?a.Z("web_player_gvi_wexit_mweb"):g.fG(a)?a.Z("web_player_gvi_wexit_living_room"):g.qG(a)?a.Z("web_player_gvi_wexit_web"):g.uG(a)?a.Z("web_player_gvi_wexit_embeds"):a.Z("web_player_gvi_wexit_other")))||g.U(a.experiments,"hoffle_api")&&oI(b))||"yt"!==a.Y||"adunit"===jI(b)&&!g.U(a.experiments,"web_player_gvi_wexit_adunit")?!1:!0};
qxa=function(a){a=a.T().Ye;if(!a||!a.i)return Promise.reject(new g.IA("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};cA()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new g.IA("html5.missingapi",!1,a))):Promise.resolve()};
txa=function(a){var b=Uka();(a=g.nI(a))&&Vka(b,a);lV.i||(lV.i=new lV);return g.tM(b,lV.i)};
rxa=function(a,b,c,d){return C(this,function f(){var h,l,m,n,p,r;return z(f,function(t){if(1==t.i)return a.fetchType="onesie",h=yM(a,c,d),l=new rV(a,b,h),v(t,l.fetch(),2);m=t.l;n={player_response:m};a.Y=!1;a.Po=l.l;g.CH(a,n,!0);if(a.Y||xH(a))return t["return"](Promise.resolve());a.Po=void 0;p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.Pi||""):p.successButUnplayable="1";r=new g.IA("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
oxa=function(a,b,c,d){return C(this,function f(){var h,l,m,n,p,r,t;return z(f,function(w){switch(w.i){case 1:l=(h=a.isAd())?1:3,m=0;case 2:if(!(m<l)){w.Pb(4);break}if(!(0<m)){w.Pb(5);break}return v(w,Hm(5E3),6);case 6:n=new g.Tr("Retrying OnePlatform request",{attempt:m}),g.ht(n);case 5:return sa(w,7),v(w,uxa(a,b,c),9);case 9:return w["return"]();case 7:p=ua(w);r=KA(p);if("auth"===r.errorCode||"manifest.net.retryexhausted"===r.errorCode)return w["return"](Promise.reject(r));d(r);if(r.i){w.Pb(4);break}case 3:m++;
w.Pb(2);break;case 4:return t=h?"auth":"manifest.net.retryexhausted",w["return"](Promise.reject(new g.IA(t,!0,{backend:"op"})))}})})};
uxa=function(a,b,c){return C(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,F,D,G,K;return z(e,function(J){if(1==J.i)return a.fetchType="gp",f=txa(a),h=yM(a,b,c),l=g.jM(vxa),m=(0,g.Q)(),n=!1,p="empty",r=0,v(J,g.xK(f,h,l),2);t=J.l;if(a.na())return J["return"]();t?t.error?(n=!0,p="esf:"+t.error.message,r=t.error.code):t.errorMetadata&&(n=!0,p="its",r=t.errorMetadata.status):n=!0;if(n)return w=400===r||429===r,x=((0,g.Q)()-m).toFixed(),y=window.fetch,F={backend:"op",rc:""+r,rt:x,reason:p,fetch_exists:y?
"1":"0",fetch_polyfill:y.polyfill?"1":"0",fetch_request:window.Request?"1":"0"},D="manifest.net.connect",429===r?D="auth":200<r&&(D="manifest.net.badstatus"),J["return"](Promise.reject(new g.IA(D,w,F)));a.Y=!1;g.CH(a,{raw_player_response:t},!0);if(a.errorCode)return G={ec:a.errorCode,ed:a.errorDetail,es:a.Pi||""},J["return"](Promise.reject(new g.IA("auth",!0,G)));if(!a.Y&&!xH(a))return K=a.isAd()?"auth":"manifest.net.retryexhausted",J["return"](Promise.reject(new g.IA(K,!0,{successButUnplayable:"1"})));
J.i=0})})};
pxa=function(a,b,c,d){return C(this,function f(){var h,l,m,n,p,r,t,w,x;return z(f,function(y){switch(y.i){case 1:h=function(){return!0},l=function(F){F=KA(F);
if(F.i)return Promise.reject(F);c(F);return!1},n=(m=a.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.Pb(4);break}r=b;if(!(0<p)){y.Pb(5);break}return v(y,Hm(5E3),6);case 6:t={playerretry:p,playerretrysrc:d},m||(t.recover="embedded"),r=Ep(b,t);case 5:return v(y,wxa(a,r).then(h,l),7);case 7:if(w=y.l)return y["return"]();p++;y.Pb(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.ht(new g.Tr("b/152131571",btoa(b)))}catch(F){}return y["return"](Promise.reject(new g.IA(x,!0,{backend:"gvi"})))}})})};
wxa=function(a,b){return C(this,function d(){var e,f,h,l,m,n,p,r,t,w,x,y,F,D;return z(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.T(),(l=Soa(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Ep(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.mA(e.experiments,"debug_dapper_trace_id"))&&(m["X-Google-DapperTraceInfo"]=n),(p=g.mA(e.experiments,
"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=p),0<Object.keys(m).length&&(f.headers=m),r=(0,g.Q)(),t=function(K){if(!a.na()){K=K?K.status:-1;var J=400===K||429===K,H=((0,g.Q)()-r).toFixed();H={backend:"gvi",rc:""+K,rt:H};var L="manifest.net.connect";429===K?L="auth":200<K&&(L="manifest.net.badstatus");return Promise.reject(new g.IA(L,J,H))}},w=function(K){return t(K.xhr)},v(G,WA(ut,h,f).then(void 0,w),2);
x=G.l;if(!x||!x.responseText)return G["return"](t(x));a.Y=!1;y=zp(x.responseText);g.CH(a,y,!0,void 0);if(a.errorCode)return F={ec:a.errorCode,ed:a.errorDetail,es:a.Pi||""},G["return"](Promise.reject(new g.IA("auth",!0,F)));if(!a.Y&&!xH(a))return D=a.isAd()?"auth":"manifest.net.retryexhausted",G["return"](Promise.reject(new g.IA(D,!0,{successButUnplayable:"1"})));G.i=0})})};
tV=function(a,b){b=void 0===b?!1:b;C(this,function d(){var e,f,h,l,m;return z(d,function(n){if(1==n.i){e=a.T();if(b&&(!g.uG(e)||"embedded"!==jI(a))||a.Ij||"adunit"!==jI(a)&&(g.fG(e)||gG(e)||tG(e)||g.XF(e)||"WEB_CREATOR"===e.deviceParams.c))return n["return"]();sa(n,2);f=txa(a);h=Mna(a);l=g.jM(xxa);return v(n,g.xK(f,h,l),4)}if(2!=n.i)return(m=n.l)&&!m.error&&g.CH(a,{raw_watch_next_response:m},!1),ta(n,0);ua(n);n.i=0})})};
yxa=function(a,b,c,d,e,f){function h(){hE("virc");rE("virc","video_to_ad")}
hE("vir");rE("vir","video_to_ad");a=sxa(a,b,c,d,e,f);a.then(h,h);return a};
g.xV=function(a,b,c,d,e,f,h){g.R.call(this);var l=this;this.u=a;this.playerType=b;this.W=c;this.jc=d;this.getVisibilityState=f;this.visibility=h;this.ib=new gwa(this.u);this.J=null;this.La=new cU;this.ia=null;this.Y=new oU(this.u,this.jc,this);this.ld=!0;this.mediaSource=this.l=null;this.ca=[];this.ea=new kV;this.L=this.Ja=null;this.ga=new kV;this.Sb=null;this.Xe=this.za=!1;this.lc=NaN;this.Kc=new g.M(this.mP,500,this);this.playerState=new g.bK;this.tc=[];this.Pa=new Nt;this.videoData=new g.wH(this.u);
this.i=null;this.Ca=new g.M(this.KN,15E3,this);this.De=new g.M(this.dP,g.S(this.u.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.Bf=0;this.Ce=this.Db=!1;this.ma=NaN;this.Ha=!1;this.Za=0;this.Tc=new g.M(this.Sz,4500,this);this.jr=!1;this.kc=NaN;this.Fc=new MS(new Map([["bufferhealth",function(){var m=l.B;return m.i?ZJ(m.i):0}],
["bandwidth",function(){return l.l?jT(l.l.I):YB(l.u.schedule)}],
["networkactivity",function(){return l.u.schedule.L}],
["livelatency",function(){return l.isAtLiveHead()&&l.Kb()?uV(l):NaN}],
["rawlivelatency",function(){return uV(l)}]]));
this.Zc=!0;this.Ve=0;this.loop=!1;this.playbackRate=1;this.Ze=0;this.la=null;this.We=!1;this.oc=[];this.Hd=this.Af=0;this.Vd=this.Cf=!1;this.Sc=new g.M(this.oL,0,this);this.Wa=null;this.wc=void 0;this.Ye=0;this.af=new g.M(this.CK,0,this);this.Ac=new g.M(this.DG,3E4,this);this.Pf=[this.Kc,this.Pa,this.Sc,this.Ca,this.Ac,this.Kc,this.Tc,this.Fc,this.af,this.De];this.pe=function(){var m=l.C;m.provider.i.Ac||3===m.provider.l.getVisibilityState()||(m.provider.i.Ac=!0);Sva(m);if(m.l){var n=m.l;n.C&&0>n.i&&
3!==n.provider.l.getVisibilityState()&&qva(n)}m.qoe&&(m=m.qoe,m.ea&&0>m.l&&m.provider.i.Ac&&yva(m));g.S(l.u.experiments,"html5_background_quality_cap")&&l.l&&vV(l);l.u.vj&&!l.videoData.backgroundable&&l.i&&!l.lf()&&(l.isBackground()&&l.i.Ls()?(l.Ia("bgmobile","suspend"),l.Ol(!0)):l.isBackground()||wV(l)&&l.Ia("bgmobile","resume"))};
this.aa();this.X=new PU(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.AD("endcr")||g.W(l.playerState,32)||kS(l);
e(m,n,l.playerType)});
g.I(this,this.X);zxa(this,function(){return{}});
Axa(this);Vra(this.pe);this.visibility.subscribe("visibilitystatechange",this.pe);Bxa(this);!this.Z("html5_log_coat_killswitch")&&this.Z("html5_high_res_logging")&&(a=fwa())&&this.Ia("cblt",a);this.Z("html5_enable_web_assembly")&&loadWasm().then(function(m){m=m.version();"string"===typeof m&&l.Ia("wasm",m)})};
zxa=function(a,b){!a.C||a.C.na();a.C=new g.OU(new NU(a.videoData,a.u,a,b))};
Axa=function(a){!a.I||a.I.na();a.I=new jU(a.videoData,a.u,a.visibility);a.I.subscribe("newelementrequired",function(b){return yV(a,b)});
a.I.subscribe("qoeerror",a.ow,a);a.I.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.I.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.I.subscribe("releaseloader",function(){zV(a)});
a.I.subscribe("pausevideo",function(){a.pauseVideo()});
a.I.subscribe("clienttemp",a.Ia,a);a.I.subscribe("highrepfallback",a.yN,a);a.I.subscribe("playererror",a.Lf,a);a.I.subscribe("removedrmplaybackmanager",function(){AV(a)});
a.I.subscribe("formatupdaterequested",function(){BV(a)});
a.I.subscribe("reattachvideosourcerequired",function(){Cxa(a)})};
CV=function(a){var b=a.C;b.l&&b.l.send();if(b.qoe){var c=b.qoe;if(c.W){"PL"===c.Mc&&(c.Mc="N");var d=g.jS(c.provider);g.uU(c,d,"vps",[c.Mc]);c.B||(0<=c.l&&(c.i.user_intent=[c.l.toString()]),c.B=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.u.values()),d=c.next();!d.done;d=c.next())Nva(d.value);else b.i&&Nva(b.i);b.dispose();g.Ei(a.C)};
cJ=function(a){return a.i&&a.i.hm()?a.i.he():null};
DV=function(a){if(a.videoData.isValid())return!0;a.Lf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
EM=function(a,b){b=void 0===b?!1:b;if(a.wc&&a.Z("html5_match_codecs_for_gapless")){a.videoData.za=!0;a.videoData.oc=!0;var c;var d=null===(c=a.wc.l)||void 0===c?void 0:c.audioTrack.i.info.i;a.videoData.ep=d;var e;d=null===(e=a.wc.l)||void 0===e?void 0:e.videoTrack.i.info.i;a.videoData.np=d}a.za=b;!DV(a)||a.ea.started?g.fG(a.u)&&a.videoData.isLivePlayback&&a.ea.started&&!a.ea.isFinished()&&!a.za&&a.kx():(a.ea.start(),e=a.C,g.jS(e.provider),e.qoe&&wva(e.qoe),a.kx())};
Dxa=function(a){var b=a.videoData,c=a.jc.getPlayerSize(),d=a.getVisibilityState(),e=Roa(a.u,a.videoData,c,d,a.isFullscreen());yxa(a.videoData,e,function(f){a.handleError(f)},a.W,c,d).then(void 0,function(f){a.videoData!==b||b.na()||(f=KA(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.Lf("auth",unescape(a.videoData.errorReason),g.JA(f.details),a.videoData.errorDetail,a.videoData.Pi||void 0):a.handleError(f))})};
Yra=function(a,b){a.Wa=b;if(a.l){var c=a.l,d=new PT(b);c.Y=d;c.u&&(c.u.Y=d)}};
Gxa=function(a){if(!g.W(a.playerState,128))if(a.videoData.Wc(),a.Zc=!0,a.aa(),4!==a.playerType&&(a.ca=g.ob(a.videoData.X)),Fia(a.videoData)){EV(a).then(function(){a.na()||(a.za&&(a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.tb(dK(dK(a.playerState,512),1)),wV(a)),Exa(a,a.videoData),a.ea.i=!0,FV(a,"dataloaded"),a.ga.started?GV(a):a.za&&!a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.tb(dK(dK(a.playerState,512),1)),pva(a.Y,a.L))});
a.Ia("loudness",""+a.videoData.hj.toFixed(3),!0);var b=Mia(a.videoData);b&&a.Ia("playerResponseExperiment",b,!0);Fxa(a)}else FV(a,"dataloaded")};
EV=function(a){zV(a);a.L=null;var b=iwa(a.u,a.videoData,a.lf());a.Ja=b;a.Ja.then(function(c){Hxa(a,c)},function(c){a.na()||(c=KA(c),a.visibility.isBackground()?(HV(a,"vp_none_avail"),a.Ja=null,a.ea.reset()):(a.ea.i=!0,a.Lf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.JA(c.details))))});
return b};
BV=function(a){a.aa();EV(a).then(function(){return wV(a)});
g.hK(a.playerState)&&a.playVideo()};
Hxa=function(a,b){if(!a.na()&&!b.videoData.na()&&(a.aa(),a.L=b,swa(a.B,a.L),!a.videoData.isLivePlayback||0<a.videoData.lc&&!UH(a.videoData)||(a.seekTo(IV(a)),JV(a,"playbackData")),a.videoData.u.i&&(a.l?g.ht(Error("Duplicated Loader")):Ixa(a)),KV(a),a.Z("html5_nonblocking_media_capabilities"))){var c=Date.now();gva(a.Y,b).then(function(){a.Ia("mclatency",(Date.now()-c).toString())})}};
LV=function(a){a.aa();a.i&&a.i.ao();EM(a);DV(a)&&!g.W(a.playerState,128)&&(a.ga.started||(a.ga.start(),a.tb(dK(dK(a.playerState,8),1))),GV(a))};
GV=function(a){a.na();a.aa();if(a.ga.isFinished())a.aa();else if(a.ea.isFinished())if(g.W(a.playerState,128))a.aa();else if(a.ca.length)a.aa();else{if(!a.X.started){var b=a.X;b.started=!0;b.Jj()}if(a.hk())a.aa();else{a.l&&(b=a.l.timing,a.Xe=!!b.i&&!!b.l);a.ga.isFinished()||(a.ga.i=!0);!a.videoData.isLivePlayback||0<a.videoData.lc&&!UH(a.videoData)||(a.aa(),a.seekTo(Infinity),JV(a,"readying"),a.isBackground()&&(a.Ce=!0));b=a.C;if(b.i){var c=b.i;c.provider.videoData.Mh&&c.provider.videoData.Zl&&(LU(c,
"connected"),Iva(c))}b.qoe&&(b=b.qoe,b.provider.videoData.gj&&zU(b,b.provider.videoData.gj),b.provider.videoData.isLivePlayback&&(c=b.provider.videoData.i,UH(b.provider.videoData)&&zU(b,"manifestless"),c&&sB(c)&&zU(b,"live-segment-"+sB(c).toFixed(1))),"yt"!==b.provider.i.Y&&(b.i.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.aa();a.V("playbackready",a);oE("pbr",a.W.timerName)||(a.W.tick("pbr"),rE("pbr","video_to_ad"))}}else a.aa()};
kS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.i&&a.i.pause();b=b?new g.bK(14):new g.bK;a.tb(b)};
Exa=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.ia&&(a.removeCueRange(a.ia),a.ia=null);a.ia=new g.xD(1E3*c,0x7ffffffffffff);a.ia.namespace="endcr";a.addCueRange(a.ia)}};
NV=function(a,b,c,d){a.videoData.l=c;d&&Jxa(a,b,d);var e=(d=g.MV(a))?d.Vb():"";d=a.C;c=new bva(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.jS(d.provider);g.uU(d,e,"vfs",[c.i.id,c.l,d.Wa,c.reason]);d.Wa=c.i.id;var f=d.provider.l.getPlayerSize();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.pG();1<h&&f.push(h);g.uU(d,e,"view",f)}d.ia||(d.provider.videoData.ib&&zU(d,"rqs"),d.provider.videoData.i&&cB(d.provider.videoData.i)&&(d.i.preload=["1"]));d.ia=!0;d.W=!0;"m"===c.reason&&
100===++d.Sb&&(c=d.i.fcnz,c||(c=[],d.i.fcnz=c),c.push("2"));g.uU(d,e,"vps",[d.Mc]);d.reportStats(e)}c=a.Y;c.C=0;c.u=0;a.V("internalvideoformatchange",a.videoData,"m"===b)};
g.MV=function(a){var b=OV(a);return PE(b)||!a.L?null:g.cb(a.L.i.videoInfos,function(c){return b.B(c)})};
Jxa=function(a,b,c){if(c!==a.videoData.J){var d=!a.videoData.J;a.videoData.J=c;"m"!==b&&(b=d?"i":"a");var e=a.C;c=new bva(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.jS(e.provider);c.i.id!==e.ca&&(g.uU(e,f,"afs",[c.i.id,e.ca,c.reason]),e.ca=c.i.id)}d||a.V("internalaudioformatchange",a.videoData,"m"===b)}};
dS=function(a,b){a.aa();if(a.i&&b.he()===a.i.he()&&(b.isView()||a.i.isView())){if(b.isView()||!a.i.isView())g.Pt(a.Pa),a.i=b,Kxa(a),eV(a.B,a.i),a.I.u=a.i}else{a.i&&a.eg();if(!a.playerState.isError()){var c=eK(a.playerState,512);g.W(c,8)&&!g.W(c,2)&&(c=dK(c,1));b.isView()&&(c=eK(c,64));a.tb(c)}a.i=b;a.i.setLoop(a.loop);a.i.setPlaybackRate(a.playbackRate);Kxa(a);eV(a.B,a.i);a.I.u=a.i}};
OV=function(a){if(a.L){var b=a.Y;var c=a.L,d=PV(a),e=a.isBackground();a=eva(b);a=OE("auto",a,!1,"s");if(PE(a)){a=fva(b,c);var f=c.videoData.JE,h=ova(b,c);var l=g.S(b.i.experiments,"html5_autonav_quality_cap");var m=g.S(b.i.experiments,"html5_autonav_cap_idle_secs");l=l&&c.videoData.ph&&tp()/1E3>m?new ME(0,l,!1,"e"):uH;m=g.S(b.i.experiments,"html5_background_quality_cap");var n=g.S(b.i.experiments,"html5_background_cap_idle_secs");e=!m||"auto"!==eva(b)||tp()/1E3<n?uH:e?new ME(0,m,!1,"v"):uH;m=0;!b.i.i||
g.VF(b.i)||iq()||g.U(b.i.experiments,"hls_for_vod")||(m=g.pA.medium);if(n=g.S(b.i.experiments,"html5_default_quality_cap")){var p=!!c.i.i&&!c.videoData.yg&&!c.videoData.Qd,r=g.S(b.i.experiments,"html5_quality_cap_min_age_secs");p&&r&&(p=b.i.schedule.I,p=(0,g.Q)()-p>1E3*r);p&&(m=m?Math.min(m,n):n)}n=g.S(b.i.experiments,"html5_random_playback_cap");r=/[a-h]$/;n&&r.test(c.videoData.clientPlaybackNonce)&&(m=m?Math.min(m,n):n);(n=g.S(b.i.experiments,"html5_not_vp9_supported_quality_cap"))&&!CA('video/webm; codecs="vp9"')&&
(m=m?Math.min(m,n):n);if(r=n=g.S(b.i.experiments,"html5_hfr_quality_cap"))a:{r=c.i;if(r.i)for(r=g.q(r.videoInfos),p=r.next();!p.done;p=r.next())if(32<p.value.Na().fps){r=!0;break a}r=!1}r&&(m=m?Math.min(m,n):n);(n=g.S(b.i.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=m?Math.min(m,n):n);m=new ME(0,m,!1,"d");n=cva(b,c);r=n.compose;a:if((p=c.i)&&p.videoInfos.length){for(var t=g.q(p.videoInfos),w=t.next();!w.done;w=t.next())if(w=w.value,w.I){p=w.Na().i;break a}p=p.videoInfos[0].Na().i}else p=
0;aq()&&!g.fG(b.i)&&Yy(c.i.videoInfos[0])&&(p=Math.min(p,g.pA.large));p=new ME(0,p,!1,"o");a=r.call(n,p).compose(m).compose(e).compose(l).compose(h).compose(f).compose(a)}else b.Z("html5_perf_cap_override_sticky")&&(a=a.compose(ova(b,c)));b.Z("html5_varispeed_playback_rate")&&(a=a.compose(fva(b,c)));b=c.videoData.rm.compose(a).compose(c.videoData.JH).compose(d)}else b=uH;return b};
PV=function(a,b){if(a.J){var c=a.J;var d=void 0===b?!1:b;c=(void 0===d?0:d)&&c.za?c.za:c.L}else c=KH(a.videoData)&&a.videoData.i&&ZA(a.videoData.i)?(g.U(a.u.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Kh:g.U(a.u.experiments,"html5_drm_start_from_null_constraint"))?uH:Lua:uH;a.Vd&&(c=c.compose(Lxa));return c};
DM=function(a,b){a.videoData.rm=b;if(a.L){var c=a.Y,d=a.L;if(d.i.i){var e=g.pA[pU()],f=d.i.videoInfos[0].Na().i;if(!(e>f&&0!==f&&b.i===f)){1<c.playbackRate&&c.Z("html5_varispeed_playback_rate")&&(d=wF(c.i.B,d.i.videoInfos,c.playbackRate),0!==b.i&&d<b.i&&c.l.setPlaybackRate(1));Mxa(QE(b));if(c.Z("html5_exponential_memory_for_sticky")){d=c.i.wc;e=1;var h=void 0===h?!1:h;CF(d,"sticky-lifetime");d.values["sticky-lifetime"]&&d.ek["sticky-lifetime"]||(d.values["sticky-lifetime"]=0,d.ek["sticky-lifetime"]=
0);h&&.0625<DF(d,"sticky-lifetime")&&(e=2*d.ek["sticky-lifetime"]);d.values["sticky-lifetime"]+=1*Math.pow(2,d.i/e);d.ek["sticky-lifetime"]=e;d.B.start()}c.Z("html5_perf_cap_override_sticky")&&Nxa(c.Z("html5_perserve_av1_perf_cap"))}}}KV(a)};
KV=function(a){if(!a.na()&&!g.W(a.playerState,128)&&a.videoData.u){if(a.videoData.u.i)QV(a);else{var b=OV(a),c=a.videoData;a:{var d=a.videoData.Za;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.ff(),l=g.pA[h.Na().quality];if((!b.u||"auto"!==h.Na().quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ga=d;NV(a,b.reason,Oxa(a,a.videoData.ga))}a.Kb()&&(a.B.za=!1,a.playVideo())}};
QV=function(a){if(a.videoData.u&&a.videoData.u.i){var b=OV(a),c=a.videoData.l;if(!a.Z("html5_dynamic_av1_hybrid_threshold")&&c&&vA(c)){var d=fF(a.u);if(d&&d<c.Na().i&&d!==a.Ye){a.Ye=d;EV(a);return}}if(a.l&&(a=a.l,!a.na()&&!NE(a.l.l,b)&&a.videoTrack)){a.aa();var e=a.l.l;Pta(a,Xsa(a.l,b));DT(a);c=sT(a.l)&&"m"===b.reason&&a.l.Y;d=a.policy.Eg&&"l"===b.reason&&Rz(a.videoTrack);b=("b"===b.reason||"o"===b.reason)&&e.i>b.i;e=a.l.Ca&&!MA();c||d||b||e?(a.Uc("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),
a.V("reattachrequired")):g.en(a.W)}}};
vV=function(a){a.Z("html5_nonblocking_media_capabilities")?QV(a):KV(a)};
Ixa=function(a){a.Z("html5_probe_media_capabilities")&&hia(a.videoData.u);Sga(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver});var b=a.u,c=a.videoData,d=new g.Jx,e=Ix(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Xi:c.Xi});d.B=e;d.kj=b.Z("html5_disable_codec_for_playback_on_error");d.gj=b.Z("html5_max_drift_per_track_secs")||b.Z("html5_rewrite_manifestless_for_sync")||b.Z("html5_check_segnum_discontinuity");d.Ac=b.Z("html5_unrewrite_timestamps");
d.oc=b.Z("html5_stop_overlapping_requests");d.De=g.S(b.experiments,"html5_min_readbehind_secs");d.jm=g.S(b.experiments,"html5_min_readbehind_cap_secs");d.gm=g.S(b.experiments,"html5_max_readbehind_secs");d.np=g.U(b.experiments,"html5_trim_future_discontiguous_ranges");d.Oh=b.Z("html5_append_init_while_paused");d.Ce=g.S(b.experiments,"html5_max_readahead_bandwidth_cap");d.Xe=g.S(b.experiments,"html5_post_interrupt_readahead");d.X=g.S(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.wc=g.S(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Qo=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.tc=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.To=g.S(b.experiments,"html5_subsegment_readahead_min_load_speed");d.eh=g.S(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Zo=g.S(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.We=b.Z("html5_peak_shave");d.zm=b.Z("html5_restrict_streaming_xhr_on_sqless_requests");
d.em=g.S(b.experiments,"html5_max_headm_for_streaming_xhr");d.km=b.Z("html5_net_closed_is_timeout");d.mm=b.Z("html5_pipeline_manifestless_allow_nonstreaming");d.qm=b.Z("html5_prefer_server_bwe3");d.gh=1024*g.S(b.experiments,"html5_video_tbd_min_kb");d.Ye=b.Z("html5_probe_live_using_range");d.Gj=b.Z("html5_last_slice_transition");d.Io=b.Z("html5_store_xhr_headers_readable");d.Aj=b.Z("html5_enable_packet_train_response_rate");if(e=g.S(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Ze=
e,d.ep=1;d.jc=g.S(b.experiments,"html5_probe_primary_delay_base_ms")||d.jc;d.Ve=b.Z("html5_no_placeholder_rollbacks");d.Po=b.Z("html5_subsegment_readahead_enable_mffa");b.Z("html5_allow_video_keyframe_without_audio")&&(d.Ja=!0);d.Af=b.Z("html5_reattach_on_stuck");d.Jp=b.Z("html5_webm_init_skipping");d.Bf=g.S(b.experiments,"html5_request_size_padding_secs")||d.Bf;d.Kh=b.Z("html5_log_timestamp_offset");d.Sc=b.Z("html5_abs_buffer_health");d.Ek=b.Z("html5_interruption_resets_seeked_time");d.Vd=g.S(b.experiments,
"html5_max_live_dvr_window_plus_margin_secs")||d.Vd;d.Tc=b.Z("html5_explicitly_dispose_xhr");d.vo=b.Z("html5_skip_invalid_sq");d.ym=b.Z("html5_restart_on_unexpected_detach");d.Zl=b.Z("html5_log_live_discontinuity");d.Am=b.Z("html5_rewrite_manifestless_for_continuity");d.ld=g.S(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Hd=g.S(b.experiments,"html5_max_drift_per_track_secs");d.Bm=b.Z("html5_rewrite_manifestless_for_sync");d.lc=g.S(b.experiments,"html5_static_abr_resolution_shelf");d.Si=
!b.Z("html5_encourage_array_coalescing");d.jj=b.Z("html5_crypto_period_secs_from_emsg");d.sj=b.Z("html5_disable_reset_on_append_error");d.Ck=b.Z("html5_filter_non_efficient_formats_for_safari");d.Jh=b.Z("html5_format_hybridization");d.Mh=b.Z("html5_abort_before_separate_init");d.Cm=b.Z("html5_serialize_server_stitched_ad_request");b.Z("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.l.Uf()===e.policy.u?d.Y=10:d.Y=c.minReadAheadMediaTimeMs/1E3||d.Y,d.qd=
c.readAheadGrowthRateMs/1E3||d.qd);og&&(d.ca=41943040);d.La=!UA();g.fG(b)||!UA()?(e=b.experiments,d.I=8388608,d.J=524288,d.Ri=5,d.Za=2097152,d.ia=1048576,d.wm=1.5,d.lm=!1,d.W=4587520,dq()&&(d.W=786432),d.l*=1.1,d.u*=1.1,d.kc=!0,d.ca=d.I,d.ib=d.J,d.Fc=g.U(e,"persist_disable_player_preload_on_tv")||g.U(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.l*=1.3,d.u*=1.3);g.DA&&Zp("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.J=1572864,e&&(d.W=812500,d.Kc=
1E3,d.Dp=5,d.ia=2097152));!b.Z("html5_disable_firefox_init_skipping")&&g.oF&&(d.kc=!0);b.supportsGaplessAudio()||(d.zj=!1);NF&&(d.Ca=!0);hq()&&(d.Pf=!0);var f;e=null===(f=c.i)||void 0===f?void 0:ZA(f);if(UH(c)){d.L=b.Z("html5_used_segment_info_cuepoint");d.Dk=!0;d.ro=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.Z("html5_disable_low_pipeline"))d.cm=2,d.fm=4;d.Uj=c.defraggedFromSubfragments;c.xd&&(d.ea=!0);g.bI(c)&&(d.Ha=!1);d.hj=g.sG(b)}c.isAd()&&(d.Db=0,d.Zc=0);ria(c)&&(d.ma=!0,b.Z("html5_resume_streaming_requests")&&
(d.ga=!0,d.Kc=400,d.dm=2));d.Pa=b.Z("html5_enable_subsegment_readahead_v3")||b.Z("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Wa=c.ib;d.Hj=d.Wa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.PH(c));nq()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.Z("html5_disable_move_pssh_to_moov")&&e&&(d.kc=!1);e&&(d.Af=!1);var h=0;b.Z("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.l,c.isLivePlayback&&(h=g.S(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.X.i=UH(c)?.5:0;if(!f.policy.i&&h&&(f=f.l,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.l?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<h;++p)l[p]=Infinity;f.i=h;f.values=l;f.valueIndex=m%h;f.l=m===h;f.B=!0;f.I=QB(f)}d.Sb=c.isLivePlayback;switch(VH(c)){case 21530001:d.Lh=
b.Z("html5_live_smoothly_extend_max_seekable_time");d.Pa=!0;"LOW"===c.latencyClass?d.X=g.S(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.X=g.S(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Ve=!0;break;case 2153E4:d.Pa=!1}d.Ca=d.Ca||c.Qo;d.la=c.za;g.PH(c)&&(d.Zg=!0);c.za&&!e&&b.Z("html5_hack_gapless_init")&&(d.Cf=!0);(e=g.S(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.za&&c.isAd()&&(d.l*=e,d.u*=e);pI(c)&&(d.i=c.videoId,
d.Sc=!0);b.Z("html5_drm_initial_constraint_from_config")?d.Eg=c.Kh:d.Eg=b.Z("html5_drm_start_from_null_constraint");b.Z("html5_dynamic_av1_hybrid_threshold")&&(d.vj=!0,d.za=fF(b,{},c.u||void 0));c=sta();e=g.S(b.experiments,"html5_deadzone_multiplier")||1;(f=g.S(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.l*=e;d.u*=e;if(e=g.S(b.experiments,"html5_request_sizing_multiplier"))d.xm=e;XE(b.B,YE.BITRATE)&&(d.W=NaN);b.B.l&&(d.Bj="; "+YE.EXPERIMENTAL.name+"=allowed");c&&(d.fh=0,d.lc=0);
d.rm=b.Z("html5_rec_2020_matrix_correction_killswitch");c=d.Sb&&!b.Z("html5_pause_appends_killswitch");d.Sb=c||b.Z("html5_never_pause_appends");g.U(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&NF&&(d.pm=!0);g.U(b.experiments,"debug_html5_random_stun_format")&&(d.af=!0);g.U(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.qp=!0);g.U(b.experiments,"html5_log_audio_abr")&&(d.Ij=!0);b=b.experiments;g.U(b,"html5_validate_lengthless_slices_killswitch")&&(d.zp=!1);g.U(b,"html5_audio_only_eos_fix_killswitch")&&
(d.Qh=!0);g.U(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.sm=!0);g.U(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Pf=!1);g.U(b,"html5_skip_buffer_check_seek_to_head")&&(d.Yi=!0);b=a.getAudioTrack();b=b.i.isDefault?void 0:b;c=a.La;c.keys=[];c.values=[];a.l=new zT(a.u.schedule,d,a.videoData.i,a.videoData.u,OV(a),b,a.X,a.videoData.enableServerStitchedDai,a.videoData.Po);a.l.subscribe("needkeyinfo",a.DF,a);a.l.subscribe("newDrmInfo",a.cO,a);a.l.subscribe("videoformatchange",a.WI,a);
a.l.subscribe("audioformatchange",a.MN,a);a.l.subscribe("error",a.handleError,a);a.l.subscribe("ctmp",a.Ia,a);a.l.subscribe("reattachrequired",a.fQ,a);a.l.subscribe("metadata",a.xF,a);a.l.subscribe("constraint",a.vP,a);a.l.subscribe("timestamp",a.SI,a);a.l.subscribe("localmediachange",a.NN,a);a.l.subscribe("localplaybackfailed",a.qK,a);d=Pxa(a)?!0:a.za&&g.fG(a.u)&&a.videoData.isLivePlayback;a.l.initialize(a.getCurrentTime(),OV(a),d);a.videoData.probeUrl&&(a.l.la=a.videoData.probeUrl);(a.ca.length||
a.za)&&RV(a,!1);gV(a.B,a.l);a.I.l=a.l;a.Wa&&(d=a.l,b=new PT(a.Wa),d.Y=b,d.u&&(d.u.Y=b));Lia(a.videoData)&&(a.l.policy.Bk=2)};
Bxa=function(a){a.B=new bV(a.videoData,a.u,a.visibility,function(){return g.fb(a.ca,"ad")});
g.I(a,a.B);a.B.subscribe("seekto",function(b,c){a.B.C=b;var d=a.ib;d.mediaTime=b;d.i=!0;c||SV(a);a.ia&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.ia),a.ia=null);b<IV(a)-.01&&(d=eK(a.playerState,2),g.W(d,8)&&(d=eK(d,4)),a.tb(d));a.V("SEEK_TO",a,b)});
a.B.subscribe("seekstart",function(){vS(a)});
a.B.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.B.subscribe("newmediaelementrequired",function(){return yV(a)});
a.B.subscribe("ended",function(){kS(a)});
a.B.subscribe("ctmp",a.Ia,a);a.B.subscribe("qoeerror",a.ow,a);a.B.subscribe("livereadaheadchanged",function(b){var c=a.C;c.qoe&&(c=c.qoe,g.uU(c,g.jS(c.provider),"lra",[b]),c.Ia("live-readahead-seconds",b.toString()))});
a.B.subscribe("releaseadsprerolllock",function(){a.jd("ad")});
a.B.subscribe("skipslowad",function(){a.Lf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
zV=function(a){a.l&&(a.l.dispose(),a.l=null,gV(a.B,null),a.I.l=null);TV(a)};
TV=function(a){if(a.mediaSource){a.aa();if(a.l){var b=UH(a.videoData)&&a.videoData.xd&&!a.videoData.isAd();GT(a.l,b)}a.mediaSource.dispose();a.mediaSource=null}};
UV=function(a){if(a.mediaSource)return a.mediaSource.wr;a.aa();Qxa(a);return a.mediaSource?a.mediaSource.wr:null};
Qxa=function(a){if(a.Z("html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.S(a.u.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Bf<b&&a.De.start();try{var c=a.i.Ks()}catch(d){if(mU(a.I,"html5.missingapi",{updateMs:"1"}))return;g.ht(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Lf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}fS(a,c)}};
fS=function(a,b){Rxa(a);a.mediaSource=b;Cga(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.aa();var d=a.getDuration();!d&&UH(a.videoData)&&(d=g.S(a.u.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.aa(),c>a.mediaSource.getDuration()&&QA(a.mediaSource,c)):QA(a.mediaSource,d);var e=a.l,f=a.mediaSource;e.L&&(e.aa(),FT(e),e.L=!1);e.aa();Hta(e);if(!RA(f)){var h=e.videoTrack.i.info.mimeType+e.policy.Bj,l=e.audioTrack.i.info.mimeType,
m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),r="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.ee&&(f.ee.webkitSourceAddId("0",l),f.ee.webkitSourceAddId("1",h));var t=new LA(p,f.ee,"0",sA(l),!1),w=new LA(r,f.ee,"1",sA(h),!0);f.i=t;f.l=w;g.I(f,t);g.I(f,w)}vz(e.videoTrack,f.l||null);vz(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();Qt(f.i,e.ma,e);Qt(f.l,e.ma,e);e.policy.Kh&&1E-4>=Math.random()&&e.Uc("toff",""+f.i.supports(1),
!0);e.Gg();a.V("mediasourceattached");a.De.stop()}}catch(x){g.ht(x),a.handleError(new g.IA("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
Rxa=function(a){a.l?g.xm(a.l.seek(a.getCurrentTime()-a.pc()),function(){}):Ixa(a)};
yV=function(a,b){b=void 0===b?!1:b;return C(a,function d(){var e=this;return z(d,function(f){if(1==f.i)return e.l&&e.l.na()&&zV(e),e.V("newelementrequired"),b?v(f,EV(e),2):f.Pb(2);g.W(e.playerState,8)&&e.playVideo();f.i=0})})};
Sra=function(a,b){a.Ia("newelem",b);yV(a)};
SV=function(a){g.W(a.playerState,32)||(a.tb(dK(a.playerState,32)),g.W(a.playerState,8)&&a.pauseVideo(!0),a.V("beginseeking",a));a.Ab()};
vS=function(a){g.W(a.playerState,32)?(a.tb(fK(a.playerState,16,32)),a.V("endseeking",a)):g.W(a.playerState,2)||a.tb(dK(a.playerState,16))};
DS=function(a){a=a.B;return a.u?VU(a.u):Infinity};
FV=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
Kxa=function(a){g.Ab("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Pa.N(this.i,b,this.XI,this)},a);
a.u.gh&&a.i.hm()&&(a.Pa.N(a.i,"webkitplaybacktargetavailabilitychanged",a.KM,a),a.Pa.N(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.LM,a))};
Txa=function(a){a.Z("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&Sxa(a)&&a.Kc.start()};
Sxa=function(a){if(!a.i)return!1;var b=a.i.getCurrentTime();a=a.i.getDuration();return!!(1<b&&b>a-.3)};
Uxa=function(a){window.clearInterval(a.lc);VV(a)||(a.lc=vo(function(){return VV(a)},100))};
VV=function(a){var b=a.i;b&&a.Db&&!a.videoData.Ha&&!oE("vfp",a.W.timerName)&&2<=b.Fg()&&!b.cj()&&0<rz(b.Tf())&&a.W.tick("vfp");return(b=a.i)&&!a.videoData.Ha&&0<b.getDuration()&&(!oE("pbp",a.W.timerName)&&b.Jk()&&2<=b.Fg()&&0<rz(b.Tf())&&a.W.tick("pbp"),b=b.getCurrentTime(),QU(a.ib,b))?(Lra(a),!0):!1};
Lra=function(a){window.clearInterval(a.lc);a.Ca.stop();a.videoData.Ha=!0;a.u.Ri=!0;a.u.Ca=0;var b=a.I,c=b.videoData.l;c&&b.videoData.Z("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i["delete"](c.i);a.u.Af=a.videoData.Zo;Vxa(a);g.W(a.playerState,8)&&a.tb(eK(a.playerState,65));b=a.C;b.i&&Kva(b.i);b.l&&(b=b.l,c=g.jS(b.provider),0>b.i&&(b.i=c,b.delay.start()),b.l=c,b.B=c);g.en(a.Tc);a.V("playbackstarted");g.mp()&&((a=g.Ha("yt.scheduler.instance.clearPriorityThreshold"))?a():op(0))};
Vxa=function(a){var b=a.getCurrentTime(),c=a.videoData;!oE("pbs",a.W.timerName)&&pE.measure&&pE.getEntriesByName&&(pE.getEntriesByName("mark_nr")[0]?qE("mark_nr"):qE());c.videoId&&a.W.info("docid",c.videoId);c.eventId&&a.W.info("ei",c.eventId);c.clientPlaybackNonce&&a.W.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.W.info("start",c.startSeconds.toString());a.i&&a.i.Jk()&&a.W.info("paused",1);c.l?a.W.info("fmt",c.l.Vb()):a.W.info("fmt","-1");c.oc&&a.W.info("yt_pre",a.Xe?"2":"1");a.isFullscreen()&&
a.W.info("yt_fs","1");a.W.info("cmt",b.toFixed(3));if(a.l){b=a.l.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.l&&(c=window.performance.getEntriesByName(b.l),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.i&&(c=window.performance.getEntriesByName(b.i),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.W.tick(d,b[d])}};
Wxa=function(a){a.C.oe();if(a.videoData.isLivePlayback&&g.Sa()>a.Ze+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&oB(a.videoData.i))){var b=a.C;if(b.qoe){b=b.qoe;var c=b.provider.l.Rt(),d=g.jS(b.provider);vva(b,d,c);c=c.C;isNaN(c)||g.uU(b,d,"e2el",[c.toFixed(3)])}}g.sG(a.u)&&a.Ia("rawlat","l."+OS(a.Fc,"rawlivelatency").toFixed(3));a.Ze=g.Sa()}a.videoData.l&&wA(a.videoData.l)&&(b=cJ(a))&&b.videoHeight!==a.Hd&&(a.Hd=b.videoHeight,NV(a,"a",Oxa(a,a.videoData.ga)))};
Oxa=function(a,b){if("auto"===b.i.Na().quality&&wA(b.ff())&&a.videoData.Za)for(var c=g.q(a.videoData.Za),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Hd&&"auto"!==d.i.Na().quality)return d.ff();return b.ff()};
uV=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.l)return NaN;var b=UH(a.videoData)?a.l.ga.Uf()||0:a.videoData.i.Y;return g.Sa()/1E3-a.gf()-b};
Xxa=function(a){!a.Z("html5_ignore_airplay_events_on_new_video_killswitch")&&a.i&&a.i.lf()&&(a.kc=(0,g.Q)());a.u.Ek?g.uo(function(){WV(a)},0):WV(a)};
WV=function(a){if(a.i)try{a.Sb=a.i.playVideo()}catch(c){HV(a,"err."+c)}if(a.Sb){var b=a.Sb;b.then(void 0,function(c){a.aa();if(!g.W(a.playerState,4)&&!g.W(a.playerState,256)&&a.Sb===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.aa();else{var d="promise";c&&c.name&&(d+=";m."+c.name);try{a.tb(dK(a.playerState,2048))}catch(e){}HV(a,d);a.We=!0}})}};
HV=function(a,b){g.W(a.playerState,128)||(a.tb(fK(a.playerState,1028,9)),a.Ia("dompaused",b),a.V("onDompaused"))};
wV=function(a){if(!a.i||!a.videoData.u)return!1;var b,c,d=null;(null===(c=a.videoData.u)||void 0===c?0:c.i)?(d=UV(a),null===(b=a.l)||void 0===b?void 0:b.resume()):(zV(a),a.videoData.ga&&(d=a.videoData.ga.Rp()));b=d;d=a.i.Ls();c=!1;d&&null!==b&&b.i===d.i||(a.W.tick("vta"),rE("vta","video_to_ad"),0<a.getCurrentTime()&&(c=a.getCurrentTime(),a.B.C=c),a.i.ao(b),a.mediaSource&&op(4),!a.videoData.Ha&&g.hK(a.playerState)&&a.Ca.start(),c=!0);g.W(a.playerState,2)||(b=a.B,b.J||!(0<b.C)||b.i&&0<b.i.getCurrentTime()||
b.seekTo(b.C));a:if(b=c,g.YH(a.videoData)&&a.i)if((d=a.videoData.I)&&a.i.hm()){var e=a.i.he();if(a.J)if(e!==a.J.element)AV(a);else if(b&&"fairplay"===d.flavor&&!cq())AV(a);else break a;a.J=new fU(e,a.videoData,a.u);a.J.subscribe("licenseerror",a.VI,a);a.J.subscribe("qualitychange",a.GN,a);a.J.subscribe("heartbeatparams",a.TI,a);a.J.subscribe("keystatuseschange",a.UI,a);a.J.subscribe("hdproberequired",a.FN,a);a.J.subscribe("ctmp",a.Ia,a);b=g.q(a.La.keys);for(d=b.next();!d.done;d=b.next())d=a.La.get(d.value),
Pua(a.J,d);a.Z("html5_eme_loader_sync")||(a=a.La,a.keys=[],a.values=[])}else a.Lf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
AV=function(a){a.J&&(a.J.dispose(),a.J=null)};
gS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.Z("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.W(a.playerState,4))||hV(a.B)||g.bI(a.videoData))?a.getCurrentTime():IV(a,b)};
IV=function(a,b){return cV(a.B,void 0===b?!1:b)};
Yxa=function(a){return a.i?a.i.Js():a.loop};
Cxa=function(a){a.aa();a.i&&(a.mediaSource?(AV(a),TV(a),UV(a)):(a.videoData.ga&&a.videoData.ga.Rz(),a.i.stopVideo()),a.playVideo())};
XV=function(a,b){g.U(a.u.experiments,"html5_log_rebuffer_reason")&&a.Ia("bufreason","r."+b+";lact."+tp())};
rS=function(a,b,c,d,e){var f;if(null===(f=a.videoData.i)||void 0===f?0:f.isLive){var h=2===c.playerType?c:b,l=b.videoData.videoId,m=c.videoData.videoId;if(l&&m){var n=a.C,p=b.cpn;if(n.qoe){var r=n.provider.videoData.videoId;r=p!==n.provider.videoData.clientPlaybackNonce&&l!==r;zva(n.qoe,r?p:"",r?l:"",c.cpn,m,0,d,r?h.videoData.tc:void 0)}n.u.has(p)?(d=n.u.get(p),MU(d).send(),g.wo(d.l),d.l=NaN):(n.Ff=n.provider.videoData.clientPlaybackNonce,n.Ff&&n.i&&n.u.set(n.Ff,n.i));a=a.C;c=c.cpn;d=h.videoData;
h=h.Zb/1E3;var t;a.qoe&&(n=a.provider.videoData.videoId,n=c!==a.provider.videoData.clientPlaybackNonce&&m!==n,zva(a.qoe,n?c:"",n?m:"",b.cpn,l,1,e,d.tc));a.u.has(c)?null===(t=a.u.get(c))||void 0===t?void 0:t.u&&isNaN(t.l)&&JU(t,!1):(b=Wva(a,a.provider,d,h),a.u.set(c,b),Kva(b));a.Ff=c}}};
YV=function(a){a.l&&(a=a.l,a.audioTrack.B.C=null,a.videoTrack.B.C=null,a.policy.i="",a.policy.tj=!1)};
Zxa=function(a,b){if(a.videoData.ib){var c=g.S(a.u.experiments,"html5_log_rebuffer_events");if(c&&a.i){var d=a.i.nb();d.rt=(1E3*g.jS(a.C.provider)).toFixed();d.e=b.substr(0,3);a.oc[a.Af++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.aa()};
$xa=function(a){if(a.videoData.ib){a.oc.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.oc),c=b.next();!c.done;c=b.next())c=c.value,a.Ia("vpe","t."+c.rt+";"+g.JA(c));a.oc=[];a.Af=0}};
JV=function(a,b){a.Ia("seekreason",b)};
aya=function(a){if(Zp("cobalt")&&Zp("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ia("nxdock",""+ +b)}};
Kra=function(a,b,c,d,e){a.Ia("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
RV=function(a,b){ET(a.l,b||Pxa(a))};
Pxa=function(a){var b=a.Z("disable_prefetch_when_ad_pending_for_living_room")&&g.fG(a.u),c=a.Z("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.fb(a.ca,"ad")};
Fxa=function(a){if(MH(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Sq.getInstance(),!g.Uq(0,183))){var b="f"+(Math.floor(183/31)+1),c=Tq(b)||0;c|=268435456;0==c?delete Rq[b]:(c=c.toString(16),Rq[b]=c.toString());a.save()}};
g.$V=function(a,b,c){g.E.call(this);var d=this;this.xr=this.Sf=!1;this.W=null;this.Ac={};this.Sb={};this.Kc=!1;this.Ha=null;this.Sc=!1;this.ma=!0;this.qd=this.tc=null;this.Tc=!0;this.B=this.L=null;this.ib=this.Ja=!1;this.ld=this.Pa=this.u=this.playlist=null;this.Wa=void 0;this.la=0;this.ea=this.Ca=this.X=null;this.aa();this.config=lfa(b||{});this.webPlayerContextConfig=c;Cea();b=this.config.args||{};this.i=new iG(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.I(this,this.i);void 0!==
navigator.mediaCapabilities&&(iB=!0);g.U(this.i.experiments,"html5_disable_subtract_cuepoint_offset")&&(Iv=!0);g.U(this.i.experiments,"html5_log_opus_oboe_killswitch")&&(qw=!1);g.U(this.i.experiments,"html5_skip_empty_load")&&(bya=!0);cya=g.U(this.i.experiments,"html5_ios_force_seek_to_zero_on_stop");dya=g.U(this.i.experiments,"html5_ios7_force_play_on_stall");eya=g.U(this.i.experiments,"html5_ios4_seek_above_zero");g.U(this.i.experiments,"html5_mediastream_applies_timestamp_offset")&&(Zy=!0);g.U(this.i.experiments,
"html5_dont_override_default_sample_desc_index")&&($v=!0);this.i.i&&!fya&&(window.addEventListener(MF?"touchstart":"click",Era,{capture:!0,passive:!0}),fya=!0);this.Hd=V(RF(this.i)&&!0,b.enablesizebutton);this.oc=V(!1,b.player_wide);this.visibility=new lS;g.I(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.XM(this);g.I(this,this.events);this.mi=new g.Dn;g.I(this,this.mi);this.Yj=new g.Dn;g.I(this,this.Yj);this.yl=new Csa;this.Ea=new g.OM(this);g.I(this,this.Ea);
this.template=new SS(this);g.I(this,this.template);this.Y=1;this.Cg=this.i.af?gya():{volume:100,muted:this.i.mute};this.G=this.i.u?new NM(this,1):new HM(this,1);g.I(this,this.G);c={};this.jc=(c.internalvideodatachange=this.PM,c.playbackready=this.RM,c.playbackstarted=this.SM,c.statechange=this.TM,c);this.C=hya(this);this.wc=new g.XM(this);g.I(this,this.wc);this.J=new YM(this.i,this.C);this.l=iya(this);c={};this.Zc=(c.airplayactivechange=this.IM,c.airplayavailabilitychange=this.JM,c.beginseeking=this.ZM,
c.endseeking=this.wN,c.internalAbandon=this.aJ,c.internalaudioformatchange=this.YI,c.internalvideodatachange=this.Oa,c.internalvideoformatchange=this.eJ,c.liveviewshift=this.IN,c.playbackstalledatstart=this.eP,c.progresssync=this.wO,c.onLoadProgress=this.JN,c.SEEK_COMPLETE=this.cJ,c.SEEK_TO=this.VO,c.onVideoProgress=this.fJ,c.onLoadedMetadata=this.LN,c.onDompaused=this.uN,c.playbackready=this.lO,c.statechange=this.ZF,c.connectionissue=this.Br,c.newelementrequired=this.BF,c.heartbeatparams=this.ZI,
c.videoelementevent=this.dJ,c.drmoutputrestricted=this.vN,c.requestmediasource=this.IO,c.signatureexpired=this.aP,c.localmediachange=this.bJ,c);this.ia=new g.XM(this);g.I(this,this.ia);c=10;g.fG(this.i)&&(c=3);rG(this.i)&&(c=g.S(this.i.experiments,"tvhtml5_unplugged_preload_cache_size"));this.La=new JS(c,function(e){e!==g.Y(d,e.getPlayerType())&&e.dispose()});
g.I(this,this.La);this.kc=this.Za=-1;this.Db=new g.M(this.template.resize,16,this.template);g.I(this,this.Db);jya(this);this.ca=new xS(this.Ea,this.i,this.l);this.za=new hS(this.Ea);g.I(this,this.za);usa(this.i.deviceParams.c);this.events.N(this.Ea,g.AD("appapi"),this.MM);this.events.N(this.Ea,g.BD("appapi"),this.OM);this.events.N(this.Ea,g.AD("appad"),this.eF);this.events.N(this.Ea,g.BD("appad"),this.eF);this.events.N(this.Ea,g.BD("applooprange"),this.JG);this.events.N(this.Ea,"presentingplayerstatechange",
this.ug);this.events.N(this.Ea,"resize",this.JO);this.template.fa(re(a));this.events.N(this.Ea,"offlineslatestatechange",this.eO);this.Fc=kya(this,this.template.element);g.I(this,this.Fc);this.i.gj&&(this.Z("woffle_orchestration")?this.ga=new Bra(this.i,this.Ea,ZV(this,1),function(){return d.se()}):this.Z("hoffle_save")?this.W=new AM(this.Ea,ZV(this,1),function(){return d.se()}):sfa()&&Tna());
this.i.Za&&(g.kN.ux=g.dR);lya(this);this.J.tick("fs");mya(this);this.I=null;this.i.Za&&yoa(this.C);g.ZF(this.C.G.T())&&jN(this.C,"music");g.PF(this.C.G.T())&&jN(this.C,"embed");this.Z("web_player_sentinel_is_uniplayer")||to(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.Vd=nya(this);if(a=g.S(this.i.experiments,"html5_block_pip_safari_delay"))this.lc=new g.M(this.EC,a,this),g.I(this,this.lc);this.aa()};
nya=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.u||a.l).C.onError("player.exception",g.JA({n:c.name,m:c.message}))}
qo.push(b);return function(){var c=qo.indexOf(b);-1!==c&&qo.splice(c,1)}};
iya=function(a){var b=new g.xV(a.i,1,a.J,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.mi.V.apply(a.mi,[c].concat(g.la(e)))},function(){return a.Ea.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.i.l?1:oya(a,pya()));Qt(b,a.jc,a);return b};
hya=function(a){var b="",c=xsa(a);0===c.indexOf("//")&&(c=a.i.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)||to(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new gN(a.Ea,b);qya(a,b);return b};
qya=function(a,b){var c={};c=(c.destroyed=function(){a.i.u&&a.u?a.Ea.xa("onApiChange",a.u.getPlayerType()):a.Ea.xa("onApiChange")},c);
b.l=c};
rya=function(a,b){var c=a.isVideoInfoVisible();a.X||(a.X=new $S(a.Ea),g.I(a,a.X),g.VM(a.Ea,a.X.element,4));g.YK(a.X,b);aW(a)&&c!==b&&g.RM(a.C).qA();c=a.u;b&&c&&c.Ia("sfn","1",!0)};
bW=function(a){a.B=a.i.deviceHasDisplay?$R.pop()||new g.sN(g.Ie("VIDEO")):new g.sN(g.Ie("AUDIO"));g.I(a,a.B);a.u&&dS(a.u,a.B);try{a.i.Wa?(a.Ca&&a.events.Gb(a.Ca),a.Ca=a.events.N(a.B,"volumechange",a.VN)):(a.B.tp(a.Cg.muted),a.B.setVolume(a.Cg.volume/100))}catch(d){a.ge("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.Pt(a.ia);sya(a);var b=a.template;b.qb=a.B.he();b.Zt=!1;b.qb.parentNode||g.Le(b.rq,b.qb,0);b.Nu=new g.cg(0,0,0,0);Bsa(b);
TS(b);g.N(b.qb,"video-stream");g.N(b.qb,g.RS.MAIN_VIDEO);var c=b.app.T();c.Ve&&b.qb.setAttribute("data-no-fullscreen","true");c.fh&&(b.qb.setAttribute("webkit-playsinline",""),b.qb.setAttribute("playsinline",""));c.Ck&&b.qb&&b.N(b.qb,"click",b.qb.play,b.qb);try{a.B.ao()}catch(d){a.ge("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
eW=function(a,b){if(a.u!==b){a.aa("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.u&&(c=a.u.getPlayerState(),a.aa(),lN(a.C,3),cW(a,"cuerangesremoved",OT(a.u.X)||[]),a.za&&!b.isGapless()&&a.u.isGapless()&&a.B&&a.B.stopVideo(),tya(a));dW(a,b);a.u=b;a.B&&dS(b,a.B);Qt(b,a.Zc,a);a.Oa("newdata",b,b.getVideoData());c&&!g.gK(c,b.getPlayerState())&&a.ZF(new g.gJ(b.getPlayerState(),c));b.ea.isFinished()&&a.Oa("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().l)&&
c.video)&&a.Ea.xa("onPlaybackQualityChange",c.quality);cW(a,"cuerangesadded",OT(a.u.X)||[]);c=b.getPlayerState();g.W(c,2)?uya(a):g.W(c,8)&&b.playVideo();a.aa()}};
uya=function(a){if(!vya(a)){var b=a.l.cd();b&&(b=b.Dq(),b instanceof Promise&&b["catch"](function(){}));
fW(a,kK(a.Xa()))}};
sya=function(a){var b=a.B;FA()?a.ia.N(b,"webkitpresentationmodechanged",a.SO):EA()&&(a.ia.N(b,"enterpictureinpicture",function(){a.vp(!0)}),a.ia.N(b,"leavepictureinpicture",function(){a.vp(!1)}));
WF&&(a.ia.N(b,"webkitbeginfullscreen",function(){a.zh(3)}),a.ia.N(b,"webkitendfullscreen",function(){a.zh(0)}))};
dW=function(a,b){if(b!==a.l){var c=b.getPlayerType();a.Ac[c]=b}};
tya=function(a){a.aa();var b;if(b=a.ea)b=a.B,b=!!b&&b===a.ea.l;b&&(a.eg(),bW(a));a.u&&(a.u.eg(),Rt(a.u,a.Zc,a));a.u=null;a.aa()};
g.Y=function(a,b){return b?1===b?a.l:a.getVideoData().enableServerStitchedDai&&2===b?a.u:a.Ac[b]||null:a.u};
ZV=function(a,b){var c=a.J;2===b&&(c=new YM(a.i));return new g.xV(a.i,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.mi.V.apply(a.mi,[d].concat(g.la(f)))},function(){return a.Ea.getVisibilityState()},a.visibility)};
gW=function(a,b){return a.xd(b)?a.l:b};
hW=function(a,b){var c=a.u;return c&&b===a.l&&a.xd(b)&&a.xd(c)?c:b};
wya=function(a){a.aa();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.C;d.VC();jN(d,"attribution",void 0,!1,!0);jN(d,"embed");jN(d,"kids");jN(d,"remote");jN(d,"miniplayer");jN(d,"music");jN(d,"captions",void 0,!0);jN(d,"unplugged");jN(d,"ypc",void 0,!1,!0);jN(d,"ypc_clickwrap",void 0,!1,!0);jN(d,"yto",void 0,!1,!0);jN(d,"webgl",void 0,!1,!0);d.u&&c?d.G.jd("endscreen"):jN(d,"endscreen");d.u&&c?(d.G.jd("annotations_module"),d.G.jd("creatorendscreen")):(d.yx(),jN(d,"creatorendscreen",void 0,!0));d.WC();
xoa(d);c&&lI(b)?a.wc.N(a.Ea,"presentingplayerstatechange",a.nO):woa(a.C);a.Ea.V("videoready",b)};
iW=function(a){return a.l.getVideoData()};
jW=function(a){a=iW(a);a.isValid();return lI(a)};
lya=function(a){var b=new g.wH(a.i,a.config.args);g.Gu()&&b.X.push("remote");b.isValid()&&(a.l.Ah(b,function(){return a.se()}),a.Z("html5_androidtv_quic")&&(b=window,"h5vcc"in b&&"settings"in b.h5vcc&&b.h5vcc.settings.set("QUIC",1)),!g.U(a.i.experiments,"html5_delay_initial_loading")&&jW(a)&&(a.i.Kc||a.i.Sc)&&EM(a.l))};
mya=function(a){a.aa();a.Bx();var b=a.config.args;bW(a);var c=iW(a);a.Ea.xa("onVolumeChange",a.Cg);if(b&&aN(b)){var d=oG(a.i);d&&!a.Sf&&(b.fetch=0);var e=g.PF(a.i);e&&!a.Sf&&(b.fetch=0);kW(a,b);g.PF(a.i)&&a.J.tick("ep_pr_s");d&&!a.Sf?lW(a):e&&!a.Sf?mW(a):c.isValid()||dN(a.playlist,function(){nW(a)})}eW(a,a.l);
g.W(a.l.getPlayerState(),128)||(b=Bga(a.i.deviceHasDisplay),"fmt.noneavailable"===b?a.ge("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.ge(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&jW(a)&&(a.i.Kc||a.i.Sc)?oW(a):xya()?(g.Or("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.i.W}),yya(!1),oW(a)):zG(a.i)||zya(a),a.Z("web_player_inline_botguard")&&(g.qG(a.i)?(jp(function(){pW(a)}),jp(function(){rt()})):(pW(a),rt())),a.aa())};
pW=function(a){var b=a.getVideoData().botguardData;a.Z("web_player_botguard_inline_skip_config_killswitch")&&(b={},b.interpreterScript=g.P("BG_I",null),b.interpreterUrl=g.P("BG_IU",null),b.program=g.P("BG_P",null));if(b){var c=a.getVideoData().ma||"";a=a.i.cspNonce;c=c?"c1b"in zp(c):!1;var d=b.interpreterScript,e=b.interpreterUrl;if(b.interpreterSafeScript){d=b.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var f=g.gc("From proto message. b/166824318");fc(f);fc(f);d=(f=bc())?
f.createScript(d):d;d=(new ic(d)).toString()}b.interpreterSafeUrl&&(e=b.interpreterSafeUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"",f=g.gc("From proto message. b/166824318"),fc(f),fc(f),e=oc(e).toString());b.program&&(ot.l?0:!uM||72E5<(0,g.Q)()-uM)&&(d||e)&&(rE("bg_i","player_att"),ot.initialize(d,e,b.program,vna,a,c))}};
zya=function(a){a.aa();a.Ea.V("initializingmode");a.xj(2);jN(a.C,"remote");g.U(a.i.experiments,"player_cued_miniplayer_module_killswitch")||jN(a.C,"miniplayer");a.aa()};
oW=function(a){a.aa();if(g.W(a.l.getPlayerState(),128))return!1;jW(a)&&a.i.Sc&&($R.length&&a.xr?(JM(a,{muted:!1,volume:a.Cg.volume},!1),qW(a,!1)):$R.length||a.Cg.muted||(JM(a,{muted:!0,volume:a.Cg.volume},!1),qW(a,!0)));rW(a,1,a.l.getVideoData(),!1);a.Ea.V("initializingmode");eW(a,a.l);a.xj(3);var b;if(!(b=!a.i.Mh)){if(b=a.ea)b=a.B,b=!!b&&b===a.ea.l;b=b&&a.Kc}b&&(a.eg(),bW(a),dS(a.l,a.B));LV(a.l);if(g.W(a.l.getPlayerState(),128))return!1;fW(a,3);return a.Kc=!0};
aW=function(a){a=g.RM(a.C);return!!a&&a.loaded};
Aya=function(a,b){if(!a.L)return!1;var c=.001*a.L.startTimeMs,d=.001*a.L.endTimeMs;return he(b,c)||he(b,d)||b>=c&&b<=d};
sW=function(a){a.L&&a.u===a.l&&(Aya(a,a.l.getCurrentTime())||a.JG())};
oya=function(a,b){var c=a.Ea.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};
tW=function(a,b,c){if(a.xd(c)){c=c.getVideoData();if(a.I)c=b;else{a=a.ca;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Qc===e.Qc){b+=e.Zb/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Qc===e.Qc)break;var f=e.Zb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Xc/1E3;else break}c=d}return c}return b};
Bya=function(a,b){var c;return 3===a.getPresentingPlayerType()?kK(g.RM(a.C).Mc):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.I)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Za:-1:2!==b||a.xd()?a.Za:a.kc};
Cya=function(a){a.aa();uW(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Sb={};var b=a.J;if(b.i){var c=b.i;c.i={};c.uq={}}b.l=!1;a.I?(b=a.I,a=a.l,a.getPlayerType(),b.aa(),uS(b,!1),wS(b),b.i=a):(b=a.ca,a=a.l,1!==a.getPlayerType()&&b.fd("e.invalidParentVideoPlayerType"),b.aa(),CS(b,!1),GS(b),b.l=a)};
lW=function(a){var b=Dya();if(b)if(!b.list)a.Rs();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ea.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.Na().videoId||(b.index=a.playlist.index));cN(a.playlist,b);a.Pa&&vW(a,a.Pa)}else a.Pa=null};
mW=function(a){var b=iW(a).SA;a.J.tick("ep_pr_r");null!=b&&(cN(a.playlist,b),dN(a.playlist,function(){nW(a)}))};
kW=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Rs,a),g.Ei(a.playlist),a.playlist=null);b&&(a.Sf&&(b.fetch=0),a.playlist=new g.$M(a.i,b),a.playlist.subscribe("error",a.Rs,a))};
wW=function(a,b,c,d){b in a.Sb||(c=new g.xD(c,d,{id:b,priority:1,namespace:"appad"}),a.l.addCueRange(c),a.Sb[b]=c)};
Hya=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=Mx(Ox(d,Eya,null),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Mx(Ox(d,Fya,null),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var h=void 0===h?!1:h;f=Mx(Ox(d,Gya,null),d,h,"Nielsen OCR URL")}g.pq(d,void 0,f)});
return!0};
fW=function(a,b){a.aa();if(a.u){var c=a.u.getPlayerType();if(2===c&&!a.xd()){a.kc!==b&&(a.kc=b,a.Ea.xa("onAdStateChange",b));return}if(2===c&&a.xd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Za!==b&&(a.Za=b,a.Ea.xa("onStateChange",b))};
Iya=function(a,b,c,d){d=void 0===d?Infinity:d;a.aa();c=c||a.u.getPlayerType();var e;g.U(a.i.experiments,"html5_gapless_preloading")&&(e=rW(a,c,b,!0));e||(e=ZV(a,c),e.Ah(b,function(){return a.se()}));
a.wt(e,d)};
Jya=function(a,b,c,d){var e=xW(c,b.videoId,b.Qc);a.aa();b.oc=!0;var f=a.u&&e===xW(a.u.getPlayerType(),a.u.getVideoData().videoId,a.u.getVideoData().Qc)?a.u:ZV(a,c);f.Ah(b,function(){return a.se()});
!g.U(a.i.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&rG(a.i)||EM(f,!0);a.La.set(e,f,d||3600)};
xW=function(a,b,c){return a+"_"+b+"_"+c};
rW=function(a,b,c,d){if(!f){var e=xW(b,c.videoId,c.Qc);var f=a.La.get(e);if(!f)return null;a.La.remove(e);if(g.W(f.getPlayerState(),128))return f.dispose(),null}if(f===g.Y(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.lt(f);return f};
yW=function(a,b,c){c=g.Y(a,c);b&&c===a.l&&(c.getVideoData().Hd=!0)};
zW=function(a,b,c){a.aa();var d=g.Y(a,c);d&&(a.cancelPlayback(4,c),d.Ah(b,function(){return a.se()}),2===c&&a.l&&Tva(a.l.C,b.clientPlaybackNonce,b.tc||"",b.breakType||0),d===a.l&&(a.xj(1),zya(a)));
a.aa()};
Kya=function(a,b,c,d,e){b=Dna(b,c,d,e);(c=g.PF(a.i)&&!a.i.J)&&!a.Sf&&(b.fetch=0);kW(a,b);g.PF(a.i)&&a.J.tick("ep_a_pr_s");c&&!a.Sf?(c=iW(a),qoa(c,b).then(function(){mW(a)})):dN(a.playlist,function(){nW(a)});
g.PF(a.i)&&a.J.tick("ep_a_pr_r")};
nW=function(a){var b=a.playlist.Na();if(b){var c=a.getVideoData(),d=c.ki&&(a.i.Kc||a.i.Sc);if(d||!a.ma){var e=c.Hd;b=g.PF(a.i)?a.nk(a.playlist.Na(void 0,d,c.ph)):a.nk(b);e&&yW(a,b)}else zW(a,b)}g.PF(a.i)&&a.J.tick("ep_p_l");a.Ea.xa("onPlaylistUpdate")};
vya=function(a){if(a.playlist&&g.VF(a.i)&&a.Jq()){var b=g.U(a.i.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
vW=function(a,b){var c=g.Ha(b);if(c){var d=Dya();d&&d.list&&c();a.Pa=null}else a.Pa=b};
Dya=function(){var a=g.Ha("yt.www.watch.lists.getState");return a?a():null};
Lya=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=wD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=wD.AD_MARKER:(b.style=wD.TIME_MARKER,b.color=e),b.visible=!0);a.eq([new g.xD(1E3*c,1E3*d,b)],1);return!0};
Mya=function(a){var b=(0,g.Q)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
JM=function(a,b,c){a.i.X&&(a.Cg=b,b.muted||qW(a,!1),c&&a.i.af&&!a.i.Wa&&Nya({volume:Math.floor(b.volume),muted:b.muted}),Oya(a),c=g.DA&&a.B&&!a.B.hf(),!a.i.Wa||c)&&(b=g.Vb(b),a.i.af||(b.unstorable=!0),a.Ea.xa("onVolumeChange",b))};
Oya=function(a){var b=a.getVideoData();if(!b.Sc){b=a.i.Wa?1:Kia(b,a.i.Z("html5_stateful_audio_normalization"));var c=a.B;c.tp(a.Cg.muted);c.setVolume(a.Cg.volume*b/100)}};
qW=function(a,b){b!==a.xr&&(a.xr=b,a.Ea.xa("onMutedAutoplayChange",b))};
AW=function(a){var b=Kt(!0);return b&&(b===a.template.element||a.B&&b===a.B.he())?b:null};
Qya=function(a,b){var c=window.screen&&window.screen.orientation;if((g.U(a.i.experiments,"lock_fullscreen2")||a.i.Z("embeds_enable_mobile_custom_controls")&&a.i.i)&&c&&c.lock&&(!g.DA||!Pya))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.Ja||f!==d){c=c.lock(f?"portrait":"landscape");if(null!=c)c["catch"](g.Ia);a.Ja=!0}}else a.Ja&&(a.Ja=!1,c.unlock())};
cW=function(a,b,c){a.Ea.V(b,c);var d=g.fG(a.i)||g.XF(a.i)||tG(a.i);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ea.xa(e,c)}};
BW=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.Y(a,e);if(!h||(2!==h.getPlayerType()||a.xd(h)||f)&&!g.bI(h.getVideoData()))3===a.getPresentingPlayerType()?g.RM(a.C).nj("control_seek",b,c):(h===a.l&&a.L&&!Aya(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
Rya=function(a,b,c,d){if(!a.ib){c&&(a.eg(),bW(a));a.ib=!0;c=g.Y(a);c.I.B=!0;c.ow("staleconfig",{reason:b});var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;a.Z("propagate_aqi_on_player_reload")&&e.adQueryId&&(f.ad_query_id=e.adQueryId);e.isLivePlayback?UH(e)&&g.sG(a.i)&&(f.live_utc_start=c.gf(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.la&&(f.vvt=e.la);e.Ca&&(f.vss_credentials_token=e.Ca,f.vss_credentials_token_type=e.Yg);e.oauthToken&&(f.oauth_token=e.oauthToken);
f.autoplay=1;f.reload_count=e.La+1;f.reload_reason=b;e.qp&&(f.unplugged_partner_opt_out=e.qp);e.Ac&&(f.ypc_is_premiere_trailer=e.Ac);a.loadVideoByPlayerVars(f,void 0,d)}};
Tya=function(a,b){iW(a).autonavState=b;Sya(b);a.Ea.V("autonavchange",b)};
Uya=function(a){var b=a.getVideoData().Sc,c=a.i.Sb,d=a.B;b||c?d.Dx():(d.Ex(),JM(a,a.Cg))};
kya=function(a,b){return g.U(a.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.PF(a.i)?new QS(b,a.i.Z("embeds_enable_intersection_observer_v2")):null};
uW=function(a){var b=mN(a.Ua());b&&b.created&&(a.aa(),b.destroy())};
Vya=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]=rg(a,d);b.hidden=!!a.hidden};
jya=function(a){var b=a.i,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.U(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.Zr&&d&&b.l?kq()||b.la?(g.Or("embedsStorageAccessNotChecked",{isIosWebview:kq(),isPemPlayer:b.la}),a.Wa=!1):c.hasStorageAccess().then(function(e){g.Or("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Wa=!e},function(e){g.Or("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});to(Error("Embeds ITP Error: "+e));a.Wa=!1}):a.Wa=!1};
CW=function(a,b){var c=void 0;if(g.fG(a.i)&&Hp(b)&&Gp(b)){var d=g.nI(a.getVideoData());d&&(c={Authorization:"Bearer "+d})}g.pq(b,void 0,void 0,c)};
DW=function(a,b){b.forEach(function(c){CW(a,c)})};
xsa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
Wya=function(a){var b;a=null===(b=KM(a.Ua()))||void 0===b?void 0:b.Kq();if(!(a instanceof g.ON))return null;a=a.ND();return(null===a||void 0===a?void 0:a.L)||null};
EW=function(a){this.controller=a};
FW=function(a){this.wx=a};
GW=function(a,b,c){this.wx=a;this.Jf=b;this.sh=c};
Xya=function(a,b,c){var d=a.wx();switch(b.type){case "SKIP":Xla(d,a.Jf,a.sh,c)}};
HW=function(){};
IW=function(){};
JW=function(){};
KW=function(a,b){this.cq=a;this.Ga=b};
LW=function(a){this.G=a};
MW=function(a,b){this.ji=a;this.Ga=b};
Zya=function(a){g.E.call(this);this.i=a;this.Rj=Yya(this)};
Yya=function(a){var b=new JK(a.i.fc,a.i.Jf);g.I(a,b);a=g.q([new EW(a.i.vK),new KW(a.i.cq,a.i.Ga),new LW(a.i.G),new MW(a.i.ji,a.i.Ga),new GW(a.i.rM,a.i.Jf,a.i.sh),new FW(a.i.DK),new IW,new JW,new HW]);for(var c=a.next();!c.done;c=a.next())c=c.value,Qla(b,c),Rla(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())HK(b,c.value,function(){});
return b};
NW=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.oa.i.has(c.value))return!1;return!0};
$ya=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;default:return b(a),7}};
OW=function(a){var b=new Map;a.forEach(function(c){b.set(c.Bb(),c)});
this.i=b};
PW=function(a,b){var c=a.i.get(b);if(void 0!==c)return c.get()};
QW=function(a){return Array.from(a.i.keys())};
bza=function(a){var b;return(null===(b=aza.get(a))||void 0===b?void 0:b.hs)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
RW=function(a,b){var c={type:b.Ya,controlFlowManagerLayer:cza.get(b.Sa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Jb&&(c.entryTriggerType=b.Jb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Jb;d&&(c.debugData.slotEntryTriggerData=dza(d))}return c};
eza=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:cza.get(b.Sa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
dza=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.hg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.hg);null!=a.Fd&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Fd);return c};
fza=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(b.debugData={slots:g.Qc(d||[],function(e){return RW(a,e)}),
associatedSlotId:c});return b};
TW=function(a,b){return function(c){return gza(SW(a),b.slotId,b.Ya,b.slotPhysicalPosition,b.Sa,b.Jb,c.layoutId,c.layoutType,c.Sa)}};
gza=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:RW(a,{slotId:b,Ya:c,slotPhysicalPosition:d,Sa:e,Jb:f,ze:[],Re:[],oa:new OW([])}),layoutData:eza(a,{layoutId:h,layoutType:l,Sa:m,nd:[],Jc:[],Ic:[],od:[],uc:new Map,oa:new OW([]),sc:{}})}}};
UW=function(a){this.Aa=a;this.i=.1>Math.random()};
SW=function(a){return a.i||g.U(a.Aa.get().G.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
VW=function(a,b,c,d){g.E.call(this);this.Kd=b;this.Cb=c;this.Aa=d;this.i=a(this,this,this,this,this);g.I(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.I(this,b.value)};
WW=function(a,b){a.Kd.add(b);g.I(a,b)};
bka=function(a,b){wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);for(var c=g.q(a.Kd),d=c.next();!d.done;d=c.next())d.value.Sg(b)};
cka=function(a,b){wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);for(var c=g.q(a.Kd),d=c.next();!d.done;d=c.next())d.value.nf(b)};
YW=function(a,b,c){tD(c,b,void 0,void 0,c.Fm);XW(a,b,!0)};
iza=function(a,b,c){if(ZW(a.i,b))if($W(a.i,b).B=c?"filled":"not_filled",null===c){aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Kd);for(var d=c.next();!d.done;d=c.next())d.value.pj(b);XW(a,b,!1)}else{aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Kd);for(d=e.next();!d.done;d=e.next())d.value.qj(b);if($W(a.i,b).C)XW(a,b,!1);else{aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!$W(f,b))throw new bX("Unknown slotState for onLayout");
if(!f.hd.kk.get(b.Ya))throw new bX("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Ya);if(g.gb(c.nd)&&g.gb(c.Jc)&&g.gb(c.Ic)&&g.gb(c.od))throw new bX("Layout has no exit triggers.");cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.nd);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Jc);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Ic);cX(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.od)}catch(n){a.Ne(b,c,n);XW(a,b,!0);return}$W(a.i,b).I=!0;try{var h=a.i,l=$W(h,b),m=
h.hd.kk.get(b.Ya).get().Ef(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new bX("Already had LayoutRenderingAdapter registered for slot");l.u=m;dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.nd);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Jc);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Ic);dX(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.od)}catch(n){eX(a,b);XW(a,b,!0);a.Ne(b,c,n);return}aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Kd);for(d=e.next();!d.done;d=
e.next())d.value.gi(b,c);eX(a,b);hza(a,b)}}};
fX=function(a,b,c){aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Kd);for(var d=a.next();!d.done;d=a.next())d.value.gi(b,c)};
gX=function(a,b,c){aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Kd);for(var d=a.next();!d.done;d=a.next())d.value.Oc(b,c)};
MJ=function(a,b,c,d){aX(a.Cb,bza(d),b,c);a=g.q(a.Kd);for(var e=a.next();!e.done;e=a.next())e.value.Ad(b,c,d)};
eX=function(a,b){if(ZW(a.i,b)){$W(a.i,b).I=!1;var c=hX,d=$W(a.i,b),e=[].concat(g.la(d.L));ib(d.L);c(a,e)}};
hX=function(a,b){b.sort(function(h,l){function m(n){tD("TriggerCategoryOrder enum does not contain trigger category: "+n)}
return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):$ya(h.category,m)-$ya(l.category,m)});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,ZW(a.i,e.slot))if($W(a.i,e.slot).I)$W(a.i,e.slot).L.push(e);else{jza(a.Cb,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(kza.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))&&lza(a,e,f);(d=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&mza(a,d);(d=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&nza(a,d);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
oza(a,c)};
lza=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&iX(a.i,d.slot)&&pza(a,d.slot,d.layout,c)};
mza=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())XW(a,d.value.slot,!1)};
nza=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch($W(a.i,d.slot).B){case "not_filled":var e=!0;break a;default:e=!1}e&&(wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.i.Gq(d.slot))}};
oza=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.Kd),f=e.next();!f.done;f=e.next())f.value.ii(d.slot);try{var h=a.i,l=d.slot,m=$W(h,l);if(!m)throw new jX("Got enter request for unknown slot");if(!m.l)throw new jX("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.i)throw new jX("Tried to enter a slot from stage: "+m.i);if(kX(m))throw new jX("Got enter request for already active slot");
for(var n=g.q(lX(h,l.Ya+"_"+l.slotPhysicalPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&kX(r)){var t=void 0;f=e=void 0;var w=h,x=r,y=l,F=w.ra.get().getCurrentTimeSec(1,!1),D=tC(w.Fa.get(),1),G=rD(x.layout),K=x.slot.Jb,J=qza(w,K),H=sD(K,J),L=y.oa.i.has("metadata_type_fulfilled_layout")?rD(PW(y.oa,"metadata_type_fulfilled_layout")):"unknown",T=y.Jb,na=qza(w,T),wa=sD(T,na);w=J;var Ka=na;if(w&&Ka){if(w.start>Ka.start){var Ua=g.q([Ka,w]);w=Ua.next().value;Ka=Ua.next().value}t=
w.end>Ka.start}else t=!1;var lc={details:F+" |"+(H+" |"+wa),activeSlotStatus:x.i,activeLayout:G?G:"empty",activeLayoutId:(null===(f=x.layout)||void 0===f?void 0:f.layoutId)||"empty",enteringLayout:L,enteringLayoutId:(null===(e=PW(y.oa,"metadata_type_fulfilled_layout"))||void 0===e?void 0:e.layoutId)||"empty",hasOverlap:String(t),contentCpn:D.clientPlaybackNonce,contentVideoId:D.videoId,isAutonav:String(D.ph),isAutoplay:String(D.ki)};throw new jX("Trying to enter a slot when a slot of same type is already active.",
lc);}}}catch(sb){tD(sb,d.slot,mX(a.i,d.slot),void 0,sb.Fm);XW(a,d.slot,!0);continue}d=$W(a.i,d.slot);"scheduled"!==d.i&&nX(d.slot,d.i,"enterSlot");d.i="enter_requested";d.l.Kx()}};
hza=function(a,b){var c;if(ZW(a.i,b)&&kX($W(a.i,b))&&mX(a.i,b)&&!iX(a.i,b)){aX(a.Cb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=mX(a.i,b))&&void 0!==c?c:void 0);var d=$W(a.i,b);"entered"!==d.i&&nX(d.slot,d.i,"enterLayoutForSlot");d.i="rendering";d.u.startRendering(d.layout)}};
pza=function(a,b,c,d){if(ZW(a.i,b)){var e=a.Cb,f;var h=(null===(f=aza.get(d))||void 0===f?void 0:f.Pr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";aX(e,h,b,c);a=$W(a.i,b);"rendering"!==a.i&&nX(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.Ug(c,d)}};
XW=function(a,b,c){if(ZW(a.i,b)){a:switch($W(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch($W(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&($W(a.i,b).C=!0,!c))return;if(kX($W(a.i,b)))$W(a.i,b).C=!0,rza(a,b,c);else{a:switch($W(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)$W(a.i,b).C=!0,ZW(a.i,b)&&(wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=$W(a.i,b),b.B="fill_cancel_requested",b.J.ex());else{c=
mX(a.i,b);wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=$W(a.i,b);var e=b.Jb,f=d.ca.get(e.triggerId);f&&(f.Fh(e),d.ca["delete"](e.triggerId));e=g.q(b.ze);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.X.get(f.triggerId);h&&(h.Fh(f),d.X["delete"](f.triggerId))}e=g.q(b.Re);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.W.get(f.triggerId))h.Fh(f),d.W["delete"](f.triggerId);null!=d.layout&&(e=d.layout,oX(d,e.nd),oX(d,e.Jc),oX(d,e.Ic),oX(d,e.od));d.J=void 0;null!=d.l&&(d.l.release(),
d.l=void 0);null!=d.u&&(d.u.release(),d.u=void 0);d=a.i;$W(d,b)&&(d=lX(d,b.Ya+"_"+b.slotPhysicalPosition))&&d["delete"](b.slotId);wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Kd);for(d=a.next();!d.done;d=a.next())d=d.value,d.rj(b),c&&d.oj(b,c)}}}};
rza=function(a,b,c){if(ZW(a.i,b)&&kX($W(a.i,b))){var d=mX(a.i,b);if(d&&iX(a.i,b))pza(a,b,d,c?"error":"abandoned");else{wJ(a.Cb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=$W(a.i,b);if(!e)throw new jX("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&nX(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new jX("Cannot exit slot because adapter is not defined");e.l.Px()}catch(f){tD(f,b,void 0,void 0,f.Fm)}}}};
sza=function(a){this.slot=a;this.ca=new Map;this.X=new Map;this.W=new Map;this.Y=new Map;this.u=this.layout=this.l=this.J=void 0;this.I=this.C=!1;this.L=[];this.i="not_scheduled";this.B="not_filled"};
kX=function(a){return"enter_requested"===a.i||a.isActive()};
bX=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.Fm=c;this.args=[];b&&this.args.push(b)};
jX=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.Fm=c;this.args=[];b&&this.args.push(b)};
pX=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={ni:new An(-0x8000000000000,-0x8000000000000),Ou:d},null!=c&&(d.wo=new An(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={ni:new An(0x7ffffffffffff,0x8000000000000),Ou:d},null!=c&&(d.wo=new An(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||tD("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||tD("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 jX("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={ni:new An(a,e),Ou:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.wo=new An(a,e)}return d;default:return new jX("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
qX=function(a,b,c,d,e,f,h,l){g.E.call(this);this.hd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.Eb=f;this.ra=h;this.Fa=l;this.i=new Map};
lX=function(a,b){var c=a.i.get(b);return c?c:new Map};
$W=function(a,b){return lX(a,b.Ya+"_"+b.slotPhysicalPosition).get(b.slotId)};
tza=function(a){var b=[];a.i.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};
qza=function(a,b){if(b instanceof qD)return b.i;if(b instanceof pD){var c=KK(a.Eb.get(),b.Fd);if(c=null===c||void 0===c?void 0:PW(c.oa,"metadata_type_ad_placement_config"))return c=pX(c,0x7ffffffffffff),c instanceof jX?void 0:c.ni}};
ZW=function(a,b){return null!=$W(a,b)};
iX=function(a,b){var c=$W(a,b),d;if(d=null!=c.layout)a:switch(c.i){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
mX=function(a,b){var c=$W(a,b);return null!=c.layout?c.layout:null};
rX=function(a,b,c){if(g.gb(c))throw new jX("No "+uza.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.Wg.get(d.triggerType))throw new jX("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
cX=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.hd.Wg.get(d.triggerType))throw new bX("No trigger adapter registered for "+uza.get(b)+" trigger of type: "+d.triggerType);};
dX=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.Wg.get(e.triggerType);f.yh(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
oX=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.Y.get(d.triggerId);e&&(e.Fh(d),a.Y["delete"](d.triggerId))}};
nX=function(a,b,c){tD("Slot stage was "+b+" when calling method "+c,a)};
vza=function(a){return sX(a.xn).concat(sX(a.Wg)).concat(sX(a.Zj)).concat(sX(a.uk)).concat(sX(a.kk))};
sX=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.bj&&b.push(c);return b};
tX=function(a){g.E.call(this);this.i=a;this.l=wza(this)};
wza=function(a){var b=new VW(function(c,d,e,f){return new qX(a.i.hd,c,d,e,f,a.i.Eb,a.i.ra,a.i.Fa)},new Set(vza(a.i.hd).concat(a.i.listeners)),a.i.Cb,a.i.Aa);
g.I(a,b);return b};
uX=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.Gi(this,function(){g.Ei(b.i);b.i=null})};
Z=function(a){return new uX(a)};
xza=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)};
zza=function(a,b,c,d,e,f,h){b=pX(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof jX?b:yza(a,d,e,b,c);return a instanceof jX?a:[a]};
Aza=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)};
Eza=function(a,b,c,d,e,f){b=g.q(b);for(var h=b.next();!h.done;h=b.next())h=h.value,vX(a,h.renderer,h.config.adPlacementConfig.kind);h=Array.from(a.values()).filter(function(p){return Bza(p)});
a=[];b={};h=g.q(h);for(var l=h.next();!l.done;b={Pn:b.Pn},l=h.next()){b.Pn=l.value;l={};for(var m=g.q(b.Pn.Uw),n=m.next();!n.done;l={Fk:l.Fk},n=m.next())l.Fk=n.value,n=function(p,r){return function(t){return p.Fk.XC(t,r.Pn.instreamVideoAdRenderer.elementId,p.Fk.pC)}}(l,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===l.Fk.co?a.push(Cza(c,d,l.Fk.qC,e,b.Pn.instreamVideoAdRenderer.elementId,l.Fk.adSlotLoggingData,f,n)):a.push(Dza(c,d,e,b.Pn.instreamVideoAdRenderer.elementId,l.Fk.adSlotLoggingData,f,n))}return a};
vX=function(a,b,c){if(b=Fza(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Gza(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.eu=c)}else tD("InstreamVideoAdRenderer without externalVideoId")}};
Fza=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};
Bza=function(a){if(void 0===a.instreamVideoAdRenderer)return tD("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.Uw),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.XC)return!1;if(void 0===c.pC)return tD("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.eu||void 0===c.co||a.eu!==c.co&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.co)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return tD("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.eu,"matching APSR kind":c.co}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.co&&void 0===c.qC)return tD("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
Gza=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,eu:void 0,adVideoId:b,Uw:[]});return a.get(b)};
wX=function(a,b,c,d,e,f,h){d?Gza(a,d).Uw.push({qC:b,co:c,pC:e,adSlotLoggingData:f,XC:h}):tD("Companion AdPlacementSupportedRenderer without adVideoId")};
Iza=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;a=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return Hza(a)?!0:!1};
Jza=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=Hza(a)):b=!1:b=!1;return b};
Hza=function(a){if(!a)return!1;a=(a.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};
Kza=function(a){var b,c=0;a=g.q(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c};
Lza=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D;return{impressionCommands:null===(b=a.playbackCommands)||void 0===b?void 0:b.impressionCommands,errorCommands:null===(c=a.playbackCommands)||void 0===c?void 0:c.errorCommands,muteCommands:null===(d=a.playbackCommands)||void 0===d?void 0:d.muteCommands,unmuteCommands:null===(e=a.playbackCommands)||void 0===e?void 0:e.unmuteCommands,pauseCommands:null===(f=a.playbackCommands)||void 0===f?void 0:f.pauseCommands,rewindCommands:null===(h=a.playbackCommands)||
void 0===h?void 0:h.rewindCommands,resumeCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.resumeCommands,skipCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.skipCommands,progressCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.progressCommands,r3:null===(p=a.playbackCommands)||void 0===p?void 0:p.clickthroughCommands,fullscreenCommands:null===(r=a.playbackCommands)||void 0===r?void 0:r.fullscreenCommands,activeViewViewableCommands:null===(t=a.playbackCommands)||void 0===
t?void 0:t.activeViewViewableCommands,activeViewMeasurableCommands:null===(w=a.playbackCommands)||void 0===w?void 0:w.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(y=a.playbackCommands)||void 0===y?void 0:y.endFullscreenCommands,abandonCommands:null===(F=a.playbackCommands)||void 0===F?void 0:F.abandonCommands,completeCommands:null===
(D=a.playbackCommands)||void 0===D?void 0:D.instreamAdCompleteCommands}};
Oza=function(a,b,c,d,e,f,h){if(!Mza(a))return new jX("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Nza(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=xX(e.Ra.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Sa:"core"},r=new yX(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",uc:new Map,nd:[r],Jc:[],
Ic:[],od:[],Sa:"core",oa:new OW([new NC(l)]),sc:n(p)}})]};
Mza=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};
Rza=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Jza(a))return function(){return new jX("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=Kza(h);return 0>=l?function(){return new jX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=Pza(m,c,d,function(t){var w=n(t),x=t.slotId;
t=Lza(h);x=xX(e.Ra.get(),"LAYOUT_TYPE_SURVEY",x);var y={layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",Sa:"core"},F=new yX(e.i,d),D=new zX(e.i,x),G=new AX(e.i,x),K=new Qza(e.i);return{layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",uc:new Map,nd:[F,K],Jc:[D],Ic:[],od:[G],Sa:"core",oa:new OW([new LC(h),new EC(b),new iD(l/1E3),new lD(t)]),sc:w(y),adLayoutLoggingData:h.adLayoutLoggingData}}),r=Oza(a,c,p.slotId,d,e,m,n);
return r instanceof jX?r:[p].concat(g.la(r))}};
Uza=function(a,b,c,d,e){var f=[];try{var h=[],l=Sza(a,d,function(t){t=Tza(t.slotId,c,b,e(t),d);h=t.AQ;return t.MK});
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 jX)return r;f.push.apply(f,g.la(r))}}catch(t){return new jX(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
Tza=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={YG:h,ZG:0,xQ:n};l=l.map(function(t){return Vza(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new wI(w,n);
return t(x)});
var r=l.map(function(t){return t.NK});
return{MK:Wza(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),Xza(b),d,m),AQ:l.map(function(t){return t.zQ})}};
Vza=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=zp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=Yza(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.YG,t=c.ZG,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.YG=y;c.ZG++;c.xQ.push(x);var F=m.pings?xI(m.pings):new Map;c=m.playerOverlay||{};var D=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.l&&(n.slot_pos=G.i);n.autoplay="1";var K=m.adLayoutLoggingData,J=m.sodarExtensionData,H=xX(d.Ra.get(),"LAYOUT_TYPE_MEDIA",a),L={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Sa:"adapter"};G={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",uc:F,nd:[],Jc:[],Ic:[],od:[],Sa:"adapter",oa:new OW([new IC(h),
new VC(x),new WC(n),new YC(r),new ZC(y),new $C(t),new SC({current:null}),D&&new JC(D),new EC(f),new GC(p),new FC(G),J&&new XC(J)].filter(Zza)),sc:e(L),adLayoutLoggingData:K};K=Rza(m,f,h,G.layoutId,d);return{NK:G,zQ:K}}};
Yza=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
Xza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
aAa=function(a,b,c,d,e,f,h,l){a=$za(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=xX(b.Ra.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Sa:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",uc:r,nd:[new BX(b.i,n)],Jc:[],Ic:[],od:[],Sa:"core",oa:new OW([new cD(e),new EC(c)]),sc:m(p)}});
return a instanceof jX?a:[a]};
cAa=function(a,b,c,d,e,f,h,l){a=bAa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=xX(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),r=CX(b,t,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,r,DX(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=xX(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),r=CX(b,t,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,r,DX(b,n,p))):t.imageOverlayAdContentRenderer?(t=xX(b.Ra.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),p=DX(b,n,p),p.push(new EX(b.i,t)),r=CX(b,t,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,r,p)):r=new bX("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new bX("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof jX?a:[a]};
gAa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new jX("Expected valid duration for AdActionInterstitialRenderer."):function(m){return dAa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(m),function(n){return eAa(a,n,e,function(p,r){var t=h(p);return fAa(b,p.slotId,r,c,t,"LAYOUT_TYPE_ENDCAP",new KC(d))})},
d.adLayoutLoggingData,f)}};
hAa=function(a,b,c,d){if(!c.playerVars)return new jX("No playerVars available in AdIntroRenderer.");var e=zp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=xX(a.Ra.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Sa:"adapter"};return{kA:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,nd:[],Jc:[],Ic:[],od:[],Sa:"adapter",oa:new OW([new bD({}),new EC(b),new SC({current:null}),new WC(e)]),sc:f(l)},qx:[new FX(a.i,h)],ox:[]}}};
lAa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var x=new wI(0,[t.Xs]),y=iAa(t.playerVars,t.wG,l,p,x);w=m(w);var F=n.get(t.Cv.externalVideoId);x=jAa(b,"core",t.Cv,c,y,t.Xs,f,x,w,F);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,uc:x.uc,nd:x.nd,Jc:x.Jc,Ic:x.Ic,od:x.od,Sa:x.Sa,oa:x.oa,sc:x.sc,adLayoutLoggingData:x.adLayoutLoggingData},yn:[]}}
var t=GX(e);if(t instanceof bX)return new jX(t);if(r instanceof jX)return r;a=kAa(a,c,f,h,d,r);return a instanceof jX?a:a.yn.concat(a.eG)};
GX=function(a){if(!a.playerVars)return new bX("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 bX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=zp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new bX("Expected valid length seconds in player vars"):
{Cv:a,playerVars:b,wG:a.playerVars,Xs:c}};
iAa=function(a,b,c,d,e){a.iv_load_policy=d;b=zp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){tD(f)}c.yg&&(a.ctrl=c.yg);c.wf&&(a.ytr=c.wf);c.Sj&&(a.ytrcc=c.Sj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Yg&&(a.vss_credentials_token_type=c.Yg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a};
nAa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new jX("Received invalid LinearAdSequenceRenderer.");b=mAa(a,b,c,e,f,l,m,n,p);if(b instanceof jX)return new jX(b);a=kAa(a,c,f,h,d,b);return a instanceof jX?a:a.yn.concat(a.eG)};
mAa=function(a,b,c,d,e,f,h,l,m){return function(n){a:{b:{var p=[];for(var r=g.q(d.linearAds),t=r.next();!t.done;t=r.next())if(t=t.value,t.instreamVideoAdRenderer){t=GX(t.instreamVideoAdRenderer);if(t instanceof bX){p=new jX(t);break b}p.push(t.Xs)}}if(!(p instanceof jX)){r=0;t=[];for(var w=[],x=[],y=[],F=g.q(d.linearAds),D=F.next();!D.done;D=F.next())if(D=D.value,D.adIntroRenderer){D=hAa(b,c,D.adIntroRenderer,h);if(D instanceof jX){p=D;break a}D=D(n);t.push(D.kA);w=[].concat(g.la(D.qx),g.la(w));x=
[].concat(g.la(D.ox),g.la(x));D.Il&&(y=[D.Il].concat(g.la(y)))}else if(D.instreamVideoAdRenderer){D=GX(D.instreamVideoAdRenderer);if(D instanceof bX){p=new jX(D);break a}var G=new wI(r,p),K=iAa(D.playerVars,D.wG,f,m,G),J=h(n),H=l.get(D.Cv.externalVideoId);K=jAa(b,"adapter",D.Cv,c,K,D.Xs,e,G,J,H);D={layoutId:K.layoutId,layoutType:K.layoutType,uc:K.uc,nd:[],Jc:[],Ic:[],od:[],Sa:K.Sa,oa:K.oa,sc:K.sc,adLayoutLoggingData:K.adLayoutLoggingData};G=K.Jc;K=K.Ic;r++;t.push(D);w=[].concat(g.la(G),g.la(w));x=
[].concat(g.la(K),g.la(x))}else if(D.adActionInterstitialRenderer){D=gAa(a,b,c,D.adActionInterstitialRenderer,e,r,h);if(D instanceof jX){p=D;break a}D=D(n);t.push(D.kA);w=[].concat(g.la(D.qx),g.la(w));x=[].concat(g.la(D.ox),g.la(x));D.Il&&(y=[D.Il].concat(g.la(y)))}else{p=new jX("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={yQ:t,Jc:w,Ic:x,yn:y}}}p instanceof jX?n=p:(x=n.slotId,r=p.yQ,t=p.Jc,w=p.Ic,n=h(n),x=xX(b.Ra.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",x),y={layoutId:x,
layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Sa:"core"},n={layout:{layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,nd:[new BX(b.i,x)],Jc:t,Ic:w,od:[],Sa:"core",oa:new OW([new TC(r)]),sc:n(y)},yn:p.yn});return n}};
qAa=function(a,b,c,d,e,f,h){function l(p){return eAa(a,p,f,m)}
function m(p,r){var t=h(p);return fAa(b,p.slotId,r,d,t,"LAYOUT_TYPE_SURVEY",new MC(c))}
if(!Iza(c))return new jX("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var n=Kza(c);return 0>=n?new jX("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c}):oAa(a,d,f,n,e,function(p){var r=h(p);p=pAa(b,p.slotId,"core",d,n,Lza(c),new Map,r,l,void 0,void 0);r=PW(p.Il.oa,"metadata_type_fulfilled_layout").layoutId;r=new AX(b.i,r);return{jM:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,nd:p.nd,Jc:p.Jc,Ic:p.Ic,od:p.od.concat(r),
Sa:p.Sa,oa:p.oa,sc:p.sc,adLayoutLoggingData:p.adLayoutLoggingData},PL:p.Il}})};
HX=function(a,b,c,d,e,f,h){this.fb=a;this.yb=b;this.Aa=c;this.eb=d;this.i=e;this.Li=f;this.loadPolicy=void 0===h?1:h};
uC=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,F,D,G=[];if(0===b.length)return G;b=b.filter(xza);for(var K=new Map,J=new Map,H=g.q(b),L=H.next();!L.done;L=H.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&J.set(L.hostElementId,L);H=g.q(b);for(L=H.next();!L.done;L=H.next()){L=L.value;var T=rAa(a,K,L,d,e,f,h,J);T instanceof jX?tD(T,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):G.push.apply(G,
g.la(T))}if(null===a.i||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||tD("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(xza);G.push.apply(G,g.la(Eza(K,c,a.fb.get(),a.i,d,a.Aa.get())));G.length||tD("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(F=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===F?void 0:F.kind,renderer:null===(D=b[0])||
void 0===D?void 0:D.renderer});return G};
rAa=function(a,b,c,d,e,f,h,l){function m(w){return TW(a.eb.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)wX(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var F=a.yb.get(),D=n.actionCompanionAdRenderer,G=TW(a.eb.get(),w);return IX(F,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new wC(D),x,y,D.impressionPings,G,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)wX(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var F=a.yb.get(),D=n.imageCompanionAdRenderer,G=TW(a.eb.get(),w);return IX(F,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new AC(D),x,y,D.impressionPings,G,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)wX(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y){var F=a.yb.get(),D=n.shoppingCompanionCarouselRenderer,G=TW(a.eb.get(),w);return IX(F,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new BC(D),x,y,D.impressionPings,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!Aza(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Li)return new jX("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");sAa(a.Li,{adPlacementRenderer:c,contentCpn:d,SC:e});return[]}return zza(a.fb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return aAa(a.fb.get(),a.yb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return cAa(a.fb.get(),
a.yb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return Uza(a.fb.get(),a.yb.get(),c,d,m);vX(b,n,r);return nAa(a.fb.get(),a.yb.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return vX(b,n,r),lAa(a.fb.get(),a.yb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return qAa(a.fb.get(),a.yb.get(),n.instreamSurveyAdRenderer,p,t,d,m)}}return[]};
JX=function(a){g.E.call(this);this.i=a};
rC=function(a,b,c,d){a.i().uh(b,d);c=c();a=a.i();KX(a.Cb,"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;wJ(d.Cb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.rc(c.slotId))throw new jX("Slot ID was empty");if($W(e,c))throw new jX("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Jb.triggerType});if(!e.hd.Zj.has(c.Ya))throw new jX("No fulfillment adapter factory registered for slot of type: "+
c.Ya);if(!e.hd.uk.has(c.Ya))throw new jX("No SlotAdapterFactory registered for slot of type: "+c.Ya);rX(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Jb?[c.Jb]:[]);rX(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.ze);rX(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.Re);var f=d.i,h=c.Ya+"_"+c.slotPhysicalPosition,l=lX(f,h);if($W(f,c))throw new jX("Duplicate slots not supported");l.set(c.slotId,new sza(c));f.i.set(h,l)}catch(na){tD(na,c,void 0,void 0,na.Fm);break a}$W(d.i,c).I=!0;try{var m=d.i,n=$W(m,c),p=c.Jb,r=m.hd.Wg.get(p.triggerType);
r&&(r.yh("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ca.set(p.triggerId,r));for(var t=g.q(c.ze),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.hd.Wg.get(x.triggerType);y&&(y.yh("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.X.set(x.triggerId,y))}for(var F=g.q(c.Re),D=F.next();!D.done;D=F.next()){var G=D.value,K=m.hd.Wg.get(G.triggerType);K&&(K.yh("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.W.set(G.triggerId,K))}var J=m.hd.Zj.get(c.Ya).get().Ef(m.u,c);n.J=J;var H=m.hd.uk.get(c.Ya).get().Ef(m.C,
c);H.init();n.l=H}catch(na){tD(na,c,void 0,void 0,na.Fm);XW(d,c,!0);break a}wJ(d.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Sg(c);for(var L=g.q(d.Kd),T=L.next();!T.done;T=L.next())T.value.Sg(c);eX(d,c)}};
LX=function(a,b,c,d){g.E.call(this);var e=this;this.sb=a;this.fb=b;this.xb=c;this.i=new Map;d.get().addListener(this);g.Gi(this,function(){d.get().removeListener(e)})};
dha=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.ze),f=e.next();!f.done;f=e.next())f=f.value,f instanceof qD?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):tD("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new An(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.xb.get().addCueRange(d,c.start,c.end,!1,a)};
MX=function(){g.E.apply(this,arguments);this.bj=!0;this.si=new Map;this.i=new Map};
KK=function(a,b){for(var c=g.q(a.i.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}tD("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.rc(b)),layoutId:b})};
NX=function(){this.l=new Map;this.i=new Map;this.u=new Map};
OX=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return $t()};
xX=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return $t()};
PX=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return $t()};
tAa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
FX=function(a,b){this.Fd=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
yX=function(a,b){this.Fd=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
uAa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
QX=function(a,b){this.i=b;this.Ya="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
RX=function(a,b){this.i=b;this.Ya="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
BX=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
vAa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
Qza=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
zX=function(a,b){this.Fd=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
AX=function(a,b){this.Fd=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
EX=function(a,b){this.durationMs=45E3;this.Fd=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
wAa=function(a){return[new OC(a.wv),new JC(a.instreamAdPlayerOverlayRenderer),new RC(a.dG),new EC(a.adPlacementConfig),new VC(a.videoLengthSeconds),new iD(a.KE)]};
xAa=function(a,b,c,d,e,f){a=c.Ko?c.Ko:xX(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Sa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uc:new Map,nd:[new yX(function(l){return PX(f,l)},c.wv)],
Jc:[],Ic:[],od:[],Sa:b,oa:d,sc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
SX=function(a,b){var c=this;this.Aa=a;this.Ra=b;this.i=function(d){return PX(c.Ra.get(),d)}};
TX=function(a,b,c,d,e){return xAa(b,c,d,new OW(wAa(d)),e,a.Ra.get())};
IX=function(a,b,c,d,e,f,h,l,m){b=xX(a.Ra.get(),c,b);var n={layoutId:b,layoutType:c,Sa:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,uc:p,nd:[new BX(a.i,b),new QX(a.i,e)],Jc:[],Ic:[],od:[],Sa:"core",oa:new OW([d,new EC(f),new OC(e)]),sc:l(n),adLayoutLoggingData:m}};
DX=function(a,b,c){var d=[];d.push(new RX(a.i,c));g.U(a.Aa.get().G.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
CX=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Sa:"core"};return{layoutId:b,layoutType:c,uc:new Map,nd:h,Jc:[new tAa(a.i,b)],Ic:[],od:[],Sa:"core",oa:new OW([new zC(d),new EC(e)]),sc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
fAa=function(a,b,c,d,e,f,h){b=xX(a.Ra.get(),f,b);var l={layoutId:b,layoutType:f,Sa:"core"};return{layoutId:b,layoutType:f,uc:new Map,nd:[new yX(a.i,c)],Jc:[],Ic:[],od:[],Sa:"core",oa:new OW([new EC(d),h]),sc:e(l)}};
dAa=function(a,b,c,d,e,f,h,l,m,n){a=pAa(a,b,"adapter",c,d,e,f,h,l,m,n);return{kA:{layoutId:a.layoutId,layoutType:a.layoutType,uc:a.uc,nd:[],Jc:[],Ic:[],od:[],Sa:a.Sa,oa:a.oa,sc:a.sc,adLayoutLoggingData:a.adLayoutLoggingData},qx:a.Jc,ox:a.Ic,Il:a.Il}};
pAa=function(a,b,c,d,e,f,h,l,m,n,p){b=xX(a.Ra.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var r={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Sa:c};m=m(b);var t=PW(m.oa,"metadata_type_fulfilled_layout");t||tD("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");t=t?t.layoutId:"";d=[new EC(d),new jD(e),new lD(f)];p&&d.push(new $C(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:h,nd:[new BX(a.i,b)],Jc:[new zX(a.i,t)],Ic:[],od:[],Sa:c,
oa:new OW(d),sc:l(r),adLayoutLoggingData:n,Il:m}};
jAa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Sa:b};d=[new EC(d),new FC(l),new GC(c.externalVideoId),new IC(h),new JC(c.playerOverlay.instreamAdPlayerOverlayRenderer),new lD({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new WC(e),new SC({current:null}),new VC(f)];e=OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:xX(a.Ra.get(),
"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new PC(f));d.push(new QC(e));d.push(new $C(l.i));c.adNextParams&&d.push(new xC(c.adNextParams));c.clickthroughEndpoint&&d.push(new yC(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new kD(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new XC(c.sodarExtensionData));n&&d.push(new hD(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",uc:xI(c.pings),nd:[new BX(a.i,p)],Jc:c.skipOffsetMilliseconds?[new zX(a.i,f)]:[],Ic:[new zX(a.i,
f)],od:[],Sa:b,oa:new OW(d),sc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
Wza=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return NW(p,[],["LAYOUT_TYPE_MEDIA"])})||tD("Unexpect subLayout type for DAI composite layout");
b=xX(a.Ra.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Sa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:f,nd:[new uAa(a.i)],Jc:[],Ic:[],od:[],Sa:"core",oa:new OW([new YC(c),new ZC(m),new TC(d),new EC(e),new dD(h)]),sc:l(n)}};
Zza=function(a){return null!=a};
UX=function(a,b,c){this.yk=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
VX=function(a,b,c){this.Fd=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
yAa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
WX=function(a,b,c){this.yk=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
XX=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
YX=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
ZX=function(a,b){this.hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
$X=function(a,b){this.hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
aY=function(a,b){this.hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
bY=function(a,b){this.hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
cY=function(a,b){this.hg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
dY=function(a){var b=this;this.Ra=a;this.i=function(c){return PX(b.Ra.get(),c)}};
yza=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=OX(a.Ra.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.wo&&d.wo.start!==d.ni.start&&l.push(new qD(a.i,c,new An(d.wo.start,d.ni.start),!1));l.push(new qD(a.i,c,new An(d.ni.start,d.ni.end),d.Ou));d={getAdBreakUrl:b.getAdBreakUrl,vG:d.ni.start,uG:d.ni.end};b=new bY(a.i,h);f=[new fD(d)].concat(g.la(f));return{slotId:h,Ya:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Jb:b,ze:l,Re:[new XX(a.i,c),new $X(a.i,h),new aY(a.i,h)],Sa:"core",oa:new OW(f),adSlotLoggingData:e}};
AAa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(zAa(a,b,e.value));return d};
zAa=function(a,b,c){return null!=c.hg&&c.hg===a?c.clone(b):c};
eAa=function(a,b,c,d){var e=OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER"),f=new pD(a.i,b),h={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sa:"core",Jb:f};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:f,ze:[new ZX(a.i,e)],Re:[new $X(a.i,e),new XX(a.i,c)],Sa:"core",oa:new OW([new eD(d(h,b))]),adSlotLoggingData:void 0}};
oAa=function(a,b,c,d,e,f){var h=OX(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES");b=eY(a,b,c,d);if(b instanceof jX)return b;d=f({slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sa:"core",Jb:b});f=d.jM;d=d.PL;return[{slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:b,ze:[new ZX(a.i,h)],Re:[new $X(a.i,h),new XX(a.i,c)],Sa:"core",oa:new OW([new eD(f)]),adSlotLoggingData:e},d]};
BAa=function(a,b,c,d,e){e=e?e:OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new pD(a.i,c);var f={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sa:"core",Jb:c};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:c,ze:[new ZX(a.i,e)],Re:[new XX(a.i,b),new $X(a.i,e)],Sa:"core",oa:new OW([new eD(d(f))])}};
bAa=function(a,b,c,d,e,f){var h=eY(a,b,c,d);if(h instanceof jX)return h;h instanceof qD&&(h=new qD(a.i,h.yk,h.i,h.visible,h.l,!0));d=h instanceof qD?new WX(a.i,c,h.i):null;b=OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sa:"core",Jb:h},d);return f instanceof bX?new jX(f):{slotId:b,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:h,ze:[new ZX(a.i,b)],Re:[new XX(a.i,c),new $X(a.i,b)],Sa:"core",oa:new OW([new eD(f)]),adSlotLoggingData:e}};
Pza=function(a,b,c,d){var e=OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new pD(a.i,c);var f={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sa:"core",Jb:c};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:c,ze:[new ZX(a.i,e)],Re:[new XX(a.i,b),new $X(a.i,e)],Sa:"core",oa:new OW([new eD(d(f))])}};
Nza=function(a,b,c,d,e){var f=OX(a.Ra.get(),"SLOT_TYPE_IN_PLAYER");c=new VX(a.i,d,c);d={slotId:f,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Sa:"core",Jb:c};return{slotId:f,Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:c,ze:[new ZX(a.i,f)],Re:[new XX(a.i,b)],Sa:"core",oa:new OW([new eD(e(d))])}};
Dza=function(a,b,c,d,e,f,h){var l=OX(a.Ra.get(),b);return CAa(a,l,b,new pD(a.i,d),c,e,d,f,h)};
Cza=function(a,b,c,d,e,f,h,l){return CAa(a,c,b,new YX(a.i,c),d,f,e,h,l)};
Sza=function(a,b,c){var d=OX(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new yAa(a.i),f={slotId:d,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sa:"core",Jb:e};return{slotId:d,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:e,ze:[new cY(a.i,d)],Re:[new XX(a.i,b)],Sa:"core",oa:new OW([new eD(c(f)),new aD({})])}};
kAa=function(a,b,c,d,e,f){var h=OX(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES");b=eY(a,b,c,d);if(b instanceof jX)return b;f=f({slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Sa:"core",Jb:b});return f instanceof jX?f:{eG:{slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:b,ze:[new ZX(a.i,h)],Re:[new $X(a.i,h),new XX(a.i,c)],Sa:"core",oa:new OW([new eD(f.layout)]),adSlotLoggingData:e},yn:f.yn}};
$za=function(a,b,c,d,e,f){var h=OX(a.Ra.get(),"SLOT_TYPE_FORECASTING");b=eY(a,b,c,d);if(b instanceof jX)return b;d={slotId:h,Ya:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Sa:"core",Jb:b};return{slotId:h,Ya:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Jb:b,ze:[new ZX(a.i,h)],Re:[new $X(a.i,h),new XX(a.i,c)],Sa:"core",oa:new OW([new eD(f(d))]),adSlotLoggingData:e}};
eY=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new nD(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=pX(b,d);if(b instanceof jX)return b;b=b.ni;return new qD(a.i,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new UX(a.i,c,e);default:return new jX("Cannot construct entry trigger",{kind:b.kind})}};
CAa=function(a,b,c,d,e,f,h,l,m){var n={slotId:b,Ya:c,slotPhysicalPosition:1,Sa:"core",Jb:d};e=[new XX(a.i,e),new $X(a.i,b)];LJ(l)&&e.push(new FX(a.i,h));return{slotId:b,Ya:c,slotPhysicalPosition:1,Jb:d,ze:[new cY(a.i,b)],Re:e,Sa:"core",oa:new OW([new eD(m(n))]),adSlotLoggingData:f}};
fY=function(a,b,c){g.E.call(this);this.Aa=a;this.i=b;this.Fa=c;this.eventCount=0};
wJ=function(a,b,c){KX(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
aX=function(a,b,c,d){KX(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
jza=function(a,b,c,d){g.U(a.Aa.get().G.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&KX(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)};
KX=function(a,b,c,d,e,f,h,l,m,n){if(g.U(a.Aa.get().G.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.U(a.Aa.get().G.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=SW(a.i.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.S(a.Aa.get().G.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:tC(a.Fa.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=tC(a.Fa.get(),1).ej;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=RW(p,f));h&&(a.layoutData=eza(p,h));l&&(a.triggerData=dza(l.trigger,l.category));c&&(a.opportunityData=fza(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Or("adsClientStateChange",{adsClientEvent:b})}};
gY=function(){this.i=new Map};
hY=function(a,b,c,d){g.E.call(this);this.l=b;this.ra=c;this.je=d;this.listeners=[];var e=new Nt(this);g.I(this,e);e.N(a,"internalAbandon",this.gJ);g.Gi(this,function(){g.Pt(e)})};
iY=function(a){g.E.call(this);this.G=a;this.i=new Map;this.l=new Nt(this);g.I(this,this.l);this.l.N(this.G,g.AD("ad"),this.zd,this);this.l.N(this.G,g.BD("ad"),this.mf,this)};
DAa=function(a,b,c,d,e){g.xD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
jY=function(a){this.G=a};
kY=function(a){this.G=a};
lY=function(a){if(rG(a.G.T()))return g.U(a.G.T().experiments,"tvhtml5_unplugged_pacf_enable_video_overlay_on_inplayer_slot");if(g.sG(a.G.T()))return!1;var b=g.qG(a.G.T())||a.G.T().i||g.uG(a.G.T())||vG(a.G.T())||gG(a.G.T())||tG(a.G.T());a=g.fG(a.G.T())&&g.U(a.G.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
mY=function(a){return g.U(a.G.T().experiments,"enable_server_stitched_dai")};
PK=function(a){return g.U(a.G.T().experiments,"html5_handle_preroll_lock_in_pacf")};
EAa=function(a){return g.U(a.G.T().experiments,"html5_listen_to_errors_in_base_player_bytes_lra")};
FAa=function(a){return g.U(a.G.T().experiments,"html5_recognize_predict_start_cue_point")};
GAa=function(a){return g.U(a.G.T().experiments,"html5_enable_logging_of_bulleit_above_feed_slot_commands")};
LJ=function(a){return g.U(a.G.T().experiments,"html5_unschedule_companions_with_terminated_video_ad")};
nY=function(a,b){this.ra=a;this.G=b;this.i=new Map;vI().subscribe("adactiveviewmeasurable",this.Fu,this);vI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Eu,this);vI().subscribe("adviewableimpression",this.Gu,this)};
HAa=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?tD("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),Qia(vI(),b,{Oq:function(){return c?{currentTime:a.ra.get().getCurrentTimeSec(2,!1),duration:c,Kb:2===a.ra.get().getPresentingPlayerType()&&1===oY(a.ra.get(),2),E3:!1,F3:!0,volume:a.ra.get().isMuted()?0:a.ra.get().getVolume()/100}:{}}}))};
IAa=function(a,b){a.i.has(b)?(a.i["delete"](b),delete vI().i[b]):tD("Unexpected unregistration of layout in LidarApi")};
pY=function(a,b,c,d){var e=void 0===e?new RK(function(){var f=a.getVideoData(1);return f?g.nI(f):""},function(){return a.T().pageId}):e;
this.G=a;this.l=b;this.jb=c;this.Fa=d;this.cq=e;this.u=null;this.i=new Map;this.ji=new PI(e)};
LAa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=KK(a.l.get(),c);h?(c=qY(a,JAa(h),h),b.hasOwnProperty("baseUrl")?a.cq.send(b,c):a.ji.send(b,c,{},d)):b.hasOwnProperty("baseUrl")?tD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.G.getPresentingPlayerType(!0)),ping:KAa(b.baseUrl),commandsDebugInfo:e}):tD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.G.getPresentingPlayerType(!0)),ping:KAa(b),
commandsDebugInfo:e})};
KAa=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))};
MAa=function(a,b,c,d){d=void 0===d?[]:d;var e=KK(a.l.get(),b);if(e)for(b=a.jb.get().Ae(b,c),e=qY(a,JAa(e),e),d=g.q(d),c=d.next();!c.done;c=d.next())c=c.value,c.baseUrl&&a.ji.send(c.baseUrl,e,b,c.headers);else tD("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,trackingType:c})};
rY=function(a,b){g.Or("adsClientStateChange",b)};
sY=function(a,b){a.i.has(b.Rq())?tD("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Rq(),b)};
tY=function(a,b){a.i["delete"](b.Rq())||tD("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
JAa=function(a){var b=PW(a.oa,"metadata_type_ad_placement_config");a=PW(a.oa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,LE:a}};
qY=function(a,b,c){var d=c?NAa(a):{};c=c?OAa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JI(a.G)),$ia(b.adPlacementConfig)),(e.SLOT_POS=II(function(){return(b.LE||0).toString()}),e)),c),d),(f.FINAL=II(function(){return"1"}),f.AD_CPN=II(function(){var l;
return(null===(l=tC(a.Fa.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(PAa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
NAa=function(a){var b,c={},d=null===(b=a.u)||void 0===b?void 0:b.z3();null!=d&&(c.SURVEY_ELAPSED_MS=II(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=II(function(){return Math.round(Date.now()/1E3).toString()});
return c};
OAa=function(a,b){var c=a.i.get(b);if(!c)return{};c=c.Ux();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Gv.toString(),d.ERRORCODE=c.ys.toString(),d.ERROR_MSG=c.errorMessage,d};
uY=function(a,b){g.E.call(this);this.G=a;this.Rc=b;this.listeners=[];var c=new g.XM(this);g.I(this,c);c.N(a,"videodatachange",this.xP);c.N(a,"serverstitchedvideochange",this.WO);this.Sm=tC(this);this.contentCpn=tC(this,1).clientPlaybackNonce};
tC=function(a,b){var c=a.G.getVideoData(b);return c?QAa(a,c,b||a.G.getPresentingPlayerType(!0)):null};
RAa=function(a,b,c){var d=QAa(a,b,c);a.Sm=d;a.listeners.forEach(function(e){e.GF(d)});
b=tC(a,1);b.clientPlaybackNonce!==a.contentCpn&&(a.contentCpn=b.clientPlaybackNonce,a.listeners.forEach(function(){}))};
QAa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Qc,r=b.title,t=b.yg,w=b.wf,x=b.isMdxPlayback,y=b.Yg,F=b.mdxEnvironment,D=b.ph,G=b.ki,K=b.videoId||"",J=b.dg||"",H=b.Bg||"";b=b.Sj||void 0;p=a.Rc.get().i.get(p)||{layoutId:null,slotId:null};var L=a.G.getVideoData(1),T=L.ej();L=L.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);L=(null===(e=null===(d=null===L||void 0===L?void 0:L.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:e.enableDai)||
(null===(h=null===(f=null===L||void 0===L?void 0:L.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},p),{videoId:K,author:l,clientPlaybackNonce:m,playbackDurationMs:c,SC:a,daiEnabled:L,isListed:n,ej:T,dg:J,title:r,Bg:H,yg:t,wf:w,Sj:b,isMdxPlayback:x,Yg:y,mdxEnvironment:F,ph:D,ki:G})};
vY=function(a){g.E.call(this);this.G=a;this.listeners=[];this.Yk=function(){tD("Called 'doUnlockPreroll' before it's initialized.")};
var b=new Nt(this);g.I(this,b);b.N(a,"progresssync",this.xO);b.N(a,"presentingplayerstatechange",this.oO);b.N(a,"fullscreentoggled",this.Zf);b.N(a,"onVolumeChange",this.Tg);b.N(a,"minimized",this.Rg);b.N(a,"resize",this.Ta)};
oY=function(a,b){return a.G.Xa(b)};
SAa=function(a){var b=a.G.Ka().Vf();a=a.G.Vi(!0,!0);return b.height-(a.height+a.top)};
TAa=function(a,b){var c=a.G.T();UF(c)||"3"!==c.controlsType||a.G.Ka().Ur(b)};
UAa=function(a,b,c){g.E.call(this);var d=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(d.Aa,d.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(d.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.eb=Z(function(){return new UW(d.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(d.fb,d.yb,d.Aa,d.eb,null,null)});
g.I(this,this.xc);this.Fa=Z(function(){return new uY(b,d.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.jb=Z(function(){return new nY(d.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,d.Eb,d.jb,d.Fa)});
g.I(this,this.Ga);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var e=new hY(b,this.Lb,this.ra);this.Xd=Z(function(){return e});
this.pk=e;this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.hd={xn:new Map,Zj:new Map,Wg:new Map,uk:new Map,kk:new Map};this.listeners=[];this.de={Mb:this.Mb,Gi:null,mk:null,Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:null,sh:{dr:function(){}},
Jf:this.Eb.get()}};
wY=function(a){this.qq=a};
xY=function(){};
VAa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&We(b.siub,b.scs,b.bgub,b.bgp)};
WAa=function(a,b,c,d){this.callback=a;this.slot=b;this.yb=c;this.eb=d;this.i=null};
XAa=function(a,b,c){a.i&&tD("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(d){a.i=null;c&&c(d);var e=d.Ap?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=a.yb.get(),h=a.slot.slotId,l=TW(a.eb.get(),{slotId:a.slot.slotId,Ya:a.slot.Ya,slotPhysicalPosition:a.slot.slotPhysicalPosition,Sa:a.slot.Sa,Jb:a.slot.Jb}),m=xX(f.Ra.get(),e,h),n={layoutId:m,layoutType:e,Sa:"core"};d={layoutId:m,layoutType:e,uc:new Map,nd:[new vAa(f.i,
h)],Jc:[],Ic:[],od:[],Sa:"core",oa:new OW([new gD(d)]),sc:l(n)};iza(a.callback,a.slot,d)},function(d){a.i=null;
d instanceof Cm||YW(a.callback,a.slot,new jX(d,void 0,!0))})};
YAa=function(a){if(null==a.i)a.callback.Ju(a.slot);else try{a.i.cancel(),a.i=null,a.callback.Ju(a.slot)}catch(b){a.i=null,YW(a.callback,a.slot,new jX(b))}};
yY=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.rd=c;this.qe=f;this.i=new WAa(a,b,d,e)};
zY=function(a,b,c,d,e){this.callback=a;this.slot=b;this.rd=c;this.i=new WAa(a,b,d,e)};
AY=function(a,b){this.callback=a;this.slot=b};
BY=function(a,b){return mD(a,b.ie,b.Ya)?!0:!1};
CY=function(){};
DY=function(a,b,c,d){this.rd=a;this.yb=b;this.eb=c;this.qe=d};
EY=function(){};
ZAa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
FY=function(a,b){return NW(a,b.ie,b.Xf)?!0:!1};
GY=function(a){this.i=a};
HY=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ga=b;this.layoutId=d;this.l=0;this.i=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.C={adPlacementConfig:c,LE:e}};
IY=function(){return["metadata_type_ad_placement_config"]};
JY=function(a){var b=a.Ga.get();return qY(b,a.C)};
KY=function(a,b){a.i.has(b)||a.Ae(b)};
$Aa=function(a,b,c){for(c=void 0===c?!1:c;a.l<a.u.length;){var d=a.u[a.l];if(d.offsetMilliseconds<=b||c){var e=a;d=[d];MAa(e.Ga.get(),e.layoutId,"progress",d);a.l++}else break}};
aBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.i=e;a=PW(this.layout.oa,"metadata_type_ad_placement_config");this.l=new HY(c.uc,this.Ga,a,c.layoutId)};
bBa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_FORECASTING"]}};
LY=function(a,b,c){this.Ga=a;this.i=b;this.jb=c};
MY=function(a,b,c,d){g.R.call(this);this.callback=a;this.slot=b;this.layout=c;this.l=d;this.i=[]};
NY=function(a,b,c,d,e,f,h){e=PW(c.oa,e);a=JY(a);var l=$a(function(){d.Oc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.sc},function(){l()}))};
OY=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.Ya&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():tD("Tried to call engagePingCallback but it is null",h,l)}}else tD("Companion AdUxClick received without a layoutId",h,l)};
cBa=function(a,b,c,d,e){eJ.call(this,"action-companion",a,b,c,d,e)};
PY=function(a,b,c,d,e,f,h,l){MY.call(this,a,b,c,d);this.Ga=e;this.B=f;this.J=l;this.bj=!0;this.u=null;this.C=PW(c.oa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=PW(c.oa,"metadata_type_ad_placement_config");this.I=new HY(c.uc,this.Ga,a,c.layoutId)};
dBa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
QY=function(a,b,c,d,e){MY.call(this,a,b,c,d);a=PW(c.oa,"metadata_type_ad_placement_config");this.u=new HY(c.uc,e,a,c.layoutId)};
eBa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_ENDCAP"]}};
RY=function(a,b,c,d,e,f,h){MY.call(this,a,b,c,d);this.ra=e;this.Ga=f;this.B=h;this.u=!1;this.C=PW(this.layout.oa,"metadata_type_linked_player_bytes_layout_id")};
fBa=function(){return{ie:["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"],Xf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
SY=function(a,b,c,d,e,f,h){return FY(c,fBa())?new RY(a,b,c,d,e,f,h):FY(c,eBa())?new QY(a,b,c,d,f):null};
TY=function(a,b,c,d){this.Tb=a;this.ra=b;this.Ga=c;this.i=d};
UY=function(a,b,c,d,e){g.E.call(this);this.callback=a;this.bd=b;this.ra=c;this.Vc=d;this.Aa=e};
VY=function(a,b,c,d,e,f,h,l,m){UY.call(this,a,b,c,d,m);this.u=e;this.slot=f;this.layout=h;this.C=l;this.l=[];this.i=-1};
hBa=function(a,b,c,d){var e=a.l[a.i];e?(e.Nb().layoutId!==c.layoutId&&tD("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Nb().layoutId}),e.Ug(e.Nb(),d),MJ(a.u,b,c,d),a.B?a.B():gBa(a)):tD("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)};
gBa=function(a){a.i===a.l.length-1?(a.i++,WY(a.C,a.layout.layoutId)):(-1===a.i&&a.callback.Oc(a.slot,a.layout),a.i++,a=a.l[a.i],a.startRendering(a.Nb()))};
XY=function(a){return!a.Gl.Kb()&&a.state.Kb()};
YY=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
ZY=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x){g.E.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.W=d;this.Ga=e;this.jb=f;this.ra=h;this.Vc=l;this.Id=m;this.dc=n;this.C=p;this.position=t;this.ca=w;this.Aa=x;this.bj=!0;this.Y=!1;this.l="not_rendering";a=PW(this.layout.oa,"metadata_type_ad_placement_config");this.i=new HY(c.uc,this.Ga,a,c.layoutId);this.X=$a(function(){y.callback.Oc(y.slot,y.layout)});
this.I=$a(function(){"rendering_stop_requested"!==y.l&&r(y);y.J?y.callback.Ad(y.slot,y.layout,y.J):tD("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
$Y=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.l){$Aa(a.i,1E3*b,c);var d=a.Qq();d&&(d/=1E3,(b>=.25*d||c)&&KY(a.i,"first_quartile"),(b>=.5*d||c)&&KY(a.i,"midpoint"),(b>=.75*d||c)&&KY(a.i,"third_quartile"))}};
aZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y){ZY.call(this,a,b,c,d,e,f,h,l,n,p,r,t,w,x,y);var F=this;this.fc=m;this.L=this.u=0;this.B=new g.Fm(200);this.B.ya("tick",function(){F.Ab()});
g.I(this,this.B)};
iBa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(IY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ie:a,Xf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
jBa=function(a){a.L=Date.now();bZ(a,a.u);a.B.start()};
bZ=function(a,b){var c={current:b/1E3,duration:a.Qq()/1E3};a.fc.get().xa("onAdPlaybackProgress",c)};
cZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D,G,K,J){ZY.call(this,a,b,c,d,e,f,n,r,w,x,F,D,G,K,J);var H=this;this.Dd=h;this.bd=l;this.Fa=m;this.xb=p;this.fc=t;this.Nd=y;this.adCpn="";this.B=new g.M(function(){H.Yo("load_timeout",new bX("Media layout load timeout.",{},!0))},1E4)};
kBa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(IY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ie:a,Xf:["LAYOUT_TYPE_MEDIA"]}};
dZ=function(a,b,c,d,e,f){UY.call(this,a,b,c,d,f);this.i=e};
mBa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D,G){if(FY(d,{ie:["metadata_type_sub_layouts"],Xf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var K=PW(d.oa,"metadata_type_sub_layouts");a=new VY(a,n,r,w,b,c,d,f,G);b=[];for(var J={Yl:0};J.Yl<K.length;J={Yl:J.Yl},J.Yl++){var H=lBa({Oc:a.fP.bind(a),Ad:a.hP.bind(a),Ne:a.gP.bind(a)},c,K[J.Yl],e,h,l,m,n,p,r,t,w,x,y,F,D,function(L){return function(T){T.Ug(K[L.Yl],"normal")}}(J),J.Yl,K.length,G);
if(!H)return;b.push(H)}a.l=b;return a}if(FY(d,{ie:[],Xf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=lBa({Oc:a.Oc.bind(a),Ad:a.Ad.bind(a),Ne:a.Ne.bind(a)},c,d,e,h,l,m,n,p,r,t,w,x,y,F,D,function(){WY(f,d.layoutId)},0,1,G))?new dZ(a,n,r,w,c,G):c};
lBa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D,G,K){if(FY(c,iBa()))return new aZ(a,b,c,d,e,f,n,r,t,w,x,function(){},F,D,G,K);
if(FY(c,kBa()))return c.oa.i.has("metadata_type_ad_intro")?new cZ(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,function(J){t.get().xa("onAdIntroStateChange",J)},F,D,G,K):new cZ(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,function(J){t.get().wh(J)},F,D,G,K)};
eZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x){this.i=a;this.l=b;this.Ga=c;this.jb=d;this.Dd=e;this.bd=f;this.Fa=h;this.ra=l;this.xb=m;this.Vc=n;this.fc=p;this.Id=r;this.dc=t;this.Nd=w;this.Aa=x};
fZ=function(a,b,c,d,e,f,h,l){g.E.call(this);this.i=a;this.u=b;this.l=c;this.sb=d;this.fb=e;this.eb=f;this.Aa=h;this.Fa=l;this.bj=!0};
nBa=function(a){var b;return lY(a.Aa.get())?!0:!(null===(b=tC(a.Fa.get()))||void 0===b||!b.daiEnabled)};
gZ=function(a){var b,c=null===(b=PW(a.oa,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=PW(a.oa,"metadata_type_content_cpn"),f=PW(a.oa,"metadata_type_instream_ad_player_overlay_renderer"),h=PW(a.oa,"metadata_type_ad_placement_config"),l=PW(a.oa,"metadata_type_video_length_seconds");var m=a.oa.i.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?PW(a.oa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.oa.i.has("metadata_type_layout_enter_ms")&&a.oa.i.has("metadata_type_layout_exit_ms")?
(PW(a.oa,"metadata_type_layout_exit_ms")-PW(a.oa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={wv:d,contentCpn:e,dG:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,KE:m,Ko:PW(a.oa,"metadata_type_linked_in_player_layout_id"),dE:PW(a.oa,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
oBa=function(a,b){var c,d=null===(c=PW(a.oa,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.oa.i.has("metadata_ad_video_is_listed"))var e=PW(a.oa,"metadata_ad_video_is_listed");else b?e=b.isListed:(tD("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);if(a.oa.i.has("metadata_type_ad_info_ad_metadata"))var f=PW(a.oa,"metadata_type_ad_info_ad_metadata");else b?f={channelId:b.Bg,channelThumbnailUrl:b.dg,channelTitle:b.author,videoTitle:b.title}:
(tD("No layout metadata nor AdPlayback specified for AdMetaData"),f={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{uK:f,adPlacementConfig:PW(a.oa,"metadata_type_ad_placement_config"),wK:e,contentCpn:PW(a.oa,"metadata_type_content_cpn"),Ko:PW(a.oa,"metadata_type_linked_in_player_layout_id"),dE:PW(a.oa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:PW(a.oa,"metadata_type_instream_ad_player_overlay_renderer"),KE:void 0,dG:d,wv:a.layoutId,videoLengthSeconds:PW(a.oa,
"metadata_type_video_length_seconds")}};
pBa=function(a,b){this.callback=a;this.slot=b};
hZ=function(){};
qBa=function(a,b,c){this.callback=a;this.slot=b;this.ra=c};
rBa=function(a,b,c){this.callback=a;this.slot=b;this.ra=c;this.i=!1};
sBa=function(a){a.i&&(a.ra.get().Yk(),a.i=!1)};
iZ=function(a){this.ra=a};
jZ=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
kZ=function(a){g.E.call(this);this.pw=a;this.ob=new Map};
lZ=function(a,b){kZ.call(this,a);var c=this;b.get().addListener(this);g.Gi(this,function(){b.get().removeListener(c)})};
mZ=function(a){g.E.call(this);this.i=a;this.bj=!0;this.ob=new Map;this.C=new Set;this.u=new Set;this.B=new Set;this.I=new Set;this.l=new Set};
nZ=function(a,b){g.E.call(this);var c=this;this.i=a;this.ob=new Map;b.get().addListener(this);g.Gi(this,function(){b.get().removeListener(c)})};
tBa=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 XX&&e.trigger.i===b===c&&d.push(e);return d};
oZ=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.xb=b;this.ra=c;this.Fa=d;this.ob=new Map;this.i=new Set;this.l=new Set;c.get().addListener(this);g.Gi(this,function(){c.get().removeListener(e)})};
pZ=function(a,b,c,d,e,f,h,l,m,n){if(tC(a.Fa.get(),1).clientPlaybackNonce!==m)throw new jX("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.ob.set(c.triggerId,{bundle:new jZ(b,c,d,e),oo:f});a.xb.get().addCueRange(f,h,l,n,a)};
uBa=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.oo)return d}return""};
qZ=function(a){g.E.call(this);this.u=a;this.bj=!0;this.ob=new Map;this.l=this.i=null};
WY=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 BX){var f;if(f=e.trigger.layoutId===b)f=(f=kza.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&hX(a.u(),c)};
rZ=function(a){g.E.call(this);this.i=a;this.bj=!0;this.ob=new Map};
sZ=function(a,b,c,d,e,f){g.E.call(this);this.u=a;this.dd=b;this.eb=c;this.Fa=d;this.Aa=e;this.Ra=f;this.i=this.l=null;this.dd.get().addListener(this)};
aka=function(a,b,c,d,e){var f=OX(a.Ra.get(),"SLOT_TYPE_PLAYER_BYTES");a.l={slotId:f,Ya:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:void 0,ze:[],Re:[],Sa:"surface",oa:new OW([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,nd:[],Jc:[],Ic:[],od:[],Sa:"surface",oa:new OW(c),sc:gza(SW(a.eb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(fX(a.u(),a.l,a.i),gX(a.u(),a.l,a.i))};
tZ=function(a,b){this.Mk=a;this.Aa=b};
vBa=function(a,b){if(!a)return{Nj:[],Ap:!0};a.trackingParams&&Mka(pK(),a.trackingParams);if(a.adThrottled)return{Nj:[],Ap:!0};var c=a.playerAds;if(!c||!c.length)return{Nj:[],Ap:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Nj:[],Ap:!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{Nj:c,
Ap:!1}};
uZ=function(a){g.E.call(this);this.G=a;this.listeners=[];this.i=new Nt(this);g.I(this,this.i);this.i.N(this.G,"aduxclicked",this.onAdUxClicked);this.i.N(this.G,"aduxmouseover",this.iz);this.i.N(this.G,"aduxmouseout",this.hz);this.i.N(this.G,"muteadaccepted",this.GM)};
wBa=function(a,b,c){b=g.Qc(b,function(d){return new GD(d,c,d.id)});
a.G.xa("onAdUxUpdate",b)};
vZ=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
wZ=function(a){this.G=a};
xZ=function(a){this.G=a};
yZ=function(){this.listeners=[]};
xBa=function(a){this.G=a};
yBa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.qe=e;this.je=f;this.ra=h;this.u=l;this.Ga=m;this.l=n;this.i=null;this.driftRecoveryMs=PW(c.oa,"metadata_type_drift_recovery_ms")||null};
ABa=function(a,b){var c=zBa(a,b);a.i={hh:c};c&&c.startRendering(c.Nb())};
CBa=function(a){var b=PW(a.layout.oa,"metadata_type_layout_enter_ms"),c=PW(a.layout.oa,"metadata_type_layout_exit_ms");a=BBa(a.je.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
zBa=function(a,b){return null==b?null:a.l.find(function(c){return c.Nb().layoutId===b})||null};
zZ=function(a,b){var c;rY(a.Ga.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Fa.get().Sm)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.sc.adClientDataEntry},b)})};
DBa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.qe=d;this.i=e;this.ra=f;this.Rc=h;this.jb=l;this.Dd=m;this.Aa=n;this.Gy=!0;this.l=null};
FBa=function(a,b,c){var d=a.ra.get().getCurrentTimeSec(2,!1);XY(c)&&YY(d,0,null)&&KY(a.i,"impression");a.i.i.has("impression")&&(g.iJ(c,4)&&!g.iJ(c,2)&&a.i.Ae("pause"),0>hJ(c,4)&&!(0>hJ(c,2))&&a.i.Ae("resume"),g.iJ(c,16)&&.5<=a.ra.get().getCurrentTimeSec(2,!1)&&a.i.Ae("seek"),g.iJ(c,2)&&EBa(a,c.state,b))};
EBa=function(a,b,c){var d=PW(a.layout.oa,"metadata_type_video_length_seconds"),e=a.ra.get().getCurrentTimeSec(2,!1),f=1>=Math.abs(d-e);GBa(a,b,f?d:e,c.Ry);f&&KY(a.i,"complete")};
GBa=function(a,b,c,d){$Aa(a.i,1E3*c);var e=PW(a.layout.oa,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.W(b,16))||(null===b||void 0===b?0:g.W(b,32))||(YY(c,.25*e,d)&&KY(a.i,"first_quartile"),YY(c,.5*e,d)&&KY(a.i,"midpoint"),YY(c,.75*e,d)&&KY(a.i,"third_quartile"))};
HBa=function(a){return Object.assign(Object.assign({},AZ(a)),{adPlacementConfig:PW(a.oa,"metadata_type_ad_placement_config"),subLayouts:PW(a.oa,"metadata_type_sub_layouts").map(AZ)})};
AZ=function(a){return{enterMs:PW(a.oa,"metadata_type_layout_enter_ms"),exitMs:PW(a.oa,"metadata_type_layout_exit_ms")}};
BZ=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D){this.i=a;this.l=b;this.Fa=c;this.qe=d;this.ra=e;this.Ga=f;this.Rc=h;this.je=l;this.jb=m;this.Dd=n;this.bd=p;this.xb=r;this.Vc=t;this.fc=w;this.Id=x;this.dc=y;this.Nd=F;this.Aa=D};
CZ=function(a,b,c,d,e,f,h){g.E.call(this);var l=this;this.sb=a;this.fb=b;this.Fa=c;this.je=e;this.ra=f;this.Aa=h;this.i=null;d.get().addListener(this);g.Gi(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.Gi(this,function(){e.get().removeListener(l)})};
sAa=function(a,b){if(tC(a.Fa.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)tD("Unexpected multiple fetch instructions for the current content");else{a.i=b;for(var c=g.q(a.je.get().vv),d=c.next();!d.done;d=c.next())IBa(a,a.i,d.value)}};
IBa=function(a,b,c){var d=a.ra.get().getCurrentTimeSec(1,!1);rC(a.sb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.fb.get(),f=mY(a.Aa.get());var h=1E3*c.startSecs;h={ni:new An(h,h+1E3*c.durationSecs),Ou:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new An(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new An(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.wo=f;return[yza(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new UC(c)])]})};
DZ=function(a,b){var c;g.E.call(this);var d=this;this.B=a;this.l=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.Gi(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().Sm)||void 0===c?void 0:c.slotId)||null};
JBa=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};
EZ=function(a,b,c,d){g.E.call(this);this.G=a;this.Fa=b;this.Aa=c;this.Ga=d;this.listeners=[];this.i=new Set;this.vv=[];this.u=new QJ(this,FAa(c.get()));this.l=new RJ;KBa(this)};
BBa=function(a,b,c){return ika(a.l,b,c)};
KBa=function(a){var b,c=a.G.getVideoData(1);c.subscribe("cuepointupdated",a.oz,a);a.i.clear();a.vv.length=0;c=(null===(b=c.i)||void 0===b?void 0:jB(b,0))||[];a.oz(c)};
LBa=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");}};
FZ=function(a){this.G=a};
GZ=function(){this.listeners=new Set};
MBa=function(a,b,c,d,e){eJ.call(this,"image-companion",a,b,c,d,e)};
HZ=function(a,b,c,d,e,f,h,l){MY.call(this,a,b,c,d);this.Ga=e;this.B=f;this.J=l;this.bj=!0;this.u=null;this.C=PW(c.oa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=PW(c.oa,"metadata_type_ad_placement_config");this.I=new HY(c.uc,this.Ga,a,c.layoutId)};
NBa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
OBa=function(a,b,c,d,e){eJ.call(this,"shopping-companion",a,b,c,d,e)};
IZ=function(a,b,c,d,e,f,h,l){MY.call(this,a,b,c,d);this.Ga=e;this.B=f;this.J=l;this.bj=!0;this.u=null;this.C=PW(c.oa,"metadata_type_linked_player_bytes_layout_id");WW(this.B(),this);a=PW(c.oa,"metadata_type_ad_placement_config");this.I=new HY(c.uc,this.Ga,a,c.layoutId)};
PBa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
QBa=function(a,b,c,d,e){this.Tb=a;this.Ga=b;this.i=c;this.l=d;this.jb=e};
JZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
LZ=function(a,b,c){c=void 0===c?KZ:c;c.width<KZ.width&&(c=KZ);if(a.width<c.width||a.height<c.height)return{Gv:3,ys:501,errorMessage:"ad("+JZ(c)+") larger than container("+JZ(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Gv:3,ys:501,errorMessage:"ad("+JZ(c)+") to container("+JZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Gv:3,ys:501,errorMessage:"ad("+JZ(c)+") covers container("+JZ(a)+") center."}};
RBa=function(a,b){var c=PW(a.oa,"metadata_type_ad_placement_config");return new HY(a.uc,b,c,a.layoutId)};
MZ=function(a){return PW(a.oa,"metadata_type_invideo_overlay_ad_renderer")};
NZ=function(a,b,c,d,e,f,h,l,m,n){MY.call(this,f,a,b,e);this.Ga=c;this.u=h;this.ra=l;this.dc=m;this.Aa=n;this.C=RBa(b,c)};
SBa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];IY().forEach(function(b){a.push(b)});
return{ie:a,Xf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
OZ=function(a,b,c,d,e,f,h,l,m,n,p){MY.call(this,f,a,b,e);this.Ga=c;this.u=h;this.C=l;this.ra=m;this.dc=n;this.Aa=p;this.I=RBa(b,c)};
PZ=function(a,b,c,d,e,f,h,l,m){this.Tb=a;this.ra=b;this.Ga=c;this.u=d;this.jb=e;this.i=f;this.l=h;this.dc=l;this.Aa=m};
QZ=function(a){g.E.call(this);this.i=a;this.ob=new Map};
RZ=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&&hX(a.i(),c)};
SZ=function(a){g.E.call(this);this.u=a;this.bj=!0;this.ob=new Map;this.i=new Map;this.l=new Map};
TBa=function(a,b){var c=[],d=a.i.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.l.get(e.value.triggerId))&&c.push(e)}return c};
TZ=function(a,b,c){g.E.call(this);this.u=a;this.ij=b;this.Ra=c;this.i=this.l=void 0;this.ij.get().addListener(this)};
UBa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,"SLOT_TYPE_ABOVE_FEED",f.Li)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.ij=Z(function(){return new GZ});
g.I(this,this.ij);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.je=Z(function(){return new EZ(b,f.Fa,f.Aa,f.Ga)});
g.I(this,this.je);this.qe=Z(function(){return new FZ(b)});
g.I(this,this.qe);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.Dd=Z(function(){return new xY});
this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.tf=new fZ(gZ,UZ,function(l,m,n,p){return TX(f.yb.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra,this.je);this.Xd=Z(function(){return h});
this.pk=h;this.Li=new CZ(this.sb,this.fb,this.Fa,this.Xd,this.je,this.ra,this.Aa);g.I(this,this.Li);this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb,f.qe)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Om=new QZ(a);g.I(this,this.Om);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.mn=new DZ(a,this.Fa);g.I(this,this.mn);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.Ln=new SZ(a);g.I(this,this.Ln);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.nC=Z(function(){return new QBa(f.Tb,f.Ga,a,f.Eb,f.jb)});
g.I(this,this.nC);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.sf=Z(function(){return new BZ(a,f.Xb,f.Fa,f.qe,f.ra,f.Ga,f.Rc,f.je,f.jb,f.Dd,f.bd,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.Vh=Z(function(){return new PZ(f.Tb,f.ra,f.Ga,f.Eb,f.jb,f.Om,f.Ln,f.dc,f.Aa)});
g.I(this,this.Vh);this.Tw=new TZ(a,this.ij,this.Ra);g.I(this,this.Tw);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Li],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.cf],["SLOT_TYPE_ABOVE_FEED",this.Cc],["SLOT_TYPE_FORECASTING",this.Cc],["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",
this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Va],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Om],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ld],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.td],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mn],
["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rf],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ln]]),uk:new Map([["SLOT_TYPE_ABOVE_FEED",this.yc],["SLOT_TYPE_AD_BREAK_REQUEST",this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",this.uf]]),kk:new Map([["SLOT_TYPE_ABOVE_FEED",
this.nC],["SLOT_TYPE_AD_BREAK_REQUEST",this.bf],["SLOT_TYPE_FORECASTING",this.df],["SLOT_TYPE_PLAYER_BYTES",this.sf],["SLOT_TYPE_IN_PLAYER",this.Vh]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:this.Xb,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:this.ij.get(),sh:this.Jd,Jf:this.Eb.get()}};
VBa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,null,null)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.ij=Z(function(){return new GZ});
g.I(this,this.ij);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.Dd=Z(function(){return new xY});
g.I(this,this.Dd);this.tf=new fZ(gZ,UZ,function(l,m,n,p){return TX(f.yb.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra);this.Xd=Z(function(){return h});
this.pk=h;this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Om=new QZ(a);g.I(this,this.Om);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.Ln=new SZ(a);g.I(this,this.Ln);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.Vh=Z(function(){return new PZ(f.Tb,f.ra,f.Ga,f.Eb,f.jb,f.Om,f.Ln,f.dc,f.Aa)});
g.I(this,this.Vh);this.sf=Z(function(){return new eZ(a,f.Xb,f.Ga,f.jb,f.Dd,f.bd,f.Fa,f.ra,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.Tw=new TZ(a,this.ij,this.Ra);g.I(this,this.Tw);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cf],["SLOT_TYPE_FORECASTING",this.Cc],
["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Va],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Va],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Om],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ld],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.td],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.rf],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ln]]),uk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",this.uf]]),kk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bf],["SLOT_TYPE_FORECASTING",this.df],["SLOT_TYPE_IN_PLAYER",this.Vh],["SLOT_TYPE_PLAYER_BYTES",this.sf]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:null,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:this.ij.get(),
sh:this.Jd,Jf:this.Eb.get()}};
WBa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,null,null)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.Dd=Z(function(){return new xY});
g.I(this,this.Dd);this.tf=new fZ(gZ,UZ,function(l,m,n,p){return TX(f.yb.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra);this.Xd=Z(function(){return h});
this.pk=h;this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.aG=Z(function(){return new TY(f.Tb,f.ra,f.Ga,f.Eb)});
g.I(this,this.aG);this.sf=Z(function(){return new eZ(a,f.Xb,f.Ga,f.jb,f.Dd,f.bd,f.Fa,f.ra,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cf],["SLOT_TYPE_FORECASTING",this.Cc],["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",
this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ld],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.td],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rf]]),uk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yc],["SLOT_TYPE_ABOVE_FEED",this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",
this.uf]]),kk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bf],["SLOT_TYPE_FORECASTING",this.df],["SLOT_TYPE_IN_PLAYER",this.aG],["SLOT_TYPE_PLAYER_BYTES",this.sf]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:null,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:null,sh:this.Jd,Jf:this.Eb.get()}};
XBa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,null,null)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.Dd=Z(function(){return new xY});
g.I(this,this.Dd);this.tf=new fZ(gZ,UZ,function(l,m,n,p){return TX(f.yb.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra);this.Xd=Z(function(){return h});
this.pk=h;this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.Vh=Z(function(){return new TY(f.Tb,f.ra,f.Ga,f.Eb)});
g.I(this,this.Vh);this.sf=Z(function(){return new eZ(a,f.Xb,f.Ga,f.jb,f.Dd,f.bd,f.Fa,f.ra,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cf],["SLOT_TYPE_FORECASTING",this.Cc],["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",
this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ld],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rf]]),uk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",this.uf]]),kk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bf],["SLOT_TYPE_FORECASTING",
this.df],["SLOT_TYPE_IN_PLAYER",this.Vh],["SLOT_TYPE_PLAYER_BYTES",this.sf]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:null,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:null,sh:this.Jd,Jf:this.Eb.get()}};
VZ=function(a,b,c,d,e,f,h,l){RY.call(this,a,b,c,d,e,f,h);this.bo=l};
YBa=function(a,b,c,d,e){this.Tb=a;this.ra=b;this.Ga=c;this.i=d;this.bo=e};
ZBa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.bo=Z(function(){return new xBa(b)});
g.I(this,this.bo);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,null,null)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.Dd=Z(function(){return new xY});
g.I(this,this.Dd);this.tf=new fZ(oBa,UZ,function(l,m,n,p){var r=f.yb.get(),t=wAa(n);t.push(new CC(n.uK));t.push(new DC(n.wK));return xAa(l,m,n,new OW(t),p,r.Ra.get())},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra);this.Xd=Z(function(){return h});
this.pk=h;this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.sf=Z(function(){return new eZ(a,f.Xb,f.Ga,f.jb,f.Dd,f.bd,f.Fa,f.ra,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.EH=Z(function(){return new YBa(f.Tb,f.ra,f.Ga,f.Eb,f.bo)});
g.I(this,this.EH);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cf],["SLOT_TYPE_FORECASTING",this.Cc],["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",
this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ld],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.td],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rf]]),uk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",this.uf]]),kk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.bf],["SLOT_TYPE_FORECASTING",this.df],["SLOT_TYPE_IN_PLAYER",this.EH],["SLOT_TYPE_PLAYER_BYTES",this.sf]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:null,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:null,sh:this.Jd,Jf:this.Eb.get()}};
$Ba=function(a,b,c,d){this.Tb=a;this.ra=b;this.Ga=c;this.i=d};
aCa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Ra=Z(function(){return new NX});
g.I(this,this.Ra);this.yb=Z(function(){return new SX(f.Aa,f.Ra)});
g.I(this,this.yb);this.Eb=Z(function(){return new MX});
g.I(this,this.Eb);this.sb=Z(function(){return new JX(a)});
g.I(this,this.sb);this.fb=Z(function(){return new dY(f.Ra)});
g.I(this,this.fb);this.Rc=Z(function(){return new gY});
g.I(this,this.Rc);this.Id=Z(function(){return new fJ(b.T())});
g.I(this,this.Id);this.Tb=Z(function(){return new uZ(b)});
g.I(this,this.Tb);this.dc=Z(function(){return new wY(e)});
g.I(this,this.dc);this.Vc=Z(function(){return new VJ(b)});
g.I(this,this.Vc);this.xb=Z(function(){return new iY(b)});
g.I(this,this.xb);this.bd=Z(function(){return new wZ(b)});
g.I(this,this.bd);this.fc=Z(function(){return new jY(b)});
g.I(this,this.fc);this.Aa=Z(function(){return new kY(b)});
g.I(this,this.Aa);this.rd=Z(function(){return new tZ(d,f.Aa)});
g.I(this,this.rd);this.eb=Z(function(){return new UW(f.Aa)});
g.I(this,this.eb);this.xc=Z(function(){return new HX(f.fb,f.yb,f.Aa,f.eb,null,f.Li,3)});
g.I(this,this.xc);this.Nd=Z(function(){return new xZ(b)});
g.I(this,this.Nd);this.dd=Z(function(){return new yZ});
g.I(this,this.dd);this.Fa=Z(function(){return new uY(b,f.Rc)});
g.I(this,this.Fa);this.Cb=new fY(this.Aa,this.eb,this.Fa);g.I(this,this.Cb);this.je=Z(function(){return new EZ(b,f.Fa,f.Aa,f.Ga)});
g.I(this,this.je);this.qe=Z(function(){return new FZ(b)});
g.I(this,this.qe);this.ra=Z(function(){return new vY(b)});
g.I(this,this.ra);this.Dd=Z(function(){return new xY});
this.jb=Z(function(){return new nY(f.ra,b)});
g.I(this,this.jb);this.Ga=Z(function(){return new pY(b,f.Eb,f.jb,f.Fa)});
g.I(this,this.Ga);this.Lb=new uD(this.sb,this.xc,c,this.Aa,a,this.Fa);g.I(this,this.Lb);var h=new hY(b,this.Lb,this.ra,this.je);this.Xd=Z(function(){return h});
this.pk=h;this.tf=new fZ(gZ,UZ,function(l,m,n,p){return TX(f.yb.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Aa,this.Fa);
g.I(this,this.tf);this.Li=new CZ(this.sb,this.fb,this.Fa,this.Xd,this.je,this.ra,this.Aa);g.I(this,this.Li);this.kd=new LX(this.sb,this.fb,this.xb,this.Xd);g.I(this,this.kd);this.Mb=new qC(this.sb,this.fb,this.xc,this.Fa,this.kd,c);g.I(this,this.Mb);this.cf=Z(function(){return new DY(f.rd,f.yb,f.eb,f.qe)});
g.I(this,this.cf);this.Cc=Z(function(){return new EY});
g.I(this,this.Cc);this.Jd=new lZ(a,this.Tb);g.I(this,this.Jd);this.Va=new mZ(a);g.I(this,this.Va);this.Ld=new nZ(a,this.Xd);g.I(this,this.Ld);this.td=new oZ(a,this.xb,this.ra,this.Fa);g.I(this,this.td);this.mn=new DZ(a,this.Fa);g.I(this,this.mn);this.Xb=new qZ(a);g.I(this,this.Xb);this.rf=new rZ(a);g.I(this,this.rf);this.yc=Z(function(){return new hZ});
g.I(this,this.yc);this.uf=Z(function(){return new iZ(f.ra)});
g.I(this,this.uf);this.bf=Z(function(){return new GY(f.Mb)});
g.I(this,this.bf);this.df=Z(function(){return new LY(f.Ga,f.Xb,f.jb)});
g.I(this,this.df);this.sf=Z(function(){return new BZ(a,f.Xb,f.Fa,f.qe,f.ra,f.Ga,f.Rc,f.je,f.jb,f.Dd,f.bd,f.xb,f.Vc,f.fc,f.Id,f.dc,f.Nd,f.Aa)});
g.I(this,this.sf);this.Vh=Z(function(){return new $Ba(f.Tb,f.ra,f.Ga,f.Eb)});
g.I(this,this.Vh);this.li=new sZ(a,this.dd,this.eb,this.Fa,this.Aa,this.Ra);g.I(this,this.li);this.hd={xn:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Li],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.tf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Lb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kd]]),Zj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cf],["SLOT_TYPE_FORECASTING",this.Cc],
["SLOT_TYPE_IN_PLAYER",this.Cc],["SLOT_TYPE_PLAYER_BYTES",this.Cc]]),Wg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Jd],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ld],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.td],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.td],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.mn],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.mn],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ld],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.rf]]),uk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.yc],["SLOT_TYPE_FORECASTING",this.yc],["SLOT_TYPE_IN_PLAYER",this.yc],["SLOT_TYPE_PLAYER_BYTES",this.uf]]),kk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bf],["SLOT_TYPE_FORECASTING",this.df],["SLOT_TYPE_PLAYER_BYTES",this.sf],["SLOT_TYPE_IN_PLAYER",this.Vh]])};this.listeners=[this.Eb.get()];this.de={Mb:this.Mb,Gi:null,mk:this.dd.get(),Ge:this.Aa.get(),Jl:this.ra.get(),Lb:this.Lb,lk:null,sh:this.Jd,Jf:this.Eb.get()}};
WZ=function(a,b,c,d){g.E.call(this);var e=this;this.i=bCa(function(){return e.l},a,b,c,d);
g.I(this,this.i);this.l=(new tX(this.i)).u();g.I(this,this.l)};
bCa=function(a,b,c,d,e){try{var f=b.T();if(g.qG(f))var h=new UBa(a,b,c,d,e);else if(g.uG(f))h=new VBa(a,b,c,d,e);else if(vG(f))h=new XBa(a,b,c,d,e);else if(gG(f))h=new WBa(a,b,c,d,e);else if(tG(f))h=new ZBa(a,b,c,d,e);else if(g.XF(f))h=new aCa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),tD("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,D3:e.deviceParams.cver,C3:e.deviceParams.ctheme,
B3:e.deviceParams.cplayer,P3:e.playerStyle}),new UAa(a,b,c,d)}};
XZ=function(a,b,c,d){this.i=a;this.Gi=b;this.l=c;this.Ge=d};
YZ=function(a){xL.call(this,a)};
ZZ=function(a,b,c,d,e){yL.call(this,a,b,{D:"div",K:"ytp-ad-timed-pie-countdown-container",S:[{D:"svg",K:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{D:"circle",K:"ytp-ad-timed-pie-countdown-background",U:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-inner",U:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-outer",U:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.ha("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
this.hide()};
$Z=function(a,b){g.R.call(this);this.api=a;this.durationMs=b;this.i=null;this.Sd=new Nt(this);g.I(this,this.Sd);this.l=Ooa;this.Sd.N(this.api,"presentingplayerstatechange",this.Wb);this.i=this.Sd.N(this.api,"onAdPlaybackProgress",this.Ab)};
a_=function(a,b,c,d,e,f){$K.call(this,a,b,{D:"div",K:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{D:"div",K:"ytp-ad-action-interstitial-background-container"},{D:"div",K:"ytp-ad-action-interstitial-slot",S:[{D:"div",K:"ytp-ad-action-interstitial-card",S:[{D:"div",K:"ytp-ad-action-interstitial-image-container"},{D:"div",K:"ytp-ad-action-interstitial-headline-container"},{D:"div",K:"ytp-ad-action-interstitial-description-container"},{D:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.dA=e;this.ev=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.ma=this.ha("ytp-ad-action-interstitial-image-container");this.C=new tL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.I(this,this.C);this.C.fa(this.ma);this.la=this.ha("ytp-ad-action-interstitial-headline-container");this.Y=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.I(this,this.Y);this.Y.fa(this.la);
this.ga=this.ha("ytp-ad-action-interstitial-description-container");this.L=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.I(this,this.L);this.L.fa(this.ga);this.Ca=this.ha("ytp-ad-action-interstitial-background-container");this.I=new tL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.I(this,this.I);this.I.fa(this.Ca);this.za=this.ha("ytp-ad-action-interstitial-action-button-container");this.B=new Nt;g.I(this,this.B);this.hide()};
cCa=function(a){var b=g.we("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
b_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.l=this.ha("ytp-ad-text-interstitial");this.messageText=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-text-interstitial-message");g.I(this,this.messageText);this.messageText.fa(this.l);this.hide()};
dCa=function(a){var b=g.we("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
c_=function(a){return g.U(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
d_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-overlay-slot",S:[{D:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.L=[];this.Pa=this.ga=this.C=this.La=this.za=null;this.Ca=!1;this.I=null;this.Y=0;a=this.ha("ytp-ad-overlay-container");this.ma=new TL(a,45E3,6E3,.3,.4);g.I(this,this.ma);c_(this.api)||(this.la=new g.M(this.clear,45E3,this),g.I(this,this.la));this.B=eCa(this);g.I(this,this.B);this.B.fa(a);this.u=fCa(this);g.I(this,this.u);this.u.fa(a);this.l=gCa(this);g.I(this,
this.l);this.l.fa(a);this.hide()};
eCa=function(a){var b=new g.ZK({D:"div",K:"ytp-ad-text-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[mL(e_)]}]},{D:"div",K:"ytp-ad-overlay-title",ba:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ba:"{{description}}"},{D:"div",ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ba:"{{displayUrl}}"}]});a.N(b.ha("ytp-ad-overlay-title"),"click",function(c){return f_(a,b.element,
c)});
a.N(b.ha("ytp-ad-overlay-link"),"click",function(c){return f_(a,b.element,c)});
a.N(b.ha("ytp-ad-overlay-close-container"),"click",a.lj);b.hide();return b};
fCa=function(a){var b=new g.ZK({D:"div",ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[mL(e_)]}]},{D:"div",K:"ytp-ad-overlay-text-image",S:[{D:"img",U:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",ba:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ba:"{{description}}"},{D:"div",ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ba:"{{displayUrl}}"}]});a.N(b.ha("ytp-ad-overlay-title"),"click",function(c){return f_(a,b.element,c)});
a.N(b.ha("ytp-ad-overlay-link"),"click",function(c){return f_(a,b.element,c)});
a.N(b.ha("ytp-ad-overlay-close-container"),"click",a.lj);a.N(b.ha("ytp-ad-overlay-text-image"),"click",a.kP);b.hide();return b};
gCa=function(a){var b=new g.ZK({D:"div",K:"ytp-ad-image-overlay",S:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",S:[{D:"button",K:"ytp-ad-overlay-close-button",S:[mL(e_)]}]},{D:"div",K:"ytp-ad-overlay-image",S:[{D:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.ha("ytp-ad-overlay-image"),"click",function(c){return f_(a,b.element,c)});
a.N(b.ha("ytp-ad-overlay-close-container"),"click",a.lj);b.hide();return b};
g_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.ro(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.we("video-ads ytp-ad-module")||null;null==d?g.ro(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.ga=new g.ZK({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.I(a,a.ga),a.ga.fa(d),d=new KL(a.api,a.Da,a.layoutId,a.i,a.ga.element,!1),g.I(a,d),d.init(dJ("ad-info-hover-text-button"),c,a.macros),
a.I?(d.fa(a.I,0),d.subscribe("h",a.zM,a),d.subscribe("g",a.uz,a),a.N(a.I,"click",a.AM),c=g.we("ytp-ad-button",d.element),a.N(c,"click",a.yM),a.Pa=d):g.ro(Error("Ad info button container within overlay ad was not present.")))}}else to(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
hCa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
iCa=function(a,b){if(h_(a,i_)||a.api.me())return!1;var c=aL(b.title),d=aL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Jg(a.B.element,b.trackingParams||null);a.B.Ba("title",aL(b.title));a.B.Ba("description",aL(b.description));a.B.Ba("displayUrl",aL(b.displayUrl));b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);a.B.show();a.ma.start();a.Qa(a.B.element,!0);c_(a.api)||(a.N(a.api,"resize",function(){return a.Ta(i_)}),a.N(a.api,"minimized",a.Rg));
a.N(a.B.element,"mouseover",function(){a.Y++});
return!0};
jCa=function(a,b){if(h_(a,i_)||a.api.me())return!1;var c=aL(b.title),d=aL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Jg(a.u.element,b.trackingParams||null);a.u.Ba("title",aL(b.title));a.u.Ba("description",aL(b.description));a.u.Ba("displayUrl",aL(b.displayUrl));a.u.Ba("imageUrl",rma(b.image));b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);a.La=b.imageNavigationEndpoint||null;a.u.show();a.ma.start();a.Qa(a.u.element,!0);c_(a.api)||a.N(a.api,"resize",function(){return a.Ta(i_)});
a.N(a.u.element,"mouseover",function(){a.Y++});
return!0};
kCa=function(a,b){if(a.api.me())return!1;var c=sma(b.image),d=c;c.width<i_.width&&(d=i_);if(0===c.width||0===c.height||h_(a,d))return!1;a.Jg(a.l.element,b.trackingParams||null);a.l.Ba("imageUrl",rma(b.image));a.l.Ba("width",c.width);a.l.Ba("height",c.height);b.navigationEndpoint&&pb(a.L,b.navigationEndpoint);d=a.l.ha("ytp-ad-image-overlay");g.mg(d,"max-width",c.width+"px");a.l.show();a.Qa(a.l.element,!0);c_(a.api)||(a.la.start(),a.N(a.api,"resize",function(){return a.Ta(c)}));
a.N(a.l.element,"mouseover",function(){a.Y++;c_(a.api)?a.api.iz("invideo-overlay",a.layoutId):a.la.stop()});
a.N(a.l.element,"mouseout",function(){c_(a.api)?a.api.hz("invideo-overlay",a.layoutId):a.la.start()});
return!0};
h_=function(a,b){var c=a.api.Ka().Vf(),d=a.api.Vi(!0,!1);return(c=LZ(c,c.height-(d.height+d.top),b))?(a.za&&c&&(d=g.Vb(a.macros),d.ERRORCODE=c.ys.toString(),d.ERROR_MSG=c.errorMessage,a.Da.executeCommand(a.za,d)),!0):!1};
f_=function(a,b,c){var d=g.Vb(a.macros),e=g.Eg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Cg(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.Y.toString()}};
a.L.forEach(function(h){return a.Da.executeCommand(h,d)});
a.api.pauseVideo()};
lCa=function(a,b){var c=a.api.getRootNode();g.O(c,"ytp-ad-overlay-open",b);g.O(c,"ytp-ad-overlay-closed",!b)};
j_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d);this.l=null;this.toggledLoggingParams="";this.answer=this.ha("ytp-ad-survey-answer");this.hide()};
k_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.l=this.ha("ytp-ad-survey-none-of-the-above");this.hide()};
l_=function(a,b,c,d){nL.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
m_=function(a,b,c,d,e){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey-player-overlay",S:[{D:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{D:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.B=e;this.u=this.l=null;this.C=this.ha("ytp-ad-survey-player-overlay-instream-info");
this.I=this.ha("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.ha("ytp-ad-survey-player-overlay-submit");g.I(this,this.B);this.hide()};
n_=function(a,b,c,d,e){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey-question",S:[{D:"div",ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",K:"ytp-ad-survey-question-background"}]},e,c,d);this.C=null;this.u=[];this.l=null;this.question=this.ha("ytp-ad-survey-question");this.L=this.ha("ytp-ad-survey-question-background");
this.questionText=this.ha("ytp-ad-survey-question-text");this.answers=this.ha("ytp-ad-survey-answers");this.playerOverlay=this.ha("ytp-ad-survey-question-player-overlay");this.B=g.Sa()};
mCa=function(a,b,c){var d=new j_(a.api,a.Da,a.layoutId,a.i);d.fa(a.answers);d.init(dJ("survey-answer"),b,c);a.u.push(d)};
oCa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&sL(c)||"",g.rc(c)?to(Error("Found ThumbnailDetails without valid image URL")):g.mg(a.L,"backgroundImage","url("+c+")"));nCa(a,b)}else g.ro(Error("addCommonComponents() needs to be called before starting countdown."))};
nCa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.ro(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Sa();a.l=new DL(b.durationMilliseconds,a.Da);g.I(a,a.l);if(b.timeoutCommands){var c=b.timeoutCommands;a.l.subscribe("a",function(){c.forEach(function(e){return a.Da.executeCommand(e,a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new m_(a.api,a.Da,a.layoutId,a.i,a.l);
d.fa(a.playerOverlay);d.init(dJ("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.I(a,d);a.zG()}catch(e){g.ro(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.ro(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new dM(a.api,a.l),d.fa(a.playerOverlay),g.I(a,d)):g.ro(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
pCa=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()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Sa()-a.B).toString()})};
o_=function(a,b,c,d){n_.call(this,a,b,c,d,"survey-question-multi-select");this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
qCa=function(a,b,c){a.noneOfTheAbove=new k_(a.api,a.Da,a.layoutId,a.i);a.noneOfTheAbove.fa(a.answers);a.noneOfTheAbove.init(dJ("survey-none-of-the-above"),b,c)};
rCa=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
p_(a,!0)};
p_=function(a,b){var c=a.C,d=sCa(a),e=b;e=void 0===e?!1:e;c.l&&(d?c.l.hide():c.l.show(),e&&c.l instanceof VL&&!c.l.L&&WL(c.l,!1));c.u&&(d?c.u.show():c.u.hide())};
sCa=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.noneOfTheAbove.button.isToggled()};
q_=function(a,b,c,d){n_.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
r_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey",S:[{D:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d);this.questions=[];this.l=this.ha("ytp-ad-survey-questions");this.hide()};
s_=function(a,b,c,d){$K.call(this,a,b,{D:"div",K:"ytp-ad-survey-interstitial",S:[{D:"div",K:"ytp-ad-survey-interstitial-contents",S:[{D:"div",K:"ytp-ad-survey-interstitial-logo",S:[{D:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.l=this.actionButton=null;this.interstitial=this.ha("ytp-ad-survey-interstitial");this.u=this.ha("ytp-ad-survey-interstitial-contents");this.text=this.ha("ytp-ad-survey-interstitial-text");
this.logoImage=this.ha("ytp-ad-survey-interstitial-logo-image");this.transition=new g.LL(this,500,!1,300);g.I(this,this.transition)};
tCa=function(a,b,c){c=c.dismissCommands;var d=b.target===a.interstitial;b=a.actionButton.element.contains(b.target);if(d||b)a.transition.hide(),d&&c.forEach(function(e){return a.Da.executeCommand(e,a.macros)})};
uCa=function(a,b){var c=b&&sL(b)||"";if(g.rc(c))to(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.Be&&10>document.documentMode)d=Sc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Ie("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Lda(e.style)}c=Kaa(d,Tc({"background-image":'url("'+c+'")'}));a.style.cssText=Pc(c)}};
vCa=function(a){var b=g.we("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
t_=function(a,b){xL.call(this,a);this.api=a;this.l={};this.C=b;var c=new g.X({D:"div",ka:["video-ads","ytp-ad-module"]});g.I(this,c);NF&&g.N(c.element,"ytp-ads-tiny-mode");this.B=new TK(c.element);g.I(this,this.B);g.VM(this.api,c.element,4);g.I(this,Ima())};
wCa=function(a,b){var c=Rb(a.l,b.id,null);null==c&&to(Error("Component not found for element id: "+b.id));return c||null};
u_=function(a){g.eN.call(this,a);var b=this;this.Rj=this.Da=null;this.created=!1;this.Mk=new wK(this.player);this.qq=function(){function d(){return b.Da}
if(null!=b.Rj)return b.Rj;var e=zla({TC:a.getVideoData(1)});e=new Zya({vK:new XZ(function(){return b.Da},b.Pd.i.de.Gi,b.Pd.u(),b.Pd.i.de.Ge),
cq:e.eL(),DK:d,rM:d,sh:b.Pd.i.de.sh,ji:e.gy(),G:b.player,Ge:b.Pd.i.de.Ge,Ga:b.Pd.i.Ga,Jf:b.Pd.i.de.Jf,fc:b.Pd.i.fc});b.Rj=e.Rj;return b.Rj};
this.Pd=new WZ(this.player,this,this.Mk,this.qq);g.I(this,this.Pd);var c=a.T();!dG(c)||g.XF(c)||gG(c)||(g.I(this,new t_(a,function(){return b.Da})),g.I(this,new YZ(a)))};
xCa=function(a){a.Da?a.Pd.i.de.Lb.wy()||a.Da.wy()||a.Pd.i.de.Jl.Yk():tD("AdService is null when calling maybeUnlockPrerollIfReady")};
yCa=function(a){a=g.q(a.Pd.i.de.Jf.si.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Ya&&"core"===b.Sa)return!0;return!1};
sC=function(a,b,c){c=void 0===c?"":c;var d=a.Pd.i.de.Ge,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=zCa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);fha(a.Pd.i.de.Mb,c,d.bp,b);a.Da&&0<d.Km.length&&(a=a.Da,b=d.Km,b=$la(a,b),b=ama(a,b),OK(a,b))};
zCa=function(a,b,c){var d={Km:[],bp:[]};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||null!=f.clientForecastingAdRenderer||null!=f.actionCompanionAdRenderer||null!=f.imageCompanionAdRenderer||null!=f.shoppingCompanionCarouselRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h||(null!=f.invideoOverlayAdRenderer?g.U(l.G.T().experiments,
"html5_enable_in_video_overlay_ad_in_pacf"):null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer?g.sG(l.G.T())?0:dG(l.G.T())&&g.U(l.G.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds?f.linearAdSequenceRenderer.adStart?0:g.sG(l.G.T())?0:dG(l.G.T())&&g.U(l.G.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf"):null!=f.instreamSurveyAdRenderer?f.instreamSurveyAdRenderer.controlflowEnabled:null!=f.sandwichedLinearAdRenderer&&
null!=f.sandwichedLinearAdRenderer.linearAd&&null!=f.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer&&f.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled)?d.bp.push(e):d.Km.push(e)}return d};
ACa=function(){if(!g.Be)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.v_=function(a){if("undefined"!=typeof DOMParser)return pd(new DOMParser,jg(a),"application/xml");if(BCa){var 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.w_=function(a){g.E.call(this);this.l=a;this.i={}};
CCa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)CCa(a,b,c[h],d,e,f);else{b=Kl(b,c,d||a.handleEvent,e,f||a.l||a);if(!b)return a;a.i[b.key]=b}return a};
g.DCa=function(a){g.Cb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Tl(b)},a);
a.i={}};
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=gaa(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.i=e;fa(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d=0;return b});
ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},ECa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),x_;
if("function"==typeof Object.setPrototypeOf)x_=Object.setPrototypeOf;else{var y_;a:{var FCa={a:!0},GCa={};try{GCa.__proto__=FCa;y_=GCa.a;break a}catch(a){}y_=!1}x_=y_?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=x_;
pa.prototype.L=function(a){this.l=a};
pa.prototype["return"]=function(a){this.u={"return":a};this.i=this.C};
pa.prototype.Pb=function(a){this.i=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return ECa});
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=ya(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 za(this,b,c).BH}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=ya(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=ya(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 HCa="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)Aa(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||HCa});
ha("Promise",function(a){function b(h){this.Ma=0;this.Ql=void 0;this.i=[];this.C=!1;var l=this.l();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.l=function(h){if(null==this.i){this.i=[];var l=this;this.u(function(){l.C()})}this.i.push(h)};
var e=ea.setTimeout;c.prototype.u=function(h){e(h,0)};
c.prototype.C=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.B(n)}}}this.i=null};
c.prototype.B=function(h){this.u(function(){throw h;})};
b.prototype.l=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.u)}};
b.prototype.X=function(h){if(h===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.ca(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.W(h):this.B(h)}};
b.prototype.W=function(h){var l=void 0;try{l=h.then}catch(m){this.u(m);return}"function"==typeof l?this.ea(l,h):this.B(h)};
b.prototype.u=function(h){this.I(2,h)};
b.prototype.B=function(h){this.I(1,h)};
b.prototype.I=function(h,l){if(0!=this.Ma)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Ma);this.Ma=h;this.Ql=l;2===this.Ma&&this.Y();this.J()};
b.prototype.Y=function(){var h=this;e(function(){if(h.L()){var l=ea.console;"undefined"!==typeof l&&l.error(h.Ql)}},1)};
b.prototype.L=function(){if(this.C)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.Ql;return m(h)};
b.prototype.J=function(){if(null!=this.i){for(var h=0;h<this.i.length;++h)f.l(this.i[h]);this.i=null}};
var f=new c;b.prototype.ca=function(h){var l=this.l();h.it(l.resolve,l.reject)};
b.prototype.ea=function(h,l){var m=this.l();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.it(m(h,n),m(l,p));return r};
b.prototype["catch"]=function(h){return this.then(void 0,h)};
b.prototype.it=function(h,l){function m(){switch(n.Ma){case 1:h(n.Ql);break;case 2:l(n.Ql);break;default:throw Error("Unexpected state: "+n.Ma);}}
var n=this;null==this.i?f.l(m):this.i.push(m);this.C=!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).it(l,m)})};
b.all=function(h){var l=g.q(h),m=l.next();return m.done?d([]):new b(function(n,p){function r(x){return function(y){t[x]=y;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).it(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return za(this,b,c).cu}});
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!==ya(this,b,"includes").indexOf(b,c||0)}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Aa(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",Ba);ha("Uint8Array.prototype.fill",Ba);ha("Uint8ClampedArray.prototype.fill",Ba);ha("Int16Array.prototype.fill",Ba);ha("Uint16Array.prototype.fill",Ba);ha("Int32Array.prototype.fill",Ba);ha("Uint32Array.prototype.fill",Ba);ha("Float32Array.prototype.fill",Ba);ha("Float64Array.prototype.fill",Ba);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.entries",function(a){return a?a:function(){return Ca(this,function(b,c){return[b,c]})}});
ha("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
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.i=(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(!Aa(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(!Aa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&Aa(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&Aa(m,h)&&Aa(m[h],this.i)};
b.prototype["delete"]=function(m){return d(m)&&Aa(m,h)&&Aa(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ia(function(){if(n){for(;n.head!=l.i;)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.l[n];if(p&&Aa(l.l,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,Rf:t}}return{id:n,list:p,index:-1,Rf:void 0}}
function e(l){this.l={};this.i=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.l[n.id]=[]);n.Rf?n.Rf.value=m:(n.Rf={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.Rf),this.i.previous.next=n.Rf,this.i.previous=n.Rf,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.Rf&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.l[l.id],l.Rf.previous.next=l.Rf.next,l.Rf.next.previous=l.Rf.previous,l.Rf.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.l={};this.i=this.i.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Rf};
e.prototype.get=function(l){return(l=d(this,l).Rf)&&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.i=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.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.i.set(c,c);this.size=this.i.size;return this};
b.prototype["delete"]=function(c){c=this.i["delete"](c);this.size=this.i.size;return c};
b.prototype.clear=function(){this.i.clear();this.size=0};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.entries=function(){return this.i.entries()};
b.prototype.values=function(){return this.i.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.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)Aa(b,d)&&c.push(b[d]);return c}});
ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
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.i=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.i.set(c,!0);return this};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype["delete"]=function(c){return this.i["delete"](c)};
return b});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=ya(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}});
g.z_=g.z_||{};g.A=this||self;kaa=/^[\w+/_-]+[=]{0,2}$/;Fa=null;Oa="closure_uid_"+(1E9*Math.random()>>>0);laa=0;g.Ta(Wa,Error);Wa.prototype.name="CustomError";var pe;g.Ta(Xa,Wa);Xa.prototype.name="AssertionError";var eb,gh,ai;eb=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.ICa=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.Ab=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.Ne=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.Qc=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};
gh=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Ab)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ai=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.fh=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 JCa={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.Zi=!0;ec.prototype.Mg=function(){return this.i};
var dc={},cc={};var hc={};ic.prototype.Mg=function(){return this.i.toString()};
ic.prototype.toString=function(){return this.i.toString()};var Oda,Nda,Mda,Pda;Oda=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.KCa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.LCa=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.un=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]");Nda=/^http:\/\/.*/;Mda=/\s+/;Pda=/[\d\u06f0-\u06f9]/;g.k=kc.prototype;g.k.Zi=!0;g.k.Mg=function(){return this.i.toString()};
g.k.Ay=!0;g.k.zo=function(){return 1};
g.k.toString=function(){return this.i+""};
var Aaa=/%{(\w+)}/g,zaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,jc={};var Cc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},sc=/&/g,tc=/</g,uc=/>/g,vc=/"/g,wc=/'/g,zc=/\x00/g,Caa=/[\x00&<>"']/;g.k=g.Gc.prototype;g.k.Zi=!0;g.k.Mg=function(){return this.i.toString()};
g.k.Ay=!0;g.k.zo=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var Eaa=/^(?: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,Daa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Jc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Fc={},Kc=new g.Gc("about:invalid#zClosurez",Fc);Oc.prototype.Zi=!0;Oc.prototype.Mg=function(){return this.i};
Oc.prototype.toString=function(){return this.i.toString()};
var Nc={},Sc=new Oc("",Nc),Gaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Vc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Uc=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"),Haa=/\/\*/;a:{var MCa=g.A.navigator;if(MCa){var NCa=MCa.userAgent;if(NCa){g.Wc=NCa;break a}}g.Wc=""};g.k=fd.prototype;g.k.Ay=!0;g.k.zo=function(){return this.l};
g.k.Zi=!0;g.k.Mg=function(){return this.i.toString()};
g.k.toString=function(){return this.i.toString()};
var OCa=/^[a-zA-Z0-9-]+$/,PCa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},QCa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ed={},jd=new fd(g.A.trustedTypes&&g.A.trustedTypes.emptyHTML||"",0,ed);var Oaa=Za(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.gd(jd);return!b.parentElement});g.RCa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Ad=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Rd=/#|$/,Qaa=/[?&]($|#)/;Xd[" "]=g.Ia;var og,XS,Pya,SCa,TCa,UCa,MF,NF,A_;g.pg=Xc("Opera");g.Be=Xc("Trident")||Xc("MSIE");g.Fs=Xc("Edge");g.xG=g.Fs||g.Be;og=Xc("Gecko")&&!(Bc(g.Wc,"WebKit")&&!Xc("Edge"))&&!(Xc("Trident")||Xc("MSIE"))&&!Xc("Edge");g.De=Bc(g.Wc,"WebKit")&&!Xc("Edge");XS=Xc("Macintosh");Pya=Xc("Windows");g.lq=Xc("Android");SCa=Vd();TCa=Xc("iPad");UCa=Xc("iPod");MF=Wd();NF=Bc(g.Wc,"KaiOS");
a:{var B_="",C_=function(){var a=g.Wc;if(og)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Fs)return/Edge\/([\d\.]+)/.exec(a);if(g.Be)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.De)return/WebKit\/(\S+)/.exec(a);if(g.pg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
C_&&(B_=C_?C_[1]:"");if(g.Be){var D_=$d();if(null!=D_&&D_>parseFloat(B_)){A_=String(D_);break a}}A_=B_}var be=A_,Saa={},E_;if(g.A.document&&g.Be){var VCa=$d();E_=VCa?VCa:parseInt(be,10)||void 0}else E_=void 0;var Taa=E_;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Uaa=!g.Be||g.de(9),Vaa=!og&&!g.Be||g.Be&&g.de(9)||og&&g.ce("1.9.1");g.Be&&g.ce("9");var Xaa=g.Be||g.pg||g.De;g.k=g.ie.prototype;g.k.clone=function(){return new g.ie(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.ke.prototype;g.k.clone=function(){return new g.ke(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!me(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 xe={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=ne.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.ha=function(a){return g.we(a,this.i)};
g.k.createElement=function(a){return Fe(this.i,a)};
g.k.createTextNode=function(a){return this.i.createTextNode(String(a))};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Ge(oe(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.Me;g.k.contains=g.Pe;g.zf=0;g.Af=0;$e.prototype.clone=function(){return bf(this.l,this.B,this.u-this.B)};
$e.prototype.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1};
$e.prototype.reset=function(){this.i=this.B};
$e.prototype.advance=function(a){this.i+=a};
var af=[];ff.prototype.reset=function(){this.i.reset();this.l=this.u=-1};
ff.prototype.advance=function(a){this.i.advance(a)};nf.prototype.length=function(){return this.i.length};
nf.prototype.end=function(){var a=this.i;this.i=[];return a};var WF,qI;g.oF=Yc();WF=Vd()||Xc("iPod");qI=Xc("iPad");g.OF=Xc("Android")&&!(cd()||Yc()||Xc("Opera")||Xc("Silk"));g.DA=cd();g.Zr=dd()&&!Wd();var rf={},vf=null;g.wf.prototype.reset=function(){this.u=[];this.i.end();this.l=0};var Ef="function"==typeof Uint8Array,Ff=[];g.Df.prototype.toString=function(){return g.Of(this).toString()};
g.Df.prototype.clone=function(){return aba(this)};var zi;zi=["av.key","js","unreleased"].slice(-1)[0];var Ig=document,Zg=window;var bba=Za(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.A.addEventListener("test",null,b)}catch(c){}return a});var eba=/https?:\/\/[^\/]+/,cba={BR:"allow-forms",CR:"allow-modals",DR:"allow-orientation-lock",ER:"allow-pointer-lock",FR:"allow-popups",GR:"allow-popups-to-escape-sandbox",HR:"allow-presentation",IR:"allow-same-origin",JR:"allow-scripts",KR:"allow-top-navigation",LR:"allow-top-navigation-by-user-activation"},hba=Za(function(){return dba()});g.k=$f.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new $f(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof $f?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.cg.prototype;g.k.clone=function(){return new g.cg(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ie?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.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
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 ig=g.Ia;var ng={};var Gg=!!window.google_async_iframe_id,Hg=Gg&&window.parent||window;var Uba={NONE:0,VU:1};Mg.prototype.isVisible=function(){return this.jn?.3<=this.zc:.5<=this.zc};var ph={HS:0,jV:1},oh={NONE:0,oW:1,GV:2};Ng.prototype.getValue=function(){return this.l};
g.u(Og,Ng);Og.prototype.setValue=function(a){if(null!==this.l||!g.Mb(this.u,a))return!1;this.l=a;return!0};
g.u(Pg,Ng);Pg.prototype.setValue=function(a){if(null!==this.l||"number"!==typeof a)return!1;this.l=a;return!0};
g.u(Qg,Ng);Qg.prototype.setValue=function(a){if(null!==this.l||"string"!==typeof a)return!1;this.l=a;return!0};Rg.prototype.disable=function(){this.l=!1};
Rg.prototype.enable=function(){this.l=!0};
Rg.prototype.isEnabled=function(){return this.l};
Rg.prototype.reset=function(){this.i={};this.l=!0;this.u={}};var Vba=!g.Be&&!dd();Wg.prototype.now=function(){return 0};
Wg.prototype.l=function(){return 0};
Wg.prototype.u=function(){return 0};
Wg.prototype.i=function(){return 0};g.u(Yg,Wg);Yg.prototype.now=function(){return Xg()&&Zg.performance.now?Zg.performance.now():Wg.prototype.now.call(this)};
Yg.prototype.l=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.totalJSHeapSize||0:Wg.prototype.l.call(this)};
Yg.prototype.u=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.usedJSHeapSize||0:Wg.prototype.u.call(this)};
Yg.prototype.i=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.jsHeapSizeLimit||0:Wg.prototype.i.call(this)};ah.prototype.isVisible=function(){return 1===$g(Ig)};var rba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;hh.prototype.setInterval=function(a,b){return Zg.setInterval(a,b)};
hh.prototype.clearInterval=function(a){Zg.clearInterval(a)};
hh.prototype.setTimeout=function(a,b){return Zg.setTimeout(a,b)};
hh.prototype.clearTimeout=function(a){Zg.clearTimeout(a)};
Ja(hh);lh.prototype.getContext=function(){if(!this.i){if(!Zg)throw Error("Context has not been set and window is undefined.");this.i=hh.getInstance()}return this.i};
Ja(lh);g.Ta(mh,g.Df);var Aba={S_:1,oK:2,vZ:3};oc(fc(g.gc("https://pagead2.googlesyndication.com/pagead/osd.js")));qh.prototype.Bz=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.l){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.i[e])&&e.setValue(d)}}}};
Ja(qh);var F_=null;var wh=g.A.performance,WCa=!!(wh&&wh.mark&&wh.measure&&wh.clearMarks),uh=Za(function(){var a;if(a=WCa){var b;if(null===F_){F_="";try{a="";try{a=g.A.top.location.hash}catch(c){a=g.A.location.hash}a&&(F_=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=F_;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
vh.prototype.disable=function(){this.i=!1;this.events!=this.l.google_js_reporting_queue&&(uh()&&g.Ab(this.events,Ah),this.events.length=0)};
vh.prototype.start=function(a,b){if(!this.i)return null;var c=new Cba(a,b),d="goog_"+c.label+"_"+c.uniqueId+"_start";wh&&uh()&&wh.mark(d);return c};
vh.prototype.end=function(a){if(this.i&&"number"===typeof a.value){a.duration=(th()||sh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";wh&&uh()&&wh.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Dh.prototype.Xy=function(a,b,c,d,e){e=e||this.kD;try{var f=new eg;f.i.push(1);f.l[1]=fg("context",a);b.error&&b.meta&&b.id||(b=new Eh(Fh(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.l[2]=fg("msg",h)}var l=b.meta||{};if(this.Vw)try{this.Vw(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.l[3]=b;var m=dh();if(m.l){var n=m.l.url||"";f.i.push(4);f.l[4]=fg("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?Dd(m.i.url):""}];f.i.push(5);f.l[5]=p;rh(this.i,e,f,!1,c)}catch(r){try{rh(this.i,
e,{context:"ecmserr",rctx:a,msg:Fh(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.gA};
g.u(Eh,Qf);var Ch,Hh,Bh=new vh;(function(){Ch=new Bba;Hh=new Dh;var a=Jg();a&&a.document&&("complete"==a.document.readyState?Jh():Bh.i&&Tf(a,"load",function(){Jh()}))})();var Eba=Date.now(),Qh=-1,Oh=-1,Aj,Rh=-1,Ph=!1;var Uk={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},wj={jK:"start",TH:"firstquartile",fK:"midpoint",lK:"thirdquartile",OH:"complete",eK:"metric",PAUSE:"pause",hK:"resume",iK:"skip",nK:"viewable_impression",gK:"mute",mK:"unmute",UH:"fullscreen",SH:"exitfullscreen",NH:"bufferstart",MH:"bufferfinish",VH:"fully_viewable_audible_half_duration_impression",dK:"measurable_impression",KH:"abandon",RH:"engagedview",WH:"impression",PH:"creativeview",cK:"loaded",Y_:"progress",CLOSE:"close",
xS:"collapse",p_:"overlay_resize",q_:"overlay_unmeasurable_impression",r_:"overlay_unviewable_impression",t_:"overlay_viewable_immediate_impression",s_:"overlay_viewable_end_of_session_impression",QH:"custom_metric_viewable",k_:"verification_debug"},hda="start firstquartile midpoint thirdquartile resume loaded".split(" "),ida=["start","firstquartile","midpoint","thirdquartile"],kca=["abandon"],nk={UNKNOWN:-1,jK:0,TH:1,fK:2,lK:3,OH:4,eK:5,PAUSE:6,hK:7,iK:8,nK:9,gK:10,mK:11,UH:12,SH:13,VH:14,dK:15,
KH:16,RH:17,WH:18,PH:19,cK:20,QH:21,NH:22,MH:23};var Gba={pR:"addEventListener",IV:"getMaxSize",JV:"getScreenSize",KV:"getState",LV:"getVersion",m0:"removeEventListener",vW:"isViewable"};if(Ig&&Ig.URL){var XCa,Zf=Ig.URL;XCa=!!Zf&&0<gba().length;Hh.gA=!XCa};bi.prototype.update=function(a){a&&a.document&&(this.J=Lg(!1,a,this.isMobileDevice),this.i=Lg(!0,a,this.isMobileDevice),di(this,a),ci(this,a))};
Ja(bi);fi.prototype.cancel=function(){ih().clearTimeout(this.i);this.i=null};
fi.prototype.schedule=function(){var a=this;this.i=ih().setTimeout(nh(qh.getInstance().i.i,Lh(143,function(){a.l++;a.u.eB()})),Fba())};g.k=gi.prototype;g.k.cB=function(){return this.Fs()};
g.k.Fs=function(){return!1};
g.k.initialize=function(){return this.be=!0};
g.k.Ao=function(){return this.i.ea};
g.k.er=function(){return this.i.W};
g.k.getName=function(){return this.i.ma};
g.k.ll=function(){return this.i.GD()};
g.k.GD=function(){return{}};
g.k.dk=function(){return this.i.J};
g.k.aB=function(){var a=bi.getInstance();a.i=Lg(!0,this.Of,a.isMobileDevice)};
g.k.bB=function(){ci(bi.getInstance(),this.Of)};
g.k.XH=function(){di(bi.getInstance(),this.Of)};
g.k.OD=function(){return this.u.i};
g.k.eB=function(){};
g.k.isActive=function(){return this.i.C};
g.k.Ho=function(a){var b=this.i,c=a.dk();this.i=c>=this.J?a:this;b!==this.i?(this.C=this.i.C,hi(this)):this.C!==this.i.C&&(this.C=this.i.C,hi(this))};
g.k.vl=function(a){if(a.l===this.i){var b;if(!(b=this.la)){b=this.u;var c=this.L;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.u==a.u)b=b.i,c=a.i,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.u=a;b&&mi(this)}};
g.k.uj=function(){return this.L};
g.k.dispose=function(){this.ca=!0};
g.k.na=function(){return this.ca};g.k=ni.prototype;g.k.Yv=function(){return!0};
g.k.Mp=function(){};
g.k.dispose=function(){if(!this.na()){var a=this.l;g.kb(a.B,this);a.L&&this.uj()&&li(a);this.Mp();this.X=!0}};
g.k.na=function(){return this.X};
g.k.ll=function(){return this.l.ll()};
g.k.dk=function(){return this.l.dk()};
g.k.Ao=function(){return this.l.Ao()};
g.k.er=function(){return this.l.er()};
g.k.Ho=function(){};
g.k.vl=function(){this.Rk()};
g.k.uj=function(){return this.ca};g.k=oi.prototype;g.k.dk=function(){return this.i.dk()};
g.k.Ao=function(){return this.i.Ao()};
g.k.er=function(){return this.i.er()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Gs(a,b,c),ji(this.i,d));return d};
g.k.dB=function(){return this.Np()};
g.k.Np=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(ji(this.i,this),this.B=a,!0):!1};
g.k.Ho=function(a){0==a.dk()&&this.B(a.Ao(),this)};
g.k.vl=function(){};
g.k.uj=function(){return!1};
g.k.dispose=function(){this.C=!0};
g.k.na=function(){return this.C};
g.k.ll=function(){return{}};ri.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new pi(a,b,c);d=new pi(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};Ai.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=ti(this.i);0<b.length&&(a+="?"+b);return a};Ja(Di);g.E.prototype.Zg=!1;g.E.prototype.na=function(){return this.Zg};
g.E.prototype.dispose=function(){this.Zg||(this.Zg=!0,this.da())};
g.E.prototype.da=function(){if(this.Eg)for(;this.Eg.length;)this.Eg.shift()()};Hi.prototype.update=function(a,b,c){a&&(this.i+=b,this.l+=b,this.B+=b,this.u=Math.max(this.u,this.B));if(void 0===c?!a:c)this.B=0};var Oba=[1,.75,.5,.3,0];Ii.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.l.length;e++){var h=this.l[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};Ri.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.zc):b.zc;this.Y=Math.max(this.Y,b.zc);this.ca=-1!=this.ca?Math.min(this.ca,b.Ag):b.Ag;this.ia=Math.max(this.ia,b.Ag);this.Ja.update(b.Ag,c.Ag,b.i,a,d);this.l.update(b.zc,c.zc,b.i,a,d);c=d||c.jn!=b.jn?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.ma.update(c,a,b)};
Ri.prototype.ln=function(){return this.ma.u>=this.Ha};var YCa=new $f(0,0,0,0);var Tba=new $f(0,0,0,0);g.u(Vi,g.E);g.k=Vi.prototype;g.k.da=function(){this.kg.i&&(this.Qm.fz&&(Uf(this.kg.i,"mouseover",this.Qm.fz),this.Qm.fz=null),this.Qm.dz&&(Uf(this.kg.i,"mouseout",this.Qm.dz),this.Qm.dz=null));this.ds&&this.ds.dispose();this.Nc&&this.Nc.dispose();delete this.uu;delete this.Zy;delete this.pH;delete this.kg.Bl;delete this.kg.i;delete this.Qm;delete this.ds;delete this.Nc;delete this.featureSet;g.E.prototype.da.call(this)};
g.k.ol=function(){return this.Nc?this.Nc.i:this.position};
g.k.Bz=function(a){qh.getInstance().Bz(a)};
g.k.uj=function(){return!1};
g.k.Nt=function(){return new Ri};
g.k.og=function(){return this.uu};
g.k.KD=function(a){return Yi(this,a,1E4)};
g.k.wa=function(a,b,c,d,e,f,h){this.Oo||(this.vt&&(a=this.Zw(a,c,e,h),d=d&&this.Me.zc>=(this.jn()?.3:.5),this.HA(f,a,d),this.lastUpdateTime=b,0<a.zc&&-1===this.eH&&(this.eH=b),-1==this.fH&&this.ln()&&(this.fH=b),-2==this.Vy&&(this.Vy=Ti(this.ol())?a.zc:-1),this.Me=a),this.Zy(this))};
g.k.HA=function(a,b,c){this.og().update(a,b,this.Me,c)};
g.k.ey=function(){return new Mg};
g.k.Zw=function(a,b,c,d){c=this.ey();c.i=b;b=ih().l;b=0===$g(Ig)?-1:b.isVisible()?0:1;c.l=b;c.zc=this.sx(a);c.jn=this.jn();c.Ag=d;return c};
g.k.sx=function(a){return 0===this.opacity&&1===Ug(this.featureSet,"opac")?0:a};
g.k.jn=function(){return!1};
g.k.fv=function(){return this.UL||this.XL};
g.k.Bu=function(){};
g.k.ez=function(){};
g.k.Ui=function(){return 0};
g.k.ln=function(){return this.uu.ln()};var $i="StopIteration"in g.A?g.A.StopIteration:{message:"StopIteration",stack:""};Zi.prototype.next=function(){throw $i;};
Zi.prototype.Mj=function(){return this};g.u(cj,Mg);fj.prototype.getValue=function(){return this.l};
fj.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.l&=~(1<<a):this.i&1<<a||!b||(this.l|=1<<a),this.i|=1<<a)};g.u(gj,Ri);
gj.prototype.update=function(a,b,c,d){if(!b.paused){Ri.prototype.update.call(this,a,b,c,d);var e=dj(b)&&dj(c),f=.5<=(d?Math.min(b.zc,c.zc):c.zc);$h(b.volume)&&(this.B=-1!=this.B?Math.min(this.B,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.ea+=a,this.W+=e?a:0);this.i.update(b.zc,c.zc,b.i,a,d,e);this.u.update(!0,a);this.C.update(e,a);this.X.update(c.fullscreen,a);this.La.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.ga.update(a,b.isVisible());this.Ca.update(a,1<=b.zc);this.za.update(a,
dj(b))}};g.u(ij,eca);ij.prototype.B=function(){return!0};
ij.prototype.C=function(){return!1};
ij.prototype.getId=function(){var a=this,b=Nb(wj,function(c){return c==a.l});
return nk[b].toString()};
ij.prototype.toString=function(){var a="";this.C()&&(a+="c");this.i&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.u(lj,ni);g.k=lj.prototype;g.k.bx=function(){if(this.element){var a=this.element,b=this.l.i.Of;try{try{var c=Yh(a.getBoundingClientRect())}catch(n){c=new $f(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=yg(a,b),h=f.x,l=f.y;var m=new $f(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=YCa.clone()}this.i=m}};
g.k.CC=function(){this.B=this.l.u.i};
g.k.pE=function(a){var b=1==Ug(this.featureSet,"od");return Sba(a,this.B,this.element,b)};
g.k.DC=function(){this.timestamp=Nh()};
g.k.Rk=function(){this.DC();this.bx();if(1===Ug(qh.getInstance().featureSet,"vcm")&&this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element,b=new g.ke(a.videoWidth,a.videoHeight);this.Y=this.i;a=this.i;var c=ag(a),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.i=a}this.CC();a=this.i;c=this.B;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new $f(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 $f(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new $f(0,0,0,0):a;a=this.l.u;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.pE(c)?c=new $f(0,0,0,0):(d=bi.getInstance().B,b=new $f(0,d.height,d.width,0),d=Ui(c,this.i),e=Ui(c,bi.getInstance().i),
b=Ui(c,b)));c=c.top>=c.bottom||c.left>=c.right?new $f(0,0,0,0):bg(c,-this.i.left,-this.i.top);ei()||(e=d=0);this.J=new Th(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.l.getName()};var ZCa=new $f(0,0,0,0);g.u(mj,lj);g.k=mj.prototype;g.k.Yv=function(){this.u();return!0};
g.k.vl=function(){lj.prototype.Rk.call(this)};
g.k.DC=function(){};
g.k.bx=function(){};
g.k.Rk=function(){this.u();lj.prototype.Rk.call(this)};
g.k.Ho=function(a){a=a.isActive();a!==this.I&&(a?this.u():(bi.getInstance().i=new $f(0,0,0,0),this.i=new $f(0,0,0,0),this.B=new $f(0,0,0,0),this.timestamp=-1));this.I=a};var G_={},jca=(G_.firstquartile=0,G_.midpoint=1,G_.thirdquartile=2,G_.complete=3,G_);g.u(oj,Vi);g.k=oj.prototype;g.k.uj=function(){return!0};
g.k.KD=function(a){return Yi(this,a,Math.max(1E4,this.u/3))};
g.k.wa=function(a,b,c,d,e,f,h){var l=this,m=this.L(this)||{};g.Yb(m,e);this.u=m.duration||this.u;this.W=m.isVpaid||this.W;this.la=m.isYouTube||this.la;e=fca(this,b);1===sj(this)&&(f=e);Vi.prototype.wa.call(this,a,b,c,d,m,f,h);this.on&&this.on.i&&g.Ab(this.I,function(n){n.i||(n.i=kj(n,l))})};
g.k.HA=function(a,b,c){Vi.prototype.HA.call(this,a,b,c);rj(this).update(a,b,this.Me,c);this.Ha=dj(this.Me)&&dj(b);-1==this.ia&&this.Ca&&(this.ia=this.og().u.i);this.Ee.u=0;a=this.ln();b.isVisible()&&ej(this.Ee,"vs");a&&ej(this.Ee,"vw");$h(b.volume)&&ej(this.Ee,"am");dj(b)&&ej(this.Ee,"a");this.Jo&&ej(this.Ee,"f");-1!=b.l&&(ej(this.Ee,"bm"),1==b.l&&ej(this.Ee,"b"));dj(b)&&b.isVisible()&&ej(this.Ee,"avs");this.Ha&&a&&ej(this.Ee,"avw");0<b.zc&&ej(this.Ee,"pv");tj(this,this.og().u.i,!0)&&ej(this.Ee,"gdr");
2E3<=Oi(this.og().l,1)&&ej(this.Ee,"pmx")};
g.k.Nt=function(){return new gj};
g.k.og=function(){return this.uu};
g.k.ey=function(){return new cj};
g.k.Zw=function(a,b,c,d){a=Vi.prototype.Zw.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Jo;a.paused=2==this.ye;a.volume=c.volume;$h(a.volume)||(this.Ja++,b=this.Me,$h(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.sx=function(a){return bi.getInstance(),this.Jo?1:Vi.prototype.sx.call(this,a)};
g.k.Ui=function(){return 1};
g.k.getDuration=function(){return this.u};var $Ca=g.Sa();var Fj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},tca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Gj.prototype.reset=function(){this.i=[];this.l=[]};
Ja(Gj);var Lj=Gj.getInstance();Ja(Pj);g.u(Rj,oi);g.k=Rj.prototype;g.k.getName=function(){return(this.l?this.l:this.i).getName()};
g.k.ll=function(){return(this.l?this.l:this.i).ll()};
g.k.dk=function(){return(this.l?this.l:this.i).dk()};
g.k.init=function(a){var b=!1;(0,g.Ab)(this.u,function(c){c.initialize()&&(b=!0)});
b&&(this.B=a,ji(this.i,this));return b};
g.k.dispose=function(){(0,g.Ab)(this.u,function(a){a.dispose()});
oi.prototype.dispose.call(this)};
g.k.dB=function(){return ai(this.u,function(a){return a.cB()})};
g.k.Np=function(){return ai(this.u,function(a){return a.Fs()})};
g.k.Gs=function(a,b,c){return new lj(a,this.i,b,c)};
g.k.vl=function(a){this.l=a.l};var yca={threshold:[0,.3,.5,.75,1]};g.u(Sj,lj);g.k=Sj.prototype;g.k.Yv=function(){var a=this;this.W||(this.W=Nh());if(Kh(298,function(){return zca(a)}))return!0;
ii(this.l,"msf");return!1};
g.k.Mp=function(){if(this.u&&this.element)try{this.u.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
g.k.Rk=function(){var a=Tj(this);0<a.length&&Uj(this,a);lj.prototype.Rk.call(this)};
g.k.bx=function(){};
g.k.pE=function(){return!1};
g.k.CC=function(){};
g.k.ll=function(){var a={};return Object.assign(this.l.ll(),(a.niot_obs=this.W,a.niot_cbk=this.L,a))};
g.k.getName=function(){return"nio"};g.u(Vj,oi);Vj.prototype.getName=function(){return"nio"};
Vj.prototype.Np=function(){return!bi.getInstance().l&&null!=this.i.i.Of.IntersectionObserver};
Vj.prototype.Gs=function(a,b,c){return new Sj(a,this.i,b,c)};g.u(Xj,gi);Xj.prototype.OD=function(){return bi.getInstance().i};
Xj.prototype.Fs=function(){var a=Wj();this.J!==a&&(this.i!=this&&a>this.i.J&&(this.i=this,hi(this)),this.J=a);return 2==a};
Ja(Xj);Ja(Yj);Zj.prototype.eB=function(){ck(this,Mj(),!1)};
Zj.prototype.B=function(){var a=ei(),b=Nh();a?(Ph||(Qh=b,g.Ab(Lj.i,function(c){var d=c.og();d.la=hj(d,b,1!=c.ye)})),Ph=!0):(this.J=ek(this,b),Ph=!1,Aj=b,g.Ab(Lj.i,function(c){c.vt&&(c.og().L=b)}));
ck(this,Mj(),!a)};
Ja(Zj);var ak=Zj.getInstance();var fk=null,Nk="",Mk=!1;var H_=lk([void 0,1,2,3,4,8,16]),I_=lk([void 0,4,8,16]),aDa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:kk("p0",I_),p1:kk("p1",I_),p2:kk("p2",I_),p3:kk("p3",I_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:jk("mtos1",[0,2,4],!1,I_),mtos2:jk("mtos2",[0,2,4],!1,I_),mtos3:jk("mtos3",[0,2,4],!1,I_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:kk("a0",I_),a1:kk("a1",I_),a2:kk("a2",I_),a3:kk("a3",I_),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:kk("c0",I_),c1:kk("c1",I_),c2:kk("c2",I_),c3:kk("c3",I_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:kk("qmtos",H_),qnc:kk("qnc",H_),qmv:kk("qmv",H_),qnv:kk("qnv",H_),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:kk("ss0",I_),ss1:kk("ss1",I_),ss2:kk("ss2",I_),ss3:kk("ss3",I_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},bDa={c:gk("c"),
at:"at",atos:jk("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:ik(),j:"dom",mtos:jk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:gk("ss"),vsv:Ya("w2"),t:"t"},cDa={atos:"atos",avt:jk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:gk("ss"),t:"t"},dDa={a:"a",tos:ik(),at:"at",c:gk("c"),mtos:jk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Ya("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},eDa={tos:ik(),at:"at",c:gk("c"),mtos:jk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Ya("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:jk("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Qc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Hca={lV:"visible",SR:"audible",F1:"time",G1:"timetype"},qk={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(rk,ij);rk.prototype.getId=function(){return this.I};
rk.prototype.C=function(){return!0};
rk.prototype.B=function(a){var b=a.og(),c=a.getDuration();return ai(this.J,function(d){if(void 0!=d.i)var e=Jca(d,b);else b:{switch(d.C){case "mtos":e=d.l?b.C.u:b.u.i;break b;case "tos":e=d.l?b.C.i:b.u.i;break b}e=0}0==e?d=!1:(d=-1!=d.u?d.u:void 0!==c&&0<c?d.B*c:-1,d=-1!=d&&e>=d);return d})};g.u(sk,ij);sk.prototype.B=function(a){var b=Mi(a.og().i,1);return tj(a,b)};g.u(tk,ij);tk.prototype.B=function(a){return a.og().ln()};g.u(wk,Kca);wk.prototype.i=function(a){var b=new uk;b.i=vk(a,aDa);b.u=vk(a,cDa);return b};g.u(xk,mj);xk.prototype.u=function(){var a=g.Ha("ima.admob.getViewability"),b=Ug(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
xk.prototype.getName=function(){return"gsv"};g.u(yk,oi);yk.prototype.getName=function(){return"gsv"};
yk.prototype.Np=function(){var a=bi.getInstance();qh.getInstance();return a.l&&!1};
yk.prototype.Gs=function(a,b,c){return new xk(this.i,b,c)};g.u(zk,mj);zk.prototype.u=function(){var a=this,b=g.Ha("ima.bridge.getNativeViewability"),c=Ug(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Pb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=Zh(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?ZCa.clone():Zh(e);a.timestamp=d.opt_nativeTime||-1;bi.getInstance().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
zk.prototype.getName=function(){return"nis"};g.u(Ak,oi);Ak.prototype.getName=function(){return"nis"};
Ak.prototype.Np=function(){var a=bi.getInstance();qh.getInstance();return a.l&&!1};
Ak.prototype.Gs=function(a,b,c){return new zk(this.i,b,c)};g.u(Bk,gi);g.k=Bk.prototype;g.k.Fs=function(){return null!=this.l.bi};
g.k.GD=function(){var a={};this.ia&&(a.mraid=this.ia);this.Y&&(a.mlc=1);a.mtop=this.l.tQ;this.I&&(a.mse=this.I);this.ga&&(a.msc=1);a.mcp=this.l.compatibility;return a};
g.k.Rl=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.l.bi[a].apply(this.l.bi,c)}catch(e){Mh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.be)return!this.er();this.be=!0;if(2===this.l.compatibility)return this.I="ng",ii(this,"w"),!1;if(1===this.l.compatibility)return this.I="mm",ii(this,"w"),!1;bi.getInstance().L=!0;this.Of.document.readyState&&"complete"==this.Of.document.readyState?Fk(this):Wh(this.Of,"load",function(){ih().setTimeout(Lh(292,function(){return Fk(a)}),100)},292);
return!0};
g.k.aB=function(){var a=bi.getInstance(),b=Ik(this,"getMaxSize");a.i=new $f(0,b.width,b.height,0)};
g.k.bB=function(){bi.getInstance().B=Ik(this,"getScreenSize")};
g.k.dispose=function(){Gk(this);gi.prototype.dispose.call(this)};
Ja(Bk);g.k=Jk.prototype;g.k.yq=function(a){Wi(a,!1);vca(a)};
g.k.St=function(){};
g.k.Lr=function(a,b,c,d){var e=this;this.l||(this.l=this.YC());b=c?b:-1;a=null==this.l?new oj(Zg,a,b,7):new oj(Zg,a,b,7,new ij("measurable_impression",this.l),Qca(this));a.vf=d;oba(a.featureSet);Tg(a.featureSet,"queryid",a.vf);a.Bz("");Yba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.UD.apply(e,g.la(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.CL.apply(e,g.la(h))});
(d=Pj.getInstance().i)&&Xi(a,d);a.kg.Bl&&Yj.getInstance();return a};
g.k.Ho=function(a){switch(a.dk()){case 0:if(a=Pj.getInstance().i)a=a.i,g.kb(a.B,this),a.L&&this.uj()&&li(a);Lk();break;case 2:bk()}};
g.k.vl=function(){};
g.k.uj=function(){return!1};
g.k.CL=function(a,b){a.Oo=!0;switch(a.Ui()){case 1:Rk(this,a,b);break;case 2:this.Kz(a)}this.Tz()};
g.k.KL=function(a){vj(a,0);return yj(a,"start",ei())};
g.k.Ep=function(a,b,c){ck(ak,[a],!ei());return this.ql(a,b,c)};
g.k.ql=function(a,b,c){return yj(a,c,ei())};
g.k.FL=function(a){return Sk(a,"firstquartile",1)};
g.k.HL=function(a){a.Ca=!0;return Sk(a,"midpoint",2)};
g.k.LL=function(a){return Sk(a,"thirdquartile",3)};
g.k.DL=function(a){var b=Sk(a,"complete",4);pj(a);return b};
g.k.GG=function(a,b,c){b=ei();2!=a.ye||b||(a.og().L=Nh());ck(ak,[a],!b);2==a.ye&&(a.ye=1);return yj(a,c,b)};
g.k.JL=function(a,b){var c=this.Ep(a,b||{},"skip");pj(a);return c};
g.k.GL=function(a,b){Wi(a,!0);return this.Ep(a,b||{},"fullscreen")};
g.k.EL=function(a,b){Wi(a,!1);return this.Ep(a,b||{},"exitfullscreen")};
g.k.yz=function(a,b,c){b=a.og();b.la=hj(b,Nh(),1!=a.ye);ck(ak,[a],!ei());1==a.ye&&(a.ye=2);return yj(a,c,ei())};
g.k.IL=function(a){ck(ak,[a],!ei());return a.l()};
g.k.vy=function(a){ck(ak,[a],!ei());this.CG(a);pj(a);return a.l()};
g.k.UD=function(){};
g.k.Kz=function(){};
g.k.CG=function(){};
g.k.fB=function(){};
g.k.Tz=function(){};
g.k.YC=function(){};var Xk=g.Sa(),Zk=!1,$k=!1,al=!1,Xca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return Yk(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 Yk(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 Yk(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 Yk(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 Yk(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return $k},
function(){return al},
function(){return Yk(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 Yk(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]||Wk(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 Wk(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 Yk(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 Wk(a.CSS.supports)},
function(){return Wk(Intl.Collator)},
function(a){return Wk(a.document.createElement("dialog").show)},
function(){return Yk(8)},
function(a){return Wk(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 Wk(a.document.createElement("div").animate)},
function(a){return Wk(a.document.documentElement.webkitRequestFullScreen)},
function(a){return Wk(a.navigator.getBattery)},
function(a){return Wk(a.navigator.permissions.query)},
function(){return!1},
function(){return Yk(9)},
function(){return Wk(webkitRequestAnimationFrame)},
function(a){return Wk(a.BroadcastChannel.call)},
function(a){return Wk(a.FontFace)},
function(a){return Wk(a.Gamepad)},
function(){return Yk(10)},
function(a){return Wk(a.MutationEvent)},
function(a){return Wk(a.MutationObserver)},
function(a){return Wk(a.crypto.getRandomValues)},
function(a){return Wk(a.document.body.createShadowRoot)},
function(a){return Wk(a.document.body.webkitCreateShadowRoot)},
function(a){return Wk(a.fetch)},
function(){return Yk(11)},
function(a){return Wk(a.navigator.serviceWorker.register)},
function(a){return Wk(a.navigator.webkitGetGamepads)},
function(a){return Wk(a.speechSynthesis.speak)},
function(a){return Wk(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return Yk(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 Yk(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 Yk(14)},
function(a){return"undefined"==typeof a.navigator.a4},
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")}],Yca=[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}],Zca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ta(bl,ada);bl.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
bl.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.l,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)cl(this,a,f),f+=this.l;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.l){cl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.l){cl(this,d);e=0;break}}this.u=e;this.B+=b};
bl.prototype.digest=function(){var a=Array((56>this.u?this.l:2*this.l)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;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.i[b]>>>d&255;return a};g.u(dl,wk);dl.prototype.i=function(a){var b=wk.prototype.i.call(this,a);var c=Xk=g.Sa();var d=Yk(5);c=($k?!d:d)?c|2:c&-3;d=Yk(2);c=(al?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=$ca());b.C=this.l;b.I=vk(a,bDa,c,"h",el("kArwaWEsTs"));b.B=vk(a,dDa,{},"h",el("b96YPMzfnx"));b.l=vk(a,eDa,{},"h",el("yb8Wev6QDg"));return b};fl.prototype.i=function(){return g.Ha(this.u)};g.u(gl,fl);gl.prototype.i=function(a){if(!a.fp)return fl.prototype.i.call(this,a);var b=this.l[a.fp];if(b)return function(c,d,e){b.l(c,d,e)};
Mh(393,Error());return null};g.u(hl,Jk);g.k=hl.prototype;g.k.St=function(a,b){var c=this,d=Pj.getInstance();if(null!=d.i)switch(d.i.getName()){case "nis":var e=eda(this,a,b);break;case "gsv":e=dda(this,a,b);break;case "exc":e=fda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Tca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ui()&&(e.L==g.Ia&&(e.L=function(f){return c.fB(f)}),cda(this,e,b));
return e};
g.k.fB=function(a){a.l=0;a.ea=0;if("h"==a.B||"n"==a.B){var b;qh.getInstance();if(a.fp&&kl(this)){var c=this.J[a.fp];c?b=function(e){return c.i(e)}:null!==c&&Mh(379,Error())}else b=g.Ha("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.vf)}catch(e){a.l|=4}else a.l|=2}else if("b"==a.B)if(b=g.Ha("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.vf)}catch(e){a.l|=4}else a.l|=2;else if("ml"==a.B)if(b=g.Ha("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.vf)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===d?a.l|=8:null===d?a.l|=16:g.Pb(d)?a.l|=32:null!=d.errorCode&&(a.ea=d.errorCode,a.l|=64));null==d&&(d={});Uca(d,a);$h(d.volume)&&$h(void 0)&&(d.volume*=NaN);
return d};
g.k.YC=function(){if(kl(this))return new gl("ima.common.triggerExternalActivityEvent",this.u,this.J);var a=gda(this);return null!=a?new fl(a,this.u):null};
g.k.Kz=function(a){!a.i&&a.Oo&&Qk(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.CG=function(a){a.SG&&(a.ln()?Qk(this,a,"overlay_viewable_end_of_session_impression"):Qk(this,a,"overlay_unviewable_impression"),a.SG=!1)};
g.k.UD=function(){};
g.k.Tz=function(){};
g.k.Lr=function(a,b,c,d){a=Jk.prototype.Lr.call(this,a,b,c,d);this.C&&(b=this.I,null==a.C&&(a.C=new $ba),b.i[a.vf]=a.C,a.C.C=$Ca);return a};
g.k.yq=function(a){a&&1==a.Ui()&&this.C&&delete this.I.i[a.vf];return Jk.prototype.yq.call(this,a)};
Ja(hl);var il=new uk;il.C="stopped";il.i="stopped";il.u="stopped";il.I="stopped";il.B="stopped";il.l="stopped";Object.freeze(il);var fDa=Ih(193,ml,Tk);g.Da("Goog_AdSense_Lidar_sendVastEvent",fDa,void 0);var gDa=Lh(194,function(a,b){b=void 0===b?{}:b;var c=jl(hl.getInstance(),a,b);return ll(c)});
g.Da("Goog_AdSense_Lidar_getViewability",gDa,void 0);var hDa=Ih(195,function(){return kh()},void 0);
g.Da("Goog_AdSense_Lidar_getUrlSignalsArray",hDa,void 0);var iDa=Lh(196,function(){return g.Dj(kh())});
g.Da("Goog_AdSense_Lidar_getUrlSignalsList",iDa,void 0);var jea=(new Date).getTime();var lda={};g.k=ul.prototype;g.k.isEnabled=function(){if(!g.A.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{pu:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.S3;d=c.lQ||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.pu}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.i.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.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Cc(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,"",{pu:0,path:b,domain:c});return d};
g.k.nh=function(){return vl(this).keys};
g.k.qg=function(){return vl(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=vl(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Nq=new ul("undefined"==typeof document?null:document);var Al={};og&&g.ce("1.9b")||g.Be&&g.ce("8")||g.pg&&g.ce("9.5")||g.De&&g.ce("528");var qda=function(){if(!g.A.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.A.addEventListener("test",g.Ia,b),g.A.removeEventListener("test",g.Ia,b)}catch(c){}return a}();g.Cl.prototype.stopPropagation=function(){this.l=!0};
g.Cl.prototype.preventDefault=function(){this.defaultPrevented=!0};var Xoa;Xoa=g.De?"webkitAnimationEnd":g.pg?"oanimationend":"animationend";g.Ta(Dl,g.Cl);var jDa={2:"touch",3:"pen",4:"mouse"};
Dl.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?og&&(Yd(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:jDa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&Dl.Ed.preventDefault.call(this)};
Dl.prototype.stopPropagation=function(){Dl.Ed.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
Dl.prototype.preventDefault=function(){Dl.Ed.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var El="closure_listenable_"+(1E6*Math.random()|0);var nda=0;Hl.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=Jl(a,b,d,e);-1<h?(b=a[h],c||(b.ht=!1)):(b=new oda(b,this.src,f,!!d,e),b.ht=c,a.push(b));return b};
Hl.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Jl(e,b,c,d);return-1<b?(Gl(e[b]),g.jb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
Hl.prototype.Sq=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Jl(a,b,c,d));return-1<e?a[e]:null};var Pl="closure_lm_"+(1E6*Math.random()|0),Ul={},Rl=0,Vl="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.Wl,g.E);g.Wl.prototype[El]=!0;g.k=g.Wl.prototype;g.k.addEventListener=function(a,b,c,d){Ll(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Sl(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.ma;if(b){var c=[];for(var d=1;b;b=b.ma)c.push(b),++d}b=this.Ha;d=a.type||a;if("string"===typeof a)a=new g.Cl(a,b);else if(a instanceof g.Cl)a.target=a.target||b;else{var e=a;a=new g.Cl(d,b);g.Yb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.l&&0<=f;f--){var h=a.currentTarget=c[f];e=Xl(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Xl(h,d,!0,a)&&e,a.l||(e=Xl(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&f<c.length;f++)h=a.currentTarget=c[f],e=Xl(h,d,!1,a)&&e;return e};
g.k.da=function(){g.Wl.Ed.da.call(this);if(this.l){var a=this.l,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Gl(d[e]);delete a.listeners[c];a.i--}}this.ma=null};
g.k.ya=function(a,b,c,d){return this.l.add(String(a),b,!1,c,d)};
g.k.Uy=function(a,b,c,d){return this.l.add(String(a),b,!0,c,d)};
g.k.Gb=function(a,b,c,d){this.l.remove(String(a),b,c,d)};
g.k.Sq=function(a,b,c,d){return this.l.Sq(String(a),b,c,d)};Yl.prototype.get=function(){if(0<this.l){this.l--;var a=this.i;this.i=a.next;a.next=null}else a=this.u();return a};var $l;cm.prototype.add=function(a,b){var c=jm.get();c.set(a,b);this.l?this.l.next=c:this.i=c;this.l=c};
cm.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.l=null),a.next=null);return a};
var jm=new Yl(function(){return new dm},function(a){return a.reset()});
dm.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
dm.prototype.reset=function(){this.next=this.scope=this.i=null};var em,fm=!1,gm=new cm;nm.prototype.reset=function(){this.context=this.onRejected=this.l=this.i=null;this.u=!1};
var om=new Yl(function(){return new nm},function(a){a.reset()});
mm.prototype.then=function(a,b,c){return wm(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
mm.prototype.$goog_Thenable=!0;mm.prototype.cancel=function(a){if(0==this.Ma){var b=new Cm(a);g.hm(function(){ym(this,b)},this)}};
mm.prototype.TQ=function(a){this.Ma=0;lm(this,2,a)};
mm.prototype.UQ=function(a){this.Ma=0;lm(this,3,a)};
mm.prototype.VK=function(){for(var a;a=zm(this);)Am(this,a,this.Ma,this.Ql);this.Ox=!1};
var Em=bm;g.Ta(Cm,Wa);Cm.prototype.name="cancel";g.Ta(g.Fm,g.Wl);g.k=g.Fm.prototype;g.k.enabled=!1;g.k.gb=null;g.k.setInterval=function(a){this.Hf=a;this.gb&&this.enabled?(this.stop(),this.start()):this.gb&&this.stop()};
g.k.HQ=function(){if(this.enabled){var a=g.Sa()-this.BE;0<a&&a<.8*this.Hf?this.gb=this.ts.setTimeout(this.AC,this.Hf-a):(this.gb&&(this.ts.clearTimeout(this.gb),this.gb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.gb||(this.gb=this.ts.setTimeout(this.AC,this.Hf),this.BE=g.Sa())};
g.k.stop=function(){this.enabled=!1;this.gb&&(this.ts.clearTimeout(this.gb),this.gb=null)};
g.k.da=function(){g.Fm.Ed.da.call(this);this.stop();delete this.ts};g.k=g.Im.prototype;g.k.qg=function(){Km(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.l[this.i[b]]);return a};
g.k.nh=function(){Km(this);return this.i.concat()};
g.k.isEmpty=function(){return 0==this.u};
g.k.clear=function(){this.l={};this.Xl=this.u=this.i.length=0};
g.k.remove=function(a){return Jm(this.l,a)?(delete this.l[a],this.u--,this.Xl++,this.i.length>2*this.u&&Km(this),!0):!1};
g.k.get=function(a,b){return Jm(this.l,a)?this.l[a]:b};
g.k.set=function(a,b){Jm(this.l,a)||(this.u++,this.i.push(a),this.Xl++);this.l[a]=b};
g.k.forEach=function(a,b){for(var c=this.nh(),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.Im(this)};
g.k.Mj=function(a){Km(this);var b=0,c=this.Xl,d=this,e=new Zi;e.next=function(){if(c!=d.Xl)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw $i;var f=d.i[b++];return a?f:d.l[f]};
return e};g.Lm.prototype.toString=function(){var a=[],b=this.B;b&&a.push(Sm(b,kDa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.L)&&a.push(Sm(b,kDa,!0),"@"),a.push(qd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Sm(c,"/"==c.charAt(0)?lDa:mDa,!0));(c=this.l.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Sm(c,nDa));return a.join("")};
g.Lm.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Mm(b,a.B):c=!!a.L;c?b.L=a.L:c=!!a.i;c?g.Nm(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.Om(b,a.u);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.i&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=pc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.l.toString();c?Pm(b,a.l.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Lm.prototype.clone=function(){return new g.Lm(this)};
g.Lm.prototype.getPath=function(){return this.J};
var kDa=/[#\/\?@]/g,mDa=/[#\?:]/g,lDa=/[#\?]/g,zda=/[#\?@]/g,nDa=/#/g;g.k=Rm.prototype;g.k.add=function(a,b){Um(this);this.u=null;a=Vm(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.l=this.l+1;return this};
g.k.remove=function(a){Um(this);a=Vm(this,a);return Jm(this.i.l,a)?(this.u=null,this.l=this.l-this.i.get(a).length,this.i.remove(a)):!1};
g.k.clear=function(){this.i=this.u=null;this.l=0};
g.k.isEmpty=function(){Um(this);return 0==this.l};
g.k.forEach=function(a,b){Um(this);this.i.forEach(function(c,d){g.Ab(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.nh=function(){Um(this);for(var a=this.i.qg(),b=this.i.nh(),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.qg=function(a){Um(this);var b=[];if("string"===typeof a)Wm(this,a)&&(b=g.nb(b,this.i.get(Vm(this,a))));else{a=this.i.qg();for(var c=0;c<a.length;c++)b=g.nb(b,a[c])}return b};
g.k.set=function(a,b){Um(this);this.u=null;a=Vm(this,a);Wm(this,a)&&(this.l=this.l-this.i.get(a).length);this.i.set(a,[b]);this.l=this.l+1;return this};
g.k.get=function(a,b){if(!a)return b;var c=this.qg(a);return 0<c.length?String(c[0]):b};
g.k.toString=function(){if(this.u)return this.u;if(!this.i)return"";for(var a=[],b=this.i.nh(),c=0;c<b.length;c++){var d=b[c],e=qd(d);d=this.qg(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+qd(d[f]));a.push(h)}}return this.u=a.join("&")};
g.k.clone=function(){var a=new Rm;a.u=this.u;this.i&&(a.i=this.i.clone(),a.l=this.l);return a};var Ym="://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(" "),Bda=/\bocr\b/;var Cda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var hG={uX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",rX:"LIVING_ROOM_APP_MODE_MAIN",qX:"LIVING_ROOM_APP_MODE_KIDS",sX:"LIVING_ROOM_APP_MODE_MUSIC",tX:"LIVING_ROOM_APP_MODE_UNPLUGGED",pX:"LIVING_ROOM_APP_MODE_GAMING"};an.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.i[a]!=b&&(this.i[a]=b,this.l=-1)};
an.prototype.get=function(a){return!!this.i[a]};g.Ta(g.bn,g.E);g.k=g.bn.prototype;g.k.start=function(){this.stop();this.B=!1;var a=cn(this),b=dn(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=Ll(this.l,"MozBeforePaint",this.u),this.l.mozRequestAnimationFrame(null),this.B=!0):this.i=a&&b?a.call(this.l,this.u):this.l.setTimeout(qaa(this.u),20)};
g.k.stop=function(){if(this.isActive()){var a=cn(this),b=dn(this);a&&!b&&this.l.mozRequestAnimationFrame?Tl(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null};
g.k.mg=function(){this.stop();this.gB()};
g.k.isActive=function(){return null!=this.i};
g.k.gB=function(){this.B&&this.i&&Tl(this.i);this.i=null;this.I.call(this.C,g.Sa())};
g.k.da=function(){this.stop();g.bn.Ed.da.call(this)};g.Ta(g.M,g.E);g.k=g.M.prototype;g.k.Op=0;g.k.da=function(){g.M.Ed.da.call(this);this.stop();delete this.i;delete this.l};
g.k.start=function(a){this.stop();this.Op=g.Gm(this.u,void 0!==a?a:this.Hf)};
g.k.stop=function(){this.isActive()&&g.A.clearTimeout(this.Op);this.Op=0};
g.k.mg=function(){this.stop();this.hB()};
g.k.isActive=function(){return 0!=this.Op};
g.k.hB=function(){this.Op=0;this.i&&this.i.call(this.l)};g.Ta(g.pn,g.Wl);g.k=g.pn.prototype;g.k.Kb=function(){return 1==this.Ma};
g.k.Hu=function(){this.lh("begin")};
g.k.Cr=function(){this.lh("end")};
g.k.onFinish=function(){this.lh("finish")};
g.k.lh=function(a){this.dispatchEvent(a)};var oDa=Za(function(){if(g.Be)return g.ce("10.0");var a=g.Ie("DIV"),b=g.De?"-webkit":og?"-moz":g.Be?"-ms":g.pg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!OCa.test("div"))throw Error("");if("DIV"in QCa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!OCa.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.Na(e))throw Error("");
e instanceof Oc||(e=Tc(e));e=Pc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in PCa)if(e instanceof kc)e=nc(e).toString();else if(e instanceof g.Gc)e=g.Hc(e);else if("string"===typeof e)e=g.Lc(e).Mg();else throw Error("");}e.Zi&&(e=e.Mg());f=f+'="'+Ac(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===JCa.div?h+=">":(c=Maa(d),h+=">"+g.gd(c).toString()+"</div>",c=c.zo());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=hd(h,c);g.ld(a,
b);return""!=g.qg(a.firstChild,"transition")});g.Ta(qn,g.pn);g.k=qn.prototype;g.k.play=function(){if(this.Kb())return!1;this.Hu();this.lh("play");this.startTime=g.Sa();this.Ma=1;if(oDa())return g.mg(this.i,this.I),this.u=g.Gm(this.PP,void 0,this),!0;this.Zv(!1);return!1};
g.k.PP=function(){g.Eg(this.i);Eda(this.i,this.J);g.mg(this.i,this.B);this.u=g.Gm((0,g.B)(this.Zv,this,!1),1E3*this.C)};
g.k.stop=function(){this.Kb()&&this.Zv(!0)};
g.k.Zv=function(a){g.mg(this.i,"transition","");g.A.clearTimeout(this.u);g.mg(this.i,this.B);this.endTime=g.Sa();this.Ma=0;if(a)this.lh("stop");else this.onFinish();this.Cr()};
g.k.da=function(){this.stop();qn.Ed.da.call(this)};
g.k.pause=function(){};var Fda={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 Jda=sn("getPropertyValue"),Kda=sn("setProperty");var Ida={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.wn.prototype.clone=function(){return new g.wn(this.i,this.C,this.u,this.I,this.B,this.J,this.l,this.L)};g.yn.prototype.l=0;g.yn.prototype.reset=function(){this.i=this.u=this.B;this.l=0};
g.yn.prototype.getValue=function(){return this.u};An.prototype.clone=function(){return new An(this.start,this.end)};var pDa=new WeakMap;(function(){if(Pya){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Wc))?a[1]:"0"}return XS?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Wc))?a[0].replace(/_/g,"."):"10"):g.lq?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Wc))?a[1]:""):SCa||TCa||UCa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Wc))?a[1].replace(/_/g,"."):""):""})();var Rda=function(){if(g.oF)return Bn(/Firefox\/([0-9.]+)/);if(g.Be||g.Fs||g.pg)return be;if(g.DA)return Wd()?Bn(/CriOS\/([0-9.]+)/):Bn(/Chrome\/([0-9.]+)/);if(g.Zr&&!Wd())return Bn(/Version\/([0-9.]+)/);if(WF||qI){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Wc);if(a)return a[1]+"."+a[2]}else if(g.OF)return(a=Bn(/Android\s+([0-9.]+)/))?a:Bn(/Version\/([0-9.]+)/);return""}();g.Ta(g.Dn,g.E);g.k=g.Dn.prototype;g.k.subscribe=function(a,b,c){var d=this.l[a];d||(d=this.l[a]=[]);var e=this.C;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.C=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.l[a]){var d=this.i;if(a=g.cb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nf(a)}return!1};
g.k.Nf=function(a){var b=this.i[a];if(b){var c=this.l[b];0!=this.B?(this.u.push(a),this.i[a+1]=g.Ia):(c&&g.kb(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.V=function(a,b){var c=this.l[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];Sda(this.i[h+1],this.i[h+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.B--,0<this.u.length&&0==this.B)for(;c=this.u.pop();)this.Nf(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.l[a];b&&(g.Ab(b,this.Nf,this),delete this.l[a])}else this.i.length=0,this.l={}};
g.k.da=function(){g.Dn.Ed.da.call(this);this.clear();this.u.length=0};g.En.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.Dj(b))};
g.En.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.En.prototype.remove=function(a){this.i.remove(a)};g.Ta(Fn,g.En);Fn.prototype.set=function(a,b){Fn.Ed.set.call(this,a,Hn(b))};
Fn.prototype.l=function(a){a=Fn.Ed.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Fn.prototype.get=function(a){if(a=this.l(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ta(In,Fn);In.prototype.set=function(a,b,c){if(b=Hn(b)){if(c){if(c<g.Sa()){In.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Sa()}In.Ed.set.call(this,a,b)};
In.prototype.l=function(a,b){var c=In.Ed.l.call(this,a);if(c)if(!b&&g.Jn(c))In.prototype.remove.call(this,a);else return c};g.Ta(g.Kn,In);g.Ta(Ln,Tda);Ln.prototype.clear=function(){var a=Zba(this.Mj(!0)),b=this;g.Ab(a,function(c){b.remove(c)})};g.Ta(Mn,Ln);g.k=Mn.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeItem(a)};
g.k.Mj=function(a){var b=0,c=this.i,d=new Zi;d.next=function(){if(b>=c.length)throw $i;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.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ta(Nn,Mn);g.Ta(On,Mn);g.Ta(Qn,Ln);var Uda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Pn=null;g.k=Qn.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(Rn(a),b);Sn(this)};
g.k.get=function(a){a=this.i.getAttribute(Rn(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(Rn(a));Sn(this)};
g.k.Mj=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new Zi;d.next=function(){if(b>=c.length)throw $i;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.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Sn(this)};g.Ta(Tn,Ln);Tn.prototype.set=function(a,b){this.l.set(this.i+a,b)};
Tn.prototype.get=function(a){return this.l.get(this.i+a)};
Tn.prototype.remove=function(a){this.l.remove(this.i+a)};
Tn.prototype.Mj=function(a){var b=this.l.Mj(!0),c=this,d=new Zi;d.next=function(){for(var e=b.next();e.substr(0,c.i.length)!=c.i;)e=b.next();return a?e.substr(c.i.length):c.l.get(e)};
return d};bo.prototype.getKey=function(){return this.i};
bo.prototype.getValue=function(){return this.l};
bo.prototype.clone=function(){return new bo(this.i,this.l)};g.k=co.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ib(a);else{a[0]=a.pop();a=0;b=this.i;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.qg=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.nh=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new co(this)};
g.k.isEmpty=function(){return g.gb(this.i)};
g.k.clear=function(){ib(this.i)};g.Ta(fo,co);Ja(go);go.prototype.i=0;(function(){function a(H){var L=0;return function(){return L<H.length?{done:!1,value:H[L++]}:{done:!0}}}
function b(H,L){if(L)a:{var T=y;H=H.split(".");for(var na=0;na<H.length-1;na++){var wa=H[na];if(!(wa in T))break a;T=T[wa]}H=H[H.length-1];na=T[H];L=L(na);L!=na&&null!=L&&x(T,H,{configurable:!0,writable:!0,value:L})}}
function c(H){H={next:H};H[Symbol.iterator]=function(){return this};
return H}
function d(H){if(!(H instanceof Array)){var L="undefined"!=typeof Symbol&&Symbol.iterator&&H[Symbol.iterator];H=L?L.call(H):{next:a(H)};for(var T=[];!(L=H.next()).done;)T.push(L.value);H=T}return H}
function e(H,L){H instanceof String&&(H+="");var T=0,na=!1,wa={next:function(){if(!na&&T<H.length){var Ka=T++;return{value:L(Ka,H[Ka]),done:!1}}na=!0;return{done:!0,value:void 0}}};
wa[Symbol.iterator]=function(){return wa};
return wa}
function f(H){for(var L=[],T=0;T<arguments.length;++T)L[T]=arguments[T];return 0===L.length?function(na){return na}:1===L.length?L[0]:L.reduce(function(na,wa){return function(Ka){for(var Ua=[],lc=0;lc<arguments.length;++lc)Ua[lc]=arguments[lc];
return na(wa.apply(null,d(Ua)))}})}
function h(H,L){return function(T){for(var na=[],wa=0;wa<arguments.length;++wa)na[wa]=arguments[wa];return L(H.apply(this,na))}}
function l(){return Math.random().toString(36).substring(7).split("").join(".")}
function m(H){if("object"!==typeof H||null===H)return!1;for(var L=H;null!==Object.getPrototypeOf(L);)L=Object.getPrototypeOf(L);return Object.getPrototypeOf(H)===L}
function n(H){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(H);try{throw Error(H);}catch(L){}}
function p(H,L,T,na){var wa=Object.keys(L),Ka=T&&T.type===K.g?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===wa.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!m(H))return T=Object.prototype.toString.call(H).match(/\s([a-z|A-Z]+)/),"The "+Ka+' has unexpected type of "'+(T?T[1]:"")+'". Expected argument to be an object with the following keys: "'+(wa.join('", "')+
'"');H=Object.keys(H).filter(function(Ua){return!L.hasOwnProperty(Ua)&&!na[Ua]});
H.forEach(function(Ua){na[Ua]=!0});
if((!T||T.type!==K.REPLACE)&&0<H.length)return"Unexpected "+(1<H.length?"keys":"key")+' "'+(H.join('", "')+'" found in '+Ka+'. Expected to find one of the known reducer keys instead: "')+(wa.join('", "')+'". Unexpected keys will be ignored.')}
function r(H){Object.keys(H).forEach(function(L){var T=H[L];if("undefined"===typeof T(void 0,{type:K.g}))throw Error('Reducer "'+L+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof T(void 0,{type:K.cu()}))throw Error('Reducer "'+L+"\" returned undefined when probed with a random type. Don't try to handle "+
(K.g+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}
function t(H,L,T,na){function wa(){if($b)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return sb}
function Ka(xc){if("function"!==typeof xc)throw Error("Expected the listener to be a function.");if($b)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var yc=!0;Sb===Zc&&(Sb=Zc.slice());Sb.push(xc);return function(){if(yc){if($b)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
yc=!1;Sb===Zc&&(Sb=Zc.slice());Sb.splice(Sb.indexOf(xc),1);Zc=null}}}
function Ua(xc){if(!m(xc))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof xc.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if($b)throw Error("Reducers may not dispatch actions.");try{$b=!0,sb=lc(sb,xc)}finally{$b=!1}for(var yc=Zc=Sb,Tb=0;Tb<yc.length;Tb++)(0,yc[Tb])();return xc}
if("function"===typeof L&&"function"===typeof T||"function"===typeof T&&"function"===typeof na)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof L&&"undefined"===typeof T&&(T=L,L=void 0);if("undefined"!==typeof T){if("function"!==typeof T)throw Error("Expected the enhancer to be a function.");return T(t)(H,L)}if("function"!==typeof H)throw Error("Expected the reducer to be a function.");
var lc=H,sb=L,Zc=[],Sb=Zc,$b=!1;Ua({type:K.g});H={};var xh=(H.dispatch=Ua,H.subscribe=Ka,H.getState=wa,H.replaceReducer=function(xc){if("function"!==typeof xc)throw Error("Expected the nextReducer to be a function.");lc=xc;Ua({type:K.REPLACE});return xh},H[J]=function(){var xc={};
return xc.subscribe=function(yc){function Tb(){yc.next&&yc.next(wa())}
if("object"!==typeof yc||null===yc)throw new TypeError("Expected the observer to be an object.");Tb();return{unsubscribe:Ka(Tb)}},xc[J]=function(){return this},xc},H);
return xh}
function w(){}
var x="function"==typeof Object.defineProperties?Object.defineProperty:function(H,L,T){if(H==Array.prototype||H==Object.prototype)return H;H[L]=T.value;return H},y=function(H){H=["object"==typeof globalThis&&globalThis,
H,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var L=0;L<H.length;++L){var T=H[L];if(T&&T.Math==Math)return T}throw Error("Cannot find global object");}(this);
b("Symbol",function(H){function L(wa){if(this instanceof L)throw new TypeError("Symbol is not a constructor");return new T("jscomp_symbol_"+(wa||"")+"_"+na++,wa)}
function T(wa,Ka){this.ZL=wa;x(this,"description",{configurable:!0,writable:!0,value:Ka})}
if(H)return H;T.prototype.toString=function(){return this.ZL};
var na=0;return L});
b("Symbol.iterator",function(H){if(H)return H;H=Symbol("Symbol.iterator");for(var L="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),T=0;T<L.length;T++){var na=y[L[T]];"function"===typeof na&&"function"!=typeof na.prototype[H]&&x(na.prototype,H,{configurable:!0,writable:!0,value:function(){return c(a(this))}})}return H});
var F="function"==typeof Object.assign?Object.assign:function(H,L){for(var T=1;T<arguments.length;T++){var na=arguments[T];if(na)for(var wa in na)Object.prototype.hasOwnProperty.call(na,wa)&&(H[wa]=na[wa])}return H};
b("Object.assign",function(H){return H||F});
b("Array.prototype.keys",function(H){return H?H:function(){return e(this,function(L){return L})}});
var D=this||self,G;D.process=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.process),{env:Object.assign(Object.assign({},null===(G=null===D||void 0===D?void 0:D.process)||void 0===G?void 0:G.env),{Ut:"production"})});var K={g:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),cu:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}},J="function"===typeof Symbol&&Symbol.i||"@@observable";
G={};G.createStore=t;G.combineReducers=function(H){for(var L=Object.keys(H),T={},na=0;na<L.length;na++){var wa=L[na];"production"!==process.env.Ut&&"undefined"===typeof H[wa]&&n('No reducer provided for key "'+wa+'"');"function"===typeof H[wa]&&(T[wa]=H[wa])}var Ka=Object.keys(T),Ua;"production"!==process.env.Ut&&(Ua={});try{r(T)}catch(sb){var lc=sb}return function(sb,Zc){sb=void 0===sb?{}:sb;if(lc)throw lc;if("production"!==process.env.Ut){var Sb=p(sb,T,Zc,Ua);Sb&&n(Sb)}for(var $b=!1,xh={},xc=0;xc<
Ka.length;xc++){Sb=Ka[xc];var yc=sb[Sb],Tb=(0,T[Sb])(yc,Zc);if("undefined"===typeof Tb)throw sb=Zc&&Zc.type,Error("Given "+(sb&&'action "'+String(sb)+'"'||"an action")+', reducer "'+Sb+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');xh[Sb]=Tb;$b=$b||Tb!==yc}return $b||Ka.length!==Object.keys(sb).length?xh:sb}};
G.bindActionCreators=function(H,L){if("function"===typeof H)return h(H,L);if("object"!==typeof H||null===H)throw Error("bindActionCreators expected an object or a function, instead received "+(null===H?"null":typeof H)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var T={},na;for(na in H){var wa=H[na];"function"===typeof wa&&(T[na]=h(wa,L))}return T};
G.applyMiddleware=function(H){for(var L=[],T=0;T<arguments.length;++T)L[T]=arguments[T];return function(na){return function(wa,Ka){function Ua(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
wa=na(wa,Ka);var lc={getState:wa.getState,dispatch:function(sb,Zc){for(var Sb=[],$b=1;$b<arguments.length;++$b)Sb[$b-1]=arguments[$b];return Ua.apply(null,[sb].concat(d(Sb)))}};
Ka=L.map(function(sb){return sb(lc)});
Ua=f.apply(null,d(Ka))(wa.dispatch);return Object.assign(Object.assign({},wa),{dispatch:Ua})}}};
G.compose=f;G.sr=K;"production"!==process.env.Ut&&"string"===typeof w.name&&"isCrushed"!==w.name&&n('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/configuration/mode/) to ensure you have the correct code for your production build.');D.Redux=G}).call(this);g.Ta(ho,g.Df);g.Ta(io,g.Df);var Vda=[2,13,14];io.prototype.getKey=function(){return g.Jf(this,3)};
ho.prototype.Bb=function(){var a=g.Jf(this,11);return null==a?0:a};var mo={};var no=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Da("yt.config_",no,void 0);var qo=[];var qDa,yo,Ao;qDa=g.A.ytPubsubPubsubInstance||new g.Dn;yo=g.A.ytPubsubPubsubSubscribedKeys||{};Ao=g.A.ytPubsubPubsubTopicToKeys||{};g.zo=g.A.ytPubsubPubsubIsSynchronous||{};g.Dn.prototype.subscribe=g.Dn.prototype.subscribe;g.Dn.prototype.unsubscribeByKey=g.Dn.prototype.Nf;g.Dn.prototype.publish=g.Dn.prototype.V;g.Dn.prototype.clear=g.Dn.prototype.clear;g.Da("ytPubsubPubsubInstance",qDa,void 0);g.Da("ytPubsubPubsubTopicToKeys",Ao,void 0);g.Da("ytPubsubPubsubIsSynchronous",g.zo,void 0);
g.Da("ytPubsubPubsubSubscribedKeys",yo,void 0);var Zda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,$da=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Io={};var rDa=0,Oo=g.De?"webkit":og?"moz":g.Be?"ms":g.pg?"o":"",sDa=g.Ha("ytDomDomGetNextId")||function(){return++rDa};
g.Da("ytDomDomGetNextId",sDa,void 0);var cea={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Ro.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Ro.prototype.oE=function(){return this.event?!1===this.event.returnValue:!1};
Ro.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Ro.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var To=g.A.ytEventsEventsListeners||{};g.Da("ytEventsEventsListeners",To,void 0);var Uo=g.A.ytEventsEventsCounter||{count:0};g.Da("ytEventsEventsCounter",Uo,void 0);var tDa=Za(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Vo=Za(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var TB=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.Ta(gp,g.E);gp.prototype.W=function(a){void 0===a.i&&So(a);var b=a.i;void 0===a.l&&So(a);this.i=new g.ie(b,a.l)};
gp.prototype.ol=function(){return this.i||new g.ie};
gp.prototype.X=function(){if(this.i){var a=TB();if(0!=this.B){var b=this.I,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.l[this.u]=.5<Math.abs((d-this.C)/this.C)?1:0;for(c=b=0;4>c;c++)b+=this.l[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.I=this.i;this.u=(this.u+1)%4}};
gp.prototype.da=function(){window.clearInterval(this.L);g.Xo(this.Y)};g.u(lp,hp);lp.prototype.start=function(){var a=g.Ha("yt.scheduler.instance.start");a&&a()};
lp.prototype.pause=function(){var a=g.Ha("yt.scheduler.instance.pause");a&&a()};
Ja(lp);lp.getInstance();var sp={};var iea=/^[\w.]*$/,hea={q:!0,search_query:!0},gea=String(xp);var Ip=new function(){var a=window.document;this.i=window;this.l=a};
g.Da("yt.ads_.signals_.getAdSignalsString",function(a){return yp(Kp(a))},void 0);var Lp="XMLHttpRequest"in g.A?function(){return new XMLHttpRequest}:null;var Op={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","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"},
mea="app debugcss debugjs expflag force_ad_params force_ad_encrypted 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(" "),Vp=!1,ala=Pp;var jq=WF||qI;var rq={},sea=0;var J_;J_=window;g.Q=J_.ytcsi&&J_.ytcsi.now?J_.ytcsi.now:J_.performance&&J_.performance.timing&&J_.performance.now&&J_.performance.timing.navigationStart?function(){return J_.performance.timing.navigationStart+J_.performance.now()}:function(){return(new Date).getTime()};var vea=g.Lo("initial_gel_batch_timeout",1E3),Hq=Math.pow(2,16)-1,Iq=null,Gq=0,vq=void 0,Aq=0,Bq=0,xq=0,Cq=!0,uq=g.A.ytLoggingTransportGELQueue_||new Map;g.Da("ytLoggingTransportGELQueue_",uq,void 0);var sq=g.A.ytLoggingTransportTokensToCttTargetIds_||{};g.Da("ytLoggingTransportTokensToCttTargetIds_",sq,void 0);var Jq=g.A.ytLoggingGelSequenceIdObj_||{};g.Da("ytLoggingGelSequenceIdObj_",Jq,void 0);var Rq=g.Ha("ytglobal.prefsUserPrefsPrefs_")||{};g.Da("ytglobal.prefsUserPrefsPrefs_",Rq,void 0);g.k=g.Sq.prototype;g.k.get=function(a,b){Wq(a);Vq(a);var c=void 0!==Rq[a]?Rq[a].toString():null;return null!=c?c:b?b:""};
g.k.set=function(a,b){Wq(a);Vq(a);if(null==b)throw Error("ExpectedNotNull");Rq[a]=b.toString()};
g.k.remove=function(a){Wq(a);Vq(a);delete Rq[a]};
g.k.save=function(){var a=!0;g.Ko("web_secure_pref_cookie_killswitch")&&(a=!1);g.Oq(this.i,this.dump(),63072E3,this.l,a)};
g.k.clear=function(){g.Qb(Rq)};
g.k.dump=function(){var a=[],b;for(b in Rq)a.push(b+"="+encodeURIComponent(String(Rq[b])));return a.join("&")};
Ja(g.Sq);var Xq={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"};$q.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,g.Sa()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Dj(b))}catch(f){return}else e=escape(b);g.Oq(a,e,c,this.l)};
$q.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Pq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
$q.prototype.remove=function(a){this.i&&this.i.remove(a);g.Qq(a,"/",this.l)};br.prototype.toString=function(){return this.topic};var uDa=g.Ha("ytPubsub2Pubsub2Instance")||new g.Dn;g.Dn.prototype.subscribe=g.Dn.prototype.subscribe;g.Dn.prototype.unsubscribeByKey=g.Dn.prototype.Nf;g.Dn.prototype.publish=g.Dn.prototype.V;g.Dn.prototype.clear=g.Dn.prototype.clear;g.Da("ytPubsub2Pubsub2Instance",uDa,void 0);var er=g.Ha("ytPubsub2Pubsub2SubscribedKeys")||{};g.Da("ytPubsub2Pubsub2SubscribedKeys",er,void 0);var gr=g.Ha("ytPubsub2Pubsub2TopicToKeys")||{};g.Da("ytPubsub2Pubsub2TopicToKeys",gr,void 0);
var fr=g.Ha("ytPubsub2Pubsub2IsAsync")||{};g.Da("ytPubsub2Pubsub2IsAsync",fr,void 0);g.Da("ytPubsub2Pubsub2SkipSubKey",null,void 0);Jr.prototype.It=function(a,b){var c={},d=yl();if(d){c.Authorization=d;var e=d=null===b||void 0===b?void 0:b.sessionIndex;void 0===e&&(e=Number(g.P("SESSION_INDEX",0)),e=isNaN(e)?0:e);c["X-Goog-AuthUser"]=e;"INNERTUBE_HOST_OVERRIDE"in no||(c["X-Origin"]=window.location.origin);g.Ko("pageid_as_header_web")&&void 0===d&&"DELEGATED_SESSION_ID"in no&&(c["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID"))}return c};var hM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Pr=[],Lr,Qr=!1;g.u(g.Tr,Error);var K_={},Wr=(K_.AUTH_INVALID="No user identifier specified.",K_.EXPLICIT_ABORT="Transaction was explicitly aborted.",K_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",K_.MISSING_OBJECT_STORE="Object store not created.",K_.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",K_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",K_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",K_.EXECUTE_TRANSACTION_ON_CLOSED_DB=
"Can't start a transaction on a closed database",K_),L_={},Dea=(L_.AUTH_INVALID="ERROR",L_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",L_.EXPLICIT_ABORT="IGNORED",L_.IDB_NOT_SUPPORTED="ERROR",L_.MISSING_OBJECT_STORE="ERROR",L_.QUOTA_EXCEEDED="WARNING",L_.QUOTA_MAYBE_EXCEEDED="WARNING",L_.UNKNOWN_ABORT="WARNING",L_);g.u(Xr,g.Tr);g.u(Yr,Xr);var Eea=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];$r.all=function(a){return new $r(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Rn:0};f.Rn<a.length;f={Rn:f.Rn},++f.Rn)$r.resolve(a[f.Rn]).then(function(h){return function(l){d[h.Rn]=l;e--;0===e&&b(d)}}(f))["catch"](function(h){c(h)})})};
$r.resolve=function(a){return new $r(function(b,c){a instanceof $r?a.then(b,c):b(a)})};
$r.reject=function(a){return new $r(function(b,c){c(a)})};
$r.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Hea,e=null!==b&&void 0!==b?b:Gea;return new $r(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){bs(c,c,d,f,h)}),c.onRejected.push(function(){cs(c,c,e,f,h)})):"FULFILLED"===c.state.status?bs(c,c,d,f,h):"REJECTED"===c.state.status&&cs(c,c,e,f,h)})};
$r.prototype["catch"]=function(a){return this.then(void 0,a)};hs.prototype.advance=function(a){this.cursor.advance(a);return is(this.request)};
hs.prototype["continue"]=function(a){this.cursor["continue"](a);return is(this.request)};
hs.prototype.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return is(this.request)};
hs.prototype.getKey=function(){return this.cursor.key};g.k=js.prototype;g.k.add=function(a,b,c){return ms(this,[a],{mode:"readwrite",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(d){return os(d,a).add(b,c)})};
g.k.clear=function(a){return ms(this,[a],{mode:"readwrite",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(b){return os(b,a).clear()})};
g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return ms(this,[a],{mode:"readonly",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return os(c,a).count(b)})};
g.k["delete"]=function(a,b){return ms(this,[a],{mode:"readwrite",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return os(c,a)["delete"](b)})};
g.k.get=function(a,b){return ms(this,[a],{mode:"readonly",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(c){return os(c,a).get(b)})};
g.k.getAll=function(a,b,c){return ms(this,[a],{mode:"readonly",Zk:g.Ko("ytidb_transaction_enable_retries_core_and_nwl")},function(d){return os(d,a).getAll(b,c)})};
g.k=ks.prototype;g.k.add=function(a,b){return fs(this.i.add(a,b))};
g.k.clear=function(){return fs(this.i.clear()).then(function(){})};
g.k.count=function(a){return fs(this.i.count(a))};
g.k["delete"]=function(a){return a instanceof IDBKeyRange?Jea(this,a):fs(this.i["delete"](a))};
g.k.get=function(a){return fs(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?fs(this.i.getAll(a,b)):Kea(this,a,b)};
g.k.index=function(a){return new ws(this.i.index(a))};
g.k.getName=function(){return this.i.name};
qs.prototype.abort=function(){this.i.abort();this.aborted=!0;throw new Xr("EXPLICIT_ABORT");};
qs.prototype.commit=function(){var a=this.i;a.commit&&!this.aborted&&a.commit()};
g.k=ws.prototype;g.k.count=function(a){return fs(this.i.count(a))};
g.k["delete"]=function(a){return xs(this,{query:a},function(b){return b["delete"]().then(function(){return b["continue"]()})})};
g.k.get=function(a){return fs(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?fs(this.i.getAll(a,b)):Mea(this,a,b)};
g.k.getKey=function(a){return fs(this.i.getKey(a))};
g.k=ys.prototype;g.k.advance=function(a){this.cursor.advance(a);return vs(this.request)};
g.k["continue"]=function(a){this.cursor["continue"](a);return vs(this.request)};
g.k["delete"]=function(){return fs(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 fs(this.cursor.update(a))};Bs.prototype.l=function(a,b,c){c=void 0===c?{}:c;return zs(a,b,c)};
Bs.prototype["delete"]=function(a){a=void 0===a?{}:a;return As(this.name,a)};
Bs.prototype.open=function(){var a=this;if(!this.i){var b,c=function(){a.i===b&&(a.i=void 0)},d={blocking:function(f){f.close()},
closed:c,FQ:c,upgrade:this.options.upgrade},e=function(){return C(a,function h(){var l=this,m,n,p;return z(h,function(r){switch(r.i){case 1:return sa(r,2),v(r,l.l(l.name,l.options.version,d),4);case 4:m=r.l;a:{var t=g.q(Object.keys(l.options.gz));for(var w=t.next();!w.done;w=t.next())if(w=w.value,!m.i.objectStoreNames.contains(w)){t=w;break a}t=void 0}n=t;if(void 0===n){r.Pb(5);break}if(l.u){r.Pb(6);break}l.u=!0;return v(r,l["delete"](),7);case 7:return r["return"](e());case 6:throw new Yr(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.l(l.name,void 0,Object.assign(Object.assign({},d),{upgrade:void 0})));c();throw p;}})})};
this.i=b=e()}return this.i};var Cs=new Bs("YtIdbMeta",{gz:{databases:!0},upgrade:function(a,b){1>b&&ls(a,"databases",{keyPath:"actualName"})}});var Gs;var Is;g.u(Ms,Bs);Ms.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.bA?Rea:Qea)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))};
Ms.prototype["delete"]=function(a){a=void 0===a?{}:a;return(this.options.bA?Tea:Sea)(this.name,a)};g.u(Os,$r);Os.reject=$r.reject;Os.resolve=$r.resolve;Os.all=$r.all;var Ps;g.u(Ss,g.Wl);g.u(Ws,g.Wl);var Xs;g.$s.prototype.isReady=function(){!this.i&&Zq()&&(this.i=g.Eq());return!!this.i};var $ea=[{ME:function(a){return"Cannot read property '"+a.key+"'"},
xz:{TypeError:[{xh:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{xh:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{xh:/\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"]},{xh:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{xh:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{xh:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{ME:function(a){return"Cannot call '"+a.key+"'"},
xz:{TypeError:[{xh:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{xh:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{xh:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{xh:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{xh:/\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"]},
{xh:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var at;var kt=new g.Dn;var jt=new Set,it=0,afa=0,lt=0,Zea=[],bfa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];mt.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.l=!0,g.Go(b,function(){h.l=!1;var l=0<=b.indexOf("/th/");if(l?window.trayride:window.botguard)nt(h,c,d,f,l);else{l=Ho(b);var m=document.getElementById(l);m&&(Fo(l),m.parentNode.removeChild(m));g.ht(new g.Tr("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Ie("SCRIPT"),e.textContent=a,e.nonce=Ga(),document.head.appendChild(e),document.head.removeChild(e),((a=a.includes("trayride"))?window.trayride:window.botguard)?
nt(this,c,d,f,a):g.ht(Error("Unable to load Botguard from JS")))};
mt.prototype.be=function(){return!!this.i};
mt.prototype.dispose=function(){this.i=null};var efa=[],qt=!1;g.u(tt,Wa);wt.prototype.then=function(a,b,c){return 1===this.Ma&&a?(a=a.call(c,this.i),km(a)?a:zt(a)):2===this.Ma&&b?(a=b.call(c,this.i),km(a)?a:xt(a)):this};
wt.prototype.getValue=function(){return this.i};
wt.prototype.$goog_Thenable=!0;g.u(Bt,Wa);Bt.prototype.name="BiscottiError";g.u(At,Wa);At.prototype.name="BiscottiMissingError";var Dt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ct=null;var hfa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),jfa=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];g.u(Nt,g.E);Nt.prototype.N=function(a,b,c,d,e){c=so((0,g.B)(c,d||this.za));c={target:a,name:b,callback:c};var f;e&&tDa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
Nt.prototype.Gb=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}};
Nt.prototype.da=function(){g.Pt(this);g.E.prototype.da.call(this)};g.Ta(g.R,g.E);g.R.prototype.subscribe=function(a,b,c){return this.na()?0:this.qd.subscribe(a,b,c)};
g.R.prototype.unsubscribe=function(a,b,c){return this.na()?!1:this.qd.unsubscribe(a,b,c)};
g.R.prototype.Nf=function(a){return this.na()?!1:this.qd.Nf(a)};
g.R.prototype.V=function(a,b){return this.na()?!1:this.qd.V.apply(this.qd,arguments)};g.u(g.Tt,g.R);g.k=g.Tt.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.V("dragend",0,0,null));this.l&&(this.l=!1,this.V("hoverend",0,0,null),g.Pt(this.i),St(this))};
g.k.SE=function(a){g.Pt(this.i);Ut(this,Vt("move"),this.QE);Ut(this,Vt("out"),this.RE);Ut(this,"touchstart",this.xA);this.u&&Ut(this,Vt("down"),this.cz);var b=g.Yo(a);a=ap(a);this.l=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
g.k.QE=function(a){var b=g.Yo(a);a=ap(a);if(this.C){var c=this.C;this.C=null;if($o(c)==b&&je(ap(c),a))return}this.V("hovermove",a.x,a.y,b)};
g.k.RE=function(a){var b=ap(a),c=$o(a);try{if(c&&g.Pe(this.I,c)){this.C=a;this.V("hovermove",b.x,b.y,c);return}}catch(d){}g.Pt(this.i);St(this);this.l=!1;this.V("hoverend",b.x,b.y,c)};
g.k.mM=function(a){this.SE(a);this.cz(a)};
g.k.cz=function(a){if("number"!==typeof a.button||0==a.button){g.Pt(this.i);this.i.N(document,Vt("move"),this.lM);this.i.N(document,Vt("up"),this.qM);var b=g.Yo(a);if(g.De)Ut(this,"dragstart",this.PK);else if(g.bp(a),(g.xG||og)&&b)a:{for(var c=b;c;){if(Te(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=ap(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
g.k.PK=function(a){g.bp(a)};
g.k.lM=function(a){var b=g.Yo(a);b==document&&(b=null);a=ap(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
g.k.qM=function(a){g.Pt(this.i);this.B=!1;var b=Zo(a),c=g.Yo(a);a=ap(a);b&&g.Pe(this.I,b)?(Ut(this,Vt("move"),this.QE),Ut(this,Vt("out"),this.RE),Ut(this,Vt("down"),this.cz),Ut(this,"touchstart",this.xA),this.V("dragend",a.x,a.y,c)):(St(this),this.l=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
g.k.xA=function(a){var b=a.changedTouches[0];b&&(g.Pt(this.i),Ut(this,"touchmove",this.LQ),Ut(this,"touchend",this.gH),Ut(this,"touchcancel",this.gH),this.J=b.identifier,a=g.Yo(a),this.l||(this.l=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.u&&(this.B=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
g.k.LQ=function(a){var b=Wt(this,a);b&&(this.u&&g.bp(a),a=g.Yo(a),this.V("hovermove",b.pageX,b.pageY,a),this.u&&this.V("dragmove",b.pageX,b.pageY,a))};
g.k.gH=function(a){var b=Wt(this,a);if(b){g.Pt(this.i);St(this);this.l=!1;var c=g.Yo(a);this.u&&(this.L||g.bp(a),this.B=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
g.k.da=function(){this.u&&(g.De&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.Pt(this.i);g.R.prototype.da.call(this)};Xt.prototype.clone=function(){var a=new Xt,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==La(c)?g.Vb(c):c}return a};var poa=["embedded_player"],vDa=["share/get_web_player_share_panel"],wDa=["feedback"],xDa=["notification/modify_channel_preference"],Nna=["offline"],Zqa=["offline/get_playback_data_entity"],vxa=["player"],yDa=["browse/edit_playlist"],zDa=["subscription/subscribe"],ADa=["subscription/unsubscribe"],xxa=["next","unplugged/watch_next"];var Yt=g.Sa().toString();var ku=g.A.ytLoggingDocDocumentNonce_||$t();g.Da("ytLoggingDocDocumentNonce_",ku,void 0);var Qka={DU:0,sS:1,IS:2,eZ:3,HU:4,M2:5,WZ:6,L0:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var mfa=1;bu.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
bu.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
bu.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Da("yt_logging_screen.getRootVeType",fu,void 0);g.Da("yt_logging_screen.getCurrentCsn",g.iu,void 0);g.Da("yt_logging_screen.getCttAuthInfo",ju,void 0);g.Da("yt_logging_screen.setCurrentScreen",lu,void 0);g.u(mu,ar);var vu=new br("screen-created",mu),tu=[],Pka=pfa,uu=0;var BDa={hS:29434,rS:3611,bW:3854,ZX:42993,C0:4724,R1:96370,hR:27686,jR:85013,kR:23462,mR:42016,nR:62407,oR:26926,lR:43781,qR:51236,rR:79148,sR:50160,tR:77504,NR:87907,OR:18630,QR:54445,RR:80935,YR:105675,ZR:37521,aS:47786,cS:98349,gS:6827,qS:7282,zS:32276,yS:76278,AS:93911,CS:106531,DS:27259,ES:27262,GS:27263,JS:21759,KS:27107,LS:62936,MS:49568,OS:38408,PS:80637,QS:68727,RS:68728,SS:80353,US:80356,VS:74610,WS:45707,XS:83962,YS:83970,ZS:46713,aT:89711,bT:74612,cT:93265,dT:74611,fT:113533,gT:93252,
hT:99357,jT:94521,kT:114252,lT:113532,mT:94522,iT:94583,nT:88E3,oT:93253,pT:93254,qT:94387,rT:94388,sT:93255,tT:97424,eT:72502,uT:110111,vT:76019,xT:117092,yT:117093,wT:89431,zT:110466,AT:77240,BT:60508,CT:105350,DT:73393,ET:113534,FT:92098,GT:84517,HT:83759,IT:80357,JT:86113,KT:72598,LT:72733,NT:107349,OT:118203,PT:117431,QT:117429,RT:117430,ST:117432,TT:120080,UT:117259,VT:121692,XT:97615,ZT:31402,aU:84774,bU:95117,cU:98930,dU:98931,eU:98932,fU:43347,gU:45474,hU:100352,iU:84758,jU:98443,kU:117985,
lU:74613,mU:74614,nU:64502,oU:74615,pU:74616,qU:74617,rU:77820,sU:74618,tU:93278,uU:93274,vU:93275,wU:93276,xU:22110,yU:29433,EU:120541,IU:82047,JU:113550,KU:75836,LU:75837,NU:42352,RU:84512,SU:76065,UU:75989,YU:16623,ZU:32594,aV:27240,cV:32633,kV:74858,nV:3945,mV:16989,oV:45520,pV:25488,qV:25492,rV:25494,tV:55760,uV:14057,vV:18451,wV:57204,xV:57203,yV:17897,zV:57205,AV:18198,BV:17898,CV:17909,EV:43980,FV:46220,NV:11721,UV:49954,aW:96369,iW:56251,jW:25624,pW:16906,qW:99999,sW:68172,tW:27068,wW:47973,
xW:72773,yW:26970,zW:26971,BW:96805,DW:17752,EW:73233,FW:109512,GW:22256,HW:14115,IW:22696,JW:89278,KW:89277,LW:109513,MW:43278,NW:43459,OW:43464,PW:89279,QW:43717,RW:55764,SW:22255,TW:89281,UW:40963,VW:43277,WW:43442,YW:91824,bX:120137,dX:96367,fX:36850,gX:72694,hX:37414,iX:36851,jX:121343,kX:73491,lX:54473,mX:43375,nX:46674,AX:32473,BX:72901,CX:72906,DX:50947,EX:50612,FX:50613,GX:50942,HX:84938,IX:84943,JX:84939,KX:84941,LX:84944,MX:84940,OX:84942,PX:35585,QX:51926,RX:79983,SX:63238,TX:18921,UX:63241,
VX:57893,WX:41182,XX:33424,YX:22207,aY:36229,bY:22206,cY:22205,dY:18993,eY:19001,fY:18990,gY:18991,hY:18997,iY:18725,jY:19003,kY:36874,lY:44763,mY:33427,nY:67793,oY:22182,pY:37091,qY:34650,rY:50617,sY:47261,tY:22287,uY:25144,vY:97917,xY:62397,yY:36961,zY:108035,AY:27426,BY:27857,CY:27846,DY:27854,EY:69692,FY:61411,GY:39299,HY:38696,IY:62520,JY:36382,KY:108701,LY:50663,MY:36387,OY:14908,PY:37533,QY:105443,RY:61635,SY:62274,TY:65702,UY:65703,VY:65701,WY:76256,ZY:37671,aZ:49953,hZ:36216,iZ:28237,jZ:39553,
kZ:29222,lZ:26107,mZ:38050,nZ:26108,pZ:120745,oZ:26109,qZ:26110,rZ:66881,sZ:28236,tZ:14586,wZ:57929,yZ:74723,zZ:44098,AZ:44099,BZ:23528,CZ:61699,DZ:59149,EZ:101951,FZ:97346,GZ:118051,HZ:95102,IZ:64882,JZ:119505,KZ:63595,LZ:63349,MZ:95101,NZ:75240,OZ:27039,PZ:68823,QZ:21537,RZ:83464,SZ:75707,TZ:83113,UZ:101952,VZ:101953,XZ:79610,b_:24402,c_:24400,d_:32925,e_:57173,f_:64423,g_:64424,h_:33986,i_:100828,j_:21409,u_:11070,v_:11074,w_:17880,x_:14001,z_:30709,A_:30707,B_:30711,C_:30710,D_:30708,y_:26984,
E_:63648,F_:63649,H_:51879,M_:111059,O_:5754,P_:20445,T_:110386,V_:113746,W_:66557,e0:17310,f0:28631,h0:21589,j0:68012,k0:60480,l0:31571,q0:76980,r0:41577,s0:45469,w0:38669,x0:13768,y0:13777,B0:62985,D0:59369,E0:43927,F0:43928,I0:12924,K0:100355,N0:56219,O0:27669,P0:10337,M0:47896,Q0:121258,R0:107598,S0:96639,T0:107536,U0:96661,V0:96658,W0:116646,X0:121122,Y0:96660,Z0:104443,b1:96659,d1:106442,g1:63667,h1:63668,j1:63669,q1:78314,v1:55761,z1:96368,A1:67374,B1:48992,E1:49956,J1:31961,K1:26388,P1:23811,
Q1:5E4,S1:47355,T1:47356,U1:37935,V1:45521,W1:21760,X1:83769,Y1:49977,Z1:49974,b2:93497,d2:93498,e2:34325,g2:115803,h2:100081,j2:35309,k2:68314,l2:25602,m2:100339,o2:59018,q2:18248,r2:50625,s2:9729,t2:37168,u2:37169,v2:21667,w2:16749,x2:18635,y2:39305,z2:18046,B2:53969,C2:8213,E2:93926,H2:102852,I2:110099,J2:22678,K2:69076,N2:100856,P2:17736,Q2:3832,S2:55759,T2:64031,U2:93044,W2:93045,Y2:34388,Z2:17657,b3:17655,d3:39579,e3:39578,f3:77448,g3:8196,h3:11357,j3:69877,k3:8197,m3:82039};Au.prototype.clear=function(){this.l.clear();this.i.clear();this.u.clear()};
Ja(Au);var Cu;g.Bu=Za(function(){var a=new Nn;return a.isAvailable()?new g.Kn(a):null});
Cu=Za(function(){var a=new On;return a.isAvailable()?new g.Kn(a):null});var Mu=void 0;var M_={},Wu=Ns("yt-player-local-media",{gz:(M_.index=!0,M_.media=!0,M_.metadata=!0,M_.playerdata=!0,M_),bA:!0,upgrade:function(a,b){2>b&&(ls(a,"index"),ls(a,"media"));3>b&&ls(a,"metadata");4>b&&ls(a,"playerdata")},
version:4}),Uu=!1;hv.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};lv.prototype.then=function(a,b){return this.promise.then(a,b)};
lv.prototype.resolve=function(a){this.l(a)};
lv.prototype.reject=function(a){this.i(a)};var oR=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}();xv.prototype.skip=function(a){this.i+=a};
xv.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var Iv=!1;var N_={},CDa=(N_.predictStart="predictStart",N_.start="start",N_["continue"]="continue",N_.stop="stop",N_),Efa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var $v=!1;var qw=!0;yw.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
yw.prototype.isVideo=function(){return!!this.i.info.video};Fw.prototype.append=function(a){if(Gw(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);Iw(this)}else this.i.push(a);this.totalLength+=a.length};
Fw.prototype.split=function(a){for(var b=new Fw,c=new Fw,d=g.q(this.i),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{Yt:b,Kn:c}};
Fw.prototype.isFocused=function(a){return a>=this.u&&a<this.u+this.i[this.l].length};
Fw.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.u&&Iw(this);this.u+this.i[this.l].length<=a&&this.l<this.i.length;)this.u+=this.i[this.l].length,this.l+=1;this.B=void 0}};Pw.prototype.verify=function(a){if(this.info.l!==this.i.totalLength)return a.slength=this.info.l.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.l||4===this.info.type)return!0;var b=Qw(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.l&&1936286840===b;if(3===this.info.type&&0===this.info.rb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.l||4===this.info.type)return!0;c=Qw(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.rb)return 524531317===c||440786851===c}return!0};var Kx={vd:function(a,b){a.splice(0,b)},
Yp:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
r1:function(a){a.reverse()}};var Eya=/^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\/)/,Px=/^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}\.)+(corp\.)?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\/)/,
Fya=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,Yfa=/^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)|$))/,
Zfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Wfa=/^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)|$))/,Tfa=/^((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\/)/,
Ufa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Gya=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Vfa=/^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)/,Rfa=/^((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\/.*$)/,
Sfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Hha=/^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)/,
Fha=/^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)/,
Gha=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?(\/|$)/,DDa=/^(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|youtubekids)\.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$)/,
EDa=/^(https\:\/\/plus\.google\.com)$/;var Nx=!1;Xx.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
Xx.prototype.get=function(a){Zx(this);return this.i[a]||null};
Xx.prototype.clone=function(){var a=new Xx(this.l,this.B);a.scheme=this.scheme;a.path=this.path;a.u=this.u;a.i=g.Vb(this.i);a.url=this.url;return a};gy.prototype.set=function(a,b){this.Ig.get(a);this.i[a]=b;this.url=""};
gy.prototype.get=function(a){return this.i[a]||this.Ig.get(a)};g.k=qy.prototype;g.k.Je=function(){return!!this.i&&this.index.Wc()};
g.k.Un=function(){return!1};
g.k.iB=function(a){return[a]};
g.k.Xu=function(a){return[a]};
g.k.Bo=function(){var a=g.q(this.info.id.split(";")),b=a.next().value;a=a.next().value;return b+";;"+(void 0===a?"":a)};g.k=ry.prototype;g.k.Wx=function(){return 0};
g.k.jB=function(){return null};
g.k.FD=function(){return null};
g.k.isComplete=function(){return 4<=this.state};
g.k.isFailed=function(){return 6===this.state};
g.k.Hr=function(){this.callback&&this.callback(this)};
g.k.na=function(){return-1===this.state};
g.k.dispose=function(){this.info.kh()&&5!==this.state&&(this.info.i[0].i.u=!1);ty(this,-1)};vy.prototype.kh=function(){return zw(this.i[0])};g.k=g.Cy.prototype;g.k.ck=function(a){return this.offsets[a]};
g.k.jf=function(a){return this.i[a]/this.u};
g.k.Qt=ba(1);g.k.gf=function(){return NaN};
g.k.jy=function(){return null};
g.k.getDuration=function(a){a=this.BD(a);return 0<=a?a/this.u:-1};
g.k.BD=function(a){return a+1<this.count||this.l?this.i[a+1]-this.i[a]:-1};
g.k.Th=function(){return 0};
g.k.Rb=function(){return this.count-1};
g.k.nl=function(){return this.l?this.i[this.count]/this.u:NaN};
g.k.Hc=function(){return 0};
g.k.Eo=function(){return this.count};
g.k.iy=function(){return""};
g.k.oh=function(a){a=g.vb(this.i.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.Wc=function(){return 0<=this.Rb()};
g.k.JD=function(a,b){if(a>=this.Rb())return 0;for(var c=0,d=this.jf(a)+b,e=a;e<this.Rb()&&d>this.jf(e);e++)c=Math.max(c,(e+1<this.count||this.l?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.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
g.k.cap=function(a,b){Dy(this);this.l=!0;this.i[this.count]=b;this.offsets[this.count]=a};g.u(Ey,qy);g.k=Ey.prototype;g.k.an=function(a){var b=new yw(1,this,this.initRange,"initInfo"),c=new yw(2,this,this.indexRange,"indexInfo"),d=[],e=[b];qv(b,c)?e.push(c):(d.push(new vy([c])),a=0);isNaN(this.contentLength)&&(a=0);b=e[e.length-1];a=Math.min(a,this.contentLength-(b.range.end-e[0].range.start+1));0<a&&(a=jv(b.range.end+1,a),e.push(new yw(4,this,a,"tbdRange")));d.push(new vy(e));return d};
g.k.ty=function(a){if(1===a.info.type){if(this.i)return;this.i=Mw(a.i)}else if(2===a.info.type){if(this.J||0<=this.index.Rb())return;if(g.Tw(this.info)){var b=this.index,c=Qw(a);a=a.info.range.start;var d=g.Nv(c,0,1936286840);c=Wv(d);b.u=c.ov;var e=c.RK;b.offsets[0]=c.oD+a+d.size;b.i[0]=e;b.l=!0;a=c.kv.length;for(d=0;d<a;d++){e=b;var f=c.Fz[d],h=c.kv[d];e.count++;Dy(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.i[e.count]=e.i[e.count-1]+h}}else this.J=Qw(a)}if(this.info.ce()&&this.i&&this.J){c=new DataView(this.i.buffer);
b=this.index;a=this.J;d=this.indexRange.end;e=new aw(c);c=pw(e);if(null!==c&&(b.u=c.pA/c.oA,e=new aw(a),a=rw(e,c.Tr,d),null!==a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Pm,f=f.qt,Dy(d),d.offsets[d.count]=e,d.i[d.count]=f,d.count++;b.cap(c.Qz+c.Tr,c.duration)}this.J=null}};
g.k.iB=function(a){for(var b=this.Xu(a.info),c=a.info.range.start+a.info.rb,d=a.u,e=[],f=0;f<b.length;f++){var h=b[f].l;h=a.i.split(b[f].range.start+b[f].rb-c).Kn.split(h).Yt;e.push(new Pw(b[f],h,d));d=!1}return e};
g.k.Xu=function(a){for(var b=a.range.start+a.rb,c=0;c<this.index.Rb()&&b>=this.index.ck(c+1);)c++;return Fy(this,c,b,a.l).i};
g.k.Hk=function(a){return this.Je()?!0:isNaN(this.contentLength)?!1:a.range.end+1<this.contentLength};
g.k.Tn=function(a,b){this.Hk(a);if(!this.Je()){var c=jv(a.range.end+1,b);c.end+1>this.contentLength&&(c=new hv(c.start,this.contentLength-1));c=[new yw(4,a.i,c,"getNextRequestInfoByLength")];return new vy(c)}4===a.type&&(c=this.Xu(a),a=c[c.length-1]);c=0;var d=a.range.start+a.rb+a.l;3===a.type&&(c=a.va,d===a.range.end+1&&(c+=1));return Fy(this,c,d,b)};
g.k.Pp=function(){return null};
g.k.pl=function(a,b){b=void 0===b?!1:b;var c=this.index.oh(a);b&&(c=Math.min(this.index.Rb(),c+1));return Fy(this,c,this.index.ck(c),0)};
g.k.Qf=function(){return!0};
g.k.mr=function(){return!1};
g.k.dy=function(){return this.indexRange.length+this.initRange.length};
g.k.zz=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};
g.k.Bo=function(){var a=g.q(this.info.id.split(";")),b=a.next().value;a=a.next().value;return b+";"+this.lastModified+";"+(void 0===a?"":a)};Iy.prototype.skip=function(a){this.offset+=a};
Iy.prototype.ck=function(){return this.offset};var Zy=!1;g.u(Ly,g.R);Ly.prototype.Bh=function(){this.l.shift()};
Ly.prototype.getDuration=function(){return this.B.index.nl()};g.k=g.dz.prototype;g.k.cw=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Rh(a))?a.duration:0};
g.k.BD=function(a){return this.getDuration(a)};
g.k.Th=function(){return this.segments.length?this.segments[0].va:-1};
g.k.gf=function(a){return(a=this.Rh(a))?a.ingestionTime:NaN};
g.k.jy=function(a){return(a=this.Rh(a))?a.i:null};
g.k.Rb=function(){return this.segments.length?this.segments[this.segments.length-1].va:-1};
g.k.nl=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Hc=function(){return this.segments[0].startTime};
g.k.Eo=function(){return this.segments.length};
g.k.ck=function(){return 0};
g.k.oh=function(a){return(a=this.xo(a))?a.va:-1};
g.k.iy=function(a){return(a=this.Rh(a))?a.sourceURL:""};
g.k.jf=function(a){return(a=this.Rh(a))?a.startTime:0};
g.k.Qt=ba(0);g.k.Wc=function(){return 0<this.segments.length};
g.k.Rh=function(a){a=g.vb(this.segments,new uy(a,0,0,0,""),function(b,c){return b.va-c.va});
return 0<=a?this.segments[a]:null};
g.k.xo=function(a){a=g.vb(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.ob(a),this.segments.length){var b=this.segments.length?g.ab(this.segments).endTime:0,c=a[0].va-this.Rb();1<c&&ib(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.JD=function(){return 0};g.u(fz,qy);g.k=fz.prototype;g.k.Qf=function(){return!1};
g.k.mr=function(){return!1};
g.k.Un=function(){return!this.X};
g.k.an=function(){if(this.Un())return[];var a=new yw(1,this,this.initRange,"getMetadataRequestInfos");return[new vy([a],this.X)]};
g.k.Tn=function(){return null};
g.k.Pp=function(a){this.Hk(a);return this.Ik(a.yd?a.va+1:a.va,!1)};
g.k.pl=function(a,b){b=void 0===b?!1:b;var c=this.index.oh(a);b&&(c=Math.min(this.index.Rb(),c+1));return this.Ik(c,!0)};
g.k.ty=function(a){this.i=new Uint8Array(Qw(a).buffer)};
g.k.Hk=function(a){return 0===a.l?!0:this.index.Rb()>a.va&&this.index.Th()<=a.va+1};
g.k.update=function(a,b,c){this.index.append(a);ez(this.index,c);this.J=b};
g.k.Je=function(){return this.Un()?!0:qy.prototype.Je.call(this)};
g.k.Ik=function(a,b){var c=this.index.iy(a),d=this.index.jf(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.l?this.info.l*e:1E3;var h=!b,l=f;f=a===this.index.Rb()&&!this.J&&0<f;d=new yw(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,h);return new vy([d],c)};
g.k.dy=function(){return this.Un()?0:this.initRange.length};
g.k.zz=function(){return!1};g.u(jz,g.R);g.k=jz.prototype;g.k.hasDecryptedBytes=function(){return Object.values(this.i).some(function(a){return a.hasDecryptedBytes})};
g.k.isFailed=function(a){var b;return null===(b=this.i[a])||void 0===b?void 0:b.isFailed};
g.k.rg=function(a){a=(a=this.i[a])&&a.slices;return!(!a||!a.totalLength)};
g.k.isComplete=function(a){return(a=this.i[a])&&a.isComplete};
g.k.Bh=function(a){var b=this.i[a].slices;this.i[a].bytesShifted+=b.totalLength;this.i[a].slices=new Fw;return b};
g.k.aa=function(){};g.u(kz,ry);g.k=kz.prototype;g.k.Hr=function(a){lz(this);ry.prototype.Hr.call(this,a)};
g.k.Hs=function(){return{}};
g.k.AD=function(){return 0};
g.k.fj=function(){return!0};
g.k.kB=function(){this.L=!0;return iz(this.i)};
g.k.kp=function(){return 1>this.state?!1:!!this.i.slices.length};
g.k.bw=function(){lz(this);return this.i.slices};uz.prototype.cg=function(){return My(this.B)};
uz.prototype.Bh=function(a){this.B.Bh(a);a=a.info;a.i.info.l>=this.ca&&(this.ca=a.i.info.l)};
uz.prototype.getDuration=function(){return this.i.index.nl()};var oha={VR:"auto",H1:"tiny",eX:"light",n1:"small",YY:"medium",aX:"large",TV:"hd720",PV:"hd1080",QV:"hd1440",RV:"hd2160",SV:"hd2880",ZV:"highres",UNKNOWN:"unknown"};bA.prototype.update=function(a,b){var c=void 0;this.l&&(c=this.l);var d=new bA,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Yz(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+Yz(a,"startNumber")||0;d.B=h;var m=h;var n=+Yz(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(aA(Yz(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.J=Yz(a,"media"));var p=c?l-c.va: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,x=0;x<=w;x++)if(c&&l<=c.va)l++;else{var y=new qga(l,m,r,n+t,h);d.i.push(y);var F=y.startSecs;y=p.getAttribute("yt:cuepointTimeOffset");var D=p.getAttribute("yt:cuepointDuration");if(y&&D){y=Number(y);F=(Iv?y/f:-y/f)+F;D=Number(D)/f;var G=p.getAttribute("yt:cuepointContext")||null,K=p.getAttribute("yt:cuepointIdentifier")||"";var J=p.getAttribute("yt:cuepointEvent")||"";J=CDa[J]||"unknown";
y=new Fv(F,D,G,K,J,y)}else y=null;y&&d.u.push(y);l++;m+=r;h+=r;n+=r+t}}d.i.length&&(d.l=g.ab(d.i))}this.I=d.I;this.l=d.l||this.l;pb(this.i,d.i);pb(this.u,d.u);this.C=d.C;this.J=d.J;-1===this.B&&(this.B=d.getStreamTimeOffset())};
bA.prototype.getStreamTimeOffset=function(){return-1===this.B?0:this.B};g.u(gA,g.dz);g.k=gA.prototype;g.k.Th=function(){return this.Hi?this.segments.length?this.xo(this.Hc()).va:-1:g.dz.prototype.Th.call(this)};
g.k.Hc=function(){if(this.xe)return 0;if(!this.Hi)return g.dz.prototype.Hc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.ab(this.segments).endTime-this.Wj,0);return 0<this.Od&&this.xo(a).va<this.Od?this.Rh(this.Od).startTime:a};
g.k.nl=function(){if(!this.segments.length)return g.dz.prototype.nl.call(this);var a=this.Rb();if(!this.Hi||a<=this.segments[this.segments.length-1].va)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new uy(a,Math.max(0,b.startTime-(b.va-a)*this.fg),this.fg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.l&&a.pending&&3===this.l?this.xe?Math.min(this.Wj,a.startTime):a.startTime:this.xe?Math.min(this.Wj,a.endTime):a.endTime};
g.k.Eo=function(){return this.Hi?this.segments.length?this.Rb()-this.Th()+1:0:g.dz.prototype.Eo.call(this)};
g.k.Rb=function(){var a=Math.min(this.Yf,Math.max(g.dz.prototype.Rb.call(this),this.Qp)),b=1E3*this.Wj;b=0<this.i&&this.i<b;this.xe&&0<this.Wj&&0<this.Qp&&!b&&(b=this.xo(this.Wj))&&(a=Math.min(b.va-1,a));return a};
g.k.Co=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.cw=function(a){var b=hA(this,a.va);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.vr&&0===a.va%(300/this.fg)){var c=this.segments[0].va,d=Math.floor(this.vr/this.fg);a=a.va-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.xo=function(a){if(!this.Hi)return g.dz.prototype.xo.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].va-Math.ceil((this.segments[0].startTime-a)/this.fg));else if(a>=b.endTime)b=b.va+Math.floor((a-b.endTime)/this.fg+1);else{b=wb(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.va-b.va-1))+1)+b.va}return this.Rh(b)};
g.k.Rh=function(a){if(!this.Hi)return g.dz.prototype.Rh.call(this,a);if(!this.segments.length)return null;var b=hA(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.fg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].va-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.va-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.va-d.va-1),d=d.endTime+(a-d.va-1)*b);return new uy(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.u(jA,fz);g.k=jA.prototype;g.k.mr=function(){return!0};
g.k.Je=function(){return!0};
g.k.Hk=function(a){return!a.u};
g.k.an=function(){return[]};
g.k.pl=function(a,b){b=void 0===b?!1:b;if("number"===typeof a&&!isFinite(a)){var c=new yw(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ch,void 0,this.Ch*this.info.l);return new vy([c],"")}return fz.prototype.pl.call(this,a,b)};
g.k.Ik=function(a,b){var c=void 0===c?!1:c;if(iA(this.index,a))return fz.prototype.Ik.call(this,a,b);var d=this.index.jf(a),e=b?0:this.Ch*this.info.l,f=!b;c=new yw(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.Rb()&&!this.J&&0<e,f);return new vy([c],0<=a?"sq/"+a:"")};g.u(kA,qy);g.k=kA.prototype;g.k.Qf=function(){return!1};
g.k.mr=function(){return!1};
g.k.an=function(){if(this.J){var a=new yw(1,this,void 0,"otfInit");return[new vy([a],this.J)]}a=new yw(1,this,this.initRange,"otfInitInfo");var b=new yw(2,this,this.indexRange,"otfIndexInfo");return[new vy([a,b])]};
g.k.Tn=function(){return null};
g.k.Pp=function(a){this.Hk(a);return lA(this,a.va+(a.yd?1:0),!1)};
g.k.pl=function(a,b){b=void 0===b?!1:b;var c=this.index.oh(a);b&&(c=Math.min(this.index.Rb(),c+1));return lA(this,c,!0)};
g.k.ty=function(a){if(1===a.info.type)this.i||(this.i=Mw(a.i)),a.l&&"http://youtube.com/streaming/otf/durations/112015"===a.l.uri&&yga(this,a.l);else if(2===a.info.type)if(g.Tw(this.info)){if(!this.index.Wc()&&(a=g.Nv(Qw(a),0,1936286840))){var b=[],c=Wv(a);a=c.Fz.length;var d=c.ov,e=c.Fz,f=c.kv;c=this.indexRange.end+c.oD+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new uy(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.ce()&&this.i&&(d=new aw(new DataView(this.i.buffer)),
b=pw(d))&&(d=new aw(Qw(a)),a=rw(d,b.Tr,this.indexRange.end))){d=[];e=b.oA/b.pA;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.qt*e,d.push(new uy(c,m,l.qt*e-m,NaN,"range/"+h.Pm+"-"+(l.Pm-1)));c=a[f].qt*e;d.push(new uy(f,c,b.duration*e-c,NaN,"range/"+a[f].Pm+"-"+(b.Qz+b.Tr)));this.index.append(d)}};
g.k.Hk=function(a){return 0===a.l?!0:this.index.Rb()>a.va&&this.index.Th()<=a.va+1};
g.k.dy=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.zz=function(){return!1};var O_={},YE=(O_.WIDTH={name:"width",video:!0,valid:640,invalid:99999},O_.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},O_.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},O_.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},O_.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},O_.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},O_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},O_.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},O_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},O_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},O_);var tA={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 P_;P_={};g.pA=(P_.auto=0,P_.tiny=144,P_.light=144,P_.small=240,P_.medium=360,P_.large=480,P_.hd720=720,P_.hd1080=1080,P_.hd1440=1440,P_.hd2160=2160,P_.hd2880=2880,P_.highres=4320,P_);var rA="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");qA.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=uA.prototype;g.k.Na=function(){return this.video};
g.k.Vb=function(){return this.id.split(";",1)[0]};
g.k.ce=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Qd};
g.k.isAudio=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};zA.prototype.getName=function(){return this.name};
zA.prototype.getId=function(){return this.id};
zA.prototype.getIsDefault=function(){return this.isDefault};
zA.prototype.toString=function(){return this.name};
zA.prototype.getName=zA.prototype.getName;zA.prototype.getId=zA.prototype.getId;zA.prototype.getIsDefault=zA.prototype.getIsDefault;g.u(HA,g.R);g.k=HA.prototype;g.k.appendBuffer=function(a,b,c){if(this.Pc.Ht()!==this.appendWindowStart+this.start||this.Pc.Vx()!==this.appendWindowEnd+this.start||this.Pc.pc()!==this.timestampOffset+this.start)this.Pc.supports(1),this.Pc.Uz(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Pc.xp(this.timestampOffset+this.start);this.Pc.appendBuffer(a,b,c)};
g.k.abort=function(){this.Pc.abort()};
g.k.remove=function(a,b){this.Pc.remove(a+this.start,b+this.start)};
g.k.Uz=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.ky=function(){return this.timestampOffset+this.start};
g.k.Ht=function(){return this.appendWindowStart};
g.k.Vx=function(){return this.appendWindowEnd};
g.k.xp=function(a){this.timestampOffset=a};
g.k.pc=function(){return this.timestampOffset};
g.k.He=function(a){a=this.Pc.He(void 0===a?!1:a);return tz(a,this.start,this.end)};
g.k.Wf=function(){return this.Pc.Wf()};
g.k.Zm=function(){return this.Pc.Zm()};
g.k.Jt=function(){return this.Pc.Jt()};
g.k.FA=function(a,b){this.Pc.FA(a,b)};
g.k.supports=function(a){return this.Pc.supports(a)};
g.k.Kt=function(){return this.Pc.Kt()};
g.k.isView=function(){return!0};
g.k.xs=function(a,b,c){return this.isActive?this.Pc.xs(a,b,c):!1};
g.k.dx=function(){return this.Pc.dx()?this.isActive:!1};
g.k.isLocked=function(){return this.Bs&&!this.isActive};
g.k.nb=function(a){return this.Pc.nb(a)+(";vw."+this.start+"-"+this.end)};
g.k.Pq=function(){return this.Pc.Pq()};
g.k.da=function(){Rt(this.Pc,this.XD);g.R.prototype.da.call(this)};g.u(LA,g.R);g.k=LA.prototype;g.k.appendBuffer=function(a,b,c){var d;this.ct=!1;c&&(this.iu=c);b&&(b.isEncrypted()&&(this.xE=this.iu),3===b.type&&(this.ne=b));(null===(d=this.Yb)||void 0===d?0:d.appendBuffer)?this.Yb.appendBuffer(a):this.Yb?this.Yb.append(a):this.ee&&this.ee.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Yb?this.Yb.abort():this.ee&&this.ee.webkitSourceAbort(this.id)}catch(a){}this.iu=this.ne=null};
g.k.remove=function(a,b){var c;this.ct=!1;(null===(c=this.Yb)||void 0===c?0:c.remove)&&this.Yb.remove(a,b)};
g.k.Ht=function(){var a;return Zy&&this.isVideo?this.appendWindowStart:(null===(a=this.Yb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.Vx=function(){var a;return(null===(a=this.Yb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.Uz=function(a,b){this.Yb&&(Zy&&this.isVideo?(this.appendWindowStart=a,this.Yb.appendWindowEnd=b):a>this.Ht()?(this.Yb.appendWindowEnd=b,this.Yb.appendWindowStart=a):(this.Yb.appendWindowStart=a,this.Yb.appendWindowEnd=b))};
g.k.ky=function(){return this.timestampOffset};
g.k.xp=function(a){Zy?this.timestampOffset=a:this.supports(1)&&(this.Yb.timestampOffset=a)};
g.k.pc=function(){return Zy?this.timestampOffset:this.supports(1)?this.Yb.timestampOffset:0};
g.k.He=function(a){if(void 0===a?0:a)return this.ct||this.Wf()||(this.BC=this.He(!1),this.ct=!0),this.BC;try{return this.Yb?this.Yb.buffered:this.ee?this.ee.webkitSourceBuffered(this.id):mz([0],[Infinity])}catch(b){return mz([],[])}};
g.k.Wf=function(){var a;return(null===(a=this.Yb)||void 0===a?void 0:a.updating)||!1};
g.k.Zm=function(){return this.iu};
g.k.Jt=function(){return this.xE};
g.k.FA=function(a,b){this.containerType!==a&&(this.supports(4),MA()&&this.Yb.changeType(b));this.containerType=a};
g.k.Kt=function(){return this.ne};
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.Yb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Yb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Yb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Yb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Yb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Yb||!this.Yb.changeType);default:return!1}};
g.k.dx=function(){return!this.Wf()};
g.k.isLocked=function(){return!1};
g.k.nb=function(a){var b,c;a.to=""+this.pc();a.up=""+ +this.Wf();var d=(null===(b=this.Yb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Yb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=nz(this.He())}catch(f){}return g.JA(a)};
g.k.da=function(){this.supports(3)&&(this.Yb.removeEventListener("updateend",this.Sd),this.Yb.removeEventListener("error",this.Sd));g.R.prototype.da.call(this)};
g.k.xs=function(a,b,c){if(!this.supports(2)||this.Wf())return!1;var d=this.He(),e=oz(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.aa();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.aa(),this.remove(0,l),!0}catch(m){}return!1};
g.k.aa=function(){};
g.k.Pq=function(){return this.containerType};NA.prototype.dispose=function(){if(!this.na){if(this.l)try{URL.revokeObjectURL(this.i)}catch(a){}this.u=!0}};
NA.prototype.na=function(){return this.u};
NA.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.u(OA,g.E);OA.prototype.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.u};
OA.prototype.Wf=function(){return!!(this.i&&this.i.Wf()||this.l&&this.l.Wf())};
OA.prototype.C=function(){!this.na()&&PA(this)&&this.callback&&(this.callback(this),this.callback=null)};
OA.prototype.B=function(){this.dispose()};var Ega=/action_display_post/;g.u(YA,g.R);g.k=YA.prototype;g.k.isFailed=function(){return 3==this.Ma};
g.k.NP=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.ej=this.u=!0;this.C||(this.C=new sga);wga(this.C,a,this.Ha);this.V("refresh");for(a=0;a<c.length;a++){var d=mB(this,c[a]),e=this.isLive&&g.Tw(d)&&this.La;if(!this.i[d.id]){var f=gB(Zz(c[a],"BaseURL").textContent),h=Zz(c[a],"Initialization"),l=Yz(h,"sourceURL");h=iv(Yz(h,"range"));e&&(l="",h=void 0);this.i[d.id]=new fz(f,d,l,
null===h?void 0:h)}d=this.i[d.id];f=Yz(c[a],"id","AdaptationSet");f=""!=f?f:Yz(c[a],"mimetype","AdaptationSet");l=this.C;l=l.u[d.info.id]||l.l[f]||l.i||null;f=l.i;!this.l&&l.getStreamTimeOffset()&&(this.l=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.l,p=h.va,r=h.startSecs;var t=l.J.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 uy(h.va,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.l))}else{l=qb(Zz(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;r=f[m];t=void 0;var w=l[m];b=w.getAttribute("media");if(!e&&(w=w.getAttribute("mediaRange"),null!=w)){var x=w.split("-");0<=parseInt(x[1],10)?t=iv(w):b=b+"?range="+w}p.call(n,new uy(r.va,r.startSecs,r.durationSecs,r.i,b,t,r.l))}e=h}d.update(e,this.isLive,this.la)}xga(this.C);
return!0}this.duration=$z(Yz(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){l=c[a];d=mB(this,l);f=Zz(l,"BaseURL");e=gB(f.textContent);h=Zz(l,"SegmentBase");l=iv(h.attributes.indexRange.value);h=iv(h.getElementsByTagName("Initialization")[0].attributes.range.value);f=parseInt(f.getAttribute(kB(this,"contentLength")),10);d=new Ey(e,d,h,l,f,NaN);if(!d){c=!1;break a}dB(this,d)}c=!0}return c};
g.k.sL=function(a){if(this.na())return this;this.X=a.status;a=a.responseText;var b=new DOMParser;a=pd(b,jg(a),"text/xml").getElementsByTagName("MPD")[0];this.W=1E3*$z(Yz(a,"minimumUpdatePeriod"))||Infinity;if(!this.ga){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.ma=b}this.isLive=Infinity>this.W&&this.Pa;this.la=parseInt(Yz(a,kB(this,"earliestMediaSequence")),10)||0;if(b=Date.parse(aA(Yz(a,
kB(this,"mpdResponseTime")))))this.Y=(g.Sa()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.fh(a.getElementsByTagName("Period"),this.NP,this);this.Ma=2;this.V("loaded");pB(this);return this};
g.k.tL=function(a){this.X=a.xhr.status;this.Ma=3;this.V("loaderror");return rm(a.xhr)};
g.k.refresh=function(){if(1!=this.Ma&&!this.na()){var a=g.Od(this.sourceUrl,{start_seq:Qga(this).toString()});g.xm(nB(this,a),function(){})}};
g.k.resume=function(){pB(this)};
g.k.Hc=function(){if(this.isManifestless&&this.I&&this.l&&this.I-this.l)return this.I&&this.l?this.I-this.l:0;var a=this.i,b;for(b in a){var c=a[b].index;if(c.Wc())return c.Hc()}return 0};
g.k.getStreamTimeOffset=function(){return this.l};
g.k.gf=function(a){for(var b in this.i){var c=this.i[b].index;if(c.Wc()){var d=c.oh(a),e=c.gf(d);if(e)return e+a-c.jf(d)}}return NaN};
var hB=null,iB=!1,lB={commentary:1,alternate:2,dub:3,main:4};g.u(uB,g.R);uB.prototype.ea=function(a,b){var c=this.J.i.index.Rb()<=b,d=this.W.isManifestless&&this.B.ea;this.i={md:a,va:b};this.B.ea&&this.X&&this.u&&(this.X=!1,"continue"!=a.event&&"stop"!=a.event||yB(this,this.u));this.u&&this.u.va==b&&(this.u=null);(c||d)&&vB(this,a,b)};g.u(AB,g.R);AB.prototype.seek=function(a){a!=this.B&&(this.I=0);this.B=a;var b=this.l.l,c=this.i.l,d=this.i.J,e=DB(this,this.l,a,this.l.J);d=DB(this,this.i,this.W.Ja?a:e,d);e=Math.max(a,e,d);this.u=!0;this.C.isManifestless&&(BB(this.l,b),BB(this.i,c));zB(this.X,a);return e};
var Vga=2/24;IB.prototype.yG=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.u+=a;var d=a/b;HB.forEach(function(e,f){d<e||(c.l[f]+=b)})};
IB.prototype.toString=function(){return""};
var HB=[20,100,500,2E3];g.k=LB.prototype;g.k.isActive=function(){return!0};
g.k.fu=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.Kv=a.prototype[e],d.Mv=b[e],a.prototype[e]=function(f){return function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];m=(0,g.Q)();l=f.Kv.apply(this,l);MB(c,f.Mv,(0,g.Q)()-m);return l}}(d)),d={Kv:d.Kv,
Mv:d.Mv}}};
g.k.Bc=function(a,b){var c=this;return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.Q)();e=b.apply(null,e);MB(c,a,(0,g.Q)()-f);return e}};
g.k.Zr=function(a){return new KB(a)};
g.k.Hq=function(a,b){b=void 0===b?1:b;a instanceof KB&&(MB(this,a.name,(0,g.Q)()-a.startTimeMs,b),a.i=!0)};
g.k.Ez=function(a,b){var c=void 0===c?1:c;var d=(0,g.Q)();b();MB(this,a,(0,g.Q)()-d,c)};
g.k.qD=function(){var a="",b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.u).toString(),e=0;e<HB.length;++e)if(0<c.l[e])d+="."+HB[e].toString()+"_"+Math.round(c.l[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}this.profiles=new JB;return a};
g.k.toString=function(){return""};g.k=NB.prototype;g.k.isActive=function(){return!1};
g.k.fu=function(){};
g.k.Bc=function(a,b){return b};
g.k.Zr=function(){};
g.k.Hq=function(){};
g.k.Ez=function(a,b){b()};
g.k.qD=function(){return""};
g.k.toString=function(){return""};var Q_,FDa=no.EXPERIMENT_FLAGS;Q_=FDa?FDa.html5_enable_profiler:void 0;g.cS=null!==Q_&&void 0!==Q_&&Q_?new LB:new NB;var Nya,gya,$B,Zga,Mxa,Dha,pU,sta,EF,nva,eF,qU,Nxa,GDa,pya,xqa,wqa,Sya,HDa,IDa,tta,xta,jxa,yya,xya,dF;Nya=g.cS.Bc("plssv",function(a){a.unstorable||(g.Du("yt-player-volume",a),g.Du("yt-player-volume",a,2592E3))});
gya=g.cS.Bc("plsgv",function(){var a=g.Eu("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.ee(Math.floor(b),0,100),muted:!!a.muted}});
$B=g.cS.Bc("plssbs",function(a){g.Du("yt-player-bandwidth",a,2592E3)});
Zga=g.cS.Bc("plsgbs",function(){return g.Eu("yt-player-bandwidth")||{}});
Mxa=g.cS.Bc("plssq",function(a){g.Du("yt-player-quality",a,2592E3)});
Dha=g.cS.Bc("plswm",function(a,b){var c={};c.values=a;c.halfLives=b;g.Du("yt-player-memory",c,2592E3)});
pU=g.cS.Bc("plsgq",function(){return g.Eu("yt-player-quality")||"auto"});
sta=g.cS.Bc("plshsq",function(){return"auto"!==pU()});
EF=g.cS.Bc("plslm",function(){var a={values:{},ek:{}};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});
nva=g.cS.Bc("plsspc",function(a,b,c){var d=qU();a=OB(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!==c&&(d[a]=c,g.Du("yt-player-performance-cap",d,604800))});
eF=g.cS.Bc("plsgpc",function(a,b){return+qU()[OB(a,b)]||8192});
qU=g.cS.Bc("plsgrpd",function(){return g.Eu("yt-player-performance-cap")||{}});
Nxa=g.cS.Bc("plscpc",function(a){if(a){a=qU();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.Du("yt-player-performance-cap",a,604800)}else g.Fu("yt-player-performance-cap")});
GDa=g.cS.Bc("plsspr",function(a){g.Du("yt-player-playback-rate",a)});
pya=g.cS.Bc("plsgpr",function(){return Number(g.Eu("yt-player-playback-rate"))||1});
xqa=g.cS.Bc("plsswlp",function(a){g.Du("yt-player-watch-later-pending",a)});
wqa=g.cS.Bc("plsgwlp",function(){return g.Eu("yt-player-watch-later-pending")});
Sya=g.cS.Bc("plssas",function(a){g.Du("yt-player-autonavstate",a)});
HDa=g.cS.Bc("plsgas",function(){return g.Eu("yt-player-autonavstate")});
IDa=g.cS.Bc("plsshr",function(a){g.Du("yt-player-headers-readable",a,2592E3)});
tta=g.cS.Bc("plsghr",function(){return g.Eu("yt-player-headers-readable")||!1});
xta=g.cS.Bc("plssrbh",function(a){g.Du("yt-player-bandaid-host",a,432E3)});
jxa=g.cS.Bc("plsgrbh",function(){return g.Eu("yt-player-bandaid-host")});
yya=g.cS.Bc("plsspor",function(a){g.Du("yt-player-playback-on-reload",a)});
xya=g.cS.Bc("plsgpor",function(){return g.Eu("yt-player-playback-on-reload")});
dF=g.cS.Bc("plsgaup",function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}});
g.R_=g.cS.Bc("plssscp",function(a){g.Du("yt-player-sticky-caption",a)});
g.JDa=g.cS.Bc("plssscp",function(){return g.Eu("yt-player-sticky-caption")});
g.KDa=g.cS.Bc("plssclp",function(a){g.Du("yt-player-caption-language-preferences",a)});
g.Lna=g.cS.Bc("plsgclp",function(){var a=g.Eu("yt-player-caption-language-preferences");return a?a:[]});PB.prototype.ih=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a};
PB.prototype.Uf=function(){return this.i/(1-Math.pow(this.alpha,this.l))};RB.prototype.ih=function(a,b){var c=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.i&&(this.l=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0};
RB.prototype.Uf=function(){return this.C?(SB(this,this.u-this.C)+SB(this,this.u)+SB(this,this.u+this.C))/3:SB(this,this.u)};g.u(cC,g.R);var iC,jC,kC,lC,mC;
nC.prototype.encrypt=function(a){var b=g.cS.Zr("oap"),c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.u,e=0;e<c&&16>this.l;)a[e++]^=d[this.l++];for(var f=c-(c-e)%16;e<f;)pC(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(pC(this),this.l=0;e<c;)a[e++]^=d[this.l++];g.cS.Hq(b,Math.ceil(c/
16));return a};g.u(qC,g.E);vC.prototype.get=function(){return this.value};
g.u(wC,vC);wC.prototype.Bb=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(xC,vC);xC.prototype.Bb=function(){return"metadata_type_ad_next_params"};
g.u(yC,vC);yC.prototype.Bb=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(zC,vC);zC.prototype.Bb=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(AC,vC);AC.prototype.Bb=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(BC,vC);BC.prototype.Bb=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(CC,vC);CC.prototype.Bb=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(DC,vC);DC.prototype.Bb=function(){return"metadata_ad_video_is_listed"};
g.u(EC,vC);EC.prototype.Bb=function(){return"metadata_type_ad_placement_config"};
g.u(FC,vC);FC.prototype.Bb=function(){return"metadata_type_ad_pod_info"};
g.u(GC,vC);GC.prototype.Bb=function(){return"metadata_type_ad_video_id"};
g.u(HC,vC);HC.prototype.Bb=function(){return"metadata_type_ad_video_url"};
g.u(IC,vC);IC.prototype.Bb=function(){return"metadata_type_content_cpn"};
g.u(JC,vC);JC.prototype.Bb=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(KC,vC);KC.prototype.Bb=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.u(LC,vC);LC.prototype.Bb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.u(MC,vC);MC.prototype.Bb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.u(NC,vC);NC.prototype.Bb=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(OC,vC);OC.prototype.Bb=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(PC,vC);PC.prototype.Bb=function(){return"metadata_type_linked_in_player_layout_id"};
g.u(QC,vC);QC.prototype.Bb=function(){return"metadata_type_linked_in_player_slot_id"};
g.u(RC,vC);RC.prototype.Bb=function(){return"metadata_type_player_bytes_callback"};
g.u(SC,vC);SC.prototype.Bb=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(TC,vC);TC.prototype.Bb=function(){return"metadata_type_sub_layouts"};
g.u(UC,vC);UC.prototype.Bb=function(){return"metadata_type_cue_point"};
g.u(VC,vC);VC.prototype.Bb=function(){return"metadata_type_video_length_seconds"};
g.u(WC,vC);WC.prototype.Bb=function(){return"metadata_type_player_vars"};
g.u(XC,vC);XC.prototype.Bb=function(){return"metadata_type_sodar_extension_data"};
g.u(YC,vC);YC.prototype.Bb=function(){return"metadata_type_layout_enter_ms"};
g.u(ZC,vC);ZC.prototype.Bb=function(){return"metadata_type_layout_exit_ms"};
g.u($C,vC);$C.prototype.Bb=function(){return"metadata_type_media_sub_layout_index"};
g.u(aD,vC);aD.prototype.Bb=function(){return"metadata_type_dai"};
g.u(bD,vC);bD.prototype.Bb=function(){return"metadata_type_ad_intro"};
g.u(cD,vC);cD.prototype.Bb=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u(dD,vC);dD.prototype.Bb=function(){return"metadata_type_drift_recovery_ms"};
g.u(eD,vC);eD.prototype.Bb=function(){return"metadata_type_fulfilled_layout"};
g.u(fD,vC);fD.prototype.Bb=function(){return"metadata_type_ad_break_request_data"};
g.u(gD,vC);gD.prototype.Bb=function(){return"metadata_type_ad_break_response_data"};
g.u(hD,vC);hD.prototype.Bb=function(){return"metadata_type_remote_slots_data"};
g.u(iD,vC);iD.prototype.Bb=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(jD,vC);jD.prototype.Bb=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.u(kD,vC);kD.prototype.Bb=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(lD,vC);lD.prototype.Bb=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};var S_={},wD=(S_.AD_MARKER="ytp-ad-progress",S_.CHAPTER_MARKER="ytp-chapter-marker",S_.TIME_MARKER="ytp-time-marker",S_);g.u(uD,g.E);
uD.prototype.wy=function(){var a=this.i().hy("SLOT_TYPE_PLAYER_BYTES",1),b=tC(this.Fa.get(),1).clientPlaybackNonce,c=!1,d=void 0;a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=oD(e)?e.Jb.yk:void 0;f&&f===b&&(f=PW(e.oa,"metadata_type_fulfilled_layout"),c&&tD("More than 1 preroll playerBytes slot detected",e,f,{matches_layout_id:String(d&&f?d.layoutId===f.layoutId:!1),found_layout_id:(null===d||void 0===d?void 0:d.layoutId)||"empty",collide_layout_id:(null===f||void 0===f?void 0:f.layoutId)||
"empty"}),c=!0,d=f)}return c};
uD.prototype.Qg=function(a,b,c,d,e){var f=this,h=tC(this.Fa.get(),1);rC(this.sb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return uC(f.xc.get(),c,d,a,b,e,h)});
PK(this.Aa.get())&&xCa(this.Sw)};
uD.prototype.mj=function(){};g.xD.prototype.getId=function(){return this.id};
g.xD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+yD(this.start)+", "+yD(this.end)+"]"};
g.xD.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 gha=1;g.xD.prototype.getId=g.xD.prototype.getId;g.u(CD,g.xD);CD.prototype.deactivate=function(){this.l=!0};
CD.prototype.Nq=function(){return this.end-this.start};var T_;var LDa=g.Wc,MDa=LDa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!MDa||2>MDa.length)T_=void 0;else{var U_=LDa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);T_=U_&&6==U_.length?Number(U_[5].replace("_",".")):0}var rI=T_,QN=0<=rI;QN&&0<=g.Wc.search("Safari")&&g.Wc.search("Version");g.u(JD,ar);g.u(KD,ar);var jha=new br("aft-recorded",JD),KE=new br("timing-sent",KD);var V_=window,pE=V_.performance||V_.mozPerformance||V_.msPerformance||V_.webkitPerformance||new iha;var TD=!1,kha=(0,g.B)(pE.clearResourceTimings||pE.webkitClearResourceTimings||pE.mozClearResourceTimings||pE.msClearResourceTimings||pE.oClearResourceTimings||g.Ia,pE);var aE=g.A.ytLoggingLatencyUsageStats_||{};g.Da("ytLoggingLatencyUsageStats_",aE,void 0);ZD.prototype.tick=function(a,b,c){bE(this,"tick_"+a+"_"+b)||g.Or("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
ZD.prototype.info=function(a,b){var c=Object.keys(a).join("");bE(this,"info_"+c+"_"+b)||(c=Object.assign({},a),c.clientActionNonce=b,g.Or("latencyActionInfo",c))};
ZD.prototype.span=function(a,b){var c=Object.keys(a).join("");bE(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Or("latencyActionSpan",a))};var W_={},iE=(W_.auto_search="LATENCY_ACTION_AUTO_SEARCH",W_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W_.app_startup="LATENCY_ACTION_APP_STARTUP",W_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",W_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",W_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",W_.browse="LATENCY_ACTION_BROWSE",W_.channels="LATENCY_ACTION_CHANNELS",W_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",
W_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",W_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",W_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",W_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",W_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",W_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",W_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",W_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
W_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",W_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",W_.chips="LATENCY_ACTION_CHIPS",W_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",W_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",W_.embed="LATENCY_ACTION_EMBED",W_.home="LATENCY_ACTION_HOME",W_.library="LATENCY_ACTION_LIBRARY",W_.live="LATENCY_ACTION_LIVE",W_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W_.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",
W_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",W_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",W_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",W_.prebuffer="LATENCY_ACTION_PREBUFFER",W_.prefetch="LATENCY_ACTION_PREFETCH",W_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",
W_.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",W_.results="LATENCY_ACTION_RESULTS",W_.search_ui="LATENCY_ACTION_SEARCH_UI",W_.search_suggest="LATENCY_ACTION_SUGGEST",W_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",W_.settings="LATENCY_ACTION_SETTINGS",W_.tenx="LATENCY_ACTION_TENX",W_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W_.watch="LATENCY_ACTION_WATCH",W_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",W_["watch,watch7"]=
"LATENCY_ACTION_WATCH",W_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",W_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",W_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",W_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",W_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",W_["video.video_editor"]=
"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",W_["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",W_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",W_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W_.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W_),X_={},lE=(X_.ad_allowed="adTypesAllowed",X_.yt_abt="adBreakType",X_.ad_cpn="adClientPlaybackNonce",X_.ad_docid=
"adVideoId",X_.yt_ad_an="adNetworks",X_.ad_at="adType",X_.aida="appInstallDataAgeMs",X_.browse_id="browseId",X_.p="httpProtocol",X_.t="transportProtocol",X_.cpn="clientPlaybackNonce",X_.ccs="creatorInfo.creatorCanaryState",X_.csn="clientScreenNonce",X_.docid="videoId",X_.GetHome_rid="requestIds",X_.GetSearch_rid="requestIds",X_.GetPlayer_rid="requestIds",X_.GetWatchNext_rid="requestIds",X_.GetBrowse_rid="requestIds",X_.GetLibrary_rid="requestIds",X_.is_continuation="isContinuation",X_.is_nav="isNavigation",
X_.b_p="kabukiInfo.browseParams",X_.is_prefetch="kabukiInfo.isPrefetch",X_.is_secondary_nav="kabukiInfo.isSecondaryNav",X_.prev_browse_id="kabukiInfo.prevBrowseId",X_.query_source="kabukiInfo.querySource",X_.voz_type="kabukiInfo.vozType",X_.yt_lt="loadType",X_.mver="creatorInfo.measurementVersion",X_.yt_ad="isMonetized",X_.nr="webInfo.navigationReason",X_.nrsu="navigationRequestedSameUrl",X_.ncnp="webInfo.nonPreloadedNodeCount",X_.pnt="performanceNavigationTiming",X_.prt="playbackRequiresTap",X_.plt=
"playerInfo.playbackType",X_.pis="playerInfo.playerInitializedState",X_.paused="playerInfo.isPausedOnLoad",X_.yt_pt="playerType",X_.fmt="playerInfo.itag",X_.yt_pl="watchInfo.isPlaylist",X_.yt_pre="playerInfo.preloadType",X_.yt_ad_pr="prerollAllowed",X_.pa="previousAction",X_.yt_red="isRedSubscriber",X_.rce="mwebInfo.responseContentEncoding",X_.scrh="screenHeight",X_.scrw="screenWidth",X_.st="serverTimeMs",X_.ssdm="shellStartupDurationMs",X_.br_trs="tvInfo.bedrockTriggerState",X_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",
X_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",X_.label="tvInfo.label",X_.is_mdx="tvInfo.isMdx",X_.preloaded="tvInfo.isPreloaded",X_.upg_player_vis="playerInfo.visibilityState",X_.query="unpluggedInfo.query",X_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",X_.yt_vst="videoStreamType",X_.vph="viewportHeight",X_.vpw="viewportWidth",X_.yt_vis="isVisible",X_.rcl="mwebInfo.responseContentLength",X_.GetSettings_rid="requestIds",X_.GetTrending_rid="requestIds",X_.GetMusicSearchSuggestions_rid=
"requestIds",X_.REQUEST_ID="requestIds",X_),lha="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(" "),Y_={},mE=(Y_.ccs="CANARY_STATE_",Y_.mver="MEASUREMENT_VERSION_",Y_.pis="PLAYER_INITIALIZED_STATE_",Y_.yt_pt="LATENCY_PLAYER_",
Y_.pa="LATENCY_ACTION_",Y_.yt_vst="VIDEO_STREAM_TYPE_",Y_),mha="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 Z_=window;Z_.ytcsi&&(Z_.ytcsi.info=gE,Z_.ytcsi.tick=hE);var iia={MU:1,bV:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var WS=16/9,NDa=[.25,.5,.75,1,1.25,1.5,1.75,2],ODa=NDa.concat([3,4,5,6,7,8,9,10,15]);LE.prototype.getLanguageInfo=function(){return this.i};
LE.prototype.toString=function(){return this.i.name};
LE.prototype.getLanguageInfo=LE.prototype.getLanguageInfo;ME.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i};
ME.prototype.compose=function(a){if(a.u&&PE(a))return uH;if(a.u||PE(this))return a;if(this.u||PE(a))return this;var b=this.l&&a.l?Math.max(this.l,a.l):this.l||a.l,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.l&&c===this.i?this:new ME(b,c,!1,c===this.i?this.reason:a.reason)};
ME.prototype.B=function(a){return a.video?RE(this,a.video.quality):!1};
var Lxa=OE("auto","hd1080",!1,"l"),Lua=OE("auto","large",!1,"l"),uH=OE("auto","auto",!1,"p");OE("small","auto",!1,"p");SE.prototype.Xm=function(a){a=a||uH;for(var b=g.Ne(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].Na();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
SE.prototype.getAvailableAudioTracks=function(){return this.audioTracks};gF.prototype.clone=function(a){return new gF(this.flavor,a,this.u,this.experiments)};
gF.prototype.nb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
gF.prototype.ff=function(){switch(this.keySystem){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.keySystem}};
var $_={},qF=($_.playready=["com.youtube.playready","com.microsoft.playready"],$_.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],$_);g.u(rF,g.E);
rF.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.Qd)for(var h=g.q(Object.keys(f.Qd)),l=h.next();!l.done;l=h.next())if(l=l.value,qF[l])for(var m=g.q(qF[l]),n=m.next();!n.done;n=m.next())n=n.value,this.l[n]=this.l[n]||new gF(l,n,f.Qd[l],this.experiments),this.B[l]=this.B[l]||{},this.B[l][f.mimeType]=!0}cq()&&(this.l["com.youtube.fairplay"]=new gF("fairplay","com.youtube.fairplay","",
this.experiments),this.B.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=uha(b,this.useCobaltWidevine,g.mA(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.l[p]})};
rF.prototype.aa=function(){};
rF.prototype.Z=function(a){return g.U(this.experiments,a)};var PDa={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},a0;a:{var b0=g.Wc;b0=b0.toLowerCase();if(-1!=b0.indexOf("android")){var QDa=b0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(QDa){var RDa=parseFloat(QDa[1]);if(100>RDa){a0=RDa;break a}}var SDa=b0.match("("+g.Kb(PDa).join("|")+")");a0=SDa?PDa[SDa[0]]:0}else a0=void 0}var TF=a0,SF=0<=TF;var Jha={RED:"red",V2:"white"};var Iha={zR:"adunit",FU:"detailpage",TU:"editpage",WU:"embedded",XU:"embedded_unbranded",cX:"leanback",U_:"previewpage",X_:"profilepage",f2:"unplugged",N_:"playlistoverview",t1:"sponsorshipsoffer"};uF.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;jq?c=c||TDa[b]:2.2===TF?c=c||UDa[b]:$p()&&(c=c||VDa[b]);return!!c};
uF.prototype.isTypeSupported=function(a){this.aa();return this.I?window.cast.receiver.platform.canDisplayType(a):CA(a)};
uF.prototype.disableAv1=function(){this.L=!0};
uF.prototype.aa=function(){};
var UDa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},VDa={"application/x-mpegURL":"maybe"},TDa={"application/x-mpegURL":"maybe"};g.u(yF,g.R);yF.prototype.add=function(a,b){!this.items[a]&&(b.mq||b.kt||b.ws)&&(this.items[a]=Zb(b),this.V("vast_info_card_add",a))};
yF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
yF.prototype.get=function(a){return this.items[a]||null};
yF.prototype.isEmpty=function(){return g.Pb(this.items)};var aG={vX:1,wX:2,xX:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.u(BF,g.E);var Eha=/^([0-9\.]+):([0-9\.]+)$/;var LF="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),jG={dS:"cbrand",eS:"cbr",fS:"cbrver",kW:"c",nW:"cver",mW:"ctheme",lW:"cplayer",uZ:"cmodel",ZZ:"cnetwork",n_:"cos",o_:"cosver",G_:"cplatform"};g.u(iG,g.E);g.k=iG.prototype;g.k.Z=function(a){return g.U(this.experiments,a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.mG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.XF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,jq&&(a=up())&&(b.ebc=a));return g.Od(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.mG(this)+"/embed/"+a;c&&(a=g.Od(a,{list:c}));c=b.width;b=b.height;a=g.sd(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.DA&&!jq&&74<=Xp()||g.oF&&g.ce(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var Lha=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=CG.prototype;g.k.ff=function(){return this.i};
g.k.Rp=function(){return null};
g.k.CD=function(){var a=this.Rp();return a?(a=g.Bp(a.i),Number(a.expire)):NaN};
g.k.Rz=function(){};
g.k.Vb=function(){return this.i.Vb()};
g.k.getHeight=function(){return this.i.Na().height};EG.prototype.Ef=function(){Mha(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.q(this.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.i){if(e.i.getIsDefault()){c=e.i.getId();break a}c||(c=e.i.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.i&&e.i.getId()!==c||(b[e.itag]=e);c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.l]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.i){n=e.i;
var p=n.getId().split(".")[0];p&&(l+='LANGUAGE="'+p+'",');this.i||n.getIsDefault()||(m="NO");n=n.getName()}p="";null!==d&&(p=d.itag.toString());p=FG(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(GG(e,d)+'",URI="'+(p+'"'));h.call(f,l)}c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.l])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(GG(e,d)+'",CLOSED-CAPTIONS=NONE'),
1<d.fps&&(e+=",FRAME-RATE="+d.fps),d.u&&(e+=",VIDEO-RANGE="+d.u),a.push(e),a.push(FG(this,d.url,""));return a.join("\n")};g.u(IG,CG);IG.prototype.CD=function(){return this.expiration};
IG.prototype.Rp=function(){if(!this.l||this.l.na()){var a=this.u.Ef();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.l=new NA(a)}return this.l};g.u(KG,CG);KG.prototype.Rp=function(){return new NA(Yx(this.l))};
KG.prototype.Rz=function(){this.l=cy(this.l)};g.u(LG,CG);LG.prototype.Rp=function(){return new NA(this.l)};g.k=g.OG.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.i};
g.k.toString=function(){return this.languageCode+": "+g.PG(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var QG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},RG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},SG=/^(\d*)_((\d*)_?(\d*))$/;var UG={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},XG={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var c0={},jia=(c0.ALWAYS=1,c0.BY_REQUEST=3,c0.UNKNOWN=void 0,c0),d0={},eia=(d0.COLOR_PRIMARIES_BT709="bt709",d0.COLOR_PRIMARIES_BT2020="bt2020",d0.COLOR_PRIMARIES_UNKNOWN=null,d0.COLOR_PRIMARIES_UNSPECIFIED=null,d0),e0={},Xha=(e0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",e0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",e0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",e0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",e0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,e0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,e0),f0={},fH=(f0.FAIRPLAY="fairplay",f0.PLAYREADY="playready",f0.WIDEVINE="widevine",f0.CLEARKEY=null,f0.FLASHACCESS=null,f0.UNKNOWN=null,f0.WIDEVINE_CLASSIC=null,f0),g0={},kia=(g0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",g0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",g0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",g0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",g0),h0={},bia=(h0.UNKNOWN=0,h0.RECTANGULAR=1,h0.EQUIRECTANGULAR=2,h0.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,h0.MESH=4,h0),i0={},dia=(i0.SPATIAL_AUDIO_TYPE_NONE=0,i0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,i0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,i0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,i0),j0={},cia=(j0.STEREO_LAYOUT_UNKNOWN=0,j0.STEREO_LAYOUT_LEFT_RIGHT=1,j0.STEREO_LAYOUT_TOP_BOTTOM=2,j0),k0={},aia=(k0.FORMAT_STREAM_TYPE_UNKNOWN=0,k0.FORMAT_STREAM_TYPE_OTF=3,k0);g.u(hH,g.R);hH.prototype.da=function(){this.i&&(this.i=this.i.onload=null);g.R.prototype.da.call(this)};g.k=g.oH.prototype;g.k.getHeight=function(){return this.height};
g.k.HD=ba(2);g.k.Zx=function(){return this.u};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.Wc=function(a){return this.loaded.has(a)};
g.k.Is=function(a){var b=this.Zx()-1;return g.ee(0===this.i?Math.round(a*this.u/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.Sp=function(){return this.u-1};
g.k.dw=function(){return this.u?0:-1};
g.k.lB=function(){};g.u(pH,hH);pH.prototype.l=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var h=this.I(f-1,e,d[f],b);(this.L||180>h.getHeight())&&c.push(h)}return c};
pH.prototype.I=function(a,b,c,d){return new g.oH(a,b,c,d)};g.u(rH,g.oH);g.k=rH.prototype;g.k.Zx=function(){return this.l.Eo()};
g.k.Is=function(a){var b=this.rows*this.columns*this.I,c=this.l,d=c.Rb();a=c.oh(a);return a>d-b?-1:a};
g.k.Sp=function(){return this.l.Rb()};
g.k.dw=function(){return this.l.Th()};
g.k.lB=function(a){this.l=a};g.u(sH,pH);sH.prototype.l=function(a,b){return pH.prototype.l.call(this,"$N|"+a,b)};
sH.prototype.I=function(a,b,c){return new rH(a,b,c,this.isLive)};g.u(g.wH,g.R);g.k=g.wH.prototype;g.k.T=function(){return this.B};
g.k.Z=function(a){return g.U(this.B.experiments,a)};
g.k.Ke=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.qF=function(){this.na()||(this.i.u||this.i.unsubscribe("refresh",this.qF,this),this.OC(-1))};
g.k.OC=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=jB(this.i,this.Hw);if(0<b.length&&(this.V("cuepointupdated",b,a),this.Hw+=b.length,UH(this)&&g.PH(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ia("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs),"start"===c.event&&(c=c.startSecs,this.Jp.start=this.vo,this.Jp.end=c+3)}}};
g.k.se=function(){var a={};this.l&&(a.fmt=this.l.Vb(),this.J&&this.J.Vb()!=this.l.Vb()&&(a.afmt=this.J.Vb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Sc&&(a.infringe=1);this.Hd&&(a.splay=1);var b=$H(this);b&&(a.live=b);this.ki&&(a.autoplay=1);this.cH&&(a.sdetail=this.cH);this.Ja&&(a.partnerid=this.Ja);this.osid&&(a.osid=this.osid);return a};
g.k.Lg=function(){var a=g.sG(this.B)||this.Z("web_l3_storyboard");if(!this.Ce)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Ce=new pH(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Ib(this.i.i).index)&&(this.Ce=new sH(b.spec,this.i.isLive,c,a))}else this.om?this.Ce=new pH(this.om,this.lengthSeconds,void 0,!1,a):this.jm&&this.i&&(b=Ib(this.i.i).index)&&
(this.Ce=new sH(this.jm,this.i.isLive,b,a));return this.Ce};
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.om||this.jm};
g.k.Hc=function(){return this.i&&!isNaN(this.i.Hc())?this.i.Hc():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.l){var b=this.i.i[this.l.id];if(!b)return null;var c=b.index.oh(a);b=b.index.jf(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.na()&&!(!this.videoId&&!this.Af)};
g.k.Wc=function(){return xH(this)&&!this.Kc&&!this.Si};
g.k.te=function(a){if(30==this.Ja)return(a=this.jc["default.jpg"])?a:this.videoId?g.Od("//docs.google.com/vt",{id:this.videoId,authuser:this.bF,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.jc[a];return b||this.B.J||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:nG(this.B,this.videoId,a)};
g.k.ej=function(){return this.isLivePlayback||this.xe||this.Ri||!(!this.liveUtcStartSeconds||!this.We)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.xe&&!this.isLivePlayback&&this.i.u)};
g.k.getAvailableAudioTracks=function(){return this.u?0<this.u.getAvailableAudioTracks().length?this.u.getAvailableAudioTracks():this.fm||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.J&&!wA(this.J))return g.cb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.Jh;
if(this.fm){if(!this.jj)for(var b=g.q(this.fm),c=b.next();!c.done;c=b.next())if(c=c.value,c.i.getIsDefault()){this.jj=c;break}return this.jj||this.Jh}return this.Jh};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.Na=function(){return this};
g.k.rl=function(){return this.B.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.cA=function(){return this.Cf||this.Ac};
g.k.Wr=function(){return this.Zc||this.Ac};
g.k.useInnertubeDrmService=function(){if(!(this.I&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.I.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
g.k.Ia=function(a,b){this.V("ctmp",a,b)};Nia.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.i.xa("updateKevlarOrC3Companion",b)};sI.prototype.lr=function(){return!1};
sI.prototype.la=function(){return function(){return null}};var uI=null;g.u(tI,g.R);tI.prototype.Oq=function(a){return this.i.hasOwnProperty(a)?this.i[a].Oq():{}};
g.Da("ytads.bulleit.getVideoMetadata",function(a){return vI().Oq(a)},void 0);
g.Da("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=vI();c=Pia(c);null!==c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);g.u(yI,sI);g.k=yI.prototype;g.k.ik=function(){return!0};
g.k.Bi=function(){return!1};
g.k.isSkippable=function(){return null!=this.ia};
g.k.getVideoUrl=function(){return this.ca};
g.k.lr=function(){return!0};g.u(GI,sI);GI.prototype.ik=function(){return!0};
GI.prototype.Bi=function(){return!1};
GI.prototype.lr=function(){return!0};
GI.prototype.la=function(){return function(){return g.we("video-ads")}};Xia.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var PAa={iR:"FINAL",uR:"AD_BREAK_LENGTH",vR:"AD_CPN",wR:"AH",xR:"AD_MT",yR:"ASR",AR:"AW",uS:"NM",vS:"NX",wS:"NY",BS:"CONN",NS:"CPN",QU:"DV_VIEWABILITY",dV:"ERRORCODE",gV:"ERROR_MSG",iV:"EI",MV:"GOOGLE_VIEWABILITY",hW:"IAS_VIEWABILITY",ZW:"LACT",oX:"LIVE_TARGETING_CONTEXT",yX:"I_X",zX:"I_Y",XY:"MT",cZ:"MIDROLL_POS",dZ:"MIDROLL_POS_MS",fZ:"MOAT_INIT",gZ:"MOAT_VIEWABILITY",I_:"P_H",J_:"PV_H",K_:"PV_W",L_:"P_W",Q_:"TRIGGER_TYPE",A0:"SDKV",m1:"SLOT_POS",D1:"SURVEY_LOCAL_TIME_EPOCH_S",C1:"SURVEY_ELAPSED_MS",
oK:"VIS",F2:"VIEWABILITY",G2:"VED",L2:"VOL",O2:"WT",l3:"YT_ERROR_CODE"};var eja=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];NI.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.$m(a.baseUrl,aja(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.l();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.u();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.pq(e,void 0,d,f)}catch(p){}};g.u(OI,NI);OI.prototype.l=function(){return this.i?g.nI(this.i):""};
OI.prototype.u=function(){return this.i?this.i.T().pageId:""};PI.prototype.send=function(a,b,c){try{var d=a.match(Ad);if("https"===d[1])var e=a;else d[1]="https",e=yd("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=Zm(e);a=[];Hp(e)&&(a.push({headerType:"USER_AUTH"}),a.push({headerType:"PLUS_PAGE_ID"}));this.i.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(h){}};g.u(fja,g.E);g.u(jja,g.E);g.u(jJ,g.R);g.k=jJ.prototype;g.k.Oq=function(){return{}};
g.k.Oz=function(){};
g.k.ac=function(a){this.Ph();this.V(a)};
g.k.Ph=function(){pja(this,this.ia,3);this.ia=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.sl=function(){var a=this.l;TI(a)||!bJ(a,"impression")&&!bJ(a,"start")||bJ(a,"abandon")||bJ(a,"complete")||bJ(a,"skip")||(VI(a)?aJ(a,"pause"):WI(a,"pause"))};
g.k.fk=function(){this.ca||this.J||this.Md()};
g.k.Te=function(){XI(this.l,this.getDuration())};
g.k.kf=function(){var a=this.l;!bJ(a,"impression")||bJ(a,"skip")||bJ(a,"complete")||aJ(a,"abandon")};
g.k.ul=function(){var a=this.l;VI(a)?WI(a,"skip"):!bJ(a,"impression")||bJ(a,"abandon")||bJ(a,"complete")||WI(a,"skip")};
g.k.Md=function(){if(!this.J){var a=this.Gt();this.l.u.AD_CPN=a;a=this.l;if(VI(a)){var b=a.i.getCurrentTime(2,!1);$I(a,"impression",b,0)}else WI(a,"impression");WI(a,"start");TI(a)||a.i.isFullscreen()&&aJ(a,"fullscreen");this.J=!0}};
g.k.ke=function(a){a=a||"";var b="",c="",d="";QI(this.G)&&(b=this.G.Xa(2).state,this.G.cd()&&(c=this.G.cd().Fg(),null!=this.G.cd().Hh()&&(d=this.G.cd().Hh())));var e=this.l;e.u=MI(e.u,dja(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));WI(e,"error")};
g.k.Ng=function(){};
g.k.lG=function(){this.V("adactiveviewmeasurable")};
g.k.mG=function(){this.V("adfullyviewableaudiblehalfdurationimpression")};
g.k.nG=function(){this.V("adoverlaymeasurableimpression")};
g.k.oG=function(){this.V("adoverlayunviewableimpression")};
g.k.pG=function(){this.V("adoverlayviewableendofsessionimpression")};
g.k.qG=function(){this.V("adoverlayviewableimmediateimpression")};
g.k.rG=function(){this.V("adviewableimpression")};
g.k.dispose=function(){this.na()||(this.Ph(),this.u.unsubscribe("adactiveviewmeasurable",this.lG,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.mG,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.nG,this),this.u.unsubscribe("adoverlayunviewableimpression",this.oG,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.pG,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.qG,this),this.u.unsubscribe("adviewableimpression",
this.rG,this),delete this.u.i[this.ad.L],g.R.prototype.dispose.call(this))};
g.k.Gt=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.jD=function(){return""};g.u(lJ,sI);lJ.prototype.ik=function(){return!0};
lJ.prototype.Bi=function(){return!1};g.u(mJ,eJ);g.u(nJ,jJ);g.k=nJ.prototype;g.k.Ci=function(){0<this.i&&this.Md()};
g.k.Md=function(){var a=this;this.gb=new g.M(function(){a.Te();for(var b=g.q(a.B.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.C.executeCommand(c.value,a.macros);a.ac("adended")},this.i,this);
g.I(this,this.gb);this.gb.start();kJ(this,[new mJ(this.B.i,this.macros)]);jJ.prototype.Md.call(this)};
g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
g.k.Te=function(){jJ.prototype.Te.call(this)};
g.k.ac=function(a){this.gb&&this.gb.stop();jJ.prototype.ac.call(this,a)};g.u(oJ,sI);oJ.prototype.ik=function(){return!0};
oJ.prototype.Bi=function(){return!1};g.u(pJ,sI);pJ.prototype.ik=function(){return!0};
pJ.prototype.Bi=function(){return!1};g.u(qJ,sI);qJ.prototype.ik=function(){return!0};
qJ.prototype.Bi=function(){return!0};g.u(rJ,sI);rJ.prototype.ik=function(){return!0};
rJ.prototype.Bi=function(){return!1};g.u(sJ,sI);sJ.prototype.ik=function(){return!0};
sJ.prototype.Bi=function(){return!1};g.u(tJ,sI);tJ.prototype.ik=function(){return!0};
tJ.prototype.Bi=function(){return!1};rja.prototype.create=function(a,b){return a instanceof yI?this.W.create(a,b):a instanceof qJ?this.B.create(a,b):a instanceof GI?this.I.create(a,b):a instanceof lJ?this.i.create(a,b):a instanceof rJ?this.C.create(a,b):a instanceof tJ?this.L.create(a,b):a instanceof sJ?this.J.create(a,b):a instanceof pJ?this.u.create(a,b):a instanceof oJ?this.l.create(a,b):null};g.u(uJ,jJ);g.k=uJ.prototype;g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
g.k.sl=function(){jJ.prototype.sl.call(this);this.V("adpause",2)};
g.k.fk=function(){jJ.prototype.fk.call(this);this.V("adplay",1)};
g.k.Md=function(){jJ.prototype.Md.call(this);this.i.stop();this.B.N(this.G,g.AD("bltplayback"),this.YH);var a=new g.xD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.sd([a],2);this.V("adplay",1)};
g.k.Te=function(){jJ.prototype.Te.call(this);this.ac("adended")};
g.k.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};
g.k.Ci=function(){SI(this.G,!1);var a=this.C.l||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.i.start();this.G.playVideo(2);this.G.xa("onAdIntroStateChange",1)};
g.k.ac=function(a){this.i.stop();SI(this.G,!0);"adabandoned"!=a&&this.G.xa("onAdComplete");this.G.xa("onAdEnd");this.V(a);this.G.xa("onAdIntroStateChange",0)};
g.k.YH=function(a){"bltcompletion"==a.getId()&&(this.G.Oe("bltplayback",2),XI(this.l,this.getDuration()))};g.u(sja,eJ);g.u(vJ,jJ);g.k=vJ.prototype;
g.k.Ci=function(){if(this.I)for(var a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.l={slotId:OX(b.Ra.get(),"SLOT_TYPE_IN_PLAYER"),Ya:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:void 0,ze:[],Re:[],Sa:"surface",oa:new OW([])};bka(b.u(),b.l);var c=b.u();b=b.l;c=g.q(c.Kd);for(var d=c.next();!d.done;d=c.next())d.value.ii(b)}0>=this.L&&(g.ro(Error("durationMs was specified incorrectly with a value of: "+this.L)),this.Te());this.Md();this.G.addEventListener("progresssync",this.X)};
g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandonedreset")};
g.k.Md=function(){var a=this.G.T();jJ.prototype.Md.call(this);this.B=g.U(this.G.T().experiments,"disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.i=this.B+this.L/1E3;g.fG(a)?this.G.xa("onAdMessageChange",{renderer:this.C.i,startTimeSecs:this.B}):kJ(this,[new sja(this.C.i)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.iu(),c=g.U(this.G.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.i.videoAdBreakOffsetMsInt64:this.C.i.videoAdBreakOffsetMs;
b&&(a={clientScreenNonce:b,adMediaTimeSec:g.U(this.G.T().experiments,"disable_rounding_ad_notify")?this.i:Math.floor(this.i),timeToAdBreakSec:Math.ceil(this.i-this.B),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)},g.Or("adNotify",a));if(this.I)for(this.W=!0,a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?tD("Received AdNotify started event before another one exited"):(b.i=b.l,cka(b.u(),b.i)):tD("Received AdNotify started event without start requested event");
g.W(this.G.Xa(1),512)&&(a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.iu(),c=g.U(this.G.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.i.videoAdBreakOffsetMsInt64:this.C.i.videoAdBreakOffsetMs,b&&(a={clientScreenNonce:b,adMediaTimeSec:g.U(this.G.T().experiments,"disable_rounding_ad_notify")?this.i:Math.floor(this.i),timeToAdBreakSec:Math.ceil(this.i-this.B),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)},g.Or("adNotifyFailure",a)),this.Te())};
g.k.Te=function(){jJ.prototype.Te.call(this);this.ac("adended")};
g.k.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.G.removeEventListener("progresssync",this.X);this.Ph();this.V(a);tja(this)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.X);tja(this);jJ.prototype.dispose.call(this)};
g.k.Ph=function(){g.fG(this.G.T())?this.G.xa("onAdMessageChange",{renderer:null,startTimeSecs:this.B}):jJ.prototype.Ph.call(this)};g.u(xJ,eJ);g.u(yJ,jJ);yJ.prototype.Ci=function(){var a=new xJ(this.i.i,this.macros);kJ(this,[a])};g.u(uja,eJ);g.u(zJ,jJ);zJ.prototype.Ci=function(){this.Md()};
zJ.prototype.Md=function(){kJ(this,[new uja(this.i.i,this.macros)]);jJ.prototype.Md.call(this)};
zJ.prototype.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};g.u(vja,eJ);CJ.prototype.sendAdsPing=function(a){this.I.send(a,Gja(this),{})};
CJ.prototype.lg=function(a){var b=this;if(a){var c=Gja(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};Mja.prototype.lg=function(a){this.i.lg(a)};g.u(DJ,g.R);DJ.prototype.getProgressState=function(){return this.u};
DJ.prototype.start=function(){this.B=Date.now();Oja(this,{current:this.i/1E3,duration:this.l/1E3});this.gb.start()};
DJ.prototype.stop=function(){this.gb.stop()};g.u(Pja,eJ);g.u(EJ,jJ);g.k=EJ.prototype;g.k.Ci=function(){this.Md()};
g.k.Md=function(){var a=this.C.i;g.fG(this.G.T())?(a=Nja(this.I,a),this.G.xa("onAdInfoChange",a),this.L=Date.now(),this.i&&this.i.start()):kJ(this,[new Pja(a)]);jJ.prototype.Md.call(this)};
g.k.getDuration=function(){return this.C.l};
g.k.sl=function(){jJ.prototype.sl.call(this);this.i&&this.i.stop()};
g.k.fk=function(){jJ.prototype.fk.call(this);this.i&&this.i.start()};
g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
g.k.ul=function(){jJ.prototype.ul.call(this);this.ac("adended")};
g.k.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.Ph();this.V(a)};
g.k.Ng=function(a){switch(a){case "skip-button":this.ul();break;case "survey-submit":this.ac("adended")}};
g.k.Ph=function(){g.fG(this.G.T())?(this.i&&this.i.stop(),this.G.xa("onAdInfoChange",null)):jJ.prototype.Ph.call(this)};g.u(Qja,eJ);g.u(FJ,jJ);FJ.prototype.Ci=function(){this.Md()};
FJ.prototype.Md=function(){kJ(this,[new Qja(this.i.i,this.macros)]);jJ.prototype.Md.call(this)};
FJ.prototype.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
FJ.prototype.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};g.u(Rja,eJ);g.u(GJ,jJ);g.k=GJ.prototype;g.k.Ci=function(){0<this.i&&this.Md()};
g.k.Md=function(){this.gb=new g.M(this.Te,this.i,this);g.I(this,this.gb);this.gb.start();kJ(this,[new Rja(this.B.i)]);jJ.prototype.Md.call(this)};
g.k.Te=function(){jJ.prototype.Te.call(this);this.ac("adended");for(var a=g.q(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
g.k.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.gb&&this.gb.stop();jJ.prototype.ac.call(this,a)};g.u(Uja,eJ);g.u(Vja,eJ);g.u(Wja,eJ);g.u(JJ,eJ);g.u(Xja,eJ);g.u(Yja,eJ);g.u(KJ,jJ);g.k=KJ.prototype;g.k.Oq=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.i.l,isPlaying:gja(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.Ci=function(){if(this.i.X)qja(this),this.ac("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.G.T().L.add(b,{mq:a});try{var c=this.i.i.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&We(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.gt(d)}SI(this.G,!1);a=Via(this.i);b=this.G.T();g.U(this.G.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.fG(b)||g.sG(b)?3:1);c=this.G.getVideoData(1);c.yg&&(a.ctrl=c.yg);c.wf&&(a.ytr=c.wf);c.Sj&&(a.ytrcc=
c.Sj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Yg&&(a.vss_credentials_token_type=c.Yg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.V("adunstarted",-1);!lY(this.C)&&g.fG(b)&&(b=PJ(this),dka(this,b));this.L?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))}};
g.k.sl=function(){jJ.prototype.sl.call(this);this.V("adpause",2)};
g.k.fk=function(){jJ.prototype.fk.call(this);this.V("adplay",1)};
g.k.Md=function(){jJ.prototype.Md.call(this);this.I.stop();this.ga.N(this.G,g.AD("bltplayback"),this.ZH);var a=new g.xD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.sd([a],2);a=OJ(this);this.B.za=a;if(!lY(this.C)){a=[];var b=this.G.T(),c=this.G.getVideoData(2);if(tG(b)||g.fG(b)){var d;(d=c&&c.isListed?{channelId:c.Bg,channelThumbnailUrl:c.dg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.G.xa("onAdMetadataAvailable",d)}g.fG(b)||(g.sG(b)&&!this.L&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.dg,b&&d&&c?c=[new Vja(b),new Uja(c),new Wja(d)]:(g.ht(new g.Tr("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),kJ(this,c)),a.push(Dja(this.i.u,this.i.B||"")),c=this.i.I,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new Yja({navigationEndpoint:{urlEndpoint:b}})),
c&&a.push(c),this.i.isSkippable()&&!zI(this.i)&&(c=PJ(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=eka(this)),a.push(new Xja(c)))),c=PJ(this),a.push(new JJ(c)),kJ(this,a))}this.G.isMuted()&&(a=this.l,c=this.G.isMuted(),VI(a)||WI(a,c?"mute":"unmute"));this.V("adplay",1);if(null!==this.W){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=$ja(this);b=this.i;d=Zja(this);for(var e=g.q(this.W.listeners),f=e.next();!f.done;f=e.next()){f=
f.value;var h=c,l=b,m=d,n=[],p=l.B,r=l.getVideoUrl();p&&n.push(new GC(p));r&&n.push(new HC(r));!g.U(f.Aa.get().G.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv")||p||r||tD("videoId and videoUrl missing for video overlay layout");(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new JC(p)),(p=p.elementId)&&n.push(new PC(p))):tD("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new xC(l.i.adNextParams||
""));(p=l.I)&&n.push(new yC(p));(p=tC(f.Fa.get(),2))?(n.push(new CC({channelId:p.Bg,channelThumbnailUrl:p.dg,channelTitle:p.author,videoTitle:p.title})),n.push(new DC(p.isListed))):tD("Expected meaningful PlaybackData on ad started.");n.push(new FC(l.u));n.push(new VC(l.l));n.push(new IC(a));n.push(new SC({current:this}));p=l.Ca;null!=p.kind&&n.push(new EC(p));(p=l.Y)&&n.push(new hD(p));void 0!==m&&n.push(new iD(m));f.i?tD(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):
aka(f,h,n,!0,l.i.adLayoutLoggingData)}this.ea=!0}this.G.xa("onAdStart",OJ(this));a=this.la;c=this.i.B||"";(b=a.l.hc())&&b.getVideoData().videoId===c?a.i=b.pg(1):a.i=null;a=g.q(this.i.i.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.B.executeCommand(c.value,this.macros)};
g.k.ZH=function(a){"bltcompletion"==a.getId()&&(this.G.Oe("bltplayback",2),XI(this.l,this.getDuration()),NJ(this,"adended"))};
g.k.Te=function(){jJ.prototype.Te.call(this);this.ac("adended");for(var a=g.q(this.i.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)};
g.k.kf=function(){jJ.prototype.kf.call(this);this.ac("adabandoned")};
g.k.Iz=function(){var a=this.l;TI(a)||aJ(a,"clickthrough")};
g.k.TF=function(){this.ul()};
g.k.ul=function(){jJ.prototype.ul.call(this);this.ac("adended")};
g.k.ke=function(a){jJ.prototype.ke.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.I.stop();lY(this.C)||this.Ph();SI(this.G,!0);"adabandoned"!=a&&this.G.xa("onAdComplete");NJ(this,a);this.G.xa("onAdEnd",OJ(this));this.V(a)};
g.k.Ph=function(){var a=this.G.T();g.fG(a)&&(g.sG(a)||g.U(a.experiments,"enable_topsoil_wta_for_halftime")||g.fG(a))?(this.G.xa("onAdInfoChange",null),this.X=!0):jJ.prototype.Ph.call(this)};
g.k.Oz=function(){this.uE&&this.G.playVideo()};
g.k.uE=function(){return 2==this.G.getPlayerState(2)};
g.k.Ng=function(a){if(!lY(this.C)){var b=this.l;if(QI(b.i))switch(a){case "ad-title":b.i.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.i.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.i.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.Y||this.Oz();break;case "ad-info-icon-button":(this.Y=this.uE())||this.G.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.G.T().protocol+"://"+g.lG(this.G.T())+"/channel/"+this.i.ga;g.IJ(a);break;case "ad-title":this.G.pauseVideo();g.IJ(this.G.getVideoUrl());break;case "visit-advertiser":this.G.pauseVideo();if(g.sG(this.G.T())&&(a=this.i.I)){b=this.l;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&&ZI(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.IJ(a.urlEndpoint.url)}a=this.l;TI(a)||
aJ(a,"clickthrough");break;case "skip-button":this.ul()}}};
g.k.jD=function(a,b){if(this.i.X)return qja(this),this.ac("aderror"),"";if(!Number.isFinite(a))return g.gt(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.gt(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=Via(this.i);d=this.G.eo(d,2,c,a,b);a+c>b&&this.G.Fp(d,b-a);return d};
g.k.dispose=function(){gja(this.G)&&!this.L&&this.G.stopVideo(2);NJ(this,"adabandoned");jJ.prototype.dispose.call(this)};QJ.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.i[b];c?b=c:(c={xq:null,CE:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.CE))if(b.CE=c,b.xq){if(c<b.xq.end){a:{c=b.xq;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.xq.end=a,this.l.pF(a))}}else if(a=
hka(a,this.u))c=a.SL,b.xq=a.KK,this.l.zF(c)};
QJ.prototype.updateTime=function(){};SJ.prototype.Kf=function(a){var b=this.i;g.hm(function(){return b.Kf(a,1)})};VJ.prototype.lq=function(a,b,c,d,e){qka(this);var f=this.G.getVideoData(1),h=this.G.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.l=a;if(0>=d)qka(this);else if(this.actionType=this.u?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.B=c+1===d,"unknown_type"!==this.actionType)this.Wh=!0,
a={adBreakType:uka(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn,"ad_to_video"===this.actionType&&(a.targetCpn=this.contentCpn)),this.videoId&&(a.videoId=this.videoId),this.adCpn&&(a.adClientPlaybackNonce=this.adCpn,"ad_to_video"!==this.actionType&&(a.targetCpn=this.adCpn)),this.adVideoId&&(a.adVideoId=this.adVideoId),this.adFormat&&(a.adType=this.adFormat),
nE(a,this.actionType)};
VJ.prototype.reset=function(){return new VJ(this.G)};var l0={},m0=(l0.BUFFERING="buffering-mode",l0.CUED="cued-mode",l0.ENDED="ended-mode",l0.PAUSED="paused-mode",l0.PLAYING="playing-mode",l0.SEEKING="seeking-mode",l0.UNSTARTED="unstarted-mode",l0);var WDa,n0,vka;
WDa={MR:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",TR:"AUTHENTICATION_MALFORMED",UR:"AUTHENTICATION_MISSING",bS:"BAD_REQUEST",jS:"CAST_SESSION_DEVICE_MISMATCHED",kS:"CAST_SESSION_VIDEO_MISMATCHED",lS:"CAST_TOKEN_EXPIRED",mS:"CAST_TOKEN_FAILED",nS:"CAST_TOKEN_MALFORMED",oS:"CGI_PARAMS_MALFORMED",pS:"CGI_PARAMS_MISSING",GU:"DEVICE_FALLBACK",eV:"GENERIC_WITH_LINK_AND_CPN",fV:"LICENSE",hV:"VIDEO_UNAVAILABLE",sV:"FORMAT_UNAVAILABLE",HV:"GEO_FAILURE",cW:"HTML5_AUDIO_RENDERER_ERROR",dW:"GENERIC_WITHOUT_LINK",
eW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",fW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",gW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",rW:"INVALID_DRM_MESSAGE",b0:"PURCHASE_NOT_FOUND",d0:"PURCHASE_REFUNDED",n0:"RENTAL_EXPIRED",t0:"RETRYABLE_ERROR",G0:"SERVER_ERROR",u1:"STOPPED_BY_ANOTHER_PLAYBACK",w1:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",x1:"STREAMING_NOT_ALLOWED",y1:"STREAM_LICENSE_NOT_FOUND",L1:"TOO_MANY_REQUESTS",M1:"TOO_MANY_REQUESTS_WITH_LINK",N1:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
O1:"TOO_MANY_STREAMS_PER_USER",n2:"UNSUPPORTED_DEVICE",A2:"VIDEO_FORBIDDEN",D2:"VIDEO_NOT_FOUND"};n0={};
g.EN=(n0.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.",n0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",n0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",n0.LICENSE="Sorry, there was an error licensing this video.",n0.VIDEO_UNAVAILABLE=
"Video unavailable",n0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",n0.GEO_FAILURE="This video isn't available in your country.",n0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",n0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",n0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",n0.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",
n0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",n0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",n0.PURCHASE_NOT_FOUND="This video requires payment.",n0.PURCHASE_REFUNDED="This video's purchase has been refunded.",n0.RENTAL_EXPIRED="This video's rental has expired.",n0.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",n0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
n0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",n0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",n0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",n0.SERVER_ERROR="There was an internal server error. Please try again later.",n0.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",n0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
n0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",n0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",n0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",n0.TOO_MANY_REQUESTS="Please log in to watch this video.",n0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",n0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
n0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",n0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",n0.VIDEO_FORBIDDEN="Access to this video is forbidden.",n0.VIDEO_NOT_FOUND="This video can not be found.",n0);
vka={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.u(XJ,g.E);g.k=XJ.prototype;g.k.Ls=function(){return this.l};
g.k.ao=function(a){var b="";a&&(yka(this,a),b=a.i);if(!this.hf()||b)b&&this.hf()!==b&&this.cv(b),bya||a&&a.l||this.load(),this.I||(this.addEventListener("volumechange",this.QC),this.I=!0)};
g.k.Ks=function(){var a=this.he();a=window.MediaSource?new OA(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new OA(new window.WebKitMediaSource,void 0,!1):new OA(void 0,a,!1);this.ao(a.wr);return a};
g.k.playVideo=function(){var a=this;this.cj()&&this.seekTo(0);!this.hf()&&this.l&&(g.ro(Error("playVideo without src")),this.cv(this.l.i),this.l.l||this.load());var b=this.play();!b&&dya&&QN&&7<=(rI||0)&&g.ep(this,"playing",function(){g.uo(function(){xka(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Fg()&&(eya&&QN&&4>rI&&(a=Math.max(.1,a)),this.Zu(a))};
g.k.stopVideo=function(){this.hf()&&(cya&&jq&&0<this.getCurrentTime()&&this.seekTo(0),this.Tu(),this.load(),yka(this,null))};
g.k.Do=function(){var a=this.Tf();return 0<rz(a)&&this.getDuration()?qz(a,this.getCurrentTime()):0};
g.k.nb=function(){try{var a=this.Vn();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:nz(this.bn(),",",3),vbu:nz(this.Tf()),vpa:""+ +this.Jk(),vsk:""+ +this.Tp(),ven:""+ +this.cj(),vpr:""+this.getPlaybackRate(),vrs:""+this.Fg(),vns:""+this.Mt(),vec:""+this.Hh(),vemsg:this.Ie(),vvol:""+this.getVolume(),vdom:""+ +this.Ey(),vsrc:""+ +!!this.hf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.u.ya(a,b,!1,this);this.Jx(a)};
g.k.removeEventListener=function(a,b){this.u.Gb(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.u.dispatchEvent(a)};
g.k.Ex=function(){this.C=!1};
g.k.Dx=function(){this.C=!0;this.tp(!0)};
g.k.QC=function(){this.C&&!this.Lt()&&this.tp(!0)};
g.k.da=function(){this.I&&this.removeEventListener("volumechange",this.QC);g.E.prototype.da.call(this)};
var bya=!1,cya=!0,dya=!0,eya=!0;g.k=g.bK.prototype;g.k.getData=function(){return this.stateData};
g.k.Kb=function(){return g.W(this,8)&&!g.W(this,512)&&!g.W(this,64)&&!g.W(this,2)};
g.k.isCued=function(){return g.W(this,64)&&!g.W(this,8)&&!g.W(this,4)};
g.k.isError=function(){return g.W(this,128)};
g.k.isSuspended=function(){return g.W(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.u(lK,g.R);g.k=lK.prototype;g.k.gn=function(){var a=this.i;return a.l instanceof yI||a.l instanceof GI||a.l instanceof AI};
g.k.Wv=function(){return this.i.l.Bi()};
g.k.YA=function(){return this.i.i};
g.k.Xv=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.ZA=function(){return HI(this.i)};
g.k.PD=function(a){if(!DD(a)){this.X&&(this.ia=this.G.isAtLiveHead(),this.ea=Math.ceil(g.Sa()/1E3));var b=new SJ(this.Df);a=kka(a);b.Kf(a)}this.ew()};
g.k.rE=function(){return!0};
g.k.Al=function(){return this.L instanceof GI};
g.k.rr=function(){return this.L instanceof yI};
g.k.ew=function(){var a=this.Df;this.rE()&&(a.l&&QK(a,!1),a.l=this,this.gn()&&hma(a));if(!this.i.C.hasOwnProperty("ad_placement_start")){a=g.q(this.i.Y);for(var b=a.next();!b.done;b=a.next())Dka(b.value);this.i.C.ad_placement_start=!0}rka(this.I);this.cG()};
g.k.cG=function(){this.L?this.Up(this.L):this.al()};
g.k.tn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.wh(0);this.al(a,b)};
g.k.dF=function(){this.tn()};
g.k.wM=function(){WI(this.l.l,"active_view_measurable")};
g.k.xM=function(){var a=this.l.l;TI(a)||nja(a)||WI(a,"active_view_fully_viewable_audible_half_duration")};
g.k.BM=function(){};
g.k.CM=function(){};
g.k.DM=function(){};
g.k.EM=function(){};
g.k.HM=function(){var a=this.l.l;TI(a)||nja(a)||WI(a,"active_view_viewable")};
g.k.xD=function(){return this.rr()?[this.Ot()]:[]};
g.k.Wb=function(a){if(null!==this.l){this.ca||(a=new g.gJ(a.state,new g.bK),this.ca=!0);var b=a.state;if(g.iJ(a,2))this.G.Z("web_csi_start_timeline_on_ad_placement")||WJ(this.I),this.l.Te();else{var c=a;(g.U(this.G.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.Kb()&&!c.Gl.Kb():c.state.Kb())?(tka(this.I),this.l.fk()):b.isError()?this.l.ke(b.getData().errorCode):g.iJ(a,4)&&(this.Y||this.l.sl())}if(null!==this.l){if(g.iJ(a,16)&&(b=this.l.l,!(TI(b)||.5>b.i.getCurrentTime(2,!1)&&
!g.U(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.l;if(c.lr()){var d=g.U(b.J.i.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");nl(c.L,d)}b.l.J.seek=!0}0>hJ(a,4)&&!(0>hJ(a,2))&&(b=this.l.l,TI(b)||(VI(b)?aJ(b,"resume"):WI(b,"resume")));!g.U(this.G.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.iJ(a,512)&&!g.jK(a.state)&&ska(this.I)}}};
g.k.Oa=function(){return this.daiEnabled?Cka(this):!1};
g.k.resume=function(){this.l&&this.l.Oz()};
g.k.bl=function(){this.l&&this.l.ac("adended")};
g.k.Oi=function(){this.bl()};
g.k.wh=function(a){this.Df.wh(a)};
g.k.mB=function(a){this.Df.i.xa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.l.Ng(a)};
g.k.uD=function(){return 0};
g.k.wD=function(){return 1};
g.k.zA=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a<nK(this)&&this.G.Nm(a,this.i.i.end)};
g.k.Up=function(a){g.Ei(this.l);this.l=a=this.Nk.create(a,LI(KI(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Qa(this.tn,!0),this);a.subscribe("adabandonedreset",g.Qa(this.tn,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.wM,this);a.subscribe("adended",this.tn,this);a.subscribe("aderror",this.dF,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.xM,this);a.subscribe("adoverlaymeasurableimpression",this.BM,this);a.subscribe("adoverlayunviewableimpression",this.CM,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.DM,this);a.subscribe("adoverlayviewableimmediateimpression",this.EM,this);a.subscribe("adpause",this.uy,this);a.subscribe("adplay",this.uy,this);a.subscribe("adunstarted",this.uy,this);a.subscribe("onAdUxUpdate",this.mB,this);a.subscribe("adviewableimpression",this.HM,this);a.ca?a.ke("ui_unstable"):a.Ci();Eka(this,!1)};
g.k.al=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Y=!0;g.Ei(this.l);this.G.Z("web_csi_start_timeline_on_ad_placement")&&WJ(this.I);if(a)var c=!1;else this.daiEnabled?(c=this.G.getCurrentTime(2,!0),c=1>=Math.abs(c-this.i.i.end/1E3)):c=!0;if(c&&!this.i.C.hasOwnProperty("ad_placement_end")){c=g.q(this.i.X);for(var d=c.next();!d.done;d=c.next())Dka(d.value);this.i.C.ad_placement_end=!0}c=this.i.L;if(null!==c){d=this.Tj;var e=this.i.B&&this.i.B.identifier,f=this.i.i.start,h=nK(this);d.l&&TJ({driftRecoveryInfo:{contentCpn:d.i,
cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.u.kl()).toString()}});this.i.L=null}b||this.daiEnabled?QK(this.Df,!0):this.X&&this.ZA()&&this.rr()?QK(this.Df,!1,Jka(this)):QK(this.Df,!1);Eka(this,!0)};
g.k.uy=function(a){this.wh(a)};
g.k.Ot=function(){return this.L};
g.k.isLiveStream=function(){return this.X};
g.k.reset=function(){return new lK(this.Df,this.G,this.I.reset(),this.i,this.Tj,this.qo,this.Nk,this.daiEnabled)};
g.k.da=function(){g.Ei(this.l);this.l=null;g.R.prototype.da.call(this)};Kka.prototype.create=function(a){return(a.l instanceof AI?this.u:""===a.I?this.i:this.l)(a)};oK.prototype.clickCommand=function(a){var b=g.iu();if(!a.clickTrackingParams||!b)return!1;ru(this.client,b,g.cu(a.clickTrackingParams),void 0);return!0};rK.prototype.fn=function(a,b){var c,d,e,f=(null===(d=null===(c=b.Dy.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;h&&this.replace(f,h)};
rK.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.i[d.value.encryptedTokenJarContents];Rka(this,b)};sK.prototype.fn=function(a){var b,c,d=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==d&&(this.locationPlayabilityToken=d,this.i=void 0,"TVHTML5"===(null===(c=a.responseContext)||void 0===c?void 0:c.clientName)?(this.localStorage=Ska(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.Oq("YT_CL",JSON.stringify({H3:d}),15552E3,void 0,!0))};var vK;g.u(uK,Jr);uK.prototype.It=function(a,b){var c=Jr.prototype.It.call(this,a,b);return Object.assign(Object.assign({},c),this.i)};var ila=/[&\?]action_proxy=1/,hla=/[&\?]token=([\w-]*)/,jla=/[&\?]video_id=([\w-]*)/,kla=/[&\?]index=([\d-]*)/,lla=/[&\?]m_pos_ms=([\d-]*)/,ola=/[&\?]vvt=([\w-]*)/,bla="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(" "),mla="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(" "),ela={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"},fla={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},nla={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};wK.prototype.Uo=function(a){this.player.Mq().tick(a)};
wK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return yK(this,a,b);var d=1===this.i;d&&this.Uo("a_bid_s");var e=Xka();if(null!==e)return d&&this.Uo("a_bid_f"),yK(this,a,b,e);e=Yka();d&&vm(e,function(){c.Uo("a_bid_f")});
return e.then(function(f){return yK(c,a,b,f)})};
wK.prototype.reset=function(){this.l=this.i=1};g.u(zK,g.R);g.k=zK.prototype;g.k.YA=function(){return this.i.i};
g.k.Xv=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.ZA=function(){return HI(this.i)};
g.k.gn=function(){return!1};
g.k.Wv=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.PD=function(a){var b=this;if(1!==this.i.u&&2!==this.i.u){var c=[];this.Xv()||(c=kka(a));this.i.u=1;vm(this.C.fetch(this.i.I,{wq:this.i.B||void 0,Yd:this.i.i}).then(function(d){if(!b.na()){var e=c;g.U(b.u.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.u.isFullscreen();var f=null;if(g.U(b.u.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),to(l)))}}f=qla(b,f);d=b.B;d.l&&f.isEmpty&&UJ("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.i);f.sE||(b.i.u=2,(new SJ(b.l)).Kf(e),f.isEmpty||sC(b.I,f.Nj))}},function(){(new SJ(b.l)).Kf(c);
var d=b.B;d.l&&UJ("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.u&&(b.i.u=0);
b.Xv()&&NK(b.l)})}};
g.k.ew=function(){};
g.k.zA=function(){};var tla=Object.freeze([lJ,oJ,GI,sJ,tJ,yI]);g.u(AK,lK);g.k=AK.prototype;g.k.xD=function(){for(var a=this.B.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.rE=function(){return(0>=this.C?this.B.i:this.B.i.slice(this.C)).some(function(a){return a.ik()})};
g.k.Al=function(){return this.J instanceof GI||this.J instanceof sJ};
g.k.rr=function(){return this.J instanceof yI||this.J instanceof oJ};
g.k.cG=function(){this.daiEnabled?QI(this.G)&&Cka(this):sla(this)};
g.k.Up=function(a){var b=rla(a);this.J&&b&&this.W!==b&&(b?hma(this.Df):jma(this.Df),this.W=b);this.J=a;this.daiEnabled&&(this.C=this.B.i.findIndex(function(c){return c===a}));
lK.prototype.Up.call(this,a)};
g.k.al=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.u&&(g.Ei(this.u),this.u=null);lK.prototype.al.call(this,a,b)};
g.k.Oi=function(){this.C=this.B.i.length;this.u&&this.u.ac("adended");this.l&&this.l.ac("adended");this.al()};
g.k.bl=function(){this.tn()};
g.k.Wb=function(a){lK.prototype.Wb.call(this,a);a=a.state;g.W(a,2)&&this.u?this.u.Te():a.Kb()?(null==this.u&&(a=this.B.u)&&(this.u=this.Nk.create(a,LI(KI(this.i)),this.i.i.i),this.u.subscribe("onAdUxUpdate",this.mB,this),a=this.u,a.ca?a.ke("ui_unstable"):a.Ci()),this.u&&this.u.fk()):a.isError()&&this.u&&this.u.ke(a.getData().errorCode)};
g.k.tn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.wh(0),a?this.al(a,b):sla(this))};
g.k.dF=function(){1==this.B.l?this.al():this.tn()};
g.k.onAdUxClicked=function(a){lK.prototype.onAdUxClicked.call(this,a);this.u&&this.u.Ng(a)};
g.k.Ot=function(){var a=0>=this.C?this.B.i:this.B.i.slice(this.C);return 0<a.length?a[0]:null};
g.k.da=function(){g.Ei(this.u);this.u=null;lK.prototype.da.call(this)};
g.k.gn=function(){return this.W};
g.k.Wv=function(){return this.B.i.every(function(a){return a.Bi()})};
g.k.reset=function(){return new AK(this.Df,this.G,this.I.reset(),this.i,this.Tj,this.qo,this.Nk,this.daiEnabled)};
g.k.uD=function(){return this.C};
g.k.wD=function(){return this.B.i.length};ula.prototype.sD=function(){return this.i};g.u(vla,AI);g.u(xla,AI);yla.prototype.create=function(a,b){function c(n){return new yI(n,d.u,b,d.i,d.l)}
var d=this,e=a.instreamVideoAdRenderer,f=a.invideoOverlayAdRenderer,h=a.instreamSurveyAdRenderer,l=a.sandwichedLinearAdRenderer,m=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new qJ(f):null!=h?new GI(h):null!=l?new xla(l,c,this.i):null!=m?new vla(m,c):null};Ala.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 vD(h.u,h.l,h.daiEnabled,h.B),m=h.md;m&&(l.md=new Fv(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.md=f;e.push(Bla(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Bla(this,d.value,c,b)),c++;return e};g.u(Dla,g.E);g.u(BK,g.E);BK.prototype.addEventListener=function(a,b){this.i=b};
BK.prototype.removeEventListener=function(){this.i=null};
g.u(CK,g.E);CK.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
CK.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.u(Hla,g.E);var DK=null,Jla=null,EK=null,FK=null,GK=null;g.Da("yt.www.ads.eventcache.getLastCompanionData",function(){return DK},void 0);
g.Da("yt.www.ads.eventcache.getLastPlaShelfData",function(){return Jla},void 0);
g.Da("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return EK},void 0);
g.Da("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return FK},void 0);
g.Da("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return GK},void 0);var Ula={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(JK,g.E);JK.prototype.da=function(){this.hd.clear();g.E.prototype.da.call(this)};
JK.prototype.lg=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.na();a=g.q(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
JK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.na();a.loggingUrls&&Vla(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;"openPopupAction"===d?Sla(this,e):Ula.hasOwnProperty(d)||Vla(this,d,e,b,c)}};g.u(MK,g.R);g.k=MK.prototype;g.k.wy=function(){return!cma(this,fma(this))};
g.k.Gt=function(){return this.za};
g.k.da=function(){this.ia=!0;g.Pt(this.B);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.oF,this);if(RI(this.i)){var a=Yla(this.i);a.removeEventListener("updateKevlarOrC3Companion",Ila);a.removeEventListener("onPlaShelfInfoCardsReady",Kla);a.removeEventListener("updateEngagementPanelAction",Lla);a.removeEventListener("changeEngagementPanelVisibility",Mla);a.removeEventListener("scrollToEngagementPanel",Nla);window.removeEventListener("yt-navigate-start",Ola);GK=FK=EK=DK=null}a=
g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())ima(this,b.value);QK(this,!1);this.Em.clear();this.ea=[];this.W.clear();g.Ei(this.L);this.L=new Map;g.Ei(this.J);this.J=new Map;this.u.clear();g.R.prototype.da.call(this)};
g.k.pz=function(a){if(a instanceof CD&&!a.l&&(!ED(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.W(this.i.Xa(1),32))this.W.add(a);else{var b=this.u.get(a);b&&((g.U(this.i.T().experiments,"enable_eviction_protection_for_bulleit")?this.l?this.l.Wv():1:1)?b.PD(a):a.deactivate())}};
g.k.pN=function(a){a instanceof CD&&(a.l&&(a.l=!1),this.W["delete"](a))};
g.k.oF=function(a){nka(this.ma,a);null==this.I?g.ro(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),OK(this,[this.I],a))};
g.k.zF=function(a){OK(this,[this.I],[a])};
g.k.pF=function(a){var b=1E3*a;this.l&&this.l.zA(b);for(var c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d.value.zA(b);g.zb(this.Ja.i,1E3*a)};
g.k.nj=function(a){switch(a){case "control_play":this.l&&(a=this.l,a.rr()?a.G.hc().playVideo():a.Al()&&a.l.fk());break;case "control_pause":this.l&&(a=this.l,a.rr()?a.G.hc().pauseVideo():a.Al()&&a.l.sl())}};
g.k.bI=function(a){this.l&&this.l.Wb(a)};
g.k.UM=function(a){0>hJ(a,16)&&(this.W.forEach(this.pz,this),this.W.clear())};
g.k.wP=function(){this.l&&this.l.Oa()};
g.k.zP=function(){if(QI(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.J&&mja(b.l,a,b.getDuration()))}};
g.k.uM=function(){this.Pa=!0;if(this.l){var a=this.l;a.l&&a.l.kf()}};
g.k.FM=function(a){if(this.l)this.l.onAdUxClicked(a)};
g.k.AP=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.G.isMuted();VI(b)||WI(b,a?"mute":"unmute")}};
g.k.BN=function(a){if(this.l){var b=this.l.l.l;TI(b)||aJ(b,a?"fullscreen":"end_fullscreen")}};
g.k.Kf=function(a,b){this.i.Kf(a,b);for(var c=g.q(a),d=c.next();!d.done;d=c.next())d=d.value,this.Em["delete"](d),this.u["delete"](d)};
g.k.YQ=function(){for(var a=[],b=g.q(this.Em),c=b.next();!c.done;c=b.next())c=c.value,DD(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||cW(b,"cuerangemarkersupdated",a)};
g.k.wh=function(a){this.i.wh(a);switch(a){case 1:this.du=1;break;case 0:this.du=0}};
g.k.eA=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.X:!1};
g.k.bl=function(){this.l&&this.l.gn()&&this.l.bl()};
g.k.Oi=function(){this.l&&this.l.gn()&&this.l.Oi()};
g.k.Fq=function(a){(a=this.L.get(a))&&(a=OK(this,[a]))&&0!=a.length&&a[0].ew()};
g.k.nq=function(){var a=this.Ha,b=a.i.getVideoData(1);a.i.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})};
g.k.Ab=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.J&&mja(b.l,a,b.getDuration()))}};
g.k.Al=function(){return QI(this.i)&&!!this.l&&this.l.Al()};
g.k.executeCommand=function(a,b,c){var d=this.Za,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.lr()?YI(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.sD=function(){return this.la};
g.k.tD=function(){return this.Ca};g.u(RK,NI);RK.prototype.l=function(){return this.i()};
RK.prototype.u=function(){return this.B()};g.u(SK,g.E);SK.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.u(TK,SK);g.u(mma,g.E);var oma=1;g.u(g.VK,g.E);g.k=g.VK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.K,d=a.ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.xG&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.Ie(a.D);if(c){if(c=WK(this,e,"class",c))XK(this,e,"class",c),this.Ha[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Ha[f.value]=e;XK(this,e,"class",d.join(" "))}d=a.ba;c=a.S;if(d)d=WK(this,e,"child",d),void 0!==d&&e.appendChild(g.Je(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=WK(this,e,"child",f),null!=f&&e.appendChild(g.Je(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.vb&&(h=UK(),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.Le(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];XK(this,c,h,"string"===
typeof l?WK(this,c,h,l):l)}return e};
g.k.ha=function(a){return this.Ha[a]};
g.k.fa=function(a,b){"number"===typeof b?g.Le(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Me(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.Ba(c,a[c])};
g.k.Ba=function(a,b){var c=this.kc["{{"+a+"}}"];c&&XK(this,c[0],c[1],b)};
g.k.da=function(){this.Ha={};this.kc={};this.detach();g.E.prototype.da.call(this)};g.u(g.X,g.VK);g.k=g.X.prototype;g.k.Ec=function(a,b){this.Ba(b||"content",a)};
g.k.show=function(){this.ab||(g.mg(this.element,"display",""),this.ab=!0)};
g.k.hide=function(){this.ab&&(g.mg(this.element,"display","none"),this.ab=!1)};
g.k.zb=function(a){this.W=a};
g.k.ya=function(a,b,c){return this.N(this.element,a,b,c)};
g.k.N=function(a,b,c,d){c=(0,g.B)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Gb=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;Te(a);a.focus()};
g.k.da=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.VK.prototype.da.call(this)};g.u(g.ZK,g.X);g.ZK.prototype.subscribe=function(a,b,c){return this.ia.subscribe(a,b,c)};
g.ZK.prototype.unsubscribe=function(a,b,c){return this.ia.unsubscribe(a,b,c)};
g.ZK.prototype.Nf=function(a){return this.ia.Nf(a)};
g.ZK.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ia.V.apply(this.ia,[a].concat(g.la(c)))};var XDa=new WeakSet;g.u($K,g.ZK);g.k=$K.prototype;g.k.bind=function(a){if(!this.Ja&&a.renderer){var b=Object.assign({},lma(this.api,this.Da),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ja=a;this.element.setAttribute("id",this.Ja);this.Za&&g.N(this.element,this.Za);this.X=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Jg(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.ZK.prototype.hide.call(this);null!=this.J&&this.Qa(this.element,!1)};
g.k.show=function(){g.ZK.prototype.show.call(this);if(!this.ib){this.ib=!0;var a=this.X&&this.X.impressionCommand;a&&qma(this,a,null)}null!=this.J&&this.Qa(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!XDa.has(a)){var b=this.element;this.api.fr(b)&&this.ab&&this.api.ub(b,this.i);XDa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.kG(a),qma(this,a,this.zD())};
g.k.kG=function(a){return a};
g.k.zD=function(){return null};
g.k.eI=function(a){var b=this.ca;b.J=!0;b.l=a.touches.length;b.i.isActive()&&(b.i.stop(),b.C=!0);a=a.touches;b.I=nma(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.L=Infinity,b.W=Infinity):(b.L=c.clientX,b.W=c.clientY);for(c=b.u.length=0;c<a.length;c++){var d=a.item(c);b.u.push(d.identifier)}};
g.k.dI=function(a){var b=this.ca;a=a.changedTouches.item(0);var c;if(c=Wd()){c=g.Wc;var d="";Xc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Wd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Xc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Bc(g.Wc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Xc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Xc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Ec(d||"",8))}if(c||a&&Math.pow(a.clientX-b.L,2)+Math.pow(a.clientY-b.W,2)>Math.pow(5,2))b.B=!0};
g.k.cI=function(a){if(this.ca){var b=this.ca,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.I&&nma(b,c)&&(b.X=a,b.i.start());b.l=a.touches.length;0===b.l&&(b.J=!1,b.B=!1,b.u.length=0);b.C=!1}};
g.k.Jg=function(a,b){this.api.Jg(a,this);this.api.Tl(a,b)};
g.k.Qa=function(a,b){this.api.fr(a)&&this.api.Qa(a,b,this.i)};
g.k.da=function(){this.clear(null);this.Gb(this.Wa);for(var a=g.q(this.ea),b=a.next();!b.done;b=a.next())this.Gb(b.value);g.ZK.prototype.da.call(this)};g.u(nL,$K);
nL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)to(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.N(this.element,a);null!=b.text&&(a=g.HD(b.text),g.rc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.ZK({D:"span",K:"ytp-ad-button-text",ba:a}),g.I(this,this.B),this.B.fa(this.element)));null!=b.icon&&(b=mL(b.icon),null!=
b&&(this.u=new g.ZK({D:"span",K:"ytp-ad-button-icon",S:[b]}),g.I(this,this.u)),this.C?g.Le(this.element,this.u.element,0):this.u.fa(this.element))}};
nL.prototype.clear=function(){this.hide()};
nL.prototype.onClick=function(a){var b=this;$K.prototype.onClick.call(this,a);Hma(this).forEach(function(c){return b.Da.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.u(oL,g.E);oL.prototype.da=function(){this.l&&g.Xo(this.l);this.i.clear();pL=null;g.E.prototype.da.call(this)};
oL.prototype.register=function(a,b){b&&this.i.set(a,b)};
var pL=null;g.u(rL,$K);
rL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.ro(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nL(this.api,this.Da,this.layoutId,this.i),g.I(this,this.button),this.button.init(dJ("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.HD(a)),this.button.fa(this.element),this.I&&!g.kn(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.ZK({D:"div",K:"ytp-ad-hover-text-container"}),this.C&&(b=new g.ZK({D:"div",K:"ytp-ad-hover-text-callout"}),b.fa(this.u.element),g.I(this,b)),g.I(this,this.u),this.u.fa(this.element),b=qL(a),g.Le(this.u.element,b,0)),this.show())};
rL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();$K.prototype.hide.call(this)};
rL.prototype.show=function(){this.button&&this.button.show();$K.prototype.show.call(this)};g.u(tL,$K);tL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&sL(a)||"";g.rc(b)?(g.U(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&to(Error("Found AdImage without valid image URL")):(this.l?g.mg(this.element,"backgroundImage","url("+b+")"):ye(this.element,{src:b}),ye(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
tL.prototype.clear=function(){this.hide()};g.u(uL,$K);g.k=uL.prototype;g.k.hide=function(){$K.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;$K.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.ro(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.ro(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Lma(this,b):g.ro(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Pt(this.l);this.hide()};
g.k.mz=function(){this.hide()};
g.k.hw=function(){var a=this.u.cancelEndpoint;a&&this.Da.executeCommand(a,this.macros);this.hide()};
g.k.nz=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Da.executeCommand(a,this.macros);this.hide()};g.u(vL,$K);g.k=vL.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.ro(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.ro(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.N(this.B,a)}a={};b.defaultText?
(c=g.HD(b.defaultText),g.rc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Fg(this.ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=mL(b.defaultIcon),this.Ba("untoggledIconTemplateSpec",c),b.toggledIcon?(this.L=!0,c=mL(b.toggledIcon),this.Ba("toggledIconTemplateSpec",c)):(g.Fg(this.I,!0),g.Fg(this.C,!1)),g.Fg(this.l,!1)):g.Fg(this.Y,!1);g.Pb(a)||this.update(a);b.isToggled&&
(g.N(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));wL(this);this.N(this.element,"change",this.nB);this.show()}};
g.k.onClick=function(a){0<this.ea.length&&(this.toggleButton(!this.isToggled()),this.nB());$K.prototype.onClick.call(this,a)};
g.k.nB=function(){var a=this;g.O(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());Mma(this,this.isToggled()).forEach(function(b){return a.Da.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);wL(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.O(this.B,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;wL(this)};
g.k.isToggled=function(){return this.l.checked};g.u(xL,Nt);xL.prototype.J=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 GD&&this.u(b)}};var Ooa={seekableStart:0,seekableEnd:1,current:0};g.u(yL,$K);yL.prototype.clear=function(){this.dispose()};g.u(BL,$K);BL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.Qe(this.element,aL(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?sL(a):"",c=(c=this.api.getVideoData(1))&&c.kj,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()};
BL.prototype.isTemplated=function(){return this.l.isTemplated||!1};
BL.prototype.clear=function(){this.hide()};g.u(DL,g.R);g.k=DL.prototype;g.k.Nq=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.i.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.i.stop())};
g.k.Ab=function(){this.l+=100;var a=!1;this.l>this.durationMs&&(this.l=this.durationMs,this.i.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l/1E3};this.Da&&this.Da.Ab(this.B.current);this.V("b");a&&this.V("a")};
g.k.getProgressState=function(){return this.B};g.u(GL,yL);g.k=GL.prototype;g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){to(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new BL(this.api,this.Da,this.layoutId,this.i);this.u.init(dJ("ad-text"),a,{});this.u.fa(this.element);g.I(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){AL(this);yL.prototype.hide.call(this)};
g.k.Dn=function(){this.hide()};
g.k.Ll=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(void 0!==this.B?this.B:this.l instanceof DL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.EL(a);CL(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){zL(this);yL.prototype.show.call(this)};g.u(HL,$K);g.k=HL.prototype;g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.ro(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&to(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&to(Error("AdFeedbackRenderer.title was not set.")),Qma(this,b)):g.ro(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){fp(this.I);fp(this.L);this.C.length=0;this.hide()};
g.k.hide=function(){this.l&&this.l.hide();this.u&&this.u.hide();$K.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.l&&this.l.show();this.u&&this.u.show();this.B=document.activeElement;$K.prototype.show.call(this);this.I.focus()};
g.k.jF=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.V("c");this.hide()};
g.k.uP=function(){this.hide()};
Rma.prototype.isChecked=function(){return this.u.checked};g.u(IL,uL);IL.prototype.mz=function(a){uL.prototype.mz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
IL.prototype.hw=function(a){uL.prototype.hw.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
IL.prototype.nz=function(a){uL.prototype.nz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("d")};g.u(JL,$K);g.k=JL.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.ro(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&to(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.I(this,this.l),
this.l.init(dJ("button"),a,this.macros),this.l.fa(this.element);b.title&&(a=g.HD(b.title),this.Ba("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=qL(a[c]);if(!g.rc(d.textContent)){var e=He("LI");e.appendChild(d);this.la.appendChild(e)}}else g.Fg(this.la,!1);b.dialogMessage&&(a=qL(b.dialogMessage,!0),this.za.appendChild(a));b.confirmLabel&&(a=g.HD(b.confirmLabel),this.Ba("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?to(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Tma(this,a):c&&Uma(this,c),this.B=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.I(this,this.B),this.B.init(dJ("button"),b,this.macros),this.B.ya("click",this.ZN,this),this.B.fa(this.Ca)));
Vma(this)}};
g.k.clear=function(){fp(this.L);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.l&&this.l.hide();this.B&&this.B.hide();$K.prototype.hide.call(this);this.Y&&this.Y.focus()};
g.k.show=function(){this.l&&this.l.show();this.B&&this.B.show();this.ma||(Sma(this),this.ma=!0);this.Y=document.activeElement;$K.prototype.show.call(this);this.L.focus()};
g.k.oB=function(){this.I&&this.I.confirmServiceEndpoint&&this.Da.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.V("f");this.hide()};
g.k.ZN=function(){var a=this.u?this.u:this.C;a&&!a.ab&&(this.hide(),a.show())};g.u(KL,rL);KL.prototype.init=function(a,b,c){rL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Yma(this,a,c),this.show())};
KL.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();rL.prototype.hide.call(this)};
KL.prototype.show=function(){this.button&&this.button.show();rL.prototype.show.call(this)};
KL.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?Qda:b;var e=g.Pa(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.A;var m=pDa.get(l);m||(m={},pDa.set(l,m));return Zd(m,[this].concat(g.la(h)),c,d)}})(function(a){var b=g.Ie("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Ie("DIV");g.Dg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Me(b);return a});g.u(g.LL,g.E);g.k=g.LL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Av(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.ab||(ML(this,!0),this.state=1,a?this.delay.start(a):this.Av()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.ab&&(ML(this,!0),this.state=4,this.delay.start(this.B)))};
g.k.Av=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:ML(this,!1);this.state=3;this.delay.start(this.u);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();ML(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.l&&this.l()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.Av()};
g.k.da=function(){this.element.na()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.da.call(this)};g.u(NL,yL);g.k=NL.prototype;g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.ro(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.l.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.u.init(dJ("ad-text"),d,c);this.u.fa(this.B.element);this.L.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Zma(this,!1);yL.prototype.hide.call(this);this.B.hide();this.u.hide();AL(this)};
g.k.show=function(){Zma(this,!0);yL.prototype.show.call(this);zL(this);this.B.show();this.u.show()};
g.k.Dn=function(){this.hide()};
g.k.Ll=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ga&&a>=this.C?(this.L.hide(),this.ga=!0):this.u&&this.u.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.Y&&(CL(this.u,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.u(OL,yL);g.k=OL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.ro(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ca&&g.N(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ga=null==a||0===a?this.l.Nq():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(dJ("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.kj&&b.thumbnail?this.C.init(dJ("ad-image"),b.thumbnail,c):this.L.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.C.hide();AL(this);yL.prototype.hide.call(this)};
g.k.show=function(){zL(this);this.u.show();this.B.show();this.C.show();yL.prototype.show.call(this)};
g.k.Dn=function(){this.hide()};
g.k.Ll=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.za&&a>=this.ga?(g.U(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.Y.hide(),this.za=!0,this.V("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.ga-a)/1E3)),a!=this.ma&&(CL(this.B,{TIME_REMAINING:String(a)}),this.ma=a)))}};g.u(QL,BL);QL.prototype.onClick=function(a){BL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(RL,yL);g.k=RL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.rc(g.td(d[0].url))&&(d[0].url=a.dg)}else g.ht(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(dJ("ad-image"),b.image,c);this.C.init(dJ("ad-text"),
b.headline,c);this.B.init(dJ("ad-text"),b.description,c);this.u.init(dJ("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.ga=b.startMs||0;zL(this)}else g.gt(Error("FlyoutCtaRenderer has no valid action button."));else g.gt(Error("FlyoutCtaRenderer has no description AdText."));else g.gt(Error("FlyoutCtaRenderer has no headline AdText."));else g.ht(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){yL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Pe(this.u.element,a.target)&&this.Y&&this.Da.executeCommand(this.Y,this.macros)};
g.k.Ll=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.ga&&(AL(this),g.mn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Dn=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.u&&this.u.show();yL.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();yL.prototype.hide.call(this)};g.u(SL,$K);g.k=SL.prototype;g.k.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&($ma(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Da.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();$K.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();$K.prototype.show.call(this)};
g.k.pB=function(){on(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.xa("onYtShowToast",this.l.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.ea.length&&this.pB();$K.prototype.onClick.call(this,a)};g.u(TL,g.E);g.k=TL.prototype;g.k.da=function(){this.reset();g.E.prototype.da.call(this)};
g.k.reset=function(){g.Pt(this.B);this.I=!1;this.i&&this.i.stop();this.C.stop();this.l&&(this.l=!1,this.J.play())};
g.k.start=function(){this.reset();this.B.N(this.u,"mouseover",this.gI,this);this.B.N(this.u,"mouseout",this.fI,this);this.i?this.i.start():(this.I=this.l=!0,g.mg(this.u,{opacity:this.W}))};
g.k.gI=function(){this.l&&(this.l=!1,this.J.play());this.C.stop();this.i&&this.i.stop()};
g.k.fI=function(){this.I?this.C.start():this.i&&this.i.start()};
g.k.vC=function(){this.l||(this.l=!0,this.L.play(),this.I=!0)};g.u(UL,yL);g.k=UL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.L=b;this.ga=bna(this);if(!b||g.Pb(b))g.ro(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Pb(b.message))g.ro(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=mL(a);null==b?g.ro(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.ZK({D:"button",ka:["ytp-ad-skip-button","ytp-button"],S:[{D:"span",
K:"ytp-ad-skip-button-icon",S:[b]}]}),g.I(this,this.C),this.C.fa(this.B.element),this.u=new BL(this.api,this.Da,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.u.init(dJ("ad-text"),this.L.message,c),g.I(this,this.u),g.Le(this.C.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.ea.length)&&c.i&&(NF?0:"ontouchstart"in document.documentElement&&(Wf()||Vf()))&&(this.Gb(this.Wa),d&&this.Gb(d),this.ea=[this.N(this.element,"touchstart",this.eI,this),this.N(this.element,"touchmove",
this.dI,this),this.N(this.element,"touchend",this.cI,this)])}};
g.k.clear=function(){this.Y.reset();this.hide()};
g.k.hide=function(){this.B.hide();this.u&&this.u.hide();AL(this);yL.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C&&(a&&g.bp(a),yL.prototype.onClick.call(this,a),this.V("j"),this.ma||!this.ga))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.kG=function(a){if(!g.U(this.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")||!this.ma)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&ana(e.adLifecycleCommand)||e.pingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.zD=function(){return"skip"};
g.k.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();zL(this);yL.prototype.show.call(this)};
g.k.Dn=function(){this.V("k")};
g.k.Ll=function(){};g.u(VL,yL);g.k=VL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Pb(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.mA(this.api.T().experiments,"preskip_button_style_ads_backend")&&dG(this.api.T());this.u=new OL(this.api,this.Da,this.layoutId,this.i,this.l,d);this.u.init(dJ("preskip-component"),a,c);PL(this.u);g.I(this,this.u);this.u.fa(this.element);
g.U(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.u.subscribe("i",this.pO,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Pb(b)?null:b;null==b?g.ro(Error("SkipButtonRenderer was not set in player response.")):(this.B=new UL(this.api,this.Da,this.layoutId,this.i,this.l,this.Y),this.B.init(dJ("skip-button"),b,c),g.I(this,this.B),this.B.fa(this.element),this.show())};
g.k.show=function(){this.L&&this.B?this.B.show():this.u&&this.u.show();zL(this);yL.prototype.show.call(this)};
g.k.Dn=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();AL(this);yL.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();AL(this);yL.prototype.hide.call(this)};
g.k.pO=function(){WL(this,!0)};
g.k.Ll=function(){g.U(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.u||1E3*this.l.getProgressState().current>=this.C&&WL(this,!0):1E3*this.l.getProgressState().current>=this.C&&WL(this,!0)};g.u(XL,$K);XL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new VL(this.api,this.Da,this.layoutId,this.i,this.l,!1),b.fa(this.u),b.init(dJ("skip-button"),a.skipAdRenderer,this.macros),g.I(this,b)));this.show()};g.u(YL,nL);YL.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.HD(b.text),a=!g.rc(a));a?null==b.navigationEndpoint?to(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?to(Error("Button style was not a link-style type in renderer,")):this.show():to(Error("No visit advertiser text was present in the renderer."))};g.u(ZL,$K);ZL.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);a=b.text;g.rc(aL(a))?to(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=this.api.T(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new BL(this.api,this.Da,this.layoutId,this.i),a.init(dJ("simple-ad-badge"),b,c),a.fa(this.element),g.I(this,a)),this.show())};
ZL.prototype.clear=function(){this.hide()};g.u(dM,g.ZK);dM.prototype.Ab=function(){var a=this.l.getProgressState();this.Yc.style.width=100*cM(new $L(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
dM.prototype.u=function(){g.XF(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("b",this.Ab,this),this.Ab()):-1!==this.i&&(this.hide(),this.l.Nf(this.i),this.i=-1))};g.u(eM,$K);
eM.prototype.init=function(a,b,c,d){$K.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new VL(this.api,this.Da,this.layoutId,this.i,this.l,this.I),c.fa(this.C),c.init(dJ("skip-button"),a.skipAdRenderer,this.macros),g.I(this,c)):a.adPreviewRenderer&&(c=new OL(this.api,this.Da,this.layoutId,this.i,this.l,!1),c.fa(this.C),c.init(dJ("ad-preview"),a.adPreviewRenderer,this.macros),PL(c),g.I(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new SL(this.api,this.Da,this.layoutId,this.i),c.fa(this.Y),c.init(dJ("instream-user-sentiment"),a,this.macros),g.I(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new RL(this.api,this.Da,this.layoutId,this.i,this.l),g.I(this,c),c.fa(this.L),c.init(dJ("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.u;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new ZL(this.api,this.Da,this.layoutId,this.i,!0),g.I(this,
c),c.fa(this.u),c.init(dJ("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 GL(this.api,this.Da,this.layoutId,this.i,this.l,d),g.I(this,d),d.fa(this.u),d.init(dJ("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new KL(this.api,this.Da,this.layoutId,this.i,this.element),
g.I(this,a),a.fa(this.u),a.init(dJ("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=cna(this)&&this.B?this.B:this.u))&&(a=new YL(this.api,this.Da,this.layoutId,this.i),g.I(this,a),a.fa(d),a.init(dJ("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!UF(b)&&"3"==b.controlsType&&(b=new dM(this.api,this.l),b.fa(this.ga),g.I(this,b));g.U(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
eM.prototype.clear=function(){this.hide()};g.Da("yt.pubsub.publish",g.Do,void 0);var o0={},ona=(o0.WEB_UNPLUGGED="^unplugged/",o0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",o0.WEB_UNPLUGGED_OPS="^unplugged/",o0.WEB_UNPLUGGED_PUBLIC="^unplugged/",o0.WEB_CREATOR="^creator/",o0.WEB_KIDS="^kids/",o0.WEB_EXPERIMENTS="^experiments/",o0.WEB_MUSIC="^music/",o0.WEB_REMIX="^music/",o0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",o0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",o0);g.u(lM,kM);lM.prototype.u=function(){return zDa};
lM.prototype.i=function(a){return a.subscribeEndpoint};
lM.prototype.l=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(mM,kM);mM.prototype.u=function(){return ADa};
mM.prototype.i=function(a){return a.unsubscribeEndpoint};
mM.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.u(nM,kM);nM.prototype.u=function(){return wDa};
nM.prototype.i=function(a){return a.feedbackEndpoint};
nM.prototype.l=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(oM,kM);oM.prototype.u=function(){return xDa};
oM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
oM.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(pM,kM);pM.prototype.u=function(){return yDa};
pM.prototype.i=function(a){return a.playlistEditEndpoint};
pM.prototype.l=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.u(qM,kM);qM.prototype.u=function(){return vDa};
qM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
qM.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};rM.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return qm(this.l.u(a,b)["catch"](function(f){g.ht(f)}));
if(this.i){var e=zd(g.Bd(5,Td(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new Request(a,b);return qm(fetch(e).then(function(f){return c.fn(f)})["catch"](function(f){var h,l;
if(null===(h=c.l)||void 0===h?0:h.i(a,b))return f=c.l.l(a,b),null===(l=c.i)||void 0===l?void 0:l.success(),f;g.ht(f)}))};
rM.prototype.fn=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.i&&this.i.success():(this.i&&this.i.failure(),b=b.then(function(c){g.ht(new g.Tr("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var sM;Mr.prototype.fd=function(a){this.handleError(a)};
Mr.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Ko("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Ko("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":una(this,b);break;case "TRANSACTION_ENDED":Math.random()<=g.Lo("ytidb_transaction_ended_event_rate_limit",.02)&&this.i("idbTransactionEnded",b);
break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":var c=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.l});this.i("idbTransactionAborted",c)}};var ot=new mt,uM=0;var p0={},YDa=(p0["api.invalidparam"]=2,p0.auth=150,p0["drm.auth"]=150,p0["heartbeat.net"]=150,p0["heartbeat.servererror"]=150,p0["heartbeat.stop"]=150,p0["html5.unsupportedads"]=5,p0["fmt.noneavailable"]=5,p0["fmt.decode"]=5,p0["fmt.unplayable"]=5,p0["html5.missingapi"]=5,p0["html5.unsupportedlive"]=5,p0["drm.unavailable"]=5,p0);var Ina={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Jna={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"},Kna={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Hna={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Fna={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",
3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},Gna={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};AM.prototype.getLocalMediaInfoById=function(a){return C(this,function c(){return z(c,function(d){return d["return"](ev(a))})})};
AM.prototype.getAllLocalMediaInfo=function(){return C(this,function b(){return z(b,function(c){return c["return"](fv())})})};
AM.prototype.i=function(a){if(a.gp&&2===a.status)Tu(a.videoId,2);else if(4===a.status){var b=a.videoId;Tu(b,4);Yu(b,!1)}g.U(this.api.T().experiments,"hoffle_api")&&this.api.xa("localmediachange",NG(a));CM(this)};
AM.prototype.aa=function(){};g.u(HM,g.E);g.k=HM.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&Ox(c,DDa,EDa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.hj&&!this.W.has(a)&&(this.W.add(a),g.Or("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.ht(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.C[a]?!0:!!(this.J[a]&&b&&Ox(b,DDa,EDa))};
g.k.getBandwidthEstimate=function(){return YB(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.Y(this.app);b&&(a={gpu:(0,g.AU)(),d:a},b.handleError(new g.IA("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.L.slice()};
g.k.getInternalApiInterface=function(){return g.Kb(this.l)};
g.k.xK=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.Ha(b).apply(window,e)};
this.I[b]=c}else c=b;this.app.Yj.subscribe(a,c)};
g.k.aQ=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.Yj.unsubscribe(a,b)};
g.k.getPlayerState=function(){return Bya(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.i&&yW(this.app,!0,this.playerType);BW(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.seekToStreamTime=function(a,b,c){this.i&&yW(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.Y(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.pc()&&(l=h.getStreamTimeOffset());BW(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.Y(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.Y(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&BW(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.gf(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.Cg.volume};
g.k.setVolume=function(a){boa(this,a)};
g.k.isMuted=function(){return this.app.Cg.muted};
g.k.mute=function(){coa(this)};
g.k.unMute=function(){doa(this)};
g.k.playVideo=function(){this.i&&yW(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.xd()){var b=mN(this.app.Ua());if(!yCa(b)){b.nj("control_play");return}}3===a?g.RM(this.app.Ua()).nj("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.xd()){var b=mN(this.app.Ua());if(!yCa(b)){b.nj("control_pause");return}}3===a?g.RM(this.app.Ua()).nj("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.i.Ja&&a.Ea.V("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.Y(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.tc){var b=a.l||a.Z("web_player_admin_origin_killswitch")?a.Tc[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.kj?ODa:NDa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.Y(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.Y(this.app,this.playerType);return a?(a=g.Qc(a.Xm(),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.Ka().resize()};
g.k.channelSubscribed=function(){this.xa("SUBSCRIBE",iW(this.app).Bg)};
g.k.channelUnsubscribed=function(){this.xa("UNSUBSCRIBE",iW(this.app).Bg)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.Y(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.Y(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=Wya(this.app);b&&(b.u=a,b.wa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=Wya(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.Gi(b,g.ZN(b.B.Ob(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.Y(this.app,this.playerType);a&&a.jd("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().jj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=FF("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,hG)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return iW(this.app).MA};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.hN(this.app.Ua()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.hN(this.app.Ua()))&&a.loaded&&a.VQ()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(wM(a,b,c),this.playerType),this.i&&yW(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(wM(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Cna(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&yW(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Cna(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.J)return"";var b=iW(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.J?"":a.getVideoEmbedCode(iW(this.app).videoId,this.app.Ka().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return Lya(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=OT(b.l.X)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.l.removeCueRange(e);cW(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.i&&yW(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.i&&yW(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&yW(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&yW(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.kL=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=a.Na(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.Ua();return"captions"===a?(a=g.hN(d))&&a.Fe(b,c):null};
g.k.getOption=function(a,b,c){var d=g.Y(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().l?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.Ua();if("captions"===a)return(b=g.hN(b))&&b.getOptions();if(!a)return a=[],g.hN(b)&&a.push("captions"),a};
g.k.Tt=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.Y(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.l&&a.l.video){b.video_quality=a.l.video.quality;a=a.l.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&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(){rya(this.app,!0)};
g.k.hideVideoInfo=function(){rya(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.Y(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.W(a,128)&&5===YDa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.TM(this.app.Ua());return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.TM(this.app.Ua());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.Y(this.app);a&&a.sendAbandonmentPing()};
g.k.deleteLocalMediaById=function(a){return Sna(a)};
g.k.deleteAllLocalMedia=function(){return Tna()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.YK=function(){};
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.downloadVideo=function(a){return this.app.downloadVideo(a)};
g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.setAutonavState=function(a){Tya(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().L.add(a,{kt:b,ws:c})};
g.k.updateLastActiveTime=function(){pp()};
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().Pf!==a&&(this.app.T().Pf=a,(a=g.Y(this.app,this.playerType))&&KV(a))};
g.k.updateSubtitlesUserSettings=function(a){g.hN(this.app.Ua()).wH(a,!0)};
g.k.getCaptionWindowContainerId=function(){var a=g.hN(this.app.Ua());return a?a.getCaptionWindowContainerId():""};
g.k.setFauxFullscreen=function(a){Jt();this.app.zh(a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.Ka().setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.xd()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.Y(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Lg();if(!c)return null;c=c.levels[b];return c?(c=g.jH(c,a))?{column:c.column,columns:c.columns,height:c.zu,row:c.row,rows:c.rows,url:c.url,width:c.Au}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Lg();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.pc();return c.Is(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Lg();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Sp(),minFrameIndex:b.dw()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Lg();return a?a.levels.length:0};
g.k.WK=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.Y(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Jh};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.RM(this.app.Ua()).nj("control_set_audio_track",a);var b=g.Y(this.app,this.playerType);if(b){var c;if(!b.na()&&!g.W(b.playerState,128))if(null===(c=b.videoData.u)||void 0===c?0:c.i)b.l.setAudioTrack(a);else{a:if(c=b.videoData,c.J&&!wA(c.J)||a==c.jj||!c.Za||0>=c.Za.length)c=!1;else{for(var d=g.q(c.Za),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof IG)){c=!1;break a}var f=a.i.getId();e.u&&(e.u.i=f,e.l=null)}c.jj=a;c=!0}c&&
(b.V("internalaudioformatchange",b.videoData,!0),wV(b)&&b.Ia("hlsaudio",a.id))}}};
g.k.XK=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.Y(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.Y(this.app,this.playerType);return a&&a.getVideoData().l?QE(a.L?dva(a.Y,a.L,PV(a)):uH):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.Y(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.hN(this.app.Ua());return a?a.nL():null};
g.k.resetSubtitlesUserSettings=function(){g.hN(this.app.Ua()).gQ()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setGlobalCrop=function(a){this.app.Ka().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.app.T();a=this.me()&&!g.U(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.lf(),this.isFullscreen()||UF(this.app.T()),a,this.isInline(),this.app.Mo(),this.app.Lo())};
g.k.isMutedByMutedAutoplay=function(){return this.app.xr};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.Ka().setInternalSize(new g.ke(a,b))};
g.k.pc=function(){var a=g.Y(this.app,void 0);return a?a.pc():0};
g.k.me=function(){return this.app.me()};
g.k.lf=function(){var a=g.Y(this.app,this.playerType);return!!a&&a.lf()};
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.Z("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.Na().videoId||(a.index=b.index)):kW(this.app,{list:a.list,index:a.index,playlist_length:d.length});cN(this.app.getPlaylist(),a);this.xa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.Y(this.app,this.playerType||1);c&&g.CH(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){cG(this.app.T(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.pN(this.app.Ua());d&&d.Hg()&&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.Ka().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.Y(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.Y(this.app,this.playerType);if(c){var d=OE(a,b||a,!0,"m");DM(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().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Yj.V.apply(this.app.Yj,[a].concat(g.la(c)));this.app.mi.V.apply(this.app.mi,[a].concat(g.la(c)))};
g.k.xa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.Yj.V.apply(this.app.Yj,[a].concat(g.la(c)));this.app.mi.V.apply(this.app.mi,[a].concat(g.la(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Z=function(a){return g.U(this.app.T().experiments,a)};
g.k.aa=function(){};
g.k.da=function(){if(this.element){var a=this.element,b;for(b in this.l)this.l.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.B={};this.I={};g.E.prototype.da.call(this)};g.u(NM,HM);g.k=NM.prototype;g.k.addCueRange=function(a,b,c,d,e){return Lya(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return Bya(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){BW(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){BW(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Tt=function(a){a=void 0===a?this.playerType:a;var b=HM.prototype.Tt.call(this,a)||{};if(a=g.Y(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.Ri,b.isManifestless=UH(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.ia,b.ypcOriginalItct=a.gR,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=Dia(a),b.paidContentOverlayDurationMs=ZH(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.i&&cB(a.i)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):HM.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c=g.RM(this.app.Ua()).getProgressState();return(null===c||void 0===c?void 0:c.duration)||0}return a?this.app.getDuration(a,b):HM.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.RM(this.app.Ua()).getProgressState();var b=this.app.getVideoData(),c=(g.Y(this.app,a)||g.Y(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.gf(c),f=this.app.isAtLiveHead(c),h=this.app.Do(),l=this.app.Hc(c);var m=this.app;(c=g.Y(m,c))?(c=gW(m,c),m=tW(m,gS(c),c)):m=0;return{allowSeeking:this.app.Ke(),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.LM(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.LM(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.LM(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.LM(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.Ka().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()?Lt(window.document.documentElement):It(window.document.documentElement);if(Jt()||this.Z("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?Lt(Kt()):"3"!==a.controlsType&&Jt()?It(this.app.Ka().element):(a=this.app.cd().he())?It(a):Promise.reject(Error("Media element missing"));this.xa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=mN(this.app.Ua());a&&a.created&&a.destroy();(a=g.Y(this.app))&&a.stopVideo();(a=this.app.Ua().gd.get("endscreen"))&&a.TL()&&g.QM(this.app.Ea,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.U(a.experiments,"disable_new_pause_state3")&&oG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():HM.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.Y(this.app,this.playerType).nb(!0)};
g.k.toggleSubtitles=function(){var a=g.hN(this.app.Ua());a&&a.JQ()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.TM(this.app.Ua());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.TM(this.app.Ua());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){boa(this,a,b)};
g.k.mute=function(a){coa(this,a)};
g.k.unMute=function(a){doa(this,a)};
g.k.mutedAutoplay=function(){this.Z("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.pN(this.app.Ua());b&&!b.loaded&&b.load()}HM.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.pN(this.app.Ua());b&&b.loaded&&b.unload()}HM.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Ua();switch(a){case "ad":return(a=mN(d))&&a.Fe&&a.Fe(b,c);case "kids":return(a=nN(d))&&a.Fe(b,c);case "remote":return(a=g.RM(d))&&a.Fe(b,c);case "unplugged":return(a=oN(d))&&a.Fe(b,c);case "annotations_module":return(a=g.pN(d))&&a.Fe(b,c);case "creatorendscreen":return(a=qN(d))&&a.Fe(b,c)}return HM.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.Ua();switch(a){case "ad":return(b=mN(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.RM(b))&&b.getOptions();case "annotations_module":return(b=g.pN(b))&&b.getOptions();case "creatorendscreen":return(b=qN(b))&&b.getOptions();case "unplugged":return(b=oN(b))&&b.getOptions();case "kids":return(b=nN(b))&&b.getOptions()}if(!a){a=HM.prototype.getOptions.call(this);if(!a)return a;mN(b)&&a.push("ad");g.RM(b)&&a.push("remote");g.pN(b)&&a.push("annotations_module");
qN(b)&&a.push("creatorendscreen");oN(b)&&a.push("unplugged");nN(b)&&a.push("kids");return a}return HM.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.Ka().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.LM(this);a&&a.wk()};
g.k.setCenterCrop=function(a){this.app.Ka().setCenterCrop(a)};
var eoa="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(" "),
foa="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.OM,NM);g.k=g.OM.prototype;g.k.Ai=function(a,b,c,d,e,f){return this.app.Ai(a,b,c,d,e,f)};
g.k.Jq=function(){return this.app.Jq()};
g.k.Wm=ba(4);g.k.Ua=function(){return this.app.Ua()};
g.k.wd=function(){var a=this.Ua().gd.get("endscreen");return!!a&&a.wd()};
g.k.getRootNode=function(){return this.Ka().element};
g.k.T=function(){return this.app.T()};
g.k.bk=function(a){return this.app.bk(a)};
g.k.dn=function(){return this.iw};
g.k.Xa=function(a){return this.app.Xa(a)};
g.k.Ka=function(){return this.app.Ka()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.Y(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.I)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=tS(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.Lg=function(a){return this.app.Lg(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.Y(this.app);return a?a.isHdr():!1};
g.k.Iy=function(){return this.app.Iy()};
g.k.En=function(a){this.app.En(a)};
g.k.Lf=function(a,b,c,d){this.app.ge(a,b,c,d)};
g.k.yj=ba(6);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.RM(this.app.Ua()).nj("control_play");return}if(2===this.getPresentingPlayerType()){var b=mN(this.app.Ua());if(b&&b.Al())return}}catch(c){g.gt(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.Y(this.app,a).stopVideo()};
g.k.Ol=function(a){g.Y(this.app,a).Ol()};
g.k.addEventListener=function(a,b){this.app.mi.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.mi.unsubscribe(a,b)};
g.k.wh=function(a){this.app.wh(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Xm=function(){var a={},b=g.Y(this.app).Xm();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.Tq=ba(8);g.k.Vu=function(a){this.app.Vu(a);a&&Tya(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,h,b,c)};
g.k.Uq=ba(10);g.k.fi=ba(14);g.k.Uo=function(a,b){this.Ua().Uo(a,b)};
g.k.Hg=function(){var a=g.pN(this.Ua());return!!a&&a.Hg()};
g.k.Ii=function(){var a=g.pN(this.Ua());return!!a&&a.Ii()};
g.k.setCardsVisible=function(a,b,c){var d=g.pN(this.Ua());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)};
g.k.rp=ba(15);g.k.On=function(){var a=g.Y(this.app);a&&a.On()};
g.k.Ur=function(a){this.xa("onVideoAreaChange");this.xa(a?"onShowControls":"onHideControls")};
g.k.Vi=function(a,b){var c=g.LM(this);if(c)return c.Vi(a,b);c=this.app.Ka().Vf();return new g.cg(0,0,c.width,c.height)};
g.k.qr=function(){var a=this.Ua().gd.get("heartbeat");return!!a&&a.qr()};
g.k.Ke=function(){if(this.T().ea)return!1;var a=g.Y(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.bI(b)||2===this.getPresentingPlayerType()&&!this.app.xd()||a.hk()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.jr=function(){var a;return(null===(a=g.Y(this.app))||void 0===a?void 0:a.jr)||!1};
g.k.In=function(){var a=g.Y(this.app);a&&a.In()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.sd=function(a,b){this.app.eq(a,b)};
g.k.Kf=function(a,b){this.app.Gz(a,b)};
g.k.Oe=function(a,b){var c=this.app,d=g.Y(c,b);d&&(d=d.X.Oe(a),b&&c.getPresentingPlayerType()!==b||cW(c,"cuerangesremoved",d))};
g.k.jd=function(a,b){var c=g.Y(this.app,b);c&&c.jd(a)};
g.k.hk=function(){var a=g.Y(this.app,void 0);return a?a.hk():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.ee(a,0,100);JM(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){JM(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){JM(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.cd=function(){return this.app.cd()};
g.k.Mq=function(){return this.app.Mq()};
g.k.pg=function(a){return this.app.pg(a)};
g.k.getBandwidthEstimate=function(){return YB(this.T().schedule)};
g.k.Hb=function(a,b,c,d){this.T().ga&&this.app.yl.Hb(a,b,c,void 0===d?!1:d)};
g.k.Jg=function(a,b,c){this.T().ga&&this.app.yl.Jg(a,b,void 0===c?!1:c)};
g.k.Tl=function(a,b){this.T().ga&&this.app.yl.Tl(a,b)};
g.k.ub=function(a,b){this.T().ga&&this.app.yl.click(a,b)};
g.k.Qa=function(a,b,c){if(this.T().ga){var d=this.app.yl;d.elements.has(a);b?d.i.add(a):d.i["delete"](a);var e=g.iu(),f=a.visualElement;d.l.has(a)?e&&f&&(b?g.xu(e,[f]):g.yu(e,[f])):b&&!d.u.has(a)&&(e&&f&&g.pu(e,f,c),d.u.add(a))}};
g.k.fr=function(a){return this.T().ga?this.app.yl.fr(a):!1};
g.k.hc=function(){return g.Y(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.oi=function(a){this.app.oi(a)};
g.k.lt=function(a){this.app.lt(a)};
g.k.Nl=function(a){this.app.getPresentingPlayerType()===a&&this.app.Nl(a)};
g.k.fy=function(a){return this.app.fy(a)};
g.k.xj=function(a){this.app.xj(a)};
g.k.Wy=function(){this.app.Wy()};
g.k.eo=function(a,b,c,d,e,f){return this.app.eo(a,b,c,d,e,f)};
g.k.un=function(a){this.app.un(a)};
g.k.Nm=function(a,b){b=void 0===b?Infinity:b;this.app.Nm(void 0===a?-1:a,b)};
g.k.Fp=function(a,b,c){this.app.Fp(a,b,c)};
g.k.kl=function(){return this.app.kl()};
g.k.wt=function(a,b,c){this.app.wt(a,b,void 0===c?0:c)};
g.k.No=function(){return this.app.No()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.xd=function(){return this.app.xd()};
g.k.nk=function(a,b,c){return this.app.nk(a,b,c)};
g.k.Ia=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.Y(this.app,d))||void 0===e?void 0:e.Ia(a,b,c)};
g.k.dv=function(){return this.app.dv()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.iz=function(a,b){this.V("aduxmouseover",a,b)};
g.k.hz=function(a,b){this.V("aduxmouseout",a,b)};
g.k.uz=function(a,b){this.V("muteadaccepted",a,b)};g.u(g.XM,Nt);g.XM.prototype.N=function(a,b,c,d,e){return Nt.prototype.N.call(this,a,b,c,d,e)};YM.prototype.reset=function(){eE(this.timerName)};
YM.prototype.tick=function(a,b){hE(a,b,this.timerName)};
YM.prototype.info=function(a,b){gE(a,b,this.timerName)};g.ZM.prototype.toString=function(){return this.type+this.id};g.u(g.$M,g.R);g.k=g.$M.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Wi=function(a){return this.loop||!!a||0<=this.index-1};
g.k.Na=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.wH(this.i,a),g.I(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.u++;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.u++}this.V("shuffle")};
g.k.te=function(a){a=a||"hqdefault.jpg";var b=this.C[a];if(b||this.i.J||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.I.length)return nG(this.i,this.I[0],a)};
g.k.loadPlaylist=function(a,b){var c=this;g.U(this.i.experiments,"listajax_wexit_cleanup_killswitch")&&this.J&&g.Tp(g.Od(a,b),{format:"JSON",onSuccess:function(d,e){cN(c,e)},
onError:function(){return c.V("error")}})};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.rl=function(){return this.i.getVideoUrl(this.Na().videoId,this.getPlaylistId())};
g.k.da=function(){this.l=null;g.Fi(this.items);g.R.prototype.da.call(this)};g.u(g.eN,g.R);g.k=g.eN.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Fe=function(){};
g.k.ri=function(){return!0};
g.k.da=function(){this.loaded&&this.unload();g.R.prototype.da.call(this)};
g.k.nb=function(){return{}};
g.k.getOptions=function(){return[]};g.kN={};g.u(gN,g.E);g.k=gN.prototype;g.k.Wr=function(){return this.G.getVideoData().Wr()};
g.k.cA=function(){return this.G.getVideoData().cA()};
g.k.WC=function(){var a=this.gd.get("heartbeat");jN(this,"heartbeat",this.WC,!1,!0);!a&&this.gd.has("heartbeat")&&this.G.V("offlineslatestatechange")};
g.k.yx=function(){jN(this,"annotations_module",this.yx,!0);var a=this.gd.get("annotations_module");if(a)for(var b in this.l)if(this.l.hasOwnProperty(b)){var c=b;a.subscribe(c,this.l[c])}};
g.k.VC=function(){if(!this.gd.get("ad"))try{iN(this)?jN(this,"ad",this.VC,!1,!0):this.G.jd("ad")}catch(a){this.G.jd("ad"),g.gt(a)}};
g.k.Mq=function(){return this.i};
g.k.my=function(){var a={},b=g.hN(this);b&&g.Ra(a,b.my());return a};
g.k.Uo=function(a,b){g.Ra(this.i,a||null);g.Ra(this.uq,b||null)};
g.k.da=function(){g.E.prototype.da.call(this);lN(this,1,!0)};g.u(rN,g.Cl);rN.prototype.preventDefault=function(){g.Cl.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
rN.prototype.stopPropagation=function(){g.Cl.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.u(g.sN,XJ);g.k=g.sN.prototype;g.k.hm=function(){return!0};
g.k.isView=function(){return!1};
g.k.Mz=function(){return!1};
g.k.he=function(){return this.i};
g.k.hf=function(){return this.i.src};
g.k.cv=function(a){this.aa();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.Tu=function(){this.aa();this.i.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.aa();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.Js=function(){return this.i.loop};
g.k.setLoop=function(a){this.aa();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.Jk=function(){return this.i.paused};
g.k.Tp=function(){return this.i.seeking};
g.k.cj=function(){return this.i.ended};
g.k.Lt=function(){return this.i.muted};
g.k.tp=function(a){GA();this.aa();this.i.muted=a};
g.k.bn=function(){return this.i.played||mz([],[])};
g.k.Tf=function(){try{var a=this.i.buffered}catch(b){}return a||mz([],[])};
g.k.Wq=function(){return this.i.seekable||mz([],[])};
g.k.Ms=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.Zu=function(a){this.aa();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.aa();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.aa();this.i.pause()};
g.k.play=function(){this.aa();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.Fg=function(){return this.i.readyState};
g.k.Mt=function(){return this.i.networkState};
g.k.Hh=function(){return this.i.error?this.i.error.code:null};
g.k.Ie=function(){return this.i.error?this.i.error.message:""};
g.k.Ns=function(){if(this.i instanceof HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.lf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.In=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;EA()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():FA()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.ol=function(){var a=this.i;return new g.ie(a.offsetLeft,a.offsetTop)};
g.k.Vn=function(){return g.Eg(this.i)};
g.k.setSize=function(a){g.Dg(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){GA();this.aa();this.i.volume=a};
g.k.Jx=function(a){this.B[a]||(this.i.addEventListener(a,this.listener),this.B[a]=this.listener)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.fq=ba(17);g.k.ks=ba(19);g.k.ls=ba(21);g.k.oq=ba(23);g.k.Dq=function(){return Lt(this.i)};
g.k.Ok=function(a){g.N(this.i,a)};
g.k.Xq=function(a){return g.qg(this.i,a)};
g.k.Ey=function(){return g.Pe(document.body,this.i)};
g.k.da=function(){for(var a=g.q(Object.keys(this.B)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.B[b]);XJ.prototype.da.call(this)};
g.k.aa=function(){};g.u(uN,g.R);g.k=uN.prototype;g.k.nM=function(a){a=ap(a);if(!je(a,this.B)){var b=2;this.I&&(b|=8);this.B=a;tN(this,b,!0)}};
g.k.oM=function(){this.I&&tN(this,8,!0);tN(this,2,!1)};
g.k.Bu=function(a){var b=ap(a);je(b,this.B)||(this.B=b,(a=g.Yo(a))&&this.jt(a)&&(tN(this,4,!0),this.i.Gb(this.u),this.u=this.i.N(this.target,"mouseover",this.ez),this.J=this.i.N(this.target,"mouseout",this.ez)))};
g.k.ez=function(a){a=$o(a);a&&this.jt(a)||(this.B=new g.ie(NaN,NaN),Aoa(this))};
g.k.aM=function(){tN(this,1,!0)};
g.k.bL=function(a){a=g.Yo(a);a instanceof Element&&!(0<a.tabIndex)||tN(this,1,!0)};
g.k.PE=function(){this.I=!0;this.i.Gb(this.C);this.C=this.i.N(document,"mouseup",this.pM)};
g.k.pM=function(){this.I=!1;tN(this,8,!1);this.i.Gb(this.C);this.C=this.i.N(this.target,"mousedown",this.PE)};
g.k.hH=function(a){if(a=(a=a.changedTouches)&&a[0])this.ea=a.identifier,this.i.Gb(this.L),this.L=this.i.N(this.target,"touchend",this.KQ,void 0,!0),tN(this,1024,!0)};
g.k.KQ=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ea){var d=c;break}}d&&(this.i.Gb(this.L),this.L=this.i.N(this.target,"touchstart",this.hH,void 0,!0),tN(this,1024,!1))};
g.k.wk=function(){tN(this,2,!0)};
g.k.resize=function(){g.DA&&Aoa(this)};
g.k.toString=function(){return g.R.prototype.toString.call(this)};g.u(g.vN,g.X);
g.vN.prototype.wa=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.C&&(a.Pa||b.pfpChazalUi))var c=b.pfpChazalUi?[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",K:"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"}},{D:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"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"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.I?(g.O(this.element,"ytp-touch-device",b.i),c=[b.I?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",K:"ytp-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"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"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",K:"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"}},{D:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ba("largePlayButtonChildren",c);a.C&&(a.Pa||b.pfpChazalUi)&&(a=a.Pa?a.Pa:"#1f1f1f",this.ha("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(wN,g.X);g.k=wN.prototype;g.k.show=function(){var a=this;this.ab||(this.u.N(this.api,"videodatachange",function(){g.en(a.i)}),this.u.N(this.api,"videoplayerreset",function(){g.en(a.i)}));
g.X.prototype.show.call(this)};
g.k.hide=function(){this.u&&g.Pt(this.u);g.X.prototype.hide.call(this)};
g.k.Ta=function(){g.en(this.i)};
g.k.iI=function(a){var b=this.api.T();g.U(b.experiments,"disable_new_pause_state3")&&oG(b)&&(a=a.state.isCued()&&!a.Gl.isCued()||g.SM(this.api)&&g.W(a.state,2),g.mg(this.element,"transition-delay",a?"2s":""));g.en(this.i)};
g.k.GP=function(){g.en(this.i)};
g.k.hI=function(){this.l.stop();this.hide();g.en(this.i)};
g.k.wa=function(){var a=this.api.Xa();if(3===this.api.getPresentingPlayerType()&&(a.Kb()||g.W(a,4)))var b=!0;else(b=this.api.Ua().gd.get("ypc"))&&b.Lu?b=!0:(b=this.api.T(),b=g.W(a,2)&&PM(this.api)&&b.Fc?!0:!1);b?(b=!0,this.B.hide()):(this.B.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.U(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.W(a,2)||PM(this.api)||b&&this.api.Jq())||g.W(a,1024)?!0:!1));b?(this.l.show(),a=this.api.getVideoData(),this.ZQ(this.api.getPlaylist(),
a)):(this.l.hide(),g.W(a,1)||this.l.stop())};
g.k.ZQ=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.wH&&!c.videoId)){var d=this.api.Ka().getPlayerSize();var e=g.pG(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.te("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.te("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.te("sddefault.jpg")||c.te("hqdefault.jpg")||c.te("mqdefault.jpg"))break;if(d=c.te("default.jpg"))break}this.C.style.backgroundImage=
d?"url("+d+")":""};g.u(g.CN,g.X);g.CN.prototype.resize=function(){};
g.CN.prototype.l=function(a){var b=this;Eoa(this);var c=a.Mx,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Ec(FN(this,"TOO_MANY_REQUESTS_WITH_LINK",d.rl(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.Ec(g.DN(a.errorMessage)):this.Ec(FN(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.Od(c,{hl:a})),this.Ec(FN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ja&&!d.l&&Doa(this,function(e){if(g.xN(e,b.api,!oG(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 Coa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(HN,g.XM);HN.prototype.Oa=function(){var a=this;this.ug();var b=this.G.getVideoData();if(b.isValid()){var c=[];this.G.T().J||c.push({src:b.te("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.SM(this.G)&&(this.i["delete"]("nexttrack"),this.i["delete"]("previoustrack"),b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
GN(this,"nexttrack",b);GN(this,"previoustrack",c)}};
HN.prototype.ug=function(){var a=this.G.Xa();a=a.isError()?"none":g.hK(a)?"playing":"paused";this.mediaSession.playbackState=a};
HN.prototype.da=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())GN(this,b.value,null);g.XM.prototype.da.call(this)};g.u(IN,g.X);IN.prototype.Oa=function(a,b){Foa(this,b);this.Mc&&Goa(this,this.Mc)};
IN.prototype.Wb=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&Foa(this,b);this.i&&Goa(this,a.state);this.Mc=a.state};
IN.prototype.Dc=function(){this.l.show();this.G.V("paidcontentoverlayvisibilitychange",!0)};
IN.prototype.kb=function(){this.l.hide();this.G.V("paidcontentoverlayvisibilitychange",!1)};g.u(JN,g.X);JN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.X.prototype.hide.call(this)};
JN.prototype.l=function(a){Hoa(a.state)?this.i.start():this.hide()};
JN.prototype.u=function(){this.message.style.display="block"};g.u(g.KN,g.ZK);g.k=g.KN.prototype;g.k.show=function(){var a=this.If();g.ZK.prototype.show.call(this);this.ga&&(this.J.N(window,"blur",this.kb),this.J.N(document,"click",this.jI));a||this.V("show",!0)};
g.k.hide=function(){var a=this.If();g.ZK.prototype.hide.call(this);Ioa(this);a&&this.V("show",!1)};
g.k.Dc=function(a,b){this.l=a;this.X.show();b?(this.L||(this.L=this.J.N(this.G,"appresize",this.tC)),this.tC()):this.L&&(this.J.Gb(this.L),this.L=void 0)};
g.k.tC=function(){var a=g.LM(this.G);this.l&&a.ip(this.element,this.l)};
g.k.kb=function(){var a=this.If();Ioa(this);this.X.hide();a&&this.V("show",!1)};
g.k.jI=function(a){var b=Zo(a);b&&(g.Pe(this.element,b)||this.l&&g.Pe(this.l,b)||!g.FL(a))||this.kb()};
g.k.If=function(){return this.ab&&4!==this.X.state};g.u(MN,g.KN);MN.prototype.Fr=function(a){this.u&&(a?(Joa(this),this.Dc()):(this.seen&&this.ub(),this.kb()))};
MN.prototype.ug=function(a){this.api.isMutedByMutedAutoplay()&&g.iJ(a,2)&&this.kb()};
MN.prototype.onClick=function(){this.api.unMute();this.ub()};
MN.prototype.ub=function(){this.i||(this.i=!0,this.api.ub(this.element))};g.u(g.ON,g.XM);g.k=g.ON.prototype;g.k.init=function(){var a=this.api.Xa();this.tb(a);this.Ak();this.Ta()};
g.k.Oa=function(a,b){if(this.Py!==b.videoId){this.Py=b.videoId;var c=this.Lc;c.ca=b&&0<b.Fc.length?5E3:3E3;tN(c,512,!0);this.Ak()}};
g.k.mO=function(){this.Oa("newdata",this.api.getVideoData())};
g.k.Ul=function(){var a=this.api.Hg()&&this.api.Ii();return this.ot||a||this.zy};
g.k.Gh=function(){var a=!this.Ul();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.jt=function(a){try{if(!g.Pe(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Te(a);)a=a===this.api.getRootNode()?null:g.Oe(a);return!!a};
g.k.di=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.wC.start(a?250:100);a&&(this.tv=!1,g.mn(b,"ytp-touch-mode"));this.xx=!a;this.api.Ur(!a)};
g.k.jz=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
g.k.RO=function(){this.vA=!0};
g.k.QO=function(a){if(g.U(this.api.T().experiments,"player_doubletap_to_seek")||g.U(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)this.vA=!1,this.wA&&this.Gb(this.wA),0===this.zr&&RN(this,a)?(this.au(),this.api.T().Z("embeds_enable_mobile_dtts")&&g.PF(this.api.T())&&QN&&12>=rI&&this.api.Xa().isCued()?NN(this):this.ut.start(),this.wA=this.N(this.api.Ka(),"touchmove",this.RO,void 0,!0)):this.ut.stop();!Loa(this)||!RN(this,a)||g.PF(this.api.T())&&this.api.T().Z("embeds_enable_mobile_dtts")&&
this.api.T().i||NN(this);var b=this.yv.If();if(MF&&Moa(this,a))b&&g.bp(a);else if(this.Lc.l||PN(this,Zo(a))||this.yv.If()||(this.api.Xa().isCued(),g.bp(a)),this.tv=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.Lc.wk(),g.U(this.api.T().experiments,"player_doubletap_to_seek")||g.U(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)if(b=this.api.Xa(),!(!this.api.Ke()||g.W(b,2)&&PM(this.api)||g.W(b,64))){b=Date.now()-this.AE;this.zr+=1;if(350>=b){this.zq=!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.zr-1);0<d&&d<b?(this.Nr(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Nr(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.bp(a)}else g.PF(this.api.T())&&this.api.T().Z("embeds_enable_mobile_dtts")&&this.api.T().i&&QN&&RN(this,a)&&g.bp(a);this.AE=Date.now();this.EG.start()}};
g.k.MO=function(a){Moa(this,a)||(Loa(this)||!RN(this,a)||this.ut.isActive()||(NN(this),g.bp(a)),this.zq&&(this.zq=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Or("embedsRequestStorageAccessResult",{resolved:!0});yya(!0);wq();window.location.reload()},function(){g.Or("embedsRequestStorageAccessResult",{resolved:!1});
a.Bp()})};
g.k.au=function(){};
g.k.Jn=function(){};
g.k.Nr=function(){};
g.k.BG=function(){};
g.k.Bp=function(){var a=this.api.Xa();g.W(a,2)&&PM(this.api)||(g.hK(a)?this.api.pauseVideo():(this.api.Wy(),this.api.playVideo(),this.po&&document.activeElement===this.po.B.element&&this.api.getRootNode().focus()))};
g.k.NO=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!PN(this,Zo(a)))if(a=this.api.T(),(g.U(this.api.T().experiments,"player_doubletap_to_seek")||g.U(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().i)&&this.zq)this.zq=!1;else if(a.za&&3!==c)try{this.api.toggleFullscreen()["catch"](function(d){b.Zq(d)})}catch(d){this.Zq(d)}};
g.k.Zq=function(a){String(a).includes("fullscreen error")?g.ht(a):g.gt(a)};
g.k.OO=function(a){Noa(this,.3,a.scale);g.bp(a)};
g.k.PO=function(a){Noa(this,.1,a.scale)};
g.k.Ta=function(){var a=this.api.Ka().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Lc.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.Le());g.O(b,"ytp-tiny-mode",this.gu());g.O(b,"ytp-big-mode",this.ue());this.Rd&&this.Rd.resize(a)};
g.k.ug=function(a){this.tb(a.state);this.Ak()};
g.k.ay=function(){var a=!!this.Py&&!this.api.wd(),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(TCa&&g.U(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=mN(this.api.Ua());return a&&b.eA()}return a&&(c.Kh||this.api.isFullscreen()||c.We)};
g.k.Ak=function(){var a=this.ay();this.aj!==a&&(this.aj=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.tb=function(a){var b=a.isCued()||this.api.hk()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.yA&&this.Gb(this.yA),this.yA=this.N(this.api.Ka(),"touchstart",this.QO,void 0,b));var c=a.Kb()&&!g.W(a,32)||this.api.qr();tN(this.Lc,128,!c);c=3===this.api.getPresentingPlayerType();tN(this.Lc,256,c);c=this.api.getRootNode();if(g.W(a,2))var d=[m0.ENDED];else d=[],g.W(a,8)?d.push(m0.PLAYING):g.W(a,4)&&d.push(m0.PAUSED),g.W(a,1)&&!g.W(a,32)&&d.push(m0.BUFFERING),g.W(a,32)&&
d.push(m0.SEEKING),g.W(a,64)&&d.push(m0.UNSTARTED);g.yb(this.Rw,d)||(g.nn(c,this.Rw),this.Rw=d,g.ln(c,d));d=this.api.T();var e=g.W(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.zy);g.W(a,128)&&!g.PF(d)?(this.Rd||(this.Rd=new g.CN(this.api),g.I(this,this.Rd),g.VM(this.api,this.Rd.element,4)),this.Rd.l(a.getData()),this.Rd.show()):this.Rd&&(this.Rd.dispose(),this.Rd=null)};
g.k.Xj=function(){return this.api.Hg()&&this.api.Ii()?(this.api.setCardsVisible(!1,!1),!0):this.api.wd()?(g.QM(this.api,!0),!0):!1};
g.k.Fr=function(a){this.zy=a;this.Gh()};
g.k.ue=function(){return!1};
g.k.Le=function(){return!this.ue()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.gu=function(){return this.Le()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Xh=function(){return this.tv};
g.k.dn=function(){return null};
g.k.Vi=function(){var a=this.api.Ka().getPlayerSize();return new g.cg(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.ip=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.Ka().Ur(a)};
g.k.wk=function(){};
g.k.ND=function(){return null};g.u(SN,g.R);g.k=SN.prototype;g.k.Nq=function(){return 1E3*this.api.getDuration(this.zi,!1)};
g.k.stop=function(){this.i&&this.Sd.Gb(this.i)};
g.k.Ab=function(){var a=this.api.getProgressState(this.zi);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.U(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.zi,!1)};this.V("b")};
g.k.getProgressState=function(){return this.l};
g.k.Wb=function(a){g.iJ(a,2)&&this.V("a")};g.u(TN,g.X);TN.prototype.onClick=function(){this.G.xa("BACK_CLICKED")};g.u(g.UN,g.X);g.UN.prototype.show=function(){g.X.prototype.show.call(this);g.en(this.i)};
g.UN.prototype.hide=function(){this.l.stop();g.X.prototype.hide.call(this)};
g.UN.prototype.Jn=function(a){a?g.W(this.G.Xa(),64)||VN(this,Ema(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?VN(this,Gma(),"Stop live playback"):VN(this,Cma(),"Pause"))};g.u(YN,g.X);g.k=YN.prototype;g.k.Dc=function(){this.l.show();g.Do("iv-button-shown")};
g.k.kb=function(){g.Do("iv-button-hidden");this.l.hide()};
g.k.If=function(){return this.ab&&4!==this.l.state};
g.k.da=function(){this.i&&this.i();g.X.prototype.da.call(this)};
g.k.DN=function(){g.Do("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.Hg();var b=g.kn(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Do("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Ii(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.u($N,g.X);g.k=$N.prototype;g.k.qH=function(){this.G.Hg()&&this.G.Ii()&&this.If()&&this.kb()};
g.k.EQ=function(){this.kb();g.Do("iv-teaser-clicked",null!=this.i);this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.kI=function(){g.Do("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.jP=function(a){this.i||!a||this.G.Ii()||this.l&&this.l.isActive()||(this.Dc(a),g.Do("iv-teaser-shown"))};
g.k.Dc=function(a){this.Ba("text",a.teaserText);this.element.setAttribute("dir",g.vn(a.teaserText));this.B.show();this.l=new g.M(function(){g.N(this.G.getRootNode(),"ytp-cards-teaser-shown");this.IA()},0,this);
this.l.start();XN(this.Ki,!1);this.i=new g.M(this.kb,580+a.durationMs,this);this.i.start();this.C.push(this.ya("mouseover",this.sB,this));this.C.push(this.ya("mouseout",this.rB,this))};
g.k.IA=function(){if(g.PF(this.G.T())&&this.ab){var a=this.Ki.element.offsetLeft,b=g.we("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Ki.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.EK=function(){g.PF(this.G.T())&&this.X.Le()&&this.ab&&this.L.start()};
g.k.sB=function(){this.I.stop();this.i&&this.i.isActive()&&this.J.start()};
g.k.rB=function(){this.J.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.k.XN=function(){this.i&&this.i.stop()};
g.k.WN=function(){this.kb()};
g.k.kb=function(){!this.i||this.u&&this.u.isActive()||(g.Do("iv-teaser-hidden"),this.B.hide(),g.mn(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.M(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.Gb(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);XN(this.Ki,!0)},330,this),this.u.start())};
g.k.If=function(){return this.ab&&4!==this.B.state};
g.k.da=function(){var a=this.G.getRootNode();a&&g.mn(a,"ytp-cards-teaser-shown");g.Fi(this.l,this.u,this.i);g.X.prototype.da.call(this)};var Qoa=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var q0={},cO=(q0.BUTTON="ytp-button",q0.TITLE_NOTIFICATIONS="ytp-title-notifications",q0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",q0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",q0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",q0);g.u(dO,g.X);dO.prototype.onClick=function(){this.api.ub(this.element);var a=!this.i;this.Ba("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ba("pressed",a);Toa(this,a)};g.u(g.fO,g.X);g.fO.prototype.l=function(){g.N(this.element,"ytp-sb-subscribed")};
g.fO.prototype.u=function(){g.mn(this.element,"ytp-sb-subscribed")};g.u(gO,g.X);g.k=gO.prototype;g.k.Nz=function(){Yoa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Rx=function(){if(Woa(this)&&!this.isExpanded()){this.Ba("flyoutUnfocusable","false");this.Ba("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Qa(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.af&&a.subscribed&&(this.l.show(),this.api.Qa(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.nx=function(){this.Ba("flyoutUnfocusable","true");this.Ba("channelTitleFocusable","-1");this.u&&this.u.start()};
g.k.wa=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.kc&&!!a.dg:g.PF(b)&&(c=!!a.videoId&&!!a.kc&&!!a.dg&&!(a.C&&b.pfpChazalUi));var d=g.BG(this.api.T())+a.kc;g.PF(this.api.T())&&(d=g.Od(d,g.bO("emb_ch_name_ex")));var e=a.kc,f=a.dg;b=g.PF(b)?a.dm:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.BG(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Ba("channelLink",
e),this.Ba("channelLogoLabel",g.AJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.mn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Qa(this.i,c&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=a.Bg);this.Ba("expandedTitle",a.dm);this.Ba("channelTitleLink",d);this.Ba("expandedSubtitle",a.expandedSubtitle)};g.u(g.iO,g.ZK);g.iO.prototype.Ba=function(a,b){g.ZK.prototype.Ba.call(this,a,b);this.V("size-change")};g.u(lO,g.ZK);lO.prototype.lF=function(){this.V("size-change")};
lO.prototype.focus=function(){this.content.focus()};
lO.prototype.XM=function(){this.V("back")};g.u(g.mO,lO);g.mO.prototype.Ub=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.vb(this.items,a,Zoa);if(0<=c)return;c=~c;g.rb(this.items,c,0,a);g.Le(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.sz,this);this.menuItems.V("size-change")};
g.mO.prototype.xf=function(a){a.unsubscribe("size-change",this.sz,this);this.na()||(g.kb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))};
g.mO.prototype.sz=function(){this.menuItems.V("size-change")};
g.mO.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(oO,g.iO);oO.prototype.i=function(a){g.cp(a)||39!==g.dp(a)||(this.element.click(),g.bp(a))};g.u(qO,g.iO);qO.prototype.onClick=function(){this.setValue(!this.checked);this.V("select",this.checked)};
qO.prototype.getValue=function(){return this.checked};
qO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(rO,g.mO);g.k=rO.prototype;g.k.oN=function(){AN(this.no.element)};
g.k.HP=function(){tO(this,this.G.getDebugText(!0))&&VN(this.Qb,bL())};
g.k.IP=function(){tO(this,this.G.getVideoEmbedCode())&&VN(this.Qb,yma());this.G.ub(this.Sh.element);fM("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.JP=function(){tO(this,this.G.getVideoUrl(!0,!0))&&VN(this.Qb,gL());this.G.ub(this.getVideoUrl.element);fM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.KP=function(){tO(this,this.G.getVideoUrl(!1,!0))&&VN(this.Qb,gL());this.G.ub(this.Uh.element);fM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.wF=function(a){this.ai.setValue(a)};
g.k.LP=function(){this.G.setLoopVideo(this.ai.getValue());this.bb.kb();this.G.ub(this.ai.element)};
g.k.HO=function(a){this.G.reportPlaybackIssue();if(g.xN(a,this.G,!oG(this.G.T()))){a=this.G;var b=a.app.getFeedbackProductData();a.xa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.bb.kb()};
g.k.ZO=function(){this.G.showVideoInfo();this.bb.kb()};
g.k.Oa=function(a,b){this.Ah(b)};
g.k.Ah=function(a){var b=this.G.T(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.J&&!!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.l&&(b.fmt=a.l.Vb()),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Ja&&(b.partnerid=a.Ja),b=g.Od("//support.google.com/googleplay/",b));g.YK(this.Sh,d&&a.allowEmbed);g.YK(this.getVideoUrl,d);g.YK(this.Uh,d&&!a.isLivePlayback);
this.Or.Ec(b,"href");g.YK(this.ai,!a.isLivePlayback&&!c)};
g.k.zb=function(a){g.mO.prototype.zb.call(this,a);this.G.Qa(this.Sh.element,a);this.G.Qa(this.getVideoUrl.element,a);this.G.Qa(this.Uh.element,a);this.G.Qa(this.ai.element,a)};g.u(g.uO,g.KN);g.k=g.uO.prototype;g.k.show=function(){g.KN.prototype.show.call(this);this.Gp()};
g.k.hide=function(){g.KN.prototype.hide.call(this);1<this.i.length&&g.wO(this)};
g.k.Gp=function(){bpa(this);this.ab&&(apa(this),g.Dg(this.element,this.size))};
g.k.xg=function(){var a=this.i.pop();vO(this,a,this.i[this.i.length-1],!0)};
g.k.lI=function(a){if(!g.cp(a))switch(g.dp(a)){case 27:this.kb();g.bp(a);break;case 37:1<this.i.length&&this.xg();g.bp(a);break;case 39:g.bp(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.da=function(){g.KN.prototype.da.call(this);this.B&&this.B.dispose();this.I&&this.I.dispose()};g.u(g.xO,g.uO);g.k=g.xO.prototype;g.k.nI=function(a){var b,c=Zo(a);c&&(Ve(c,"a")||Ve(c,null,"ytp-no-contextmenu",void 0))||this.ab||(this.ca=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.ie(a.clientX,a.clientY):new g.ie(0,0),this.Y.start())};
g.k.WF=function(){this.Y.stop()};
g.k.oP=function(){this.open(this.ca)};
g.k.show=function(){this.C||(this.C=new rO(this.G,this.ea,this,this.Qb),g.I(this,this.C),g.sO(this,this.C));this.C.wF(this.G.getLoopVideo());g.uO.prototype.show.call(this);this.G.Qa(this.element,!0);this.C.zb(!0)};
g.k.hide=function(){dpa(this);g.uO.prototype.hide.call(this);this.G.Qa(this.element,!1);this.C&&this.C.zb(!1)};
g.k.lN=function(a){var b=Zo(a);this.ab||b&&(Ve(b,"a")||Ve(b,null,"ytp-no-contextmenu",void 0))||(g.bp(a),this.open(ap(a)))};
g.k.open=function(a){epa(this);var b=this.G.getVideoData();g.O(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.Dc();var c=document.body;b=new $f(0,Infinity,Infinity,0);var d=qe(c);for(var e=d.i.body,f=d.i.documentElement,h=Ae(d.i);c=lba(c);)if(!(g.Be&&0==c.clientWidth||g.De&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=sg(c,"overflow")){var l=g.wg(c),m=new g.ie(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.i;d=ze(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.cg(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.ug(this.element,new g.ie(d.left,d.top));g.Pt(this.u);this.u.N(document,"contextmenu",this.tN);this.u.N(this.G,"fullscreentoggled",this.Zf);this.u.N(this.G,"pageTransition",this.mI)};
g.k.tN=function(a){if(!g.cp(a)){var b=Zo(a);g.Pe(this.element,b)||this.kb();this.G.T().disableNativeContextMenu&&g.bp(a)}};
g.k.Zf=function(){this.kb();epa(this)};
g.k.mI=function(){this.kb()};g.u(g.yO,g.X);g.yO.prototype.onClick=function(){return C(this,function b(){var c=this,d,e,f,h;return z(b,function(l){if(1==l.i)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),v(l,gpa(c,h),2);l.l&&fpa(c);c.api.ub(c.element);l.i=0})})};
g.yO.prototype.wa=function(){var a=this.api.T(),b=this.api.getVideoData();this.Ba("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.Ba("title-attr","Copy link");var c=this.api.Ka().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.l&&b.sj&&!(b.C&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.YK(this,this.visible);AO(this.tooltip);this.api.Qa(this.element,this.visible&&this.W)};
g.yO.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.api.Qa(this.element,this.visible&&a)};
g.yO.prototype.da=function(){g.X.prototype.da.call(this);g.mn(this.element,"ytp-copylink-button-visible")};g.u(BO,g.X);BO.prototype.show=function(){g.X.prototype.show.call(this);g.en(this.l)};
BO.prototype.hide=function(){this.u.stop();g.mn(this.element,"ytp-chapter-seek");g.mn(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
BO.prototype.Nr=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.G.ub(e);g.fn(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.Ka().getPlayerSize().height;e=this.G.Ka().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.ha("ytp-doubletap-ripple");l.style.width=h+
"px";l.style.height=h+"px";1===a?(a=this.G.Ka().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.ha("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");hpa(this,d)};var ZDa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ZDa).reduce(function(a,b){a[ZDa[b]]=b;return a},{});
var $Da={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($Da).reduce(function(a,b){a[$Da[b]]=b;return a},{});
var aEa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(aEa).reduce(function(a,b){a[aEa[b]]=b;return a},{});var r0,bEa;r0=[{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"}];bEa=[{option:0,text:EO(0)},{option:.25,text:EO(.25)},{option:.5,text:EO(.5)},{option:.75,text:EO(.75)},{option:1,text:EO(1)}];
g.HO=[{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:r0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:EO(.5)},{option:-1,text:EO(.75)},{option:0,text:EO(1)},{option:1,text:EO(1.5)},{option:2,text:EO(2)},
{option:3,text:EO(3)},{option:4,text:EO(4)}]},{option:"background",text:"Background color",options:r0},{option:"backgroundOpacity",text:"Background opacity",options:bEa},{option:"windowColor",text:"Window color",options:r0},{option:"windowOpacity",text:"Window opacity",options:bEa},{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:EO(.25)},{option:.5,text:EO(.5)},{option:.75,text:EO(.75)},{option:1,text:EO(1)}]}];g.u(g.GO,g.XM);g.k=g.GO.prototype;
g.k.VD=function(a){var b=!1,c=g.dp(a),d=Zo(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.cp(a)?(e=!1,h=!0):l.Ce&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),
d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);WN(this.Qb,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);WN(this.Qb,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Ke()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.Ke()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.Xz(!0);(b||h)&&this.Lc.wk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.bp(a);l.u&&(a={keyCode:g.dp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.cp(a),fullscreen:this.api.isFullscreen()},this.api.xa("onKeyPress",a))};
g.k.WD=function(a){this.handleGlobalKeyUp(g.dp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.TM(this.api.Ua());c&&(c=c.Vl)&&c.ab&&(c.RD(a),b=!0);9===a&&(this.Xz(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.Ce)return h;var l=g.TM(this.api.Ua());if(l&&(l=l.Vl)&&l.ab)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.QD(a)}e.I||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&on(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.Ck:[];c=XS?d:c;switch(a){case 80:b&&
!e.ea&&(VN(this.Qb,Fma(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ea&&(VN(this.Qb,hL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Ke()&&(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?CO(this.i,-1,10):VN(this.Qb,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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()),h=!0);break;case 76:this.api.Ke()&&(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?CO(this.i,1,10):VN(this.Qb,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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()),h=!0);break;case 37:this.api.Ke()&&(c&&e.Z("web_player_seek_chapters_by_shortcut")?(b=jpa(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.i&&(DO(this.i,-1,f[b].title),this.api.seekTo(f[b].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?CO(this.i,-1,5):VN(this.Qb,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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()),h=!0));break;case 39:this.api.Ke()&&(c&&e.Z("web_player_seek_chapters_by_shortcut")?(b=ipa(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.i&&(DO(this.i,1,f[b].title),this.api.seekTo(f[b].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&null!=this.i?CO(this.i,1,5):VN(this.Qb,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),WN(this.Qb,this.api.getVolume(),!1)):(this.api.mute(),WN(this.Qb,0,!0));h=!0;break;case 32:case 75:e.ea||(b=!g.hK(this.api.Xa()),this.Qb.Jn(b),b?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.tc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),Poa(this.Qb,!1),h=!0):this.api.Ke()&&(lpa(this,1),h=!0);break;case 188:b?e.tc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-
.25,!0),Poa(this.Qb,!0),h=!0):this.api.Ke()&&(lpa(this,-1),h=!0);break;case 70:Boa(this.api)&&(this.api.toggleFullscreen()["catch"](function(){}),h=!0);
break;case 27:this.B()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.hN(this.api.Ua())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),VN(this.Qb,xma(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:IO(this,"textOpacity");break;case 87:IO(this,"windowOpacity");break;case 187:case 61:IO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:IO(this,"fontSizeIncrement",!0,!0)}var m;48<=a&&57>=a?m=a-48:96<=a&&105>=
a&&(m=a-96);null!=m&&this.api.Ke()&&(a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Lc.wk()}return h};
g.k.Xz=function(a){g.O(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.O(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.da=function(){g.fn(this.u);g.XM.prototype.da.call(this)};g.u(JO,g.X);JO.prototype.wa=function(){var a=g.PF(this.G.T())&&g.SM(this.G)&&g.W(this.G.Xa(),128),b=this.G.getPlayerSize();this.visible=this.i.Le()&&!a&&240<=b.width&&!(this.G.getVideoData().C&&this.G.T().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&AO(this.tooltip);this.G.Qa(this.element,this.visible&&this.W)};
JO.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.G.Qa(this.element,this.visible&&a)};
JO.prototype.da=function(){g.X.prototype.da.call(this);g.mn(this.element,"ytp-overflow-button-visible")};g.u(KO,g.KN);g.k=KO.prototype;g.k.oI=function(a){a=Zo(a);g.Pe(this.element,a)&&(g.Pe(this.i,a)||g.Pe(this.closeButton,a)||LN(this))};
g.k.kb=function(){g.KN.prototype.kb.call(this);this.tooltip.Ji(this.element)};
g.k.show=function(){this.ab&&this.G.V("OVERFLOW_PANEL_OPENED");g.KN.prototype.show.call(this);g.U(this.G.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.setAttribute("aria-modal","true");mpa(this,!0)};
g.k.hide=function(){g.KN.prototype.hide.call(this);g.U(this.G.T().experiments,"embeds_enable_overflow_panel_aria_modal_killswitch")||this.element.removeAttribute("aria-modal");mpa(this,!1)};
g.k.Zf=function(a){!a&&this.If()&&LN(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.ab){b.focus();break}};g.u(MO,g.X);MO.prototype.onClick=function(a){g.xN(a,this.api)&&this.api.playVideoAt(this.index)};g.u(NO,g.KN);g.k=NO.prototype;g.k.show=function(){g.KN.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.jw);this.u.N(this.api,"onPlaylistUpdate",this.jw);this.jw()};
g.k.hide=function(){g.KN.prototype.hide.call(this);g.Pt(this.u);this.updatePlaylist(null)};
g.k.jw=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.Wu=function(){var a=this.playlist,b=a.u;if(b===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new MO(this.api,a,d);this.i.push(e);e.fa(this.items)}this.selected=this.i[a.index];this.B=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.nP=function(a){var b=this.api.getVideoUrl(!0);g.yN(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Wu,this),this.playlist=a,this.B=null,a){a.subscribe("shuffle",this.Wu,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.AJ(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.Wu()}else this.ab&&this.hide();
else this.playlist&&this.Wu()};
g.k.focus=function(){this.selected.focus()};
g.k.da=function(){this.hide();g.KN.prototype.da.call(this)};g.u(OO,g.X);
OO.prototype.wa=function(){var a=g.PF(this.api.T());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Ka().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.AJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.AJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ab||(this.show(),AO(this.tooltip)),this.visible=!0):this.ab&&(this.hide(),
AO(this.tooltip))};
OO.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.api.Qa(this.element,this.visible&&a)};
OO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.wa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.wa,this);this.wa()};g.u(PO,g.X);g.k=PO.prototype;
g.k.kw=function(a,b){if(!this.B){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.Fg(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.VK({D:"span",K:"ytp-promotooltip-details-icon",S:[cEa[this.tooltipRenderer.targetId]]});g.I(this,t);for(var w=[],x=g.q(r),y=x.next();!y.done;y=x.next())y=new g.VK({D:"span",K:"ytp-promotooltip-details-component",ba:y.value}),g.I(this,y),w.push(y);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.Ke(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.Fg(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.Fg(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.Fg(this.dismissButton,f)}b&&(this.u=b);this.i=npa(this);this.C=!1;this.G.T().Z("web_player_hide_nitrate_promo_tooltip")||g.YK(this,!0);(l=!this.i)||(l=this.i,
m=window.getComputedStyle(l),l="none"===m.display||"hidden"===m.visibility||"true"===l.getAttribute("aria-hidden"));l||this.G.me()?g.YK(this,!1):(l=g.Eg(this.i),l.width&&l.height?(this.J.ip(this.element,this.i),m=this.G.Ka().getPlayerSize().height-g.Eg(this.element).height-l.height-12,this.element.style.top=m+"px",m=this.ha("ytp-promotooltip-pointer"),n=g.Cg(this.i,this.G.getRootNode()),e=Number(this.element.style.left.replace(/[^\d\.]/g,"")),f=this.G.isFullscreen()?18:12,m.style.left=n.x-e+l.width/
2-f+"px"):g.YK(this,!1));this.I||(this.I=!0,RO(this,0));this.l&&this.G.Qa(this.element,this.ab)}};
g.k.nN=function(){QO(this);this.C=!0};
g.k.vM=function(){this.B=!0;RO(this,1);this.G.V("promotooltipacceptbuttonclicked",this.acceptButton);QO(this);this.l&&this.G.ub(this.acceptButton)};
g.k.sN=function(){this.B=!0;RO(this,2);QO(this);this.l&&this.G.ub(this.dismissButton)};
g.k.pI=function(a){var b,c;if(1===this.G.getPresentingPlayerType()){var d=!0,e=g.we("ytp-ad-overlay-ad-info-dialog-container"),f=Zo(a);if(this.u&&f&&g.Pe(this.u,f))this.u=null;else{1===this.G.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=opa(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Pe(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.Pe(this.element,f));this.i&&this.ab&&!e&&(!f||d&&g.FL(a))&&(this.B=!0,QO(this))}}};
g.k.Ta=function(){this.C||(this.i||(this.i=npa(this)),this.kw())};
var cEa={"ytp-settings-button":g.kL()};g.u(SO,g.X);SO.prototype.i=function(a){g.YK(this,g.W(a.state,2))};
SO.prototype.onClick=function(){this.G.Xa();this.G.playVideo()};g.u(g.TO,g.X);g.TO.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);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d["catch"](ppa)}catch(e){e instanceof Error&&ppa(e)}else this.i.Xj(),LN(this.u,this.element,!1);this.api.ub(this.element)};
g.TO.prototype.wa=function(){var a=this.api.T(),b=this.api.getVideoData();this.i.Le();var c=g.PF(a)&&g.SM(this.api)&&g.W(this.api.Xa(),128);this.Ba("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!0,K:"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.sj||c||b.C&&a.pfpChazalUi;c=this.api.Ka().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.l&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.YK(this,this.visible);AO(this.tooltip);this.api.Qa(this.element,this.visible&&this.W)};
g.TO.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.api.Qa(this.element,this.visible&&a)};
g.TO.prototype.da=function(){g.X.prototype.da.call(this);g.mn(this.element,"ytp-share-button-visible")};g.u(g.UO,g.KN);g.k=g.UO.prototype;g.k.qI=function(a){a=Zo(a);g.Pe(this.C,a)||g.Pe(this.closeButton,a)||LN(this)};
g.k.kb=function(){g.KN.prototype.kb.call(this);this.tooltip.Ji(this.element)};
g.k.show=function(){var a=this.ab;g.KN.prototype.show.call(this);this.wa();a||this.api.xa("onSharePanelOpened")};
g.k.gM=function(){this.ab&&this.wa()};
g.k.wa=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.mn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&iM(this.api.bk(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.na()||(g.mn(a.element,"ytp-share-panel-loading"),rpa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.ZF(this.api.T())&&(b=g.Od(b,g.bO("emb_share")));this.Ba("link",b);this.Ba("linkText",b);this.Ba("shareLinkWithUrl",g.AJ("Share link $URL",{URL:b}));AN(this.u)};
g.k.Zf=function(a){!a&&this.If()&&LN(this)};
g.k.focus=function(){this.u.focus()};
g.k.da=function(){g.KN.prototype.da.call(this);qpa(this)};g.u(XO,g.X);g.k=XO.prototype;g.k.kz=function(){};
g.k.lz=function(){};
g.k.Xr=function(){return!0};
g.k.uQ=function(){if(this.expanded){this.ca.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.ca.hide();this.Ca=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ca)+"px";this.Y.start()};
g.k.TK=function(){this.badge.element.style.width=(this.expanded?this.Ca:34)+"px";this.ga.start()};
g.k.Xg=function(){this.Xr()?this.J.show():this.J.hide();spa(this)};
g.k.rI=function(){this.enabled=!1;this.Xg()};
g.k.WQ=function(a){this.Ja=a;this.Xg()};
g.k.bN=function(a){this.ma=1===a;this.Xg()};
g.k.AN=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Xg()};g.u(YO,XO);g.k=YO.prototype;g.k.da=function(){ZO(this);XO.prototype.da.call(this)};
g.k.kz=function(a){a.target!==this.dismissButton.element&&(upa(this,!1),this.G.xa("innertubeCommand",this.onClickCommand))};
g.k.lz=function(){this.dismissed=!0;upa(this,!0);this.Xg()};
g.k.qO=function(a){this.ia=a;this.Xg()};
g.k.hO=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.ea&&(this.L=a,a||(a=3+this.G.getCurrentTime(),this.sd(a)))};
g.k.Oa=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.i=!0,this.L=this.ea=this.l=this.I=!1,ZO(this));if(d||!b.videoId)this.B=this.u=!1;d=b.shoppingOverlayRenderer;this.ia=this.enabled=!1;if(d){this.enabled=!0;var e,f;this.u||(this.u=!!d.trackingParams)&&this.G.Tl(this.badge.element,d.trackingParams||null);this.B||(this.B=!(null===(e=d.dismissButton)||void 0===e||!e.trackingParams))&&this.G.Tl(this.dismissButton.element,(null===(f=d.dismissButton)||
void 0===f?void 0:f.trackingParams)||null);this.text=g.HD(d.text);if(e=null===(c=d.dismissButton)||void 0===c?void 0:c.a11yLabel)this.za=g.HD(e);this.onClickCommand=d.onClickCommand;this.timing=d.timing;ZH(b)?this.L=this.ea=!0:this.sd()}tpa(this);WO(this);this.Xg()};
g.k.Xr=function(){return this.Ja&&!this.ia&&this.enabled&&!this.dismissed&&!this.La.Le()&&(g.U(this.G.T().experiments,"products_in_video_desktop_overlay_badge_should_show_on_fullscreen")||!this.G.isFullscreen())&&!this.ma&&!this.L&&(this.l||this.i)};
g.k.pe=function(a){(this.l=a)?(VO(this),WO(this,!1)):(ZO(this),this.X.start());this.Xg()};
g.k.sd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.xD(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.xD(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.G.sd(b)};g.u($O,g.KN);$O.prototype.show=function(){g.KN.prototype.show.call(this);this.B.start()};
$O.prototype.hide=function(){g.KN.prototype.hide.call(this);this.B.stop()};
$O.prototype.Go=function(a,b){if("dataloaded"===a)if(this.u=b.sG,this.i=b.bG,isNaN(this.u)||isNaN(this.i))this.C&&(this.G.Oe("intro"),this.G.removeEventListener(g.AD("intro"),this.ca),this.G.removeEventListener(g.BD("intro"),this.Y),this.G.removeEventListener("onShowControls",this.I),this.hide(),this.C=!1);else{this.G.addEventListener(g.AD("intro"),this.ca);this.G.addEventListener(g.BD("intro"),this.Y);this.G.addEventListener("onShowControls",this.I);var c=new g.xD(this.u,this.i,{priority:7,namespace:"intro"});
this.G.sd([c]);this.C=!0}};g.u(aP,g.X);aP.prototype.onClick=function(){this.G.In()};
aP.prototype.wa=function(){g.YK(this,this.G.jr());this.Ba("icon",this.G.lf()?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
S:[{D:"path",vb:!0,K:"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 $q("yt.autonav");g.u(bP,g.X);g.k=bP.prototype;
g.k.Vp=function(){if(3!==this.G.getPresentingPlayerType()&&g.WM(this.G)&&400<=this.G.Ka().getPlayerSize().width&&!1!==this.G.getVideoData().kQ){if(!this.i){this.i=!0;g.YK(this,this.i);this.l.push(this.N(this.G,"videodatachange",this.Vp));this.l.push(this.N(this.G,"videoplayerreset",this.Vp));this.l.push(this.N(this.G,"onPlaylistUpdate",this.Vp));this.l.push(this.N(this.G,"autonavchange",this.tB));var a=this.G.getVideoData();this.tB(a.autonavState);this.G.Qa(this.element,this.i)}}else{this.i=!1;g.YK(this,
this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.Gb(b.value)}};
g.k.tB=function(a){(a=1!==a)||(g.Sq.getInstance(),a=g.Ko("web_autonav_allow_off_by_default")&&!g.Uq(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Uq(0,140));this.isChecked=a;vpa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.Vu(this.isChecked?2:1);vpa(this);this.G.ub(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ha("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.dP,g.X);g.dP.prototype.da=function(){this.i=null;g.X.prototype.da.call(this)};g.u(eP,g.X);eP.prototype.onClick=function(){this.G.xa("innertubeCommand",this.u)};
eP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Ab()};
eP.prototype.updateVideoData=function(a,b){var c=b.fR;this.u=null===c||void 0===c?void 0:c.command;this.l.disabled=null==this.u;g.O(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Ab()};
eP.prototype.Ab=function(){var a="",b=this.I.i;if(1<b.length){a=1E3*this.G.getProgressState().current;var c=FO(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.i)this.G.xa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.B&&(this.update({title:a}),this.B=a);a?this.show():this.hide()};g.u(g.fP,g.X);g.fP.prototype.Wb=function(a){g.W(a.state,32)?gP(this,this.api.Lg()):this.ab&&(g.W(a.state,16)||g.W(a.state,1))||this.i.hide()};
g.fP.prototype.oe=function(){var a=this.api.Xa();(g.W(a,32)||g.W(a,16))&&hP(this)};
g.fP.prototype.C=function(){this.u=NaN;hP(this)};
g.fP.prototype.hide=function(){this.l&&gP(this,null);g.X.prototype.hide.call(this)};g.u(iP,g.X);iP.prototype.onClick=function(){this.i.ub(this.element);this.i.xa("onFullerscreenEduClicked")};
iP.prototype.wa=function(){this.i.isFullscreen()?this.u?this.l.hide():this.l.show():this.hide();this.i.Qa(this.element,this.i.isFullscreen()&&!this.u)};g.u(g.jP,g.X);g.k=g.jP.prototype;g.k.onClick=function(){var a=this;if(this.G.T().za||this.G.T().Z("embeds_enable_mobile_custom_controls"))try{this.G.toggleFullscreen()["catch"](function(b){a.Zq(b)})}catch(b){this.Zq(b)}else LN(this.message,this.element,!0)};
g.k.Zq=function(a){String(a).includes("fullscreen error")?g.ht(a):g.gt(a);this.rz()};
g.k.rz=function(){this.disable();this.message.Dc(this.element,!0)};
g.k.qk=function(){Kt()===this.G.getRootNode()?this.u.start():(this.u.stop(),this.message&&this.message.hide())};
g.k.BK=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.rz()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Qo(["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.KN(this.G,{D:"div",ka:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{D:"a",U:{href:"https://support.google.com/youtube/answer/6276924",
target:this.G.T().C},ba:b[2]},b[4]]},100,!0);this.message.hide();g.I(this,this.message);this.message.subscribe("show",function(c){a.l.Cq(a.message,c)});
g.VM(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.wa=function(){g.YK(this,Boa(this.G))};
g.k.zh=function(a){if(a){var b={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",vb:!0,K:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",vb:!0,K:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",vb:!0,K:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",
K:"ytp-fullscreen-button-corner-1",S:[{D:"path",vb:!0,K:"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.BN(this.G,"Exit full screen","f");document.activeElement===this.element&&this.G.getRootNode().focus()}else b={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",K:"ytp-fullscreen-button-corner-0",S:[{D:"path",vb:!0,K:"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"}}]},{D:"g",K:"ytp-fullscreen-button-corner-1",S:[{D:"path",
vb:!0,K:"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"}}]},{D:"g",K:"ytp-fullscreen-button-corner-2",S:[{D:"path",vb:!0,K:"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"}}]},{D:"g",K:"ytp-fullscreen-button-corner-3",S:[{D:"path",vb:!0,K:"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.BN(this.G,"Full screen","f");this.Ba("icon",b);this.Ba("title",this.message?null:a);AO(this.l.Ob())};
g.k.da=function(){this.message||((0,this.i)(),this.i=null);g.X.prototype.da.call(this)};g.u(kP,g.X);kP.prototype.onClick=function(){this.G.xa("onCollapseMiniplayer");this.G.ub(this.element)};
kP.prototype.wa=function(){this.visible=!this.G.isFullscreen();g.YK(this,this.visible);this.G.Qa(this.element,this.visible&&this.W)};
kP.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.G.Qa(this.element,this.visible&&a)};g.u(lP,g.X);lP.prototype.Oa=function(a){this.wa("newdata"===a)};
lP.prototype.wa=function(a){var b=this.G.getVideoData(),c=b.Fc,d=this.G.Xa();d=(g.hK(d)||g.W(d,4))&&0<c.length;g.YK(this,d);a&&(this.i=!0);if(d){this.i&&g.en(this.l);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.AJ("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.te("default.jpg")});AO(this.tooltip)}else this.l.stop()};
lP.prototype.u=function(){zO(this.tooltip,this.element,"More cameras available");this.i=!1};g.u(mP,g.KN);g.k=mP.prototype;g.k.show=function(){var a=this.ab;g.KN.prototype.show.call(this);a||(this.u.N(this.api,"presentingplayerstatechange",this.wa),this.u.N(this.api,"videodatachange",this.wa),this.wa())};
g.k.hide=function(){this.u&&(g.Pt(this.u),g.KN.prototype.hide.call(this))};
g.k.wa=function(){var a=this,b=this.api.getVideoData(),c=b.Fc,d,e={};for(d=0;d<c.length;e={Iv:e.Iv},d++){var f=this.i[d];f||(f=new g.X({D:"button",ka:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{D:"div",K:"ytp-multicam-menu-item-title",ba:"{{cameraName}}"}]}),e.Iv=d,f.ya("click",function(n){return function(){var p=n.Iv,r=a.api.getVideoData(),t=a.api,w=r.Fc[p];p=g.Y(t.app,1).getVideoData();r=t.getCurrentTime();w.id===p.videoId?(w=g.Y(t.app,1),
g.Y(t.app)!==w&&(t.app.oi(1),p.isLivePlayback||t.seekTo(r))):(t.app.oi(4),t.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.XB}}}},4))}}(e)),f.fa(this.items),this.i[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=nG(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.i.length;)this.i.pop().dispose();d=this.api.Xa();b=c.length||!b.Wc();g.hK(d)||g.W(d,4)||b||!this.If()||LN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Fc,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.da=function(){g.Fi(this.i);g.KN.prototype.da.call(this)};g.u(nP,g.E);nP.prototype.i=function(){var a=(0,g.Q)()-this.startTime;a=a<this.duration?a/this.duration:1;this.l(g.xn(dEa,a));1>a&&this.delay.start()};
var dEa=new g.wn(0,0,.4,0,.2,1,1,1),Bpa=/[0-9.-]+|[^0-9.-]+/g;g.u(g.pP,g.X);g.k=g.pP.prototype;g.k.uB=function(a){this.visible=300<=a.width;g.YK(this,this.visible);this.G.Qa(this.element,this.visible&&this.W)};
g.k.YN=function(){this.G.T().X?this.G.isMuted()?this.G.unMute():this.G.mute():LN(this.message,this.element,!0);this.G.ub(this.element)};
g.k.Tg=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.T(),f=0===d?1:50<a?1:0;if(this.C!==f){var h=this.Y;isNaN(h)?Epa(this,f):oP(this.ea,function(m){Epa(c,h+(c.C-h)*m)},250);
this.C=f}d=0===d?1:0;if(this.B!==d){var l=this.L;isNaN(l)?Fpa(this,d):oP(this.X,function(m){Fpa(c,l+(c.B-l)*m)},250);
this.B=d}e.X&&(e=g.BN(this.G,"Mute","m"),d=g.BN(this.G,"Unmute","m"),e=b?d:e,this.Ba("title",e),this.Ba("label",e),AO(this.tooltip))};
g.k.zb=function(a){g.X.prototype.zb.call(this,a);this.G.Qa(this.element,this.visible&&a)};
var Cpa=["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"],Dpa=["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(qP,g.X);qP.prototype.onClick=function(){this.G.togglePictureInPicture()};g.u(g.rP,g.X);g.rP.prototype.l=function(a){Gpa(this,a.state)};
g.rP.prototype.Oa=function(){g.O(this.element,"ytp-play-button-playlist",g.SM(this.G))};
g.rP.prototype.Bp=function(){g.hK(this.G.Xa())?this.G.pauseVideo():this.G.playVideo()};g.u(g.uP,g.X);g.k=g.uP.prototype;g.k.Oa=function(){Ipa(this);this.B&&(this.Gb(this.B),this.B=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.Oa,this),this.B=this.N(this.G,"progresssync",this.sI);this.u=Jpa(this);tP(this);this.lw(this.G.Ka().getPlayerSize())};
g.k.lw=function(a){a=void 0===a?this.G.Ka().getPlayerSize():a;var b=g.SM(this.G)||this.i&&g.WM(this.G)||Kpa(this);g.YK(this,b&&(this.i||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.xN(a,this.G):g.bp(a);b&&(this.i&&5===this.G.getPresentingPlayerType()?this.G.V("ytoprerollinternstitialnext"):this.i?this.G.nextVideo(!0):this.u?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.sI=function(){var a=Jpa(this);a!==this.u&&(this.u=a,tP(this))};
g.k.da=function(){this.l&&(this.l(),this.l=null);Ipa(this);g.X.prototype.da.call(this)};g.u(vP,g.X);Mpa.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.C=d;this.i=b-c-d;this.position=g.ee(a,c,c+this.i);this.B=this.position-c;this.u=this.B/this.i};g.u(Npa,g.X);g.u(g.zP,g.ZK);g.k=g.zP.prototype;g.k.Ta=function(){g.BP(this);CP(this);Rpa(this,this.Ca)};
g.k.onClickCommand=function(a){if(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand){var b=a.changeKeyedMarkersVisibilityCommand.key;a.changeKeyedMarkersVisibilityCommand.isVisible&&b&&(this.api.getVideoData().gh=b,Spa(this,b))}};
g.k.Ab=function(){CP(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.Su()};
g.k.uI=function(a){if(!g.cp(a)){var b=!1;switch(g.dp(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.bp(a)}};
g.k.Go=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.yL=function(){this.Go("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.lc=c&&a.allowLiveDvr;bqa(this,this.api.Ke());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,HP(this),DP(this,this.L,this.ma)):this.Su(),g.$Q(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData();var d=c.Qv;c=null!=c.multiMarkersPlayerBarRenderer||null!=d&&0<d.length}if(!c||this.I||this.I)Opa(this),Ppa(this);else if(c=this.api.getVideoData(),d=c.multiMarkersPlayerBarRenderer){var e;
c=this.api.getVideoData();c.gh=(null===(e=d.visibleOnLoad)||void 0===e?void 0:e.key)||c.gh;e=g.q(d.markersMap);for(d=e.next();!d.done;d=e.next())d=d.value,d.key&&d.value&&(this.jc[d.key]=d.value);null!=c.gh&&Spa(this,c.gh)}else if(e=c.Qv)Qpa(this,e),c.Ck=this.i}CP(this)};
g.k.tI=function(a){this.J&&!g.W(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.J.cancel()};
g.k.sH=function(a){var b=!!this.I!==!!a;(this.I=a)?(this.Ba("clipstarticon",Bma()),this.Ba("clipendicon",Bma()),this.Ba("clipstarttitle",null),this.Ba("clipendtitle",null)):(this.Ba("clipstarticon",wma()),this.Ba("clipendicon",vma()),this.Ba("clipstarttitle","Watch entire video"),this.Ba("clipendtitle","Watch entire video"));HP(this);DP(this,this.L,this.ma);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.BP(this))};
g.k.tO=function(a,b,c){var d=g.wg(this.element),e=AP(this).i,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=cM(this.l,Number(c.getAttribute("data-position")),0)*e+g.wg(this.Yc).x);this.Pa.x=a-d.x;this.Pa.y=b-d.y;a=AP(this);d=GP(this,a);b=f||g.EL(this.lc?d-this.l.i:d);c=a.position+this.Kc;d-=this.api.pc();if(this.api.Lg()){if(1<this.i.length)for(e=FP(this,this.Pa.x,!0),h=0;h<this.i.length;)g.O(this.i[h].i,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=FO(this.i,1E3*d);(e=this.i[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=FO(this.i,1E3*d);this.la=Wpa(this,d,h)?h:Wpa(this,d,h+1)?h+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.la&&1<this.i.length);h=320*this.tooltip.scale;var m=e.length*(this.u?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.B-a.position&&(n=2);uqa(this.tooltip,
c,d,b,!!f,l,e,n)}else uqa(this.tooltip,c,d,b,!!f,l);g.O(this.api.getRootNode(),"ytp-progress-bar-hover",!g.W(this.api.Xa(),64));Vpa(this)};
g.k.sO=function(){g.$Q(this.tooltip);g.mn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.rO=function(a,b){this.C&&(this.C.dispose(),this.C=null);this.Sc=b;1<this.i.length&&-1!==this.la?this.api.seekTo(this.i[this.la].startTime/1E3,!1):this.api.seekTo(GP(this,AP(this)),!1);g.N(this.element,"ytp-drag");(this.oc=g.hK(this.api.Xa()))&&this.api.pauseVideo()};
g.k.uO=function(){var a=this;this.Za=0;g.mn(this.element,"ytp-pull-ui");g.mn(this.element,"ytp-pulling");this.C&&(this.C.dispose(),this.C=null);if(0<this.X){var b=(0,g.Q)();this.C=new g.bn(function(){var c=a.X,d=AP(a).position,e=1-Math.pow(1-((0,g.Q)()-b)/200,3);d+=e*(a.L*a.B-d);if(0>e||1<e)e=1;Xpa(a,(1-e)*c,d,a.L);1>e&&a.C.start()});
this.C.start()}if(g.W(this.api.Xa(),32)||3===this.api.getPresentingPlayerType())1<this.i.length&&-1!==this.la?this.api.seekTo(this.i[this.la].startTime/1E3):this.api.seekTo(GP(this,AP(this))),g.mn(this.element,"ytp-drag"),this.oc&&!g.W(this.api.Xa(),2)&&this.api.playVideo()};
g.k.vO=function(a,b){var c=this,d=!1,e=!1,f=AP(this);3600<=aM(this.l)&&1===this.i.length&&(Xpa(this,this.Sc-b-10,f.position,f.u),e=!0,d=this.X>.1*(this.u?60:40),f=AP(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");d=0;f.l&&0>=f.position&&1===this.i.length?d=-1:f.C&&f.position>=f.width&&1===this.i.length&&(d=1);if(this.Za!==d&&1===this.i.length&&(this.Za=d,this.C&&(this.C.dispose(),this.C=null),d)){var h=(0,g.Q)();this.C=new g.bn(function(){var l=c.B*(c.ga-1);c.Y=g.ee(c.Y+
c.Za*((0,g.Q)()-h)*.3,0,l);EP(c);c.api.seekTo(GP(c,AP(c)),!1);0<c.Y&&c.Y<l&&c.C.start()});
this.C.start()}this.api.seekTo(GP(this,f),!1)};
g.k.iF=function(){this.I||(this.Ba("clipstarticon",uma()),this.Ba("clipendicon",uma()),g.N(this.element,"ytp-clip-hover"))};
g.k.hF=function(){this.I||(this.Ba("clipstarticon",wma()),this.Ba("clipendicon",vma()),g.mn(this.element,"ytp-clip-hover"))};
g.k.Su=function(){this.clipStart=0;this.clipEnd=Infinity;HP(this);DP(this,this.L,this.ma)};
g.k.tH=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.ea[c]){var d=g.Ie("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.ea[c]=b;this.Wa[c]=d;g.jn(d,b.style);Ypa(this,c);g.U(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.i[0].u.appendChild(d)}}else aqa(this,b)};
g.k.bQ=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())aqa(this,b.value)};
g.k.da=function(){bqa(this,!1);g.ZK.prototype.da.call(this)};g.u(LP,g.X);LP.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
LP.prototype.wa=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.YK(this,a&&400<=this.G.Ka().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Ba("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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.Ba("icon",g.tma())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
LP.prototype.l=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var a=this.bb,b=this.element;if(a.If())a.kb();else{a.initialize();a:{var c=g.q(a.ud.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.Dc(b));a.Dc(b)}}};g.u(MP,g.X);MP.prototype.i=function(a){a=this.l&&400<=a.width;g.YK(this,a);this.G.Qa(this.element,a)};
MP.prototype.u=function(){if(this.bb.ab)this.bb.kb();else{var a=g.hN(this.G.Ua());a&&!a.loaded&&(a.Fe("tracklist",{includeAsr:!0}).length||a.load());this.G.ub(this.element);this.bb.Dc(this.element)}};
MP.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.UM(this.G),e=c&&!!g.TM(this.G.Ua());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.u(OP,qO);OP.prototype.Wc=function(){var a=g.pN(this.G.Ua());return void 0!==a&&a.loaded};
OP.prototype.wa=function(){void 0!==g.pN(this.G.Ua())&&3!==this.G.getPresentingPlayerType()?this.i||(this.bb.Ub(this),this.i=!0):this.i&&(this.bb.xf(this),this.i=!1);this.setValue(this.Wc())};
OP.prototype.l=function(a){this.Wc();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.V("annotationvisibility",a)};
OP.prototype.da=function(){this.i&&this.bb.xf(this);qO.prototype.da.call(this)};g.u(g.PP,g.iO);g.k=g.PP.prototype;g.k.open=function(){g.sO(this.bb,this.u)};
g.k.bh=function(a){dqa(this);this.options[a].element.setAttribute("aria-checked","true");this.Ec(this.Ih(a));this.l=a};
g.k.ax=function(a,b,c){var d=this;b=new g.iO({D:"div",ka:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",ka:["ytp-menuitem-label"],ba:"{{label}}"}]},b,this.Ih(a,!0));b.ya("click",function(){d.Ue(a)});
return b};
g.k.enable=function(a){this.B?a||(this.B=!1,this.Wn(!1)):a&&(this.B=!0,this.Wn(!0))};
g.k.Wn=function(a){a?this.bb.Ub(this):this.bb.xf(this)};
g.k.Ue=function(a){this.V("select",a)};
g.k.Ih=function(a){return a.toString()};
g.k.vI=function(a){g.cp(a)||39!==g.dp(a)||(this.open(),g.bp(a))};
g.k.da=function(){this.B&&this.bb.xf(this);g.iO.prototype.da.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(RP,g.PP);RP.prototype.wa=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.QP(this,g.Qc(a,this.C)),this.tracks=g.Bb(a,this.C,this),this.i.Ec(a.length?" ("+a.length+")":""),this.V("size-change"),this.bh(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
RP.prototype.Ue=function(a){g.PP.prototype.Ue.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.bb.xg()};
RP.prototype.C=function(a){return a.toString()};g.u(SP,qO);
SP.prototype.l=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.WM(this.G))this.i||(this.bb.Ub(this),this.i=!0,this.u.push(this.N(this.G,"videodatachange",this.l)),this.u.push(this.N(this.G,"videoplayerreset",this.l)),this.u.push(this.N(this.G,"onPlaylistUpdate",this.l)),this.u.push(this.N(this.G,"autonavchange",this.B)),a=this.G.getVideoData(),this.B(a.autonavState),this.G.Qa(this.element,this.i));else if(this.i){this.bb.xf(this);this.i=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Gb(b.value)}};
SP.prototype.B=function(a){this.setValue(1!==a)};
SP.prototype.C=function(a){this.G.Vu(a?2:1);this.i&&(this.G.Qa(this.element,this.i),this.G.ub(this.element))};
SP.prototype.da=function(){this.i&&this.bb.xf(this);qO.prototype.da.call(this)};g.u(TP,g.KN);TP.prototype.Dc=function(){g.KN.prototype.Dc.call(this);this.dialog.focus()};g.u(UP,g.iO);UP.prototype.zb=function(a){this.l&&this.G.Qa(this.element,this.i&&a)};
UP.prototype.B=function(){var a,b,c=null===(b=null===(a=this.G.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.G.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.hO(this,VP(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.u=new TP(this.G,VP(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),VP(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),VP(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.I(this,this.u);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.l=!!d)this.G.Jg(this.element,this,!0),this.G.Tl(this.element,d);this.bb.Ub(this);this.i=!0}else!c&&this.i&&(this.bb.xf(this),this.i=!1)};
UP.prototype.onClick=function(){this.l&&this.G.ub(this.element);this.bb.kb();this.u&&this.u.Dc()};g.u(WP,g.PP);g.k=WP.prototype;g.k.Wp=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=this.G.Xm(),a=this.G.getAvailableQualityLevels(),g.goa(this.G)&&g.hoa(this.G)&&a.unshift("missing-qualities"),ioa(this.G)&&a.unshift("inline-survey"),g.QP(this,a),a.length)){this.vB();this.enable(!0);return}this.enable(!1)};
g.k.vB=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.i=this.G.getPlaybackQuality(),this.bh(a),"auto"===a&&this.Ec(this.Ih(a)))};
g.k.Ue=function(a){"missing-qualities"!==a&&(g.PP.prototype.Ue.call(this,a),this.G.setPlaybackQuality(a),this.bb.kb(),this.Wp())};
g.k.ax=function(a,b,c){var d=this;if("inline-survey"!==a)return g.PP.prototype.ax.call(this,a,b,c);a=[{D:"span",ba:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Es:c.Es},f=e.next())c.Es=f.value,f=new g.X({D:"span",K:"ytp-menuitem-inline-survey-response",S:[c.Es?g.fL():zma()],U:{tabindex:"0",role:"button"}}),f.ya("click",function(h){return function(){var l=h.Es,m=g.Y(d.G.app);m&&(m.Ia("iqsr",l?"0":"1"),m.getVideoData().XA=!0);d.bb.kb();d.Wp()}}(c)),a.push(f);
return new g.iO({D:"div",K:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{D:"div",ka:["ytp-menuitem-label"],S:a}]},b)};
g.k.Ih=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{D:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.T().C},ba:"Missing options?"};if("inline-survey"===a)return"";var c=[eqa(this,a)],d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(eqa(this,this.i,["ytp-menu-label-secondary"])));return{D:"div",S:c}};g.u(XP,g.X);g.k=XP.prototype;g.k.init=function(){this.Gn(this.i);this.Ba("minvalue",this.minimumValue);this.Ba("maxvalue",this.maximumValue)};
g.k.yI=function(a){if(!g.cp(a)){switch(g.dp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Gn(this.i+b);g.bp(a)}};
g.k.wI=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.C:this.C;this.Gn(b);g.bp(a)};
g.k.xI=function(a){a=(a-g.wg(this.l).x)/this.J*this.range+this.minimumValue;this.Gn(a)};
g.k.Gn=function(a,b){b=void 0===b?"":b;var c=g.ee(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.Ba("valuenow",c);this.Ba("valuetext",b);this.L.style.left=(c-this.minimumValue)/this.range*(this.J-this.Y)+"px";this.i=c};
g.k.focus=function(){this.ca.focus()};g.u(ZP,XP);ZP.prototype.X=function(){this.G.setPlaybackRate(this.i,!0)};
ZP.prototype.Gn=function(a){XP.prototype.Gn.call(this,a,$P(this,a).toString());this.u&&(YP(this),this.ea())};
ZP.prototype.ia=function(){var a=this.G.getPlaybackRate();$P(this,this.i)!==a&&(this.Gn(a),YP(this))};g.u(aQ,g.ZK);aQ.prototype.focus=function(){this.i.focus()};g.u(fqa,lO);g.u(bQ,g.PP);g.k=bQ.prototype;g.k.Ih=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.wa=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);iqa(this)};
g.k.Wn=function(a){g.PP.prototype.Wn.call(this,a);a?(this.J=this.N(this.G,"onPlaybackRateChange",this.zI),iqa(this),gqa(this,this.G.getPlaybackRate())):(this.Gb(this.J),this.J=null)};
g.k.zI=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||hqa(this,b);gqa(this,a)};
g.k.Ue=function(a){g.PP.prototype.Ue.call(this,a);a===this.i?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.bb.xg()};g.u(dQ,g.PP);g.k=dQ.prototype;g.k.bh=function(a){g.PP.prototype.bh.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Ih=function(a){return this.getOption(a).text||""};
g.k.Ue=function(a){g.PP.prototype.Ue.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.u(eQ,g.mO);eQ.prototype.Qe=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.Cl[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.bh(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
eQ.prototype.vg=function(a,b){this.V("settingChange",a,b)};g.u(fQ,g.PP);fQ.prototype.getKey=function(a){return a.languageCode};
fQ.prototype.Ih=function(a){return this.languages[a].languageName||""};
fQ.prototype.Ue=function(a){this.V("select",a);g.wO(this.bb)};g.u(gQ,g.PP);g.k=gQ.prototype;g.k.getKey=function(a){return g.Pb(a)?"__off__":a.displayName};
g.k.Ih=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Ue=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.aO(this.G.T(),this.G.getVideoData()),g.IJ(a)):(this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.PP.prototype.Ue.call(this,a),this.bb.xg())};
g.k.wa=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.Ek;var c={};if(a||b){if(a){var d=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var e=this.G.getOption("captions","translationLanguages");this.tracks=g.Bb(c,this.getKey,this);var f=g.Qc(c,this.getKey);if(e.length&&!g.Pb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===
l});
yaa(e,h)}kqa(this.i,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.QP(this,f);this.bh(e);d&&d.translationLanguage?this.i.bh(this.i.getKey(d.translationLanguage)):dqa(this.i);a&&this.C.Qe(this.G.getSubtitlesUserSettings());this.J.Ec(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.enable(!0)}else this.enable(!1)};
g.k.AI=function(a){var b=this.G.getOption("captions","track");b=g.Vb(b);b.translationLanguage=this.i.languages[a];this.G.setOption("captions","track",b)};
g.k.vg=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}lqa(this,!0);this.I.start();this.C.Qe(this.G.getSubtitlesUserSettings())};
g.k.YO=function(a){a||g.fn(this.I)};
g.k.da=function(){g.fn(this.I);g.PP.prototype.da.call(this)};g.u(hQ,g.uO);g.k=hQ.prototype;g.k.initialize=function(){if(!this.be){this.be=!0;this.Ty=new UP(this.G,this);g.I(this,this.Ty);var a=new WP(this.G,this);g.I(this,a);a=new gQ(this.G,this);g.I(this,a);a=new OP(this.G,this);g.I(this,a);this.G.T().tc&&(a=new bQ(this.G,this),g.I(this,a));this.G.T().jc&&!g.U(this.G.T().experiments,"web_player_move_autonav_toggle")&&(a=new SP(this.G,this),g.I(this,a));a=new RP(this.G,this);g.I(this,a);NP(this.settingsButton,this.ud.items.length)}};
g.k.Ub=function(a){this.initialize();this.ud.Ub(a);NP(this.settingsButton,this.ud.items.length)};
g.k.xf=function(a){this.ab&&1>=this.ud.items.length&&this.hide();this.ud.xf(a);NP(this.settingsButton,this.ud.items.length)};
g.k.Dc=function(a){this.initialize();0<this.ud.items.length&&g.uO.prototype.Dc.call(this,a)};
g.k.show=function(){g.uO.prototype.show.call(this);g.N(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.uO.prototype.hide.call(this);g.mn(this.G.getRootNode(),"ytp-settings-shown")};
g.k.pe=function(a){var b;this.G.Qa(this.element,a);null===(b=this.Ty)||void 0===b?void 0:b.zb(a)};g.u(iQ,g.X);iQ.prototype.onClick=function(){var a=this.G.app;a.Ea.xa("SIZE_CLICKED",!a.oc)};
iQ.prototype.wa=function(){g.YK(this,this.G.Iy()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.ab){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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"}}]}:{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",vb:!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.Ba("icon",b):Apa(this.transition,this.element,b);this.isWidescreen=a;b=g.BN(this.G,"Default view","t");var c=g.BN(this.G,"Theater mode","t");this.Ba("title",a?b:c);AO(this.tooltip)}}};g.u(g.jQ,g.X);g.jQ.prototype.onClick=function(){this.G.toggleSubtitles();if(!this.isEnabled()){var a=!1,b=g.Uq(g.Sq.getInstance(),65);g.wG(this.G.T())&&null!=b&&(a=!b);a&&g.U(this.G.T().experiments,"web_player_nitrate_promo_tooltip")&&this.G.V("showpromotooltip",this.element);this.G.ub(this.element)}};
g.jQ.prototype.i=function(a){var b,c;null===(c=null===(b=g.LM(this.G))||void 0===b?void 0:b.dn())||void 0===c?void 0:c.Dc(a)};
g.jQ.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.jQ.prototype.wa=function(){var a=null!=g.hN(this.G.Ua());g.YK(this,a&&300<=this.G.Ka().getPlayerSize().width);a&&this.Ba("pressed",this.isEnabled())};g.u(g.kQ,g.X);g.k=g.kQ.prototype;
g.k.Ab=function(){var a=this.api.Ka().getPlayerSize().width,b=a>=this.J&&(!this.l||!g.W(this.api.Xa(),64));g.YK(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.EL(g.U(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Ba("currenttime",c),this.u=c);b=g.EL(g.U(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.B!==b&&(this.Ba("duration",b),this.B=b)}this.l&&(a=a.isAtLiveHead,this.I!==a||this.C!==this.isPremiere)&&(this.I=a,this.C=this.isPremiere,this.Ab(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Ec(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.ZN(this.tooltip,this.liveBadge.element)))};
g.k.Oa=function(a,b,c){this.updateVideoData(g.U(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.Ab()};
g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.Sb;this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",this.l)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.da=function(){this.i&&this.i();g.X.prototype.da.call(this)};g.u(nQ,g.X);g.k=nQ.prototype;g.k.qk=function(){var a=this.i.ue();this.B!==a&&(this.B=a,mQ(this,this.api.getVolume(),this.api.isMuted()))};
g.k.wB=function(a){g.YK(this,350<=a.width)};
g.k.DI=function(a){if(!g.cp(a)){var b=g.dp(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.ee(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.bp(a))}};
g.k.BI=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.ee(b/10,-10,10));g.bp(a)};
g.k.cP=function(){lQ(this,this.l,!0,this.hasFocus,this.i.Xh());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.CI=function(a){var b=this.B?78:52,c=this.B?18:12;a-=g.wg(this.L).x;this.api.setVolume(100*g.ee((a-c/2)/(b-c),0,1))};
g.k.bP=function(){lQ(this,this.l,!1,this.hasFocus,this.i.Xh());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.Tg=function(a){mQ(this,a.volume,a.muted)};
g.k.PC=function(){lQ(this,this.l,this.u,this.hasFocus,this.i.Xh())};
g.k.da=function(){g.X.prototype.da.call(this);g.mn(this.J,"ytp-volume-slider-active")};g.u(g.GQ,g.X);g.GQ.prototype.Oa=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.YK(this,this.visible);this.api.Qa(this.element,this.visible&&this.W);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ba("url",a))};
g.GQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.FL(a),!1,!0,!0);if(g.PF(this.api.T())||g.ZF(this.api.T()))b=g.Od(b,g.bO("emb_logo"));g.yN(b,this.api,a);this.api.ub(this.element)};
g.GQ.prototype.Ta=function(){var a={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",vb:!0,K:"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 "}}]};
if(g.ZF(this.api.T())){var b=this.ha("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",U:{fill:"none",height:"24",width:"24"},S:[{D:"circle",U:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",U:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",U:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",U:{viewBox:"0 0 80 24"},S:[{D:"ellipse",U:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",U:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",U:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]};g.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Ba("logoSvg",a)};
g.GQ.prototype.zb=function(a){g.X.prototype.zb.call(this,a);this.api.Qa(this.element,this.visible&&a)};g.u(RQ,g.XM);g.k=RQ.prototype;g.k.oe=function(){this.Yc.Ab();this.wi.Ab()};
g.k.di=function(){this.mw();this.Lc.l?this.oe():g.$Q(this.Yc.tooltip)};
g.k.Dr=function(){this.oe();this.ae.start()};
g.k.mw=function(){var a=!this.G.T().i&&300>g.cqa(this.Yc)&&this.G.Xa().Kb()&&!!window.requestAnimationFrame,b=!a;this.Lc.l||(a=b=!1);b?this.J||(this.J=this.N(this.G,"progresssync",this.oe)):this.J&&(this.Gb(this.J),this.J=null);a?this.ae.isActive()||this.ae.start():this.ae.stop()};
g.k.Ta=function(){var a=this.u.ue(),b=this.G.Ka().getPlayerSize(),c=TQ(this),d=Math.max(b.width-2*c,100);if(this.la!==b.width||this.ga!==a){this.la=b.width;this.ga=a;var e=pqa(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.KP(this.Yc,c,e,a);this.u.Ob().nw=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-UQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Os=e;c.Gp();this.mw();!this.G.T().Z("html5_player_bottom_linear_gradient")&&g.U(this.G.T().experiments,"html5_player_dynamic_bottom_gradient")&&
g.cP(this.ma,b.height)};
g.k.Oa=function(){var a=this.G.getVideoData();this.ca.style.background=a.C?a.Pa:"";g.YK(this.W,a.hx)};g.u(VQ,XO);g.k=VQ.prototype;g.k.kz=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.xa("innertubeCommand",this.onClickCommand),this.dismissed=!0,this.J.hide())};
g.k.lz=function(){this.dismissed=!0;this.J.hide()};
g.k.Oa=function(a,b){var c;"newdata"===a&&(this.l=this.dismissed=!1,WQ(this));var d=b.vE;if(null==b.shoppingOverlayRenderer&&d){this.i=this.I=this.enabled=!0;this.text=Lpa(d.title)||"View Chapters";var e=null===(c=d.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(e){var f=[],h=e.timeRangeStartMillis;e=e.timeRangeEndMillis;null!=h&&null!=e&&f.push(new g.xD(h,e,{priority:7,AU:"suggested_action_button_visible"}));this.G.sd(f)}this.onClickCommand=d.tapCommand;tpa(this);WO(this);this.Xg()}};
g.k.Xr=function(){return!this.dismissed&&this.enabled&&(this.l||this.i)};
g.k.pe=function(a){this.dismissed||((this.l=a)?VO(this):(WQ(this),this.X.start()),this.Xg())};
g.k.da=function(){WQ(this);XO.prototype.da.call(this)};var s0={},XQ=(s0.CHANNEL_NAME="ytp-title-channel-name",s0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",s0.LINK="ytp-title-link",s0.SESSIONLINK="yt-uix-sessionlink",s0.SUBTEXT="ytp-title-subtext",s0.TEXT="ytp-title-text",s0.TITLE="ytp-title",s0);g.u(YQ,g.X);YQ.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.getVideoUrl(!g.FL(a),!1,!0);g.PF(this.api.T())&&(b=g.Od(b,g.bO("emb_title")));g.yN(b,this.api,a)};
YQ.prototype.wa=function(){var a=this.api.getVideoData(),b=this.api.T();this.Ba("title",a.title);qqa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.kc&&c.dg?(this.Ba("channelLink",c.kc),this.Ba("channelName",c.author),this.Ba("channelTitleFocusable","0")):qqa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.We;g.O(this.link,XQ.FULLERSCREEN_LINK,c);b.J||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Ba("url",null),this.Gb(this.i),
this.i=null):(this.Ba("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.u(g.ZQ,g.X);g.k=g.ZQ.prototype;g.k.sF=function(a,b){if(a<=this.l&&this.l<=b){var c=this.l;this.l=NaN;sqa(this,c)}};
g.k.bM=function(){mH(this.i,this.l,160*this.scale)};
g.k.Di=function(){switch(this.type){case 2:var a=this.activeElement;a.removeEventListener("mouseout",this.L);a.addEventListener("mouseover",this.u);a.removeEventListener("blur",this.L);a.addEventListener("focus",this.u);vqa(this);break;case 3:vqa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.sF,this),this.i=null),this.api.removeEventListener("videoready",this.X),this.Y.stop()}this.type=null;this.I&&this.B.hide()};
g.k.Ji=function(a){for(var b=0;b<arguments.length;++b);if(this.activeElement)for(b=0;b<arguments.length;b++)g.Pe(arguments[b],this.activeElement)&&this.Di()};
g.k.da=function(){null!=this.type&&this.Di();this.i&&this.i.dispose();g.X.prototype.da.call(this)};g.u(g.aR,g.X);g.k=g.aR.prototype;g.k.Ps=function(){var a=this.G.getPlayerSize(),b=this.G.T(),c=this.G.getVideoData(),d=g.PF(b)&&g.SM(this.G)&&g.W(this.G.Xa(),128);this.visible=b.Yi&&240<=a.width&&!c.isAd()&&c.Vd&&!d&&!(c.C&&b.pfpChazalUi);g.YK(this,this.visible);this.icon&&Bqa(this,this.icon);this.G.Qa(this.element,this.visible&&this.W)};
g.k.xB=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.ub(this.element);var b=this.G.T(),c=this.xB();b.W?yqa(this):this.G.dv()?this.G.requestStorageAccess(function(){g.Or("embedsItpWatchLaterResult",{accepted:!0});wq();zqa(a,c)},function(){g.Or("embedsItpWatchLaterResult",{accepted:!1});
Aqa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):zqa(this,c)};
g.k.FI=function(){this.i=this.l=!1;this.wa(2)};
g.k.wa=function(a,b){var c=this.G.T();Bqa(this,a);if(b)this.update({title:b,image:null});else if(c.userDisplayName){var d={USER_NAME:c.userDisplayName};this.update({title:this.l?g.AJ("Added as $USER_NAME",d):g.AJ("Watch later as $USER_NAME",d),image:AG(c)})}else this.update({title:"Watch later",image:null});AO(this.tooltip)};
g.k.zb=function(a){g.X.prototype.zb.call(this,a);this.G.Qa(this.element,this.visible&&a)};g.u(bR,g.ON);g.k=bR.prototype;g.k.Ob=function(){return this.tooltip};
g.k.ND=function(){return this.Mf};
g.k.Um=function(a,b){b?this.Mi=a:this.Mi=null;this.Gh()};
g.k.Cq=function(a,b){if(b)this.Fl.push(a);else for(var c=this.Fl.length;0<=c;c--)if(this.Fl[c]===a){this.Fl.splice(c,1);break}tN(this.Lc,64,0<this.Fl.length)};
g.k.Ul=function(){this.api.Hg()&&this.api.Ii();return!!this.Mi||Cqa(this)||g.ON.prototype.Ul.call(this)};
g.k.Gh=function(){var a=!this.Ul(),b=a&&this.api.Hg()&&!g.W(this.api.Xa(),2)&&!(this.api.getVideoData().C&&this.api.T().pfpChazalUi),c=this.zl&&g.SM(this.api)&&g.W(this.api.Xa(),128);a||c?(this.tA.show(),this.uA.show()):(this.tA.hide(),this.uA.hide(),this.tooltip.Ji(this.Vg.element));b?this.Ki.Dc():this.Ki.kb();this.Mf&&oqa(this.Mf,!a);g.ON.prototype.Gh.call(this)};
g.k.ip=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Eg(a),h=d||this.Mf&&g.Pe(this.Mf.l.element,b),l=d=null;null!=c&&h||(d=g.Eg(b),l=g.Cg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Mf,d=TQ(b),l=pqa(b),h=this.api.Ka().getPlayerSize().height,c=g.ee(c,d,d+l-f.width),f=h-UQ(b)-f.height):g.Pe(this.Vg.element,b)?(b=this.api.Ka().getPlayerSize().width,c=g.ee(c,12,b-f.width-12),f=this.ue()?this.mx:this.lx,"gvn"===this.api.T().playerStyle&&(f+=
20),this.zl&&(f-=this.ue()?26:18)):(b=this.api.Ka().getPlayerSize(),c=g.ee(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.di=function(a){a&&(this.tooltip.Ji(this.Vg.element),this.Mf&&this.tooltip.Ji(this.Mf.l.element));g.U(this.api.T().experiments,"embeds_enable_player_overlays_autohide")&&this.Fy&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.ON.prototype.di.call(this,a)};
g.k.jz=function(){g.U(this.api.T().experiments,"embeds_enable_player_overlays_autohide")&&this.Fy&&g.O(this.contextMenu.element,"ytp-autohide-active",!1);g.ON.prototype.jz.call(this)};
g.k.Vi=function(a,b){var c=this.api.Ka().getPlayerSize();c=new g.cg(0,0,c.width,c.height);if(a||this.Lc.l&&!this.Ul()){if(this.api.T().Kh||b){var d=this.ue()?this.mx:this.lx;c.top+=d;c.height-=d}this.Mf&&(c.height-=UQ(this.Mf))}return c};
g.k.qk=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.Bt.element,b),b.parentElement.insertBefore(this.At.element,b.nextSibling))):g.ro(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Bt.detach(),this.At.detach());this.Ta();this.Ak()};
g.k.ue=function(){var a=this.api.T();a=a.Z("embeds_enable_mobile_custom_controls")&&a.i;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.ot=!a;this.Gh()};
g.k.Ta=function(){var a=this.ue();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Gh();if(this.Le()&&this.wg)this.Dg&&LO(this.wg,this.Dg),this.shareButton&&LO(this.wg,this.shareButton),this.jg&&LO(this.wg,this.jg);else{if(this.wg){a=this.wg;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Dg&&!g.Pe(this.gg.element,this.Dg.element)&&this.Dg.fa(this.gg.element);this.shareButton&&!g.Pe(this.gg.element,
this.shareButton.element)&&this.shareButton.fa(this.gg.element);this.jg&&!g.Pe(this.gg.element,this.jg.element)&&this.jg.fa(this.gg.element)}this.Ak();g.ON.prototype.Ta.call(this)};
g.k.ay=function(){if(Cqa(this)&&!g.SM(this.api))return!1;var a=this.api.getVideoData();return!g.PF(this.api.T())||2===this.api.getPresentingPlayerType()||!this.mh||((a=this.mh||a.mh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.ON.prototype.ay.call(this):!1};
g.k.Ak=function(){g.ON.prototype.Ak.call(this);this.api.Qa(this.title.element,!!this.aj);this.hp&&this.hp.zb(!!this.aj);this.channelAvatar.zb(!!this.aj);this.overflowButton&&this.overflowButton.zb(this.Le()&&!!this.aj);this.shareButton&&this.shareButton.zb(!this.Le()&&!!this.aj);this.Dg&&this.Dg.zb(!this.Le()&&!!this.aj);this.jg&&this.jg.zb(!this.Le()&&!!this.aj);if(!this.aj){this.tooltip.Ji(this.Vg.element);for(var a=0;a<this.us.length;a++){var b=this.us[a];b.If()&&b.kb()}}};
g.k.tb=function(a){this.Mf&&oqa(this.Mf,this.Ul());this.Gh();g.ON.prototype.tb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.jk?this.jk.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.jk?this.jk.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Xj=function(){return this.contextMenu.ab?(this.contextMenu.kb(),!0):this.Fl.length?(this.Fl[this.Fl.length-1].kb(),!0):this.Mi?(this.Mi.kb(),!0):g.ON.prototype.Xj.call(this)};
g.k.Yz=function(a,b){this.aA=b;this.Cq(a,b);this.yH()};
g.k.yH=function(){var a=this.aA||this.contextMenu.If();this.Xw!==a&&(this.Xw=a,this.api.xa("onAutonavPauseRequest",this.Xw))};
g.k.cL=function(){cR(this,this.api.getRootNode(),!0).focus()};
g.k.dL=function(){cR(this,this.api.getRootNode(),!1).focus()};
g.k.dn=function(){return this.Mf&&this.Mf.i};
g.k.wk=function(){this.Lc.wk()};
g.k.au=function(){this.Qb.hide()};
g.k.Jn=function(a){this.Qb.Jn(!g.hK(a))};
g.k.Nr=function(a,b,c,d){this.Aq.Nr(a,b,c,d)};
g.k.BG=function(a,b){DO(this.Aq,a,b)};
g.k.mN=function(){Dqa(this,!0)};
g.k.PN=function(a){Dqa(this,!1,a)};g.u(g.dR,g.eN);g.dR.prototype.ri=function(){return!1};
g.dR.prototype.create=function(){var a=this.player.T();tG(a)&&a.i?this.chrome=new g.ON(this.player):this.chrome=new bR(this.player);g.I(this,this.chrome);this.chrome.init();this.player.jd("ux")};
g.dR.prototype.Kq=function(){return this.chrome};for(var Fqa={playbackData:119,transfer:120,offlineVideoPolicy:130,ytMainVideoEntity:151,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,offlineOrchestrationActionWrapperEntity:169},Eqa={},eEa=g.q(Object.entries(Fqa)),t0=eEa.next();!t0.done;t0=eEa.next()){var fEa=g.q(t0.value),gEa=fEa.next().value,hEa=fEa.next().value;hEa&&(Eqa[hEa]=gEa)};var iEa={},Jqa=Ns("PersistentEntityStoreDb",{gz:(iEa.EntityStore=!0,iEa),bA:!1,clearDataOnAuthChange:!0,upgrade:function(a,b){1>b&&ls(a,"EntityStore",{keyPath:"key"}).i.createIndex("entityType","entityType",{unique:!1})},
version:1});g.u(wR,g.E);wR.prototype.l=function(a){Kqa(this,a.data)};
wR.prototype.da=function(){this.channel&&this.channel.close()};
var CR,Nqa=void 0;FR.prototype.getState=function(){return this.store.getState()};
FR.prototype.dispatch=function(a){return this.store.dispatch(a)};
FR.prototype.subscribe=function(a){return this.store.subscribe(a)};
FR.prototype.replaceReducer=function(a){this.store.replaceReducer(a)};var Qqa=Redux.combineReducers({entities:function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){if(!e.payload)return g.gt(Error("Entity "+e.entityKey+" missing EntityMutationPayload.")),d;if(!e.entityKey)return g.gt(Error("Missing entity key.")),d;var f=Hb(e.payload);return"ENTITY_MUTATION_TYPE_REPLACE"===e.type?Rqa(d,f,e.entityKey,e.payload[f]):d},a);
case "REPLACE_ENTITY":var c=b.payload;return Rqa(a,c.entityType,c.key,c.x3);default:return a}}}),Sqa=new FR;g.u(IR,GR);IR.prototype.l=function(a){return ER(a)?Xqa(this,a):Pqa(a)?Yqa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.u(KR,GR);KR.prototype.l=function(a){return ER(a)?ara(this,a):Pqa(a)?bra(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.u(LR,GR);LR.prototype.l=function(a){return ER(a)?era(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?gra(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var dra=[10];hra.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.u(PR,g.E);PR.prototype.da=function(){this.B&&this.B();g.E.prototype.da.call(this)};
PR.prototype.createAction=function(a,b){var c=rR(a.entityKey).entityType,d=$t();return new NR(c,d,a,b.actionId,b.rootActionId)};
PR.prototype.C=function(a){return C(this,function c(){var d=this,e,f,h,l,m,n;return z(c,function(p){if(1==p.i){if(d.na())return p["return"]();e=[];f=g.q(a);for(h=f.next();!h.done;h=f.next())if(l=h.value,m=rR(l),"offlineOrchestrationActionWrapperEntity"===m.entityType){a:{var r=m.entityId;for(var t=g.q(d.u.actions),w=t.next();!w.done;w=t.next())if(w.value.actionId===r){r=!0;break a}r=!1}r||e.push(l)}return v(p,BR(d.i,"offlineOrchestrationActionWrapperEntity",e),2)}n=p.l;nra(d,n);r=d.l?Promise.resolve():
QR(d);return v(p,r,0)})})};SR.prototype.getLocalMediaInfoById=function(a){return C(this,function c(){return z(c,function(d){return d["return"](ev(a))})})};
SR.prototype.getAllLocalMediaInfo=function(){return C(this,function b(){return z(b,function(c){return c["return"](fv())})})};
SR.prototype.B=function(a){this.l=a.status;if(a.gp&&2===a.status)Tu(a.videoId,2),xra(this.i);else if(4===a.status){var b=a.videoId;Tu(b,4);Yu(b,!1);zra(this.i)}else 1===a.status&&yra(this.i);this.api.xa("localmediachange",NG(a))};
SR.prototype.aa=function(){};g.u(TR,g.E);TR.prototype.da=function(){this.l&&this.l();g.E.prototype.da.call(this)};
TR.prototype.u=function(a){return C(this,function c(){var d,e,f,h,l,m=this;return z(c,function(n){d=[];e=g.q(a);for(f=e.next();!f.done;f=e.next())h=f.value,l=rR(h),"transfer"===l.entityType&&d.push(l.entityId);return 0===d.length?n["return"]():v(n,rra(m,d),0)})})};g.u(UR,g.E);UR.prototype.da=function(){this.u&&this.u();this.B.dispose();g.E.prototype.da.call(this)};
UR.prototype.C=function(){return C(this,function b(){var c=this;return z(b,function(d){return c.i?d["return"]():v(d,VR(c),0)})})};
var u0={},ZR=(u0.TRANSFER_STATE_TRANSFERRING=1,u0.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,u0);g.k=Bra.prototype;g.k.init=function(){return C(this,function b(){var c=this,d,e;return z(b,function(f){switch(f.i){case 1:return c.l?f["return"](c.l):v(f,Oqa(),2);case 2:c.i=f.l;if(!c.i)return f["return"]();c.u=new UR(c.i,c.api,c.player,c.C);var h=c.u.B;var l=Ru();h=rra(h,l);return v(f,h,3);case 3:return v(f,VR(c.u),4);case 4:return d={},e=(d.ytMainDownloadedVideoEntity=new LR(c.i),d.playbackData=new IR(c.i,c.B),d.transfer=new KR(c.i),d),v(f,jra(c.i,e),5);case 5:c.I=f.l,f.i=0}})})};
g.k.refreshAllVideos=function(){return C(this,function b(){var c=this,d,e;return z(b,function(f){return 1==f.i?(d=c,e=d.Qs,v(f,Dra(c),2)):f["return"](e.call(d,f.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
g.k.deleteVideos=function(a){return C(this,function c(){var d=this;return z(c,function(e){return e["return"](d.Qs(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.deleteAllVideos=function(){return C(this,function b(){var c=this,d,e;return z(b,function(f){return 1==f.i?(d=c,e=d.Qs,v(f,Dra(c),2)):f["return"](e.call(d,f.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.Qs=function(a,b){return C(this,function d(){var e=this,f;return z(d,function(h){if(1==h.i)return v(h,e.l,2);if(!e.I||!e.i)return h["return"]([]);f=a.map(function(l){var m=sR(l,"ytMainDownloadedVideoEntity");return OR(new NR("ytMainDownloadedVideoEntity",l,{actionType:b,entityKey:m,actionMetadata:{priority:0,retryScheduleIntervalsInSeconds:[10]}}))});
return h["return"](Lqa(e.i,f))})})};var $R=[],fya=!1;g.AU=Za(function(){var a="";try{var b=g.Ie("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.u(g.aS,XJ);g.k=g.aS.prototype;g.k.isView=function(){return!0};
g.k.Mz=function(){var a=this.i.getCurrentTime();if(a<this.start)try{var b=this.i.Tf(),c=qz(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.bn=function(){return tz(this.i.bn(),this.start,this.end)};
g.k.Tf=function(){return tz(this.i.Tf(),this.start,this.end)};
g.k.Wq=function(){return tz(this.i.Wq(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.i.getCurrentTime()-this.start};
g.k.Zu=function(a){this.i.Zu(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.B?this.end-this.start:this.i.getDuration()-this.start};
g.k.play=function(){if(this.Mz()){this.i.getCurrentTime();try{this.i.Zu(this.start)}catch(a){}}return this.i.play()};
g.k.nb=function(){var a=XJ.prototype.nb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.i.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};
g.k.Ls=function(){return this.i.Ls()};
g.k.ao=function(a){this.i.ao(a)};
g.k.Ks=function(){return this.i.Ks()};
g.k.playVideo=function(){return this.i.playVideo()};
g.k.Ex=function(){this.i.Ex()};
g.k.Dx=function(){this.i.Dx()};
g.k.hm=function(){return this.i.hm()};
g.k.he=function(){return this.i.he()};
g.k.hf=function(){return this.i.hf()};
g.k.cv=function(a){this.i.cv(a)};
g.k.Tu=function(){this.i.Tu()};
g.k.getPlaybackRate=function(){return this.i.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.i.setPlaybackRate(a)};
g.k.Js=function(){return this.i.Js()};
g.k.setLoop=function(a){this.i.setLoop(a)};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.Jk=function(){return this.i.Jk()};
g.k.Tp=function(){return this.i.Tp()};
g.k.cj=function(){return this.i.cj()};
g.k.Lt=function(){return this.i.Lt()};
g.k.tp=function(a){this.i.tp(a)};
g.k.Ms=function(){return this.i.Ms()};
g.k.load=function(){this.i.load()};
g.k.pause=function(){this.i.pause()};
g.k.Fg=function(){return this.i.Fg()};
g.k.Mt=function(){return this.i.Mt()};
g.k.Hh=function(){return this.i.Hh()};
g.k.Ie=function(){return this.i.Ie()};
g.k.Ns=function(){return this.i.Ns()};
g.k.lf=function(){return this.i.lf()};
g.k.In=function(){return this.i.In()};
g.k.togglePictureInPicture=function(){this.i.togglePictureInPicture()};
g.k.ol=function(){return this.i.ol()};
g.k.Vn=function(){return this.i.Vn()};
g.k.setSize=function(a){this.i.setSize(a)};
g.k.getVolume=function(){return this.i.getVolume()};
g.k.setVolume=function(a){this.i.setVolume(a)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.fq=ba(16);g.k.ks=ba(18);g.k.ls=ba(20);g.k.oq=ba(22);g.k.Dq=function(){return this.i.Dq()};
g.k.Ok=function(a){this.i.Ok(a)};
g.k.Xq=function(a){return this.i.Xq(a)};
g.k.Ey=function(){return this.i.Ey()};
g.k.stopVideo=function(){this.i.stopVideo()};
g.k.Jx=function(a){this.i.Jx(a)};g.u(bS,g.E);g.k=bS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Gm=function(){var a=this.i.getVideoData(),b=this.l.getVideoData();if(a.u){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.q(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.Wc()&&(d=!0),h.info.video&&h.index.Wc()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.aa();else if(this.i.cd()){h=Hra(this.policy,this.i,this.l,this.Eh);f=Ira(this);c=f.LK;e=f.ZE;d=f.cD;f=f.YE;if(!this.J){var l=1E3*this.l.ak(),m=this.i.ak();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();var n=
this.l.C;n.qoe&&(n=n.qoe,n.C={hQ:Number(n.Ia("glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),aF:l,ZP:m,isAd:a});this.J=!0}h?this.ge("cannot_apply"+h+";transitionTimeMs."+this.Eh):2===this.status.status?Pra(this):(a=this.i.mediaSource)?RA(a)?!PA(a)&&g.bq()?this.ge("mse_closed"):b.i&&ZA(b.i)&&a.l&&!a.l.Jt()?this.ge("encr_upgrade"):(b=this.i.cd(),b.cj()?this.ge("elem_ended"):0>e?this.ge("next_player_future"):(this.I=d,this.u=VA(a,c,d,!0),this.B=VA(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce,
this.i.Ia("gaplessPrep","cpn."+a),fS(this.i,this.u),dS(this.i,Jra(b,c,d,!this.i.getVideoData().isAd())),eS(this,2),Pra(this))):this.aa():this.aa()}else this.ge("no-elem")}else this.aa()};
g.k.Xn=function(a){var b=Ora(this).OG,c=a===b;b=c?this.u.i:this.u.l;c=c?this.B.i:this.B.l;if(b.isActive&&!c.isActive){var d=this.I;pz(a.He(),d-.01)&&(eS(this,4),b.isActive=!1,b.Bs=b.Bs||b.isActive,this.l.Ia("sbh","1"),c.isActive=!0,c.Bs=c.Bs||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&eS(this,5)}};
g.k.AF=function(){4<=this.status.status&&6>this.status.status&&this.ge("player-reload-after-handoff")};
g.k.ge=function(a){if(!this.na()&&!this.isFinished()){this.aa();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.l){var c=this.l.getVideoData().clientPlaybackNonce;this.i.Ia("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.za=!1;b&&yV(a);a.l&&(b=a.l,b.policy.la=!1,b.mediaSource&&NT(b))}this.C.reject(void 0);this.dispose()}};
g.k.da=function(){Nra(this);this.i.unsubscribe("newelementrequired",this.AF,this);if(this.u){var a=this.u.l;this.u.i.Pc.unsubscribe("updateend",this.Xn,this);a.Pc.unsubscribe("updateend",this.Xn,this)}g.E.prototype.da.call(this)};
g.k.Wb=function(a){g.iJ(a,128)&&this.ge("player-error-event")};
g.k.aa=function(){};g.u(hS,g.E);hS.prototype.clearQueue=function(){this.aa();this.B&&this.B.reject("Queue cleared");iS(this)};
hS.prototype.No=function(){return!this.l};
hS.prototype.da=function(){iS(this);g.E.prototype.da.call(this)};
hS.prototype.aa=function(){};g.u(lS,g.R);g.k=lS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Tra()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.zh=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.pe())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.pe())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.pe())};
g.k.vp=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.pe())};
g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.pe())};
g.k.lf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.me=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return Tra()};
g.k.Mo=function(){return this.pictureInPicture};
g.k.Lo=function(){return this.l};
g.k.pe=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.lf(),this.isFullscreen(),this.me(),this.isInline(),this.Mo(),this.Lo());a!==this.C&&this.V("visibilitystatechange");this.C=a};
g.k.da=function(){Wra(this.B);g.R.prototype.da.call(this)};g.u(pS,g.E);g.k=pS.prototype;g.k.zd=function(a){if(0!==a.start||Infinity!==a.end){var b=this.C.get(a),c=null==b;this.u?(this.u.kr?this.i.Ia("sdai","a_pair_of_same_transition_occurs_enter"):(a={Yd:a,isAd:!c,kr:!0,xk:this.i.getCurrentTime(),adCpn:b},bsa(this,a,this.u)),this.u=void 0):this.u={Yd:a,isAd:!c,kr:!0,xk:this.i.getCurrentTime(),adCpn:b}}};
g.k.mf=function(a){var b=this.C.get(a),c=null==b;this.u?(this.u.kr?(a={Yd:a,isAd:!c,kr:!1,xk:this.i.getCurrentTime(),adCpn:b},bsa(this,this.u,a)):this.i.Ia("sdai","a_pair_of_same_transition_occurs_exit"),this.u=void 0):this.u={Yd:a,isAd:!c,kr:!1,xk:this.i.getCurrentTime(),adCpn:b};g.U(this.B.experiments,"web_player_halftime_dai")&&(a=this.l.find(function(d){return d.cpn===b}),this.isLiveNow&&a&&this.i.getCurrentTime()<DS(this.i)&&mS(this,Infinity))};
g.k.isAdPlaying=function(a){return!!tS(this,1E3*a)};
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)mS(this,a);else{b=this.api.hc();var d=b===this.W?this.Y:null;uS(this,!1);this.ga=a;null!=c&&this.ia.start(c);b&&(this.Y=d||b.getPlayerState(),SV(b),this.W=b)}};
g.k.da=function(){uS(this,!1);wS(this);g.E.prototype.da.call(this)};
g.k.aa=function(){};
g.k.Xx=function(a,b,c){if(gsa(this,b))return null;a=dsa(this,a,b);var d=Number(c.split(";")[0]);if(a&&a.playerResponse&&a.playerResponse.streamingData){var e=a.playerResponse.streamingData.adaptiveFormats;if(e){var f=e.find(function(l){return l.itag===d});
if(f&&f.url){e=this.i.getVideoData();var h=e.i.i[c].index.jy(b-1);c=f.url;h&&h.i&&(c=c.concat("&daistate="+h.i));a.iA&&b>=a.iA&&(c=c.concat("&skipsq="+a.iA));(e=e.clientPlaybackNonce)&&(c=c.concat("&cpn="+e));a.Dm&&(e=hsa(this,a.Dm),0<e.length&&(c=c.concat("&acpns="+e.join(","))));g.U(this.B.experiments,"html5_high_res_logging")&&this.i.Ia("sdai","ast."+a.Zb.toFixed(3)+".alen."+a.durationMs.toFixed(3)+".acpn."+a.cpn);this.la.set(b,a);return c}}}fsa(this,b);return null};
g.k.skipAd=function(a,b){var c=dsa(this,a,b);if(c){c=c.Dm;this.i.Ia("sdai","skip_adbreakid_"+c);for(var d=g.q(this.l),e=d.next();!e.done;e=d.next())e=e.value,e.Dm===c&&(e.iA=b)}};
g.k.wz=function(a,b,c){a*=1E3;b=g.q(b.entries());for(var d=b.next();!d.done;d=b.next()){d=g.q(d.value);var e=d.next().value;d=d.next().value;e=1E3*c[e];if(d===this.i.getVideoData().clientPlaybackNonce)a+=e;else{for(var f=void 0,h=g.q(this.C),l=h.next();!l.done;l=h.next()){l=g.q(l.value);var m=l.next().value;l.next().value===d&&(f=m)}f&&f.start<=a&&f.end>=a+e||(h=!1,f?a<f.start?f.start=a:f.end<a+e&&(f.end=a+e):(f=oS(a,a+e),this.C.set(f,d),h=!0),a=f.end,esa(this,f.start,f.end),h&&this.i.addCueRange(f))}}};
g.k.fd=function(a){this.i.Ia("timelineerror",a)};
g.k.py=function(a){var b;ai(this.ca,function(c){return c.identifier===a.identifier})?(this.i.Ia("sdai","timedoutcp.1"),this.I.start(0)):this.I.isActive()?this.i.Ia("sdai","racingcp_"+(null===(b=this.L)||void 0===b?void 0:b.identifier)+"_"+a.identifier):(g.U(this.B.experiments,"html5_high_res_logging")&&this.i.Ia("sdai","adf.1"),this.J=!1,this.I.start(),this.L=a,this.la.clear(),this.ea=[])};
g.k.un=function(a){var b;(null===(b=this.L)||void 0===b?void 0:b.identifier)===a&&this.I.isActive()&&(this.J=!1,this.I.stop(),nS(this,!1))};
var $ra=0;g.u(xS,g.E);g.k=xS.prototype;g.k.zd=function(a){if(this.l===this.api.hc()){var b=this.I.get(a);if(b){var c=b.target;this.aa();osa(this,c,b.Eh,a)}else this.fd("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.dl.Yd===a})){var d=b.dl;
this.aa();c=d.target;d=d.Eh;c?osa(this,c,d,a):nsa(this,b.Xc,d,a)}};
g.k.zO=function(){var a=this.L;AS(this);if(a){zS(this,a)||this.fd("e.unexpectedPresentingPlayer");var b=this.api.hc();a=a.dl;this.aa();b.addCueRange(a.Yd)}};
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)isa(this,a);else{b=this.api.hc();var d=b===this.B?this.J:null;CS(this,!1);this.X=a;null!=c&&this.W.start(c);b&&(this.J=d||b.getPlayerState(),SV(b),this.B=b)}};
g.k.ug=function(a){g.iJ(a,128)&&rsa(this)};
g.k.isManifestless=function(){return UH(this.l.getVideoData())};
g.k.da=function(){CS(this,!1);GS(this);g.E.prototype.da.call(this)};
g.k.aa=function(){};
g.k.fd=function(a){this.l.Ia("timelineerror",a)};
var jsa=0;var tsa="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(JS,g.E);JS.prototype.get=function(a){HS(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
JS.prototype.set=function(a,b,c){this.remove(a,!0);HS(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.Q)()+c);for(this.data.push(a);this.data.length>this.u;)(c=this.data.shift())&&KS(this,c,!0);IS(this)};
JS.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(KS(this,c,b),g.lb(this.data,function(d){return d.key===a}),IS(this))};
JS.prototype.da=function(){var a=this;g.E.prototype.da.call(this);this.data.forEach(function(b){KS(a,b,!0)});
this.data=[]};LS.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
LS.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
LS.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.l=this.i=this.data.length-1};g.u(MS,g.E);MS.prototype.start=function(){this.l.start()};
MS.prototype.stop=function(){this.l.stop()};
MS.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
MS.prototype.u=function(){for(var a=g.q(this.B),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new PS(jEa.has(b)));this.i.get(b).update(c())}this.l.start()};
var jEa=new Set(["networkactivity"]);PS.prototype.update=function(a){this.l?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
PS.prototype.clear=function(){this.buffer.clear();this.i=0};g.u(QS,g.E);QS.prototype.da=function(){g.E.prototype.da.call(this);this.i=null;this.l&&this.l.disconnect()};g.kEa=Za(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var v0;v0={};g.RS=(v0.STOP_EVENT_PROPAGATION="html5-stop-propagation",v0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",v0.IV_DRAWER_OPEN="ytp-iv-drawer-open",v0.MAIN_VIDEO="html5-main-video",v0.VIDEO_CONTAINER="html5-video-container",v0.HOUSE_BRAND="house-brand",v0);g.u(SS,g.X);g.k=SS.prototype;g.k.Ok=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.ln(this.element,b)};
g.k.eg=function(){this.qb&&(this.qb.removeEventListener("focus",this.qz),g.Me(this.qb),this.qb=null)};
g.k.Bx=function(){this.na();var a=this.app.T();a.Mh||this.Ok("tag-pool-enabled");a.I&&this.Ok(g.RS.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Ok("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Ja&&(this.tx=g.Bo("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)};
g.k.Ur=function(a){UF(this.app.T());this.Zt=!a;TS(this)};
g.k.resize=function(){if(this.qb){var a=this.Vf();if(!a.isEmpty()){var b=this.lp;b=!g.le(a,new g.ke(b.width,b.height));var c=Bsa(this);b&&(this.lp.width=a.width,this.lp.height=a.height);a=this.app.T();(c||b||a.Ja)&&this.app.Ea.V("resize",this.getPlayerSize())}}};
g.k.Go=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.qb){var b=this.app.T();jq&&(this.qb.setAttribute("x-webkit-airplay","allow"),a.title?this.qb.setAttribute("title",a.title):this.qb.removeAttribute("title"));uia(a)?this.qb.setAttribute("disableremoteplayback",""):this.qb.removeAttribute("disableremoteplayback");this.qb.setAttribute("controlslist","nodownload");b.Ij&&a.videoId&&(this.qb.poster=a.te("default.jpg"))}b=g.aI(a,"yt:bgcolor");this.rq.style.backgroundColor=b?b:"";this.az=IF(g.aI(a,"yt:stretch"));this.bz=
IF(g.aI(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.ny=IF(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.KC=a;this.resize()};
g.k.zh=function(){};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.Ea.isFullscreen();if(b&&$p())return new g.ke(window.outerWidth,window.outerHeight);if(b||a.tj){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.ur&&this.ur.media===a||(this.ur=window.matchMedia(a));var c=this.ur&&this.ur.matches}if(c)return new g.ke(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.Iq.width)&&!isNaN(this.Iq.height))return this.Iq.clone();if(this.Fv&&this.KA&&!this.app.isWidescreen())for(a=
0;a<this.Fv.length;a++)if(b=this.Fv[a],b.query.matches)return new g.ke(b.size.width,b.size.height)}return new g.ke(this.element.clientWidth,this.element.clientHeight)};
g.k.Vf=function(){return this.getPlayerSize()};
g.k.getVideoAspectRatio=function(){return isNaN(this.az)?zsa(this):this.az};
g.k.getVideoContentRect=function(a){var b=this.Vf();a=Asa(this,b,this.getVideoAspectRatio(),a);return new g.cg((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Fr=function(){TS(this)};
g.k.setUseFastSizingOnWatch=function(a){this.KA!==a&&(this.KA=a,this.resize())};
g.k.setInternalSize=function(a){g.le(this.Iq,a)||(this.Iq=a,this.resize())};
g.k.da=function(){this.tx&&g.Co(this.tx);this.eg();g.X.prototype.da.call(this)};g.k=Csa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.iu();c&&a.visualElement&&g.zu(c,a.visualElement,b)};
g.k.Hb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=nfa(c);a.visualElement=c;var f=g.iu(),h=g.gu();f&&h&&g.wu(f,h,c);g.Gi(b,function(){Dsa(e,a)});
d&&this.l.add(a)};
g.k.Jg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Gi(b,function(){Dsa(d,a)});
c&&this.l.add(a)};
g.k.Tl=function(a,b){this.elements.has(a);b&&(a.visualElement=g.cu(b))};
g.k.fr=function(a){return this.elements.has(a)};g.u(YS,g.X);
YS.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;var d=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.l)this.l.fillStyle=this.C[c],this.l.fillRect(a*this.i,0,this.i,this.heightPx),this.l.fillStyle=this.C[c+1],this.l.fillRect(a*this.i,this.heightPx*(1-d),this.i,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.C[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.C[c]}};g.u($S,g.X);g.k=$S.prototype;g.k.show=function(){g.X.prototype.show.call(this);this.wa()};
g.k.hide=function(){g.X.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.wa()};
g.k.wa=function(){var a=(0,g.Q)(),b=this.C.getStatsForNerds();ZS(this.i,b.bandwidth_samples);ZS(this.B,b.network_activity_samples);ZS(this.u,b.live_latency_samples);ZS(this.l,b.buffer_health_samples);this.update(b);a=25<(0,g.Q)()-a?5E3:500;this.delay.start(a)};Jsa.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};hT.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
hT.prototype.getPlaybackRate=function(){return this.playbackRate};lT.prototype.Na=function(){this.tick("gv")};
lT.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Q)()};Ssa.prototype.aa=function(){};tT.prototype.send=function(){g.Tp(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.Q)()};
tT.prototype.onComplete=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.Q)()-this.i)/1E3).toFixed(3),shost:g.Cd(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.JA(c)):this.u(new g.IA("pathprobe.net",!1,c))};g.k=ita.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.l.get("type"):""};
g.k.abort=function(){};
g.k.wl=function(){return!0};
g.k.Lq=function(){return this.range.length};
g.k.Vm=function(){return this.loaded};
g.k.Xt=function(){return!!this.i.totalLength};
g.k.rg=function(){return!!this.i.totalLength};
g.k.Bh=function(){var a=this.i;this.i=new Fw;return a};
g.k.cg=function(){return this.i};
g.k.lA=function(){return!0};
g.k.Dz=function(){return!!this.error};
g.k.Ie=function(){return this.error};var jta=0;g.k=uT.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.B&&(c.signal=this.B.signal);a=new Request(a,c);fetch(a).then(function(d){lta(b,d)},function(d){b.onError(d)}).then(void 0,g.ro)};
g.k.onDone=function(){if(!this.na()){this.aa();this.L=!0;if(mta(this)&&!this.i.totalLength&&!this.C&&this.l){dA(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.l+=a.length}this.Y()}};
g.k.onError=function(a){this.aa();this.errorMessage=String(a);this.C=!0;this.onDone()};
g.k.getResponseHeader=function(a){return this.J?this.J.get(a):null};
g.k.wl=function(){return!!this.J};
g.k.Vm=function(){return this.l};
g.k.Lq=function(){return+this.getResponseHeader("content-length")};
g.k.Xt=function(){return 200<=this.status&&300>this.status&&!!this.l};
g.k.aa=function(){};
g.k.rg=function(){if(this.L)return!!this.i.totalLength;if(!this.wl())return!1;var a=this.policy.u;if(a&&this.W+a>Date.now())return!1;a=this.Lq()||0;a=Math.max(16384,this.policy.i*a);this.X||(a=Math.max(a,16384));this.policy.yf&&dA(this)&&(a=1);return this.i.totalLength>=a};
g.k.Bh=function(){this.rg();this.W=Date.now();this.X=!0;var a=this.i;this.i=new Fw;return a};
g.k.cg=function(){this.rg();return this.i};
g.k.na=function(){return this.aborted};
g.k.abort=function(){this.aa();this.u&&this.u.cancel()["catch"](function(){});
this.B&&this.B.abort();this.aborted=!0};
g.k.lA=function(){return!0};
g.k.Dz=function(){return this.C};
g.k.Ie=function(){return this.errorMessage};g.k=nta.prototype;g.k.onDone=function(){if(!this.na){this.status=this.xhr.status;try{this.response=this.xhr.response,this.l=this.response.byteLength}catch(a){}this.i=!0;this.u()}};
g.k.oe=function(a){this.na||(this.status=this.xhr.status,this.B(a.timeStamp,a.loaded))};
g.k.wl=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return to(Error("Could not read XHR header "+a)),""}};
g.k.Lq=function(){return+this.getResponseHeader("content-length")};
g.k.Vm=function(){return this.l};
g.k.Xt=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.rg=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Bh=function(){this.rg();var a=this.response;this.response=void 0;return new Fw([new Uint8Array(a)])};
g.k.cg=function(){this.rg();return new Fw([new Uint8Array(this.response)])};
g.k.abort=function(){this.na=!0;this.xhr.abort()};
g.k.lA=function(){return!1};
g.k.Dz=function(){return!1};
g.k.Ie=function(){return""};g.u(xT,ry);g.k=xT.prototype;
g.k.Hs=function(){var a=Ksa(this.timing);a.shost=$x(this.l.Ig);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=""+this.info.i[0].i.info.Vb();a.ml=""+ +this.info.i[0].i.Je();a.sq=""+this.info.i[0].va;if(this.l){var b=this.l.Ig;Zx(b);var c=decodeURIComponent(b.get("mn")||"").split(",");a.ifi=""+ +("/videoplayback"===b.path&&1<c.length&&!!c[1])}410!==this.u&&500!==this.u&&503!==this.u||(a.fmt_unav="true");this.xhr&&this.xhr.Ie()&&(a.msg=this.xhr.Ie());this.gs&&(a.smb="1");
this.i&&(b=this.i.slices,b.length&&Rw(b[0],a));return a};
g.k.AD=function(){var a=this.timing;return(a.B-a.i)/1E3};
g.k.Ie=function(){return this.xhr.Ie()||""};
g.k.HI=function(a,b,c){if(!this.na()&&this.xhr){this.u=this.xhr.status;var d=this.timing;a=a>d.i&&4E12>a?a:g.Sa();eT(d,a,b);50>a-d.B&&fT(d)&&3!==aT(d)||Psa(d,a,b,c);b=this.timing;b.l>b.La&&bT(b,b.l)&&3>this.state?(this.aa(),ty(this,3)):this.fj()&&this.kp()&&ty(this,Math.max(2,this.state))}};
g.k.EP=function(){if(!this.na()&&this.xhr){if(!this.X&&this.xhr.wl()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.X=(g.Sa()-a)/1E3}this.xhr.wl()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Io&&!tta()&&IDa(!0);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.I=a||this.I;this.J=b||this.J}};
g.k.GI=function(){var a=this.xhr;!this.na()&&a&&(this.W.stop(),this.u=a.status,a=yta(this,a),6===a?wT(this):ty(this,a))};
g.k.canRetry=function(){this.na();var a=vT(this);return 100>a.l&&a.i<this.policy.Bk};
g.k.Hr=function(a){this.isComplete()&&(this.policy.Tc?yT(this):this.timing.deactivate());ry.prototype.Hr.call(this,a)};
g.k.dQ=function(){this.isComplete();if(!this.na()){var a=g.Sa(),b=!1;fT(this.timing)?(a=this.timing.W,Msa(this.timing),this.timing.W-a>=.8*this.ca?(this.B++,this.aa(),b=5<=this.B):this.B=0):(b=this.timing,b.sg&&gT(b,g.Sa()),a-=b.X,this.policy.Ze&&0<a&&(this.B+=1),b=!this.policy.ga,b=ky(vT(this),b)*this.policy.dm,(b=a>1E3*b)&&this.aa());this.B&&this.callback&&this.callback(this);b?zta(this,!1):this.W.start()}};
g.k.dispose=function(){ry.prototype.dispose.call(this);this.W.dispose();this.policy.Tc||yT(this)};
g.k.fj=function(){return this.xhr.lA()};
g.k.kB=function(){if(!this.bw().length)return[];this.L=!0;return iz(this.i)};
g.k.kp=function(){return 1>this.state?!1:this.i&&this.i.slices.length||this.xhr.rg()?!0:!1};
g.k.bw=function(){vta(this,!1);return this.i?this.i.slices:[]};
g.k.Vm=function(){return this.xhr.Vm()};
g.k.Wx=function(){return this.X};
g.k.aa=function(){};
g.k.jB=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.FD=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};
var pta=0,wta=-1;g.u(zT,g.R);g.k=zT.prototype;
g.k.initialize=function(a,b,c){this.aa();a=a||0;this.V("videoformatchange",Zsa(this.l));if(this.i.isManifestless){if(this.policy.Lh){b=fA(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}Gta(this)}this.C&&dC(this.C,this.videoTrack.i);this.policy.ma&&cA()&&this.Uc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;Eta(this)?(Fta(this,this.videoTrack,this.videoTrack.i),Fta(this,
this.audioTrack,this.audioTrack.i)):c?(this.policy.Fc?(this.Wa=c,ET(this,c)):ET(this,!1),g.en(this.Ja)):(a=0===this.currentTime,AT(this,this.videoTrack,this.videoTrack.i,a),AT(this,this.audioTrack,this.audioTrack.i,a),g.xm(this.seek(this.currentTime),function(){}),this.timing.Na());
(this.i.Od||this.i.Yf)&&this.Uc("minMaxSq","minSq."+this.i.Od+";maxSq."+this.i.Yf+";minDvrTime."+this.i.I+";maxDvrTime."+this.i.L)};
g.k.resume=function(){if(this.isSuspended||this.ca)this.aa(),this.za=this.ca=this.isSuspended=!1,this.Gg()};
g.k.setAudioTrack=function(a){if(!this.na()){var b=this.l;b.u=b.C.i[a.id];b.W=b.u;a=new GB(b.W,b.i,"m");this.aa();this.V("audioformatchange",a);this.V("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.k.Gg=function(){IT(this);if(this.mediaSource&&PA(this.mediaSource)&&!this.mediaSource.Wf()){var a=wz(this.videoTrack);a=this.policy.Gj&&a&&a.u;this.i.isManifestless&&this.i.J&&qB(this.i)?(this.J=qB(this.i),QA(this.mediaSource,this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,QA(this.mediaSource,this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),QA(this.mediaSource,this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0<a&&(QA(this.mediaSource,a),this.J=a))}if(!this.na())if(oB(this.i)&&this.i.isFailed())HT(this,!0,"manifest.net.retryexhausted",{rc:this.i.X.toString()});else if(!this.i.u||!Uz(this.videoTrack)&&!Uz(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.Ha?a=!1:(FT(this),this.V("seekplayerrequired",Infinity),a=!0),!a&&(IT(this),zz(this.videoTrack),!this.na()&&(zz(this.audioTrack),!this.na()))){this.i.isManifestless&&(Vz(this.videoTrack),
Vz(this.audioTrack),FB(this.B),(a=this.videoTrack.cg())&&a.l&&(a=a.l.C&&!this.policy.Uj,this.Uc(a===this.policy.B.yf?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.B.yf?"1":"0")+";dfs."+(this.policy.Uj?"1":"0"),!0)));if(this.mediaSource)NT(this);else if(this.policy.i){(a=this.videoTrack.cg())&&this.videoTrack.Bh(a);var b=this.audioTrack.cg();b&&this.audioTrack.Bh(b);Fz(this.videoTrack)&&Fz(this.audioTrack)?this.aa():(a||b)&&g.en(this.W)}DT(this);AT(this,this.videoTrack,this.videoTrack.i,
!1);AT(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.C;b=this.videoTrack.i.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";HT(this,!0,c,{metadata:"1",video:this.videoTrack.i.C||"",audio:this.audioTrack.i.C||""})}else{a=this.videoTrack;if((!this.mediaSource||PA(this.mediaSource)&&!this.policy.La)&&!this.B.u&&this.l.J){b=this.currentTime;var d=this.I;c=iT(d,a.i.info.l,this.audioTrack.i.info.l,0);d=VB(d.schedule)+c/YB(d.schedule);
b+=Math.max(d,d+10-c/a.i.info.l);this.aa();a:{if(a.u.length){if(a.u[0].info.i[0].startTime<=b)break a;Kz(a)}c=a.B;for(d=c.l.length-1;0<=d;d--)c.l[d].info.startTime>b&&c.l.pop();a.u.length?a.l=g.ab(g.ab(a.u).info.i):a.B.l.length?a.l=Ny(a.B).info:a.l=wz(a);a.l&&b<a.l.startTime&&(a.ga=0,a.i.Je()?a.l=a.i.pl(b,!0).i[0]:a.l=null)}}Kta(this,this.videoTrack,this.audioTrack);Kta(this,this.audioTrack,this.videoTrack);this.policy.lm&&this.la&&!this.isSuspended&&bC(this.schedule)&&(Wta(this,this.la),this.la=
"");this.C&&(a=this.C,a.C?(b=a.L+a.i.eh,a.B||(b=Math.min(b,a.I+a.i.wc)),a=Math.max(0,1E3*b-g.Sa())):a=NaN,isNaN(a)||g.en(this.ib,a));g.en(this.Za)}}};
g.k.II=function(a){if(this.policy.Zg&&this.mediaSource){var b=a===this.mediaSource.i,c=a.Kt();c&&(!c.rb||c.yd)&&this.Uc("sbu",a.nb({a:""+ +b}))}this.Gg()};
g.k.QM=function(a){if(this.mediaSource){a=wz(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=Cw(a));HT(this,!0,"fmt.unplayable",b)}};
g.k.TN=function(a){HT(this,!0,"fmt.unparseable",a)};
g.k.tM=function(a){this.V("needkeyinfo",a)};
g.k.SN=function(a){HT(this,!1,"qoe.avsync",a)};
g.k.UN=function(a){this.V("localmediachange",new MG(this.policy.i,a,{isHeadless:this.policy.tj}))};
g.k.seek=function(a){if(this.na())return rm();if(this.videoTrack.L||this.audioTrack.L)return this.policy.sm?qm():rm("seeking to head");IT(this);this.Ha=(0,g.Q)();DT(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.l&&(this.mediaSource.i.isLocked()||this.mediaSource.l.isLocked())&&this.V("reattachrequired");this.currentTime=this.B.seek(a);zB(this.u,a);g.en(this.W);return qm(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.da=function(){this.u.unsubscribe("ctmp",this.Uc,this);GT(this);Kz(this.audioTrack);Kz(this.videoTrack);g.R.prototype.da.call(this)};
g.k.aa=function(){};
g.k.nb=function(){var a=wz(this.audioTrack),b=wz(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.u,lmf:sT(this.l),lbw:XB(this.schedule).toFixed(3),lhd:VB(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.Uf()||0)).toFixed(3),laa:a?xw(a):"",lva:b?xw(b):"",lar:this.audioTrack.l?xw(this.audioTrack.l):"",lvr:this.videoTrack.l?xw(this.videoTrack.l):"",laq:""+Iz(this.audioTrack),lvq:""+Iz(this.videoTrack)};this.mediaSource&&!TA(this.mediaSource)&&this.mediaSource.i&&this.mediaSource.l&&
(a.lab=nz(this.mediaSource.i.He()),a.lvb=nz(this.mediaSource.l.He()));return a};
g.k.Uc=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
var Mta=2/24;PT.prototype.Xx=function(a,b,c){return this.i.Xx(a,b,c)};
PT.prototype.py=function(a){this.i.py(a)};
PT.prototype.skipAd=function(a,b){this.i.skipAd(a,b)};
PT.prototype.wz=function(a,b,c){this.i.wz(a,b,c)};g.u(QT,g.R);g.u(RT,QT);RT.prototype.I=function(a,b){if(a&&b){var c=1*Number(Sd(a,"cpi"))+1;isNaN(c)||0>=c||c<this.u?(this.B.stop(),this.l.stop(),this.u=-1,this.i={}):(c>this.u&&(this.u=c,g.Pb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.en(this.l))}};
RT.prototype.C=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.V;for(var d=this.u,e=this.i[c].match(Ad),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="+qd(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 Gy(d,"fairplay",!0))}this.i={}};var w0={},iua=(w0.DRM_TRACK_TYPE_AUDIO="AUDIO",w0.DRM_TRACK_TYPE_SD="SD",w0.DRM_TRACK_TYPE_HD="HD",w0.DRM_TRACK_TYPE_UHD1="UHD1",w0);g.u(ST,g.E);ST.prototype.aa=function(){};g.u(UT,g.R);g.k=UT.prototype;g.k.error=function(a,b,c,d){this.na()||(this.V("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.V("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.ga&&this.L?!1:!a&&this.requestNumber===b.requestNumber};
g.k.da=function(){g.R.prototype.da.call(this)};
g.k.nb=function(){var a={requestedKeyIds:this.ia,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.ff=function(){var a=this.I.join();if(VT(this)){var b=[],c;for(c in this.i)"usable"!==this.i[c].status&&b.push(this.i[c].type);a+="/UKS."+b}return a+="/"+this.cryptoPeriodIndex};
g.k.aa=function(){};
var x0={},yua=(x0.widevine="DRM_SYSTEM_WIDEVINE",x0.fairplay="DRM_SYSTEM_FAIRPLAY",x0.playready="DRM_SYSTEM_PLAYREADY",x0);g.u(WT,g.E);g.k=WT.prototype;g.k.JI=function(a){if(this.C){var b=a.messageType||"license-request";this.C(new Uint8Array(a.message),b)}};
g.k.KI=function(){this.J&&this.J(this.i.keyStatuses)};
g.k.JF=function(a){this.C&&this.C(a.message,"license-request")};
g.k.IF=function(a){if(this.u){if(this.l){var b=this.l.error.code;a=this.l.error.systemCode}else b=a.errorCode,a=a.systemCode;this.u("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.HF=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,so(function(c){Gua(b,"t.update",c)}));
this.l?this.l.update(a):this.element.addKey?this.element.addKey(this.L.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,a,this.initData,this.sessionId);return zt()};
g.k.da=function(){this.i&&this.i.close();this.element=null;g.E.prototype.da.call(this)};g.u(XT,g.E);g.k=XT.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.l.setServerCertificate?this.l.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.l.createSession();mF(this.i)&&(c=Iua(c,this.i.l));b&&b("genreq");c=d.generateRequest(a.contentType,c);var e=new WT(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},so(function(f){Gua(e,"t.generateRequest",f)}));
return e}if(iF(this.i))return Kua(this,c);if(lF(this.i))return Jua(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.B=new WT(this.element,this.i,c,null,null)};
g.k.NI=function(a){var b=$T(this,a);b&&b.JF(a)};
g.k.MI=function(a){var b=$T(this,a);b&&b.IF(a)};
g.k.LI=function(a){var b=$T(this,a);b&&b.HF(a)};
g.k.getMetrics=function(){if(this.l&&this.l.getMetrics)try{var a=this.l.getMetrics()}catch(b){}return a};
g.k.da=function(){g.E.prototype.da.call(this);delete this.element};g.u(aU,g.E);
aU.prototype.init=function(){return C(this,function b(){var c=this,d,e;return z(b,function(f){if(1==f.i)return g.mg(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.u.C,document.body.appendChild(c.i),c.B.N(c.i,"encrypted",c.I),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],v(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.l;c.u.keySystemAccess=
e;c.l=new XT(c.i,c.u);g.I(c,c.l);ZT(c.l);f.i=0})})};
aU.prototype.I=function(a){var b=this;if(!this.na()){var c=new Uint8Array(a.initData);a=new Gy(c,a.initDataType);var d=aua(c).replace("skd://","https://"),e={},f=this.l.createSession(a,function(){b.aa()});
f&&(g.I(this,f),this.C.push(f),lua(f,function(h){Eua(h,f.i,d,e,"fairplay")},function(){b.aa()},function(){},function(){}))}};
aU.prototype.aa=function(){};
aU.prototype.da=function(){this.C=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.E.prototype.da.call(this)};g.u(bU,QT);bU.prototype.C=function(a){var b=(0,g.Q)(),c;if(!(c=this.B)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.u.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.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.i.push({time:b+c,info:a});g.en(this.l,c)};cU.prototype.get=function(a){a=dU(this,a);return-1!==a?this.values[a]:null};
cU.prototype.remove=function(a){a=dU(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
cU.prototype.set=function(a,b){var c=dU(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.u(fU,g.R);g.k=fU.prototype;g.k.OI=function(a){eU(this,"onecpt");a.initData&&Oua(this,new Uint8Array(a.initData),a.initDataType)};
g.k.bO=function(a){eU(this,"onndky");Oua(this,a.initData,a.contentType)};
g.k.rC=function(a){this.B.push(a);hU(this)};
g.k.createSession=function(a){this.u.get(a.initData);this.ea=!0;var b=new UT(this.videoData,this.l,a,this.drmSessionId);this.u.set(a.initData,b);b.subscribe("ctmp",this.gF,this);b.subscribe("hdentitled",this.tF,this);b.subscribe("keystatuseschange",this.yB,this);b.subscribe("licenseerror",this.zB,this);b.subscribe("newlicense",this.CF,this);b.subscribe("newsession",this.EF,this);b.subscribe("sessionready",this.RF,this);b.subscribe("fairplay_next_need_key_info",this.rF,this);oua(b,this.C)};
g.k.CF=function(a){this.na()||(this.aa(),eU(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))};
g.k.EF=function(){this.na()||(this.aa(),eU(this,"newlcssn"),this.B.shift(),this.ea=!1,hU(this))};
g.k.RF=function(){if(iF(this.i)&&(this.aa(),eU(this,"onsnrdy"),this.Ca--,0===this.Ca)){var a=this.Y;a.element.msSetMediaKeys(a.u)}};
g.k.yB=function(a){this.na()||(!this.ma&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(Tua(this),this.ma=!0),this.aa(),eU(this,"onksch"),Sua(this,Aua(a,this.ga)),this.V("keystatuseschange",a))};
g.k.tF=function(){this.na()||this.ia||!kF(this.i)||(this.aa(),eU(this,"onhdet"),this.za=Lxa,this.V("hdproberequired"),this.V("qualitychange"))};
g.k.gF=function(a,b){this.na()||this.V("ctmp",a,b)};
g.k.rF=function(a,b){this.na()||this.V("fairplay_next_need_key_info",a,b)};
g.k.zB=function(a,b,c,d){this.na()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&Tua(this),this.V("licenseerror",a,b,c,d))};
g.k.da=function(){this.i.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.q(this.u.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.gF,this),b.unsubscribe("hdentitled",this.tF,this),b.unsubscribe("keystatuseschange",this.yB,this),b.unsubscribe("licenseerror",this.zB,this),b.unsubscribe("newlicense",this.CF,this),b.unsubscribe("newsession",this.EF,this),b.unsubscribe("sessionready",this.RF,this),b.unsubscribe("fairplay_next_need_key_info",
this.rF,this),b.dispose();a=this.u;a.keys=[];a.values=[];g.R.prototype.da.call(this)};
g.k.nb=function(){for(var a={systemInfo:this.i.nb(),sessions:[]},b=g.q(this.u.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.nb());return a};
g.k.ff=function(){return 0>=this.u.values.length?"no session":this.u.values[0].ff()+(this.I?"/KR":"")};
g.k.aa=function(){};g.u(jU,g.R);
jU.prototype.handleError=function(a,b){var c=this;Xua(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!mU(this,a.errorCode,a.details))&&!$ua(this,a,b))if(Yua(a)&&this.videoData.u&&this.videoData.u.l)kU(this,a.errorCode,a.details),nU(this,"highrepfallback","1",{hA:!0}),!this.videoData.Z("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&nU(this,"afmts",btoa(this.videoData.adaptiveFormats),{hA:!0}),Hia(this.videoData),
this.V("highrepfallback");else if(a.i){var d=this.l?this.l.l.l:null;if(Yua(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.V("playererror",a.errorCode,e,g.JA(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),kU(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.Q)(),(new tT(d,
"manifest",function(h){c.W=!0;nU(c,"pathprobe",h)},function(h){kU(c,h.errorCode,h.details)})).send())};
jU.prototype.da=function(){this.u=this.l=null;g.R.prototype.da.call(this)};
jU.prototype.aa=function(){};oU.prototype.setPlaybackRate=function(a){this.playbackRate=a};
oU.prototype.Z=function(a){return g.U(this.i.experiments,a)};g.u(rU,g.E);rU.prototype.Wb=function(a){rva(this);this.playerState=a.state;0<=this.l&&g.iJ(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
rU.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(lEa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
rU.prototype.send=function(){if(!(this.u||0>this.i)){rva(this);var a=g.jS(this.provider)-this.i,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.W(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.W(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.W(this.playerState,16)||g.W(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.W(this.playerState,1)&&
g.W(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.W(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.W(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.W(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=$H(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=sva(this.provider);var e=0>this.l?a:this.l-this.i;a=this.provider.i.Pa+36E5<(0,g.Q)();b={started:0<=this.l,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.YH(this.provider.videoData),isGapless:this.provider.videoData.za};!a&&this.provider.Z("html5_health_to_gel")&&g.Or("html5PlayerHealthEvent",b);this.provider.Z("html5_health_to_qoe")&&(b.muted=a,this.I(g.JA(b)));this.u=!0;this.dispose()}};
rU.prototype.da=function(){this.u||this.send();g.E.prototype.da.call(this)};
var lEa=/\bnet\b/;g.u(g.vU,g.E);g.k=g.vU.prototype;g.k.AL=function(){var a=g.jS(this.provider);wU(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.na()&&(a=0<=a?a:g.jS(this.provider),-1<["PL","B","S"].indexOf(this.Mc)&&(!g.Pb(this.i)||a>=this.u+30)&&(g.uU(this,a,"vps",[this.Mc]),this.u=a),!g.Pb(this.i)))if(7E3===this.sequenceNumber&&g.ht(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.i={};else{xU(this,a);var b=a,c=this.provider.l.Yq(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ha,h=e&&!this.Pa;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.uU(this,b,"df",[f]);this.Ha=d;this.Pa=e;!g.U(this.provider.i.experiments,"disable_webgl_reporting")&&0<this.I&&(g.uU(this,a,"glf",[this.I]),this.I=0);a={event:"streamingstats"};this.provider.videoData.l&&(a.fmt=this.provider.videoData.l.Vb(),(b=this.provider.videoData.J)&&b.Vb()!==a.fmt&&(a.afmt=b.Vb()));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.J&&(a.addocid=this.J);a.ei=this.provider.videoData.eventId;
a.el=jI(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=kI(this.provider.videoData);a.ns=this.provider.i.Y;a.fexp=this.provider.i.experiments.experimentIds.toString();a.cl=(361452257).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=$H(this.provider.videoData))&&(a.live=b);NH(this.provider.videoData)&&(a.drm=1);Gp()&&this.provider.videoData.Ca&&(a.ctt=this.provider.videoData.Ca,a.cttype=this.provider.videoData.Yg,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.Yb(a,this.provider.i.deviceParams);a=g.Od("//"+this.provider.i.Qh+"/api/stats/qoe",a);b=c="";d=g.q(Object.keys(this.i));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.i[e]?g.ht(new g.Tr("Stats report key has invalid value",e)):(e="&"+e+"="+this.i[e].join(","),100<e.length?b+=e:c+=e);a+=c;c=b.replace(/ /g,"%20");e=g.nI(this.provider.videoData);d=g.U(this.provider.i.experiments,"qoe_with_networkless");
b=g.U(this.provider.i.experiments,"qoe_send_then_write");f=this.provider.Z("web_player_vss_pageid_header")?this.provider.i.pageId:void 0;(e=sU(a,f,this.provider.i.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=c,tU(a,e,{token:this.provider.videoData.Ca,rA:this.provider.videoData.Yg,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,d,b)):d?(c={method:"POST",postBody:c},b?Zs(a,c):Ys(a,c)):qq(a,void 0,c);this.i={}}};
g.k.MG=function(){if(this.provider.videoData.I){var a=this.provider.videoData.I;zU(this,"drm-"+a.flavor);zU(this,"eme-"+(a.keySystemAccess?"final":iF(a)?"ms":mF(a)?"ytfp":lF(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.jS(this.provider);xva(this,c,a,b);xU(this,c);yU(this)};
g.k.Wb=function(a){var b=a.state,c=g.jS(this.provider);a=this.getPlayerState(a.state);if(a!==this.Mc){if(!(c<this.u)){if("PL"===this.Mc)this.playTimeSecs+=c-this.u;else if("B"===this.Mc&&this.Y){this.Y=!1;var d=g.S(this.provider.i.experiments,"html5_disable_last_state_change")?this.u:this.ma;this.rebufferTimeSecs+=c-d;!this.ga&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.l.Br(),this.i.qoealert=["1"],this.ga=!0)}"B"!==a||"PL"!==this.Mc&&"PB"!==this.Mc||(this.Y=!0);this.u=c}"PL"===
this.Mc&&("B"===a||"S"===a)||this.provider.videoData.ib?xU(this,c):wU(this,c);"PL"===a&&g.en(this.ib);g.uU(this,c,"vps",[a]);this.Mc=a;this.u=this.ma=c;this.W=!0}a=b.getData();g.W(b,128)&&a&&xva(this,c,a.errorCode,a.tG);(g.W(b,2)||g.W(b,128))&&this.reportStats(c);b.Kb()&&!this.B&&(0<=this.l&&(this.i.user_intent=[this.l.toString()]),this.B=!0);yU(this)};
g.k.fi=ba(13);g.k.getPlayerState=function(a){if(g.W(a,128))return"ER";if(g.W(a,512))return"SU";if(g.W(a,16)||g.W(a,32))return"S";var b=mEa[kK(a)];g.fG(this.provider.i)&&"B"===b&&3===this.provider.l.getVisibilityState()&&(b="SU");"B"===b&&g.W(a,4)&&(b="PB");return b};
g.k.da=function(){g.E.prototype.da.call(this);window.clearInterval(this.za)};
g.k.Ia=function(a,b,c){var d=this.i.ctmp||[],e=-1!==this.Db.indexOf(a);e||this.Db.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.jS(this.provider);b="t."+f.toFixed()+";"+b}nEa(a,b);d.push(a+":"+b);this.i.ctmp=d;yU(this);return f}};
var nEa=g.Ia,y0={},mEa=(y0[5]="N",y0[-1]="N",y0[3]="B",y0[0]="EN",y0[2]="PA",y0[1]="PL",y0);Ava.prototype.update=function(){if(this.J){var a=this.provider.l.getCurrentTime()||0,b=g.jS(this.provider);if(a!==this.i||Fva(this,a,b)){var c;if(!(c=a<this.i||a-this.i>b-this.lastUpdateTime+2||Fva(this,a,b))){var d=this.provider.se();c=d.volume;var e=c!==this.W;d=d.muted;d!==this.L?(this.L=d,c=!0):(!e||0<=this.B||(this.W=c,this.B=b),c=b-this.B,0<=this.B&&2<c?(this.B=-1,c=!0):c=!1)}c&&(CU(this),this.l=a);this.lastUpdateTime=b;this.i=a}}};DU.prototype.send=function(a){if(!this.ga){var b=FU(this);b=g.Od(this.uri,b);if(this.Wa)this.Ha&&(a=EU(this)||{},a.method="POST",a.postParams={atr:this.Ha},this.W?this.X?Zs(b,a):Ys(b,a):g.Tp(b,a));else{var c=EU(this,a);tU(b,c,{token:this.J,rA:this.La,mdxEnvironment:this.mdxEnvironment},a,this.W,this.X)}this.ga=!0}};
DU.prototype.l=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var z0={},Hva=(z0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,z0.LIVING_ROOM_APP_MODE_MAIN=1,z0.LIVING_ROOM_APP_MODE_KIDS=2,z0.LIVING_ROOM_APP_MODE_MUSIC=3,z0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,z0.LIVING_ROOM_APP_MODE_GAMING=5,z0);g.u(HU,g.E);g.k=HU.prototype;g.k.oe=function(){this.i.update();if(this.provider.videoData.Wc()&&this.provider.videoData.Db&&this.u&&!this.X&&Bva(this.i)>=this.provider.videoData.Db){if(this.u&&this.provider.videoData.Db){var a=IU(this,"delayplay");a.Sc=!0;a.send();this.X=!0}Jva(this)}};
g.k.Wb=function(a){this.na()||(g.W(a.state,2)?(this.currentPlayerState="paused",g.iJ(a,2)&&this.u&&MU(this).send()):g.W(a.state,8)?(this.currentPlayerState="playing",this.u&&isNaN(this.l)&&JU(this,!1)):this.currentPlayerState="paused",this.C&&g.W(a.state,128)&&(LU(this,"error-100"),g.wo(this.C)))};
g.k.da=function(){g.E.prototype.da.call(this);g.wo(this.l);this.l=NaN;Dva(this.i);g.wo(this.C)};
g.k.nb=function(){return FU(IU(this,"playback"))};
g.k.pg=function(a){var b=IU(this,"engage");b.L=a;return Gva(b,Qva(this.provider))};Pva.prototype.isEmpty=function(){return this.endTime===this.startTime};NU.prototype.Z=function(a){return g.U(this.i.experiments,a)};
var Rva={other:1,none:2,wifi:3,cellular:7};g.u(g.OU,g.E);g.k=g.OU.prototype;g.k.Wb=function(a){var b;if(g.iJ(a,1024)||g.iJ(a,2048)||g.iJ(a,512)||g.iJ(a,4)){if(this.l){var c=this.l;0<=c.l||(c.i=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.B||(c.l=-1))}this.provider.videoData.enableServerStitchedDai&&this.Ff?null===(b=this.u.get(this.Ff))||void 0===b?void 0:b.Wb(a):this.i&&this.i.Wb(a);this.qoe&&this.qoe.Wb(a);this.l&&this.l.Wb(a)};
g.k.oe=function(){var a;this.provider.videoData.enableServerStitchedDai&&this.Ff?null===(a=this.u.get(this.Ff))||void 0===a?void 0:a.oe():this.i&&this.i.oe()};
g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.l)this.l.onError(a)};
g.k.Ia=function(a,b,c){this.qoe&&this.qoe.Ia(a,b,c)};
g.k.fi=ba(12);g.k.nb=function(){var a;if(this.provider.videoData.enableServerStitchedDai&&this.Ff)null===(a=this.u.get(this.Ff))||void 0===a?void 0:a.nb();else if(this.i)return this.i.nb();return{}};
g.k.pg=function(a){return this.i?this.i.pg(a):function(){}};g.u(PU,g.E);g.k=PU.prototype;g.k.sd=function(a){this.Jj();var b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.l);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.l(c,b.i[b.i.length-1])?b.i.push(c):g.zb(b.i,c,b.l)}this.u=NaN;this.Jj()};
g.k.Kf=function(a){1E4<a.length&&g.ht(new g.Tr("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.na()){var b=new Set(a);this.l=this.l.filter(function(c){return!b.has(c)});
dwa(this.i,b);this.Jj()}};
g.k.reset=function(){this.started=!1;this.B.stop();this.i.i=[];this.l=[];this.Jj()};
g.k.Oe=function(a){var b=OT(this).filter(function(c){return c.namespace===a});
this.Kf(b);return b};
g.k.Wb=function(a){this.started&&(this.Jj(),g.W(a.Gl,16)&&(a=cwa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.B.start()))};
g.k.Lx=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.l.indexOf(d)&&(this.l.push(d),b.push([1,d]))}return b};
g.k.Qx=function(a){var b=[];if(!a.length)return b;a.sort(g.zD);a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.l.splice(this.l.indexOf(c),1),b.push([2,c]);return b};
g.k.Jj=function(){this.C=!0;if(!this.I){for(var a=3;this.C&&a;)this.C=!1,this.I=!0,this.nE(),this.I=!1,a--;this.J().Kb()&&(a=cwa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.Y(),this.B.start(a)))}};
g.k.nE=function(){if(this.started&&!this.na()){this.B.stop();var a=this.J();g.W(a,32)&&this.W.start();for(var b=g.W(this.J(),2)?0x8000000000000:1E3*this.X(),c=g.W(a,2),d=[],e=[],f=g.q(this.l),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(this.Qx(e));f=e=null;c?(a=awa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=bwa(this.i)):a=this.u<=b&&iK(a)?$va(this.i,this.u,b):awa(this.i,b);
d=d.concat(this.Lx(a));e&&(d=d.concat(this.Qx(e)));f&&(d=d.concat(this.Lx(f)));this.u=b;ewa(this,d)}};
g.k.da=function(){this.l=[];this.i.i=[];g.E.prototype.da.call(this)};
g.cS.fu(PU,{sd:"crmacr",Lx:"crmncr",Qx:"crmxcr",nE:"crmis",Kf:"crmrcr"});g.u(TU,g.R);TU.prototype.aa=function(){};g.u(ZU,g.E);ZU.prototype.Wb=function(a){this.playerState=a.state};
ZU.prototype.W=function(){var a=this;if(this.B&&!this.playerState.isError()){var b=this.B,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.i,e=Bka(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();$U(this,this.la,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.i)&&0<this.i&&zka(b,this.i);var h=!c||10<Math.abs(c-this.i);$U(this,this.ma,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
e=e&&pz(b.Tf(),this.i);var l=!this.l||!this.l.policy.la;h=function(){b.seekTo(a.i+.001)};
$U(this,this.ia,e&&l&&!f,d,"qoe.slowseek",h,"jiggle_cmt");l=function(){return a.V("newmediaelementrequired")};
$U(this,this.ga,e&&!f,d,"qoe.slowseek",l,"new_elem");d=iK(this.playerState);e=g.jK(this.playerState);var m=d&&e&&pz(b.Tf(),c+5);$U(this,this.Y,m&&!f,d&&!e,"qoe.longrebuffer",h,"jiggle_cmt");$U(this,this.ca,m&&!f,d&&!e,"qoe.longrebuffer",l,"new_elem_nnr");if(this.l){var n=this.l.getCurrentTime();h=b.bn();h=pga(h,n);h=!this.l.B.u&&c===h;$U(this,this.Ca,d&&e&&h&&!f,d&&!e&&!h,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}$U(this,this.ea,d&&e&&!f,d&&!e,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.L()&&!f;$U(this,this.X,f,!f,"qoe.start15s",function(){return a.V("releaseadsprerolllock")},"ads_preroll_timeout");
f=.5>c-this.J;f=this.videoData.isAd()&&d&&!e&&f;$U(this,this.za,f,!f,"ad.rebuftimeout",function(){return a.V("skipslowad")},"skip_slow_ad");
this.J=c;this.C.start()}};
ZU.prototype.fd=function(a,b,c){b=this.nb(b);b.wn=c;b.wdup=this.I[a]?"1":"0";this.V("qoeerror",a,b);this.I[a]=!0};
ZU.prototype.nb=function(a){a=a.nb();this.i&&(a.stt=this.i.toFixed(3));this.l&&Object.assign(a,this.l.nb());this.B&&Object.assign(a,this.B.nb());return a};
XU.prototype.reset=function(){this.i=this.l=this.u=this.startTimestamp=0;this.B=!1};
XU.prototype.nb=function(){var a={},b=(0,g.Q)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.l&&(a.wtd=(b-this.l).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.u(bV,g.R);g.k=bV.prototype;g.k.Ah=function(a){dV(this);this.videoData=a;this.W=this.u=null;this.C=this.Ha=this.timestampOffset=0;this.za=!0;this.L.dispose();a=this.L=new ZU(this.X,this.videoData,(0,g.B)(this.V,this),this.visibility,this.Pa);var b=this.i;(a.B=b)&&g.en(a.C);this.L.l=this.B};
g.k.Wb=function(a){this.L.Wb(a);this.Z("html5_exponential_memory_for_sticky")&&(a.state.Kb()?g.en(this.ia):this.ia.stop());var b;if(b=this.i)b=8===a.Gl.state&&iK(a.state)&&g.jK(a.state)&&this.policy.B;if(b){a=this.i.getCurrentTime();b=this.i.Tf();var c=this.Z("manifestless_post_live_ufph")||this.Z("manifestless_post_live")?oz(b,Math.max(a-3.5,0)):oz(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.Wa-c)||(this.V("ctmp","seekover","b."+nz(b,
"_")+";cmt."+a),this.Wa=c,this.seekTo(c,{gr:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&ywa(this)?this.i.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.ak=function(){return this.getCurrentTime()-this.pc()};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return WU(this.u,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.nH?!1:c.nH,e=void 0===c.oH?0:c.oH,f=void 0===c.gr?!1:c.gr;c=void 0===c.sA?0:c.sA;var h=a,l=!isFinite(h)||(this.u?WU(this.u,h):h>=cV(this))||!g.bI(this.videoData);l||this.V("ctmp","seeknotallowed",h+";"+cV(this));if(!l)return this.I&&(this.I=null,jV(this)),qm(this.getCurrentTime());this.aa();if(a===this.l&&this.ca)return this.aa(),this.J;this.ca&&dV(this);this.J||(this.J=new lv);a&&!isFinite(a)&&fV(this,!1);h=a;(iV(this)&&!(this.i&&0<this.i.Fg()&&
0<YJ(this.i))||UH(this.videoData)&&this.Hc()===cV(this,!1)?0:isFinite(h)||!UH(this.videoData))&&(a=xwa(this,a,f));a&&!isFinite(a)&&fV(this,!1);this.C=a;this.Ca=c;this.l=a;this.u&&(f=this.u,c=a,mwa(f,c,!1),nwa(f,c));this.V("seekto",a,!d);this.J&&(d?e&&this.Ja.start(e):(this.aa(),this.ca=!0,rwa(this)));return this.J};
g.k.Hc=function(){return this.videoData?this.videoData.Hc()+this.timestampOffset:this.timestampOffset};
g.k.da=function(){gV(this,null);this.L.dispose();g.R.prototype.da.call(this)};
g.k.mQ=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.pc(),{gr:b})};
g.k.nb=function(){var a={};this.B&&Object.assign(a,this.B.nb());this.i&&Object.assign(a,this.i.nb());return a};
g.k.xp=function(a){this.timestampOffset=a};
g.k.RI=function(a){this.Ha=a};
g.k.getStreamTimeOffset=function(){return UH(this.videoData)?this.Ha:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.pc=function(){return this.timestampOffset};
g.k.gf=function(a){return this.videoData.i.gf(a-this.timestampOffset)};
g.k.QI=function(a){this.W&&(this.W.i=a.audio.index)};
g.k.Z=function(a){return this.X&&g.U(this.X.experiments,a)};
g.k.aa=function(){};kV.prototype.isFinished=function(){return this.i};
kV.prototype.start=function(){this.started=!0};
kV.prototype.reset=function(){this.i=this.started=!1};lV.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return qm(this.l.u(a,b)["catch"](function(f){g.ht(f)}));
if(this.i){var e=zd(g.Bd(5,Td(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}return new mm(function(f){var h,l,m=new XMLHttpRequest;m.onerror=function(){var t,w;if(null===(t=c.l)||void 0===t?0:t.i(a,b)){var x=c.l.l(a,b);null===(w=c.i)||void 0===w?void 0:w.success();f(x)}else f(c.fn(a,m.status,m.response))};
m.onload=function(){f(c.fn(a,m.status,m.response))};
m.open(null!==(h=b.method)&&void 0!==h?h:"GET",a,!0);m.responseType="text";m.withCredentials=!0;if(b.headers)for(var n=g.q(Object.entries(b.headers)),p=n.next();!p.done;p=n.next()){var r=g.q(p.value);p=r.next().value;r=r.next().value;m.setRequestHeader(p,r)}m.send(null!==(l=b.body)&&void 0!==l?l:null)})};
lV.prototype.fn=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.ht(new g.Tr("JSON parsing failed after XHR fetch",a,b,c)),d={}}200===b?this.i&&this.i.success():(this.i&&this.i.failure(),g.ht(new g.Tr("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};mV.prototype.reset=function(){Ewa(this);this.update(this.u)};
mV.prototype.update=function(a){var b=0,c=a.length;this.B+=c;this.l&&64<=this.l+c&&(this.I.set(a.subarray(0,64-this.l),this.l),b=64-this.l,this.l=0,Dwa(this,this.I,0));for(;b+64<=c;b+=64)Dwa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.l),this.l+=a.length)};
var Cwa=[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];oV.prototype.encrypt=function(a){return C(this,function c(){var d=this,e;return z(c,function(f){if(1==f.i)return v(f,Iwa(d.i.i,a,d.iv),2);e=f.l;return f["return"](e)})})};
oV.prototype.decrypt=function(a,b){return C(this,function d(){var e=this,f;return z(d,function(h){if(1==h.i)return v(h,Iwa(e.i.i,a,b),2);f=h.l;return h["return"](f)})})};var A0={},Mwa=(A0.f="video",A0["1"]="video",A0.h="video",A0.H="video",A0["9"]="video",A0["("]="video",A0["9h"]="video",A0["(h"]="video",A0.o="audio",A0.O="audio",A0.a="audio",A0.ah="audio",A0.A="audio",A0.m="audio",A0.M="audio",A0.mac3="audio",A0.MAC3="audio",A0.meac3="audio",A0.MEAC3="audio",A0.so="audio",A0.sa="audio",A0["8"]="unknown",A0["*"]="unknown",A0.w="unknown",A0["3"]="unknown",A0["6"]="unknown",A0[""]="unknown",A0);Rwa.prototype.decrypt=function(a){return C(this,function c(){var d=this,e,f,h,l;return z(c,function(m){switch(m.i){case 1:if(d.i.length&&!d.i[0].isEncrypted)return m["return"]();d.l=!0;e=new Uint8Array(16);return v(m,Twa(a),2);case 2:f=m.l;case 3:if(!d.i.length||!d.i[0].isEncrypted){m.Pb(4);break}h=d.i.shift();return v(m,f(h.buffer,e),5);case 5:l=m.l;for(var n=0;n<e.length;n++)if(255===e[n])e[n]=0;else{e[n]+=1;break}d.u(h.streamId,l,!0);m.Pb(3);break;case 4:Swa(d),d.l=!1,m.i=0}})})};g.u(pV,g.R);
pV.prototype.feed=function(a,b){this.aa();switch(a){case 10:var c=hR(new eR(b),1);this.aa();switch(c){case 5:this.V("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new Lwa(b)).i.iv;break;case 16:var d=new Qwa(b),e=d.l,f=d.formatId;this.V("STREAM_METADATA",{formatId:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.i,isAudio:this.i[f].isAudio});this.aa()}this.u=c;break;case 11:this.aa();switch(this.u){case 0:Vwa(this,b);break;case 2:this.C.tick("ormk");c=uv(b);this.queue.decrypt(c);this.aa();
break;default:this.aa()}this.u=null;break;case 20:c=new Nwa(b);d=c.formatId;e=c.isAudio;f=void 0!==this.i[d];this.l[c.i]=d;this.i[d]={hasEnded:!1,isAudio:e,numSlicesProcessing:0};this.aa();f||this.V("STREAM_STARTED",{formatId:d});break;case 21:Uwa(this,b,!1);break;case 12:Uwa(this,b,!0);break;case 22:c=Nw(b,0);c=this.l[c]||null;this.aa();c&&(d=this.i[c],d.hasEnded=!0,0===d.numSlicesProcessing&&this.V("STREAM_ENDED",{formatId:c}));break;default:this.aa()}};
pV.prototype.aa=function(){};qV.prototype.Mn=function(){var a=new kR;pR(a,1,this.name);pR(a,2,this.value);return qR(a)};Wwa.prototype.Mn=function(){var a=new kR;pR(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())nR(a,2,c.value.Mn());pR(a,3,this.postBody);return qR(a)};Ywa.prototype.Mn=function(){var a=new kR;nR(a,2,this.Fx);nR(a,5,this.encryptedClientKey);nR(a,6,this.iv);nR(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;mR(a,80);mR(a,b);return qR(a)};$wa.prototype.Mn=function(){var a=new kR;nR(a,3,this.Gx.Mn());null!=this.onesieUstreamerConfig&&nR(a,4,this.onesieUstreamerConfig);return qR(a)};cxa.prototype.feed=function(a){Hw(this.i,a);dxa(this)};var B0={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},ixa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},B0),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},B0),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},B0),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
B0),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},B0),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},B0),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},B0)],C0={},hxa=(C0["137"]=["136","135","134","133"],C0["248"]=["247","244","243","242"],C0["399"]=["398","397","396","395"],C0["299"]="298 137 136 135 134 133".split(" "),C0["303"]="302 248 247 244 243 242".split(" "),C0["140"]=[],C0["251"]=
[],C0);rV.prototype.fetch=function(){return C(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,w,x,y,F,D;return z(b,function(G){switch(G.i){case 1:return d=c,c.aa(),c.C.start(),c.i.tick("ogpd"),f=Xwa(c.playerRequest,c.B,c.videoData),sa(G,2),v(G,axa(f,c.X,c.I.onesieUstreamerConfig),4);case 4:e=G.l;ta(G,3);break;case 2:return h=ua(G),c.aa(),h instanceof g.IA?sV(c,h):(l=new g.IA("onesie.request",!1),sV(c,l)),G["return"](c.u);case 3:c.i.tick("osor");m=Ix(c.B);n=e.Mn();g.bq()&&(n=new Uint8Array(n.buffer.slice(0,
n.length)));p={method:"POST",body:n,headers:{"Content-Type":"text/plain"}};r=function(){mxa(d)};
t=function(){d.aa();mxa(d);var K=d.xhr;if(K.Ie()){var J={msg:K.Ie()};J=new g.IA("onesie.net",!1,J)}else 400<=K.status?J=new g.IA("onesie.net.badstatus",!1):K.Xt()?d.J||(J=new g.IA("onesie.response.noplayerresponse",!1)):J=new g.IA(204===K.status?"onesie.net.nocontent":"onesie.net.connect",!1);J?sV(d,J):d.i.tick("orf");d.W.B=!0};
w=g.Ia;if(!c.l){G.Pb(5);break}return v(G,gxa(c.videoData),6);case 6:x=G.l;case 5:y=kxa(c.videoData,x);if(!y)return c.aa(),F={url:"0"},D=new g.IA("onesie.unavailable.hotconfig",!1,F),sV(c,D),G["return"](c.u);c.i.tick("ocs");c.aa();c.xhr=new uT(y,r,t,w,m,p);return G["return"](c.u)}})})};
rV.prototype.Y=function(){this.aa();sV(this,new g.IA("onesie.request",!1,{timeout:"1"}))};
rV.prototype.aa=function(){};g.u(g.xV,g.R);g.k=g.xV.prototype;g.k.da=function(){this.aa();this.DG();this.Ac.stop();window.clearInterval(this.lc);Wra(this.pe);this.visibility.unsubscribe("visibilitystatechange",this.pe);CV(this);zV(this);g.np(this.ma);this.eg();this.L=null;g.Ei(this.videoData);g.Ei(this.I);g.Fi(this.Pf);this.ia=null;this.Ha=!1;this.Za=0;g.R.prototype.da.call(this)};
g.k.Ah=function(a,b,c){c=void 0===c?!0:c;this.aa();this.ca.length=0;this.Ja=null;this.ea.reset();this.ga.reset();this.Db=!1;this.Ve=0;this.ld=!0;this.Sb=null;this.i&&this.i.stopVideo();AV(this);CV(this);zV(this);g.np(this.ma);this.Fc.clear();g.Ei(this.videoData);g.Ei(this.I);if(2===this.playerType||this.u.Aj)a.VB=!0;var d=TG(a.tc,a.sm,this.u.l,this.u.u);d&&(a.adFormat=d);2===this.playerType&&(a.ki=!0);if(this.isFullscreen()||this.u.l)d=HDa(),a.autonavState=d||(this.u.l?2:this.videoData.autonavState);
this.Zc=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.yP,this);this.videoData.subscribe("dataloaded",this.kx,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ia,this);Exa(this,a);zxa(this,b);Axa(this);this.Ha=!1;this.Za=0;FV(this,"newdata");this.tb(new g.bK);this.B.Ah(this.videoData);Gia(a)&&(a=this.videoData.errorDetail,b=this.videoData.Lh,this.Lf("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&g.cS.isActive()&&
this.Ac.start()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.u};
g.k.cd=function(){return this.i};
g.k.kx=function(){if(this.videoData.Wc()){var a=this.I;0<g.S(a.i.experiments,"html5_player_min_build_cl")&&361452257<g.S(a.i.experiments,"html5_player_min_build_cl")&&Zua(a,"oldplayer");Gxa(this)}else this.videoData.Kc||this.videoData.Si?this.za&&g.fG(this.u)&&this.videoData.isLivePlayback||(this.videoData.Kc?tia(this.videoData):(a=this.C,a.qoe&&(a=a.qoe,zU(a,"protected"),a.provider.videoData.I?a.MG():a.provider.videoData.subscribe("dataloaded",a.MG,a)),pia(this.videoData))):!this.videoData.Y&&this.Zc&&
Dxa(this)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.W(this.getPlayerState(),128)||(this.V("internalAbandon"),this.Sz(!0),CV(this),g.np(this.ma))};
g.k.On=function(){Sva(this.C)};
g.k.Lf=function(a,b,c,d,e){this.aa();var f,h;g.Mb(WDa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+parseInt(g.P("DCLKSTAT",0),10));(b=h)||(b=g.EN[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,Mx:f,Pi:e||"",tG:c};FV(this,"dataloaderror");this.tb(cK(this.playerState,128,a));g.np(this.ma);zV(this);this.Ol()};
g.k.jd=function(a){this.ca=this.ca.filter(function(b){return a!==b});
this.aa();this.ga.started&&GV(this)};
g.k.hk=function(){var a;(a=!!this.ca.length)||(a=this.X.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Kb=function(){return this.playerState.Kb()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.L){var a=this.L;a=a.videoData.rm.compose(a.videoData.JH);a=QE(a)}else a="auto";return a};
g.k.Tq=ba(7);g.k.isGapless=function(){return!!this.i&&this.i.isView()};
g.k.eg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.aa();if(this.i){var c=this.getCurrentTime();0<c&&(this.B.C=c);eV(this.B,null);this.I.u=null;TV(this);this.l&&(g.en(this.l.W),RV(this,b));this.Ca.stop();if(this.i){!this.ga.started||this.playerState.isError()||g.W(this.playerState,2)||this.tb(dK(this.playerState,512));g.Pt(this.Pa);if(a||!this.i.isView())this.i.stopVideo(),AV(this);this.i=null}}};
g.k.playVideo=function(){return C(this,function b(){var c=this,d,e,f,h;return z(b,function(l){if(1==l.i){c.aa();var m;(m=g.W(c.playerState,128))||(m=c.I,m.C?(m.C=!1,lU(m),m=!0):m=!1);if(m)return l["return"]();c.i&&(m=c.C,m.l&&qva(m.l),m.qoe&&yva(m.qoe));LV(c);g.W(c.playerState,64)&&c.tb(dK(c.playerState,8));return c.ga.isFinished()&&c.i?c.L||!c.Ja?l.Pb(2):v(l,c.Ja,2):l["return"]()}if(!c.videoData.u)return d=c.videoData.isLivePlayback&&!g.xF(c.u.B,!0)?"html5.unsupportedlive":NH(c.videoData)?"fmt.unplayable":
"fmt.noneavailable",g.ht(Error("selectableFormats")),c.Lf(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l["return"]();if(c.lf()&&c.videoData.u.i)return c.aa(),l["return"](EV(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.Hc()-15;f=g.bI(c.videoData)&&g.W(c.playerState,4);h=!c.Z("html5_dompaused_unpause_killswitch")&&g.W(c.playerState,1024);h||!e&&!f||(f?(c.aa(),c.seekTo(Infinity),JV(c,"unpauseLiveOnly")):(c.aa(),c.seekTo(c.Hc()),JV(c,"outOfWindow")));!c.isAtLiveHead(void 0,
!0)&&hV(c.B)&&(c.aa(),c.seekTo(Infinity),JV(c,"peggedToLive"));if(m=g.W(c.playerState,256)&&c.videoData.Ha)m=c.B,m=m.ca&&!isFinite(m.l);if(m)return c.tb(fK(c.playerState,8,4)),l["return"]()}g.W(c.playerState,4)&&g.W(c.playerState,16)&&c.tb(fK(c.playerState,9,4));if(wV(c))return Xxa(c),l["return"]();WV(c);l.i=0})})};
g.k.qK=function(){var a=this.videoData;a.i.dispose();a.i=void 0;JH(a,a.adaptiveFormats);yV(this,!0);this.V("localmediachange",new MG(this.videoData.videoId,4,{gp:!0}))};
g.k.fQ=function(){this.aa();TV(this);var a=this.videoData.i&&ZA(this.videoData.i),b=this.i&&this.i.isView();a||b?(this.l&&(a=this.l,a.policy.la=!1,a.mediaSource&&NT(a)),yV(this)):(this.tb(dK(this.playerState,16)),wV(this),g.hK(this.playerState)&&this.playVideo())};
g.k.yN=function(){this.aa();AV(this);zV(this);UV(this);this.playVideo()};
g.k.Xm=function(){if(!this.L)return[];var a=dva(this.Y,this.L,PV(this,!0));return this.L.i.Xm(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.u&&!this.videoData.u.i?QE(this.videoData.rm):pU()};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.videoData.getAudioTrack()};
g.k.cO=function(a,b){this.DF(new Gy(b,a))};
g.k.DF=function(a){this.aa();this.La.set(a.initData,a);this.J&&(Pua(this.J,a),this.Z("html5_eme_loader_sync")||this.La.remove(a.initData))};
g.k.xF=function(){g.Fs&&this.la&&this.la.i&&this.J&&(Rua(this.J,this.la.i),this.la=null)};
g.k.vP=function(a){this.videoData.JE=OE("auto",a,!1,"u");vV(this)};
g.k.WI=function(a){var b=this;NV(this,a.reason,a.video.info,a.audio.info);this.Z("html5_probe_media_capabilities")&&this.Z("html5_dynamic_av1_hybrid_threshold")&&a.video.info&&vA(a.video.info)&&hva(this.Y,this.L).then(function(c){c&&b.l&&eta(b.l.l,b.u)})};
g.k.MN=function(a){Jxa(this,a.reason,a.audio.info)};
g.k.NN=function(a){this.V("localmediachange",a)};
g.k.handleError=function(a){this.I.handleError(a,g.W(this.playerState,4)||g.W(this.playerState,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.W(this.playerState,64)||g.W(this.playerState,2))&&!a)if(g.W(this.playerState,8))this.tb(fK(this.playerState,4,8));else return;var b;if(b=this.Z("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai){var c;b=this.getCurrentTime();if(null===(c=this.l)||void 0===c)c=0;else{var d;if(d=c.Y){d=c.u;var e=c.Y,f=d.J.i.index.oh(b);0<=f&&d.J.i.index.jy(f)?(wB(d,"sdai","skipad_on_"+f+"_t_"+b.toFixed(3)),e.skipAd(b,f),xB(d,b,b,f),d=!0):
d=!1}d?($ta(c,c.timestampOffset-100),c=!0):c=!1}c?(Bwa(this.B,b+100+5),b=!0):b=!1}b||(g.W(this.playerState,128)||(a?this.tb(dK(this.playerState,256)):this.tb(fK(this.playerState,4,8))),this.i&&this.i.pause(),g.bI(this.videoData)&&this.l&&RV(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.l&&(RV(this,!1),FT(this.l))};
g.k.Ol=function(a){a=void 0===a?!1:a;this.i&&(this.i.stopVideo(),AV(this),zV(this),g.W(this.playerState,128)||(a?this.tb(eK(eK(dK(this.playerState,4),8),16)):this.tb(cK(this.playerState))),this.videoData.videoId&&this.u.L.remove(this.videoData.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.aa("SeekTo "+a+", "+JSON.stringify(b));g.W(this.playerState,2)&&wV(this);if(this.Wa){var c=this.Wa;isFinite(a)&&a<DS(c.i)?c.isLiveNow=!1:c.isLiveNow=!0}this.B.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.B.getCurrentTime()};
g.k.ak=function(){return this.B.ak()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.pc())};
g.k.Do=function(){var a=NaN;this.i&&(a=this.i.Do());return 0<=a?a:this.getCurrentTime()};
g.k.gf=function(){if(this.videoData.i)return this.videoData.i.gf(this.getCurrentTime()-this.pc());if((!this.Z("html5_disable_limit_ingestion_tvos")||cq())&&this.i){var a=this.i.Ms();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.pc():IV(this)?IV(this):0};
g.k.Rt=function(){var a=new Xva;if(this.l){var b=this.u.schedule;a.l=b.L;a.B=b.Y;a.bandwidthEstimate=YB(b);a.i="d."+VB(b).toFixed(2)+";st."+(1E9*(b.i.Uf()||0)).toFixed(2)+";bw."+b.l.Uf().toFixed(0)+";abw."+b.W.Uf().toFixed(0)+";v50."+SB(b.u,.5).toFixed(2)+";v92."+SB(b.u,.92).toFixed(2)+";v96."+SB(b.u,.96).toFixed(2)+";v98."+SB(b.u,.98).toFixed(2);b=this.l;if(b.mediaSource&&!TA(b.mediaSource)&&(a.Jm=Jz(b.videoTrack,b.currentTime),a.u=Jz(b.audioTrack,b.currentTime),b.policy.Wa)){var c=Iz(b.videoTrack),
d=Iz(b.audioTrack),e=nz(b.mediaSource.l.He(),"_",5),f=nz(b.mediaSource.i.He(),"_",5);a.i=(a.i||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=jT(b.I);b.aa()}else this.i&&(a.Jm=ZJ(this.i));a.C=this.isAtLiveHead()&&this.Kb()?uV(this):NaN;return a};
g.k.nb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.C.nb());this.i&&(Object.assign(b,this.i.nb()),Object.assign(b,this.Yq()));this.l&&Object.assign(b,this.l.nb());this.J&&(b.drm=this.J.nb());b.state=this.playerState.state.toString(16);g.W(this.playerState,128)&&(b.debug_error=this.playerState.getData());this.hk()&&(b.prerolls=this.ca.join(","));this.videoData.eh&&(b.ismb=this.videoData.eh);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&
(b.lowlatency="1");this.videoData.isLivePlayback&&(this.videoData.i&&sB(this.videoData.i)&&(b.segduration=sB(this.videoData.i)),a=this.B,b.lat=a.W?vsa(a.W.B):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.hj.toFixed(3);if(a=g.MV(this))b.optimal_format=a.Na().qualityLabel;b.user_qual=pU()}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.eq([a])};
g.k.removeCueRange=function(a){this.X.Kf([a])};
g.k.eq=function(a){this.X.sd(a)};
g.k.Gz=function(a){this.X.Kf(a)};
g.k.lf=function(){return this.visibility.lf()};
g.k.In=function(){this.i&&this.i.In()};
g.k.yP=function(){FV(this)};
g.k.togglePictureInPicture=function(){this.i&&this.i.togglePictureInPicture()};
g.k.XI=function(a){this.Kc.stop();var b=a.target.hf();if(this.i&&this.i.hf()&&this.i.hf()===b){Zxa(this,a.type);switch(a.type){case "error":var c=aK(this.i)||"";if("capability.changed"===c){EV(this);return}if(0<this.i.Hh()&&mU(this.I,c,{msg:this.i.Ie()}))return;if(this.isBackground()&&4===this.i.Hh()){this.Ol();HV(this,"unplayable");return}break;case "durationchange":c=this.i.getDuration();(!this.mediaSource||isFinite(c)&&0<c)&&1!==c&&this.videoData.lengthSeconds!==c&&(this.videoData.lengthSeconds=
c,FV(this));break;case "ratechange":this.l&&this.l.setPlaybackRate(this.i.getPlaybackRate());c=this.X;c.started=!0;c.Jj();var d=this.C;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.jS(d.provider);c&&c!==d.La&&(g.uU(d,e,"rate",[c]),d.La=c);d.reportStats(e)}break;case "loadedmetadata":aya(this);this.V("onLoadedMetadata");Uxa(this);break;case "loadstart":Uxa(this);break;case "progress":case "suspend":this.Ab();c=this.V;this.i?g.bI(this.videoData)?d=1:cI(this.videoData)?this.isAtLiveHead()||hV(this.B)?
d=1:(e=this.B,e.i?cI(e.videoData)?(d=Aka(e.i)+e.timestampOffset-e.Hc(),e=cV(e)-e.Hc(),d=Math.max(0,Math.min(1,d/e))):d=$J(e.i):d=0):d=$J(this.i):d=0;c.call(this,"onLoadProgress",this,d);break;case "playing":if(this.Z("html5_force_manifestless_seeking_state")&&UH(this.videoData)&&this.l&&this.l.B.u){this.Ia("mflForceSeek","reason.play");return}this.W.tick("plev");Txa(this);rE("plev","video_to_ad");this.Ce&&(this.Ce=!1,this.isAtLiveHead()||(this.aa(),this.seekTo(Infinity),JV(this,"onPlaying")));break;
case "timeupdate":Txa(this);c=this.i&&!this.i.getCurrentTime();d=this.i&&0===this.i.Fg();if(c&&(!this.Db||d))return;this.Db=this.Db||!!this.i.getCurrentTime();VV(this);this.Ab();if(!this.i||this.i.hf()!==b)return;this.V("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.i.bn().length&&0===this.i.Tf().length&&0<this.i.getCurrentTime()&&5>this.i.getCurrentTime()&&this.l)return;break;case "resize":aya(this);this.videoData.l&&"auto"===this.videoData.l.Na().quality&&this.V("internalvideoformatchange",
this.videoData,!1);break;case "pause":if(this.We&&g.W(this.playerState,8)&&!g.W(this.playerState,1024)&&0===this.getCurrentTime()&&g.Zr){HV(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.hf()===b){this.V("videoelementevent",a);b=this.playerState;if(!g.W(b,128)){c=this.ib;e=this.i;var f=this.u.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.W(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.cj()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===
a.type||"timeupdate"===a.type&&!g.W(b,4)&&!QU(c,h);if("pause"===a.type&&e.cj()||l&&h)0<e.Mt()&&e.hf()&&(d=14);else switch(a.type){case "error":aK(e)&&(d|=128);break;case "pause":g.W(b,256)?(d^=256)||(d=64):g.W(b,32)||g.W(b,2)||g.W(b,4)||(d=4,g.W(b,1)&&g.W(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.U(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);QU(c,e.getCurrentTime())&&(d&=-2);g.W(b,1)&&RU(c,e.getCurrentTime(),(0,g.Q)(),ZJ(e))&&(d|=1);break;case "seeking":d|=16;g.W(b,8)&&(d|=
1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.W(b,2)||(d|=1);RU(c,e.getCurrentTime(),(0,g.Q)(),ZJ(e));break;case "timeupdate":f=g.W(b,16),l=g.W(b,4),(g.W(b,8)||f)&&!l&&QU(c,e.getCurrentTime())&&(d=8),RU(c,e.getCurrentTime(),(0,g.Q)(),ZJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=aK(d))?(f="GENERIC_WITHOUT_LINK",l=d.nb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.Ie())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.EN[f]||"",Mx:f,tG:g.JA(l)}):d=null);b=cK(b,c,d)}!g.W(this.playerState,
1)&&g.W(b,1)&&XV(this,"evt"+a.type);this.tb(b)}}};
g.k.mP=function(){this.Ia("misstimeupdate","");Sxa(this)&&!g.W(this.playerState,2)&&kS(this,!0,!1)};
g.k.KM=function(a){a="available"===a.i.availability;a!==this.jr&&(this.jr=a,this.V("airplayavailabilitychange"))};
g.k.LM=function(){var a=(0,g.Q)(),b=this.i.lf();this.Ia("airplay",b?"on":"off");if(!this.Z("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.kc)||!(2E3>a-this.kc))this.kc=a,b!==this.lf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.pe()),this.Ia("airplay","rbld_"+b),BV(this)),this.V("airplayactivechange")};
g.k.Ab=function(a){var b=this;a=void 0===a?!1:a;if(this.i&&this.videoData){uwa(this.B,this.Kb());var c=this.getCurrentTime();this.l&&(g.W(this.playerState,4)&&g.bI(this.videoData)||Xta(this.l,c));5<c&&(this.B.C=c);var d=g.mp();d?g.np(this.ma):g.wo(this.ma);if((g.jK(this.playerState)||!this.i.Jk())&&!g.W(this.playerState,128)){var e=function(){if(b.i&&!g.W(b.playerState,128)){b.videoData.ib&&g.S(b.u.experiments,"html5_log_rebuffer_events")&&Zxa(b,"pfx");var f=b.getCurrentTime(),h=ZJ(b.i),l=g.W(b.playerState,
8),m=QU(b.ib,f),n=RU(b.ib,f,(0,g.Q)(),h);l&&m?b.tb(eK(b.playerState,1)):l&&n?(l=b.getDuration(),m=b.videoData.isLivePlayback,(b.Z("html5_set_ended_in_pfx_live")||!m)&&l&&1.1>Math.abs(l-f)?(b.Ia("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.Z("html5_set_ended_in_pfx_live_cfl")||(b.i.Js()?(b.aa(),b.seekTo(0)):kS(b))):(g.jK(b.playerState)||XV(b,"progress_fix"),b.tb(dK(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.Ve)/1E3,m=b.getDuration(),f>m-1&&b.Ia("misspg","t:"+f.toFixed(2)+";d:"+
m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.W(b.playerState,4)&&g.jK(b.playerState)&&5<ZJ(b.i)&&b.tb(eK(b.playerState,1)));b.Ab()}};
0===this.i.bn().length?this.ma=d?g.kp(e,100):g.uo(e,100):this.ma=d?g.kp(e,500):g.uo(e,500)}this.videoData.vo=c;!a&&this.Kb()&&Wxa(this);lva(this.Y,this.L,this.cd(),this.isBackground())&&vV(this);mva(this.Y,this.videoData.l)&&(this.C.onError("qoe.restart","droprate."+this.Y.L),this.u.B.J=!1,BV(this));this.V("progresssync",this,a)}};
g.k.oL=function(){this.Lf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.CK=function(){g.jK(this.playerState)&&jva(this.Y,this.L)&&vV(this)};
g.k.tb=function(a){if(!g.gK(this.playerState,a)){this.aa();var b=new g.gJ(a,this.playerState);this.playerState=a;$xa(this);var c=!this.tc.length;this.tc.push(b);var d=this.i&&this.i.Tp();g.iJ(b,1)&&!g.W(b.Gl,16)&&!d&&g.W(this.playerState,8)&&!g.W(this.playerState,64)&&this.l&&(d=this.l,d.aa(),d.ca=!0,this.i&&5<=ZJ(this.i)&&((d=g.S(this.u.experiments,"html5_non_network_rebuffer_duration_ms"))?this.af.start(d):jva(this.Y,this.L)&&vV(this)));(d=g.S(this.u.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&
g.W(a,1)&&(g.W(a,8)||g.W(a,16))?this.Sc.start(d):this.Sc.stop();(0>hJ(b,8)||g.iJ(b,1024))&&this.Ca.stop();!g.iJ(b,8)||this.videoData.Ha||g.W(b.state,1024)||this.Ca.start();g.W(b.state,8)&&0>hJ(b,16)&&!g.W(b.state,32)&&!g.W(b.state,2)&&this.playVideo();g.W(b.state,2)&&cI(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,FV(this)),this.Ab(!0));g.iJ(b,2)&&this.Sz(!0);g.iJ(b,128)&&this.Ol();this.videoData.i&&this.videoData.isLivePlayback&&!this.Cf&&
(0>hJ(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):g.iJ(b,8)&&this.videoData.i.resume());this.B.Wb(b);this.C.Wb(b);if(c&&!this.na())try{for(var e=g.q(this.tc),f=e.next();!f.done;f=e.next()){var h=f.value;this.X.Wb(h);this.V("statechange",h)}}finally{this.tc.length=0}}};
g.k.Br=function(){this.videoData.isLivePlayback||this.V("connectionissue")};
g.k.vz=function(){this.W.tick("qoes")};
g.k.VI=function(a,b,c,d){a:{var e=this.I;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.J&&1<this.J.u.keys.length&&96>e.J)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.Z("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.L&&(e.L++,e.V("removedrmplaybackmanager"),1<e.videoData.Xe.length&&(e.aa(),e.videoData.I=e.videoData.Xe[1]),mU(e,a,{detail:c})))break a;if(b)if(e.videoData.l&&e.videoData.l.Na().isHdr())ava(e,a);else{if(e.V("playererror",a,d,c),e.videoData.Z("html5_exile_on_drm_fatal")&&
Uua(e,{detail:c}))break a}else kU(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(nU(e,"retrydrm","s"),e.J++,e.V("reattachvideosourcerequired"))}};
g.k.GN=function(){var a=this,b=g.S(this.u.experiments,"html5_license_constraint_delay"),c=nq();b&&c?(b=new g.M(function(){KV(a);FV(a)},b),g.I(this,b),b.start()):(KV(this),FV(this))};
g.k.FN=function(){var a=this;g.Fs&&(this.la=Uga(this.videoData.i))&&(this.la.i?g.hm(function(){a.xF()}):Zta(this.l,this.la))};
g.k.TI=function(a){this.V("heartbeatparams",a)};
g.k.UI=function(a){this.Ia("keystatuses",Bua(a));var b="auto";this.videoData.l&&(b=this.videoData.l.Na().quality);!Cua(a,b,!1)||Dua(a,"AUDIO")&&Dua(a,"SD")?this.videoData.l&&this.videoData.l.Na().isHdr()&&(!a.ca||Cua(a,b,!0))&&ava(this.I):(this.aa(),this.Vd?(this.aa(),this.V("drmoutputrestricted")):(this.Vd=!0,this.Ia("retrydrm","o"),QV(this),Cxa(this)))};
g.k.KN=function(){var a,b;if(!this.videoData.Ha&&this.i&&!this.isBackground()){var c="0";0<this.i.Fg()&&5<=ZJ(this.i)&&this.videoData.u&&this.videoData.u.i&&(this.tb(dK(this.playerState,1)),XV(this,"load_soft_timeout"),this.V("playbackstalledatstart"),c="1");$xa(this);if(this.Z("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.hk()&&(c.prerolls=this.ca.join(",")),this.l&&Object.assign(c,this.l.nb()),this.i&&Object.assign(c,this.i.nb());else{var d=this.videoData.u;c={restartmsg:c,
mfmt:KH(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Qd&&!this.J?"1":"0",mfmtinfo:this.videoData.l?"0":"1",prerolls:this.hk()?this.ca.join(","):"0"};if(this.J){d=c;var e=this.J;if(0>=e.u.values.length){var f="ns;";e.X||(f+="nr;");e=f+="ql."+e.B.length}else e=Bua(e.u.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.l)||void 0===a?void 0:a.nb())||{});Object.assign(c,(null===(b=this.i)||void 0===b?void 0:b.nb())||{})}this.C.onError("qoe.start15s",g.JA(c));this.V("loadsofttimeout")}};
g.k.dP=function(){g.W(this.playerState,128)||this.mediaSource&&RA(this.mediaSource)||(this.C.onError("qoe.restart",g.JA({detail:"bufferattach"})),this.Bf++,yV(this))};
g.k.Sz=function(a){var b=this;a=void 0===a?!1:a;if(!this.Ha){oE("att_s","player_att")||rE("att_s","player_att");var c=new yna(this.videoData,this.Z("web_player_inline_botguard"));if("c1a"in c.i&&!vM(c)&&(rE("att_wb","player_att"),2===this.Za&&.01>Math.random()&&g.ht(Error("Botguard not available after 2 attempts")),!a&&5>this.Za)){g.en(this.Tc);this.Za++;return}if("c1b"in c.i){var d=Vva(this.C);d&&Bna(c).then(function(e){e&&!b.Ha&&d?(rE("att_f","player_att"),d(e),b.Ha=!0):rE("att_e","player_att")},
function(){rE("att_e","player_att")})}else(a=zna(c))?(rE("att_f","player_att"),Uva(this.C,a),this.Ha=!0):rE("att_e","player_att")}};
g.k.Hc=function(){return this.B.Hc()};
g.k.pc=function(){return this.B?this.B.pc():0};
g.k.getStreamTimeOffset=function(){return this.B?this.B.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.u&&this.videoData.u.videoInfos&&32<this.videoData.u.videoInfos[0].Na().fps&&g.fG(this.u);this.playbackRate!==a&&b&&(this.Y.setPlaybackRate(a),QV(this));this.playbackRate=a;this.i&&this.i.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.l&&(a=this.videoData.l.Na().quality,"auto"===a&&this.i)){var b=cJ(this);b&&0<b.videoHeight&&(a=oA(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.l&&this.videoData.l.video&&this.videoData.l.video.isHdr())};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.C;c.i?(c=IU(c.i,"engage"),c.L=a,c.send(b)):b&&b()};
g.k.pg=function(a){return this.C.pg(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.ld||(void 0===b?0:b))?this.B.isAtLiveHead(a):!1};
g.k.kl=function(){var a=IV(this),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.B,c=!(c.u&&c.u.u));return c||hV(this.B)||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.fi=ba(11);g.k.Yq=function(){return this.i?this.i.Ns():{}};
g.k.setLoop=function(a){this.loop=a;this.i&&this.i.setLoop(a)};
g.k.SI=function(a){var b=this.Z("html5_unrewrite_timestamps");this.Ia("timestamp","enabled."+b+";t."+a.toString())};
g.k.Ia=function(a,b,c){this.C.Ia(a,b,void 0===c?!1:c)};
g.k.ow=function(a,b){this.C.onError(a,g.JA(b))};
g.k.getPlayerSize=function(){return this.jc.getPlayerSize()};
g.k.Vf=function(){return this.jc.Vf()};
g.k.aa=function(){};
g.k.Z=function(a){return g.U(this.u.experiments,a)};
g.k.DG=function(){if(g.hK(this.playerState)){var a=g.cS.qD();a&&this.C.Ia("profile",a)}this.Ac.start()};g.u(g.$V,g.E);g.$V.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Pa(a),e=D0[d];if(e){try{e.dispose()}catch(h){g.ro(h)}D0[d]=null}var f=new g.$V(a,b,c);g.Gi(f,function(){D0[d]=null;f.Vd&&f.Vd()});
return D0[d]=f}catch(h){throw g.ro(h),h.stack;}};
g.k=g.$V.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.bk=function(a){if(!this.Ha){if(!this.Z("html5_get_innertube_transport_service_killswitch"))return this.Ha=g.tM(a);var b={nt:{subscribeEndpoint:lM,unsubscribeEndpoint:mM,playlistEditEndpoint:pM,webPlayerShareEntityServiceEndpoint:qM,modifyChannelNotificationPreferenceEndpoint:oM,feedbackEndpoint:nM}};void 0===a&&(a=Kr());var c=qna();gM.i=new gM(b,c,a,g.ro,void 0);this.Ha=gM.i}return this.Ha};
g.k.isVideoInfoVisible=function(){return!(!this.X||!this.X.ab)};
g.k.eg=function(){if(this.B){this.Ca&&(this.events.Gb(this.Ca),this.Ca=null);g.Pt(this.ia);this.u&&this.u.eg(!0);this.template.eg();if(!this.Z("html5_unset_src_on_remove_killswitch"))try{this.B.Tu()}catch(a){}this.B=null}};
g.k.oi=function(a){a=this.fy(a);eW(this,a)};
g.k.Nl=function(a){if(a=g.Y(this,a))this.aa("release presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId),a!==this.l?eW(this,this.l):tya(this)};
g.k.fy=function(a){var b=g.Y(this,a);b||(b=ZV(this,a),dW(this,b));return b};
g.k.setIsExternalPlaylist=function(a){this.Sf=V(!1,a)};
g.k.RM=function(){aW(this)||(this.aa(),this.xj(5))};
g.k.lO=function(a){aW(this)||(this.aa(),Oya(this),g.hK(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return BA(a)};
g.k.T=function(){return this.i};
g.k.getVideoData=function(){return this.u.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.Y(this,a);return a?Lia(a.getVideoData())?1:(a=a.cd())?$J(a):0:0};
g.k.Ka=function(){return this.template};
g.k.Ua=function(){return this.C};
g.k.Mq=function(){return this.J};
g.k.En=function(a){var b=g.Y(this,1);b&&kS(b,a)};
g.k.se=function(){var a=this.C.my();a.fs=this.Ea.isFullscreen();a.volume=Math.round(this.Ea.getVolume());a.muted=this.Ea.isMuted()?1:0;a.mos=a.muted;if(g.U(this.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.PF(this.i)){if(this.Fc){var b=this.Fc;b=null==b.i?null:Math.round(100*b.i)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.pG();1<c&&b.push(c);a.size=b.join(":")}}this.u===this.l&&this.L&&
(a.clipid=this.L.postId);return a};
g.k.wh=function(a){1===a&&(this.J.tick("vr"),this.la||(this.la=Ir(KE,this.mF,this)),Vxa(this.u),koa(this.J,this.u.getVideoData(),Mya(this)));var b=this.i;(zG(b)&&b.u||g.XF(b))&&(this.xd()||this.Ea.xa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.u===this.l&&Yxa(this.u)!==a&&(this.u.setLoop(a),this.Ea.V("loopchange",a))};
g.k.getLoopVideo=function(){return Yxa(this.u)};
g.k.setLoopRange=function(a){var b=!1;!!this.L!==!!a?b=!0:this.L&&a&&(b=this.L.startTimeMs!==a.startTimeMs||this.L.endTimeMs!==a.endTimeMs||this.L.postId!==a.postId);b&&(this.l.X.Oe("applooprange"),a?(b=new g.xD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.l.addCueRange(b)):iW(this).clipConfig=void 0,this.L=a,this.Ea.xa("onLoopRangeChange",a),this.u===this.l&&(sW(this),this.u.On()))};
g.k.getLoopRange=function(){return this.L};
g.k.JG=function(){!this.Z("html5_live_clip_init_killswitch")&&g.W(this.l.getPlayerState(),64)&&iW(this).isLivePlayback&&5E3>this.L.startTimeMs||this.l.seekTo(.001*this.L.startTimeMs)};
g.k.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=oya(this,a);this.l.getPlaybackRate()!==c&&(this.l.setPlaybackRate(c),b&&!this.i.l&&GDa(c),this.Ea.xa("onPlaybackRateChange",c))}};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.RM(this.C).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;var d=c?g.Y(this):g.Y(this,a);if(!d)return 0;if(b){if(c&&this.I&&(c=this.I.ma/1E3,0!==c))return c;d=hW(this,d);return tW(this,d.getCurrentTime(),d)}c&&this.I?(d=d.getCurrentTime(),d=(c=tS(this.I,1E3*d))?d-c.Zb/1E3:d):d=d.getCurrentTime();return d};
g.k.Do=function(){var a=g.Y(this,void 0);if(!a)return 0;a=hW(this,a);return tW(this,a.Do(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;var d=c?g.Y(this):g.Y(this,a);if(!d)return 0;if(b)return c=gW(this,d),tW(this,c.getDuration(),c);c&&this.I?(c=d.getCurrentTime(),c=(c=tS(this.I,1E3*c))?c.durationMs/1E3:0):c=d.getDuration();return c};
g.k.Hc=function(a){a=g.Y(this,a);if(!a)return 0;a=gW(this,a);return tW(this,a.Hc(),a)};
g.k.gf=function(a){var b=g.Y(this,a);return b?this.xd(b)?(b=gW(this,b),b.gf()-b.getCurrentTime()+this.getCurrentTime(a)):b.gf():0};
g.k.Bx=function(){this.template.Bx();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.l)a.l.hasOwnProperty(c)&&(b[c]=a.l[c]);(a=Mt(this.template.element))&&this.events.N(this.template,a,this.zN);this.events.N(window,"resize",this.KO)};
g.k.getDebugText=function(a){var b=this.l.nb(a);if(this.u&&this.u!==this.l){for(var c=this.u.nb(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=re("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.we("video-ads");f?(Vya(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.we("videoAdUiSkipContainer"),l=g.we("ytp-ad-skip-button-container"),m=h||l;m?(Vya(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.B&&(b["0sz"]=0===me(this.B.Vn()),b.op=this.B.Xq("opacity"),c=this.B.ol().y+this.B.Vn().height,b.yof=0>=c,b.dis=this.B.Xq("display"));(a=a?(0,g.AU)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Ea.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=this.Xa().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){var b;return 1===this.Y?1:aW(this)?3:a&&(null===(b=this.I)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.Y(this).getPlayerType()};
g.k.Xa=function(a){return 3===this.getPresentingPlayerType()?g.RM(this.C).Mc:g.Y(this,a).getPlayerState()};
g.k.getAppState=function(){return this.Y};
g.k.dJ=function(a){switch(a.type){case "loadedmetadata":oE("fvb",this.J.timerName)||this.J.tick("fvb");rE("fvb","video_to_ad");this.Db.start();break;case "loadstart":oE("gv",this.J.timerName)||this.J.tick("gv");rE("gv","video_to_ad");break;case "progress":case "timeupdate":!oE("l2s",this.J.timerName)&&2<=rz(a.target.Tf())&&this.J.tick("l2s");break;case "playing":g.xG&&this.Db.start();if(g.fG(this.i))a=!1;else{var b=g.TM(this.Ua());a="none"===this.B.Xq("display")||0===me(this.B.Vn());var c=US(this.template),
d=this.u.getVideoData(),e=tG(this.i)||g.ZF(this.i);d=LH(d);b=!c||b||e||d||this.i.Sb;a=a&&!b}a&&(this.u.Ia("hidden","1",!0),this.getVideoData().La||(this.Z("html5_new_elem_on_hidden")?(this.getVideoData().La=1,this.BF(null),this.u.playVideo()):Rya(this,"hidden",!0)))}};
g.k.JN=function(a,b){this.Ea.xa("onLoadProgress",b)};
g.k.eP=function(){this.Ea.V("playbackstalledatstart")};
g.k.fJ=function(a,b){var c=hW(this,a);b=tW(this,c.getCurrentTime(),c);this.Ea.xa("onVideoProgress",b)};
g.k.uN=function(){this.Ea.xa("onDompaused")};
g.k.wO=function(){this.Ea.V("progresssync")};
g.k.TM=function(a){if(1===this.getPresentingPlayerType()){g.iJ(a,1)&&!g.W(a.state,64)&&iW(this).isLivePlayback&&this.l.isAtLiveHead()&&1<this.Ea.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.iJ(a,2)&&uya(this);if(g.W(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ea.xa("onError",YDa[b.errorCode]||5);this.Ea.xa("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.Mx});
6048E5<(0,g.Q)()-this.i.Pa&&this.Ea.xa("onReloadRequired")}b={};if(a.state.Kb()&&!g.jK(a.state)&&!oE("pbresume","ad_to_video")&&oE("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);nE(b,"ad_to_video");hE("pbresume",void 0,"ad_to_video")}this.Ea.V("applicationplayerstatechange",a)}};
g.k.ZF=function(a){3!==this.getPresentingPlayerType()&&this.Ea.V("presentingplayerstatechange",a)};
g.k.ug=function(a){fW(this,kK(a.state));g.W(a.state,1024)&&this.Ea.isMutedByMutedAutoplay()&&(JM(this,{muted:!1,volume:this.Cg.volume},!1),qW(this,!1))};
g.k.nO=function(a){a.state.Kb()&&!g.jK(a.state)&&(woa(this.C),g.Pt(this.wc))};
g.k.PM=function(a,b,c){"newdata"===a&&Cya(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})};
g.k.YI=function(){this.Ea.xa("onPlaybackAudioChange",this.Ea.getAudioTrack().i.name)};
g.k.eJ=function(a){var b=this.u.getVideoData();a===b&&this.Ea.xa("onPlaybackQualityChange",a.l.Na().quality)};
g.k.Oa=function(a,b,c){this.aa("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.l&&(this.i.Vd=c.oauthToken);if(this.i.u&&this.W){if(c.km&&pI(c)){var d=c.km;c.km=null}else d=null;d&&this.W.i(d)}this.getVideoData().enableServerStitchedDai&&!this.I&&(this.I=new pS(this.Ea,this.i,this.l));if("newdata"===a)this.aa(),lN(this.C,2),this.Ea.V("videoplayerreset",b);else{if(!this.B)return;"dataloaded"===a&&(this.u===this.l?(cG(c.B,c.cC),this.aa(),this.l.getPlayerState().isError()?
this.aa():(d=aW(this),iW(this).Wc(),d&&this.xj(6),wya(this),d||(d=mN(this.C))&&!d.created&&iN(this.C)&&d.create())):wya(this));1===b.getPlayerType()&&(this.i.X&&Uya(this),this.getVideoData().isLivePlayback&&!this.i.Gj&&this.ge("html5.unsupportedlive","DEVICE_FALLBACK"),c.Wc()&&(c.Ye||c.Mw||c.nm||c.L.focEnabled||c.L.rmktEnabled||this.getVideoData().Dp)&&(d=this.getVideoData(),wW(this,"part2viewed",1,0x8000000000000),wW(this,"engagedview",Math.max(1,1E3*d.Db),0x8000000000000),d.isLivePlayback||(d=1E3*
d.lengthSeconds,wW(this,"videoplaytime25",.25*d,d),wW(this,"videoplaytime50",.5*d,d),wW(this,"videoplaytime75",.75*d,d),wW(this,"videoplaytime100",d,0x8000000000000),wW(this,"conversionview",d,0x8000000000000))));this.Ea.V("videodatachange",a,c,b.getPlayerType())}this.Ea.xa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});sW(this);if(b=c.Sr){if(a=this.yl,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=pK();var e=void 0===e?{}:e;Object.values(BDa).includes(c)||
(g.ht(new g.Tr("createClientScreen() called with a non-page VE",c)),c=83769);e.isHistoryNavigation||b.i.push({rootVe:c,key:e.key||""});b.B=[];b.C=[];e.dD?Oka(b,c,e):Nka(b,c,e);Esa(a)}}else Esa(this.yl)};
g.k.Rs=function(){kW(this,null);this.Ea.xa("onPlaylistUpdate")};
g.k.eF=function(a){var b=a.getId(),c=iW(this);if("part2viewed"===b)c.jC&&g.pq(c.jC),c.Mw&&CW(this,c.Mw),c.nm&&DW(this,c.nm);else if("conversionview"===b){var d=this.l.C;d.i&&Mva(d.i)}else"engagedview"===b&&g.pq(c.Ye);if(c.kC){d=c.kC;var e={label:a.getId()};if(g.U(this.i.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.Dp(d,e);g.pq(d)}switch(b){case "videoplaytime25":c.gC&&CW(this,c.gC);c.Ow&&DW(this,c.Ow);c.zC&&g.pq(c.zC);
break;case "videoplaytime50":c.hC&&CW(this,c.hC);c.Pw&&DW(this,c.Pw);c.IC&&g.pq(c.IC);break;case "videoplaytime75":c.iC&&CW(this,c.iC);c.Qw&&DW(this,c.Qw);c.eD&&g.pq(c.eD);break;case "videoplaytime100":c.fC&&CW(this,c.fC),c.Nw&&DW(this,c.Nw),c.sC&&g.pq(c.sC)}(b=this.getVideoData().Dp)&&Hya(b,a.getId())&&Hya(b,a.getId()+"gaia");this.l.removeCueRange(a)};
g.k.xj=function(a){a!==this.Y&&(this.aa(),2===a&&1===this.getPresentingPlayerType()&&(fW(this,-1),fW(this,5)),this.Y=a,this.Ea.V("appstatechange",a))};
g.k.ge=function(a,b,c,d){this.l.Lf(a,b,c,d)};
g.k.yj=ba(5);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.Y(this,a);if(!c)return!1;var d=gW(this,c);c=hW(this,c);return d!==c?d.isAtLiveHead(tW(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.k.kl=function(){var a=g.Y(this,void 0);return a?gW(this,a).kl():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.Y(this,d))2===this.Y&&oW(this),this.xd(d)?this.I?this.I.seekTo(a,b,c):this.ca.seekTo(a,b,c):d.seekTo(a,{nH:!b,oH:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.cJ=function(){this.Ea.xa("SEEK_COMPLETE")};
g.k.VO=function(a,b){var c=a.getVideoData();if(1===this.Y||2===this.Y)c.startSeconds=b;2===this.Y?this.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&g.W(a.getPlayerState(),512)||oW(this):this.Ea.xa("SEEK_TO",b)};
g.k.IM=function(){this.Ea.V("airplayactivechange")};
g.k.JM=function(){this.Ea.V("airplayavailabilitychange")};
g.k.ZM=function(){this.Ea.V("beginseeking")};
g.k.wN=function(){this.Ea.V("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.Y(this,a))?gW(this,a).getVideoData().getStoryboardFormat():null};
g.k.Lg=function(a){return(a=g.Y(this,a))?gW(this,a).getVideoData().Lg():null};
g.k.xd=function(a){if(a=a||this.u){a=a.getVideoData();if(this.I)a=a===this.I.i.getVideoData();else a:{var b=this.ca;if(a===b.l.getVideoData()&&b.i.length)a=!0;else{b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())if(a.Qc===c.value.Qc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.eo=function(a,b,c,d,e,f){this.aa();a=this.I?asa(this.I,a,b,c,d,e,f):msa(this.ca,a,b,c,d,e);this.aa();return a};
g.k.un=function(a){var b;null===(b=this.I)||void 0===b?void 0:b.un(a)};
g.k.Nm=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.I?wS(this.I,a,b):GS(this.ca,a,b)};
g.k.Fp=function(a,b,c){if(this.I){for(var d=this.I,e=null,f=g.q(d.l),h=f.next();!h.done;h=f.next())if(h=h.value,h.Qc===a){e=h;break}e?(d.aa(),void 0===c&&(c=e.Xc),csa(d,e,b,c)):d.fd("Invalid timelinePlaybackId="+a+" specified")}else{d=this.ca;e=null;f=g.q(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Qc===a){e=h;break}e?(d.aa(),void 0===c&&(c=e.Xc),ssa(d,e,b,c)):d.fd("e.InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.xd();a=new g.wH(this.i,a);d&&(a.Qc=d);!g.U(this.i.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.l&&Tva(this.l.C,a.clientPlaybackNonce,a.tc||"",a.breakType||0);Iya(this,a,b,c)};
g.k.wt=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.Y(this);e&&(gW(this,e).Cf=!0);Rra(this.za,a,b,c).then(function(){d.Ea.xa("onQueuedVideoLoaded")},function(){})};
g.k.No=function(){return this.za.No()};
g.k.clearQueue=function(){this.aa();this.za.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f=!1,h=new g.wH(this.i,a);if(!this.Z("web_player_load_video_context_killswitch")&&e){for(;h.rh.length&&h.rh[0].isExpired();)h.rh.shift();f=h.rh.length-1;f=0<f&&e.l(h.rh[f])&&e.l(h.rh[f-1]);h.rh.push(e)}c||(a&&aN(a)?(oG(this.i)&&!this.Sf&&(a.fetch=0),kW(this,a)):this.playlist&&kW(this,null),a&&this.setIsExternalPlaylist(a.external_list),oG(this.i)&&!this.Sf&&lW(this));a=this.nk(h,b,d);f&&this.ge("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+
h.rh.join()).replace(/[;:,]/g,"_"));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=JF(a);d=xW(b,d,e);this.La.get(d)?this.aa():this.u&&this.u.ea.started&&d===xW(this.u.getPlayerType(),this.u.getVideoData().videoId,this.u.getVideoData().Qc)?this.aa():(a=new g.wH(this.i,a),e&&(a.Qc=e),Jya(this,a,b,c))};
g.k.lt=function(a){var b=a.getPlayerType();a!==g.Y(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.l.getVideoData().autonavState,Rt(this.l,this.jc,this),b=this.l.getPlaybackRate(),this.l.dispose(),this.l=a,this.l.setPlaybackRate(b),Qt(a,this.jc,this),Cya(this)):(b=g.Y(this,b))&&b.dispose(),this.u.getPlayerType()===a.getPlayerType()?eW(this,a):dW(this,a))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.C;a=a.G.T().showMiniplayerUiWhenMinimized?a.gd.get("miniplayer"):void 0;a&&(this.me()?a.load():a.unload());this.Ea.V("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.vp=function(a){var b=this.i.Bf&&g.U(this.i.experiments,"html5_block_pip_with_events")||g.U(this.i.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;a&&b&&this.getVideoData()&&!this.getVideoData().backgroundable?this.lc?this.lc.start():this.EC():this.visibility.vp(a)};
g.k.EC=function(){var a,b=null===(a=this.B)||void 0===a?void 0:a.he();b&&Lt(b)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.SO=function(){"picture-in-picture"===this.B.he().webkitPresentationMode?this.vp(!0):this.vp(!1)};
g.k.togglePictureInPicture=function(){var a=g.Y(this);a&&a.togglePictureInPicture()};
g.k.nk=function(a,b,c){var d=this;this.aa();oE("_start",this.J.timerName)||(joa(this.J),this.J.info("srt",0));var e=rW(this,b||this.u.getPlayerType(),a,!1);if(!e){e=g.Y(this,b);if(!e)return!1;this.Db.stop();this.cancelPlayback(4,b);e.Ah(a,function(){return d.se()},c)}e===this.l&&(this.i.Vd=a.oauthToken);
if(!DV(e))return!1;this.ib&&(this.ib=e.I.B=!1);if(e===this.l)return this.xj(1),oW(this);LV(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&aN(a)){this.ma=!0;kW(this,a);var d=this.playlist.Na();d&&d.isValid()?zW(this,d,b):dN(this.playlist,function(){nW(c)})}else{b||(b=this.getPresentingPlayerType());
1===b&&this.Rs();var e=new g.wH(this.i,a);g.PF(this.i)&&!this.i.J&&g.U(this.i.experiments,"embeds_enable_iframe_apis_through_oneplatform")?qoa(e,a?a:{}).then(function(){zW(c,e,b)}):zW(this,e,b)}};
g.k.Ai=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(RF(this.i)||g.sG(this.i))return b=b||{},b.lact=tp(),b.vis=this.Ea.getVisibilityState(),this.Ea.xa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.J;b.i&&(e=b.i,e.i={},e.uq={});b.l=!1;this.J.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.ma=!0;Kya(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.ma=!1;Kya(this,a,b,c,d)};
g.k.Jq=function(){if(this.Ea.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;oG(this.i)&&!this.Sf&&lW(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Wm=ba(3);g.k.nextVideo=function(a,b){var c=this,d=this.l.getVideoData().suggestions;if(g.WM(this.Ea)&&d){d=d.map(function(f){return g.sP(c.i,f)})[0];
var e=b?d.Hx:d.Cd;this.Ai(d.Na().videoId,e,d.getPlaylistId(),b,void 0,d.xC||void 0)}else this.Sf?this.Ea.xa("onPlaylistNext"):3===this.getPresentingPlayerType()?g.RM(this.C).nextVideo():this.playlist&&(oG(this.i)&&!this.Ea.isFullscreen()?vW(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&bN(this.playlist,moa(this.playlist)),this.playlist.loaded?(d=b&&g.U(this.i.experiments,"html5_player_autonav_logging"),this.nk(this.playlist.Na(void 0,b,d),1)):this.ma=!1))};
g.k.previousVideo=function(a){this.Sf?this.Ea.xa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.RM(this.C).Mu():this.playlist&&(oG(this.i)&&!this.Ea.isFullscreen()?vW(this,"yt.www.watch.lists.prev"):(this.playlist.Wi(a)&&bN(this.playlist,noa(this.playlist)),this.playlist.loaded?this.nk(this.playlist.Na(),1):this.ma=!1))};
g.k.playVideoAt=function(a){this.Sf?this.Ea.xa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.nk(this.playlist.Na(a),1):this.ma=!1,bN(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Uq=ba(9);g.k.MM=function(a){this.Ea.xa("onCueRangeEnter",a.getId())};
g.k.OM=function(a){this.Ea.xa("onCueRangeExit",a.getId())};
g.k.eq=function(a,b){var c=g.Y(this,b);c&&(c.eq(a),b&&this.getPresentingPlayerType()!==b||cW(this,"cuerangesadded",a))};
g.k.Gz=function(a,b){var c=g.Y(this,b);c&&(c.Gz(a),b&&this.getPresentingPlayerType()!==b||cW(this,"cuerangesremoved",a))};
g.k.SM=function(){var a=this;this.getPresentingPlayerType();this.la||(this.la=Ir(KE,this.mF,this));koa(this.J,this.u.getVideoData(),Mya(this));jW(this)&&this.i.l&&"embedded"===jI(iW(this))&&this.Tc&&.01>Math.random()&&g.Or("autoplayTriggered",{intentional:this.Sc});this.Tc=!1;this.Ea.xa("onPlaybackStartExternal");g.U(this.i.experiments,"mweb_client_log_screen_associated");(function(){var c=g.iu(a.ld||(a.me()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.U(a.i.experiments,
"web_playback_associated_ve")&&a.getVideoData().ia){var e=g.cu(a.getVideoData().ia);g.pu(c,e,void 0);d.playbackVe=e.getAsJson()}g.U(a.i.experiments,"kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.Z("web_playback_associated_log_ctt")&&a.getVideoData().Ca&&(c.re={token:a.getVideoData().Ca,videoId:a.getVideoData().videoId});g.Or("playbackAssociated",d,c)}})();
kE("player_att",["att_f","att_e"]);if(this.Z("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.Z("web_player_botguard_inline_skip_config_killswitch")&&(oo("BG_I",b.interpreterScript),oo("BG_IU",b.interpreterUrl),oo("BG_P",b.program)),g.qG(this.i)?jp(function(){pW(a)}):pW(this))}sW(this)};
g.k.aJ=function(){this.Ea.V("internalAbandon");this.Z("html5_ad_module_cleanup_killswitch")||uW(this)};
g.k.mF=function(a){a=a.i;if(!isNaN(a)&&0<a&&this.l){var b=this.l.C;b.qoe&&0<a&&(b.qoe.i.aft=[a.toString()])}};
g.k.VN=function(){var a=this.B;a={volume:g.ee(Math.floor(100*a.getVolume()),0,100),muted:a.Lt()};a.muted||qW(this,!1);this.Cg=g.Vb(a);this.Ea.xa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ea.xa("onMutedAutoplayStarts"))};
g.k.zN=function(){var a=AW(this);this.zh(a?1:0);Qya(this,!!a)};
g.k.zh=function(a){var b=!!a,c=!!this.visibility.fullscreen!==b;this.visibility.zh(a);this.template.zh(b);this.Z("html5_media_fullscreen")&&!b&&this.B&&AW(this)===this.B.he()&&this.B.Dq();this.template.resize();c&&this.J.tick("fsc");c&&(this.Ea.V("fullscreentoggled",b),a=iW(this),b={fullscreen:b,videoId:a.Yy||a.videoId,time:this.getCurrentTime()},this.Ea.getPlaylistId()&&(b.listId=this.Ea.getPlaylistId()),this.Ea.xa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.KO=function(){this.u&&(0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||this.zh(AW(this)?1:0),this.i.Bf&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.Dq())};
g.k.IN=function(a){3!==this.getPresentingPlayerType()&&this.Ea.V("liveviewshift",a)};
g.k.playVideo=function(a){this.aa();if(a=g.Y(this,a))2===this.Y?oW(this):(null!=this.X&&this.X.ab&&this.X.start(),g.W(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.Y(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.aa();var a=this.l.getVideoData(),b=new g.wH(this.i,{video_id:a.Yy||a.videoId,oauth_token:a.oauthToken});b.jc=g.Vb(a.jc);this.cancelPlayback(6);zW(this,b,1);null!=this.X&&this.X.stop()};
g.k.cancelPlayback=function(a,b){this.aa();Hr(this.la);this.la=0;var c=g.Y(this,b);if(c)if(1===this.Y||2===this.Y)this.aa();else{c===this.u&&(this.aa(),lN(this.C,a));var d=c.getVideoData();if(this.W&&pI(d)&&d.videoId&&this.Z("hoffle_api")){var e=this.W;d=d.videoId;if(2===Qu(d)){var f=BM(e,d);f&&f!==e.player&&pI(f.getVideoData())&&(YV(f),WH(f.getVideoData(),!1),Tu(d,3),CM(e))}}1===b&&(g.U(this.i.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),uW(this));c.Ol();cW(this,"cuerangesremoved",
OT(c.X)||[]);c.X.reset();this.za&&c.isGapless()&&(c.eg(!0),dS(c,this.B))}else this.aa()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Y(this,b))&&this.i.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.pg=function(a){var b=g.Y(this,void 0);return b&&this.i.enabledEngageTypes.has(a.toString())?b.pg(a):null};
g.k.updatePlaylist=function(){oG(this.i)?lW(this):g.PF(this.i)&&mW(this);this.Ea.xa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Hd=a;this.oc=b;this.Ea.V("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.oc};
g.k.me=function(){return this.visibility.me()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Mo=function(){return this.visibility.Mo()};
g.k.Lo=function(){return this.visibility.Lo()};
g.k.Iy=function(){return this.Hd};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.RM(this.C).getAdState();if(!this.xd()){var a=mN(this.Ua());if(a)return a.getAdState()}return-1};
g.k.JO=function(a){var b=this.template.getVideoContentRect();dg(this.qd,b)||(this.qd=b,this.u&&KV(this.u),this.l&&this.l!==this.u&&KV(this.l),1===this.visibility.fullscreen&&this.Ja&&Qya(this,!0));this.tc&&g.le(this.tc,a)||(this.Ea.V("appresize",a),this.tc=a)};
g.k.Ke=function(){return this.Ea.Ke()};
g.k.aP=function(){2===this.getPresentingPlayerType()&&this.ca.isManifestless()&&!this.Z("web_player_manifestless_ad_signature_expiration_killswitch")?rsa(this.ca):Rya(this,"signature",void 0,!0)};
g.k.BF=function(){this.eg();bW(this)};
g.k.IO=function(a){fS(a,this.B.Ks())};
g.k.bJ=function(a){this.W&&this.W.i(a)};
g.k.Br=function(){this.Ea.xa("CONNECTION_ISSUE")};
g.k.ZI=function(a){this.Ea.V("heartbeatparams",a)};
g.k.Vu=function(a){this.Ea.xa("onAutonavChangeRequest",1!==a)};
g.k.cd=function(){return this.B};
g.k.setBlackout=function(a){this.i.Sb=a;this.u&&(this.u.On(),this.i.X&&Uya(this))};
g.k.setAccountLinkState=function(a){var b=g.Y(this);b&&(b.getVideoData().VE=a,b.On())};
g.k.updateAccountLinkingConfig=function(a){var b=g.Y(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ea.V("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.eO=function(){var a=g.Y(this);if(a){var b=!this.Ea.qr();(a.ld=b)||a.Ca.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}g.U(a.u.experiments,"html5_suspend_loader")&&a.l&&(b?a.l.resume():RV(a,!0));g.U(a.u.experiments,"html5_fludd_suspend")&&(g.W(a.playerState,2)||b?g.W(a.playerState,512)&&b&&a.tb(eK(a.playerState,512)):a.tb(dK(a.playerState,512)));a=a.C;a.qoe&&(a=a.qoe,g.uU(a,g.jS(a.provider),"stream",[b?"A":"I"]))}};
g.k.LN=function(){this.Ea.xa("onLoadedMetadata")};
g.k.vN=function(){this.Ea.xa("onDrmOutputRestricted")};
g.k.Wy=function(){this.Sc=!0};
g.k.da=function(){this.C.dispose();this.ca.dispose();this.I&&this.I.dispose();this.l.dispose();this.eg();g.Fi(g.Jb(this.Ac),this.playlist);Hr(this.la);this.la=0;g.E.prototype.da.call(this)};
g.k.aa=function(){};
g.k.Z=function(a){return g.U(this.i.experiments,a)};
g.k.dv=function(){return this.Wa};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.ld=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=KM(this.Ua()))||void 0===b?void 0:b.Kq(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.Ck;if(this.Z("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.ON&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;d.BG(f,e[a].title);BW(this,e[a].startTime/1E3)}};
g.k.cancelPendingLocalMediaById=function(a){if(this.W&&this.Z("hoffle_api")){var b=this.W,c=Qu(a);1===c||0===c?a=Promise.resolve():(c=BM(b,a),c===b.player?(b.player.stopVideo(),YV(b.player)):c&&(YV(c),WH(c.getVideoData(),!1)),a=Sna(a))}else a=Promise.reject();return a};
g.k.fetchLocalMediaById=function(a){return this.W&&this.Z("hoffle_api")?Wna(this.W,a):Promise.reject()};
g.k.getLocalPlayerResponse=function(a){return this.W&&this.Z("hoffle_api")?Xna(this.W,a):Promise.reject()};
g.k.getLocalMediaInfoById=function(a){return this.W&&this.Z("hoffle_api")?this.W.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.W&&this.Z("hoffle_api")?this.W.getAllLocalMediaInfo():Promise.reject()};
g.k.downloadVideo=function(a){return C(this,function c(){var d=this,e;return z(c,function(f){if(1==f.i)return d.ga&&d.Z("woffle_orchestration")?v(f,Cra(d.ga,[a]),2):f["return"](Promise.reject());e=f.l;return f["return"](e[0])})})};
g.k.refreshAllVideos=function(){return this.ga&&this.Z("woffle_orchestration")?this.ga.refreshAllVideos():Promise.reject()};
g.k.deleteVideos=function(a){return this.ga&&this.Z("woffle_orchestration")?this.ga.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.ga&&this.Z("woffle_orchestration")?this.ga.deleteAllVideos():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.Ea,b=g.Y(this),c=a.getVideoData(),d=a.cd(),e=d.he(),f=b.Yq(),h=b.Fc,l=8*OS(h,"bandwidth")/1024,m=OS(h,"networkactivity")/1024,n=OS(h,"bufferhealth");if(b.J){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.J.i.ff()+"/"+QE(PV(b));p+="/"+b.J.ff()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=nz(d.Tf(),",",3),x="";c.playerResponse&&c.playerResponse.playerConfig&&c.playerResponse.playerConfig.daiConfig&&c.playerResponse.playerConfig.daiConfig.enableDai&&
(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");if(c.fetchType){switch(c.fetchType){case "onesie":var y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}if(y=c.Po)x+="mb:",Object.keys(y.i).length?(y.hasDecryptedBytes()&&(x+="e"),x=mga(y)?x+"c":lga(y)?x+"p":x+"x",nga(y)&&(x+="f")):x+="0",x+=", ";x+="s:"+r+" t:"+t+" b:"+w+" ";d.Tp()&&(x+="S");d.Jk()&&(x+="P");d.cj()&&(x+="E");d=b.C;d=d.qoe?d.qoe.la:void 0;d&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.Jp;d&&d>r.start&&d<r.end&&
(x+=" as");d=x;x=g.pG();r=g.UM(a).RL;t=c.u&&!c.u.i?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){y=0;for(var F="",D=0;10>D;D++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(D)),4==D%5){for(var G="",K=0;6>K;K++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;F+=G}w=F.substr(0,4)+" "+F.substr(4,4)+" "+F.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<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=Kia(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.hj.toFixed(1);
isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.l)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.MV(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=wsa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+wsa(c.J),e.l||e.primaries?(a=e.l||"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.xe;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(UH(c)?" Manifestless":"");else if(e){a=OS(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=UH(c)?"Manifestless, ":"";c.Ri&&(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=NS(h,"bandwidth");l.network_activity_samples=
NS(h,"networkactivity");l.live_latency_samples=NS(h,"livelatency");l.buffer_health_samples=NS(h,"bufferhealth");MH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210307_0_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.L&&this.L.postId?(a=this.i.getVideoUrl(a),a=Td(a,"v"),a.replace("/watch","/clip/"+this.L.postId)):this.i.getVideoUrl(a,b,c,d,e)};
var D0={};g.Da("yt.player.Application.create",g.$V.create,void 0);g.Da("yt.player.Application.createAlternate",g.$V.create,void 0);var E0=bt(),F0={pn:[{kM:/Unable to load player module/,weight:5}]};F0.pn&&(E0.pn=E0.pn.concat(F0.pn));F0.ko&&(E0.ko=E0.ko.concat(F0.ko));var oEa=g.Ha("ytcsi.tick");oEa&&oEa("pe");var pEa={o0:"replaceUrlMacros",uW:"isExternalShelfAllowedFor",YZ:"muteLayout",l_:"onAboutThisAdPopupClosed"};EW.prototype.Ti=function(){return"adLifecycleCommand"};
EW.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.hm(function(){b.controller.bl()});
break;case "END_LINEAR_AD_PLACEMENT":g.hm(function(){b.controller.Oi()});
break;case "FILL_ABOVE_FEED_SLOT":g.hm(function(){a.elementId&&b.controller.Fq(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.hm(function(){b.controller.nq()})}};
EW.prototype.gk=function(a){this.handle(a)};FW.prototype.Ti=function(){return"clearCueRangesCommand"};
FW.prototype.handle=function(){var a=this.wx();g.hm(function(){a.Kf(Array.from(a.Em))})};
FW.prototype.gk=function(a){this.handle(a)};GW.prototype.Ti=function(){return"muteAdEndpoint"};
GW.prototype.handle=function(a){Xya(this,a)};
GW.prototype.gk=function(a,b){Xya(this,a,b)};HW.prototype.Ti=function(){return"openPopupAction"};
HW.prototype.handle=function(){};
HW.prototype.gk=function(a){this.handle(a)};IW.prototype.Ti=function(){return"pingingEndpoint"};
IW.prototype.handle=function(){};
IW.prototype.gk=function(a){this.handle(a)};JW.prototype.Ti=function(){return"urlEndpoint"};
JW.prototype.handle=function(a,b){var c=g.$m(a.url,b);g.IJ(c)};
JW.prototype.gk=function(){tD("Trying to handle UrlEndpoint with no macro in controlflow")};KW.prototype.Ti=function(){return"adPingingEndpoint"};
KW.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.cq.send(a,b,c)};
KW.prototype.gk=function(a,b,c,d){LAa(this.Ga.get(),a,b,void 0,d,c)};LW.prototype.Ti=function(){return"changeEngagementPanelVisibilityAction"};
LW.prototype.handle=function(a){this.G.xa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
LW.prototype.gk=function(a){this.handle(a)};MW.prototype.Ti=function(){return"loggingUrls"};
MW.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.ji.send(d.baseUrl,b,c,d.headers)};
MW.prototype.gk=function(a,b,c,d){a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,LAa(this.Ga.get(),e.baseUrl,b,e.headers,d,c)};g.u(Zya,g.E);var kza=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"]]);var uza=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"]]);var cza=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"]]),aza=new Map([["normal",{Pr:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",hs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Pr:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",hs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Pr:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",hs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Pr:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",hs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Pr:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",hs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(VW,g.E);g.k=VW.prototype;g.k.Ky=function(a){return this.i.Ky(a)};
g.k.Jy=function(a,b){return this.i.Jy(a,b)};
g.k.hy=function(a,b){return this.i.hy(a,b)};
g.k.uh=function(a,b){KX(this.Cb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Kd),d=c.next();!d.done;d=c.next())d.value.uh(a,b)};
g.k.nf=function(a){if(ZW(this.i,a)){wJ(this.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.nf(a);for(var b=g.q(this.Kd),c=b.next();!c.done;c=b.next())c.value.nf(a);hza(this,a)}};
g.k.qf=function(a){if(ZW(this.i,a)){wJ(this.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.qf(a);for(var b=g.q(this.Kd),c=b.next();!c.done;c=b.next())c.value.qf(a);ZW(this.i,a)&&$W(this.i,a).C&&XW(this,a,!1)}};
g.k.Ju=function(a){wJ(this.Cb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);ZW(this.i,a)&&(this.i.Ju(a),XW(this,a,!1))};
g.k.Oc=function(a,b){if(ZW(this.i,a)){aX(this.Cb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Kd),d=c.next();!d.done;d=c.next())d.value.Oc(a,b)}};
g.k.Ad=function(a,b,c){if(ZW(this.i,a)){aX(this.Cb,bza(c),a,b);this.i.Ad(a,b);for(var d=g.q(this.Kd),e=d.next();!e.done;e=d.next())e.value.Ad(a,b,c);(c=mX(this.i,a))&&b.layoutId===c.layoutId&&rza(this,a,!1)}};
g.k.Ne=function(a,b,c){tD(c,a,b,void 0,c.Fm);XW(this,a,!0)};
g.k.da=function(){var a=tza(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())XW(this,b.value,!1);g.E.prototype.da.call(this)};sza.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.u(bX,Wa);g.u(jX,Wa);g.u(qX,g.E);g.k=qX.prototype;g.k.hy=function(a,b){var c=lX(this,a+"_"+b),d=[];c=g.q(c.values());for(var e=c.next();!e.done;e=c.next())d.push(e.value.slot);return d};
g.k.Ky=function(a){for(var b=g.q(this.i.values()),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.i)return!0}return!1};
g.k.Jy=function(a,b){var c=lX(this,a+"_"+b);c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())if(kX(d.value))return!0;return!1};
g.k.Sg=function(a){a=$W(this,a);"not_scheduled"!==a.i&&nX(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.Gq=function(a){a=$W(this,a);a.B="fill_requested";a.J.Gq()};
g.k.nf=function(a){a=$W(this,a);"enter_requested"!==a.i&&nX(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.Ju=function(a){$W(this,a).B="fill_canceled"};
g.k.qf=function(a){a=$W(this,a);"exit_requested"!==a.i&&nX(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Ad=function(a,b){var c=$W(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.i&&nX(c.slot,c.i,"onLayoutExited"),c.i="entered")};g.u(tX,g.E);tX.prototype.u=function(){return this.l};g.u(uX,g.E);uX.prototype.get=function(){this.na()&&tD("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.l());return this.i};g.u(JX,g.E);g.u(LX,g.E);LX.prototype.zd=function(){};
LX.prototype.mf=function(a){var b=this,c=this.i.get(a);c&&(this.i["delete"](a),this.xb.get().removeCueRange(a),rC(this.sb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.fb.get();d=OX(d.Ra.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Jb:c.Jb?zAa(c.slotId,d,c.Jb):void 0,ze:AAa(c.slotId,d,c.ze),Re:AAa(c.slotId,d,c.Re)})]},c.slotId))};
LX.prototype.Qg=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.xb.get().removeCueRange(b);this.i.clear()};
LX.prototype.mj=function(){};g.u(MX,g.E);g.k=MX.prototype;g.k.Sg=function(){};
g.k.rj=function(){};
g.k.nf=function(){};
g.k.ii=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.oj=function(a,b){this.si.has(a)&&this.si.get(a)===b&&tD("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c["delete"](b),0===c.size&&this.i["delete"](a)):tD("Trying to unscheduled a Layout that was not scheduled.",a,b)}else tD("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Oc=function(a,b){this.si.set(a,b)};
g.k.Ad=function(a){this.si["delete"](a)};
g.k.uh=function(){};ZX.prototype.clone=function(a){var b=this;return new ZX(function(){return b.triggerId},a)};$X.prototype.clone=function(a){var b=this;return new $X(function(){return b.triggerId},a)};aY.prototype.clone=function(a){var b=this;return new aY(function(){return b.triggerId},a)};bY.prototype.clone=function(a){var b=this;return new bY(function(){return b.triggerId},a)};cY.prototype.clone=function(a){var b=this;return new cY(function(){return b.triggerId},a)};g.u(fY,g.E);fY.prototype.logEvent=function(a){KX(this,a)};g.u(hY,g.E);g.k=hY.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.Qg=function(a,b,c,d,e,f){var h;if(""===a)tD("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{this.i=a;this.ra.get().Qg(a,b,c,d,e,f);null===(h=this.je)||void 0===h?void 0:h.get().Qg(a,b,c,d,e,f);this.l.Qg(a,b,c,d,e,f);for(var l=g.q(this.listeners),m=l.next();!m.done;m=l.next())m.value.Qg(a,b,c,d,e,f)}};
g.k.gJ=function(){this.i&&this.mj(this.i)};
g.k.mj=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.mj(a)};g.u(iY,g.E);iY.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.i.has(a)?tD("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new DAa(a,b,c,d,f),this.i.set(a.id,{Yd:a,listener:e,zi:h}),this.G.sd([a],h))};
iY.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.G.Kf([b.Yd],b.zi),this.i["delete"](a)):tD("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
iY.prototype.zd=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.zd(a.id)};
iY.prototype.mf=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.mf(a.id)};
g.u(DAa,g.xD);jY.prototype.wh=function(a){this.G.wh(a)};
jY.prototype.xa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.G.xa.apply(this.G,[a].concat(g.la(c)))};nY.prototype.Ae=function(a,b){if(!this.i.has(a))return{};if("seek"===b){var c=g.U(this.G.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");nl(a,c);return{}}c=hja(b);if(null===c)return{};if(g.U(this.G.T().experiments,"enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return tD("Unexpected call to Lidar API when the player is not playing ads",void 0,void 0,{layoutId:a,trackingType:b}),{};var d=this.G.hc();d=d&&(g.U(this.G.T().experiments,"enable_server_stitched_dai")||
2===d.getPlayerType())&&cJ(d);if(!d)return{};d={opt_adElement:d,opt_fullscreen:this.ra.get().isFullscreen()};return ml(c,a,d)};
nY.prototype.Fu=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Fu()};
nY.prototype.Eu=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Eu()};
nY.prototype.Gu=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Gu()};pY.prototype.pg=function(){var a=this.G.hc();return a&&(a=a.pg(1))?a:null};g.u(uY,g.E);g.k=uY.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.xP=function(a,b,c){RAa(this,b,c)};
g.k.WO=function(a){var b=this.G.getPresentingPlayerType(!0),c=this.G.getVideoData(b);c?RAa(this,c,b):tD("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.da=function(){this.listeners.length=0;this.Sm=null;g.E.prototype.da.call(this)};g.u(vY,g.E);g.k=vY.prototype;g.k.Qg=function(){var a=this;this.Yk=$a(function(){a.G.na()||a.G.jd("ad",1)})};
g.k.mj=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.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.getCurrentTimeSec=function(a,b){return this.G.getCurrentTime(a,b)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.xO=function(){if(2===this.G.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hl(a)};
g.k.oO=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.vn(a)};
g.k.Zf=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zf(a)};
g.k.Tg=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.Tg()};
g.k.Rg=function(){for(var a=this.G.me(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Rg(a)};
g.k.Ta=function(){for(var a=this.G.Ka().Vf(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.sn(a)};g.u(UAa,g.E);wY.prototype.executeCommand=function(a,b,c){LK(this.qq(),a,b,c)};
wY.prototype.lg=function(a,b,c){Pla(this.qq(),a,b,c)};yY.prototype.Gq=function(){var a=this;XAa(this.i,function(){var b=PW(a.slot.oa,"metadata_type_ad_break_request_data");return a.rd.get().fetch({zH:b.getAdBreakUrl,bD:new g.xD(b.vG,b.uG),wq:PW(a.slot.oa,"metadata_type_cue_point")})},function(b){var c;
b=b.Nj;2<=b.length&&tD("Unexpected ad placement renderers length",a.slot,null,{length:b.length});var d=PW(a.slot.oa,"metadata_type_cue_point");b.some(function(e){var f,h,l;return null===(l=null===(h=null===(f=e.renderer)||void 0===f?void 0:f.linearAdSequenceRenderer)||void 0===h?void 0:h.linearAds)||void 0===l?void 0:l.length})||(null===(c=a.qe)||void 0===c?void 0:c.get().un(d.identifier))})};
yY.prototype.ex=function(){YAa(this.i)};zY.prototype.Gq=function(){var a=this;XAa(this.i,function(){var b=PW(a.slot.oa,"metadata_type_ad_break_request_data");return a.rd.get().fetch({zH:b.getAdBreakUrl,bD:new g.xD(b.vG,b.uG)})})};
zY.prototype.ex=function(){YAa(this.i)};AY.prototype.Gq=function(){iza(this.callback,this.slot,PW(this.slot.oa,"metadata_type_fulfilled_layout"))};
AY.prototype.ex=function(){YW(this.callback,this.slot,new jX("Got CancelSlotFulfilling request for "+this.slot.Ya+" in DirectFulfillmentAdapter."))};CY.prototype.Ef=function(a,b){return BY(b,{ie:["metadata_type_fulfilled_layout"]})?new AY(a,b):this.i(a,b)};g.u(DY,CY);DY.prototype.i=function(a,b){if(BY(b,{ie:["metadata_type_ad_break_request_data","metadata_type_cue_point"],Ya:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yY(a,b,this.rd,this.yb,this.eb,this.qe);if(BY(b,{ie:["metadata_type_ad_break_request_data"],Ya:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zY(a,b,this.rd,this.yb,this.eb);throw new jX("Unsupported slot with type: "+b.Ya+" and client metadata: "+QW(b.oa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(EY,CY);EY.prototype.i=function(a,b){throw new jX("Unsupported slot with type: "+b.Ya+" and client metadata: "+QW(b.oa)+" in DefaultFulfillmentAdapterFactory.");};g.k=ZAa.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=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.Ne(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=PW(a.oa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.Ya?(this.callback.Oc(this.slot,a),eha(this.i,this.slot,b)):tD("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Ug=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Ad(this.slot,a,b)};GY.prototype.Ef=function(a,b,c,d){if(FY(d,{ie:["metadata_type_ad_break_response_data"],Xf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ZAa(a,c,d,this.i);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};HY.prototype.Ae=function(a){var b=this.B.get(a)||[];MAa(this.Ga.get(),this.layoutId,a,b);this.i.add(a)};g.k=aBa.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Oc(this.slot,a),KY(this.l,"impression"),WY(this.i,a.layoutId))};
g.k.Ug=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Ad(this.slot,a,b)};LY.prototype.Ef=function(a,b,c,d){if(FY(d,bBa()))return new aBa(a,c,d,this.Ga,this.i);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(MY,g.R);g.k=MY.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){this.l.get().addListener(this)};
g.k.release=function(){this.l.get().removeListener(this);this.dispose()};
g.k.dr=function(){};
g.k.sy=function(){};
g.k.qy=function(){};
g.k.Wt=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.l.get(),wBa(a,this.i,1))};
g.k.Ug=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Ne(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.l.get();wBa(c,this.i,3);this.i=[];this.callback.Ad(this.slot,a,b)}};
g.k.da=function(){this.l.get().removeListener(this);g.R.prototype.da.call(this)};g.u(cBa,eJ);g.u(PY,MY);g.k=PY.prototype;g.k.Ng=function(a,b){OY("action-companion",a,this.J.get().si,this.Ga.get(),this.u,this.C,this.Zd(),this.Nb(),b)};
g.k.startRendering=function(a){NY(this.I,this.Zd(),this.Nb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new cBa(b,c,d,e,f)},this.i);
MY.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?KY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Ga.get().pg():tD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ad=function(){};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.da=function(){this.B().Kd["delete"](this);MY.prototype.da.call(this)};g.u(QY,MY);QY.prototype.init=function(){MY.prototype.init.call(this);var a=PW(this.layout.oa,"metadata_type_ad_action_interstitial_renderer"),b=JY(this.u);this.i.push(new mJ(a,b,this.layout.layoutId,{adsClientData:this.layout.sc},!0,!0))};
QY.prototype.startRendering=function(a){MY.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
QY.prototype.Ng=function(){};
QY.prototype.da=function(){MY.prototype.da.call(this)};g.u(RY,MY);RY.prototype.init=function(){MY.prototype.init.call(this);var a=PW(this.layout.oa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.sc},c=!PW(this.layout.oa,"metadata_type_player_bytes_callback").Gy;this.i.push(new JJ(a,this.layout.layoutId,PW(this.layout.oa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
RY.prototype.startRendering=function(a){MY.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
RY.prototype.Ng=function(a){a:{var b=this.B.get();var c=this.C;b=g.q(b.si.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.Ga.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.u||(a=this.ra.get(),2===a.G.getPlayerState(2)&&a.G.playVideo());break;case "ad-info-icon-button":(this.u=2===this.ra.get().G.getPlayerState(2))||
this.ra.get().pauseVideo();break;case "visit-advertiser":this.ra.get().pauseVideo();PW(this.layout.oa,"metadata_type_player_bytes_callback").Iz();break;case "skip-button":a=PW(this.layout.oa,"metadata_type_player_bytes_callback"),a.Gy&&a.TF()}};
RY.prototype.da=function(){MY.prototype.da.call(this)};TY.prototype.Ef=function(a,b,c,d){if(a=SY(a,c,d,this.Tb,this.ra,this.Ga,this.i))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(UY,g.E);g.k=UY.prototype;g.k.startRendering=function(a){a.layoutId!==this.Nb().layoutId?this.callback.Ne(this.Zd(),a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Nb().layoutId+("and LayoutType: "+this.Nb().layoutType))):(this.ra.get().addListener(this),this.ra.get().G.oi(2),rka(this.Vc.get()),this.AB(a))};
g.k.Ug=function(a,b){this.BB(a,b);this.ra.get().G.Nl(2);this.bd.get().G.cueVideoByPlayerVars({},2);var c=oY(this.ra.get(),1);g.W(c,4)&&!g.W(c,2)&&this.ra.get().playVideo();this.ra.get().removeListener(this)};
g.k.vn=function(a){var b,c;EAa(this.Aa.get())&&a.state.isError()&&this.Ne(null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new bX("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:c.errorCode}))};
g.k.Hl=function(){};
g.k.Zf=function(){};
g.k.Rg=function(){};
g.k.sn=function(){};
g.k.Tg=function(){};g.u(VY,UY);g.k=VY.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){if(1>=this.l.length)throw new jX("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.l.length)});for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b=b.value,b.init(),fX(this.u,this.slot,b.Nb())};
g.k.release=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()};
g.k.AB=function(){-1===this.i&&gBa(this)};
g.k.fP=function(a,b){gX(this.u,a,b)};
g.k.BB=function(a,b){var c=this;if(this.i!==this.l.length){var d=this.l[this.i];d.Ug(d.Nb(),b);this.B=function(){c.callback.Ad(c.slot,c.layout,b)}}else this.callback.Ad(this.slot,this.layout,b)};
g.k.Ne=function(a,b){-1===this.i&&(this.callback.Oc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.Yo(a,b):tD("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Nb().layoutId})};
g.k.hP=function(a,b,c){hBa(this,a,b,c)};
g.k.gP=function(a,b){hBa(this,a,b,"error")};g.u(ZY,g.E);g.k=ZY.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){WW(this.W(),this);this.ra.get().addListener(this);var a=PW(this.layout.oa,"metadata_type_video_length_seconds");HAa(this.jb.get(),this.layout.layoutId,a,this);sY(this.Ga.get(),this);this.fE()};
g.k.release=function(){this.W().Kd["delete"](this);this.ra.get().removeListener(this);IAa(this.jb.get(),this.layout.layoutId);tY(this.Ga.get(),this);this.AG()};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",oja(this.Id.get(),1)?(this.lq(!1),this.C(-1),this.DB(a)):this.Yo("ui_unstable",new bX("Failed to render media layout because ad ui unstable.")))};
g.k.Oc=function(a,b){var c;if(b.layoutId===this.layout.layoutId){this.l="rendering";KY(this.i,"impression");KY(this.i,"start");this.ra.get().isMuted()&&this.i.Ae("mute");this.ra.get().isFullscreen()&&this.i.Ae("fullscreen");tka(this.Vc.get());this.C(1);this.uF();var d=(null===(c=PW(this.layout.oa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))||void 0===c?void 0:c.impressionCommands)||[];this.dc.get().lg(d,this.layout.layoutId)}};
g.k.Yo=function(a,b){this.ea={Gv:3,ys:"load_timeout"===a?402:400,errorMessage:b.message};KY(this.i,"error");this.callback.Ne(this.slot,this.layout,b)};
g.k.Ug=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ne(this.slot,a,new bX("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.l&&(this.l="rendering_stop_requested",this.J=b,this.EB())};
g.k.Ad=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.l="not_rendering",this.J=void 0,WJ(this.Vc.get()),this.lq(!0),this.vF(c),this.C(0),c){case "abandoned":var d;if(this.i.i.has("impression")){KY(this.i,"abandon");var e=(null===(d=PW(this.layout.oa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))||void 0===d?void 0:d.abandonCommands)||[];this.dc.get().lg(e,this.layout.layoutId)}break;case "normal":KY(this.i,"complete");d=(null===(e=PW(this.layout.oa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))||
void 0===e?void 0:e.completeCommands)||[];this.dc.get().lg(d,this.layout.layoutId);break;case "skipped":KY(this.i,"skip")}};
g.k.Rq=function(){return this.layout.layoutId};
g.k.Ux=function(){return this.ea};
g.k.vn=function(a){var b,c;if("not_rendering"!==this.l)if(this.Y||(a=new g.gJ(a.state,new g.bK),this.Y=!0),a.state.isError()&&!EAa(this.Aa.get()))this.Yo(null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new bX("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:c.errorCode}));else{var d=2===this.ra.get().getPresentingPlayerType();"rendering_start_requested"===this.l?d&&XY(a)&&this.X():d?g.iJ(a,2)?this.CB():(XY(a)?this.C(1):
g.iJ(a,4)&&!g.iJ(a,2)&&"rendering"===this.l&&(this.i.Ae("pause"),this.C(2),this.SD()),0>hJ(a,4)&&!(0>hJ(a,2))&&"rendering"===this.l&&(this.i.Ae("resume"),this.TD())):this.I()}};
g.k.Fu=function(){"rendering"===this.l&&KY(this.i,"active_view_measurable")};
g.k.Eu=function(){"rendering"===this.l&&KY(this.i,"active_view_fully_viewable_audible_half_duration")};
g.k.Gu=function(){"rendering"===this.l&&KY(this.i,"active_view_viewable")};
g.k.lq=function(a){this.Vc.get().lq(PW(this.layout.oa,"metadata_type_ad_placement_config").kind,a,this.position,this.ca,!1)};
g.k.Zf=function(a){"rendering"===this.l&&(a?this.i.Ae("fullscreen"):this.i.Ae("end_fullscreen"))};
g.k.Tg=function(){"rendering"===this.l&&this.i.Ae(this.ra.get().isMuted()?"mute":"unmute")};
g.k.Rg=function(){};
g.k.sn=function(){};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};g.u(aZ,ZY);g.k=aZ.prototype;g.k.fE=function(){};
g.k.AG=function(){};
g.k.DB=function(){this.X()};
g.k.uF=function(){jBa(this)};
g.k.CB=function(){};
g.k.SD=function(){this.B.stop()};
g.k.TD=function(){jBa(this)};
g.k.Qq=function(){return PW(this.Nb().oa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.EB=function(){this.B.stop()};
g.k.Ab=function(){var a=Date.now(),b=a-this.L;this.L=a;this.u+=b;this.u>=this.Qq()?(this.u=this.Qq(),$Y(this,this.u/1E3,!0),bZ(this,this.u),this.I()):($Y(this,this.u/1E3),bZ(this,this.u))};
g.k.vF=function(){};
g.k.Hl=function(){};g.u(cZ,ZY);g.k=cZ.prototype;g.k.fE=function(){PW(this.Nb().oa,"metadata_type_player_bytes_callback_ref").current=this};
g.k.AG=function(){PW(this.Nb().oa,"metadata_type_player_bytes_callback_ref").current=null;this.u&&this.xb.get().removeCueRange(this.u);this.u=void 0;this.B.dispose()};
g.k.DB=function(a){var b=PW(a.oa,"metadata_type_ad_video_id"),c=PW(a.oa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Nd.get().G.T().L.add(b,{mq:c});(b=PW(a.oa,"metadata_type_sodar_extension_data"))&&VAa(this.Dd.get(),b);TAa(this.ra.get(),!1);b=this.bd.get();a=PW(a.oa,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.B.start();this.bd.get().G.playVideo(2)};
g.k.Oc=function(a,b){"not_rendering"!==this.l&&"SLOT_TYPE_IN_PLAYER"===a.Ya&&"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===b.layoutType&&(this.Ko=b.layoutId);ZY.prototype.Oc.call(this,a,b)};
g.k.uF=function(){var a;this.B.stop();this.u="adcompletioncuerange:"+this.Nb().layoutId;this.xb.get().addCueRange(this.u,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=tC(this.Fa.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||tD("Media layout confirmed started, but ad CPN not set.");this.fc.get().xa("onAdStart",this.adCpn)};
g.k.CB=function(){this.I()};
g.k.SD=function(){};
g.k.TD=function(){};
g.k.Qq=function(){var a;return null===(a=tC(this.Fa.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.Iz=function(){this.i.Ae("clickthrough")};
g.k.EB=function(){this.B.stop();TAa(this.ra.get(),!0)};
g.k.zd=function(a){a!==this.u?tD("Received CueRangeEnter signal for unknown layout.",this.Zd(),this.Nb(),{cueRangeId:a}):(this.xb.get().removeCueRange(this.u),this.u=void 0,a=PW(this.Nb().oa,"metadata_type_video_length_seconds"),$Y(this,a,!0),KY(this.i,"complete"),g.U(this.Aa.get().G.T().experiments,"html5_enable_layout_exit_on_cue_range_complete_in_pacf")&&this.I())};
g.k.vF=function(a){var b;this.Nb().oa.i.has("metadata_type_ad_intro")||this.Ko||tD("InPlayer layout never entered for media layout.",this.Zd(),this.Nb(),{adCpn:this.adCpn||"empty",layoutExitReason:String(a),layoutId:this.Nb().layoutId,slotEntryTrigger:String(null===(b=this.Zd().Jb)||void 0===b?void 0:b.triggerType),position:String(this.position),totalLayouts:String(this.ca)});this.Ko=void 0;"abandoned"!==a&&this.fc.get().xa("onAdComplete");this.fc.get().xa("onAdEnd",this.adCpn)};
g.k.mf=function(){};
g.k.Hl=function(a){"rendering"===this.l&&$Y(this,a)};g.u(dZ,UY);g.k=dZ.prototype;g.k.Zd=function(){return this.i.Zd()};
g.k.Nb=function(){return this.i.Nb()};
g.k.init=function(){this.i.init()};
g.k.release=function(){this.i.release()};
g.k.AB=function(a){this.i.startRendering(a)};
g.k.BB=function(a,b){this.i.Ug(a,b)};
g.k.Ne=function(a,b){this.i.Yo(a,b)};eZ.prototype.Ef=function(a,b,c,d){if(a=mBa(a,b,c,d,this.i,this.l,this.Ga,this.jb,this.Dd,this.bd,this.Fa,this.ra,this.xb,this.Vc,this.fc,this.Id,this.dc,this.Nd,this.Aa))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(fZ,g.E);g.k=fZ.prototype;g.k.Oc=function(a,b){var c=this;if(nBa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&NW(b,this.u)){var d=tC(this.Fa.get(),2),e=this.i(b,d);e?rC(this.sb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[BAa(c.fb.get(),e.contentCpn,e.wv,function(f){return c.l(f.slotId,"core",e,TW(c.eb.get(),f))},e.dE)]}):tD("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.nf=function(){};
g.k.ii=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.Ad=function(){};var UZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=pBa.prototype;g.k.init=function(){};
g.k.Zd=function(){return this.slot};
g.k.Kx=function(){this.callback.nf(this.slot)};
g.k.Px=function(){this.callback.qf(this.slot)};
g.k.release=function(){};hZ.prototype.Ef=function(a,b){return new pBa(a,b)};g.k=qBa.prototype;g.k.init=function(){};
g.k.Zd=function(){return this.slot};
g.k.Kx=function(){var a=this.ra.get();g.N(a.G.getRootNode(),"ad-showing");this.callback.nf(this.slot)};
g.k.Px=function(){this.callback.qf(this.slot);var a=this.ra.get();g.mn(a.G.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=rBa.prototype;g.k.init=function(){oD(this.slot)&&(this.i=!0)};
g.k.Zd=function(){return this.slot};
g.k.Kx=function(){var a=this.ra.get();g.N(a.G.getRootNode(),"ad-showing");a=this.ra.get();g.N(a.G.getRootNode(),"ad-interrupting");this.callback.nf(this.slot)};
g.k.Px=function(){sBa(this);var a=this.ra.get();g.mn(a.G.getRootNode(),"ad-showing");a=this.ra.get();g.mn(a.G.getRootNode(),"ad-interrupting");this.callback.qf(this.slot)};
g.k.release=function(){sBa(this)};iZ.prototype.Ef=function(a,b){if(mD(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new qBa(a,b,this.ra);if(mD(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new rBa(a,b,this.ra);throw new jX("Unsupported slot with type "+b.Ya+" and client metadata: "+(QW(b.oa)+" in PlayerBytesSlotAdapterFactory."));};g.u(kZ,g.E);kZ.prototype.dr=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 zX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Fd===a&&b.push(d)}b.length&&hX(this.pw(),b)};g.u(lZ,kZ);g.k=lZ.prototype;
g.k.Ng=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 AX&&f.Fd===b&&c.push(e)}c.length?hX(this.pw(),c):tD("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 zX&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===e.category&&f.Fd===b&&c.push(e);c.length&&hX(this.pw(),
c)}};
g.k.dr=function(a){kZ.prototype.dr.call(this,a)};
g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof AX||b instanceof zX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.ob.set(b.triggerId,new jZ(a,b,c,d))};
g.k.Fh=function(a){this.ob["delete"](a.triggerId)};
g.k.sy=function(){};
g.k.qy=function(){};
g.k.Wt=function(){};g.u(mZ,g.E);g.k=mZ.prototype;
g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof ZX||b instanceof $X||b instanceof aY||b instanceof bY||b instanceof cY||b instanceof RX||b instanceof pD||b instanceof yX||b instanceof FX||b instanceof QX||b instanceof VX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new jZ(a,b,c,d);this.ob.set(b.triggerId,a);b instanceof cY&&this.C.has(b.hg)&&
hX(this.i(),[a]);b instanceof ZX&&this.u.has(b.hg)&&hX(this.i(),[a]);b instanceof pD&&this.l.has(b.Fd)&&hX(this.i(),[a])};
g.k.Fh=function(a){this.ob["delete"](a.triggerId)};
g.k.Sg=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 cY&&a.slotId===d.trigger.hg&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.rj=function(a){this.C["delete"](a.slotId)};
g.k.ii=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 RX&&e.Ya===a.Ya&&e.i!==a.slotId&&b.push(d)}0<b.length&&hX(this.i(),b)};
g.k.nf=function(a){this.u.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 ZX&&a.slotId===d.trigger.hg&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.qf=function(a){this.u["delete"](a.slotId);this.B.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 $X)a.slotId===d.trigger.hg&&b.push(d);else if(d.trigger instanceof VX){var e=d.trigger;a.slotId===e.slotId&&this.l.has(e.Fd)&&b.push(d)}0<b.length&&hX(this.i(),b)};
g.k.pj=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 aY&&a.slotId===d.trigger.hg&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.qj=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 bY&&a.slotId===d.trigger.hg&&b.push(d);0<b.length&&hX(this.i(),b)};
g.k.gi=function(a,b){this.I.add(b.layoutId)};
g.k.oj=function(a,b){this.I["delete"](b.layoutId)};
g.k.Oc=function(a,b){this.l.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 pD)b.layoutId===e.trigger.Fd&&c.push(e);else if(e.trigger instanceof QX){var f=e.trigger;a.Ya===f.Ya&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof VX&&(f=e.trigger,b.layoutId===f.Fd&&this.B.has(f.slotId)&&c.push(e));0<c.length&&hX(this.i(),c)};
g.k.Ad=function(a,b,c){this.l["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 yX&&b.layoutId===e.trigger.Fd&&a.push(e),e.trigger instanceof FX&&b.layoutId===e.trigger.Fd&&"error"===c&&a.push(e);0<a.length&&hX(this.i(),a)};
g.k.uh=function(){};
g.k.Qg=function(){this.B.clear()};
g.k.mj=function(){};g.u(nZ,g.E);nZ.prototype.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof nD||b instanceof XX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ob.set(b.triggerId,new jZ(a,b,c,d))};
nZ.prototype.Fh=function(a){this.ob["delete"](a.triggerId)};
nZ.prototype.Qg=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 nD&&h.trigger.yk===a&&e.push(h);d.call(c,b,g.la(e));b.push.apply(b,g.la(tBa(this.ob,a,!1)));b.length&&hX(this.i(),b)};
nZ.prototype.mj=function(a){var b=[];b.push.apply(b,g.la(tBa(this.ob,a,!0)));b.length&&hX(this.i(),b)};g.u(oZ,g.E);g.k=oZ.prototype;
g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof qD)pZ(this,a,b,c,d,e,b.i.start,b.i.end,b.yk,b.visible);else if(b instanceof WX)pZ(this,a,b,c,d,e,b.i.start,b.i.end,b.yk,!1);else if(b instanceof UX)pZ(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.yk,b.visible);else throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Fh=function(a){var b=this.ob.get(a.triggerId);b&&(this.xb.get().removeCueRange(b.oo),this.l["delete"](b.oo));this.ob["delete"](a.triggerId)};
g.k.zd=function(a){if(!this.l.has(a)&&(a=uBa(this,a))&&(a=this.ob.get(a)))if(g.W(oY(this.ra.get()),32))this.i.add(a.oo);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof qD||b instanceof UX)b instanceof qD&&b.u&&this.l.add(a.oo),hX(this.u(),[a.bundle])}};
g.k.mf=function(a){if(a=uBa(this,a))if(a=this.ob.get(a))this.i["delete"](a.oo),a.bundle.trigger instanceof WX&&hX(this.u(),[a.bundle])};
g.k.vn=function(a){if(0>hJ(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.zd(b.value);this.i.clear()}};
g.k.Hl=function(){};
g.k.Zf=function(){};
g.k.Rg=function(){};
g.k.sn=function(){};
g.k.Tg=function(){};g.u(qZ,g.E);g.k=qZ.prototype;g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof BX||b instanceof YX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ob.set(b.triggerId,new jZ(a,b,c,d))};
g.k.Fh=function(a){this.ob["delete"](a.triggerId)};
g.k.bl=function(){};
g.k.Oi=function(){};
g.k.Oc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.Ya&&(null!=this.i?tD("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Ad=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Ya&&(this.i=null)};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Ya&&(null!=this.l?tD("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.l=a.slotId)};
g.k.qf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Ya&&(null===this.l?tD("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.nq=function(){null!=this.i&&WY(this,this.i)};
g.k.Fq=function(a){if(null===this.l){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YX&&d.trigger.slotId===a&&b.push(d);b.length&&hX(this.u(),b)}};g.u(rZ,g.E);g.k=rZ.prototype;g.k.uh=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&&hX(this.i(),c)};
g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof vAa))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.ob.set(b.triggerId,new jZ(a,b,c,d))};
g.k.Fh=function(a){this.ob["delete"](a.triggerId)};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.Oc=function(){};
g.k.Ad=function(){};g.u(sZ,g.E);sZ.prototype.da=function(){this.dd.get().removeListener(this);g.E.prototype.da.call(this)};tZ.prototype.fetch=function(a){var b=this,c=a.bD;return this.Mk.fetch(a.zH,{wq:void 0===a.wq?void 0:a.wq,Yd:c}).then(function(d){var e=null,f=null;if(g.U(b.Aa.get().G.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.ht(h)))}return vBa(f,c)})};g.u(uZ,g.E);g.k=uZ.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){vZ(this,function(c){c.Ng(a,b)})};
g.k.iz=function(a){vZ(this,function(b){b.sy(a)})};
g.k.hz=function(a){vZ(this,function(b){b.qy(a)})};
g.k.GM=function(a){vZ(this,function(b){b.Wt(a)})};yZ.prototype.addListener=function(a){this.listeners.push(a)};
yZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=yBa.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){var a;this.Fa.get().addListener(this);this.je.get().addListener(this);this.ra.get().addListener(this);this.l.forEach(function(f){f.init()});
var b=PW(this.layout.oa,"metadata_type_layout_enter_ms"),c=PW(this.layout.oa,"metadata_type_layout_exit_ms"),d=null===(a=this.Fa.get().Sm)||void 0===a?void 0:a.clientPlaybackNonce;rY(this.Ga.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:this.layout.sc.adClientDataEntry}});var e=BBa(this.je.get(),b,c);null!==e&&(rY(this.Ga.get(),{daiStateTrigger:{filledAdsDurationMs:e-b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.sc.adClientDataEntry}}),
this.qe.get().Nm(e,c))};
g.k.release=function(){this.i=null;this.l.forEach(function(a){a.release()});
this.Fa.get().removeListener(this);this.je.get().removeListener(this);this.ra.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.i)tD("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Fa.get().Sm)||void 0===a?void 0:a.layoutId;ABa(this,b);this.callback.Oc(this.slot,this.layout);KY(this.u,"ad_placement_start")}};
g.k.Ug=function(a,b){var c,d,e,f;null===(d=null===(c=this.i)||void 0===c?void 0:c.hh)||void 0===d?void 0:d.Ug(null===(f=null===(e=this.i)||void 0===e?void 0:e.hh)||void 0===f?void 0:f.Nb(),b);this.i=null;null!==this.driftRecoveryMs&&(zZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(CBa(this)-PW(this.layout.oa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.ra.get().G.kl()).toString()}),this.driftRecoveryMs=null);this.callback.Ad(this.slot,
this.layout,b);if("normal"!==b)var h=!1;else{h=this.ra.get().getCurrentTimeSec(2,!0);var l=PW(this.layout.oa,"metadata_type_layout_exit_ms")/1E3;h=1>=Math.abs(h-l)}h&&KY(this.u,"ad_placement_end")};
g.k.GF=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.hh)||void 0===b?void 0:b.Nb().layoutId)!==a&&(null===(c=this.i.hh)||void 0===c?void 0:c.Ug(null===(d=this.i.hh)||void 0===d?void 0:d.Nb(),"normal"),ABa(this,a))};
g.k.yF=function(){};
g.k.nF=function(a){var b,c=PW(this.layout.oa,"metadata_type_layout_enter_ms"),d=PW(this.layout.oa,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(rY(this.Ga.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.Fa.get().Sm)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.sc.adClientDataEntry}}),this.qe.get().Nm(a,d))};
g.k.Hl=function(){var a=this.ra.get().getCurrentTimeSec(2,!0);if(this.i){var b=PW(this.layout.oa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=CBa(this),e=this.ra.get().G.kl(),f=Math.min(a+e,d/1E3);f<=a?zZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(zZ(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.ra.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.vn=function(){};
g.k.Zf=function(){};
g.k.Rg=function(){};
g.k.sn=function(){};
g.k.Tg=function(){};g.k=DBa.prototype;g.k.Zd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){PW(this.layout.oa,"metadata_type_player_bytes_callback_ref").current=this;var a=PW(this.layout.oa,"metadata_type_video_length_seconds"),b=PW(this.layout.oa,"metadata_type_player_vars"),c=PW(this.layout.oa,"metadata_type_layout_enter_ms"),d=PW(this.layout.oa,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c)if(b=this.qe.get().eo(b,2,e,c,d)){var f=this.Rc.get(),h=this.slot.slotId,l=this.layout.layoutId;b?(f.i.has(b)&&tD("Unexpected remap of timeline playback"),f.i.set(b,{slotId:h,layoutId:l})):
tD("Invalid timeline playback ID");c+e>d&&(c=d-c,this.qe.get().Fp(b,c))}else tD("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},AZ(this.layout)),{compositeLayout:HBa(PW(this.slot.oa,"metadata_type_fulfilled_layout"))}));else tD("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},AZ(this.layout)),{compositeLayout:HBa(PW(this.slot.oa,"metadata_type_fulfilled_layout"))}),!0);this.ra.get().addListener(this);HAa(this.jb.get(),
this.layout.layoutId,a,this);fX(this.callback,this.slot,this.layout)};
g.k.release=function(){this.ra.get().removeListener(this);IAa(this.jb.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.l)tD("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={Ry:null,KG:!1};var a=PW(this.layout.oa,"metadata_type_sodar_extension_data");if(a)try{VAa(this.Dd.get(),a)}catch(b){tD("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}KY(this.i,"start");mY(this.Aa.get())&&(a=oY(this.ra.get()),a=new g.gJ(a,new g.bK),FBa(this,this.l,a));gX(this.callback,this.slot,this.layout)}};
g.k.Ug=function(a,b){this.l?(mY(this.Aa.get())&&EBa(this,null,this.l),this.l=null,MJ(this.callback,this.slot,this.layout,b)):tD("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Yo=function(){};
g.k.Hl=function(a){if(this.l){if(this.i.i.has("impression")){var b=oY(this.ra.get());GBa(this,b,a,this.l.Ry)}this.l.Ry=a}};
g.k.vn=function(a){this.l&&(mY(this.Aa.get())||this.l.KG||(this.l.KG=!0,a=new g.gJ(a.state,new g.bK)),FBa(this,this.l,a))};
g.k.Zf=function(a){this.i.i.has("impression")&&this.i.Ae(a?"fullscreen":"end_fullscreen")};
g.k.Rg=function(){};
g.k.sn=function(){};
g.k.TF=function(){};
g.k.Tg=function(){};
g.k.Iz=function(){this.i.i.has("impression")&&this.i.Ae("clickthrough")};
g.k.Fu=function(){this.i.Ae("active_view_measurable")};
g.k.Eu=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ae("active_view_fully_viewable_audible_half_duration")};
g.k.Gu=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ae("active_view_viewable")};BZ.prototype.Ef=function(a,b,c,d){if(c.oa.i.has("metadata_type_dai")){a:{var e=PW(d.oa,"metadata_type_sub_layouts"),f=PW(d.oa,"metadata_type_ad_placement_config");if(FY(d,{ie:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Xf:["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=PW(l.oa,"metadata_type_media_sub_layout_index");if(!FY(l,{ie:["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"],Xf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new HY(l.uc,this.Ga,f,l.layoutId,m);h.push(new DBa(b,c,l,this.qe,m,this.ra,this.Rc,this.jb,this.Dd,this.Aa))}b=new HY(d.uc,this.Ga,f,d.layoutId);a=new yBa(a,c,d,this.Fa,this.qe,this.je,this.ra,b,this.Ga,h)}else a=null}if(a)return a}else if(a=mBa(a,b,c,d,this.i,this.l,this.Ga,this.jb,this.Dd,this.bd,this.Fa,this.ra,
this.xb,this.Vc,this.fc,this.Id,this.dc,this.Nd,this.Aa))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(CZ,g.E);g.k=CZ.prototype;g.k.yF=function(a){this.i&&IBa(this,this.i,a)};
g.k.nF=function(){};
g.k.Qg=function(a){this.i&&this.i.contentCpn!==a&&(tD("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.k.mj=function(a){this.i&&this.i.contentCpn!==a&&tD("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null};
g.k.da=function(){g.E.prototype.da.call(this);this.i=null};g.u(DZ,g.E);
DZ.prototype.yh=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new jX("Tried to re-register the trigger.");a=new jZ(a,b,c,d);if(a.trigger instanceof yAa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof uAa)this.u.set(a.trigger.triggerId,a);else throw new jX("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&hX(this.B(),[a])};
DZ.prototype.Fh=function(a){this.l["delete"](a.triggerId);this.u["delete"](a.triggerId)};
DZ.prototype.GF=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.la(JBa(this.u,this.i)));null!=a&&b.push.apply(b,g.la(JBa(this.l,a)));this.i=a;b.length&&hX(this.B(),b)}};g.u(EZ,g.E);g.k=EZ.prototype;g.k.Qg=function(){this.u=new QJ(this,FAa(this.Aa.get()));this.l=new RJ;KBa(this)};
g.k.mj=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.zF=function(a){this.vv.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yF(a)};
g.k.pF=function(a){g.zb(this.l.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.nF(a)};
g.k.oz=function(a){var b=tC(this.Fa.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&&rY(this.Ga.get(),{cuepointTrigger:{event:LBa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.i.add(e),this.u.reduce(e)};
g.k.da=function(){this.G.getVideoData(1).unsubscribe("cuepointupdated",this.oz,this);this.listeners.length=0;this.i.clear();this.vv.length=0;g.E.prototype.da.call(this)};FZ.prototype.eo=function(a,b,c,d,e){return this.G.eo(a,b,c,d,e)};
FZ.prototype.Nm=function(a,b){this.G.Nm(a,b)};
FZ.prototype.Fp=function(a,b,c){this.G.Fp(a,b,c)};
FZ.prototype.un=function(a){this.G.un(a)};GZ.prototype.addListener=function(a){this.listeners.add(a)};
GZ.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(MBa,eJ);g.u(HZ,MY);g.k=HZ.prototype;g.k.Ng=function(a,b){OY("image-companion",a,this.J.get().si,this.Ga.get(),this.u,this.C,this.Zd(),this.Nb(),b)};
g.k.startRendering=function(a){NY(this.I,this.Zd(),this.Nb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new MBa(b,c,d,e,f)},this.i);
MY.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?KY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Ga.get().pg():tD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ad=function(){};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.da=function(){this.B().Kd["delete"](this);MY.prototype.da.call(this)};g.u(OBa,eJ);g.u(IZ,MY);g.k=IZ.prototype;g.k.Ng=function(a,b){OY("shopping-companion",a,this.J.get().si,this.Ga.get(),this.u,this.C,this.Zd(),this.Nb(),b)};
g.k.startRendering=function(a){NY(this.I,this.Zd(),this.Nb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new OBa(b,c,d,e,f)},this.i);
MY.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?KY(this.I,"impression"):this.C===b.layoutId&&(null===this.u?this.u=this.Ga.get().pg():tD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Ad=function(){};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.da=function(){this.B().Kd["delete"](this);MY.prototype.da.call(this)};QBa.prototype.Ef=function(a,b,c,d){if(FY(d,dBa()))return new PY(a,c,d,this.Tb,this.Ga,this.i,this.jb,this.l);if(FY(d,NBa()))return new HZ(a,c,d,this.Tb,this.Ga,this.i,this.jb,this.l);if(FY(d,PBa()))return new IZ(a,c,d,this.Tb,this.Ga,this.i,this.jb,this.l);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};var KZ=new g.ke(320,63);g.u(NZ,MY);g.k=NZ.prototype;g.k.Hl=function(){};
g.k.vn=function(){};
g.k.Zf=function(){};
g.k.Rg=function(a){a&&RZ(this.u,this.layout)};
g.k.sn=function(a){var b=MZ(this.layout);if(this.B=LZ(a,SAa(this.ra.get())))b.onErrorCommand&&this.dc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),RZ(this.u,this.layout)};
g.k.Tg=function(){};
g.k.Rq=function(){return this.Nb().layoutId};
g.k.Ux=function(){return this.B};
g.k.Ng=function(a){"in_video_overlay_close_button"===a&&RZ(this.u,this.layout)};
g.k.Wt=function(a){"invideo-overlay"===a&&RZ(this.u,this.layout)};
g.k.startRendering=function(a){MY.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
g.k.init=function(){MY.prototype.init.call(this);sY(this.Ga.get(),this);this.ra.get().addListener(this);this.i.push(new xJ(MZ(this.layout),JY(this.C),this.layout.layoutId,{adsClientData:this.layout.sc}))};
g.k.release=function(){MY.prototype.release.call(this);this.ra.get().removeListener(this);tY(this.Ga.get(),this)};g.u(OZ,MY);g.k=OZ.prototype;g.k.init=function(){MY.prototype.init.call(this);sY(this.Ga.get(),this);this.ra.get().addListener(this);this.i.push(new xJ(MZ(this.layout),JY(this.I),this.layout.layoutId,{adsClientData:this.layout.sc}))};
g.k.startRendering=function(a){MY.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
g.k.Ng=function(a){"in_video_overlay_close_button"===a&&RZ(this.u,this.layout)};
g.k.sy=function(a){if("invideo-overlay"===a){a=TBa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Wt=function(a){"invideo-overlay"===a&&RZ(this.u,this.layout)};
g.k.qy=function(a){if("invideo-overlay"===a){a=TBa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Hl=function(){};
g.k.vn=function(){};
g.k.Zf=function(){};
g.k.Rg=function(a){a&&RZ(this.u,this.layout)};
g.k.sn=function(a){var b=MZ(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=SAa(this.ra.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.gb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ke(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ke(0,0)}if(this.B=LZ(a,d,c))b.onErrorCommand&&this.dc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),RZ(this.u,this.layout)};
g.k.Tg=function(){};
g.k.Rq=function(){return this.Nb().layoutId};
g.k.Ux=function(){return this.B};
g.k.release=function(){MY.prototype.release.call(this);this.ra.get().removeListener(this);tY(this.Ga.get(),this)};PZ.prototype.Ef=function(a,b,c,d){if(b=SY(a,c,d,this.Tb,this.ra,this.Ga,this.u))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(IY()),f=e.next();!f.done;f=e.next())b.push(f.value);if(FY(d,{ie:b,Xf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}))return new OZ(c,d,this.Ga,this.jb,this.Tb,a,this.i,this.l,this.ra,this.dc,this.Aa);if(FY(d,SBa()))return new NZ(c,d,this.Ga,this.jb,this.Tb,a,this.i,this.ra,this.dc,this.Aa);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
QW(d.oa)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(QZ,g.E);QZ.prototype.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof tAa))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.ob.set(b.triggerId,new jZ(a,b,c,d))};
QZ.prototype.Fh=function(a){this.ob["delete"](a.triggerId)};g.u(SZ,g.E);g.k=SZ.prototype;g.k.yh=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new jX("Tried to register duplicate trigger for slot.");if(!(b instanceof EX))throw new jX("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ob.set(b.triggerId,new jZ(a,b,c,d));a=this.i.has(b.Fd)?this.i.get(b.Fd):new Set;a.add(b);this.i.set(b.Fd,a)};
g.k.Fh=function(a){this.ob["delete"](a.triggerId);if(!(a instanceof EX))throw new jX("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.l.get(a.triggerId);b&&(b.dispose(),this.l["delete"](a.triggerId));if(b=this.i.get(a.Fd))b["delete"](a),0===b.size&&this.i["delete"](a.Fd)};
g.k.Sg=function(){};
g.k.rj=function(){};
g.k.ii=function(){};
g.k.nf=function(){};
g.k.qf=function(){};
g.k.pj=function(){};
g.k.qj=function(){};
g.k.gi=function(){};
g.k.oj=function(){};
g.k.uh=function(){};
g.k.Oc=function(a,b){var c=this;if(this.i.has(b.layoutId)){var d=this.i.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={Kp:e.Kp},f=d.next())e.Kp=f.value,f=new g.M(function(h){return function(){var l=c.ob.get(h.Kp.triggerId);hX(c.u(),[l])}}(e),e.Kp.durationMs),f.start(),this.l.set(e.Kp.triggerId,f)}};
g.k.Ad=function(){};g.u(TZ,g.E);TZ.prototype.da=function(){this.ij.get().removeListener(this);g.E.prototype.da.call(this)};g.u(UBa,g.E);g.u(VBa,g.E);g.u(WBa,g.E);g.u(XBa,g.E);g.u(VZ,RY);VZ.prototype.startRendering=function(a){RY.prototype.startRendering.call(this,a);PW(this.layout.oa,"metadata_ad_video_is_listed")&&(a=PW(this.layout.oa,"metadata_type_ad_info_ad_metadata"),this.bo.get().G.xa("onAdMetadataAvailable",a))};YBa.prototype.Ef=function(a,b,c,d){b=fBa();b.ie.push("metadata_type_ad_info_ad_metadata");if(FY(d,b))return new VZ(a,c,d,this.Tb,this.ra,this.Ga,this.i,this.bo);throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(ZBa,g.E);$Ba.prototype.Ef=function(a,b,c,d){if(a=SY(a,c,d,this.Tb,this.ra,this.Ga,this.i))return a;throw new bX("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QW(d.oa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(aCa,g.E);g.u(WZ,g.E);WZ.prototype.u=function(){return this.l};XZ.prototype.Fq=function(a){if(GAa(this.Ge)||this.l.Ky(a))this.Gi.Fq(a);else try{this.i().Fq(a)}catch(b){to(b)}};
XZ.prototype.nq=function(){GAa(this.Ge)||this.l.Jy("SLOT_TYPE_ABOVE_FEED",1)?this.Gi.nq():this.i().nq()};
XZ.prototype.bl=function(){this.i().bl()};
XZ.prototype.Oi=function(){this.i().Oi()};g.u(YZ,xL);
YZ.prototype.u=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.xa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:this.i.xa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.xa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.xa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.xa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.xa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.xa("updateEngagementPanelAction",b.addAction);this.i.xa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.xa("changeEngagementPanelVisibility",b.hideAction),this.i.xa("updateEngagementPanelAction",b.removeAction)}};g.u(ZZ,yL);g.k=ZZ.prototype;g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);g.mg(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){AL(this);yL.prototype.hide.call(this)};
g.k.show=function(){zL(this);yL.prototype.show.call(this)};
g.k.Dn=function(){this.hide()};
g.k.Ll=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.mg(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.u($Z,g.R);g.k=$Z.prototype;g.k.Nq=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.Sd.Gb(this.i)};
g.k.Ab=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.V("b")};
g.k.getProgressState=function(){return this.l};
g.k.Wb=function(a){g.iJ(a,2)&&this.V("a")};g.u(a_,$K);g.k=a_.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.ro(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.rc(g.td(e[0].url))&&(e[0].url=d.dg);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.rc(g.td(e[0].url))&&(e[0].url=d.te());e=b.headline;null!=e&&g.rc(g.td(e.text))&&(e.text=d.author)}this.C.init(dJ("ad-image"),b.image,c);this.Y.init(dJ("ad-text"),b.headline,c);this.L.init(dJ("ad-text"),b.description,c);this.I.init(dJ("ad-image"),b.backgroundImage,c);this.actionButton=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.I(this,
this.actionButton);this.actionButton.fa(this.za);this.actionButton.init(dJ("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.T().i||(this.B.N(this.ma,"click",this.Nx,this),this.B.N(this.la,"click",this.Nx,this),this.B.N(this.ga,"click",this.Nx,this));this.l=this.dA?new $Z(this.api,a):new DL(a);g.I(this,this.l);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.l&&(this.skipButton=new UL(this.api,this.Da,this.layoutId,this.i,this.l,this.ev),g.I(this,
this.skipButton),this.skipButton.fa(this.element),this.skipButton.init(dJ("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.l&&(this.u=new OL(this.api,this.Da,this.layoutId,this.i,this.l,!1),g.I(this,this.u),this.u.fa(this.element),this.u.init(dJ("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.l&&(c=new ZZ(this.api,this.Da,this.layoutId,this.i,this.l),g.I(this,c),c.fa(this.element),c.init(dJ("timed-pie-countdown"),
b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.ro(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ro(Error("AdActionInterstitialRenderer has no button."));else g.ro(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ro(Error("AdActionInterstitialRenderer has no description AdText."));else g.ro(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ro(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Pt(this.B);this.hide()};
g.k.show=function(){cCa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();$K.prototype.show.call(this)};
g.k.hide=function(){cCa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();$K.prototype.hide.call(this)};
g.k.Nx=function(){this.navigationEndpoint&&this.Da.executeCommand(this.navigationEndpoint,this.macros)};g.u(b_,$K);g.k=b_.prototype;g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.ro(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.messageText.init(dJ("ad-text"),b.text,c),this.show())):g.ro(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){dCa(!0);$K.prototype.show.call(this)};
g.k.hide=function(){dCa(!1);$K.prototype.hide.call(this)};
g.k.onClick=function(){};var e_={iconType:"CLOSE"},i_=new g.ke(320,63);g.u(d_,$K);g.k=d_.prototype;
g.k.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);this.C=b;this.L=g.ob(this.C.onClickCommands||[]);this.za=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.we("ytp-ad-overlay-ad-info-button-container",this.B.element),g_(this,b),a=iCa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.we("ytp-ad-overlay-ad-info-button-container",this.u.element),
g_(this,b),a=jCa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.we("ytp-ad-overlay-ad-info-button-container",this.l.element),g_(this,b),a=kCa(this,a.imageOverlayAdContentRenderer)):(g.ro(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),lCa(this,!0))};
g.k.Ta=function(a){h_(this,a)&&this.clear()};
g.k.Rg=function(){this.api.me()&&this.clear()};
g.k.clear=function(){lCa(this,!1);this.ma.reset();this.Y=0;this.B.hide();this.Qa(this.B.element,!1);this.u.hide();this.Qa(this.u.element,!1);this.l.hide();this.Qa(this.l.element,!1);this.hide();this.dispose()};
g.k.kP=function(){this.La&&this.Da.executeCommand(this.La,this.macros);this.api.pauseVideo()};
g.k.lj=function(){var a=this;hCa(this).forEach(function(b){return a.Da.executeCommand(b,a.macros)});
if(c_(this.api))this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId);else this.clear()};
g.k.yM=function(){this.Ca=2===this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.zM=function(){this.Ca||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.uz=function(){this.Ca||2!==this.api.getPlayerState(1)||this.api.playVideo();c_(this.api)?this.api.uz("invideo-overlay"):this.clear()};
g.k.AM=function(a){a.target===this.I&&g.we("ytp-ad-button",this.Pa.element).click()};g.u(j_,$K);
j_.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.fa(this.answer),a.init(dJ("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new vL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.fa(this.answer),
g.I(this,this.l),this.l.init(dJ("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
j_.prototype.clear=function(){this.hide()};g.u(k_,$K);k_.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new vL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.fa(this.l),this.button.init(dJ("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(l_,nL);l_.prototype.init=function(a,b,c){nL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.HD(b.text),a=!g.rc(b));a||to(Error("No submit text was present in the renderer."))};
l_.prototype.onClick=function(a){this.V("l");nL.prototype.onClick.call(this,a)};g.u(m_,$K);
m_.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new VL(this.api,this.Da,this.layoutId,this.i,this.B,!1),c.fa(this.I),c.init(dJ("skip-button"),a,this.macros),g.I(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new OL(this.api,this.Da,this.layoutId,this.i,this.B,!1),c.fa(this.I),c.init(dJ("ad-preview"),a,this.macros),PL(c),g.I(this,c),this.l=c);null==this.l&&g.ro(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new l_(this.api,this.Da,this.layoutId,this.i),c.fa(this.submitButton),c.init(dJ("survey-submit"),a,this.macros),g.I(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new ZL(this.api,this.Da,this.layoutId,this.i,!0),c.fa(this.C),c.init(dJ("simple-ad-badge"),a,this.macros),g.I(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new GL(this.api,this.Da,this.layoutId,this.i,this.B,void 0),c.fa(this.C),
c.init(dJ("ad-duration-remaining"),a,this.macros),g.I(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new KL(this.api,this.Da,this.layoutId,this.i,this.element),g.I(this,a),a.fa(this.C),a.init(dJ("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
m_.prototype.clear=function(){this.hide()};g.u(n_,$K);n_.prototype.init=function(a,b,c){$K.prototype.init.call(this,a,b,c);pCa(this)};
n_.prototype.show=function(){this.B=g.Sa();$K.prototype.show.call(this)};
n_.prototype.zG=function(){};g.u(o_,n_);g.k=o_.prototype;g.k.init=function(a,b,c){var d=this;n_.prototype.init.call(this,a,b,c);b.questionText&&g.Qe(this.questionText,g.HD(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&mCa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&qCa(this,a,c);b.surveyAdQuestionCommon&&oCa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()};
g.k.zG=function(){p_(this,!1);this.C.u.subscribe("l",this.iP,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?rCa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),p_(this,!0))};
g.k.iP=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Wb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Pd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Da.executeCommand(d,a.macros)})};
g.k.clear=function(){g.U(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(q_,n_);q_.prototype.init=function(a,b,c){var d=this;n_.prototype.init.call(this,a,b,c);b.questionText&&g.Qe(this.questionText,g.HD(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&mCa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?oCa(this,b.surveyAdQuestionCommon):g.ro(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
q_.prototype.clear=function(){g.U(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(r_,$K);
r_.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new q_(d.api,d.Da,d.layoutId,d.i);f.fa(d.l);f.init(dJ("survey-question-single-select"),e,c);d.questions.push(f);g.I(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new o_(d.api,d.Da,d.layoutId,d.i),f.fa(d.l),f.init(dJ("survey-question-multi-select"),
e,c),d.questions.push(f),g.I(d,f))});
this.show()};
r_.prototype.clear=function(){g.U(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(s_,$K);
s_.prototype.init=function(a,b,c){var d=this;$K.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.ro(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){uCa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
uCa(this.logoImage,b.brandImage);g.Qe(this.text,g.HD(b.text));this.actionButton=new nL(this.api,this.Da,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.I(this,this.actionButton);this.actionButton.fa(this.u);this.actionButton.init(dJ("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.l=new DL(1E3*a);this.l.subscribe("a",function(){d.transition.hide();e.forEach(function(f){return d.Da.executeCommand(f,c)});
d.Da.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.I(this,this.l);this.N(this.element,"click",function(f){return tCa(d,f,b)});
this.transition.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Da.executeCommand(f,c)})}else g.ro(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.ro(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ro(Error("SurveyTextInterstitialRenderer has no button."));else g.ro(Error("SurveyTextInterstitialRenderer has no text."));else g.ro(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
s_.prototype.clear=function(){this.hide()};
s_.prototype.show=function(){vCa(!0);$K.prototype.show.call(this)};
s_.prototype.hide=function(){vCa(!1);$K.prototype.hide.call(this)};var qEa="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(t_,xL);
t_.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!qEa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof mJ?c.dA:!1,m=c instanceof mJ||c instanceof JJ?c.ev:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new d_(e,a,f,h);break;case "persisting-overlay":a=new XL(e,a,f,h,new SN(e));break;case "player-overlay":a=new eM(e,a,f,h,new SN(e),m);break;case "survey":a=new r_(e,a,f,h);break;case "ad-action-interstitial":a=
new a_(e,a,f,h,l,m);break;case "ad-text-interstitial":a=new b_(e,a,f,h);break;case "survey-interstitial":a=new s_(e,a,f,h);break;case "ad-message":a=new NL(e,a,f,h,new SN(e,1));break;default:a=null}if(!a){to(Error("No UI component returned from ComponentFactory for type: "+d));break}Lb(this.l,b)?to(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.HG);break;case 2:b=wCa(this,a);if(null==b)break;b.bind(c);break;case 3:c=wCa(this,a),null!=c&&(g.Ei(c),Lb(this.l,b)?
(c=this.l,b in c&&delete c[b]):to(Error("Ad UI component does not exist: "+b)))}};
t_.prototype.da=function(){g.Fi(Object.values(this.l));this.l={};xL.prototype.da.call(this)};g.u(u_,g.eN);g.k=u_.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.eN.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.Pd.i.de.Ge,b=this.qq(),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=zCa(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);PK(a)?(this.Da=new MK(this,this.player,this.Mk,b,this.Pd.i.de),bma(this.Da,f.Km),this.Pd.i.pk.Qg(c,h,f.bp,f.bp.concat(f.Km),e,d),NK(this.Da)):(this.Pd.i.pk.Qg(c,h,f.bp,f.bp.concat(f.Km),e,d),this.Da=new MK(this,this.player,this.Mk,b,this.Pd.i.de),bma(this.Da,f.Km))};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.Pd.i.pk.mj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.eN.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Da){var a=this.Da;this.Da=null;a.dispose()}null!=this.Rj&&(a=this.Rj,this.Rj=null,a.dispose());this.Mk.reset()};
g.k.ri=function(){return!1};
g.k.eA=function(){return null===this.Da?!1:this.Da.eA()};
g.k.nj=function(a){null!==this.Da&&this.Da.nj(a)};
g.k.getAdState=function(){return this.Da?this.Da.du:-1};
g.k.getOptions=function(){return Object.values(pEa)};
g.k.Fe=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return this.Hz(b);case "isExternalShelfAllowedFor":a:if(b.playerResponse){var c=b.playerResponse.adPlacements||[];for(var 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;case "muteLayout":Xla(this.Da,this.Pd.i.de.Jf,this.Pd.i.de.sh,b.Fd);break;case "onAboutThisAdPopupClosed":break;default:return null}};
g.k.Hz=function(a){if(!a.url)return null;var b=JI(this.player);Object.assign(b,a.o3);this.Da&&!b.AD_CPN&&(b.AD_CPN=this.Da.Gt());return g.$m(a.url,b)};
g.k.Al=function(){return null===this.Da?!1:this.Da.Al()};g.kN.ad=u_;var BCa=g.Be&&ACa();g.Ta(g.w_,g.E);var rEa=[];g.k=g.w_.prototype;g.k.ya=function(a,b,c,d){Array.isArray(b)||(b&&(rEa[0]=b.toString()),b=rEa);for(var e=0;e<b.length;e++){var f=Ll(a,b[e],c||this.handleEvent,d||!1,this.l||this);if(!f)break;this.i[f.key]=f}return this};
g.k.Uy=function(a,b,c,d){return CCa(this,a,b,c,d)};
g.k.Gb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Gb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.l||this,c=Ml(c),d=!!d,b=Fl(a)?a.Sq(b,c,d,e):a?(a=Ol(a))?a.Sq(b,c,d,e):null:null,b&&(Tl(b),delete this.i[b.key])};
g.k.da=function(){g.w_.Ed.da.call(this);g.DCa(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};})(_yt_player);
