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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,da,aaa,ha,ia,ka,pa,qa,ra,ta,ua,va,wa,xa,baa,caa,ya,Aa,daa,Ba,Ca,Da,Ea,Fa,Ja,La,faa,gaa,Ua,Va,Wa,haa,iaa,$a,ab,bb,cb,jaa,kaa,eb,lb,laa,sb,tb,maa,yb,vb,naa,wb,oaa,paa,qaa,Gb,Ib,Jb,Kb,Lb,Nb,Pb,Qb,Tb,Zb,ac,ec,fc,ic,lc,mc,taa,nc,oc,rc,zc,Ac,Cc,Hc,Nc,Oc,Rc,Pc,xaa,Aaa,Baa,Caa,Vc,Wc,Yc,Xc,$c,cd,Daa,Eaa,bd,Faa,fd,ld,md,nd,od,pd,sd,td,ud,vd,Iaa,Jaa,wd,yd,Ad,Cd,zd,Dd,Ed,Fd,Gd,Hd,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,be,ae,Yd,ie,je,me,ne,oe,Maa,re,pe,se,ve,we,xe,ze,De,Be,Ee,Fe,Ge,He,Ie,Je,Ce,Ke,
Le,Ne,Oe,Me,Pe,Oaa,Qaa,Re,Raa,Se,Saa,Te,Taa,Ve,We,Ze,$e,af,df,ef,Uaa,kf,mf,nf,pf,Waa,qf,rf,sf,tf,vf,xf,Xaa,uf,Ff,Gf,Df,Zaa,yf,wf,Kf,Lf,Mf,$aa,Qf,Sf,Vf,Zf,$f,fg,gg,ig,hg,kg,ng,mg,lg,cba,Xf,yg,wg,xg,Ag,zg,Wf,Cg,eba,Dg,Eg,Fg,fba,Kg,Mg,Og,Pg,Tg,Ug,Vg,Xg,gba,Yg,$g,ch,Zg,ah,Ng,Wg,iba,fh,dh,eh,hh,hba,gh,lh,mh,nh,oh,qda,ph,qh,rda,rh,sh,uh,wh,xh,yh,Ada,zh,Bda,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih,Eda,Nh,Ph,Gda,Rh,Sh,Th,Uh,Hda,$h,Zh,Wh,Xh,Yh,ei,bi,di,Ida,Jda,Kda,fi,gi,ki,li,mi,ni,oi,pi,qi,ri,ti,vi,wi,yi,zi,Ai,Mda,Nda,
Oda,Fi,Di,Ki,Ei,Li,Ji,Si,Qda,Ii,Ti,Rda,Ui,Vi,Wi,Xi,Yi,Zi,$i,aj,fj,ej,gj,hj,Wda,Vda,ij,Xda,jj,kj,lj,mj,nj,oj,pj,qj,rj,Yda,tj,uj,Zda,wj,xj,yj,zj,Aj,Bj,Dj,$da,Ej,aea,bea,Fj,Gj,cea,Hj,Ij,Jj,Kj,Lj,Mj,dea,eea,Nj,Oj,Pj,Qj,hea,gea,Sj,Vj,Wj,Tj,Rj,Uj,Xj,Yj,Zj,bk,ak,gk,hk,pk,kea,ok,sk,uk,tk,iea,lea,xk,zk,Ak,Bk,Ck,Dk,Ek,Fk,Gk,Hk,Ik,mea,Jk,Kk,Lk,Mk,Nk,Ok,Pk,Rk,oea,Sk,Tk,Uk,Qk,Wk,pea,qea,Yk,Zk,$k,Xk,cl,dl,sea,uea,vea,bl,al,xea,el,fl,gl,hl,il,kl,jl,ll,ml,Aea,Cea,Dea,Fea,ol,pl,ql,sl,tl,ul,wl,yl,Al,Fl,Gl,Jl,Gea,Ml,
Ll,Nl,Hea,$l,am,bm,Iea,cm,dm,em,fm,gm,hm,im,Jea,jm,km,lm,Kea,Lea,mm,om,nm,qm,rm,um,sm,Nea,tm,vm,wm,ym,xm,Pea,Oea,zm,Rea,Qea,Sea,Cm,Dm,Tea,Fm,Gm,Hm,Em,Im,Uea,Jm,Vea,Wea,Lm,Mm,$ea,Nm,Om,Pm,afa,Rm,Tm,Wm,Zm,an,Ym,Xm,bn,bfa,cn,dn,en,fn,dfa,ln,mn,nn,on,ffa,pn,qn,rn,sn,tn,gfa,vn,wn,xn,zn,yn,An,Bn,Dn,En,Fn,Gn,Hn,Cn,In,Jn,Kn,hfa,Ln,Mn,ifa,Nn,On,jfa,Qn,kfa,Rn,Sn,lfa,mfa,Tn,Un,Wn,Yn,Zn,$n,ao,bo,Vn,Xn,ofa,co,eo,go,fo,pfa,qfa,rfa,ho,io,jo,ko,vfa,wfa,xfa,yfa,zfa,lo,mo,Afa,no,Bfa,Cfa,oo,po,qo,Dfa,ro,to,uo,vo,wo,
xo,yo,zo,Io,Jo,Efa,Ffa,Ko,Gfa,Mo,Lo,Po,Qo,Oo,Hfa,Lfa,Kfa,To,Mfa,Nfa,Ofa,Qfa,Pfa,Uo,Vo,Wo,Rfa,Yo,Zo,Sfa,Tfa,$o,ap,bp,cp,Ufa,dp,ep,Wfa,fp,Xfa,gp,ip,hp,jp,kp,mp,Zfa,np,Yfa,op,$fa,pp,aga,cga,rp,tp,up,vp,wp,sp,Ap,Bp,yp,dga,fga,gga,Dp,Ep,Fp,Gp,hga,Hp,Ip,Jp,Kp,Lp,Mp,Np,Op,Rp,Qp,jga,kga,Sp,Up,Pp,Tp,iga,Vp,Wp,mga,nga,oga,pga,$p,aq,bq,Xp,cq,dq,lga,qga,rga,fq,eq,gq,iq,wga,sga,xga,mq,nq,oq,pq,qq,so,yga,rq,zga,Aga,Bga,Cga,Dga,tq,uq,vq,wq,yq,Aq,Iga,Dq,Eq,Iq,Jq,Pq,Jga,Rq,Sq,Lga,Tq,Uq,Qga,Mga,Zq,Vga,$q,ar,br,Xga,
er,fr,gr,hr,Yga,kr,lr,mr,nr,pr,qr,rr,sr,ur,vr,wr,xr,yr,zr,$ga,Ar,aha,Cr,Er,Fr,dha,eha,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Wr,Xr,$r,as,Yr,bs,fha,es,fs,hs,is,js,ks,ns,os,ms,Ls,Ms,Ns,gs,Qs,Ps,kha,Ss,Vs,lha,Zs,Ys,nha,oha,pha,ct,qha,rha,$s,et,dt,sha,gt,ht,it,ot,pt,qt,tt,ut,wt,xt,zt,Bt,Ct,Dt,Ft,Ht,It,rt,Jt,Lt,Kt,tha,Ot,Pt,Qt,Rt,Tt,Ut,Vt,Wt,vha,wha,cu,du,eu,xha,ju,ku,lu,nu,pu,qu,mu,uu,xu,wu,vu,zu,Cu,Au,yha,Mu,Lu,Aha,Bha,Ru,Tu,Uu,Eha,Dha,Ou,ev,fv,gv,lv,mv,jv,nv,pv,rv,tv,Fha,uv,vv,wv,yv,Gha,Dv,Cv,
xv,Fv,Gv,Hha,Nv,Ov,Rv,Qv,Sv,Tv,Vv,Wv,Lha,Mha,Nha,Xv,Yv,$v,aw,Zv,bw,Oha,cw,dw,ew,fw,gw,iw,Pha,jw,nw,ow,hw,pw,Rha,Sha,kw,qw,tw,mw,Qha,lw,uw,Tha,vw,ww,rw,Uha,xw,yw,zw,Aw,Cw,Dw,Vha,Wha,Xha,Gw,Hw,Iw,Yha,Zha,$ha,aia,bia,cia,Jw,dia,Kw,Mw,Ow,eia,fia,gia,Pw,Nw,Rw,Sw,Tw,iia,hia,Vw,Uw,Xw,Ww,dx,ex,fx,hx,ax,kia,Yw,bx,$w,Zw,cx,nia,lia,nx,ox,mx,qx,tx,ux,pia,rx,sx,vx,wx,yx,zx,Cx,Ax,Ex,Dx,Fx,qia,Hx,Ix,Kx,sia,Mx,Nx,Ox,Qx,tia,Sx,Ux,uia,via,Xx,Wx,xia,Yx,ay,Zx,$x,Jv,Cia,Qy,Uy,Vy,Dia,Ry,Eia,cz,hz,Hia,Iia,lz,pz,oz,rz,nz,
qz,sz,Kia,Lia,xz,yz,R,zz,Az,Bz,Cz,Ez,Gz,Hz,Ria,Jz,Uia,Kz,Lz,Mz,Pz,Yia,Tz,Uz,Vz,Wz,Xz,$z,aA,Zia,cA,fA,gA,eA,hA,iA,jA,lA,mA,bA,nA,kA,pA,aja,qA,sA,tA,rA,uA,vA,xA,yA,AA,DA,zA,EA,GA,HA,LA,JA,OA,NA,PA,QA,RA,SA,KA,UA,TA,IA,eja,fja,WA,XA,YA,ZA,$A,bB,cB,eB,fB,gB,kB,lB,jB,ija,kja,sB,rB,hja,gja,qB,uB,vB,xB,zB,BB,CB,DB,EB,AB,lja,FB,GB,HB,IB,JB,KB,LB,MB,NB,OB,mja,PB,RB,SB,TB,QB,oja,UB,VB,XB,ZB,pja,$B,bC,eC,aC,cC,fC,gC,qja,jC,kC,qC,rja,mC,sC,uC,wC,oC,tC,rC,sja,xC,tja,yC,zC,lC,nC,pC,vC,AC,BC,uja,DC,vja,wja,EC,FC,
GC,IC,xja,HC,JC,KC,LC,MC,NC,OC,PC,SC,QC,yja,TC,UC,VC,WC,zja,RC,XC,YC,ZC,$C,aD,bD,cD,eD,fD,gD,Aja,hD,iD,jD,kD,lD,Bja,Cja,Gja,Hja,Dja,Eja,Fja,mD,oD,nD,pD,qD,rD,Ija,sD,tD,uD,vD,wD,xD,yD,zD,AD,BD,CD,DD,ED,FD,GD,HD,ID,JD,LD,ND,MD,OD,PD,QD,RD,SD,TD,Jja,VD,UD,ZD,$D,aE,bE,cE,dE,XD,eE,fE,gE,hE,Kja,iE,jE,kE,lE,mE,nE,oE,pE,Lja,qE,rE,sE,tE,uE,xE,yE,zE,AE,BE,Mja,DE,CE,EE,FE,GE,Nja,HE,KE,jja,oB,Pja,LE,ME,NE,Qja,Rja,hB,Sja,OE,Wja,Vja,Uja,PE,Tja,Xja,QE,aka,Yja,Zja,cka,dka,UE,bka,eka,VE,WE,XE,fka,gka,hka,YE,TE,ika,
$E,jka,kka,lka,aF,bF,mka,nka,oka,tB,pB,dF,fF,hF,iF,jF,kF,gF,mF,qka,oF,ska,pF,uka,tka,rka,vka,wka,xka,qF,iB,rF,yka,mB,zka,tF,Aka,uF,Bka,vF,wF,Cka,xF,Eka,zF,Fka,AF,BF,CF,DF,Hka,Ika,Jka,Lka,FF,Mka,Kka,GF,HF,IF,JF,Pka,KF,LF,yG,tG,Uka,Zka,zG,CG,DG,VF,rG,fla,MF,$ka,uG,wG,GG,HG,gla,LG,Wka,hla,SF,OG,RF,Yka,PG,Rka,xG,ela,RG,SG,jla,kla,lla,mla,nla,ola,TG,pla,ula,tla,qla,sla,rla,UG,vla,VG,wla,xla,yla,XG,YG,zla,ZG,$G,Ala,Bla,Dla,Gla,Hla,bH,Kla,Lla,Mla,Nla,Ela,Ila,Jla,Ola,Pla,Tla,hH,Ula,iH,Wla,Yla,jH,kH,Zla,ama,
bma,cma,dma,jma,mH,kma,mma,lma,nma,oma,qH,pma,nH,rH,sH,qma,rma,tH,vma,sma,uma,BH,FH,Ima,Kma,Dma,AH,JH,Hma,Jma,KH,Lma,Mma,LH,Bma,Oma,Nma,xH,IH,EH,Uma,Qma,Vma,Rma,Sma,Tma,Wma,MH,Xma,Yma,OH,PH,RH,wH,HH,Ema,tma,Gma,Fma,TH,Pma,$H,aI,bI,cI,bna,CH,cna,eI,dI,Cma,Zma,DH,dna,yma,zH,xma,$la,iI,fna,jI,kI,lI,nI,mI,oI,gna,hna,pI,rI,ina,jna,lna,kna,sI,tI,mna,uI,nna,vI,wI,xI,yI,zI,AI,BI,ona,CI,pna,DI,FI,sna,EI,tna,qna,una,rna,vna,wna,xna,GI,HI,II,JI,KI,zna,Cna,PI,MI,Bna,SI,Ana,TI,OI,UI,RI,QI,NI,LI,Ena,XI,ZI,$I,Gna,
Fna,aJ,bJ,cJ,dJ,eJ,fJ,Hna,gJ,Ina,hJ,Kna,Lna,jJ,Mna,Nna,Ona,Rna,Pna,Qna,Sna,Tna,kJ,Una,Vna,Wna,Xna,Yna,Zna,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,DJ,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,OJ,PJ,QJ,RJ,SJ,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,aoa,$na,coa,doa,boa,hK,eoa,iK,jK,kK,lK,goa,foa,joa,koa,loa,moa,oK,noa,ooa,pK,poa,sK,tK,qoa,uK,uoa,voa,woa,vK,xoa,wK,xK,yoa,yK,zoa,Aoa,Coa,Doa,Eoa,AK,zK,Boa,BK,Foa,Goa,Ioa,Hoa,Joa,Koa,CK,DK,Noa,Ooa,EK,Poa,Qoa,FK,HK,IK,JK,KK,NK,Roa,PK,QK,Soa,Toa,Uoa,
RK,Woa,Xoa,SK,Yoa,UK,Zoa,$oa,VK,WK,apa,bpa,XK,dpa,cpa,YK,gpa,ZK,hpa,$K,aL,ipa,bL,jpa,kpa,lpa,mpa,npa,opa,dL,fL,spa,vpa,ppa,gL,Fpa,Epa,hL,Hpa,Gpa,Jpa,Kpa,Mpa,Lpa,Npa,Opa,Ppa,Qpa,iL,jL,Rpa,Spa,Tpa,Vpa,Wpa,Xpa,Ypa,Zpa,qL,aqa,bqa,oL,pL,$pa,cqa,dqa,rL,gqa,eqa,iqa,hqa,jqa,Dna,kqa,lqa,mqa,nqa,sL,sqa,pqa,qqa,rqa,tqa,tL,uqa,wqa,xqa,vqa,uL,yqa,TK,Aqa,Bqa,Voa,zqa,vL,wL,Cqa,Dqa,Eqa,xL,zL,Gqa,AL,DL,Hqa,EL,Iqa,Jqa,FL,Lqa,Mqa,Nqa,Oqa,Pqa,Qqa,Rqa,Sqa,KL,Tqa,LL,Uqa,Vqa,Wqa,Xqa,Yqa,PL,QL,RL,Zqa,SL,$qa,UL,bra,ara,VL,
WL,XL,YL,cra,ZL,$L,dra,aM,bM,hra,era,gra,fra,ira,cM,dM,jra,kra,lra,mra,eM,nra,pra,ora,fM,gM,hM,iM,jM,lM,mM,nM,oM,pM,qra,qM,rM,sra,rra,sM,tM,uM,vM,wM,xM,AM,BM,CM,DM,EM,FM,GM,HM,ura,IM,vra,yra,KM,zra,LM,MM,NM,OM,QM,Dra,Era,Cra,Gra,Fra,Bra,RM,SM,TM,UM,VM,WM,XM,Ira,Jra,Lra,Kra,Iv,Nra,Mra,aN,Pra,Ora,Rra,Qra,Sra,Tra,Ura,Wra,Xra,Zra,dN,$ra,gN,eN,hN,fN,oqa,asa,bsa,csa,dsa,mN,lN,oN,isa,jsa,xN,ksa,AN,lsa,msa,BN,CN,nsa,EN,wsa,zsa,xsa,Asa,Bsa,Csa,Dsa,Fsa,MN,Jsa,PN,Lsa,Isa,Msa,Nsa,ON,Ksa,SN,TN,UN,VN,jN,XN,Osa,
RN,YN,aO,Psa,$N,cO,Qsa,fO,gO,hO,lO,Ssa,Tsa,nO,mO,Usa,Vsa,oO,Wsa,Xsa,pO,Ysa,Zsa,rO,sO,$sa,vO,bta,xO,tO,cta,dta,ata,yO,zO,CO,eta,BO,EO,DO,GO,gta,hta,KO,ita,NO,jta,mta,kta,RO,SO,nta,VO,WO,XO,YO,$O,ota,pta,bP,rta,qta,sta,tta,uta,vta,hP,iP,jP,wta,kP,lP,xta,yta,oP,Ata,zta,pP,qP,rP,Bta,sP,tP,uP,vP,Cta,wP,xP,Dta,yP,Eta,Gta,Fta,DP,BP,CP,Hta,Ita,Jta,EP,FP,GP,HP,IP,Kta,LP,Lta,NP,OP,PP,RP,SP,TP,UP,Mta,Pta,VP,Nta,Ota,Tta,Uta,XP,Wta,Vta,Xta,Yta,Zta,$P,$ta,aua,dua,bua,cua,eua,bQ,cQ,dQ,eQ,fua,gua,hua,iua,jua,kua,
nua,mua,lua,qua,pua,iQ,mQ,sua,tua,kQ,gQ,jQ,oQ,wua,pQ,lQ,oua,vua,nQ,rua,uua,xua,yua,rQ,sQ,tQ,uQ,Aua,xQ,yQ,zQ,AQ,BQ,CQ,Bua,DQ,FQ,EQ,GQ,HQ,Cua,IQ,Dua,Fua,Eua,JQ,KQ,Gua,LQ,MQ,Hua,NQ,Iua,OQ,Jua,PQ,UQ,TQ,Kua,SQ,XQ,Lua,Mua,YQ,ZQ,$Q,aR,cR,Nua,LO,Rua,fP,Oua,WQ,Qua,gP,Pua,Sua,Wua,Vua,Xua,Yua,gR,Zua,hR,$ua,jR,kR,lR,mR,nR,oR,bva,pR,qR,rR,sR,uR,cva,dva,vR,wR,xR,yR,hva,iva,zR,AR,CR,DR,FR,kva,BR,lva,ER,jva,GR,HR,IR,JR,ova,pva,KR,LR,nva,NR,tva,sva,uva,vva,OR,PR,QR,RR,wva,VR,xva,yva,zva,WR,Ava,YR,ZR,$R,Eva,Gva,Cva,
Dva,aS,Bva,bS,cS,dS,Jva,Kva,Hva,Iva,eS,fS,Nva,Ova,Mva,Qva,gS,Tva,Uva,Vva,Rva,Wva,Sva,Zva,hS,iS,$va,awa,bwa,cwa,dwa,QS,ewa,fwa,gwa,hwa,SS,lwa,kwa,TS,mwa,US,iwa,owa,nwa,jwa,qwa,rwa,swa,twa,vwa,uwa,wwa,VS,xwa,WS,ywa,XS,zwa,Awa,Bwa,YS,Cwa,ZS,Fwa,Ewa,Dwa,aT,Kwa,Lwa,Mwa,dT,cT,Nwa,$S,Gwa,Iwa,Jwa,Pwa,Owa,Qwa,Rwa,Swa,Uwa,Vwa,Wwa,Twa,Xwa,Zwa,$wa,axa,bxa,cxa,hT,iT,hxa,kxa,ixa,exa,kT,dxa,jxa,nT,mxa,lxa,oT,oxa,qxa,rxa,pxa,rT,sxa,wxa,xxa,yxa,wT,xT,zxa,sT,yT,AT,Axa,uT,Bxa,Cxa,CT,Dxa,DT,BT,Fxa,Gxa,uxa,ET,Lxa,FT,
Mxa,Nxa,Jxa,HT,Oxa,IT,Hxa,KT,Kxa,Pxa,JT,GT,Qxa,LT,Rxa,Txa,OT,MT,PT,NT,QT,Uxa,RT,ST,TT,UT,Vxa,VT,Wxa,XT,Yxa,Zxa,$xa,aU,$T,ZT,aya,bya,cya,dya,dU,eU,fU,eya,fya,gya,hya,gU,iya,lya,hU,nya,jU,lU,iU,mU,jya,nU,mya,kya,kU,oU,pU,oya,qU,rU,sU,pya,rya,vya,sya,tya,uya,xU,yU,zU,AU,xya,CU,yya,BU,DU,zya,Eya,Fya,Gya,IU,JU,Hya,KU,Dya,Iya,Jya,EU,Aya,Kya,FU,GU,Bya,Cya,Lya,HU,Mya,Nya,Oya,Pya,OU,Rya,Qya,LU,MU,NU,Sya,Tya,Uya,PU,Vya,QU,Wya,RU,Xya,Yya,Zya,TU,cza,VU,eza,YU,aza,bza,$ya,WU,UU,dza,jza,hza,fza,$U,kza,aV,lza,bV,
cV,mza,nza,oza,pza,qza,dV,sza,eV,fV,gV,hV,iV,tza,uza,uU,wU,xza,lV,mV,vU,wya,pV,kV,yza,jV,vza,wza,qV,rV,zza,oV,tU,nV,Aza,Bza,Cza,sV,Eza,Dza,tV,Fza,Gza,uV,xV,Kza,vV,Sza,wV,Tza,yV,Oza,Lza,Pza,Iza,zV,Uza,Vza,Yza,Xza,Wza,AV,Zza,cAa,dAa,FV,GV,eAa,IV,JV,LV,hAa,iAa,MV,jAa,DV,OV,lAa,mAa,oAa,iza,NV,nAa,aAa,SU,KV,fAa,pAa,qAa,rAa,$za,EV,CV,XU,HV,gza,QV,RV,sAa,tAa,uAa,wAa,vAa,SV,xAa,zAa,yAa,BAa,UV,FAa,CAa,EAa,GAa,VV,KAa,IAa,JAa,MAa,NAa,OAa,WV,TV,PAa,HAa,QAa,XV,RAa,DAa,SAa,YV,ZV,TAa,VAa,WAa,$V,UAa,aW,bW,cW,dW,
eW,gW,YAa,$Aa,hW,ZAa,jW,iW,fW,aBa,lW,nW,bBa,dBa,cBa,mW,eBa,fBa,hBa,gBa,iBa,jBa,qW,lBa,oBa,mBa,pBa,qBa,kBa,rBa,sBa,uBa,wBa,xBa,tBa,zBa,ABa,nBa,BBa,CBa,vBa,sW,DBa,EBa,FBa,GBa,tW,uW,xW,yW,KBa,zW,LBa,MBa,AW,IBa,NBa,OBa,DW,PBa,RBa,QBa,SBa,EW,FW,TBa,GW,HW,IW,WBa,KW,JW,XBa,MW,VBa,YBa,ZBa,LW,$Ba,NW,aCa,JBa,CW,cCa,dCa,eCa,fCa,gCa,hCa,jCa,kCa,lCa,iCa,mCa,nCa,PW,oCa,pCa,qCa,QW,RW,rCa,sCa,tCa,TW,vCa,VW,wCa,xCa,UW,SW,uCa,YW,XW,yCa,ZW,WW,zCa,aX,DCa,dX,ECa,BCa,bX,eX,CCa,FCa,fX,HCa,$W,ICa,JCa,GCa,KCa,cX,LCa,MCa,
ACa,gX,hX,nX,OCa,PCa,oX,RCa,TCa,SCa,UCa,WCa,XCa,VCa,YCa,ZCa,pX,rX,$Ca,sX,bAa,aDa,rza,bDa,tX,cDa,dDa,eDa,fDa,hDa,iDa,jDa,kDa,lDa,uX,nDa,vX,pDa,qDa,oDa,xX,yX,zX,AX,BX,CX,DX,rDa,sDa,tDa,xDa,zDa,BDa,CDa,mDa,wX,DDa,IDa,GDa,JDa,HDa,EDa,KDa,FDa,MDa,EX,ODa,PDa,QDa,JX,VI,KX,bT,SDa,txa,UDa,LX,pW,VDa,QX,NX,qT,TDa,SX,XDa,TX,Hwa,PX,UX,GX,WDa,RDa,oW,XX,YX,lT,bEa,kW,nxa,WX,zT,MX,cEa,eEa,dEa,fEa,ZX,gxa,gEa,hEa,$Da,FX,iEa,$X,OX,HX,aY,mT,jEa,bY,vT,kEa,lEa,mEa,fxa,VX,aEa,kAa,wEa,tEa,qEa,AEa,pEa,BEa,CEa,fY,jY,FEa,DEa,
hY,EEa,dY,lY,mY,HEa,nY,oY,uEa,vEa,uY,KEa,tY,eY,LEa,xEa,xY,MEa,zEa,qY,rY,pY,AY,REa,kY,SEa,TEa,BY,wY,CY,DY,UEa,sY,GEa,zY,NEa,VEa,WEa,iN,YEa,vY,EY,$Ea,gY,FY,iY,bFa,cFa,sEa,yY,dFa,rEa,GY,HY,Xxa,eFa,IY,JY,KY,fFa,LY,MY,NY,OY,PY,QY,hFa,gFa,RY,iFa,SY,TY,UY,kFa,WY,mFa,VY,nFa,YY,oFa,ZY,XY,$Y,aZ,soa,toa,Jna,cZ,rFa,kZ,lZ,qK,jZ,mZ,uFa,vFa,wFa,xFa,qFa,yFa,bZ,zFa,AFa,pZ,gZ,oZ,uZ,qZ,eZ,BFa,dZ,nZ,rZ,vZ,hZ,iZ,tZ,sZ,DFa,wZ,xZ,EFa,yZ,Y,FFa,GFa,JFa,KFa,OFa,zZ,PFa,LFa,QFa,AZ,BZ,CZ,SFa,VFa,TFa,YFa,eGa,ZFa,fGa,aGa,bGa,$Fa,
iGa,kGa,nGa,oGa,qGa,rGa,vGa,PZ,sGa,yGa,wGa,AGa,SZ,wz,BGa,UZ,tz,WZ,XZ,Jia,YZ,EGa,FGa,ZZ,QZ,EZ,$Z,RZ,NZ,FZ,IZ,a_,b_,JZ,GGa,XFa,GZ,HZ,MZ,HGa,IGa,c_,d_,JGa,TZ,LZ,KZ,DZ,lGa,pGa,OZ,tGa,gGa,cGa,e_,f_,g_,KGa,h_,i_,j_,k_,l_,m_,n_,o_,HFa,p_,IFa,MGa,LGa,RFa,mGa,NGa,zGa,OGa,jGa,WFa,UFa,NFa,MFa,dGa,uGa,xGa,hGa,QGa,q_,PGa,r_,rK,fZ,sFa,VZ,s_,t_,u_,RGa,v_,w_,x_,y_,SGa,pFa,TGa,z_,DGa,A_,UGa,VGa,C_,D_,XGa,YGa,F_,G_,H_,WGa,E_,ZGa,$Ga,I_,vz,cHa,bHa,J_,B_,dHa,eHa,fHa,K_,L_,gHa,hHa,iHa,jHa,M_,N_,O_,P_,Q_,R_,S_,kHa,T_,
U_,V_,W_,X_,Y_,lHa,mHa,nHa,Z_,$_,a0,b0,oHa,c0,pHa,d0,qHa,e0,rHa,f0,g0,h0,i0,j0,k0,sHa,m0,n0,tHa,uHa,vHa,p0,o0,q0,r0,wHa,xHa,s0,t0,yHa,u0,AHa,zHa,v0,w0,BHa,x0,DHa,EHa,CHa,FHa,y0,GHa,HHa,z0,A0,B0,IHa,C0,D0,E0,JHa,F0,G0,KHa,H0,l0,I0,J0,roa,K0,LHa,L0,MHa,M0,N0,O0,P0,NHa,Q0,OHa,R0,S0,QHa,PHa,RHa,THa,SHa,UHa,T0,U0,V0,CGa,VHa,W0,X0,Y0,WHa,Z0,XHa,YHa,$0,a1,ZHa,b1,$Ha,aIa,c1,bIa,cIa,d1,e1,g1,dIa,h1,i1,j1,eIa,k1,fIa,l1,m1,gIa,n1,hIa,o1,iIa,jIa,kIa,lIa,mIa,q1,nIa,oIa,pIa,qIa,rIa,r1,sIa,s1,t1,u1,v1,tIa,w1,uIa,
vIa,wIa,z1,xIa,yIa,zIa,AIa,A1,y1,BIa,C1,CIa,D1,E1,F1,G1,H1,DIa,FIa,EIa,GIa,I1,HIa,IIa,J1,JIa,K1,L1,M1,KIa,LIa,N1,MIa,O1,P1,NIa,OIa,PIa,uz,QIa,RIa,aa,fa,ea,Gi,Oa,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
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.v=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Vd=b.prototype};
pa=function(){this.J=!1;this.C=null;this.l=void 0;this.i=1;this.B=this.I=0;this.V=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={lI:b,tJ:!0};a.i=a.I||a.B};
g.w=function(a,b,c){a.i=c;return{value:b}};
g.sa=function(a){a.i=0};
ta=function(a,b,c){a.I=b;void 0!=c&&(a.B=c)};
ua=function(a,b){a.i=b;a.I=0};
va=function(a){a.I=0;var b=a.u.lI;a.u=null;return b};
wa=function(a){a.V=[a.u];a.I=0;a.B=0};
xa=function(a,b){var c=a.V.splice(0)[0];(c=a.u=a.u||c)?c.tJ?a.i=a.I||a.B:void 0!=c.wb&&a.B<c.wb?(a.i=c.wb,a.u=null):a.i=a.B:a.i=b};
baa=function(a){this.i=new pa;this.l=a};
caa=function(a,b){qa(a.i);var c=a.i.C;if(c)return ya(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Aa(a)};
ya=function(a,b,c,d){try{var e=b.call(a.i.C,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.C=null,ra(a.i,h),Aa(a)}a.i.C=null;d.call(a.i,f);return Aa(a)};
Aa=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.tJ)throw b.lI;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.i);a.i.C?b=ya(a,a.i.C.next,b,a.i.L):(a.i.L(b),b=Aa(a));return b};
this.throw=function(b){qa(a.i);a.i.C?b=ya(a,a.i.C["throw"],b,a.i.L):(ra(a.i,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.z=function(a,b){b=new daa(new baa(b));na&&a.prototype&&na(b,a.prototype);return b};
Ba=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{dJ:e,EM:f}}return{dJ:-1,EM:void 0}};
Ea=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};
Fa=function(a){return a?a:Array.prototype.fill};
g.Ga=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};
g.Ha=function(a,b){a=a.split(".");b=b||g.A;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ia=function(){};
Ja=function(a){a.Ke=void 0;a.getInstance=function(){return a.Ke?a.Ke:a.Ke=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]=++eaa)};
faa=function(a,b,c){return a.call.apply(a.bind,arguments)};
gaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.C=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.C=faa:g.C=gaa;return g.C.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.Vd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ah=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)}};
Ua=function(a){return a};
Va=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b&&(this.wP=b)};
Wa=function(a,b){var c=Va.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Va,this,d+a[e])};
haa=function(){};
g.Xa=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 b};
iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ya=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.Za=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("")};
$a=function(a){return function(){return a}};
ab=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
bb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
cb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
jaa=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.db=function(a){return a[a.length-1]};
kaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.fb=function(a,b,c){b=eb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
eb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.gb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.jb=function(a,b){return 0<=ib(a,b)};
g.kb=function(a){return 0==a.length};
lb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ob=function(a,b){b=ib(a,b);var c;(c=0<=b)&&g.nb(a,b);return c};
g.nb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.pb=function(a,b){b=eb(a,b,void 0);0<=b&&g.nb(a,b)};
laa=function(a,b){var c=0;kaa(a,function(d,e){b.call(void 0,d,e,a)&&g.nb(a,e)&&c++})};
g.qb=function(a){return Array.prototype.concat.apply([],arguments)};
g.rb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
sb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.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.ub=function(a,b,c,d){Array.prototype.splice.apply(a,tb(arguments,1))};
tb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
maa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Na(e)?"o"+g.Pa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.xb=function(a,b,c){return vb(a,c||wb,!1,b)};
yb=function(a,b){return vb(a,b,!0,void 0,void 0)};
vb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.zb=function(a,b){a.sort(b||wb)};
naa=function(a,b){var c=wb;g.zb(a,function(d,e){return c(b(d),b(e))})};
g.Ab=function(a,b){if(!g.Ma(a)||!g.Ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=oaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
wb=function(a,b){return a>b?1:a<b?-1:0};
oaa=function(a,b){return a===b};
g.Bb=function(a,b,c){c=g.xb(a,b,c);0>c&&g.ub(a,-(c+1),0,b)};
g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
paa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
qaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
g.Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Fb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Gb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Hb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ib=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Jb=function(a){for(var b in a)return b};
Kb=function(a){for(var b in a)return a[b]};
Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Mb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Nb=function(a,b){return null!==a&&b in a};
g.Ob=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Pb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Qb=function(a,b){return(b=Pb(a,b,void 0))&&a[b]};
g.Rb=function(a){for(var b in a)return!1;return!0};
g.Sb=function(a){for(var b in a)delete a[b]};
Tb=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();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);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};
ac=function(){if(void 0===$b){var a=null,b=g.A.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ua,createScript:Ua,createScriptURL:Ua})}catch(c){g.A.console&&g.A.console.error(c.message)}$b=a}else $b=a}return $b};
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,b){this.i=b===hc?a:"";this.xk=!0};
lc=function(a,b){this.i=b===kc?a:""};
mc=function(a){return a instanceof lc&&a.constructor===lc?a.i:"type_error:TrustedResourceUrl"};
taa=function(a,b){var c=fc(a);if(!raa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(saa,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof ec?fc(d):encodeURIComponent(String(d))});
return nc(a)};
nc=function(a){var b=ac();a=b?b.createScriptURL(a):a;return new lc(a,kc)};
oc=function(a,b){return 0==a.lastIndexOf(b,0)};
rc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.sc=function(a){return/^[\s\xa0]*$/.test(a)};
zc=function(a,b){if(b)a=a.replace(tc,"&amp;").replace(uc,"&lt;").replace(vc,"&gt;").replace(wc,"&quot;").replace(xc,"&#39;").replace(yc,"&#0;");else{if(!uaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(uc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(vc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(xc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(yc,"&#0;"))}return a};
Ac=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Dc=function(a,b){var c=0;a=Bc(String(a)).split(".");b=Bc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=Cc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Cc(0==f[2].length,0==h[2].length)||Cc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
Cc=function(a,b){return a<b?-1:a>b?1:0};
g.Fc=function(a,b){this.i=b===Ec?a:""};
g.Gc=function(a){return a instanceof g.Fc&&a.constructor===g.Fc?a.i:"type_error:SafeUrl"};
Hc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(vaa);return b&&waa.test(b[1])?new g.Fc(a,Ec):null};
g.Kc=function(a){a instanceof g.Fc||(a="object"==typeof a&&a.xk?a.Hh():String(a),a=Ic.test(a)?new g.Fc(a,Ec):Hc(a));return a||Jc};
g.Lc=function(a,b){if(a instanceof g.Fc)return a;a="object"==typeof a&&a.xk?a.Hh():String(a);if(b&&/^data:/i.test(a)&&(b=Hc(a)||Jc,b.Hh()==a))return b;Ic.test(a)||(a="about:invalid#zClosurez");return new g.Fc(a,Ec)};
Nc=function(a,b){this.i=b===Mc?a:""};
Oc=function(a){return a instanceof Nc&&a.constructor===Nc?a.i:"type_error:SafeStyle"};
Rc=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)?d.map(Pc).join(" "):Pc(d),b+=c+":"+d+";")}return b?new Nc(b,Mc):Qc};
Pc=function(a){if(a instanceof g.Fc)return'url("'+g.Gc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof ec?fc(a):xaa(String(a));if(/[{;}]/.test(a))throw new Wa("Value does not allow [{;}], got: %s.",[a]);return a};
xaa=function(a){var b=a.replace(Sc,"$1").replace(Sc,"$1").replace(Tc,"url");if(yaa.test(b)){if(zaa.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||!Aaa(a))return"zClosurez"}else return"zClosurez";return Baa(a)};
Aaa=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};
Baa=function(a){return a.replace(Tc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Kc(d).Hh();return c+f+b+f+e})};
Caa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Oc(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Nc(c,Mc):Qc};
Vc=function(a){return-1!=g.Uc.indexOf(a)};
Wc=function(){return Vc("Firefox")||Vc("FxiOS")};
Yc=function(){return Vc("Safari")&&!(Xc()||Vc("Coast")||Vc("Opera")||Vc("Edge")||Vc("Edg/")||Vc("OPR")||Wc()||Vc("Silk")||Vc("Android"))};
Xc=function(){return(Vc("Chrome")||Vc("CriOS"))&&!Vc("Edge")};
$c=function(a,b,c){this.i=c===Zc?a:"";this.l=b};
g.ad=function(a){return a instanceof $c&&a.constructor===$c?a.i:"type_error:SafeHtml"};
cd=function(a){if(a instanceof $c)return a;var b="object"==typeof a,c=null;b&&a.UC&&(c=a.zr());return bd(zc(b&&a.xk?a.Hh():String(a)),c)};
Daa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=cd(f),e.push(g.ad(f).toString()),f=f.zr(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=cd(dd),d=c.zr(),e=[];a.forEach(b);return bd(e.join(g.ad(c).toString()),d)};
Eaa=function(a){return Daa(Array.prototype.slice.call(arguments))};
bd=function(a,b){var c=ac();a=c?c.createHTML(a):a;return new $c(a,b,Zc)};
g.ed=function(a,b){fc(a);fc(a);return bd(b,null)};
Faa=function(a,b){fc(a);fc(a);return new Nc(b,Mc)};
fd=function(a,b){fc(a);fc(a);return nc(b)};
g.jd=function(a,b){if(Gaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ad(b)};
g.kd=function(a,b){b=b instanceof g.Fc?b:g.Lc(b);a.href=g.Gc(b)};
ld=function(a,b,c,d){a=a instanceof g.Fc?a:g.Lc(a);b=b||g.A;c=c instanceof ec?fc(c):c||"";return void 0!==d?b.open(g.Gc(a),c,d,void 0):b.open(g.Gc(a),c)};
md=function(a,b,c){return a.parseFromString(g.ad(b),c)};
nd=function(){a:{var a=g.A.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Haa.test(a))break a;a=""}return a};
od=function(a){return encodeURIComponent(String(a))};
pd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.qd=function(a){return a=zc(a,void 0)};
g.rd=function(a){return null==a?"":String(a)};
sd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
td=function(a){var b=Number(a);return 0==b&&g.sc(a)?NaN:b};
ud=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
vd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Iaa=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};
Jaa=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
wd=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
yd=function(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?g.xd(a):a instanceof Uint8Array?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0)};
Ad=function(a,b,c){this.l=null;this.i=this.u=this.B=0;this.C=!1;a&&zd(this,a,b,c)};
Cd=function(a,b,c){if(Bd.length){var d=Bd.pop();a&&zd(d,a,b,c);return d}return new Ad(a,b,c)};
zd=function(a,b,c,d){a.l=yd(b);a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B};
Dd=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)return wd(c>>>0,d>>>0);a.C=!0};
Ed=function(a){var b=a.l,c=b[a.i+0],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};
Fd=function(a){this.i=Cd(a,void 0,void 0);this.I=this.i.i;this.l=this.C=this.B=-1;this.u=!1};
Gd=function(a){var b=a.i;(b=b.i==b.u)||(b=a.u)||(b=a.i,b=b.C||0>b.i||b.i>b.u);if(b)return!1;a.I=a.i.i;b=Ed(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.u=!0,!1;a.C=b;a.B=b>>>3;a.l=c;return!0};
Hd=function(a){switch(a.l){case 0:if(0!=a.l)Hd(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?Hd(a):a.i.advance(8);break;case 2:if(2!=a.l)Hd(a);else{var b=Ed(a.i);a.i.advance(b)}break;case 5:5!=a.l?Hd(a):a.i.advance(4);break;case 3:b=a.B;do{if(!Gd(a)){a.u=!0;break}if(4==a.l){a.B!=b&&(a.u=!0);break}Hd(a)}while(1);break;default:a.u=!0}};
Kd=function(a){var b=Ed(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;var d=a.i,e=a.i+b;c=Id?c.slice(d,e):new Uint8Array(c.subarray(d,e));a.i+=b;b=c}return b};
Ld=function(){this.i=new Uint8Array(64);this.l=0};
Md=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
Nd=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
Od=function(){return Vc("iPhone")&&!Vc("iPod")&&!Vc("iPad")};
Pd=function(){return Od()||Vc("iPad")||Vc("iPod")};
Qd=function(){var a=g.Uc,b="";Vc("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Pd()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Vc("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):Ac(g.Uc,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Vc("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Vc("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||
""};
Rd=function(a){Rd[" "](a);return a};
Sd=function(a,b){try{return Rd(a[b]),!0}catch(c){}return!1};
Td=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Ud=function(){var a=g.A.document;return a?a.documentMode:void 0};
g.Wd=function(a){return Td(Kaa,a,function(){return 0<=g.Dc(Vd,a)})};
g.Xd=function(a){return Number(Laa)>=a};
g.$d=function(a,b){void 0===b&&(b=0);Yd();b=Zd[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
be=function(a){var b=[];ae(a,function(c){b.push(c)});
return b};
g.xd=function(a){!g.ce||g.Wd("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;ae(a,function(f){d[e++]=f});
return d.subarray(0,e)};
ae=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=de[n];if(null!=p)return p;if(!g.sc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Yd();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))}};
Yd=function(){if(!de){de={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Zd[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===de[f]&&(de[f]=e)}}}};
ie=function(){this.u=[];this.l=0;this.i=new Ld};
je=function(a){var b=a.l+a.i.length();if(0===b)return new Uint8Array(0);b=new Uint8Array(b);for(var c=a.u,d=c.length,e=0,f=0;f<d;f++){var h=c[f];0!==h.length&&(b.set(h,e),e+=h.length)}c=a.i;d=c.l;0!==d&&(b.set(c.i.subarray(0,d),e),c.l=0);a.u=[b];return b};
me=function(a,b,c){if(null!=c&&null!=c){Md(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)));ke=b;le=d;c=ke;for(b=le;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
ne=function(a,b,c){null!=c&&(c=yd(c),Md(a.i,8*b+2),Md(a.i,c.length),b=a.i.end(),a.u.push(b),a.u.push(c),a.l+=b.length+c.length)};
oe=function(a,b,c,d){if(null!=c){Md(a.i,8*b+2);b=a.i.end();a.u.push(b);a.l+=b.length;var e=a.l;b=a.u.length-1;d(c,a);c=a.i.end();a.u.push(c);a.l+=c.length;Md(a.i,a.l+a.i.length()-e);c=a.i.end();a.l+=c.length;a.u.splice(1+b,0,c)}};
Maa=function(a){return pe(a,function(b){return b},function(b){return new Uint8Array(b)})};
re=function(a,b,c){return"object"===typeof a?qe&&!Array.isArray(a)&&a instanceof Uint8Array?c(a):pe(a,b,c):b(a)};
pe=function(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e<a.length;e++){var f=a[e];null!=f&&(d[e]=re(f,b,c))}Array.isArray(a)&&a.gR&&se(d);return d}d={};for(e in a)f=a[e],null!=f&&(d[e]=re(f,b,c));return d};
se=function(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,Naa);return a};
ve=function(a){if(4==a.l)return!1;Hd(a);return!0};
we=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.xd(a):null};
xe=function(){};
ze=function(a,b){ye=b;a=new a(b);ye=null;return a};
De=function(a,b,c,d,e){a.i=null;ye&&(b||(b=ye),ye=null);var f=a.constructor.vR;b||(b=f?[f]:[]);a.B=f?0:-1;a.u=b;a:{f=a.u.length;b=-1;if(f&&(b=f-1,f=a.u[b],!(null===f||"object"!=typeof f||Array.isArray(f)||qe&&f instanceof Uint8Array))){a.C=b-a.B;a.l=f;break a}-1<c?(a.C=Math.max(c,b+1-a.B),a.l=null):a.C=Number.MAX_VALUE}a.I={};if(d)for(c=0;c<d.length;c++)b=d[c],b<a.C?(b+=a.B,(f=a.u[b])?se(f):a.u[b]=Ae):(Be(a),(f=a.l[b])?se(f):a.l[b]=Ae);if(e&&e.length)for(d=0;d<e.length;d++)Ce(a,e[d])};
Be=function(a){var b=a.C+a.B;a.u[b]||(a.l=a.u[b]={})};
Ee=function(a,b){if(b<a.C){b+=a.B;var c=a.u[b];return c!==Ae?c:a.u[b]=se([])}if(a.l)return c=a.l[b],c!==Ae?c:a.l[b]=se([])};
Fe=function(a,b,c){a=Ee(a,b);return null==a?c:a};
Ge=function(a,b,c){return Fe(a,b,void 0===c?0:c)};
He=function(a,b,c){b<a.C?a.u[b+a.B]=c:(Be(a),a.l[b]=c);return a};
Ie=function(a,b,c,d){c!==d?He(a,b,c):b<a.C?a.u[b+a.B]=null:(Be(a),delete a.l[b]);return a};
Je=function(a,b,c,d){(c=Ce(a,c))&&c!==b&&void 0!==d&&(a.i&&c in a.i&&(a.i[c]=void 0),He(a,c,void 0));return He(a,b,d)};
Ce=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=Ee(a,f);null!=h&&(c=f,d=h,He(a,f,void 0))}return c?(He(a,c,d),c):0};
Ke=function(a,b,c){a.i||(a.i={});if(!a.i[c]){var d=Ee(a,c);d&&(a.i[c]=new b(d))}return a.i[c]};
Le=function(a,b,c){a.i||(a.i={});if(!a.i[c]){for(var d=Ee(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}b=a.i[c];b==Ae&&(b=a.i[c]=[]);return b};
Ne=function(a,b,c){a.i||(a.i={});var d=c?Me(c):c;a.i[b]=c;return He(a,b,d)};
Oe=function(a,b,c){a.i||(a.i={});c=c||[];for(var d=se([]),e=0;e<c.length;e++)d[e]=Me(c[e]);a.i[b]=c;return He(a,b,d)};
Me=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]&&Me(c[d]);else c&&Me(c)}return a.u};
Pe=function(a){return JSON.stringify(a.u&&Me(a),Oaa)};
Oaa=function(a,b){switch(typeof b){case "number":return isNaN(b)||Infinity===b||-Infinity===b?String(b):b;case "object":if(qe&&null!=b&&b instanceof Uint8Array)return g.$d(b)}return b};
Qaa=function(a){var b=Paa;Be(a);a.i||(a.i={});return b.isRepeated?b.i?(a.i[175237375]||(a.i[175237375]=g.Qe(a.l[175237375]||[],function(c){return new b.i(c)})),a.i[175237375]):a.l[175237375]=a.l[175237375]||se([]):b.i?(!a.i[175237375]&&a.l[175237375]&&(a.i[175237375]=new b.i(a.l[175237375])),a.i[175237375]):a.l[175237375]};
Re=function(a){De(this,a,-1,null,null)};
Raa=function(a,b){var c=Ee(a,1);null!=c&&ne(b,1,c);c=Ee(a,2);null!=c&&ne(b,2,c)};
Se=function(a){De(this,a,-1,null,null)};
Saa=function(a,b){var c=Ee(a,1);null!=c&&ne(b,1,c);c=Ee(a,2);null!=c&&ne(b,2,c)};
Te=function(a){De(this,a,-1,null,null)};
Taa=function(a,b){var c=Ee(a,1);null!=c&&ne(b,1,c);c=Ee(a,2);null!=c&&ne(b,2,c)};
Ve=function(a){De(this,a,-1,null,Ue)};
g.D=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())})};
We=function(a,b){var c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b instanceof Error?(this.message=b.message,this.stack=null!==(c=b.stack)&&void 0!==c?c:""):(this.message=String(b),this.stack="");Object.setPrototypeOf(this,We.prototype)};
g.Xe=function(a,b,c){this.B=a;this.C=b;this.i=this.u=a;this.I=c||0};
g.Ye=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++};
Ze=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){switch(m.i){case 1:e=new g.Xe(b.hJ,b.RJ),h=0;case 2:if(!(h<b.EL)){m.wb(4);break}ta(m,5);return g.w(m,a(),7);case 7:return m.return(m.l);case 5:return f=l=va(m),g.w(m,new Promise(function(n){setTimeout(n,e.getValue())}),8);
case 8:g.Ye(e);case 3:h++;m.wb(2);break;case 4:throw f;}})})};
$e=function(a){this.KH=a};
af=function(a,b,c){this.l=a;this.B=b;this.i=c||[];this.Zq=new Map};
df=function(a,b){af.call(this,a,3,b)};
ef=function(a,b){af.call(this,a,2,b)};
g.ff=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.gf=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ma(d)?g.gf.apply(null,d):g.ff(d)}};
g.E=function(){this.Vh=this.Vh;this.wh=this.wh};
g.F=function(a,b){g.hf(a,g.Qa(g.ff,b))};
g.hf=function(a,b){a.Vh?b():(a.wh||(a.wh=[]),a.wh.push(b))};
g.jf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.l=!1};
Uaa=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=kf(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,lf[c])c=lf[c];else{c=String(c);if(!lf[c]){var f=/function\s+([^\(]+)/m.exec(c);lf[c]=f?f[1]:"[Anonymous]"}c=lf[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{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
kf=function(a,b){b||(b={});b[mf(a)]=!0;var c=a.stack||"";(a=a.wP)&&!b[mf(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=kf(a,b));return c};
mf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
nf=function(a,b){g.jf.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)};
pf=function(a){return!(!a||!a[of])};
Waa=function(a,b,c,d,e){this.listener=a;this.i=null;this.src=b;this.type=c;this.capture=!!d;this.qe=e;this.key=++Vaa;this.Jv=this.Pw=!1};
qf=function(a){a.Jv=!0;a.listener=null;a.i=null;a.src=null;a.qe=null};
rf=function(a){this.src=a;this.listeners={};this.i=0};
sf=function(a,b){var c=b.type;c in a.listeners&&g.ob(a.listeners[c],b)&&(qf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
tf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Jv&&f.listener==b&&f.capture==!!c&&f.qe==d)return e}return-1};
vf=function(a,b,c,d,e){if(d&&d.once)return uf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)vf(a,b[f],c,d,e);return null}c=wf(c);return pf(a)?a.Pa(b,c,g.Na(d)?!!d.capture:!!d,e):xf(a,b,c,!1,d,e)};
xf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Na(e)?!!e.capture:!!e,l=yf(a);l||(a[Cf]=l=new rf(a));c=l.add(b,c,d,h,f);if(c.i)return c;d=Xaa();c.i=d;d.src=a;d.listener=c;if(a.addEventListener)Yaa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Df(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Ef++;return c};
Xaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Zaa;return a};
uf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)uf(a,b[f],c,d,e);return null}c=wf(c);return pf(a)?a.iy(b,c,g.Na(d)?!!d.capture:!!d,e):xf(a,b,c,!0,d,e)};
Ff=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ff(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=wf(c),pf(a)?a.lc(b,c,d,e):a&&(a=yf(a))&&(b=a.vu(b,c,d,e))&&Gf(b)};
Gf=function(a){if("number"!==typeof a&&a&&!a.Jv){var b=a.src;if(pf(b))sf(b.B,a);else{var c=a.type,d=a.i;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Df(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Ef--;(c=yf(b))?(sf(c,a),0==c.i&&(c.src=null,b[Cf]=null)):qf(a)}}};
Df=function(a){return a in Hf?Hf[a]:Hf[a]="on"+a};
Zaa=function(a,b){if(a.Jv)a=!0;else{b=new nf(b,this);var c=a.listener,d=a.qe||a.src;a.Pw&&Gf(a);a=c.call(d,b)}return a};
yf=function(a){a=a[Cf];return a instanceof rf?a:null};
wf=function(a){if("function"===typeof a)return a;a[If]||(a[If]=function(b){return a.handleEvent(b)});
return a[If]};
g.Jf=function(){g.E.call(this);this.B=new rf(this);this.xb=this;this.Ga=null};
Kf=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Jv&&h.capture==c){var l=h.listener,m=h.qe||h.src;h.Pw&&sf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Lf=function(a,b){this.u=a;this.B=b;this.l=0;this.i=null};
Mf=function(a,b){a.B(b);100>a.l&&(a.l++,b.next=a.i,a.i=b)};
$aa=function(a,b){return a+Math.random()*(b-a)};
g.Nf=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Of=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Pf=function(a,b,c){return a+c*(b-a)};
Qf=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Rf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Sf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Tf=function(a,b){this.width=a;this.height=b};
g.Uf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Vf=function(a){return a.width*a.height};
Zf=function(a){return a?new Wf(Xf(a)):Yf||(Yf=new Wf)};
$f=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.ag=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.cg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.bg(document,"*",a,b)};
g.dg=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.bg(c,"*",a,b)[0]||null}return a||null};
g.bg=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.jb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
fg=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.xk&&(c=c.Hh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:eg.hasOwnProperty(d)?a.setAttribute(eg[d],c):oc(d,"aria-")||oc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
gg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Tf(a.clientWidth,a.clientHeight)};
ig=function(a){var b=hg(a);a=a.parentWindow||a.defaultView;return g.ce&&g.Wd("10")&&a.pageYOffset!=b.scrollTop?new g.Rf(b.scrollLeft,b.scrollTop):new g.Rf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
hg=function(a){return a.scrollingElement?a.scrollingElement:g.jg||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
kg=function(a){return a?a.parentWindow||a.defaultView:window};
ng=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!aba&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.qd(h.name),'"');if(h.type){f.push(' type="',g.qd(h.type),'"');var l={};g.Yb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=lg(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):fg(f,h));2<d.length&&mg(e,f,d,2);return f};
mg=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.Cb(h?g.rb(f):f,e)}}};
g.og=function(a){return lg(document,a)};
lg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.pg=function(a){return document.createTextNode(String(a))};
g.qg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.rg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.sg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
cba=function(a){return bba&&void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.tg=function(a){var b;if(dba&&!(g.ce&&g.Wd("9")&&!g.Wd("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.ug=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};
Xf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.vg=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.qg(a);var c=Xf(a);a.appendChild(c.createTextNode(String(b)))}};
yg=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&&(!wg(a)||xg(a)):b=wg(a)&&xg(a);if(b&&g.ce){var c;"function"!==typeof a.getBoundingClientRect||g.ce&&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};
wg=function(a){return g.ce&&!g.Wd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
xg=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Ag=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return zg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.jb(f.className.split(/\s+/),c))},!0,d)};
zg=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};
Wf=function(a){this.i=a||g.A.document||document};
Cg=function(a){"function"!==typeof g.A.setImmediate||g.A.Window&&g.A.Window.prototype&&!Vc("Edge")&&g.A.Window.prototype.setImmediate==g.A.setImmediate?(Bg||(Bg=eba()),Bg(a)):g.A.setImmediate(a)};
eba=function(){var a=g.A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Vc("Presto")&&(a=function(){var e=g.og("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.C)(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&&!Vc("Trident")&&!Vc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.HH;c.HH=null;e()}};
return function(e){d.next={HH:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.A.setTimeout(e,0)}};
Dg=function(a){g.A.setTimeout(function(){throw a;},0)};
Eg=function(){this.l=this.i=null};
Fg=function(){this.next=this.scope=this.i=null};
g.Jg=function(a,b){Gg||fba();Hg||(Gg(),Hg=!0);Ig.add(a,b)};
fba=function(){if(g.A.Promise&&g.A.Promise.resolve){var a=g.A.Promise.resolve(void 0);Gg=function(){a.then(Kg)}}else Gg=function(){Cg(Kg)}};
Kg=function(){for(var a;a=Ig.remove();){try{a.i.call(a.scope)}catch(b){Dg(b)}Mf(Lg,a)}Hg=!1};
Mg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Og=function(a){this.Oa=0;this.Sd=void 0;this.Yq=this.Fm=this.Qp=null;this.Hx=this.gC=!1;if(a!=g.Ia)try{var b=this;a.call(void 0,function(c){Ng(b,2,c)},function(c){Ng(b,3,c)})}catch(c){Ng(this,3,c)}};
Pg=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1};
Tg=function(a,b,c){var d=Sg.get();d.l=a;d.onRejected=b;d.context=c;return d};
Ug=function(a){if(a instanceof Og)return a;var b=new Og(g.Ia);Ng(b,2,a);return b};
Vg=function(a){return new Og(function(b,c){c(a)})};
Xg=function(a,b,c){Wg(a,b,c,null)||g.Jg(g.Qa(b,a))};
gba=function(a){return new Og(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Xg(e,b,c)})};
Yg=function(a){return new Og(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],Xg(m,g.Qa(f,l),h);
else b(e)})};
$g=function(a,b){b=Tg(b,b,void 0);b.u=!0;Zg(a,b);return a};
g.bh=function(a,b){return ah(a,null,b,void 0)};
ch=function(a,b){if(0==a.Oa)if(a.Qp){var c=a.Qp;if(c.Fm){for(var d=0,e=null,f=null,h=c.Fm;h&&(h.u||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Oa&&1==d?ch(c,b):(f?(d=f,d.next==c.Yq&&(c.Yq=d),d.next=d.next.next):dh(c),eh(c,e,3,b)))}a.Qp=null}else Ng(a,3,b)};
Zg=function(a,b){a.Fm||2!=a.Oa&&3!=a.Oa||fh(a);a.Yq?a.Yq.next=b:a.Fm=b;a.Yq=b};
ah=function(a,b,c,d){var e=Tg(null,null,null);e.i=new Og(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 gh?h(l):f(m)}catch(n){h(n)}}:h});
e.i.Qp=a;Zg(a,e);return e.i};
Ng=function(a,b,c){0==a.Oa&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Oa=1,Wg(c,a.jW,a.kW,a)||(a.Sd=c,a.Oa=b,a.Qp=null,fh(a),3!=b||c instanceof gh||hba(a,c)))};
Wg=function(a,b,c,d){if(a instanceof Og)return Zg(a,Tg(b||g.Ia,c||null,d)),!0;if(Mg(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if("function"===typeof e)return iba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
iba=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)}};
fh=function(a){a.gC||(a.gC=!0,g.Jg(a.aQ,a))};
dh=function(a){var b=null;a.Fm&&(b=a.Fm,a.Fm=b.next,b.next=null);a.Fm||(a.Yq=null);return b};
eh=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.Hx;a=a.Qp)a.Hx=!1;if(b.i)b.i.Qp=null,hh(b,c,d);else try{b.u?b.l.call(b.context):hh(b,c,d)}catch(e){ih.call(null,e)}Mf(Sg,b)};
hh=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
hba=function(a,b){a.Hx=!0;g.Jg(function(){a.Hx&&ih.call(null,b)})};
gh=function(a){Va.call(this,a)};
g.jh=function(a,b){g.Jf.call(this);this.Rf=a||1;this.ew=b||g.A;this.CH=(0,g.C)(this.XV,this);this.HJ=g.Sa()};
g.kh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.C)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.C)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.A.setTimeout(a,b||0)};
lh=function(a,b){var c=null;return g.bh(new Og(function(d,e){c=g.kh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.A.clearTimeout(c);
throw d;})};
mh=function(a){this.J=a;this.i=new Map;this.I=new Set;this.u=0;this.B=100;this.flushInterval=3E4;this.l=new g.jh(this.flushInterval);this.l.Pa("tick",this.QL,!1,this);this.C=!1};
nh=function(a){a.l.enabled||a.l.start();a.u++;a.u>=a.B&&a.QL()};
oh=function(a,b){return a.I.has(b)?void 0:a.i.get(b)};
qda=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
ph=function(a){this.i=a;this.i.qH("/client_streamz/po/w/rl",{fp:3,ep:"mn"},{fp:2,ep:"sc"},{fp:3,ep:"rk"})};
qh=function(a){this.i=a;this.i.qH("/client_streamz/po/w/el",{fp:3,ep:"en"},{fp:3,ep:"rk"})};
rda=function(a){this.i=a;this.i.uP("/client_streamz/po/w/cec",{fp:2,ep:"ec"},{fp:3,ep:"rk"})};
rh=function(a){De(this,a,-1,sda,null)};
sh=function(a){De(this,a,-1,yda,null)};
uh=function(a){De(this,a,-1,null,th)};
wh=function(a){De(this,a,-1,null,vh)};
xh=function(a){De(this,a,-1,zda,null)};
yh=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};
Ada=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,u=0;64>u;u+=4)t[u/4]=r[u]<<24|r[u+1]<<16|r[u+2]<<8|r[u+3];for(u=16;80>u;u++)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],B=e[3],G=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var H=B^x&(y^B);var I=1518500249}else H=x^y^B,I=1859775393;else 60>u?(H=x&y|B&(x|y),I=2400959708):(H=x^y^B,I=3395469782);H=((r<<5|r>>>27)&4294967295)+H+G+I+t[u]&4294967295;G=B;B=y;y=(x<<30|x>>>2)&4294967295;x=r;r=H}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+G&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],x=0,y=r.length;x<y;++x)u.push(r.charCodeAt(x));r=u}t||(t=r.length);u=0;if(0==n)for(;u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=r[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)r[t++]=e[u]>>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,PP:function(){for(var r=d(),t="",u=0;u<r.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(r[u]/16))+"0123456789ABCDEF".charAt(r[u]%16);return t}}};
zh=function(a,b,c){var d=String(g.A.location.href);return d&&a&&b?[b,Bda(yh(d),a,c||null)].join(" "):null};
Bda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Cb(d,function(l){e.push(l)}),Ah(e.join(" "));
var f=[],h=[];g.Cb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.kb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Cb(d,function(l){e.push(l)});
a=Ah(e.join(" "));a=[c,a];g.kb(h)||a.push(h.join(""));return a.join("_")};
Ah=function(a){var b=Ada();b.update(a);return b.PP().toLowerCase()};
Bh=function(a){this.i=a||{cookie:""}};
Ch=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Bc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Dh=function(a){return!!Cda.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Eh=function(a){a=void 0===a?!1:a;var b=g.A.__SAPISID||g.A.__APISID||g.A.__3PSAPISID||g.A.__OVERRIDE_SID;Dh(a)&&(b=b||g.A.__1PSAPISID);if(b)return!0;var c=new Bh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Dh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Fh=function(a,b,c,d){(a=g.A[a])||(a=(new Bh(document)).get(b));return a?zh(a,c,d):null};
Gh=function(a,b){b=void 0===b?!1:b;var c=yh(String(g.A.location.href)),d=[];if(Eh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.A.__SAPISID:g.A.__APISID;e||(e=new Bh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?zh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Dh(b)&&((b=Fh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Fh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
Hh=function(a){De(this,a,-1,Dda,null)};
Ih=function(){};
g.Oh=function(a){var b=[];Nh(new Eda,a,b);return b.join("")};
Eda=function(){};
Nh=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),Nh(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),Ph(d,c),c.push(":"),Nh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ph(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);}}};
Ph=function(a,b){b.push('"',a.replace(Fda,function(c){var d=Qh[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Qh[c]=d);return d}),'"')};
Gda=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Rh=function(){};
Sh=function(){};
Th=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Uh=function(a,b){this.i=a[g.A.Symbol.iterator]();this.l=b;this.u=0};
Hda=function(a,b){return new Uh(a,b)};
g.Vh=function(){};
$h=function(a){if(a instanceof Wh||a instanceof Xh||a instanceof Yh)return a;if("function"==typeof a.next)return new Wh(function(){return Zh(a)});
if("function"==typeof a[Symbol.iterator])return new Wh(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Kg)return new Wh(function(){return Zh(a.Kg())});
throw Error("Not an iterator or iterable.");};
Zh=function(a){if(!(a instanceof g.Vh))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.next();break}catch(d){if(d!==g.ai)throw d;b=!0}return{value:c,done:b}}}};
Wh=function(a){this.i=a};
Xh=function(a){this.u=a};
Yh=function(a){Wh.call(this,function(){return a});
this.u=a};
g.ci=function(a,b){this.l={};this.i=[];this.Yn=this.size=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 a&&bi(this,a)};
ei=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];di(a.l,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.size!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],di(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
bi=function(a,b){if(b instanceof g.ci)for(var c=b.gi(),d=0;d<c.length;d++)a.set(c[d],b.get(c[d]));else for(c in b)a.set(c,b[c])};
di=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ida=function(a){if(a.Xg&&"function"==typeof a.Xg)return a.Xg();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Ma(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Lb(a)};
Jda=function(a){if(a.gi&&"function"==typeof a.gi)return a.gi();if(!a.Xg||"function"!=typeof a.Xg){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ma(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Mb(a)}}};
Kda=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(g.Ma(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,void 0);else for(var c=Jda(a),d=Ida(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
fi=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};
gi=function(a){return a?decodeURI(a):a};
g.ii=function(a,b){return b.match(hi)[a]||null};
g.ji=function(a){return gi(g.ii(3,a))};
ki=function(a){a=a.match(hi);return fi(a[1],null,a[3],a[4])};
li=function(a){a=a.match(hi);return fi(null,null,null,null,a[5],a[6],a[7])};
mi=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?pd(e):"")}}};
ni=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)]};
oi=function(a,b){return b?a?a+"&"+b:b:a};
pi=function(a,b){if(!b)return a;a=ni(a);a[1]=oi(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
qi=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)qi(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+od(b)))};
ri=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)qi(a[b],a[b+1],c);return c.join("&")};
g.si=function(a){var b=[],c;for(c in a)qi(c,a[c],b);return b.join("&")};
ti=function(a,b){var c=2==arguments.length?ri(arguments[1],0):ri(arguments,1);return pi(a,c)};
g.ui=function(a,b){b=g.si(b);return pi(a,b)};
vi=function(a,b,c){c=null!=c?"="+od(c):"";return pi(a,b+c)};
wi=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};
yi=function(a,b){var c=a.search(xi),d=wi(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 pd(a.substr(d,e-d))};
zi=function(a,b){for(var c=a.search(xi),d=0,e,f=[];0<=(e=wi(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(Lda,"$1")};
Ai=function(a,b,c){return vi(zi(a,b),b,c)};
Mda=function(a,b){a=ni(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)});
a[1]=oi(d.join("&"),g.si(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Bi=function(a){g.Jf.call(this);this.headers=new g.ci;this.Aa=a||null;this.C=!1;this.ya=this.i=null;this.Ra=this.V="";this.l=0;this.u="";this.I=this.Ia=this.ea=this.Da=!1;this.J=0;this.Y=null;this.La="";this.va=this.L=!1};
Nda=function(a,b,c,d,e,f,h){var l=new g.Bi;Ci.push(l);b&&l.Pa("complete",b);l.iy("ready",l.BP);f&&(l.J=Math.max(0,f));h&&(l.L=h);l.send(a,c,d,e)};
Oda=function(a){return g.ce&&g.Wd(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Fi=function(a,b){a.C=!1;a.i&&(a.I=!0,a.i.abort(),a.I=!1);a.u=b;a.l=5;Di(a);Ei(a)};
Di=function(a){a.Da||(a.Da=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Ki=function(a){if(a.C&&"undefined"!=typeof Gi)if(a.ya[1]&&4==g.Hi(a)&&2==a.getStatus())Ii(a,"Local request error detected and ignored");else if(a.ea&&4==g.Hi(a))g.kh(a.PK,0,a);else if(a.dispatchEvent("readystatechange"),4==g.Hi(a)){Ii(a,"Request complete");a.C=!1;try{if(Ji(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.l=6;try{var b=2<g.Hi(a)?a.i.statusText:""}catch(c){b=""}a.u=b+" ["+a.getStatus()+"]";Di(a)}}finally{Ei(a)}}};
Ei=function(a,b){if(a.i){Li(a);var c=a.i,d=a.ya[0]?g.Ia:null;a.i=null;a.ya=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Li=function(a){a.i&&a.va&&(a.i.ontimeout=null);a.Y&&(g.A.clearTimeout(a.Y),a.Y=null)};
Ji=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.ii(1,String(a.V)),!a&&g.A.self&&g.A.self.location&&(a=g.A.self.location.protocol,a=a.substr(0,a.length-1)),b=!Pda.test(a?a.toLowerCase():"");c=b}return c};
g.Hi=function(a){return a.i?a.i.readyState:0};
g.Ri=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
Si=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.La){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Qda=function(a){var b={};a=(a.i&&4==g.Hi(a)?a.i.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.sc(a[c])){var d=Jaa(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Gb(b,function(h){return h.join(", ")})};
Ii=function(a,b){return b+" ["+a.Ra+" "+a.V+" "+a.getStatus()+"]"};
Ti=function(a){De(this,a,-1,null,null)};
Rda=function(){var a=new Ti,b=document.documentElement.getAttribute("lang");return He(a,5,b)};
Ui=function(a){De(this,a,-1,null,null)};
Vi=function(a){De(this,a,31,Sda,null)};
Wi=function(a){De(this,a,17,Tda,null)};
Xi=function(a){var b=Date.now().toString();return He(a,4,b)};
Yi=function(a,b){return Oe(a,3,b)};
Zi=function(a,b){return He(a,14,b)};
$i=function(a){De(this,a,6,Uda,null)};
aj=function(a){De(this,a,-1,null,null)};
fj=function(a,b,c,d,e,f,h,l,m,n,p){g.Jf.call(this);var r=this;this.ea="";this.l=[];this.Ya="";this.eb=this.Da=-1;this.Ua=!1;this.L=this.u=null;this.J=0;this.Bb=1;this.Ia=!1;g.Jf.call(this);this.fb=a;this.La=b||g.Ia;this.C=new Wi;this.jb=d;this.Ra=p;this.Cb=g.Qa($aa,0,1);this.ya=e||null;this.V=c||null;this.Y=h||!1;this.Aa=m||null;this.qb=!l;this.Za=f||!1;!this.Za&&(g.bj&&g.Wd(65)||g.cj&&g.Wd(45)||g.dj&&g.Wd(12)||Pd()&&g.Dc(Qd(),12));a=He(new Ui,1,1);f||(f=Rda(),Ne(a,11,f));Ne(this.C,1,a);He(this.C,
2,this.fb);this.I=new g.Xe(1E4,3E5,.1);this.i=new g.jh(this.I.getValue());g.F(this,this.i);vf(this.i,"tick",ab(ej(this,n)),!1,this);this.va=new g.jh(6E5);g.F(this,this.va);vf(this.va,"tick",ab(ej(this,n)),!1,this);this.Y||this.va.start();this.Za||(vf(kg(),"beforeunload",this.Zt,!1,this),vf(kg(),"unload",this.Zt,!1,this),vf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.Zt()}),vf(document,"pagehide",this.Zt,!1,this))};
ej=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
gj=function(a){a.ya||(a.ya=.01>a.Cb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ya};
hj=function(a,b){a.I=new g.Xe(1>b?1:b,3E5,.1);a.i.setInterval(a.I.getValue())};
Wda=function(a){Vda(a,function(b,c){b=vi(b,"format","json");b=kg().navigator.sendBeacon(b,Pe(c));a.Ia&&!b&&(a.Ia=!1);return b})};
Vda=function(a,b){if(0!==a.l.length){var c=zi(gj(a),"format");c=ti(c,"auth",a.La(),"authuser",a.V||"0");for(var d=0;10>d&&a.l.length;++d){var e=a.l.slice(0,32),f=Yi(Xi(a.C.clone()),e);0===d&&Zi(f,a.J);if(!b(c,f))break;a.l=a.l.slice(e.length)}a.i.enabled&&a.i.stop();a.J=0}};
ij=function(){g.jf.call(this,"event-logged",void 0)};
Xda=function(a,b,c){Nda(a.url,function(d){d=d.target;Ji(d)?b(g.Ri(d)):c(d.getStatus())},a.requestType,a.body,a.Zp,a.timeoutMillis,a.withCredentials)};
jj=function(){this.u="https://play.google.com/log?format=json&hasfast=true";this.B=!1;this.J=Xda;this.i=""};
kj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new jj;d.i="";""!=a&&(d.u=a);if(void 0===b?0:b)d.B=!0;c&&(d.l=c);this.i=d.Te()};
lj=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
mj=function(){};
nj=function(a){this.fm=a;this.B=new kj;this.i=new mh(this.B);this.clientError=new rda(this.i);this.l=new qh(this.i);this.u=new ph(this.i)};
oj=function(a){De(this,a,-1,null,null)};
pj=function(a){De(this,a,-1,null,null)};
qj=function(a){De(this,a,-1,null,null)};
rj=function(a){var b=this;this.l=this.u=this.C=null;this.i=!1;if(a.challenge instanceof qj){var c=Fe(a.challenge,4,"");var d=Fe(a.challenge,5,"")}else c=a.program,d=a.globalName;this.B=new Promise(function(e){var f=g.q((0,g.A[d].a)(c,function(h,l){Promise.resolve().then(function(){b.u=h;b.l=l||null;e(void 0)})},!0)).next().value;
b.C=f})};
Yda=function(a){return fd(g.gc("From proto message. b/12014412"),Ee(a,4)||"")};
tj=function(a){if(a!==sj)throw Error("Bad secret");};
uj=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
Zda=function(){var a,b;void 0===vj&&(vj=null!==(b=null===(a=uj())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
createScript:function(c){return c},
createScriptURL:function(c){return c}}))&&void 0!==b?b:null);
return vj};
wj=function(){};
xj=function(a,b){tj(b);this.i=a};
yj=function(){};
zj=function(a,b){tj(b);this.i=a};
Aj=function(a){if(a instanceof yj)if(a instanceof zj)a=a.i;else throw Error("wrong type");else a=g.Gc(a);return a};
Bj=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document;(b=(c=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]"))?c.nonce||c.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Cj=function(a,b){a.src=mc(b);Bj(a)};
Dj=function(){this.i={};this.l=null};
$da=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Ej(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){Ej(b,c).then(function(){a.l=d;f()},function(l){delete a.i[d];
h(l)})}));
return a.i[d]};
Ej=function(a,b){return b?aea(b):a?bea(a):Promise.resolve()};
aea=function(a){return new Promise(function(b,c){var d=g.og("SCRIPT"),e=Yda(a);g.Cj(d,e);d.onload=function(){g.sg(d);b()};
d.onerror=function(){g.sg(d);c(Error("EWLS"))};
(g.ag("HEAD")[0]||document.documentElement).appendChild(d)})};
bea=function(a){return new Promise(function(b){var c=g.og("SCRIPT"),d;if(a){var e=Ee(a,6);if(e){var f=null===(d=Zda())||void 0===d?void 0:d.createScript(e);d=new xj(null!==f&&void 0!==f?f:e,sj)}else d=null}else d=null;var h;if(d instanceof wj)if(null===(h=uj())||void 0===h?0:h.isScript(d))h=d;else if(d instanceof xj)h=d.i;else throw Error("wrong type");else h=d instanceof ic&&d.constructor===ic?d.i:"type_error:SafeScript";c.textContent=h;Bj(c);(g.ag("HEAD")[0]||document.documentElement).appendChild(c);
g.sg(c);b()})};
Fj=function(a){this.i=a};
Gj=function(a){De(this,a,-1,null,null)};
cea=function(a,b){return Ie(a,1,b,"")};
Hj=function(a){De(this,a,-1,null,null)};
Ij=function(a,b,c){this.i=a;this.u=b;this.l=c};
Jj=function(a,b,c){c=void 0===c?{}:c;this.xV=a;this.i=c;this.l=b};
Kj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.l=e};
Lj=function(a,b,c){c=void 0===c?{}:c;return new Ij(b,a,c)};
Mj=function(a){De(this,a,-1,null,null)};
dea=function(a,b){return Ie(a,1,b,"")};
eea=function(a,b){return Ie(a,2,b,"")};
Nj=function(a){De(this,a,-1,null,null)};
Oj=function(a){De(this,a,-1,null,null)};
Pj=function(a){De(this,a,-1,fea,null)};
Qj=function(a,b){this.J=a.JR;this.L=b;this.i=a.xhr;this.u=[];this.C=[];this.I=[];this.B=[];this.l=[];this.J&&gea(this)};
hea=function(a,b){vf(a.i,"complete",function(){if(Ji(a.i)){var c=g.Ri(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}var d=a.L(c),e=lj(a.i.getStatus());Rj(a,Sj(a));0==e?Tj(a,d):Uj(a,{code:e,message:c})}else c=g.Ri(a.i),e={},c?(e=Vj(a,c),c=e.code,d=e.details,e=e.metadata):(c=2,d="Rpc failed due to xhr error. error code: "+a.i.l+", error: "+a.i.getLastError()),Rj(a,Sj(a)),Uj(a,{code:c,message:d,metadata:e})})};
gea=function(a){a.J.Wl("data",function(b){if("1"in b){var c=a.L(b["1"]);Tj(a,c)}if("2"in b)for(b=Vj(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.Wl("end",function(){Rj(a,Sj(a));for(var b=0;b<a.B.length;b++)a.B[b]()});
a.J.Wl("error",function(){if(0!=a.l.length){var b=a.i.l;0!==b||Ji(a.i)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=lj(a.i.getStatus());break;default:c=14}Rj(a,Sj(a));Uj(a,{code:c,message:Gda(b)+", error: "+a.i.getLastError()})}})};
Sj=function(a){var b={},c=Qda(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Vj=function(a,b){var c={};try{var d=ze(Pj,b?JSON.parse(b):null);var e=Ge(d,1);var f=Fe(d,2,"");Le(d,Oj,3).length&&(c["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(e=5,f="Not Found: "+String(a.i.V)):(e=14,f="Unable to parse RpcStatus: "+h)}return{code:e,details:f,metadata:c}};
Wj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Tj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
Rj=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
Uj=function(a,b){for(var c=0;c<a.l.length;c++)a.l[c](b)};
Xj=function(a){this.C=a.wW||null;this.u=a.OV||!1};
Yj=function(a,b){g.Jf.call(this);this.va=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.V=new Headers;this.l=null;this.Y="GET";this.ea="";this.i=!1;this.L=this.u=this.C=null};
Zj=function(a){a.u.read().then(a.vQ.bind(a)).catch(a.Kx.bind(a))};
bk=function(a){a.readyState=4;a.C=null;a.u=null;a.L=null;ak(a)};
ak=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.ck=function(a,b){this.i=this.L=this.B="";this.u=null;this.C=this.J="";this.I=!1;var c;a instanceof g.ck?(this.I=void 0!==b?b:a.I,g.dk(this,a.B),this.L=a.L,g.ek(this,a.i),g.fk(this,a.u),this.J=a.getPath(),gk(this,a.l.clone()),this.C=a.C):a&&(c=String(a).match(hi))?(this.I=!!b,g.dk(this,c[1]||"",!0),this.L=hk(c[2]||""),g.ek(this,c[3]||"",!0),g.fk(this,c[4]),this.J=hk(c[5]||"",!0),gk(this,c[6]||"",!0),this.C=hk(c[7]||"")):(this.I=!!b,this.l=new ok(null,this.I))};
g.dk=function(a,b,c){a.B=c?hk(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.ek=function(a,b,c){a.i=c?hk(b,!0):b};
g.fk=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};
gk=function(a,b,c){b instanceof ok?(a.l=b,iea(a.l,a.I)):(c||(b=pk(b,jea)),a.l=new ok(b,a.I))};
g.qk=function(a,b,c){a.l.set(b,c)};
g.rk=function(a){return a instanceof g.ck?a.clone():new g.ck(a,void 0)};
hk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
pk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,kea),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
kea=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
ok=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b};
sk=function(a){a.i||(a.i=new g.ci,a.l=0,a.u&&mi(a.u,function(b,c){a.add(pd(b),c)}))};
uk=function(a,b){sk(a);b=tk(a,b);return a.i.has(b)};
g.vk=function(a,b,c){a.remove(b);0<c.length&&(a.u=null,a.i.set(tk(a,b),g.rb(c)),a.l=a.l+c.length)};
tk=function(a,b){b=String(b);a.B&&(b=b.toLowerCase());return b};
iea=function(a,b){b&&!a.B&&(sk(a),a.u=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.vk(this,e,c))},a));
a.B=b};
lea=function(a){var b="";g.Eb(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.wk=function(a){g.E.call(this);this.l=a;this.i={}};
xk=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)xk(a,b,c[h],d,e,f);else{b=uf(b,c,d||a.handleEvent,e,f||a.l||a);if(!b)return a;a.i[b.key]=b}return a};
g.yk=function(a){g.Eb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Gf(b)},a);
a.i={}};
zk=function(){this.u=!0;this.l=0;this.i=""};
Ak=function(a,b,c){a.u=!1;throw Error("The stream is broken @"+a.l+". Error: "+c+". With input:\n"+b);};
Bk=function(){this.C=null;this.Sd=[];this.u=this.i=this.l=this.Oa=this.J=0;this.B=null;this.I=0};
Ck=function(a,b,c,d){a.Oa=3;a.C="The stream is broken @"+a.J+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.C);};
Dk=function(){this.i=null;this.l=0;this.u=new zk;this.B=new Bk};
Ek=function(a,b,c){a.i="The stream is broken @"+a.l+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
Fk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Gk=function(a){this.J=null;this.Sd=[];this.u="";this.V=[];this.l=this.i=0;this.C=!1;this.I=0;this.ea=/[\\"]/g;this.Oa=this.B=0;this.L=!(!a||!a.NP)};
Hk=function(a,b,c){a.B=3;a.J="The stream is broken @"+a.l+"/"+c+". With input:\n"+b;throw Error(a.J);};
Ik=function(){this.u=this.l=null;this.Oa=this.i=0;this.Sd=[];this.B=!1};
mea=function(a){var b=a.i?a.i.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Ik:new Gk:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new Dk:null:new Bk:null};
Jk=function(a){this.i=a;this.l=null;this.B=this.u=0;this.V=!1;this.C=this.J=this.I=null;this.L=new g.wk(this);this.L.Pa(this.i,"readystatechange",this.ea)};
Kk=function(a,b){a.B!=b&&(a.B=b,a.J&&a.J())};
Lk=function(a){g.yk(a.L);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
Mk=function(a){this.u=a;a=(0,g.C)(this.ES,this);this.u.C=a;a=(0,g.C)(this.BU,this);this.u.J=a;this.l={};this.i={}};
Nk=function(a,b){for(var c={},d=0;d<a.length;c={eA:c.eA},d++)c.eA=a[d],b.forEach(function(e){return function(f){try{f(e.eA)}catch(h){}}}(c))};
Ok=function(a,b){var c=a.l[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
Pk=function(){var a={};a=void 0===a?{}:a;this.C=a.G9||g.Ha("suppressCorsPreflight",a)||!1;this.l=a.withCredentials||g.Ha("withCredentials",a)||!1;this.B=a.F9||[];this.I=a.I9||[];this.i=a.L9;this.u=a.J9||!1};
Rk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Qk(function(h){return new nea(function(l,m){var n={},p=oea(a,h,f);p.Wl("error",function(r){return m(r)});
p.Wl("metadata",function(r){n=r});
p.Wl("data",function(r){var t=n;t=void 0===t?{}:t;l(new Jj(r,h.yx(),t))})})},a.I).call(a,Lj(e,c,d)).then(function(h){return h.xV})};
oea=function(a,b,c){var d=b.yx(),e=b.getMetadata(),f=Sk(a,!0);a=Tk(a,e,f,c+d.getName());c=Uk(f,d.l,!1);hea(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
Sk=function(a,b){b=a.u&&!b;return a.i||b?new g.Bi(new Xj({wW:a.i,OV:b})):new g.Bi};
Tk=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.l)c.L=!0;a.C?(a=d,g.Rb(b)?d=a:(b=lea(b),"string"===typeof a?d=vi(a,od("$httpHeaders"),b):(g.qk(a,"$httpHeaders",b),d=a))):bi(c.headers,b);return d};
Uk=function(a,b,c){if(c)if(a.isActive(),g.ce&&!g.Xd(10)||g.jg&&!g.Wd("420+")||g.Vk&&!g.jg)var d=null;else c=new Jk(a),d=new Mk(c);return new Qj({xhr:a,JR:d},b)};
Qk=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.i(f,e)}});
return c};
Wk=function(){this.i=new Pk};
pea=function(a){a.Yz=new Wk;a.vW="AIzaSyBydTmf06EmN2pis9ljY6qe2XY0Rn8uK0k";a.zK=function(){};
a.onError=function(){};
return new Xk(a)};
qea=function(a,b,c){this.content=a;this.i=b;this.l=c};
Yk=function(){g.E.apply(this,arguments);this.l=!1};
Zk=function(a,b,c){Yk.call(this);this.C=a;this.I=b;this.B=c;this.i=0};
$k=function(a){Yk.call(this);this.i=a};
Xk=function(a){var b=this;this.qE={};this.kE=!1;this.Pt=void 0;this.fm=a.fm;this.Yz=a.Yz;this.qE={"X-Goog-Api-Key":a.vW};this.zK=a.zK;this.onError=a.onError;this.logger=a.x9?new mj:new nj(this.fm);this.Rx=new g.jh;this.Rx.Pa("tick",function(){al(b)});
this.VJ=bl(this);this.VJ.then(function(c){b.Pt=c}).catch(function(c){b.onError(c,"Init failed")})};
cl=function(a,b,c){a.logger.jy(b);return new We(b,c)};
dl=function(a,b,c){return g.D(a,function e(){var f=this,h;return g.z(e,function(l){h=f;return l.return(Ze(function(){return g.D(h,function n(){var p,r=this;return g.z(n,function(t){p=b();r.logger.MJ(c,p);return t.return(p)})})},rea))})})};
sea=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return e=d,f=cea(new Gj,d.fm),g.w(n,dl(d,function(){return e.Yz.create(f,e.qE)},"c"),2);
case 2:h=n.l;ta(n,3);l=Ke(h,qj,1);Dj.i||(Dj.i=new Dj);var p=$da(Dj.i,Ke(l,oj,1),Ke(l,pj,2),Fe(l,3,""));return g.w(n,p,5);case 5:return n.return(new rj({challenge:l}));case 3:throw m=va(n),cl(d,2,m);}})})};
uea=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){switch(p.i){case 1:return f=e,ta(p,2),g.w(p,b.snapshot({}),4);case 4:h=p.l;ua(p,3);break;case 2:throw l=va(p),cl(e,3,l);case 3:return m=eea(dea(new Mj,e.fm),h),g.w(p,dl(e,function(){return g.D(f,function t(){var u=this;return g.z(t,function(x){var y=x.return;var B=Rk(u.Yz.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",m,u.qE||{},tea);return y.call(x,B)})})},"g"),5);
case 5:return n=p.l,p.return(new qea(we(Fe(n,1,"")),Ge(n,3),Ge(n,2)))}})})};
vea=function(a,b){return g.D(a,function d(){var e,f=this,h,l;return g.z(d,function(m){if(1==m.i)return e=Date.now(),f.Rx.stop(),g.w(m,uea(f,b),2);h=m.l;if(h.i){var n=window.webpocb;if(void 0===n)throw cl(f,4,Error(""));n=n(h.content);n=new Zk(b,n,h.i)}else n=new $k(h.content);l=n;f.Rx.setInterval(1E3*h.l);f.Rx.start();f.logger.ly("g",Date.now()-e);return m.return(l)})})};
bl=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){e=d;return f.return(Ze(function(){return g.D(e,function l(){var m,n,p=this,r,t;return g.z(l,function(u){switch(u.i){case 1:return m=Date.now(),g.w(u,sea(p),2);case 2:return r=u.l,p.logger.ly("c",Date.now()-m),ta(u,3),g.w(u,vea(p,r),5);case 5:n=u.l;ua(u,4);break;case 3:throw t=va(u),r.dispose(),t;case 4:return u.return(n)}})})},wea))})})};
al=function(a){g.D(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i){if(d.kE)return h.return();d.kE=!0;h.I=0;h.B=2;e=d.Pt;e.l=!0;f=bl(d);return g.w(h,f,4)}2!=h.i&&(d.Pt=h.l,e.dispose());wa(h);d.kE=!1;return xa(h,0)})})};
xea=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}};
el=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.qd(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=Zf(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=taa(g.gc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.qd(a)+".js"});g.Cj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
fl=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};
gl=function(a){return a?a.passive&&yea()?a:a.capture||!1:!1};
hl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,gl(d)),!0):!1};
il=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,gl(void 0))};
kl=function(){return!jl()&&(Vc("iPod")||Vc("iPhone")||Vc("Android")||Vc("IEMobile"))};
jl=function(){return Vc("iPad")||Vc("Android")&&!Vc("Mobile")||Vc("Silk")};
ll=function(a){try{return!!a&&null!=a.location.href&&Sd(a,"foo")}catch(b){return!1}};
ml=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Aea=function(){var a=[];ml(zea,function(b){a.push(b)});
return a};
Cea=function(a){return(a=Bea.exec(a))&&a[0]||""};
Dea=function(){var a=nl;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""};
Fea=function(){var a=g.og("IFRAME"),b={};g.Cb(Eea(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
ol=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
pl=function(a){return a.right-a.left};
ql=function(a,b,c){b instanceof g.Rf?(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.rl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
sl=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};
tl=function(a){this.isValid=a};
ul=function(a){return new tl(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
wl=function(a,b){b=void 0===b?vl:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof tl&&d.isValid(a))return new zj(a,sj)}};
yl=function(a){xl();return bd(a,null)};
g.zl=function(a){xl();return nc(a)};
g.Bl=function(a,b,c){if("string"===typeof b)(b=Al(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Al(c,d);f&&(c.style[f]=e)}};
Al=function(a,b){var c=Cl[b];if(!c){var d=ud(b);c=d;void 0===a.style[d]&&(d=(g.jg?"Webkit":Dl?"Moz":g.ce?"ms":g.Vk?"O":null)+Iaa(d),void 0!==a.style[d]&&(c=d));Cl[b]=c}return c};
g.El=function(a,b){var c=a.style[ud(b)];return"undefined"!==typeof c?c:a.style[Al(a,b)]||""};
Fl=function(a,b){var c=Xf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Gl=function(a,b){return Fl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Il=function(a,b,c){if(b instanceof g.Rf){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Hl(d,!1);a.style.top=g.Hl(b,!1)};
Jl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Gea=function(a){if(g.ce&&!g.Xd(8))return a.offsetParent;var b=Xf(a),c=Gl(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=Gl(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.Kl=function(a){var b=Xf(a),c=new g.Rf(0,0);var d=b?Xf(b):document;d=!g.ce||g.Xd(9)||"CSS1Compat"==Zf(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Jl(a);b=ig(Zf(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ml=function(a,b){var c=new g.Rf(0,0),d=kg(Xf(a));if(!Sd(d,"parent"))return c;do{var e=d==b?g.Kl(a):Ll(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
g.Ol=function(a,b){a=Nl(a);b=Nl(b);return new g.Rf(a.x-b.x,a.y-b.y)};
Ll=function(a){a=Jl(a);return new g.Rf(a.left,a.top)};
Nl=function(a){if(1==a.nodeType)return Ll(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Rf(a.clientX,a.clientY)};
g.Pl=function(a,b,c){if(b instanceof g.Tf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Hl(b,!0);a.style.height=g.Hl(c,!0)};
g.Hl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Ql=function(a){var b=Hea;if("none"!=Gl(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};
Hea=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.jg&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Jl(a),new g.Tf(a.right-a.left,a.bottom-a.top)):new g.Tf(b,c)};
g.Rl=function(a,b){a.style.display=b?"":"none"};
$l=function(){if(Sl&&!ll(Tl)){var a="."+Ul.domain;try{for(;2<a.split(".").length&&!ll(Tl);)Ul.domain=a=a.substr(a.indexOf(".")+1),Tl=window.parent}catch(b){}ll(Tl)||(Tl=window)}return Tl};
am=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Tf(b.innerWidth,b.innerHeight)).round():gg(b||window).round()}catch(d){return new g.Tf(-12245933,-12245933)}};
bm=function(a,b,c){try{a&&(b=b.top);var d=am(a,b,void 0===c?!1:c),e=ig(Zf(b.document).i);if(-12245933==d.width){var f=d.width;var h=new ol(f,f,f,f)}else h=new ol(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new ol(-12245933,-12245933,-12245933,-12245933)}};
Iea=function(a){var b={};g.Cb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
laa(a,function(c){return null===b[c.event]})};
cm=function(){this.Wc=0;this.i=!1;this.l=-1;this.Ap=!1;this.nh=0};
dm=function(){this.l=null;this.i=!1};
em=function(a){dm.call(this);this.u=a};
fm=function(){dm.call(this)};
gm=function(){dm.call(this)};
hm=function(){this.i={};this.l=!0;this.u={}};
im=function(a,b,c){a.i[b]||(a.i[b]=new em(c));return a.i[b]};
Jea=function(a){a.i.queryid||(a.i.queryid=new gm)};
jm=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
km=function(a,b){if(Nb(a.u,b))return a.u[b];if(a=a.i[b])return a.getValue()};
lm=function(a){var b={},c=g.Fb(a.i,function(d){return d.i});
g.Eb(c,function(d,e){d=void 0!==a.u[e]?String(a.u[e]):d.i&&null!==d.l?String(d.l):"";0<d.length&&(b[e]=d)},a);
return b};
Kea=function(a){a=lm(a);var b=[];g.Eb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Lea=function(){this.i=this.Bn=null};
mm=function(){};
om=function(){if(!nm())throw Error();};
nm=function(){return!(!pm||!pm.performance)};
qm=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
rm=function(){};
um=function(a){a=a||sm();for(var b=new tm(g.A.location.href,g.A,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Mea.test(f.url)&&(c=f);if(f.url&&!f.bD){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Nea(b,e,c)};
sm=function(){var a=g.A,b=[],c=null;do{var d=a;if(ll(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new tm(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.bD=!0);return b};
Nea=function(a,b,c){this.i=a;this.l=b;this.u=c};
tm=function(a,b,c){this.url=a;this.Yf=b;this.bD=!!c;this.depth=null};
vm=function(){this.u="&";this.l={};this.B=0;this.i=[]};
wm=function(a,b){var c={};c[a]=b;return[c]};
ym=function(a,b,c,d,e){var f=[];ml(a,function(h,l){(h=xm(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
xm=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(xm(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(ym(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Pea=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Oea(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=ym(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+""};
Oea=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};
zm=function(a,b){this.i=a;this.depth=b};
Rea=function(){function a(l,m){return null==l?m:l}
var b=sm(),c=Math.max(b.length-1,0),d=um(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new zm([f.url,f.bD?2:0],a(f.depth,1)));e&&e!=f&&h.push(new zm([e.url,2],0));b.url&&b!=f&&h.push(new zm([b.url,0],a(b.depth,c)));d=g.Qe(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Cea(b.url))&&d.push([new zm([e,1],a(b.depth,c))]);d.push([]);return g.Qe(d,function(l){return Qea(c,l)})};
Qea=function(a,b){g.Am(b,function(e){return 0<=e.depth});
var c=Bm(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2);
d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.i});
return d};
Sea=function(){var a=Rea();return g.Qe(a,function(b){return xm(b)})};
Cm=function(a){if(a.Ke&&a.hasOwnProperty("Ke"))return a.Ke;var b=new a;return a.Ke=b};
Dm=function(){this.l=new rm;this.i=nm()?new om:new mm};
Tea=function(){Em();var a=pm.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof pm.setInterval&&"function"===typeof pm.clearInterval&&"function"===typeof pm.setTimeout&&"function"===typeof pm.clearTimeout)};
Fm=function(a){Em();var b=$l()||pm;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
Gm=function(){Em();return Sea()};
Hm=function(){};
Em=function(){return Cm(Hm).getContext()};
Im=function(a){De(this,a,-1,null,null)};
Uea=function(a){this.u=a;this.i=-1;this.l=this.B=0};
Jm=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}}};
Vea=function(a,b){this.l=a;this.u=b;this.i=new Uea(a)};
Wea=function(){};
Lm=function(){this.u=void 0;this.l=this.I=0;this.C=-1;this.featureSet=new hm;im(this.featureSet,"mv",Xea).i=!0;im(this.featureSet,"omid",Km);im(this.featureSet,"epoh",Km).i=!0;im(this.featureSet,"epph",Km).i=!0;im(this.featureSet,"umt",Km).i=!0;im(this.featureSet,"phel",Km).i=!0;im(this.featureSet,"phell",Km).i=!0;im(this.featureSet,"oseid",Yea).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new fm);a.i.sloi.i=!0;im(this.featureSet,"ovms",Zea).i=!0;im(this.featureSet,"xdi",Km).i=!0;im(this.featureSet,
"amp",Km).i=!0;im(this.featureSet,"prf",Km).i=!0;im(this.featureSet,"gtx",Km).i=!0;im(this.featureSet,"mvp_lv",Km).i=!0;im(this.featureSet,"ssmol",Km).i=!0;this.i=new Vea(Em(),this.featureSet);this.B=!1;this.flags=new Wea};
Mm=function(){return Cm(Lm)};
$ea=function(){var a="https:";pm&&pm.location&&"http:"===pm.location.protocol&&(a="http:");this.l=a;this.i=.01;this.u=Math.random()};
Nm=function(a,b,c,d,e){if((d?a.u:Math.random())<(e||a.i))try{if(c instanceof vm)var f=c;else f=new vm,ml(c,function(l,m){var n=f,p=n.B++;l=wm(m,l);n.i.push(p);n.l[p]=l});
var h=Pea(f,a.l,"/pagead/gen_204?id="+b+"&");h&&Fm(h)}catch(l){}};
Om=function(){var a=g.A.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Sa()};
Pm=function(){var a=void 0===a?g.A:a;return(a=a.performance)&&a.now?a.now():null};
afa=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Rm=function(){var a=$l();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=Qm()||(null!=b?b:1>Math.random())};
Tm=function(a){a&&Sm&&Qm()&&(Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Wm=function(){var a=Um;this.i=Vm;this.kI="jserror";this.JE=!0;this.qB=null;this.l=this.oD;this.Hb=void 0===a?null:a};
Zm=function(a,b,c,d){return Jm(Mm().i.i,function(){try{if(a.Hb&&a.Hb.i){var e=a.Hb.start(b.toString(),3);var f=c();a.Hb.end(e)}else f=c()}catch(m){var h=a.JE;try{Tm(e);var l=new Xm(Ym(m));h=a.l(b,l,void 0,d)}catch(n){a.oD(217,n)}if(!h)throw m;}return f})()};
an=function(a,b,c){var d=$m;return Jm(Mm().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Zm(d,a,function(){return b.apply(void 0,f)},c)})};
Ym=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};
Xm=function(a){fl.call(this,Error(a),{message:a})};
bn=function(){var a=$l();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Um.disable())};
bfa=function(a){$m.qB=function(b){g.Cb(a,function(c){c(b)})}};
cn=function(a,b){return Zm($m,a,b,void 0)};
dn=function(a,b){return an(a,b,void 0)};
en=function(a,b,c,d){$m.oD(a,b,c,d)};
fn=function(){return Date.now()-cfa};
dfa=function(){var a=Mm().u,b=0<=gn?fn()-gn:-1,c=hn?fn()-jn:-1,d=0<=kn?fn()-kn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];en(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};
ln=function(a,b,c){var d=new ol(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c};
mn=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};
nn=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,ll(a)&&(c=a,b=d);return{Yf:c,level:b}};
on=function(a){var b=a!==a.top,c=a.top===nn(a).Yf,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),Ib(efa,function(h){return"function"===typeof f[h]})||(e=1));
return{rj:f,compatibility:e,LV:d}};
ffa=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
pn=function(a,b,c,d){var e=void 0===e?!1:e;c=an(d,c,void 0);hl(a,b,c,{capture:e})};
qn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
rn=function(a){return new ol(a.top,a.right,a.bottom,a.left)};
sn=function(a){var b=a.top||0,c=a.left||0;return new ol(b,c+(a.width||0),b+(a.height||0),c)};
tn=function(a){return null!=a&&0<=a&&1>=a};
gfa=function(){var a=g.Uc;return a?un("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Ac(a,b)})||Ac(a,"OMI/")&&!Ac(a,"XiaoMi/")?!0:Ac(a,"Presto")&&Ac(a,"Linux")&&!Ac(a,"X11")&&!Ac(a,"Android")&&!Ac(a,"Mobi"):!1};
vn=function(){this.u=!ll(pm.top);this.isMobileDevice=jl()||kl();var a=sm();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ji(a[a.length-1].url)||"":"";this.i=new ol(0,0,0,0);this.B=new g.Tf(0,0);this.C=new g.Tf(0,0);this.J=new ol(0,0,0,0);this.I=0;this.L=!1;this.l=!(!pm||!on(pm).rj);this.update(pm)};
wn=function(a,b){b&&b.screen&&(a.B=new g.Tf(b.screen.width,b.screen.height))};
xn=function(a,b){var c=a.i?new g.Tf(pl(a.i),a.i.getHeight()):new g.Tf(0,0);b=void 0===b?pm:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,r=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,r=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=r):m<p?(d=m,e=n):(d=p,e=r)}var t=new g.Tf(e,d)}catch(u){t=new g.Tf(-12245933,-12245933)}a.C=t};
zn=function(){var a=yn();if(0<a.I||a.L)return!0;a=Em().l.isVisible();var b=0===qm(Ul);return a||b};
yn=function(){return Cm(vn)};
An=function(a){this.u=a;this.l=0;this.i=null};
Bn=function(a,b,c){this.Yf=a;this.Ia=void 0===c?"na":c;this.B=[];this.ge=!1;this.u=new ln(-1,!0,this);this.i=this;this.J=b;this.V=this.L=!1;this.ya="uk";this.va=!1;this.C=!0};
Dn=function(a,b,c){if(!a.V||(void 0===c?0:c))a.V=!0,a.ya=b,a.J=0,a.i!=a||Cn(a)};
En=function(a,b){g.jb(a.B,b)||(a.B.push(b),b.Gr(a.i),b.pn(a.u),b.Ok()&&(a.L=!0))};
Fn=function(a){a=a.i;a.OF();a.NF();var b=yn();b.J=bm(!1,a.Yf,b.isMobileDevice);xn(yn(),a.Yf);a.u.i=a.OI()};
Gn=function(a){a.L=a.B.length?un(a.B,function(b){return b.Ok()}):!1};
Hn=function(a){var b=g.rb(a.B);g.Cb(b,function(c){c.pn(a.u)})};
Cn=function(a){var b=g.rb(a.B);g.Cb(b,function(c){c.Gr(a.i)});
a.i!=a||Hn(a)};
In=function(a,b,c,d){this.element=a;this.i=new ol(0,0,0,0);this.B=new ol(0,0,0,0);this.l=b;this.featureSet=c;this.Y=d;this.ea=!1;this.timestamp=-1;this.J=new mn(b.u,this.i,new ol(0,0,0,0),0,0,fn(),0)};
Jn=function(a){this.C=!1;this.i=a;this.B=g.Ia};
Kn=function(a,b,c){this.u=void 0===c?0:c;this.l=a;this.i=null==b?"":b};
hfa=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}};
Ln=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};
Mn=function(){this.u=0;this.i=[];this.l=!1};
ifa=function(a,b){(0,g.Cb)(b.i,function(c){a.add(c.l,c.i,hfa(c))})};
Nn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;ml(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
On=function(a){var b=jfa;a.l&&(g.zb(a.i,function(c,d){return Ln(d,c)?1:Ln(c,d)?-1:0}),a.l=!1);
return Bm(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
jfa=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.jb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Qn=function(a){var b=void 0===b?!0:b;this.i=new Mn;void 0!==a&&ifa(this.i,a);b&&this.i.add("v",Pn,-16)};
kfa=function(a){var b=[],c=[];g.Eb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
Rn=function(){if(Pn&&"unreleased"!==Pn)return Pn};
Sn=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Rn();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);Fm(a)};
lfa=function(){this.i=0};
mfa=function(a,b,c){(0,g.Cb)(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 Mn;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.C);d=Cm(lfa);h.add("i",d.i++);h.add("adk",e);Nn(h,f);e=new Qn(h);Sn(e)}})};
Tn=function(){this.l=this.u=this.B=this.i=0};
Un=function(a){this.l=a=void 0===a?nfa:a;this.i=g.Qe(this.l,function(){return new Tn})};
Wn=function(a,b){return Vn(a,function(c){return c.i},void 0===b?!0:b)};
Yn=function(a,b){return Xn(a,b,function(c){return c.i})};
Zn=function(a,b){return Vn(a,function(c){return c.u},void 0===b?!0:b)};
$n=function(a,b){return Xn(a,b,function(c){return c.u})};
ao=function(a,b){return Xn(a,b,function(c){return c.l})};
bo=function(a){g.Cb(a.i,function(b){b.l=0})};
Vn=function(a,b,c){a=g.Qe(a.i,function(d){return b(d)});
return c?a:ofa(a)};
Xn=function(a,b,c){var d=g.gb(a.l,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
ofa=function(a){return g.Qe(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
co=function(){this.l=new Un;this.Ga=new Tn;this.Y=this.J=-1;this.Ua=1E3;this.Za=new Un([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Aa=this.va=-1};
eo=function(a,b){return Zn(a.l,void 0===b?!0:b)};
go=function(a,b){b=fo(b);return 0===b?0:fo(a)/b};
fo=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
pfa=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.tg(a)||a){var d=Xf(a),e=d&&kg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
qfa=function(a,b,c){if(!a||!b)return!1;b=ql(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=$l();ll(d.top)&&d.top&&d.top.document&&(d=d.top);if(!ffa(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Xf(c))&&b.defaultView&&b.defaultView.frameElement)&&pfa(b,a);d=a===c;a=!d&&a&&zg(a,function(e){return e===c});
return!(b||d||a)};
rfa=function(a,b,c,d){return yn().u?!1:0>=pl(a)||0>=a.getHeight()?!0:c&&d?cn(208,function(){return qfa(a,b,c)}):!1};
ho=function(a,b,c){g.E.call(this);this.position=sfa.clone();this.wy=this.Bx();this.mD=-2;this.YV=Date.now();this.hM=-1;this.lastUpdateTime=b;this.dy=null;this.ex=!1;this.Hy=null;this.opacity=-1;this.requestSource=c;this.sM=this.qD=g.Ia;this.Qg=new Lea;this.Qg.Bn=a;this.Qg.i=a;this.Mr=!1;this.To={yD:null,wD:null};this.PL=!0;this.Xv=null;this.Hr=this.eR=!1;Mm().I++;this.rf=this.yC();this.cM=-1;this.Bd=null;this.bR=!1;a=this.featureSet=new hm;im(a,"od",tfa);im(a,"opac",Km).i=!0;im(a,"sbeos",Km).i=!0;
im(a,"prf",Km).i=!0;im(a,"mwt",Km).i=!0;im(a,"iogeo",Km);(a=this.Qg.Bn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(ufa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vd()):a.getAttribute("data-"+vd()))&&(yn().l=!0);1==this.requestSource?jm(this.featureSet,"od",1):jm(this.featureSet,"od",0)};
io=function(a,b){b!=a.Hr&&(a.Hr=b,a=yn(),b?a.I++:0<a.I&&a.I--)};
jo=function(a,b){if(a.Bd){if(b.getName()===a.Bd.getName())return;a.Bd.dispose();a.Bd=null}b=b.create(a.Qg.i,a.featureSet,a.Ok());if(b=null!=b&&b.sA()?b:null)a.Bd=b};
ko=function(a,b,c){if(!a.dy||-1==a.lastUpdateTime||-1===b.l||-1===a.dy.l)return 0;a=b.l-a.dy.l;return a>c?0:a};
vfa=function(a,b,c){if(a.Bd){a.Bd.Em();var d=a.Bd.J,e=d.B,f=e.i;if(null!=d.I){var h=d.u;a.Hy=new g.Rf(h.left-f.left,h.top-f.top)}f=a.Cz()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.KI(d);a.dy=d;a.Ma(f,b,c,!1,h,e,d.J)}};
wfa=function(a){if(a.ex&&a.Xv){var b=1==km(a.featureSet,"od"),c=yn().i,d=a.Xv,e=a.Bd?a.Bd.getName():"ns",f=new g.Tf(pl(c),c.getHeight());c=a.Cz();a={NV:e,Hy:a.Hy,uW:f,Cz:c,Wc:a.rf.Wc,sW:b};if(b=d.l){b.Em();e=b.J;f=e.B.i;var h=null,l=null;null!=e.I&&f&&(h=e.u,h=new g.Rf(h.left-f.left,h.top-f.top),l=new g.Tf(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={NV:b.getName(),Hy:h,uW:l,Cz:c,sW:!1,Wc:e}}else c=null;c&&mfa(d,a,c)}};
xfa=function(a,b,c){b&&(a.qD=b);c&&(a.sM=c)};
yfa=function(){this.B=this.i=this.u=this.l=this.C=0};
zfa=function(a){var b={};var c=g.Sa()-a.C;b=(b.ptlt=c,b);(c=a.l)&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
lo=function(){cm.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
mo=function(a){return tn(a.volume)&&0<a.volume};
Afa=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};
no=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)};
Bfa=function(a){var b=g.Mb(a.l),c=0,d;for(d in a.i)g.jb(b,d)&&1==a.i[d]&&(c+=a.l[d][1],a.i[d]=2);return c};
Cfa=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};
oo=function(){this.i=this.l=0};
po=function(){co.call(this);this.u=new Tn;this.Ia=this.V=this.ya=0;this.L=-1;this.Ya=new Tn;this.C=new Tn;this.i=new Un;this.I=this.B=-1;this.ea=new Tn;this.Ua=2E3;this.Da=new oo;this.Ra=new oo;this.La=new oo};
qo=function(a,b,c){var d=a.Ia;hn||c||-1==a.L||(d+=b-a.L);return d};
Dfa=function(){this.i=!1};
ro=function(a,b){this.i=!1;this.l=a;this.L=b;this.u=0};
to=function(a,b){return a.B(b)?(b=so(a.L,a.l,b),a.u|=b,0==b):!1};
uo=function(a,b,c,d){In.call(this,a,b,c,d)};
vo=function(a,b,c){In.call(this,null,a,b,c);this.I=a.isActive();this.C=0};
wo=function(a){return[a.top,a.left,a.bottom,a.right]};
xo=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;ho.call(this,b,c,d);this.WB=0;this.vf={};this.gf=new Afa;this.FM={};this.If="";this.Ra=null;this.eb=!1;this.i=[];this.Jp=e;this.I=f;this.B=null;this.u=-1;this.Ia=this.V=void 0;this.Y=this.ea=0;this.Aa=-1;this.Za=this.Ua=!1;this.ya=this.J=this.l=this.Js=this.Ya=0;new Un;this.Da=this.Ga=0;this.La=-1;this.og=0;this.L=g.Ia;this.va=[this.Bx()];this.fb=2;this.tq={};this.tq.pause="p";this.tq.resume="r";this.tq.skip="s";this.tq.mute="m";this.tq.unmute=
"um";this.tq.exitfullscreen="ef";this.C=null};
yo=function(a){0!=a.og&&(a.og=3)};
zo=function(a){return void 0===a?a:Number(a)?qn(a,3):0};
Io=function(a,b){return a.va[null!=b&&b<a.va.length?b:a.va.length-1]};
Jo=function(a){var b=!!km(Mm().featureSet,"umt");return a.V||!b&&!a.Ia?0:1};
Efa=function(a,b){a.Ql()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.u/3)?0:b);var c=a.L(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.Y+=b,a.Da+=Math.max(b-d,0),e=Math.min(d,a.Y)):a.Ga+=Math.abs(d);0!=d&&(a.Y=0);-1==a.La&&0<d&&(a.La=0<=kn?fn()-kn:-1);a.ea=c;return e};
Ffa=function(a,b){un(a.I,function(c){return c.l==b.l})||a.I.push(b)};
Ko=function(a,b,c){return 15E3<=b?!0:a.Ua?(void 0===c?0:c)?!0:0<a.u?b>=a.u/2:0<a.Aa?b>=a.Aa:!1:!1};
Gfa=function(a){var b=qn(a.rf.Wc,2),c=a.gf.u,d=a.rf,e=Io(a),f=zo(e.B),h=zo(e.I),l=zo(d.volume),m=qn(e.J,2),n=qn(e.Y,2),p=qn(d.Wc,2),r=qn(e.va,2),t=qn(e.Aa,2);d=qn(d.nh,2);a=a.Xm().clone();a.round();e=eo(e,!1);return{tW:b,Lu:c,yy:f,sy:h,Bt:l,zy:m,uy:n,Wc:p,Ay:r,vy:t,nh:d,position:a,Gy:e}};
Mo=function(a,b){Lo(a.i,b,function(){return{tW:0,Lu:void 0,yy:-1,sy:-1,Bt:-1,zy:-1,uy:-1,Wc:-1,Ay:-1,vy:-1,nh:-1,position:void 0,Gy:[]}});
a.i[b]=Gfa(a)};
Lo=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Po=function(a,b,c){var d=a.FM[b];if(null!=d)return d;d=Hfa(a,b);var e=Pb(No,function(f){return f==b});
a=Oo(a,d,d,c,Ifa[No[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Qo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Oo=function(a,b,c,d,e){if(a.Mr)return{"if":0};var f=a.Xm().clone();f.round();var h=yn(),l=Mm(),m=a.Wg(),n=a.Bd?a.Bd.getName():"ns",p={};p["if"]=h.u?1:void 0;p.sdk=a.B?a.B:void 0;p.t=a.YV;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Wn(m.l,!1);p.mtos=eo(m);p.mcvt=m.Ga.u;p.ps=void 0;f=qo(m,fn(),a.Ql());p.vht=f;p.mut=m.Ya.u;p.a=zo(a.rf.volume);p.mv=zo(m.I);p.fs=a.Hr?1:0;p.ft=m.ea.i;p.at=m.C.i;p.as=0<m.B?1:0;p.atos=Wn(m.i);p.ssb=Wn(m.Za,!1);p.amtos=Zn(m.i,!1);p.uac=a.Ya;p.vpt=m.u.i;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=Ko(a,m.u.i,!0)?1:0;p.efpf=a.fb;if("gsv"==n||"nis"==n)n=a.Bd,0<n.C&&(p.nnut=n.C);p.tcm=Jo(a);p.nmt=a.Ga;p.bt=a.Da;p.pst=a.La;p.vpaid=a.V;p.dur=a.u;p.vmtime=a.ea;p.is=a.gf.u;1<=a.i.length&&(p.i0=a.i[0].Lu,p.a0=[a.i[0].Bt],p.c0=[a.i[0].Wc],p.ss0=[a.i[0].nh],n=a.i[0].position,p.p0=n?wo(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Lu,p.a1=Qo(a.i[1].yy,a.i[1].Bt,a.i[1].sy),p.c1=Qo(a.i[1].zy,a.i[1].Wc,a.i[1].uy),p.ss1=Qo(a.i[1].Ay,a.i[1].nh,a.i[1].vy),n=a.i[1].position,p.p1=n?wo(n):void 0,
p.mtos1=a.i[1].Gy);3<=a.i.length&&(p.i2=a.i[2].Lu,p.a2=Qo(a.i[2].yy,a.i[2].Bt,a.i[2].sy),p.c2=Qo(a.i[2].zy,a.i[2].Wc,a.i[2].uy),p.ss2=Qo(a.i[2].Ay,a.i[2].nh,a.i[2].vy),n=a.i[2].position,p.p2=n?wo(n):void 0,p.mtos2=a.i[2].Gy);4<=a.i.length&&(p.i3=a.i[3].Lu,p.a3=Qo(a.i[3].yy,a.i[3].Bt,a.i[3].sy),p.c3=Qo(a.i[3].zy,a.i[3].Wc,a.i[3].uy),p.ss3=Qo(a.i[3].Ay,a.i[3].nh,a.i[3].vy),n=a.i[3].position,p.p3=n?wo(n):void 0,p.mtos3=a.i[3].Gy);p.cs=Cfa(a.gf);b&&(p.ic=Bfa(a.gf),p.dvpt=m.u.l,p.dvs=ao(m.l,.5),p.dfvs=
ao(m.l,1),p.davs=ao(m.i,.5),p.dafvs=ao(m.i,1),c&&(m.u.l=0,bo(m.l),bo(m.i)),a.Dp()&&(p.dtos=m.ya,p.dav=m.V,p.dtoss=a.WB+1,c&&(m.ya=0,m.V=0,a.WB++)),p.dat=m.C.l,p.dft=m.ea.l,c&&(m.C.l=0,m.ea.l=0));p.ps=[h.C.width,h.C.height];p.bs=[pl(h.i),h.i.getHeight()];p.scs=[h.B.width,h.B.height];p.dom=h.domain;a.Js&&(p.vds=a.Js);if(0<a.I.length||a.Jp)b=g.rb(a.I),a.Jp&&b.push(a.Jp),p.pings=g.Qe(b,function(r){return r.toString()});
b=g.Qe(g.Ro(a.I,function(r){return r.C()}),function(r){return r.getId()});
maa(b);p.ces=b;a.l&&(p.vmer=a.l);a.J&&(p.vmmk=a.J);a.ya&&(p.vmiec=a.ya);p.avms=a.Bd?a.Bd.getName():"ns";a.Bd&&g.Yb(p,a.Bd.Wm());d?(p.c=qn(a.rf.Wc,2),p.ss=qn(a.rf.nh,2)):p.tth=fn()-So;p.mc=qn(m.Y,2);p.nc=qn(m.J,2);p.mv=zo(m.I);p.nv=zo(m.B);p.lte=qn(a.mD,2);d=Io(a,e);eo(m);p.qmtos=eo(d);p.qnc=qn(d.J,2);p.qmv=zo(d.I);p.qnv=zo(d.B);p.qas=0<d.B?1:0;p.qi=a.If;p.avms||(p.avms="geo");p.psm=m.Da.i;p.psv=m.Da.getValue();p.psfv=m.Ra.getValue();p.psa=m.La.getValue();l=Kea(l.featureSet);l.length&&(p.veid=l);a.C&&
g.Yb(p,zfa(a.C));return p};
Hfa=function(a,b){if(g.jb(Jfa,b))return!0;var c=a.vf[b];return void 0!==c?(a.vf[b]=!0,!c):!1};
Lfa=function(){this.i={};var a=kg();To(this,a,document);var b=Kfa();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)To(this,c,c.document);To(this,a.top,a.top.document)}}catch(d){}};
Kfa=function(){var a=document.documentElement;try{if(!ll(kg().top))return"2";var b=[],c=kg(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"}};
To=function(a,b,c){pn(c,"mousedown",function(){return Mfa(a)},301);
pn(b,"scroll",function(){return Nfa(a)},302);
pn(c,"touchmove",function(){return Ofa(a)},303);
pn(c,"mousemove",function(){return Pfa(a)},304);
pn(c,"keydown",function(){return Qfa(a)},305)};
Mfa=function(a){g.Eb(a.i,function(b){1E5<b.u||++b.u})};
Nfa=function(a){g.Eb(a.i,function(b){1E5<b.i||++b.i})};
Ofa=function(a){g.Eb(a.i,function(b){1E5<b.i||++b.i})};
Qfa=function(a){g.Eb(a.i,function(b){1E5<b.l||++b.l})};
Pfa=function(a){g.Eb(a.i,function(b){1E5<b.B||++b.B})};
Uo=function(){this.i=[];this.l=[]};
Vo=function(a,b){return g.fb(a.i,function(c){return c.If==b})};
Wo=function(a,b){return b?g.fb(a.i,function(c){return c.Qg.Bn==b}):null};
Rfa=function(a,b){return g.fb(a.l,function(c){return 2==c.rk()&&c.If==b})};
Yo=function(){var a=Xo;return 0==a.i.length?a.l:0==a.l.length?a.i:g.qb(a.l,a.i)};
Zo=function(a,b){a=1==b.rk()?a.i:a.l;var c=eb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Bd&&b.Bd.Rs(),b.dispose(),!0):!1};
Sfa=function(a){var b=Xo;if(Zo(b,a)){switch(a.rk()){case 0:var c=function(){return null};
case 2:c=function(){return Rfa(b,a.If)};
break;case 1:c=function(){return Vo(b,a.If)}}for(var d=c();d;d=c())Zo(b,d)}};
Tfa=function(a,b){var c=Xo;a=g.Ro(a,(void 0===b?0:b)?function(d){return!Vo(c,d.If)}:function(d){return!Wo(c,d.Qg.Bn)});
c.i.push.apply(c.i,g.la(a))};
$o=function(a){var b=Xo,c=[];g.Cb(a,function(d){un(b.i,function(e){return e.Qg.Bn===d.Qg.Bn&&e.If===d.If})||(b.i.push(d),c.push(d))})};
ap=function(){this.i=this.l=null};
bp=function(a,b){function c(d,e){b(d,e)}
if(null==a.l)return!1;a.i=g.fb(a.l,function(d){return null!=d&&d.PF()});
a.i&&(a.i.init(c)?Fn(a.i.i):b(a.i.i.Ar(),a.i));return null!=a.i};
cp=function(a){a=Ufa(a);Jn.call(this,a.length?a[a.length-1]:new Bn(pm,0));this.u=a;this.l=null};
Ufa=function(a){if(!a.length)return[];a=(0,g.Ro)(a,function(c){return null!=c&&c.Qs()});
for(var b=1;b<a.length;b++)En(a[b-1],a[b]);return a};
dp=function(a,b,c,d){In.call(this,a,b,c,d);this.V=this.L=this.C=this.I=this.u=null};
ep=function(a){return a.u&&a.u.takeRecords?a.u.takeRecords():[]};
Wfa=function(a){if(!a.element)return!1;var b=a.element,c=a.l.i.Yf,d=Mm().i.i;a.u=new c.IntersectionObserver(Jm(d,function(e){return fp(a,e)}),Vfa);
d=Jm(d,function(){a.u.unobserve(b);a.u.observe(b);fp(a,ep(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);fp(a,ep(a));return!0};
fp=function(a,b){try{if(b.length){a.L||(a.L=fn());var c=Xfa(b),d=Ml(a.element,a.l.i.Yf),e=d.x,f=d.y;a.i=new ol(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=rn(c.intersectionRect);a.B=ql(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Rs(),en(299,l)}};
Xfa=function(a){return Bm(a,function(b,c){return b.time>c.time?b:c},a[0])};
gp=function(a){a=void 0===a?pm:a;Jn.call(this,new Bn(a,2))};
ip=function(){var a=hp();Bn.call(this,pm.top,a,"geo")};
hp=function(){Mm();var a=yn();return a.u||a.l?0:2};
jp=function(){};
kp=function(){this.done=!1;this.i={mP:0,mH:0,z9:0,hI:0,YC:-1,GP:0,FP:0,HP:0};this.C=null;this.I=!1;this.u=null;this.J=0;this.l=new An(this)};
mp=function(){var a=lp;a.I||(a.I=!0,Yfa(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())};
Zfa=function(){Cm(jp);var a=Cm(ap);null!=a.i&&a.i.i?Fn(a.i.i):yn().update(pm)};
np=function(a,b,c){if(!a.done&&(a.l.cancel(),0!=b.length)){a.u=null;try{Zfa();var d=fn(),e=Mm();e.C=d;if(null!=Cm(ap).i)for(e=0;e<b.length;e++)vfa(b[e],d,c);else Nm(Vm,"",{strategy_not_selected:1,bin:e.l},!0,void 0);for(d=0;d<b.length;d++)wfa(b[d]);++a.i.hI;$fa()}finally{c?g.Cb(b,function(f){f.rf.Wc=0}):a.l.schedule()}}};
Yfa=function(a,b){if(!a.C){b=an(142,b,void 0);Em();var c;Ul.visibilityState?c="visibilitychange":Ul.mozVisibilityState?c="mozvisibilitychange":Ul.webkitVisibilityState&&(c="webkitvisibilitychange");c&&hl(Ul,c,b,{capture:!1})&&(a.C=b)}};
op=function(){var a=Cm(ap);if(null!=a.i){var b=a.i;g.Cb(Yo(),function(c){return jo(c,b)})}};
$fa=function(){var a=Mm();km(a.featureSet,"llp")};
pp=function(a,b){a=a.J;hn&&(a+=b-jn);return a};
aga=function(a){var b=lp;a=void 0===a?function(){return{}}:a;
$m.kI="av-js";Vm.i=.01;bfa([function(c){var d=Mm(),e={};e=(e.bin=d.l,e.type="error",e);d=lm(d.featureSet);if(!b.u){var f=pm.document,h=0<=gn?fn()-gn:-1,l=fn();-1==b.i.YC&&(h=l);var m=yn(),n=Mm(),p=lm(n.featureSet),r=Yo();try{if(0<r.length){var t=m.i;t&&(p.bs=[pl(t),t.getHeight()]);var u=m.C;u&&(p.ps=[u.width,u.height]);pm.screen&&(p.scs=[pm.screen.width,pm.screen.height])}else p.url=encodeURIComponent(pm.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=gn;p.bin=n.l;void 0!==pm.google_osd_load_pub_page_exp&&(p.olpp=pm.google_osd_load_pub_page_exp);p.deb=[1,b.i.mP,b.i.mH,b.i.hI,b.i.YC,0,b.l.l,b.i.GP,b.i.FP,b.i.HP].join("-");p.tvt=pp(b,l);m.l&&(p.inapp=1);if(null!==pm&&pm!=pm.top){0<r.length&&(p.iframe_loc=encodeURIComponent(pm.location.href.substring(0,512)));var x=m.J;p.is=[pl(x),x.getHeight()]}}catch(B){p.error=1}b.u=p}t=g.Vb(b.u);u=Mm().i;if(1==km(u.u,"prf")){x=new Im;f=u.i;h=0;-1<f.i&&(h=f.u.i.now()-f.i);x=Ie(x,1,f.B+h,0);f=
u.i;x=Ie(x,5,-1<f.i?f.l+1:f.l,0);x=Ie(x,2,u.l.i.u(),0);x=Ie(x,3,u.l.i.l(),0);f=Ie(x,4,u.l.i.i(),0);u={};x=new ie;var y=void 0===y?0:y;h=Ee(f,1);h=null==h?h:+h;y=null==h?y:h;if(0!==y&&(h=y,null!=h)){Md(x.i,9);y=x.i;m=h;m=(h=0>m?1:0)?-m:m;if(0===m)le=0<1/m?0:2147483648,ke=0;else if(isNaN(m))le=2147483647,ke=4294967295;else if(1.7976931348623157E308<m)le=(h<<31|2146435072)>>>0,ke=0;else if(2.2250738585072014E-308>m)l=m/Math.pow(2,-1074),le=(h<<31|l/4294967296)>>>0,ke=l>>>0;else{n=m;l=0;if(2<=n)for(;2<=
n&&1023>l;)l++,n/=2;else for(;1>n&&-1022<l;)n*=2,l--;m*=Math.pow(2,-l);le=(h<<31|l+1023<<20|1048576*m&1048575)>>>0;ke=4503599627370496*m>>>0}Nd(y,ke);Nd(y,le)}y=Ge(f,2);0!==y&&me(x,2,y);y=Ge(f,3);0!==y&&me(x,3,y);y=Ge(f,4);0!==y&&me(x,4,y);y=Ge(f,5);if(0!==y&&(f=y,null!=f&&null!=f))if(Md(x.i,40),y=x.i,0<=f)Md(y,f);else{for(h=0;9>h;h++)y.push(f&127|128),f>>=7;y.push(1)}y=je(x);y=(u.pf=g.$d(y),u)}else y={};g.Yb(t,y);g.Yb(c,e,d,t,a());if(e=Rn())d={},g.Yb(c,(d.v=encodeURIComponent(e),d))}])};
cga=function(){var a=qp||pm;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("&")};
rp=function(a){return function(b){return void 0===b[a]?0:b[a]}};
tp=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?sp(c,a):c}}};
up=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 sp(f,b,c)}};
vp=function(a,b){return function(c){return b(c)?c[a]:void 0}};
wp=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}};
sp=function(a,b,c){return void 0===c||c?g.Ro(a,function(d,e){return g.jb(b,e)}):g.Qe(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)})};
Ap=function(a,b){var c={sv:"899",cb:xp};c.nas=Xo.i.length;c.msg=a;void 0!==b&&(a=yp(b))&&(c.e=zp[a]);return c};
Bp=function(a){return oc(a,"custom_metric_viewable")};
yp=function(a){var b=Bp(a)?"custom_metric_viewable":a.toLowerCase();return Pb(No,function(c){return c==b})};
dga=function(){this.i=void 0;this.l=!1;this.u=0;this.B=-1;this.C="tos"};
fga=function(a){try{var b=a.split(",");return b.length>g.Mb(ega).length?null:Bm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Cp[d[0]]||!Cp[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
gga=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?$n(b.i,a.i):$n(b.l,a.i);case "tos":return a.l?Yn(b.i,a.i):Yn(b.l,a.i)}return 0};
Dp=function(a,b,c,d){ro.call(this,b,d);this.I=a;this.J=c};
Ep=function(a){ro.call(this,"fully_viewable_audible_half_duration_impression",a)};
Fp=function(a,b){ro.call(this,a,b)};
Gp=function(){this.l=this.B=this.I=this.C=this.u=this.i=""};
hga=function(){};
Hp=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=On(Nn(new Mn,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Ip=function(){};
Jp=function(a,b,c){vo.call(this,a,b,c)};
Kp=function(a){a=void 0===a?pm:a;Jn.call(this,new Bn(a,2))};
Lp=function(a,b,c){vo.call(this,a,b,c)};
Mp=function(a){a=void 0===a?pm:a;Jn.call(this,new Bn(a,2))};
Np=function(){Bn.call(this,pm,2,"mraid");this.Aa=0;this.ea=this.Y=!1;this.I=null;this.l=on(this.Yf);this.u.i=new ol(0,0,0,0);this.Da=!1};
Op=function(a,b,c){a.Sn("addEventListener",b,c)};
Rp=function(a){Mm().B=!!a.Sn("isViewable");Op(a,"viewableChange",iga);"loading"===a.Sn("getState")?Op(a,"ready",Pp):Qp(a)};
Qp=function(a){"string"===typeof a.l.rj.AFMA_LIDAR?(a.Y=!0,jga(a)):(a.l.compatibility=3,a.I="nc",Dn(a,"w"))};
jga=function(a){a.ea=!1;var b=1==km(Mm().featureSet,"rmmt"),c=!!a.Sn("isViewable");(b?!c:1)&&Em().setTimeout(dn(524,function(){a.ea||(Sp(a),en(540,Error()),a.I="mt",Dn(a,"w"))}),500);
kga(a);Op(a,a.l.rj.AFMA_LIDAR,Tp)};
kga=function(a){var b=1==km(Mm().featureSet,"sneio"),c=void 0!==a.l.rj.AFMA_LIDAR_EXP_1,d=void 0!==a.l.rj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.l.rj.AFMA_LIDAR_EXP_2=!0);c&&(a.l.rj.AFMA_LIDAR_EXP_1=!b)};
Sp=function(a){a.Sn("removeEventListener",a.l.rj.AFMA_LIDAR,Tp);a.Y=!1};
Up=function(a,b){if("loading"===a.Sn("getState"))return new g.Tf(-1,-1);b=a.Sn(b);if(!b)return new g.Tf(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Tf(-1,-1):new g.Tf(a,b)};
Pp=function(){try{var a=Cm(Np);a.Sn("removeEventListener","ready",Pp);Qp(a)}catch(b){en(541,b)}};
Tp=function(a,b){try{var c=Cm(Np);c.ea=!0;var d=a?new ol(a.y,a.x+a.width,a.y+a.height,a.x):new ol(0,0,0,0);var e=fn(),f=zn();var h=new ln(e,f,c);h.i=d;h.volume=b;c.pn(h)}catch(l){en(542,l)}};
iga=function(a){var b=Mm(),c=Cm(Np);a&&!b.B&&(b.B=!0,c.Da=!0,c.I&&Dn(c,"w",!0))};
Vp=function(){this.ge=!1;this.i=null;this.B=new Ip;this.l=null;var a={};this.J=(a.start=this.QQ,a.firstquartile=this.LQ,a.midpoint=this.NQ,a.thirdquartile=this.RQ,a.complete=this.JQ,a.pause=this.XD,a.resume=this.DL,a.skip=this.PQ,a.viewable_impression=this.cn,a.mute=this.Fs,a.unmute=this.Fs,a.fullscreen=this.MQ,a.exitfullscreen=this.KQ,a.fully_viewable_audible_half_duration_impression=this.cn,a.measurable_impression=this.cn,a.abandon=this.XD,a.engagedview=this.cn,a.impression=this.cn,a.creativeview=
this.cn,a.progress=this.Fs,a.custom_metric_viewable=this.cn,a.bufferstart=this.XD,a.bufferfinish=this.DL,a);a={};this.L=(a.overlay_resize=this.OQ,a.abandon=this.PC,a.close=this.PC,a.collapse=this.PC,a.overlay_unmeasurable_impression=function(b){return Po(b,"overlay_unmeasurable_impression",zn())},a.overlay_viewable_immediate_impression=function(b){return Po(b,"overlay_viewable_immediate_impression",zn())},a.overlay_unviewable_impression=function(b){return Po(b,"overlay_unviewable_impression",zn())},
a.overlay_viewable_end_of_session_impression=function(b){return Po(b,"overlay_viewable_end_of_session_impression",zn())},a);
Mm().l=3;lga(this);this.u=!1};
Wp=function(a,b,c,d){b=a.Iv(null,d,!0,b);b.B=c;Tfa([b],a.u);return b};
mga=function(a,b,c){Iea(b);var d=a.l;g.Cb(b,function(e){var f=g.Qe(e.l,function(h){var l=fga(h);if(null==l)h=null;else if(h=new dga,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=rc(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});
un(f,function(h){return null==h})||Ffa(c,new Dp(e.id,e.event,f,d))})};
nga=function(a){a=a.l;return[new Fp("viewable_impression",a),new Ep(a)]};
oga=function(){var a=[],b=Mm();a.push(Cm(ip));km(b.featureSet,"mvp_lv")&&a.push(Cm(Np));b=[new Kp,new Mp];b.push(new cp(a));b.push(new gp(pm));return b};
pga=function(a){if(!a.ge){a.ge=!0;try{var b=fn(),c=Mm(),d=yn();gn=b;c.u=79463069;"o"!==a.i&&(qp=nn(pm).Yf);if(Tea()){lp.i.mH=0;lp.i.YC=fn()-b;var e=oga(),f=Cm(ap);f.l=e;bp(f,function(){Xp()})?lp.done||(op(),En(f.i.i,a),mp()):d.u?Xp():mp()}else Yp=!0}catch(h){throw Xo.reset(),h;
}}};
$p=function(a){lp.l.cancel();Zp=a;lp.done=!0};
aq=function(a){if(a.i)return a.i;var b=Cm(ap).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};
bq=function(a,b,c){if(null==a.l)return b.Js|=4,!1;a=so(a.l,c,b);b.Js|=a;return 0==a};
Xp=function(){var a=[new gp(pm)],b=Cm(ap);b.l=a;bp(b,function(){$p("i")})?lp.done||(op(),mp()):$p("i")};
cq=function(a,b,c){if(!b.eb){var d=Po(b,"start",zn());a=a.B.i(d).i;var e={id:"lidarv"};e.r=c;e.v="899v";mi(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=cga();mi(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+On(Nn(new Mn,e));Sn(c);b.eb=!0}};
dq=function(a,b,c){np(lp,[a],!zn());Mo(a,c);4!=c&&Lo(a.va,c,a.Bx);return Po(a,b,zn())};
lga=function(a){aga(function(){var b=eq();null!=a.i&&(b.sdk=a.i);var c=Cm(ap);null!=c.i&&(b.avms=c.i.getName());return b})};
qga=function(a,b,c,d){if(a.u)var e=Vo(Xo,b);else e=Wo(Xo,c),null!==e&&e.If!==b&&(a.Rt(e),e=null);e||(b=a.Iv(c,fn(),!1,b),0==Xo.l.length&&(Mm().u=79463069),$o([b]),e=b,e.B=aq(a),d&&(e.Ra=d));return e};
rga=function(a){g.Cb(Xo.i,function(b){3==b.og&&a.Rt(b)})};
fq=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
eq=function(){var a=yn(),b={};return b.sv="899",b["if"]=a.u?"1":"0",b.nas=String(Xo.i.length),b};
gq=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
iq=function(a){return!!(1<<a&hq)};
wga=function(){try{sga()}catch(d){}var a="a=1&b="+hq+"&",b=[],c=99;g.Cb(tga,function(d,e){var f=!1;try{f=d(pm)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Cb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Cb(uga,function(d){var e="false";try{e=d(pm)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Cb(vga,function(d){var e="";try{e=g.$d(g.Xa(d(pm)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
sga=function(){if(!jq){var a=function(){kq=!0;pm.document.removeEventListener("webdriver-evaluate",a,!0)};
pm.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){lq=!0;pm.document.removeEventListener("webdriver-evaluate-response",b,!0)};
pm.document.addEventListener("webdriver-evaluate-response",b,!0);jq=!0}};
xga=function(){this.blockSize=-1};
mq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.B=Array(this.blockSize);this.u=this.l=0;this.reset()};
nq=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};
oq=function(){this.l=null};
pq=function(a){return function(b){var c=new mq;c.update(b+a);return iaa(c.digest()).slice(-8)}};
qq=function(a,b){this.i=a;this.u=b};
so=function(a,b,c){var d=a.l();if("function"===typeof d){var e={};e=(e.sv="899",e.cb=xp,e.e=yga(b),e);var f=Po(c,b,zn());g.Yb(e,f);c.FM[b]=f;a=2==c.rk()?kfa(e).join("&"):a.u.i(e).i;try{return d(c.If,a,b),0}catch(h){return 2}}else return 1};
yga=function(a){var b=Bp(a)?"custom_metric_viewable":a;a=Pb(No,function(c){return c==b});
return zp[a]};
rq=function(){Vp.call(this);this.I=null;this.C=!1;this.B=new oq};
zga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&mga(a,c,b)};
Aga=function(a,b,c){var d=Vo(Xo,b);d||(d=c.opt_nativeTime||-1,d=Wp(a,b,aq(a),d),c.opt_osdId&&(d.Ra=c.opt_osdId));return d};
Bga=function(a,b,c){var d=Vo(Xo,b);d||(d=Wp(a,b,"n",c.opt_nativeTime||-1));return d};
Cga=function(a,b){var c=Vo(Xo,b);c||(c=Wp(a,b,"h",-1));return c};
Dga=function(a){Mm();switch(aq(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};
tq=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.B.i(Ap("ol",d));if(void 0!==d)if(void 0!==yp(d))if(Yp)b=Ap("ue",d);else if(pga(a),"i"==Zp)b=Ap("i",d),b["if"]=0;else if(b=a.Fx(b,e))if(a.u&&3==b.og)b="stopped";else{b:{"i"==Zp&&(b.Mr=!0,a.zE());c=e.opt_fullscreen;void 0!==c&&io(b,!!c);var f;if(c=!yn().l)(c=Ac(g.Uc,"CrKey")||Ac(g.Uc,"PlayStation")||Ac(g.Uc,"Roku")||gfa()||Ac(g.Uc,"Xbox"))||(c=g.Uc,c=Ac(c,"AppleTV")||Ac(c,
"Apple TV")||Ac(c,"CFNetwork")||Ac(c,"tvOS")),c||(c=g.Uc,c=Ac(c,"sdk_google_atv_x86")||Ac(c,"Android TV")),c=!c;c&&(Em(),c=0===qm(Ul));if(f=c){switch(b.rk()){case 1:cq(a,b,"pv");break;case 2:a.oE(b)}$p("pv")}c=d.toLowerCase();if(f=!f)f=km(Mm().featureSet,"ssmol")&&"loaded"===c?!1:g.jb(Ega,c);if(f&&0==b.og){"i"!=Zp&&(lp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;kn=f="number"===typeof f?f:fn();b.ex=!0;var h=zn();b.og=1;b.vf={};b.vf.start=!1;b.vf.firstquartile=!1;b.vf.midpoint=!1;b.vf.thirdquartile=
!1;b.vf.complete=!1;b.vf.resume=!1;b.vf.pause=!1;b.vf.skip=!1;b.vf.mute=!1;b.vf.unmute=!1;b.vf.viewable_impression=!1;b.vf.measurable_impression=!1;b.vf.fully_viewable_audible_half_duration_impression=!1;b.vf.fullscreen=!1;b.vf.exitfullscreen=!1;b.WB=0;h||(b.Wg().L=f);np(lp,[b],!h)}(f=b.tq[c])&&no(b.gf,f);g.jb(Fga,c)&&!b.Mr&&b.Jp&&0!=b.og&&(f=b.Jp,f.i||(f.i=to(f,b)));switch(b.rk()){case 1:var l=Bp(c)?a.J.custom_metric_viewable:a.J[c];break;case 2:l=a.L[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ap(void 0,
c);g.Yb(e,d);d=e;break b}d=void 0}3==b.og&&(a.u?b.Bd&&b.Bd.Rs():a.Rt(b));b=d}else b=Ap("nf",d);else b=void 0;else Yp?b=Ap("ue"):(b=a.Fx(b,e))?(d=Ap(),g.Yb(d,Oo(b,!0,!1,!1)),b=d):b=Ap("nf");return"string"===typeof b?a.u&&"stopped"===b?sq:a.B.i(void 0):a.B.i(b)};
uq=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};
vq=function(a,b,c){c=void 0===c?{}:c;a=tq(Cm(rq),b,c,a);return uq(a)};
wq=function(a,b){b=void 0===b?!1:b;var c=Cm(rq).Fx(a,{});c?yo(c):b&&(a=Cm(rq).Iv(null,fn(),!1,a),a.og=3,$o([a]))};
yq=function(a){if(g.sc(g.rd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.ck(a)}catch(c){return null!=g.fb(xq,function(d){return 0<a.search(d)})}return b.C.match(Gga)?!0:null!=g.fb(xq,function(c){return null!=a.match(c)})};
g.zq=function(a,b){return a.replace(Hga,function(c,d){try{var e=Tb(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.sc(g.rd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Aq=function(){this.data_=[];this.i=-1};
Iga=function(a){-1==a.i&&(a.i=Bm(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.Bq=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.C)(this.bN,this)};
g.Cq=function(a){a.isActive()||a.start()};
Dq=function(a){a=a.l;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Eq=function(a){a=a.l;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.J=function(a,b,c){g.E.call(this);this.i=a;this.Rf=b||0;this.l=c;this.u=(0,g.C)(this.RF,this)};
g.Fq=function(a,b){a.isActive()||a.start(b)};
g.Gq=function(a){a.stop();a.RF()};
g.Hq=function(a){a.isActive()&&g.Gq(a)};
Iq=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Jq=function(a){return a.classList?a.classList:Iq(a).match(/\S+/g)||[]};
g.Kq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Lq=function(a,b){return a.classList?a.classList.contains(b):g.jb(Jq(a),b)};
g.K=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Lq(a,b)){var c=Iq(a);g.Kq(a,c+(0<c.length?" "+b:b))}};
g.Mq=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.K(a,e)});
else{var c={};Array.prototype.forEach.call(Jq(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.Kq(a,b)}};
g.Nq=function(a,b){a.classList?a.classList.remove(b):g.Lq(a,b)&&g.Kq(a,Array.prototype.filter.call(Jq(a),function(c){return c!=b}).join(" "))};
g.Oq=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Nq(a,c)}):g.Kq(a,Array.prototype.filter.call(Jq(a),function(c){return!g.jb(b,c)}).join(" "))};
g.M=function(a,b,c){c?g.K(a,b):g.Nq(a,b)};
Pq=function(a,b){var c=!g.Lq(a,b);g.M(a,b,c)};
g.Qq=function(){g.Jf.call(this);this.Oa=0;this.endTime=this.startTime=null};
Jga=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.Bl(a,"transition",b.join(","))};
Rq=function(a,b,c,d,e){g.Qq.call(this);this.i=a;this.C=b;this.I=c;this.u=d;this.J=Array.isArray(e)?e:[e]};
Sq=function(a,b,c,d){return new Rq(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Lga=function(a){a=Bc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Kga))return null}return a};
Tq=function(a){var b=g.A.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Uq=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ce&&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)};
Qga=function(a){if(!a)return Qc;var b=document.createElement("div").style;Mga(a).forEach(function(c){var d=g.jg&&c in Nga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");oc(d,"--")||oc(d,"var")||(c=Uq(Oga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Lga(c),null!=c&&Uq(Pga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Faa(g.gc("Output of CSS sanitizer"),b.cssText||"")};
Mga=function(a){g.Ma(a)?a=g.rb(a):(a=g.Mb(a),g.ob(a,"cssText"));return a};
g.Wq=function(a){var b,c=b=0,d=!1;a=a.split(Rga);for(var e=0;e<a.length;e++){var f=a[e];g.Vq.test(f)?(b++,c++):Sga.test(f)?d=!0:Tga.test(f)?c++:Uga.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Xq=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.Yq=function(a,b){if(0==b)return a.i;if(1==b)return a.l;var c=g.Pf(a.i,a.u,b),d=g.Pf(a.u,a.B,b);a=g.Pf(a.B,a.l,b);c=g.Pf(c,d,b);d=g.Pf(d,a,b);return g.Pf(c,d,b)};
Zq=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Vga=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
$q=function(a){return(a=a.exec(g.Uc))?a[1]:""};
ar=function(a){return 0<=g.Dc(Wga,a)};
br=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
g.cr=function(a){g.E.call(this);this.C=1;this.u=[];this.B=0;this.i=[];this.l={};this.I=!!a};
Xga=function(a,b,c){g.Jg(function(){a.apply(b,c)})};
g.dr=function(a){this.i=a};
er=function(a){this.i=a};
fr=function(a){this.data=a};
gr=function(a){return void 0===a||a instanceof fr?a:new fr(a)};
hr=function(a){this.i=a};
g.ir=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Sa()||!!b&&b>g.Sa()};
g.jr=function(a){this.i=a};
Yga=function(){};
kr=function(){};
lr=function(a){this.i=a};
mr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
nr=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
pr=function(a,b){this.l=a;this.i=null;if(g.ce&&!g.Xd(9)){or||(or=new g.ci);this.i=or.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)),or.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}};
qr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Zga[b]})};
rr=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}};
sr=function(a,b){this.l=a;this.i=b+"::"};
g.tr=function(a){var b=new mr;return b.isAvailable()?a?new sr(b,a):b:null};
ur=function(a,b){this.i=a;this.l=b};
vr=function(a){this.i=[];if(a)a:{if(a instanceof vr){var b=a.gi();a=a.Xg();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new ur(b[d],a[d]));break a}}else b=g.Mb(a),a=Lb(a);for(d=0;d<b.length;d++)wr(this,b[d],a[d])}};
wr=function(a,b,c){var d=a.i;d.push(new ur(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};
xr=function(){vr.call(this)};
yr=function(){};
zr=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?function(d){return d}:1===b.length?b[0]:b.reduce(function(d,e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return d(e.apply(null,g.la(h)))}})};
$ga=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return function(d){return function(e,f){function h(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
e=d(e,f);var l={getState:e.getState,dispatch:function(m,n){for(var p=[],r=1;r<arguments.length;++r)p[r-1]=arguments[r];return h.apply(null,[m].concat(g.la(p)))}};
f=b.map(function(m){return m(l)});
h=zr.apply(null,g.la(f))(e.dispatch);return Object.assign(Object.assign({},e),{dispatch:h})}}};
Ar=function(){return Math.random().toString(36).substring(7).split("").join(".")};
aha=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Br}))throw Error('Reducer "'+b+"\" 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 c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Ar()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Br+' 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.'));})};
Cr=function(a,b,c,d){function e(){if(r)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 m}
function f(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(r)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 x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){if(r)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.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(r)throw Error("Reducers may not dispatch actions.");try{r=!0,m=l(m,u)}finally{r=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return u}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)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 b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Cr)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,r=!1;h({type:Br});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:bha});return t},a[Dr]=function(){var u={};
return u.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[Dr]=function(){return this},u},a);
return t};
Er=function(a){De(this,a,-1,cha,null)};
Fr=function(a){De(this,a,-1,null,null)};
dha=function(a,b){for(;Gd(b);)switch(b.C){case 10:var c=Kd(b);He(a,1,c);break;case 18:c=Kd(b);He(a,2,c);break;case 26:c=Kd(b);He(a,3,c);break;case 34:c=Kd(b);He(a,4,c);break;case 40:c=b.Jc();He(a,5,c);break;default:if(!ve(b))return a}return a};
eha=function(a){var b=a.split(""),c=[612077665,-271059688,874276174,852234926,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-1801657572,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
2074866407,411516263,b,-238092549,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
-950361260,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 94:case 95:case 96:break;case 123:f-=76;case 92:case 93:continue;case 58:f=44;case 91:break;case 46:f=95;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-2069891975,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 94:case 95:case 96:break;case 123:f-=76;case 92:case 93:continue;case 58:f=44;case 91:break;case 46:f=95;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
b,1255780637,null,function(d){d.reverse()},
-214723612,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
601721096,null,null,20912640,-564198263,function(d){d.reverse()},
773177939,1762524899,-1012055622,603244346,-288010302,-518437093,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
923737765,"YgDis",function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
-243002241,1071921158,-1353799489,-1569951087,-1353799489,b,"gBzLq9",-906323922,609555023];c[19]=c;c[24]=c;c[25]=c;try{c[11](c[24],c[2]),c[14](c[24],c[0]),c[36](c[6],c[9]),c[45](c[3],c[4]),c[18](c[24],c[5]),c[13](c[31],c[33]),c[18](c[26],c[30]),c[13](c[31],c[39]),c[47](c[4],c[3]),c[27](c[10],c[3]),c[1](c[10],c[7]),c[1](c[33],c[17]),c[20](c[10],c[22]),c[1](c[10],c[13]),c[34](c[39]),c[46](c[14],c[12]),c[22](c[9],c[20]),c[11](c[37]),c[46](c[14],c[28]),c[46](c[9],c[41]),c[46](c[8],c[4]),c[27](c[14],c[12]),
c[23](c[34],c[46]),c[23](c[1],c[22]),c[36](c[1]),c[36](c[14]),c[23](c[34],c[16]),c[47](c[34],c[4]),c[23](c[27],c[3]),c[44](c[14],c[23]),c[47](c[14],c[19]),c[30](c[41]),c[38](c[14]),c[30](c[14]),c[6](c[14],c[10]),c[0](c[41],c[28]),c[30](c[41]),c[44](c[14],c[12])}catch(d){return"enhanced_except_-JIBh-3-_w8_"+a}return b.join("")};
Gr=function(a){this.i=a};
Hr=function(){Gr.apply(this,arguments)};
Ir=function(){Hr.apply(this,arguments)};
Jr=function(){Hr.apply(this,arguments)};
Kr=function(){Hr.apply(this,arguments)};
Lr=function(){Hr.apply(this,arguments)};
Mr=function(){Hr.apply(this,arguments)};
Nr=function(){Hr.apply(this,arguments)};
Or=function(){Hr.apply(this,arguments)};
Pr=function(){Hr.apply(this,arguments)};
Qr=function(){Hr.apply(this,arguments)};
Rr=function(){Hr.apply(this,arguments)};
Sr=function(){Hr.apply(this,arguments)};
Tr=function(){return g.Ha("yt.ads.biscotti.lastId_")||""};
Ur=function(a){g.Ga("yt.ads.biscotti.lastId_",a,void 0)};
Wr=function(a){for(var b=0;b<arguments.length;++b);b=arguments;1<b.length?Vr[b[0]]=b[1]:1===b.length&&Object.assign(Vr,b[0])};
g.O=function(a,b){return a in Vr?Vr[a]:b};
Xr=function(a){var b=Vr.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.Zr=function(a){a=Yr(a);return"string"===typeof a&&"false"===a?!1:!!a};
$r=function(a,b){a=Yr(a);return void 0===a&&void 0!==b?b:Number(a||0)};
as=function(a){a=Yr(a);return Array.isArray(a)?g.Qe(a,function(b){return String(b||"")}):[String(a||"")]};
Yr=function(a){var b=g.O("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.O("EXPERIMENT_FLAGS",{})[a]};
bs=function(){var a=[],b=g.O("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.O("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
fha=function(a){cs.forEach(function(b){return b(a)})};
es=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.ds(b)}}:a};
g.ds=function(a){var b=g.Ha("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0):(b=g.O("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0]),Wr("ERRORS",b));fha(a)};
fs=function(a){var b=g.Ha("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.O("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),Wr("ERRORS",b))};
hs=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=gs(f[0]||""),l=gs(f[1]||"");h in c?Array.isArray(c[h])?sb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(r){var m=r,n=f[0],p=String(hs);m.args=[{key:n,value:f[1],query:a,method:gha==p?"unchanged":p}];hha.hasOwnProperty(n)||fs(m)}}return c};
is=function(a){var b=[];g.Eb(a,function(c,d){var e=od(d),f;Array.isArray(c)?f=c:f=[c];g.Cb(f,function(h){""==h?b.push(e):b.push(e+"="+od(h))})});
return b.join("&")};
js=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return hs(a,"&")};
ks=function(a){a=a.split(",");return a=a.map(function(b){return js(b)})};
g.ls=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),js(1<a.length?a[1]:a[0])):{}};
ns=function(a,b){return ms(a,b||{},!0)};
os=function(a,b){return ms(a,b||{},!1)};
ms=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=js(e[1]||"");for(var f in b)if(c||!Nb(e,f))e[f]=b[f];return g.ui(a,e)+d};
Ls=function(a){if(!b)var b=window.location.href;var c=g.ii(1,a),d=g.ji(a);c&&d?(a=a.match(hi),b=b.match(hi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ji(b)==d&&(Number(g.ii(4,b))||null)==(Number(g.ii(4,a))||null):!0;return a};
Ms=function(a){a||(a=document.location.href);a=g.ii(1,a);return null!==a&&"https"==a};
Ns=function(a){a=g.ji(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
gs=function(a){return a&&a.match(iha)?a:pd(a)};
Qs=function(a){var b=Os;a=void 0===a?Tr():a;var c=Object,d=c.assign,e=Ps(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(B){}try{var m=f.outerWidth;var n=f.outerHeight}catch(B){}try{var p=f.innerWidth;var r=f.innerHeight}catch(B){}try{var t=f.screenLeft;var u=f.screenTop}catch(B){}try{p=f.innerWidth,r=f.innerHeight}catch(B){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(B){}f=[t,u,h,l,x,y,m,n,p,r];h=am(!1,b.i.top);l={};m=new Aq;g.A.SVGElement&&g.A.document.createElementNS&&m.set(0);
n=Fea();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=Iga(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=qm(b.l),l.wgl=!!pm.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Ps=function(a){var b={};b.dt=jha;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?pm:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!pm.navigator&&"unknown"!==typeof pm.navigator.javaEnabled&&!!pm.navigator.javaEnabled&&pm.navigator.javaEnabled();pm.screen&&(b.u_h=pm.screen.height,b.u_w=pm.screen.width,b.u_ah=pm.screen.availHeight,b.u_aw=pm.screen.availWidth,b.u_cd=
pm.screen.colorDepth);pm.navigator&&pm.navigator.plugins&&(b.u_nplug=pm.navigator.plugins.length);pm.navigator&&pm.navigator.mimeTypes&&(b.u_nmime=pm.navigator.mimeTypes.length);return b};
kha=function(){if(!Rs)return null;var a=Rs();return"open"in a?a:null};
g.Ts=function(a){switch(Ss(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Ss=function(a){return a&&"status"in a?a.status:-1};
g.Us=function(a,b){"function"===typeof a&&(a=es(a));return window.setTimeout(a,b)};
Vs=function(a,b){"function"===typeof a&&(a=es(a));return window.setInterval(a,b)};
g.Ws=function(a){window.clearTimeout(a)};
lha=function(a,b){b=void 0===b?{}:b;var c=Ls(a),d=g.Zr("web_ajax_ignore_global_headers_if_set"),e;for(e in Xs){var f=g.O(Xs[e]);!f||!c&&!Ys(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Ys(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Ys(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||Ys(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=is(Qs(void 0));return b};
Zs=function(a,b){var c=g.ji(a);g.Zr("debug_handle_relative_url_for_query_forward_killswitch")||c||!Ls(a)||(c=document.location.hostname);var d=gi(g.ii(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=js(b),f={};g.Cb(mha,function(h){e[h]&&(f[h]=e[h])});
return os(a,f)};
Ys=function(a){return g.ji(a)?!1:!0};
g.at=function(a,b){var c=b.format||"JSON";a=nha(a,b);var d=oha(a,b),e=!1,f=$s(a,function(m){if(!e){e=!0;l&&g.Ws(l);var n=g.Ts(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=pha(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.Us(function(){e||(e=!0,f.abort(),g.Ws(l),h.call(b.context||g.A,f))},b.timeout)}return f};
nha=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.O("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=ns(a,b);return a};
oha=function(a,b){var c=g.O("XSRF_FIELD_NAME",void 0),d=g.O("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=g.O("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ji(a)&&!b.withCredentials&&g.ji(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=js(e),g.Yb(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.si(e));f=e||f&&
!g.Rb(f);!bt&&f&&"POST"!=b.method&&(bt=!0,g.ds(Error("AJAX request with postData should use POST")));return e};
pha=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,fs(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)?qha(a):null)e={},g.Cb(a.getElementsByTagName("*"),function(h){e[h.tagName]=rha(h)})}d&&ct(e);
return e};
ct=function(a){if(g.Na(a))for(var b in a)"html_content"==b||rc(b,"_html")?a[b]=g.ed(g.gc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):ct(a[b])};
qha=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
rha=function(a){var b="";g.Cb(a.childNodes,function(c){b+=c.nodeValue});
return b};
$s=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&es(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=kha();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Zr("debug_forward_web_query_parameters")&&(a=Zs(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=lha(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};
et=function(a,b){var c=g.Vb(b),d;return g.bh(new Og(function(e,f){c.onSuccess=function(h){g.Ts(h)?e(new sha(h)):f(new dt("Request failed, status="+Ss(h),"net.badstatus",h))};
c.onError=function(h){f(new dt("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new dt("Request timed out","net.timeout",h))};
d=g.at(a,c)}),function(e){e instanceof gh&&d.abort();
return Vg(e)})};
g.ft=function(a,b,c,d){function e(l,m,n){return g.bh(l,function(p){if(0>=m||403===Ss(p.xhr))return Vg(new dt("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var r=0<h?Math.min(h,p):p;return f(n).then(function(){return e(et(a,b),m-1,r)})})}
function f(l){return new Og(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(et(a,b),c-1,d)};
dt=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
sha=function(a){this.xhr=a};
gt=function(){this.Oa=0;this.i=null};
ht=function(a){var b=new gt;a=void 0===a?null:a;b.Oa=2;b.i=void 0===a?null:a;return b};
it=function(a){var b=new gt;a=void 0===a?null:a;b.Oa=1;b.i=void 0===a?null:a;return b};
g.lt=function(a,b,c,d,e){jt||kt.set(""+a,b,{qy:c,path:"/",domain:void 0===d?"youtube.com":d,CV:void 0===e?!1:e})};
g.mt=function(a,b){if(!jt)return kt.get(""+a,b)};
g.nt=function(a,b,c){jt||kt.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
ot=function(){if(!kt.isEnabled())return!1;if(!kt.isEmpty())return!0;kt.set("TESTCOOKIESENABLED","1",{qy:60});if("1"!==kt.get("TESTCOOKIESENABLED"))return!1;kt.remove("TESTCOOKIESENABLED");return!0};
pt=function(){var a=/Chrome\/(\d+)/.exec(g.Uc);return a?parseFloat(a[1]):NaN};
qt=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Uc);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("."))};
tt=function(){return rt("android")&&rt("chrome")&&!(rt("trident/")||rt("edge/"))&&!rt("cobalt")};
ut=function(){return rt("armv7")||rt("aarch64")||rt("android")};
g.vt=function(){return rt("cobalt")};
wt=function(){return rt("cobalt")&&rt("appletv")};
xt=function(){return rt("(ps3; leanback shell)")||rt("ps3")&&g.vt()};
zt=function(){return rt("(ps4; leanback shell)")||rt("ps4")&&g.vt()};
g.At=function(){return g.vt()&&(rt("ps4 vr")||rt("ps4 pro vr"))};
Bt=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&600<=parseInt(a[1],10))};
Ct=function(){var a=/WebKit\/([0-9]+)/.exec(g.Uc);return!!(a&&602<=parseInt(a[1],10))};
Dt=function(){return rt("iemobile")||rt("windows phone")&&rt("edge")};
Ft=function(){return Et&&rt("applewebkit")&&!rt("version")&&(!rt("safari")||rt("gsa/"))};
Ht=function(){return g.Gt&&rt("version/")};
It=function(){return rt("smart-tv")&&rt("samsung")};
rt=function(a){var b=g.Uc;return b?0<=b.toLowerCase().indexOf(a):!1};
Jt=function(){if(Eh())return!0;var a=g.O("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||Ft()||Ht()?!0:(a=g.mt("CONSENT"))?a.startsWith("YES+"):!0};
Lt=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Kt;this.isTimeout=a instanceof dt&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof gh};
Kt=function(){Va.call(this,"Biscotti ID is missing from server")};
tha=function(){if(g.Zr("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Jt())return Vg(Error("User has not consented - not fetching biscotti id."));if("1"==Tb(g.O("PLAYER_VARS",{}),"privembed",!1))return Vg(Error("Biscotti ID is not available in private embed mode"));Mt||(Mt=g.bh(et("//googleads.g.doubleclick.net/pagead/id",Nt).then(Ot),function(a){return Pt(2,a)}));
return Mt};
Ot=function(a){a=a.xhr.responseText;if(!oc(a,")]}'"))throw new Kt;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Kt;a=a.id;Ur(a);Mt=it(a);Qt(18E5,2);return a};
Pt=function(a,b){b=new Lt(b);Ur("");Mt=ht(b);0<a&&Qt(12E4,a-1);throw b;};
Qt=function(a,b){g.Us(function(){g.bh(et("//googleads.g.doubleclick.net/pagead/id",Nt).then(Ot,function(c){return Pt(b,c)}),g.Ia)},a)};
Rt=function(){try{var a=g.Ha("yt.ads.biscotti.getId_");return a?a():tha()}catch(b){return Vg(b)}};
Tt=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=St+"VisibilityState";if(b in a)return a[b]};
Ut=function(a,b){var c;un(a,function(d){c=b[d];return!!c});
return c};
Vt=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 uha||(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){}};
Wt=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}};
vha=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 Pb(Xt,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.$t=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=vha(a,b,c,d);if(e)return e;e=++Yt.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Vt(l);if(!zg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Vt(l);
l.currentTarget=a;return c.call(a,l)};
h=es(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Zt()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Xt[e]=[a,b,c,h,d];return e};
wha=function(a,b){var c=document.body||document;return g.$t(c,"click",function(d){var e=zg(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.au=function(a){a&&("string"==typeof a&&(a=[a]),g.Cb(a,function(b){if(b in Xt){var c=Xt[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Zt()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Xt[b]}}))};
g.bu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
cu=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.bu(a)};
du=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};
eu=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.Rf(b,c)};
g.fu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.gu=function(a){a=a||window.event;return!1===a.returnValue||a.rJ&&a.rJ()};
g.hu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
xha=function(a){return wha(a,function(b){return g.Lq(b,"ytp-ad-has-logging-urls")})};
g.iu=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.$t(a,b,function(){g.au(e);c.apply(a,arguments)},d)};
ju=function(a){for(var b in Xt)Xt[b][0]==a&&g.au(b)};
ku=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.$t(window,"mousemove",(0,g.C)(this.V,this));this.L=Vs((0,g.C)(this.ea,this),25)};
lu=function(){};
nu=function(a,b,c){return mu(b,0,c)};
g.ou=function(a,b){return mu(a,1,b)};
pu=function(){lu.apply(this,arguments)};
qu=function(){pu.i||(pu.i=new pu);return pu.i};
g.ru=function(){return!!g.Ha("yt.scheduler.instance")};
mu=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.Us(a,c||0)};
g.tu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ha("yt.scheduler.instance.cancelJob");b?b(a):g.Ws(a)}};
uu=function(a){var b=g.Ha("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
xu=function(){var a={},b=void 0===a.iV?!1:a.iV;a=void 0===a.VP?!0:a.VP;if(null==g.Ha("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ga("_lact",c,window);g.Ga("_fact",c,window);-1==c&&vu();g.$t(document,"keydown",vu);g.$t(document,"keyup",vu);g.$t(document,"mousedown",vu);g.$t(document,"mouseup",vu);b?g.$t(window,"touchmove",function(){wu("touchmove",200)},{passive:!0}):(g.$t(window,"resize",function(){wu("resize",200)}),a&&g.$t(window,"scroll",function(){wu("scroll",
200)}));
new ku(function(){wu("mouse",100)});
g.$t(document,"touchstart",vu,{passive:!0});g.$t(document,"touchend",vu,{passive:!0})}};
wu=function(a,b){yu[a]||(yu[a]=!0,g.ou(function(){vu();yu[a]=!1},b))};
vu=function(){null==g.Ha("_lact",window)&&(xu(),g.Ha("_lact",window));var a=Date.now();g.Ga("_lact",a,window);-1==g.Ha("_fact",window)&&g.Ga("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()};
zu=function(){var a=g.Ha("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.Bu=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.vt())a&&(a=g.Gc(g.Kc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.ad(cd(a)).toString(),a=od(g.Oh(a))),g.sc(a)||(a=ng("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Xf(a).body.appendChild(a)));else if(e)$s(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)$s(a,b,"GET","",d);else{b:{try{var f=new xea({url:a});if(f.u&&f.l||f.B){var h=gi(g.ii(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==yi(a,"ri"));break b}}catch(m){}l=!1}l?Au(a)?(b&&b(),c=!0):c=!1:c=!1;c||yha(a,b)}};
Cu=function(a,b,c){c=void 0===c?"":c;Au(a,c)?b&&b():g.Bu(a,b,void 0,void 0,c)};
Au=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
yha=function(a,b){var c=new Image,d=""+zha++;Du[d]=c;c.onload=c.onerror=function(){b&&Du[d]&&b();delete Du[d]};
c.src=a};
g.Iu=function(a,b,c){var d=g.Eu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Fu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Gu[a]?h():g.Us(h,0)}catch(l){g.ds(l)}},c);
Fu[e]=!0;Hu[a]||(Hu[a]=[]);Hu[a].push(e);return e}return 0};
g.Ju=function(a){var b=g.Eu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete Fu[c]}))};
g.Ku=function(a,b){var c=g.Eu();return c?c.publish.apply(c,arguments):!1};
Mu=function(a){var b=g.Eu();if(b)if(b.clear(a),a)Lu(a);else for(var c in Hu)Lu(c)};
g.Eu=function(){return g.A.ytPubsubPubsubInstance};
Lu=function(a){Hu[a]&&(a=Hu[a],g.Cb(a,function(b){Fu[b]&&delete Fu[b]}),a.length=0)};
Aha=function(a,b){if("log_event"===a.endpoint){var c="";a.bx?c="visitorOnlyApprovedKey":a.Ue&&(Nu[a.Ue.token]=Ou(a.Ue),c=a.Ue.token);var d=Pu.get(c)||[];Pu.set(c,d);d.push(a.payload);b&&(Qu=new b);a=$r("tvhtml5_logging_max_batch")||$r("web_logging_max_batch")||100;b=(0,g.P)();d.length>=a?Ru({writeThenSend:!0}):10<=b-Su&&(Tu(),Su=b)}};
Bha=function(a,b){if("log_event"===a.endpoint){var c="";a.bx?c="visitorOnlyApprovedKey":a.Ue&&(Nu[a.Ue.token]=Ou(a.Ue),c=a.Ue.token);var d=new Map;d.set(c,[a.payload]);b&&(Qu=new b);return new Og(function(e){Qu&&Qu.isReady()?Uu(d,e,{bypassNetworkless:!0}):e()})}};
Ru=function(a){a=void 0===a?{}:a;new Og(function(b){g.Ws(Vu);g.Ws(Wu);Wu=0;Qu&&Qu.isReady()?(Uu(Pu,b,a),Pu.clear()):(Tu(),b())})};
Tu=function(){g.Zr("web_gel_timeout_cap")&&!Wu&&(Wu=g.Us(function(){Ru({writeThenSend:!0})},6E4));
g.Ws(Vu);var a=g.O("LOGGING_BATCH_TIMEOUT",$r("web_gel_debounce_ms",1E4));g.Zr("shorten_initial_gel_batch_timeout")&&Xu&&(a=Cha);Vu=g.Us(function(){Ru({writeThenSend:!0})},a)};
Uu=function(a,b,c){var d=Qu;c=void 0===c?{}:c;var e=Math.round((0,g.P)()),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.Yu(d.config_||g.Zu())});l.events=m;(m=Nu[h])&&Dha(l,h,m);delete Nu[h];h="visitorOnlyApprovedKey"===h;Eha(l,e,h);g.Zr("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Cu("/generate_204");g.$u(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();av=
Math.round((0,g.P)()-e)},
onError:function(){f--;f||b()},
dK:c,bx:h});Xu=!1}};
Eha=function(a,b,c){a.requestTimeMs=String(b);g.Zr("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID",void 0))&&((c=g.O("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*bv/2)),c++,c>bv&&(c=1),Wr("BATCH_CLIENT_COUNTER",c),b={serializedEventId:b,clientCounter:String(c)},a.serializedClientEventId=b,cv&&av&&g.Zr("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:cv,roundtripMs:String(av)}),cv=b,av=0)};
Dha=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}]};
Ou=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
ev=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.P)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=zu();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Zr("log_sequence_info_on_gel_web")&&d.hm&&(a=e.context,b=d.hm,dv[b]=b in dv?dv[b]+1:0,a.sequence={index:dv[b],groupKey:b},d.WP&&delete dv[d.hm]);(d.FV?Bha:Aha)({endpoint:"log_event",payload:e,Ue:d.Ue,bx:d.bx},c)};
fv=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
gv=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.iv=function(){this.i=g.O("ALT_PREF_COOKIE_NAME","PREF");this.l=g.O("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.mt(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])&&(hv[d]=c.toString())}}};
g.kv=function(a,b){return!!((jv("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
lv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
mv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
jv=function(a){a=void 0!==hv[a]?hv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
nv=function(){var a=g.A.navigator;return a?a.connection:void 0};
pv=function(){var a=nv();if(a){var b=ov[a.type||"unknown"]||"CONN_UNKNOWN";a=ov[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}};
rv=function(){var a=nv();if(null!==a&&void 0!==a&&a.effectiveType)return qv.hasOwnProperty(a.effectiveType)?qv[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
tv=function(){return"INNERTUBE_API_KEY"in Vr&&"INNERTUBE_API_VERSION"in Vr};
g.Zu=function(){return{innertubeApiKey:g.O("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.O("INNERTUBE_API_VERSION",void 0),iJ:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),jJ:g.O("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),lJ:g.O("INNERTUBE_CONTEXT_HL",void 0),kJ:g.O("INNERTUBE_CONTEXT_GL",void 0),mJ:g.O("INNERTUBE_HOST_OVERRIDE",void 0)||"",oJ:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),nJ:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.O("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Yu=function(a){var b={client:{hl:a.lJ,gl:a.kJ,clientName:a.jJ,clientVersion:a.innertubeContextClientVersion,configInfo:a.iJ}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.A.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.O("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=bs();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.Zr("web_include_display_mode_killswitch")){var d;
b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?d:{};b.client.mainAppWebInfo.webDisplayMode=gv()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.Zr("music_web_display_mode_killswitch")){var e;b.client.bK=null!=(e=b.client.bK)?e:{};b.client.bK.webDisplayMode=gv()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.O("DELEGATED_SESSION_ID")&&!g.Zr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.O("DELEGATED_SESSION_ID")});
if(a=pv())b.client.connectionType=a;g.Zr("web_log_effective_connection_type")&&(a=rv())&&(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.q(Object.entries(js(g.O("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};
Fha=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.O("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.tH||g.O("AUTHORIZATION"))||(a?b="Bearer "+g.Ha("gapi.auth.getToken")().T8:b=Gh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.O("SESSION_INDEX",0),g.Zr("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return d};
uv=function(a){var b;(b=g.tr(a))||(a=new pr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new hr(a):null;this.l=document.domain||window.location.hostname};
vv=function(a,b){this.version=a;this.args=b};
wv=function(a,b){this.topic=a;this.i=b};
yv=function(a,b){var c=xv();c&&c.publish.call(c,a.toString(),a,b)};
Gha=function(a,b,c){var d=xv();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ha("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(zv[e])try{if(h&&a instanceof wv&&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.Yn){var p=new m;m.Yn=p.version}var r=m.Yn}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.rb(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.ds(t)}},Av[a.toString()]?g.ru()?g.ou(l):g.Us(l,0):l())});
zv[e]=!0;Bv[a.toString()]||(Bv[a.toString()]=[]);Bv[a.toString()].push(e);return e};
Dv=function(a,b,c){var d=Gha(a,function(e){b.apply(c,arguments);Cv(d)},c);
return d};
Cv=function(a){var b=xv();b&&("number"===typeof a&&(a=[a]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete zv[c]}))};
xv=function(){return g.Ha("ytPubsub2Pubsub2Instance")};
Fv=function(){var a;return null===(a=Ev())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Gv=function(a){this.i=void 0===a?!1:a;(a=Fv())||(a={hasSucceededOnce:this.i});this.l=a;var b,c;null!==(b=Ev())&&void 0!==b&&b.i&&(b={hasSucceededOnce:this.l.hasSucceededOnce||this.i},null===(c=Ev())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0))};
Hha=function(){var a={};for(Hv=new Iv(void 0===a.handleError?Jv:a.handleError,void 0===a.logEvent?g.Kv:a.logEvent);0<Lv.length;)switch(a=Lv.shift(),a.type){case "ERROR":Hv.Ad(a.payload);break;case "EVENT":Hv.logEvent(a.eventType,a.payload)}};
Nv=function(a){Mv||(Hv?Hv.Ad(a):(Lv.push({type:"ERROR",payload:a}),10<Lv.length&&Lv.shift()))};
Ov=function(a,b){Mv||(Hv?Hv.logEvent(a,b):(Lv.push({type:"EVENT",eventType:a,payload:b}),10<Lv.length&&Lv.shift()))};
g.Pv=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))};
Rv=function(){try{return Qv(),!0}catch(a){return!1}};
Qv=function(a){if(void 0!==g.O("DATASYNC_ID",void 0))return g.O("DATASYNC_ID",void 0);throw new g.Pv("Datasync ID not set",void 0===a?"unknown":a);};
Sv=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Tv=function(a){return a.substr(0,a.indexOf(":"))||a};
Vv=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Uv[a]:c;d=void 0===d?Iha[a]:d;e=void 0===e?Jha[a]:e;g.Pv.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;this.i=e;Object.setPrototypeOf(this,Vv.prototype)};
Wv=function(a){Vv.call(this,"MISSING_OBJECT_STORE",{xR:a},Uv.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Wv.prototype)};
Lha=function(a,b,c){b=Tv(b);var d=a instanceof Error?a:Error("Unexpected error: "+a);if(d instanceof Vv)return d;if("QuotaExceededError"===d.name)return new Vv("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:b});if(g.dj&&"UnknownError"===d.name)return new Vv("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:b});if("InvalidStateError"===d.name&&Kha.some(function(e){return d.message.includes(e)}))return new Vv("EXECUTE_TRANSACTION_ON_CLOSED_DB",{objectStoreNames:c,
dbName:b});if("AbortError"===d.name)return new Vv("UNKNOWN_ABORT",{objectStoreNames:c,dbName:b},d.message);d.args=[{name:"IdbError",VD:d.name,dbName:b,objectStoreNames:c}];d.level="WARNING";return d};
Mha=function(a){if(!a)throw Error();throw a;};
Nha=function(a){return a};
Xv=function(a){this.i=a};
Yv=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.state={status:"PENDING"};this.i=[];this.onRejected=[];a=a.i;try{a(c,b)}catch(e){b(e)}};
$v=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 Yv?Zv(a,b,f,d,e):d(f)}catch(h){e(h)}};
aw=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 Yv?Zv(a,b,f,d,e):d(f)}catch(h){e(h)}};
Zv=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Yv?Zv(a,b,f,d,e):d(f)},function(f){e(f)})};
bw=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)};
Oha=function(a){return new Promise(function(b,c){bw(a,b,c)})};
cw=function(a){return new Yv(new Xv(function(b,c){bw(a,b,c)}))};
dw=function(a,b){return new Yv(new Xv(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
ew=function(a,b){this.request=a;this.cursor=b};
fw=function(a){return cw(a).then(function(b){return null===b?null:new ew(a,b)})};
gw=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.u=Math.round((0,g.P)());this.l=!1};
iw=function(a,b,c){a=a.i.createObjectStore(b,c);return new hw(a)};
Pha=function(a,b){return jw(a,["LogsRequestsStore"],{mode:"readwrite",Ch:!0},function(c){return kw(lw(c,"LogsRequestsStore"),b,void 0)})};
jw=function(a,b,c,d){return g.D(a,function f(){var h=this,l,m,n,p,r,t,u,x,y,B,G,H;return g.z(f,function(I){switch(I.i){case 1:var L={mode:"readonly",Ch:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?L.mode=c:Object.assign(L,c);l=L;h.transactionCount++;m=l.Ch?3:1;n=0;case 2:if(p){I.wb(3);break}n++;r=Math.round((0,g.P)());ta(I,4);t=h.i.transaction(b,l.mode);L=new mw(t);L=Qha(L,d);return g.w(I,L,6);case 6:return u=I.l,x=Math.round((0,g.P)()),nw(h,r,x,n,void 0,b.join(),l),I.return(u);case 4:y=
va(I);B=Math.round((0,g.P)());G=Lha(y,h.i.name,b.join());if((H=G instanceof Vv&&!G.i)||n>=m)nw(h,r,B,n,G,b.join(),l),p=G;I.wb(2);break;case 3:return I.return(Promise.reject(p))}})})};
nw=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof Vv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Ov("QUOTA_EXCEEDED",{dbName:Tv(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof Vv&&"UNKNOWN_ABORT"===e.type&&(c-=a.u,0>c&&c>=Math.pow(2,31)&&(c=0),Ov("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.l=!0),ow(a,!1,d,f,b,h.tag),Nv(e)):ow(a,!0,d,f,b,h.tag)};
ow=function(a,b,c,d,e,f){Ov("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.l,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
hw=function(a){this.i=a};
pw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
Rha=function(a,b){return qw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Sha=function(a,b,c){var d=[];return qw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
kw=function(a,b,c){return cw(a.i.put(b,c))};
qw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return rw(a).then(function(d){return dw(d,c)})};
tw=function(a,b){var c={},d=c.query;c=c.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,c):a.i.openCursor(d,c);return fw(a).then(function(e){return dw(e,b)})};
mw=function(a){var b=this;this.i=a;this.u=new Map;this.l=!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.l){e=Vv;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)}})})};
Qha=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
lw=function(a,b){b=a.i.objectStore(b);var c=a.u.get(b);c||(c=new hw(b),a.u.set(b,c));return c};
uw=function(a){this.i=a};
Tha=function(a,b,c){var d=[];return vw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
vw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return rw(a).then(function(d){return dw(d,c)})};
ww=function(a,b){this.request=a;this.cursor=b};
rw=function(a){return cw(a).then(function(b){return null===b?null:new ww(a,b)})};
Uha=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new gw(h.result,{closed:r}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.VV,p=c.upgrade,r=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&Ov("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Tv(a)});var x=f(),y=new mw(h.transaction);
p&&p(x,function(B){return u.oldVersion<B&&u.newVersion>=B},y);
y.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){Ov("IDB_UNEXPECTEDLY_CLOSED",{dbName:Tv(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
xw=function(a,b,c){c=void 0===c?{}:c;return Uha(a,b,c)};
yw=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){var e,f,h;return g.z(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return g.w(l,Oha(e),0)})})};
zw=function(a,b){this.name=a;this.options=b;this.B=!0;this.u=!1};
Aw=function(a,b){return new Vv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
Cw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Bw.open(),2);d=e.l;return e.return(jw(d,["databases"],{Ch:!0,mode:"readwrite"},function(f){var h=lw(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier:1)return kw(h,a).then(function(){})})}))})})};
Dw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Bw.open(),2);d=e.l;return e.return(d.delete("databases",a))})})};
Vha=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){return 1==f.i?(d=[],g.w(f,Bw.open(),2)):3!=f.i?(e=f.l,g.w(f,jw(e,["databases"],{Ch:!0,mode:"readonly"},function(h){d.length=0;return qw(lw(h,"databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})};
Wha=function(){return g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=Qv("YtIdbMeta"),g.w(e,Vha(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2);
d=e.l;return e.return(0<d.length)})})};
Xha=function(){return g.D(this,function b(){var c,d,e;return g.z(b,function(f){switch(f.i){case 1:c=Fv();if(null===c||void 0===c?0:c.hasSucceededOnce)return f.return(new Gv(!0));if(Et&&Bt()&&!Ct()||g.Ew)return f.return(new Gv(!1));try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return f.return(new Gv(!1))}catch(h){return f.return(new Gv(!1))}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f.return(new Gv(!1));ta(f,2);e={actualName:"yt-idb-test-do-not-use",
publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.w(f,Cw(e),4);case 4:return g.w(f,Dw("yt-idb-test-do-not-use"),5);case 5:return f.return(new Gv(!0));case 2:return va(f),f.return(new Gv(!1))}})})};
Gw=function(){if(void 0!==Fw)return Fw;Mv=!0;return Fw=Xha().then(function(a){Mv=!1;return a.isSupported()})};
Hw=function(a){if(!Rv())throw a=new Vv("AUTH_INVALID"),Nv(a),a;var b=Qv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Iw=function(a,b,c,d){return g.D(this,function f(){var h,l;return g.z(f,function(m){switch(m.i){case 1:return g.w(m,Yha({caller:"openDbImpl",publicName:a,version:b}),2);case 2:return Sv(a),h=c?{actualName:a,publicName:a,userIdentifier:void 0}:Hw(a),ta(m,3),g.w(m,Cw(h),5);case 5:return g.w(m,xw(h.actualName,b,d),6);case 6:return m.return(m.l);case 3:return l=va(m),ta(m,7),g.w(m,Dw(h.actualName),9);case 9:ua(m,8);break;case 7:va(m);case 8:throw l;}})})};
Yha=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Gw(),2);if(!e.l)throw d=new Vv("IDB_NOT_SUPPORTED",{context:a}),Nv(d),d;g.sa(e)})})};
Zha=function(a,b,c){c=void 0===c?{}:c;return Iw(a,b,!1,c)};
$ha=function(a,b,c){c=void 0===c?{}:c;return Iw(a,b,!0,c)};
aia=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,Gw(),2);if(3!=f.i){if(!f.l)return f.return();Sv(a);e=Hw(a);return g.w(f,yw(e.actualName,b),3)}return g.w(f,Dw(e.actualName),0)})})};
bia=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){return g.z(d,function(e){if(1==e.i)return g.w(e,Gw(),2);if(3!=e.i){if(!e.l)return e.return();Sv(a);return g.w(e,yw(a,b),3)}return g.w(e,Dw(a),0)})})};
cia=function(){return g.D(this,function b(){return g.z(b,function(c){return 1==c.i?g.w(c,Gw(),2):c.l?c.return(Wha()):c.return(!1)})})};
Jw=function(a,b){zw.call(this,a,b);this.options=b;Sv(a)};
dia=function(a,b){var c;return function(){c||(c=new Jw(a,b));return c}};
Kw=function(a,b){return dia(a,b)};
Mw=function(){if(Lw)return Lw();var a={};Lw=Kw("LogsDatabaseV2",{fv:(a.LogsRequestsStore={xl:2},a.sapisid={xl:2},a.SWHealthLog={xl:3},a),Az:!1,upgrade:function(b,c,d){c(2)&&(iw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}),iw(b,"sapisid"));c(3)&&pw(iw(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"]);c(5)&&(b=lw(d,"LogsRequestsStore"),b.i.indexNames.contains("newRequest")&&b.i.deleteIndex("newRequest"),pw(b,"newRequestV2",["status","interface",
"timestamp"]))},
version:6});return Lw()};
Ow=function(a){return g.D(this,function c(){var d,e,f,h;return g.z(c,function(l){if(1==l.i)return d={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.w(l,Mw().open(),2);if(3!=l.i)return e=l.l,f=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.w(l,Pha(e,f),3);h=l.l;d.cW=(0,g.P)();Nw(d);return l.return(h)})})};
eia=function(){return g.D(this,function b(){var c,d,e,f,h,l,m;return g.z(b,function(n){if(1==n.i)return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.w(n,Mw().open(),2);if(3!=n.i)return d=n.l,e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=["NEW",e,0],h=["NEW",e,(0,g.P)()],l=IDBKeyRange.bound(f,h),m=void 0,g.w(n,jw(d,["LogsRequestsStore"],{mode:"readwrite",Ch:!0},function(p){return vw(lw(p,"LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(r){r.getValue()&&
(m=r.getValue(),m.status="QUEUED",r.update(m))})}),3);
c.cW=(0,g.P)();Nw(c);return n.return(m)})})};
fia=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Mw().open(),2);d=e.l;return e.return(jw(d,["LogsRequestsStore"],{mode:"readwrite",Ch:!0},function(f){var h=lw(f,"LogsRequestsStore");return h.get(a).then(function(l){if(l)return l.status="QUEUED",kw(h,l).then(function(){return l})})}))})})};
gia=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Mw().open(),2);d=e.l;return e.return(jw(d,["LogsRequestsStore"],{mode:"readwrite",Ch:!0},function(f){var h=lw(f,"LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",l.sendCount+=1,kw(h,l).then(function(){return l})):Yv.resolve(void 0)})}))})})};
Pw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Mw().open(),2);d=e.l;return e.return(d.delete("LogsRequestsStore",a))})})};
Nw=function(a){var b=$r("nwl_latency_sampling_rate",.01);.02<b||Math.random()<=b&&yv("nwl_transaction_latency_payload",a)};
Rw=function(){Qw||(Qw=new uv("yt.offline"));return Qw};
Sw=function(){g.Jf.call(this);this.L=0;this.C=this.l=!1;this.J=0;this.V=!1;this.i=this.GC();hia(this);iia(this)};
Tw=function(){if(!Sw.i){var a=g.Ha("yt.networkStatusManager.instance")||new Sw;g.Ga("yt.networkStatusManager.instance",a,void 0);Sw.i=a}return Sw.i};
iia=function(a){window.addEventListener("online",function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,d.cq(),2);Uw(d);if(d.V&&g.Zr("offline_error_handling")){var f=Rw().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.Pv(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.ds(l)}Rw().set("errors",{},2592E3,!0)}}g.sa(e)})})})};
hia=function(a){window.addEventListener("offline",function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,d.cq(),2);Uw(d);g.sa(e)})})})};
Vw=function(a){a.L=nu(0,function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){if(!d.i)return g.w(e,d.cq(),3);if(d.GC())return e.wb(3);d.C=!0;d.J=(0,g.P)();return d.l?g.w(e,d.cq(),3):e.wb(3)}Vw(d);g.sa(e)})})},jia)};
Uw=function(a){a.C&&(fs(new g.Pv("NetworkStatusManager state did not match poll",(0,g.P)()-a.J)),a.C=!1)};
Xw=function(a){a=void 0===a?{}:a;g.Jf.call(this);var b=this;this.l=this.C=0;this.i=Tw();var c=g.Ha("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.UP);a.oR&&(c=g.Ha("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ha("yt.networkStatusManager.instance.listen").bind(this.i))a.iz?(this.iz=a.iz,c("ytnetworkstatus-online",function(){Ww(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Ww(b,"publicytnetworkstatus-offline")})):
(c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Ww=function(a,b){a.iz?a.l?(g.tu(a.C),a.C=g.ou(function(){a.u!==b&&(a.dispatchEvent(b),a.u=b,a.l=(0,g.P)())},a.iz-((0,g.P)()-a.l))):(a.dispatchEvent(b),a.u=b,a.l=(0,g.P)()):a.dispatchEvent(b)};
dx=function(a,b){function c(d){var e=Yw().nj();if(!Zw()||!d||e&&g.Zr("vss_networkless_bypass_write"))$w(a,b);else{var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};Ow(f).then(function(h){f.id=h;(Yw().nj()||g.Zr("networkless_always_online"))&&ax(f)}).catch(function(h){ax(f);
bx(h)})}}
b=void 0===b?{}:b;g.Zr("skip_is_supported_killswitch")?Gw().then(function(d){c(d)}):c(cx())};
ex=function(a,b){function c(e){if(Zw()&&e){var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};if(Yw().nj()){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.D(d,function p(){return g.z(p,function(r){if(1==r.i)return g.w(r,Ow(f).catch(function(t){bx(t)}),2);
h(l,m);g.sa(r)})})};
$w(a,b)}else Ow(f).catch(function(l){bx(l)})}else $w(a,b)}
var d=this;b=void 0===b?{}:b;g.Zr("skip_is_supported_killswitch")?Gw().then(function(e){c(e)}):c(cx())};
fx=function(a,b){function c(d){if(Zw()&&d){var e={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(l,m){void 0!==e.id?Pw(e.id):f=!0;h(l,m)};
$w(e.url,e.options);Ow(e).then(function(l){e.id=l;f&&Pw(e.id)}).catch(function(l){bx(l)})}else $w(a,b)}
b=void 0===b?{}:b;g.Zr("skip_is_supported_killswitch")?Gw().then(function(d){c(d)}):c(cx())};
hx=function(){var a=this;gx||(gx=g.ou(function(){return g.D(a,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,eia(),2);if(3!=e.i)return d=e.l,d?g.w(e,ax(d),3):(g.tu(gx),gx=0,e.return());gx&&(gx=0,hx());g.sa(e)})})},100))};
ax=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){switch(e.i){case 1:if(void 0===a.id){e.wb(2);break}return g.w(e,fia(a.id),3);case 3:(d=e.l)?a=d:fs(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.P)()-f)){e.wb(4);break}fs(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.wb(5);break}return g.w(e,Pw(a.id),5);case 5:return e.return();case 4:f=a=kia(a);var h,l;if(null===(l=null===(h=null===
f||void 0===f?void 0:f.options)||void 0===h?void 0:h.postParams)||void 0===l?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.P)());(a=f)&&$w(a.url,a.options);g.sa(e)}})})};
kia=function(a){var b=this,c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){return g.D(b,function l(){return g.z(l,function(m){switch(m.i){case 1:if(!((g.Ha("ytNetworklessLoggingInitializationOptions")?ix.potentialEsfErrorCounter:jx)<=$r("potential_esf_error_limit",10))){m.wb(2);break}return g.w(m,Yw().cq(),3);case 3:if(Yw().nj())g.Ha("ytNetworklessLoggingInitializationOptions")&&ix.potentialEsfErrorCounter++,jx++;else return c(e,f),m.return();case 2:if(void 0===(null===a||void 0===a?void 0:a.id)){m.wb(4);break}return 1>a.sendCount?g.w(m,gia(a.id),
8):g.w(m,Pw(a.id),4);case 8:g.ou(function(){Yw().nj()&&hx()},5E3);
case 4:c(e,f),g.sa(m)}})})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){return g.D(b,function l(){return g.z(l,function(m){if(1==m.i)return void 0===(null===a||void 0===a?void 0:a.id)?m.wb(2):g.w(m,Pw(a.id),2);d(e,f);g.sa(m)})})};
return a};
Yw=function(){kx||(kx=new Xw({oR:!0,UP:!0}));return kx};
bx=function(a){if(Yw().nj())g.ds(a);else if(g.Zr("offline_error_handling")){var b=Rw().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Rw().set("errors",b,2592E3,!0)}};
$w=function(a,b){if(g.Zr("networkless_with_beacon")){var c=["method","postBody"];if(Object.keys(b).length>c.length)var d=!0;else{d=0;c=g.q(c);for(var e=c.next();!e.done;e=c.next())b.hasOwnProperty(e.value)&&d++;d=Object.keys(b).length!==d}d?g.at(a,b):g.Zr("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?g.Bu(a):Cu(a,void 0,b.postBody)}else g.at(a,b)};
Zw=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?ix.isNwlInitialized:!1};
cx=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?ix.isIdbSupported:!1};
g.lx=function(a){this.config_=null;a?this.config_=a:tv()&&(this.config_=g.Zu())};
g.$u=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.dK.bypassNetworkless?(f.method="POST",!d.dK.writeThenSend&&g.Zr("nwl_send_fast_on_unload")?fx(l,f):dx(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.at(l,f))}catch(n){if("InvalidAccessError"==n.name)fs(Error("An extension is blocking network request."));else throw n;}}
!g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&fs(new g.Pv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Pv("innertube xhrclient not ready",b,c,d),g.ds(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(m,n){if(d.onSuccess)d.onSuccess(n)},
onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)},
onError:function(m,n){if(d.onError)d.onError(n)},
onFetchError:function(m){if(d.onError)d.onError(m)},
timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.mJ;h&&(c=h);h=Fha(a.config_.oJ||!1,c,d);Object.assign(f.headers,h);f.headers.Authorization&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;h={alt:"json"};a.config_.nJ&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=ns(""+c+b,h);Zw()?Gw().then(function(m){e(m)}):e(!1)};
g.Kv=function(a,b,c){c=void 0===c?{}:c;var d=g.lx;g.O("ytLoggingEventsDefaultDisabled",!1)&&g.lx==g.lx&&(d=null);ev(a,b,d,c)};
nia=function(){var a=void 0===a?window.location.href:a;if(g.Zr("kevlar_disable_theme_param"))return null;var b=gi(g.ii(5,a));if(lia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.ls(a).theme;return mia.get(c)||null}catch(d){}return null};
lia=function(a){var b=oia.map(function(c){return c.toLowerCase()});
return!g.Zr("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
nx=function(a,b,c){a&&(a.dataset?a.dataset[mx(b)]=String(c):a.setAttribute("data-"+b,c))};
ox=function(a){return a?a.dataset?a.dataset[mx("loaded")]:a.getAttribute("data-loaded"):null};
mx=function(a){return px[a]||(px[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
qx=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()};
tx=function(a){var b;rx()?sx()==a&&(b=document):b=a;return b&&(a=Ut(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
ux=function(a){return g.fb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
pia=function(){var a=document;return g.fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
rx=function(){return!!Ut(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
sx=function(a){a=void 0===a?!1:a;var b=Ut(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
vx=function(a){g.E.call(this);this.I=[];this.Ra=a||this};
wx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.xx=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.Q=function(a){a=void 0===a?!1:a;g.E.call(this);this.Gd=new g.cr(a);g.F(this,this.Gd)};
yx=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
zx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Bx=function(a,b,c,d){g.Q.call(this);this.u=!!b;this.I=a;this.V=c||a;this.L=!!d;this.i=new vx(this);g.F(this,this.i);this.C=this.J=null;this.B=this.l=!1;b&&(g.jg&&a.setAttribute("draggable","true"),a.style.touchAction="none");Ax(this)};
Cx=function(a,b,c){a.i.N(a.V,b,c,void 0,!a.u)};
Ax=function(a){a.C=null;a.J=null;Cx(a,Dx("over"),a.aK);Cx(a,"touchstart",a.eF);a.u&&Cx(a,Dx("down"),a.AR)};
Ex=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};
Dx=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Fx=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||{}};
qia=function(a){a instanceof Fx||(a=new Fx(a));return a};
Hx=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(Gx)for(c=1,d=0;d<Gx.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Gx.charCodeAt(d),c++;return b};
Ix=function(){for(var a=Hx(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Jx=function(){return g.Qe(Hx(16),function(a){return(a&15).toString(16)}).join("")};
Kx=function(a){this.i=a};
g.Lx=function(a){return new Kx({trackingParams:a})};
sia=function(a){var b=ria++;return new Kx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Mx=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Nx=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Ox=function(a){return g.O(Nx(void 0===a?0:a),void 0)};
g.Px=function(a){return(a=Ox(void 0===a?0:a))?new Kx({veType:a,youtubeData:void 0}):null};
Qx=function(){var a=g.O("csn-to-ctt-auth-info");a||(a={},Wr("csn-to-ctt-auth-info",a));return a};
g.Rx=function(a){a=void 0===a?0:a;var b=g.O(Mx(a));if(!b&&!g.O("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null};
tia=function(a,b,c){var d=Qx();(c=g.Rx(c))&&delete d[c];b&&(d[a]=b)};
Sx=function(a){return Qx()[a]};
Ux=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.O(Mx(c))||b!==g.O(Nx(c)))tia(a,d,c),Wr(Mx(c),a),Wr(Nx(c),b),b=function(){setTimeout(function(){a&&ev("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Tx,clientScreenNonce:a},g.lx)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
uia=function(a){a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
via=function(){this.Gm=[];this.Vl=[]};
Xx=function(){if(!Vx){var a=Vx=new via;a.Vl.length=0;a.Gm.length=0;Wx(a,wia)}return Vx};
Wx=function(a,b){b.Vl&&a.Vl.push.apply(a.Vl,b.Vl);b.Gm&&a.Gm.push.apply(a.Gm,b.Gm)};
xia=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Yx(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Yx(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Yx(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)};
Yx=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};
ay=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Zx(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=xia(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Zx(f+".ve",h,l,m):0;d+=f;d+=Zx(e,a[e],b,c);if(500<d)break}}else c[b]=$x(a),d+=c[b].length;else c[b]=$x(a),d+=c[b].length;return d};
Zx=function(a,b,c,d){c+="."+a;a=$x(b);d[c]=a;return c.length+a.length};
$x=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Jv=function(a){g.by(a)};
g.cy=function(a){g.by(a,"WARNING")};
g.by=function(a,b){var c=void 0===c?{}:c;c.name=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.Zr("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));
d.push("File name: "+a.fileName);d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=dy)){d=yia;var e=Uaa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.l||"Not available";if(l.startsWith(h+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=ay(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(p in r){if(r[p]){var t="params."+p,u=$x(r[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=$x(r)}if(d.length)for(p=0;p<d.length&&!(n=ay(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=
0;else a:{a=Xx();p=g.q(a.Vl);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.Wu)){a=d.weight;break a}a=g.q(a.Gm);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.q(zia);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.Wy[c.name])for(f=g.q(p.Wy[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.yg)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.sD(h);break}c.params||(c.params={});a=Xx();c.params["params.errorServiceSignature"]="msg="+a.Vl.length+"&cb="+a.Gm.length;c.params["params.serviceWorker"]="false";g.A.document&&g.A.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.gc("sample").constructor!==ec&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!ey.has(c.message)){"ERROR"===
b?(Oy.X("handleError",c),g.Zr("record_app_crashed_web")&&0===Py&&1===c.sampleWeight&&(Py++,g.Kv("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),Aia++):"WARNING"===b&&Oy.X("handleWarning",c);if(g.Zr("kevlar_gel_error_routing")){a=b;b:{p=g.q(Bia);for(d=p.next();!d.done;d=p.next())if(rt(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||
isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};f={pageUrl:window.location.href,kvPairs:[]};g.O("FEXP_EXPERIMENTS")&&(f.experimentIds=g.O("FEXP_EXPERIMENTS"));if(h=
c.params)for(m=g.q(Object.keys(h)),e=m.next();!e.done;e=m.next())e=e.value,f.kvPairs.push({key:"client."+e,value:String(h[e])});h=g.O("SERVER_NAME",void 0);m=g.O("SERVER_VERSION",void 0);h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&(g.Kv("clientError",p),("ERROR"===a||g.Zr("errors_flush_gel_always_killswitch"))&&Ru())}if(!g.Zr("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",
t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:b,"client.name":a.name},postParams:{url:g.O("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.q(Object.keys(a));for(d=p.next();!d.done;d=p.next())d=d.value,b.postParams["client."+d]=a[d];if(a=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.q(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,
b.postParams[d]=a[d];a=g.O("SERVER_NAME",void 0);p=g.O("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.at(g.O("ECATCHER_REPORT_HOST","")+"/error_204",b)}ey.add(c.message);dy++}}}};
Cia=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))};
Qy=function(a){vv.call(this,1,arguments);this.csn=a};
g.Sy=function(a,b,c,d){var e=d.filter(function(f){f.csn!==b?(f.csn=b,f=!0):f=!1;return f});
c={csn:b,parentVe:c.getAsJson(),childVes:g.Qe(e,function(f){return f.getAsJson()})};
d=g.q(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Rb(e)||!e.trackingParams&&!e.veType)&&g.cy(Error("Child VE logged with no data"));d={Ue:Sx(b),hm:b};"UNDEFINED_CSN"==b?Ry("visualElementAttached",c,d):a?ev("visualElementAttached",c,a,d):g.Kv("visualElementAttached",c,d)};
g.Ty=function(a,b,c){var d=g.Zr("use_default_events_client")?void 0:g.lx;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Ue:Sx(a),hm:a};"UNDEFINED_CSN"==a?Ry("visualElementShown",b,c):d?ev("visualElementShown",b,d,c):g.Kv("visualElementShown",b,c)};
Uy=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={Ue:Sx(b),hm:b,WP:d};"UNDEFINED_CSN"==b?Ry("visualElementHidden",c,d):a?ev("visualElementHidden",c,a,d):g.Kv("visualElementHidden",c,d)};
Vy=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={Ue:Sx(b),hm:b};"UNDEFINED_CSN"==b?Ry("visualElementGestured",c,d):a?ev("visualElementGestured",c,a,d):g.Kv("visualElementGestured",c,d)};
Dia=function(){return g.$d(g.Xa(Math.random()+""),3)};
Ry=function(a,b,c){Wy.push({payloadName:a,payload:b,options:c});Xy||(Xy=Dv(Yy,Eia))};
Eia=function(a){if(Wy){for(var b=g.q(Wy),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,ev(c.payloadName,c.payload,null,c.options));Wy.length=0}Xy=0};
g.Zy=function(a,b,c){g.Sy(g.Zr("use_default_events_client")?void 0:g.lx,a,b,[c])};
g.$y=function(a,b){var c=g.Zr("use_default_events_client")?void 0:g.lx;g.Cb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Ue:Sx(a),hm:a};"UNDEFINED_CSN"==a?Ry("visualElementShown",d,e):c?ev("visualElementShown",d,c,e):g.Kv("visualElementShown",d,e)})};
g.az=function(a,b){var c=g.Zr("use_default_events_client")?void 0:g.lx;g.Cb(b,function(d){Uy(c,a,d,void 0,void 0)})};
g.bz=function(a,b,c){Vy(g.Zr("use_default_events_client")?void 0:g.lx,a,b,c)};
cz=function(){this.l=new Set;this.i=new Set;this.u=new Map};
g.fz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.dz)():ez())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.gz=function(a){var b=ez(),c=(0,g.dz)();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};
hz=function(){var a=(0,g.dz)();if(a&&(a=a.l("yt-player-quality")))return a.creation};
g.iz=function(a){try{var b=ez(),c=(0,g.dz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.jz=function(){return g.gz("yt-remote-session-screen-id")};
g.kz=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(Fia,""),c=c.replace(Gia,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Hia(a,b,c)};
Hia=function(a,b,c){c=void 0===c?null:c;var d=lz(a),e=document.getElementById(d),f=e&&ox(e),h=e&&!f;f?b&&b():(b&&(f=g.Iu(d,b),b=""+g.Pa(b),mz[b]=f),h||(e=Iia(a,d,function(){ox(e)||(nx(e,"loaded","true"),g.Ku(d),g.Us(g.Qa(Mu,d),0))},c)))};
Iia=function(a,b,c,d){d=void 0===d?null:d;var e=g.og("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.Cj(e,g.zl(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
lz=function(a){var b=document.createElement("a");g.kd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+sd(a)};
pz=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!nz(a)||c.some(function(e){return!nz(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())oz(a,d.value);return a};
oz=function(a,b){for(var c in b)if(nz(b[c])){if(c in a&&!nz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});oz(a[c],b[c])}else if(qz(b[c])){if(c in a&&!qz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);rz(a[c],b[c])}else a[c]=b[c];return a};
rz=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,nz(c)?a.push(oz({},c)):qz(c)?a.push(rz([],c)):a.push(c);return a};
nz=function(a){return"object"===typeof a&&!Array.isArray(a)};
qz=function(a){return"object"===typeof a&&Array.isArray(a)};
sz=function(a,b,c,d,e,f){g.E.call(this);this.i=a;this.l=c;this.u=d;this.C=e;this.B=f};
Kia=function(a,b,c){c.Cs?(tz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Jia(a.C,b)):uz(a.B,c.wl,b.slotId)};
Lia=function(a,b,c,d){var e=vz(a.u.get(),1);tz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return wz(a.l.get(),c,d,e.clientPlaybackNonce,e.UH,e.daiEnabled,e)},b)};
xz=function(a,b,c){if(c&&c!==a.rb)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ja.i.has(c.value))return!1;return!0};
yz=function(a,b){this.Xn=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
R=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.Pv(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.rb:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.cy(a)}};
zz=function(a,b,c,d,e,f,h){g.E.call(this);this.u=a;this.l=b;this.oB=c;this.Sa=d;this.B=e;this.i=f;this.Fa=h};
Az=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};
Bz=function(a,b,c,d){this.u=a;this.Kd=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
Cz=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.cy(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Ez=function(a,b,c){return b&&b.test(a)||Dz&&c&&c.test(a)?!0:!1};
Gz=function(a){return(a=Fz&&Fz.exec(a))?a[0]:""};
Hz=function(a){var b=void 0===b?!1:b;return Cz(Ez(a,Mia,Nia),a,b,"Trusted Stream URL")};
g.Iz=function(a){var b=void 0===b?!1:b;return Cz(Ez(a,Oia,Pia),a,b,"Trusted Image URL")};
Ria=function(a){var b=void 0===b?!1:b;return Cz(Ez(a,Qia,null),a,b,"Trusted Ad Domain URL")};
Jz=function(a){var b=void 0===b?!1:b;return Cz(Ez(a,Sia,null),a,b,"Trusted Promoted Video Domain URL")};
Uia=function(a){var b=void 0===b?!1:b;return Cz(Ez(a,Tia,null),a,b,"Drm Licensor URL")};
Kz=function(a,b){b=void 0===b?!1:b;return Cz(Ez(a,Via,Wia),a,b,"Captions URL")};
Lz=function(a){a=new g.ck(a);g.dk(a,document.location.protocol);g.ek(a,document.location.hostname);document.location.port&&g.fk(a,document.location.port);return a.toString()};
Mz=function(a){a=new g.ck(a);g.dk(a,document.location.protocol);return a.toString()};
g.Oz=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=Xia++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||Nz.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.Am(d.thumbnails,function(e){return g.Iz(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Pz=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Yia=function(a,b){switch(a.style){case Nz.CHAPTER_MARKER:return b?8:5;case Nz.AD_MARKER:return 6;case Nz.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Qz=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.Rz=function(a){return"crn_"+a};
g.Sz=function(a){return"crx_"+a};
Tz=function(a,b,c,d,e){g.Oz.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};
Uz=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
Vz=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
Wz=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Zq(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Zq(Math.max(0,b.u-b.i),0x7ffffffffffff):new Zq(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 Zq(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Kd;a=1E3*d.startSecs;if(c){if(a<b.l)return new Zq(a-4E3,a);c=Math.max(0,a-b.l-1E4);return new Zq(b.B?b.l:Math.floor(b.l+Math.random()*c),a)}return new Zq(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Xz=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Yz=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.Zz=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=ng("B",null,h||l));d.italics&&(h=ng("I",null,h||l));d.strikethrough&&(h=ng("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=ng("A",null,h||l),g.kd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||ng("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:ng("SPAN",null,b)};
$z=function(a,b){vv.call(this,1,arguments)};
aA=function(a,b){vv.call(this,1,arguments);this.i=a};
Zia=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
cA=function(a){var b=bA(a);if(b.aft)return b.aft;a=g.O((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};
fA=function(){var a;if(g.Zr("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===dA||void 0===dA?void 0:dA.getEntriesByType)||void 0===a?void 0:a.call(dA,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);e?(e.requestStart=eA(e.requestStart),e.responseEnd=eA(e.responseEnd),e.redirectStart=eA(e.redirectStart),e.redirectEnd=eA(e.redirectEnd),e.domainLookupEnd=eA(e.domainLookupEnd),e.connectStart=eA(e.connectStart),
e.connectEnd=eA(e.connectEnd),e.responseStart=eA(e.responseStart),e.secureConnectionStart=eA(e.secureConnectionStart),e.domainLookupStart=eA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=dA.timing}else a=dA.timing;return a};
gA=function(){return g.Zr("csi_use_time_origin")&&dA.timeOrigin?Math.floor(dA.timeOrigin):dA.timing.navigationStart};
eA=function(a){return Math.round(gA()+a)};
hA=function(a,b){g.Ga("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
iA=function(a){return!!g.Ha("yt.timing."+(a||"")+"pingSent_")};
jA=function(a,b){g.Ga("yt.timing."+(b||"")+"pingSent_",a,void 0)};
lA=function(a){return g.Ha("ytcsi."+(a||"")+"data_")||kA(a)};
mA=function(a){a=lA(a);a.info||(a.info={});return a.info};
bA=function(a){a=lA(a);a.tick||(a.tick={});return a.tick};
nA=function(a){var b=lA(a).nonce;b||(b=Ix(),lA(a).nonce=b);return b};
kA=function(a){var b={tick:{},info:{}};g.Ga("ytcsi."+(a||"")+"data_",b,void 0);return b};
pA=function(a){var b=bA(a||""),c=cA(a);c&&!oA&&(yv($ia,new $z(Math.round(c-b._start),a)),oA=!0)};
aja=function(){if(dA.getEntriesByType){var a=dA.getEntriesByType("paint");if(a=g.fb(a,function(b){return"first-paint"===b.name}))return eA(a.startTime)}a=dA.timing;
return a.FR?Math.max(0,a.FR):0};
qA=function(){var a=g.Ha("ytcsi.debug");a||(a=[],g.Ga("ytcsi.debug",a,void 0),g.Ga("ytcsi.reference",{},void 0));return a};
sA=function(a){a=a||"";var b=rA();if(b[a])return b[a];var c=qA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
tA=function(a){a=a||"";var b=rA();b[a]&&delete b[a];var c=qA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
rA=function(){var a=g.Ha("ytcsi.reference");if(a)return a;qA();return g.Ha("ytcsi.reference")};
uA=function(){this.i=0};
vA=function(){uA.i||(uA.i=new uA);return uA.i};
xA=function(a,b){wA[b]=wA[b]||{count:0};var c=wA[b];c.count++;c.time=(0,g.P)();a.i||(a.i=nu(0,function(){var d=(0,g.P)(),e;for(e in wA)wA[e]&&6E4<d-wA[e].time&&delete wA[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Pv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.cy(c)),!0):!1};
yA=function(a){return!!g.O("FORCE_CSI_ON_GEL",!1)||g.Zr("csi_on_gel")||g.Zr("enable_csi_on_gel")||!!lA(a).useGel};
AA=function(a,b,c){var d=zA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.P)();return yA(c)?(sA(c||"").tick[a]=b||(0,g.P)(),d=nA(c),"_start"===a?(a=vA(),xA(a,"baseline_"+d)||g.Kv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b})):vA().tick(a,d,b),pA(c),!0):!1};
DA=function(a,b,c){c=zA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in BA){c=BA[a];g.jb(bja,c)&&(b=!!b);a in CA&&"string"===typeof b&&(b=CA[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return pz({},d)}g.jb(cja,a)||g.cy(new g.Pv("Unknown label logged with GEL CSI",a))};
zA=function(a){a=lA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
EA=function(a){a=zA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
GA=function(a){if(yA(a)){var b={actionType:FA[g.O((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:FA[g.O("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.Rx();c&&(b.clientScreenNonce=c);a=nA(a);vA().info(b,a)}};
HA=function(a){kA(a);dja();jA(!1,a);a||(g.O("TIMING_ACTION")&&Wr("PREVIOUS_ACTION",g.O("TIMING_ACTION")),Wr("TIMING_ACTION",""))};
LA=function(a,b,c,d){d=d?d:a;IA("c",d);tA(d);HA(d);lA(d).useGel=!0;sA(d||"").info.actionType=a;Wr(d+"TIMING_AFT_KEYS",b);Wr(d+"TIMING_ACTION",a);JA("c",c,d);GA(d);hA(!0,d);KA(d)};
JA=function(a,b,c){g.MA("yt_sts",a,c);NA("_start",b,c)};
g.MA=function(a,b,c){null!==b&&(mA(c)[a]=b,yA(c)?(a=DA(a,b,c))&&OA(a,c):sA(c||"").info[a]=b)};
OA=function(a,b){if(yA(b)){var c=sA(b||"");pz(c.info,a);pz(EA(b),a);b=nA(b);vA().info(a,b)}};
NA=function(a,b,c){var d=bA(c);if(!b&&"_"!==a[0]){var e=a;dA.mark&&(oc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),dA.mark(e))}e=b||(0,g.P)();d[a]=e;AA(a,b,c)||(KA(c),sA(c||"").tick[a]=b||(0,g.P)());return d[a]};
PA=function(a,b){if(yA(void 0)){var c=zA(void 0);if(c.gelSpans)c.gelSpans[a]=!0;else{var d={};c.gelSpans=(d[a]=!0,d)}a={spanName:a,spanLengthUsec:String(Math.round(1E3*b))};sA("").span[String(a.spanName)]=a;b=zA(void 0);b.gelSpans||(b.gelSpans={});pz(b.gelSpans,a);b=nA(void 0);vA().span(a,b)}};
QA=function(a){var b="above_the_fold";dA&&dA.measure&&(oc(b,"measure_")||(b="measure_"+b),a?dA.measure(b,a):dA.measure(b))};
RA=function(a,b){b=bA(b);return a in b};
SA=function(a,b){RA("_start",b)&&!RA(a,b)&&NA(a,void 0,b)};
KA=function(a){if(!iA(a)){var b=g.O((a||"")+"TIMING_ACTION",void 0),c=bA(a);if(g.Ha("ytglobal.timing"+(a||"")+"ready_")&&b&&RA("_start")&&cA(a))if(pA(a),a)TA(a);else{b=!0;var d=g.O("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&TA(a)}}};
UA=function(){switch(Tt()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
TA=function(a){if(!yA(a)){var b=bA(a),c=mA(a),d=b._start,e=g.O("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.O((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=cA(a);var l=bA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&mA(a).yt_pvis&&"youtube"===e&&(g.MA("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.P)();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.Zr("always_send_csi_204_with_beacon"))?Cu(f):g.Bu(f);jA(!0,a);yv(VA,new aA(p.aft+(Number(h)||0),a))}};
IA=function(a,b){if(yA(b))RA("_start",b)&&NA("aa",void 0,b);else if(!iA(b)){var c=g.O("CSI_SERVICE_NAME","youtube");g.O((b||"")+"TIMING_ACTION",void 0)&&c&&(NA("aa",void 0,b),g.MA("ap",1,b),g.MA("yt_fss",a,b),TA(b))}};
eja=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);nd()&&a.setAttribute("nonce",nd());return c?(a=dA.getEntriesByName(c))&&a[0]&&(a=a[0],c=gA(),NA("rsf_"+b,c+Math.round(a.fetchStart)),NA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&(b=mA(void 0),c=EA(void 0),"rc"in b||"rc"in c||g.MA("rc",""),0===a.transferSize))?!0:!1:!1};
fja=function(){var a=window.location.protocol,b=dA.getEntriesByType("resource");b=g.Ro(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Bm(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(NA("wffs",eA(b.startTime)),NA("wffe",eA(b.responseEnd)))};
WA=function(){if(g.Ew)return!1;if(g.vt()){var a=qt();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
XA=function(a){if(a.vx())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
YA=function(a,b){this.id=a;this.Nc=b;this.captionTracks=[];this.i=this.u=this.B=null;this.l="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
ZA=function(a,b,c,d){this.u=c;this.reason=d;this.l=a||0;this.i=b||0};
$A=function(a,b){return a.l===b.l&&a.i===b.i&&a.u===b.u&&a.reason===b.reason};
bB=function(a,b,c,d){return new ZA(g.aB[a]||0,g.aB[b]||0,c,d)};
cB=function(a){var b=g.aB.auto;return a.l===b&&a.i===b};
eB=function(a){return dB[a.i||a.l]||"auto"};
fB=function(a,b){b=g.aB[b];return a.l<=b&&(!a.i||a.i>=b)};
gB=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.Nc&&!a.has(c.Nc.id)){var d=new YA(c.id,c.Nc);a.add(c.Nc.id);this.audioTracks.push(d)}};
kB=function(a,b,c,d){var e=[],f=new Set,h=a.Y||a.eb,l={};if(hB(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.tc();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Ua)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.I&&m.info.video&&m.info.video.i<a.I)e.push(p),e.push("min"+a.I);else if(a.Ya&&"h"===m.info.i&&m.info.video&&1080<m.info.video.i)e.push(p),
e.push("blkhigh264");else if(a.Za&&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.tE;h&&r?(f.add(m.info.i),e.push(p),e.push("byerr")):(r=iB(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.Ia?(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."+jB(l),d(c));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=gja(a,l[c]),l[c]=hja(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.tE;b=g.Fb(l,function(u){return!!u.length});
a.i&&(l="aftflt."+jB(l),d(l));return b};
lB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
jB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(lB(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.tc())}return b.join(".")};
ija=function(a,b,c){var d={};g.Eb(b,function(e,f){e=e.filter(function(h){if(!h.Yd)return!1;if("("===h.i||"(h"===h.i){if(a.l&&c&&"widevine"===c.flavor){var l=h.mimeType+"; experimental=allowed";return!!h.Yd[c.flavor]&&!!c.i[l]}if(!mB(a,nB.CRYPTOBLOCKFORMAT)&&!a.Y||a.V)return!1}return c&&h.Yd[c.flavor]&&c.i[h.mimeType]?!0:!1});
e.length&&(d[f]=e)});
return d};
kja=function(a,b,c,d,e,f){function h(G){return!!l[G]}
f=void 0===f?!1:f;var l=kB(a,b,c,e);oB(c)&&(l=ija(b,l,d),a.i&&(b="enflt."+jB(l),e(b)));if(hB(c))return e=g.fb(Object.values(l),function(G){return!!G.length&&!!G[0].audio}),a=g.fb(Object.values(l),function(G){return!!G.length&&!!G[0].video}),e&&a||ht(),it(new gB(a,e));
b=pB(a);b=g.fb(b,h);if(!b)return a.i&&e("noaudio"),ht();d=l[b];l["9"]&&l.h&&c.ji&&!a.Ga&&(a.i&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1",n=l["9h"]?"9h":"9",p=l[m],r=l[n];p&&p.length&&(a.l.highestAv1Resolution=p[p.length-1].ib().i);r&&r.length&&(a.l.highestVp9Resolution=r[r.length-1].ib().i);var t=[],u=[];if(a.va&&!a.u)for(u=jja(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],a.i&&e("newhybpref."+u.join(".")),c=g.q(u),f=c.next();!f.done;f=c.next())t=t.concat(l[f.value]).filter(function(G){return G});
else if(0<a.J&&r&&p){if(!f){var x=Math.min(a.J,qB(p)),y=qB(r),B=function(G){return G<=x||G>y};
a.i&&e("lth."+x+".uth."+y);p=p.filter(function(G){return B(G.ib().i)});
r=r.filter(function(G){return!B(G.ib().i)})}u=[m,
n];t=p.concat(r).filter(function(G){return G})}if(t.length&&!a.u){rB(t,d,u);
if(a.i){a=[];m=g.q(t);for(n=m.next();!n.done;n=m.next())a.push(n.value.tc());e("hbdfmt."+a.join("."))}return it(new gB(t,d,sB(l,"",b)))}t=tB(a);t=g.fb(t,h);if(!t){if(l[m]&&a.jb)return e=l[m],rB(e,d),it(new gB(e,d,sB(l,m,b)));a.i&&e("novideo");return ht()}a.Bb&&("1"===t||"1h"===t)&&l[n]&&(m=qB(l[t]),qB(l[n])>m&&(t=n));"9"===t&&l.h&&(m=qB(l["9"]),qB(l.h)>1.5*m&&(t="h"));a.i&&e("vfmly."+lB(t));m=l[t];if(!m.length)return a.i&&e("novfmly."+lB(t)),ht();rB(m,d);return it(new gB(m,d,sB(l,t,b)))};
sB=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)?(rB(d,e),new gB(d,e)):null};
rB=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.ib().height*e.ib().width-d.ib().height*d.ib().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.Ib-d.Ib);return f});
g.zb(b,function(d,e){return e.Ib-d.Ib})};
hja=function(a,b){var c=Bm(b,function(d,e){return 32<e.ib().fps?Math.min(d,e.ib().width):d},Infinity);
Infinity>c&&(b=a.J&&(a.ea||mB(a,nB.FRAMERATE))?g.Ro(b,function(d){return 32<d.ib().fps||d.ib().width<c}):g.Ro(b,function(d){return!(32<d.ib().fps)}));
xt()&&(b=g.Ro(b,function(d){return"299"!==d.tc()}));
return b};
gja=function(a,b){return b=g.Ro(b,function(c){return c.ib().i<=a.fb})};
qB=function(a){return Bm(a,function(b,c){return Math.max(b,c.ib().i)},0)};
uB=function(a){a=void 0===a?{}:a;var b=void 0===a.wk?!1:a.wk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.QE?!1:a.QE;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&WA()?3:2:c&&d?-1:1};
vB=function(a){return uB({hasSubfragmentedFmp4:a.B.Mf,wk:a.B.Mf,defraggedFromSubfragments:a.Dl,isManifestless:!0,QE:a.Da})};
xB=function(a){a=a.split("");wB.Qq(a,52);wB.p0(a,16);wB.dk(a,1);return a.join("")};
g.yB=function(a,b){this.l=a;this.C=void 0===b?!1:b;this.B=this.path=this.u="";this.i={};this.url=""};
zB=function(a){a.url||(a.url=lja(a));return a.url};
BB=function(a){AB(a);return a.B};
CB=function(a){return a.l?oc(a.l,"local"):"local"===a.u};
DB=function(a){AB(a);return g.Hb(a.i,function(b){return null!==b})};
EB=function(a){AB(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=zB(a);b=new g.ck(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1]){c=b.i;var e=c.replace(/^[^.]*/,"");g.ek(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.yB(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.ek(b,"redirector.googlevideo.com"),c=b.toString()):
b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.ek(b,"www.youtube.com"),c=b.toString()):c=Lz(c);b=new g.yB(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
AB=function(a){if(a.l){if(!Hz(a.l)&&!a.l.startsWith("local"))throw Error("Untrusted URL: "+a.l);var b=g.rk(a.l);a.u=b.B;a.B=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=FB(c);
g.Ra(a.i,GB(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.C&&(b=a.get("n"))&&(b=eha(b),a.set("n",b))}};
lja=function(a){AB(a);var b=a.u+(a.u?"://":"//")+a.B+a.path;if(DB(a)){var c=[];g.Eb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
FB=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&HB(c,a[b],a[b+1]);return c};
GB=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?HB(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
HB=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};
IB=function(a,b,c,d,e,f,h,l,m,n){this.Ka=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.Kd=n;this.endTime=b+c;this.l=h||0;this.range=f||null;this.pending=l||!1;this.Kd=n||null};
JB=function(){this.segments=[]};
KB=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=eb(a.segments,function(d){return d.Ka>=b},a);
0<c&&a.segments.splice(0,c)}};
LB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
MB=function(a){return String.fromCharCode.apply(null,a)};
NB=function(a){return window.TextDecoder?(new TextDecoder).decode(a):MB(a)};
OB=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.Zb=(this.mI=e)?0:8;this.dataOffset=this.offset+this.Zb};
mja=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
PB=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};
RB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=QB(this,"Sequence-Number");this.I=QB(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=QB(this,"Ingestion-Walltime-Us")/1E6;this.l=(QB(this,"First-Frame-Time-Us")+QB(this,"First-Frame-Uncertainty-Us"))/1E6;this.Oi=QB(this,"Target-Duration-Us")/1E6;this.B="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=QB(this,"Crypto-Period-Index");
this.u=QB(this,"Crypto-Period-Seconds")};
SB=function(a){var b;a.data["Cuepoint-Type"]?b=new Az(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",nja[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
TB=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
QB=function(a,b){return Number(a.data[b])||0};
oja=function(a,b){this.i=a;this.duration=b};
UB=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)};
VB=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};
XB=function(a,b){var c=g.WB(a,0,1952868452);a=g.WB(a,0,1953658222);if(c&&a){c.skip(1);var d=c.xg()<<16|c.Mk();c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.Zb;var e=c.Jc();c.setUint32(d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=a.xg()<<16|a.Mk();if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=a.Jc();d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.Zb,h=a.Jc(),a.setUint32(f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
ZB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.WB(a,0,1836476516))?g.YB(a):NaN};
pja=function(a){var b=g.WB(a,0,1937011556);if(!b)return null;b=$B(a,b.dataOffset+8,1635148593);if(!b)return null;var c=$B(a,b.dataOffset+78,1936995172),d=$B(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),c.xg()){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=$B(a,d.dataOffset,1886547818)){var h=$B(a,d.dataOffset,1886546020),l=$B(a,d.dataOffset,2037673328);if(!l&&(l=$B(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),
c=h.Ze()/65536,f=h.Ze()/65536,e=h.Ze()/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new UB(b,c,f,e,a)}return null};
$B=function(a,b,c){for(;aC(a,b);){var d=bC(a,b);if(d.type===c)return d;b+=d.size}return null};
g.WB=function(a,b,c){for(;aC(a,b);){var d=bC(a,b);if(d.type===c)return d;b=cC(d.type)?b+8:b+d.size}return null};
g.dC=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)};
bC=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new OB(a,b,c,d)};
g.YB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
eC=function(a){a=new OB(a.data,a.offset,a.size,a.type,a.mI);var b=a.xg();a.skip(7);var c=a.Jc();if(0===b){b=a.Jc();var d=a.Jc()}else b=a.gs(),d=a.gs();a.skip(2);for(var e=a.Mk(),f=[],h=[],l=0;l<e;l++){var m=a.Jc();f.push(m);h.push(a.Jc());a.skip(4)}return{WE:c,SP:b,dQ:d,nV:f,RE:h}};
aC=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};
cC=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
fC=function(a){a.skip(4);return{BV:a.bf(0),value:a.bf(0),WE:a.Jc(),u9:a.Jc(),d9:a.Jc(),id:a.Jc(),UJ:a.bf(),offset:a.offset}};
gC=function(a,b){for(var c=$B(a,0,b);c;)c.markAsSkip(),c=$B(a,c.offset+c.size,b)};
g.hC=function(a,b){for(var c=0,d=[];aC(a,c);){var e=bC(a,c);e.type===b&&d.push(e);c=cC(e.type)?c+8:c+e.size}return d};
qja=function(a,b){var c=g.WB(a,0,1937011556),d=g.WB(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.WB(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new mja(a.byteLength+b);PB(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;PB(d,a,c.offset+16,c.size-16);PB(d,e,e.byteOffset+f.dataOffset+8,b);PB(d,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.WB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(iC)return d.data;a=g.WB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
jC=function(a,b){this.l=a;this.i=0;this.start=b||0};
kC=function(a){return a.i>=a.l.byteLength};
qC=function(a,b,c){var d=new jC(c);if(!lC(d,a))return!1;d=mC(d);if(!nC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=oC(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?pC(d-9,8):pC(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
rja=function(a){var b=new jC(a);rC(b);if(lC(b,[408125543,374648427,174,224]))b=mC(b);else return null;for(var c=a=null;!kC(b);){var d=oC(b,!1);if(21432===d)switch(sC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=mC(b):tC(b)}if(!c)return null;for(var e,f=d=b=null;!kC(c);)switch(oC(c,!1)){case 30321:if(3!==sC(c))return null;break;case 30324:b=uC(c);break;case 30323:f=uC(c);break;case 30325:d=uC(c);break;case 30322:e=oC(c,!0);e=vC(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:tC(c)}return e?new UB(a,b,f,d,e):null};
mC=function(a){var b=oC(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 jC(c,a.start+a.i);a.i+=b;return c};
sC=function(a){for(var b=oC(a,!0),c=wC(a),d=1;d<b;d++)c=256*c+wC(a);return c};
uC=function(a){var b=oC(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};
wC=function(a){return a.l.getUint8(a.i++)};
oC=function(a,b){var c=wC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+wC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+wC(a),d*=128;return b?c-d:c};
tC=function(a){var b=oC(a,!0);a.i+=b};
rC=function(a){var b=a.i;a.i=0;var c=!1;try{nC(a,440786851)&&(a.i=0,nC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.cy(d);else throw d;}a.i=b;return c};
sja=function(a){if(!nC(a,440786851,!0))return null;var b=a.i;oC(a,!1);var c=oC(a,!0)+a.i-b;a.i=b+c;if(!nC(a,408125543,!1))return null;oC(a,!0);if(!nC(a,357149030,!0))return null;var d=a.i;oC(a,!1);var e=oC(a,!0)+a.i-d;a.i=d+e;if(!nC(a,374648427,!0))return null;var f=a.i;oC(a,!1);var h=oC(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};
xC=function(a){var b=a.i;a.i=0;var c=1E6;lC(a,[408125543,357149030,2807729])&&(c=sC(a));a.i=b;return c};
tja=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!yC(a)||!nC(a,160))return a.i=c,NaN;oC(a,!0);var d=a.i;if(!nC(a,161))return a.i=c,NaN;oC(a,!0);wC(a);var e=wC(a)<<8|wC(a);a.i=d;if(!nC(a,155))return a.i=c,NaN;d=sC(a);a.i=c;return(e+d)*b/1E9};
yC=function(a){if(!zC(a)||!nC(a,524531317))return!1;oC(a,!0);return!0};
zC=function(a){if(rC(a)){if(!nC(a,408125543))return!1;oC(a,!0)}return!0};
lC=function(a,b){for(var c=0;c<b.length;c++){if(!nC(a,b[c]))return!1;c!==b.length-1&&oC(a,!0)}return!0};
nC=function(a,b,c){c=void 0===c?!1:c;if(kC(a))return!1;for(var d=a.i;oC(a,!1)!==b;)if(tC(a),d=a.i,kC(a))return!1;c&&(a.i=d);return!0};
pC=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};
vC=function(a,b){var c=new Uint8Array(a.l.buffer,a.l.byteOffset+a.i,b);a.i+=b;return c};
AC=function(a){this.Ah=a;this.i={};this.url=""};
BC=function(a,b){var c=b.indexOf("?");if(0<c){var d=GB(b.substr(c+1));g.Eb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=FB(b);g.Eb(b,function(e,f){this.set(f,e)},a)};
g.CC=function(a){a.url||(a.url=uja(a));return a.url};
uja=function(a){var b=zB(a.Ah),c=[];g.Eb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=DB(a.Ah)?"&":"?";return b+a+d};
DC=function(a,b){var c=new g.yB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Eb(a.i,function(d,e){c.set(e,null)});
return c};
vja=function(){this.l=this.i=this.timedOut=this.started=this.u=0};
wja=function(a){a.u=(0,g.P)();a.started+=1};
EC=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.l);return Math.pow(b.bh,d)};
FC=function(a,b){a[b]||(a[b]=new vja);return a[b]};
GC=function(a){this.u=null;this.C=this.l=0;this.i=a;this.B=a.clone()};
IC=function(a,b){var c=FC(b,BB(a.i));if(1<=c.timedOut||1<=c.i)if(a=HC(a),b=FC(b,BB(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
xja=function(a,b){a=b?HC(a):a.i;return new AC(a)};
HC=function(a){a.u||(a.u=EB(a.B));return a.u};
JC=function(a,b){return a.l>b.He?a.C+1E3*Math.pow(b.bh,a.l-b.He)<(0,g.P)():!0};
KC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.B=!1;this.C=null;this.L=0;this.I=this.u=null;this.info=b;this.l=new GC(a)};
LC=function(a){var b=g.q(a.info.id.split(";")),c=b.next().value;b=b.next().value;return c+";"+a.info.lastModified+";"+(void 0===b?"":b)};
MC=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
NC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new MC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
OC=function(a,b){return new MC(a,a+b-1)};
PC=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
SC=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.Ka=-1;this.I=void 0===d?"":d;this.Ka=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.zb=l||0;this.l=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.zb+this.l===this.range.length:void 0===p?!!this.l:p;this.Rd=a;this.range?(this.C=this.startTime+this.duration*this.zb/this.range.length,this.J=this.duration*this.l/this.range.length,this.B=this.C+this.J):QC(this);3!==this.type||0<=this.Ka||
!this.i.Ng()||g.cy(new g.Pv("b168859904",RC(this)))};
QC=function(a){a.C=a.startTime;a.J=a.duration;a.B=a.C+a.J};
yja=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ka!==a.Ka);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.zb+b.l===a.zb+a.l:d};
TC=function(a){return 1===a.type||2===a.type};
UC=function(a){return 3===a.type||6===a.type};
VC=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.zb+a.l===b.range.start+b.zb:a.Ka===b.Ka?a.zb+a.l===b.zb:a.Ka+1===b.Ka&&0===b.zb&&a.Rd:!1};
WC=function(a,b){return VC(a,b)||Qf(a.B,b.C)||a.Ka+1===b.Ka&&0===b.zb&&a.Rd?!0:!1};
zja=function(a){1===a.length||g.Am(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new MC(a[0].range.start+a[0].zb,b.range.start+b.zb+b.l-1)};
RC=function(a){a=XC(a);var b="";g.Eb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
XC=function(a){var b={};b.itag=a.i.info.tc();b.type=""+a.type;b.seg=String(a.Ka);a.range&&(b.range=""+(a.range.start+a.zb)+"-"+(a.range.start+a.zb+a.l-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.J).toFixed(1);b.off=String(a.zb);b.len=String(a.l);a.Rd&&(b.end="1");a.u&&(b.eos="1");return b};
YC=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Me()?(a=a.i.Mv(a),un(a,function(c){return YC(c,b)})):a.Ka===b.Ka&&!!b.l&&b.zb+b.l>a.zb&&b.zb+b.l<=a.zb+a.l};
ZC=function(a,b){var c=b.i;a.I="updateWithEmsg";a.Ka=c;b.B&&(a.u=b.B)};
$C=function(a,b){var c=b.Ka;a.I="updateWithSegmentInfo";a.Ka=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,QC(a)};
aD=function(a,b){this.i=a;this.u=null;this.C=this.Je=NaN;this.I=this.requestId=null;this.l=a[0].i.l;this.B=b||"";this.range=this.i[0].range&&0<this.i[0].l?zja(this.i):null};
bD=function(a){return!TC(a.i[a.i.length-1])};
cD=function(a){return 4===a.i[a.i.length-1].type};
g.dD=function(a,b,c){if(a.u){var d=new AC(a.u);b.jo&&(d.get("alr")||d.set("alr","yes"));a.B&&BC(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new AC(new g.yB(a.B)):(b=null===a.I?IC(a.l,c):a.I,d=xja(a.l,b),a.B&&BC(d,a.B));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Je)||d.set("headm",a.Je.toString());isNaN(a.C)||d.set("mffa",a.C+"ms");a.urlParams&&g.Eb(a.urlParams,function(e,f){d.set(f,e)});
return d};
eD=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.J*a.i.info.Ib)};
fD=function(a,b){var c=a.i[0];if(a.range)var d=OC(a.range.start,Math.min(4096,a.range.length));else{if(a.B&&0<=a.B.indexOf("/range/")||"1"===a.l.B.get("defrag")||"1"===a.l.B.get("otf"))return null;d=OC(0,4096)}d=new SC(5,c.i,d,"createProbeRequestInfo"+c.I,c.Ka);a=new aD([d],a.B);a.I=b;return a};
gD=function(a,b,c,d,e,f){f=void 0===f?0:f;KC.call(this,a,b,d,void 0);this.V=c;this.Oi=f;this.J=!0;this.index=e||new JB;this.Vs()&&(this.B=!0)};
Aja=function(a,b,c,d,e){this.Ka=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
hD=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""};
iD=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
jD=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};
kD=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
lD=function(){this.i=[];this.l=null;this.I=0;this.u=[];this.C=!1;this.J="";this.B=-1};
Bja=function(a){var b=a.u;a.u=[];return b};
Cja=function(){this.B=[];this.i=null;this.l={};this.u={}};
Gja=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=Dja(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=Eja(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=Fja(a,f));if(null==h)return;h.update(e,c);sb(d,Bja(h))}sb(a.B,d);naa(a.B,function(l){return 1E3*l.startSecs+l.i})};
Hja=function(a){a.i&&(a.i.i=[]);g.Eb(a.l,function(b){b.i=[]});
g.Eb(a.u,function(b){b.i=[]})};
Dja=function(a){a.i||(a.i=new lD);return a.i};
Eja=function(a,b){a.l[b]||(a.l[b]=new lD);return a.l[b]};
Fja=function(a,b){a.u[b]||(a.u[b]=new lD);return a.u[b]};
mD=function(a){var b=void 0===a?{}:a;a=void 0===b.Oi?0:b.Oi;var c=void 0===b.fk?!1:b.fk,d=void 0===b.Fl?0:b.Fl,e=void 0===b.je?0:b.je,f=void 0===b.jg?Infinity:b.jg,h=void 0===b.Uu?0:b.Uu;b=void 0===b.Xe?!1:b.Xe;this.segments=[];this.i=this.Ws=-1;this.l=null;this.Cg=a;this.Fl=d;this.fk=c;this.je=e;this.jg=f;this.Uu=h;this.Xe=b};
oD=function(a,b,c){b=nD(a,b);return 0<=b&&(c||!a.segments[b].pending)};
nD=function(a,b){return yb(a.segments,function(c){return b-c.Ka})};
pD=function(a,b,c){c=void 0===c?{}:c;gD.call(this,a,b,"",void 0,void 0,c.Oi||0);this.index=new mD(c)};
qD=function(a,b,c){KC.call(this,a,b);this.J=c;this.index=new JB};
rD=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ib*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new SC(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new aD([a],d)};
Ija=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new IB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
sD=function(){this.count=0;this.u=1;this.l=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
tD=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
uD=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)})};
vD=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
wD=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
xD=function(a){a.B=void 0;a.l=0;a.u=0};
yD=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.l].length};
zD=function(a){if(!a.B){var b=a.i[a.l];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
AD=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(!yD(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);xD(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)};
BD=function(a,b,c){a=AD(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
CD=function(a){a=BD(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};
DD=function(a,b){a.focus(b);return a.i[a.l][b-a.u]};
ED=function(a,b){a.focus(b);return yD(a,b,4)?zD(a).getUint32(b-a.u):256*(256*(256*DD(a,b)+DD(a,b+1))+DD(a,b+2))+DD(a,b+3)};
FD=function(a,b,c){this.info=a;this.u=c;this.l=null;this.B=-1;this.timestampOffset=0;this.i=b instanceof uD?b:new uD([b])};
GD=function(a){return AD(a.i)};
HD=function(a,b){if(1!==a.info.i.info.containerType||a.info.zb||!a.info.Rd)return!0;a=GD(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
ID=function(a,b){b=Math.min(b,a.info.l);var c=a.i.split(b),d=c.Lx;c=c.oq;var e=new SC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb,b,!1,!1);d=new FD(e,d,a.u);a=new SC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb+b,a.info.l-b,a.info.u,a.info.Rd);a=new FD(a,c,!1);return[d,a]};
JD=function(a,b,c){var d;if(!(d=!VC(a.info,b.info)||a.info.Rd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?vD(a.i,c.i[0]):1);d=c}if(d)return null;c=new SC(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb,a.info.l,a.info.u,a.info.Rd);d=b.info;c.l+=d.l;c.range&&(c.J+=d.J);c.B=d.B;c.Rd=d.Rd;c.u=c.u||d.u;d=new uD;wD(d,a.i);wD(d,b.i);c=new FD(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};
LD=function(a){g.KD(a.info.i.info)||a.info.i.info.Oe();if(-1!==a.B)return a.B;if(a.l&&TB(a.l))return a.B=TB(a.l),a.B;if(g.KD(a.info.i.info)){var b=GD(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;aC(b,f);){var h=bC(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.YB(h):1952867444===h.type&&isNaN(d)&&(d=g.dC(h));f=cC(h.type)?f+8:f+h.size}!e&&c&&(e=ZB(c));b=d/e}else b=new jC(GD(a)),c=a.u?b:new jC(new DataView(a.info.i.i.buffer)),d=xC(c),c=b.i,b.i=0,yC(b)?nC(b,231)?(d=sC(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};
ND=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=LD(a)+b;MD(a,c);a.timestampOffset=b};
MD=function(a,b){g.KD(a.info.i.info)||a.info.i.info.Oe();a.B=b;if(g.KD(a.info.i.info)){var c=GD(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;aC(c,f);){var h=bC(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.YB(h)));if(1952867444===h.type){!d&&a&&(d=ZB(a));var l=g.dC(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=cC(h.type)?f+8:f+h.size}return!0}c=new jC(GD(a));a=a.u?c:new jC(new DataView(a.info.i.i.buffer));d=xC(a);a=c.i;c.i=0;if(yC(c)&&nC(c,231))if(e=oC(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.l.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
OD=function(a){g.KD(a.info.i.info)||a.info.i.info.Oe();if(a.l&&6===a.info.type)return a.l.Oi;if(g.KD(a.info.i.info)){var b=GD(a);var c=0;b=g.hC(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=eC(d.value),c+=d.RE[0]/d.WE;c=c||NaN;if(!(0<=c))a:{c=GD(a);b=a.info.i.i;for(var e=d=0,f=0;aC(c,d);){var h=bC(c,d);if(1836476516===h.type)e=g.YB(h);else if(1836019558===h.type){!e&&b&&(e=ZB(b));if(!e){c=NaN;break a}var l=$B(h.data,h.dataOffset,1953653094),m=e,n=$B(l.data,l.dataOffset,1952868452);
l=$B(l.data,l.dataOffset,1953658222);var p=n.Ze();n.Ze();p&2&&n.Ze();n=p&8?n.Ze():0;var r=l.Ze(),t=r&1;p=r&4;var u=r&256,x=r&512,y=r&1024;r&=2048;var B=l.Jc();t&&l.Ze();p&&l.Ze();for(var G=t=0;G<B;G++){var H=u?l.Ze():n;x&&l.Ze();p&&0===G||!y||l.Ze();r&&l.Ze();t+=H}f+=t/m}d=cC(h.type)?d+8:d+h.size}c=f||NaN}}else c=new jC(GD(a)),b=a.u?c:new jC(new DataView(a.info.i.i.buffer)),c=tja(c,xC(b));return c||a.info.J};
PD=function(a){var b=GD(a);var c=(c=g.WB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.WB(b,0,1836476516))?g.YB(b):a?ZB(a):NaN);return c};
QD=function(a){if(!a.l){g.KD(a.info.i.info)||a.info.i.info.Oe();if(g.KD(a.info.i.info)){var b=GD(a),c=$B(b,0,1701671783);if(c){var d=fC(c);var e=d.BV;d=VB(d.UJ);if(b=$B(b,c.offset+c.size,1701671783))if(b=fC(b),b=VB(b.UJ),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 RB(d,e):null}else e=null}else{e=new jC(GD(a));d=e.i;e.i=0;c=b=null;if(lC(e,[408125543,307544935,29555,26568]))for(f=mC(e);!kC(f);){var h=oC(f,!1);17543===h?c=VB(f.bf()):17827===h?b=f.bf():
tC(f)}e.i=d;e=c?new RB(c,b):null}a.l=e}};
RD=function(a,b,c,d,e){KC.call(this,a,b,c,d);this.J=null;this.index=e?new e.NativeSegmentIndex:new sD};
SD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=OC(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n),r=f===a.index.getLastSegmentNumber()&&n+p===h.length;e.push(new SC(3,a,h,"getRequestInfoForRange",f,l,m,n,p,r));if(h.start+n+p>=c+d)break}e.length||g.by(new g.Pv("b189619593",""+b,""+c,""+d));return new aD(e)};
TD=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Jja=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
VD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||UD(a,b);this.i=g.aB[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.aB[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||""};
UD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=WD[0];for(var d=0;d<WD.length;d++){var e=WD[d],f=g.aB[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
ZD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;this.u=!0;this.isSupported=this.l=null;0<c.Ib||(c.Ib=16E3);Object.assign(this,c);this.containerType=XD(b);this.i=YD[this.tc()]||""};
$D=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
aE=function(a){return"9h"===a.i||"(h"===a.i};
bE=function(a){return"1"===a.i||"1h"===a.i};
g.KD=function(a){return 1===a.containerType};
cE=function(a){return"application/x-mpegURL"===a.mimeType};
dE=function(a){return a.includes("vtt")||a.includes("text/mp4")};
XD=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};
eE=function(a,b,c,d,e){var f=new TD;b in g.aB||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.aB[b],d=Math.round(16*e/9));d=new VD(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new ZD(c,a,{audio:f,video:d})};
fE=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
gE=function(){var a=g.Ha("yt.player.utils.videoElement_");a||(a=g.og("VIDEO"),g.Ga("yt.player.utils.videoElement_",a,void 0));return a};
hE=function(a){var b=gE();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Kja=function(a){try{var b=iE('video/mp4; codecs="avc1.42001E"')||iE('video/webm; codecs="vp9"');return(iE('audio/mp4; codecs="mp4a.40.2"')||iE('audio/webm; codecs="opus"'))&&(b||!a)||hE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
iE=function(a){if(/opus/.test(a)&&(g.bj&&!ar("38")||g.bj&&rt("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!zt())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!hE(a)};
jE=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
kE=function(){var a=gE();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
lE=function(){var a=gE();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
mE=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
nE=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)};
oE=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};
pE=function(a,b){return 0<=oE(a,b)};
Lja=function(a,b){if(!a)return NaN;b=oE(a,b);return 0<=b?a.start(b):NaN};
qE=function(a,b){if(!a)return NaN;b=oE(a,b);return 0<=b?a.end(b):NaN};
rE=function(a){return a&&a.length?a.end(a.length-1):NaN};
sE=function(a,b){a=qE(a,b);return 0<=a?a-b:0};
tE=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 mE(d,e)};
uE=function(a,b,c,d){g.Q.call(this);var e=this;this.md=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.YI={error:function(){!e.isDisposed()&&e.isActive&&e.X("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.X("updateend",e)}};
yx(this.md,this.YI);this.ow=this.isActive};
g.vE=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
g.wE=function(a){var b;for(b in a)if(a.hasOwnProperty(b)&&void 0!==a[b]){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
xE=function(a){var b=void 0===b?!1:b;if(a instanceof g.vE)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.by(a):g.cy(a);return new g.vE(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
yE=function(a,b,c,d,e){var f;g.Q.call(this);var h=this;this.Qb=a;this.Ee=b;this.id=c;this.containerType=d;this.isVideo=e;this.BJ=this.by=this.Pe=null;this.appendWindowStart=this.timestampOffset=0;this.DH=mE([],[]);this.Nw=!1;this.qe=function(l){return h.X(l.type,h)};
if(null===(f=this.Qb)||void 0===f?0:f.addEventListener)this.Qb.addEventListener("updateend",this.qe),this.Qb.addEventListener("error",this.qe)};
zE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
AE=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1};
BE=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 vx(this);g.F(this,this.events);this.Vu=new AE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ee.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ee;wx(this.events,a,["sourceopen","webkitsourceopen"],this.zU);wx(this.events,a,["sourceclose","webkitsourceclose"],this.yU)};
Mja=function(a,b){CE(a)?g.Jg(function(){b(a)}):a.callback=b};
DE=function(a){return!!a.i||!!a.l};
CE=function(a){try{return"open"===EE(a)}catch(b){return!1}};
EE=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"}};
FE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
GE=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.md:a.i,f=a.l.isView()?a.l.md:a.l,h=new BE(a.mediaSource,a.Ee,!0);h.Vu=a.Vu;e=new uE(e,b,c,d);b=new uE(f,b,c,d);h.i=e;h.l=b;g.F(h,e);g.F(h,b);CE(a)||a.i.ys(a.i.Qc());return h};
Nja=function(a,b){return HE(function(c,d){return g.ft(c,d,4,1E3)},a,b)};
g.IE=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=NB(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
HE=function(a,b,c){b.match(Oja);return a(b,c).then(function(d){var e=g.IE(d.xhr);return e?HE(a,e,c):d.xhr})};
KE=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.Q.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Ga=this.duration=0;this.Xe=this.L=this.isLive=this.u=!1;this.jg=this.je=0;this.isOtf=this.ji=!1;this.Aa=(0,g.P)();this.V=Infinity;this.i={};this.state=this.Y=0;this.timeline=null;this.isManifestless=!1;this.ea=[];this.B=null;this.va=0;this.La="";this.ya=NaN;this.J=this.I=this.C=this.timestampOffset=this.l=0;this.Ua=!!b&&g.S(b,"html5_live_nonzero_first_segment_start_time");
this.Ya=!!b&&g.S(b,"html5_live_self_init_segments");this.withCredentials=!b||!g.S(b,"html5_manifest_without_credentials");this.Ia=!!b&&g.S(b,"disable_html5_manifest_namespace_redux");this.Ra=b&&g.S(b,"disable_html5_duration_caching")?Infinity:10;this.Za=!!b&&g.S(b,"html5_reset_index_on_mismatch");JE=!!b&&g.S(b,"html5_modern_vp9_mime_type");this.Da=!!b&&g.S(b,"html5_unrewrite_timestamps")};
jja=function(a){return g.Hb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
oB=function(a){return g.Hb(a.i,function(b){return!!b.info.Yd})};
Pja=function(a){return g.Hb(a.i,function(b){return dE(b.info.mimeType)})};
LE=function(a){return g.Hb(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
ME=function(a){return g.Hb(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
NE=function(a){return g.Hb(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Qja=function(a){return g.Hb(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Rja=function(a){return Ib(a.i,function(b){return b.info.video?b.ZD():!0})};
hB=function(a){return g.Hb(a.i,function(b){return CB(b.l.i)})};
Sja=function(a){return g.Hb(a.i,function(b){return!(b.index instanceof sD)})};
OE=function(a,b){a.i[b.info.id]=b};
Wja=function(a,b,c,d,e,f){var h=Tja(a);if(d||e){c=new KE("",null===f||void 0===f?void 0:f.experiments,!0);a=g.q(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=PE(l,b);f=QE(l.url,l.sp,l.s);h=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.je=c.je||m;c.jg=c.jg||n;var p=!dE(d.mimeType);f&&OE(c,new pD(f,d,{Oi:h,fk:p,Fl:l,je:m,jg:n,Uu:300,Xe:e}))}c.u=!e;c.ji=!0;
c.isManifestless=!0;c.isLive=!e;c.Xe=e;c.L=!!c.je&&!!c.jg&&isFinite(c.jg);b=c}else b=3===h?Uja(a,b,c,null===f||void 0===f?void 0:f.experiments):Vja(a,b,c,f);return b};
Vja=function(a,b,c,d){c=void 0===c?0:c;var e=new KE("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.Cb(a,function(f){var h=PE(f,b,e.duration),l=NC(f.init),m=NC(f.index);(f=QE(f.url,f.sp,f.s))&&OE(e,new RD(f,h,l,m,null===d||void 0===d?void 0:d.Yi))});
return e};
Uja=function(a,b,c,d){c=void 0===c?0:c;var e=new KE("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=PE(f,b,e.duration),l=QE(f.url,f.sp,f.s);if(l)if(3===h.streamType)OE(e,new qD(l,h,"sq/0"));else{var m=NC(f.init);f=NC(f.index);OE(e,new RD(l,h,m,f))}});
e.isOtf=!0;return e};
PE=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);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new VD(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===RE&&(RE=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(JE&&window.MediaSource&&MediaSource.isTypeSupported)!RE&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!RE&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if((RE||SE)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var l="00",m="08",n="01",p="01",r="01";'video/webm; codecs="vp9.2"'===d&&(l="02",m="10","bt2020"===f.primaries&&(r=n="09"),"smpte2084"===f.l&&(p="16"),"arib-std-b67"===f.l&&(p="18"));d='video/webm; codecs="'+["vp09",l,"51",m,"01",n,p,r,"00"].join(".")+
'"'}}var t;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=new TD(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new fE(a.name,a.audio_track_id,"1"===a.isDefault))}var x;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(x=new Jja(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;l=Number(a.clen);m=Number(a.lmt);c=c&&l?l/c:0;if(b&&a.drm_families){var y={};n=g.q(a.drm_families.split(","));for(p=
n.next();!p.done;p=n.next())p=p.value,y[p]=b[p]}return new ZD(e,d,{audio:u,video:h,Nc:t,Yd:y,Ib:f,Et:c,contentLength:l,lastModified:m,captionTrack:x,streamType:+a.stream_type})};
Tja=function(a){return un(a,function(b){return 3===+b.stream_type})?3:0};
Xja=function(a,b){return a.timeline?tb(a.timeline.B,b):a.ea.length?tb(a.ea,b):[]};
QE=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.yB(a,!0);a.set("alr","yes");c&&(c=xB(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
aka=function(a,b){var c=hD(b,"id");c=c.replace(":",";");var d=hD(b,"mimeType"),e=hD(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(hD(b,"bandwidth"))/8;var f=Number(iD(b,"BaseURL").getAttribute(TE(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(hD(b,"width"));var m=Number(hD(b,"height")),n=Number(hD(b,"frameRate")),p=Yja(hD(b,TE(a,"projectionType")));a:switch(hD(b,TE(a,"stereoLayout"))){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=
2;break a;default:r=0}l=new VD(l,m,n,p,r)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(hD(b,"audioSamplingRate"));var u=Number(hD(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Zja(hD(b,TE(a,"spatialAudioType")));t=new TD(t,u,m);a:{u=hD(b,"lang")||"und";if(m=iD(b,"Role"))if(p=hD(m,"value")||"",Nb($ja,p)){m=u+"."+$ja[p];n="main"===p;a=hD(b,TE(a,"langName"))||u+" - "+p;u=new fE(a,m,n);break a}u=void 0}}if(b=iD(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var x={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new ZD(c,d,{audio:t,video:l,Nc:u,Yd:x,Ib:e,Et:h,contentLength:f})};
Yja=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}};
Zja=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}};
cka=function(a,b){b=void 0===b?"":b;a.state=1;a.Aa=(0,g.P)();return g.bh(Nja(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.Y=c.status;c=c.responseText;var d=new DOMParser;c=md(d,yl(c),"text/xml").getElementsByTagName("MPD")[0];a.V=1E3*jD(hD(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ia){b:{if(c.attributes){d=g.q(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.La=d}a.isLive=Infinity>a.V&&a.isLivePlayback;a.Ga=Number(hD(c,TE(a,"earliestMediaSequence")))||0;if(d=Date.parse(kD(hD(c,TE(a,"mpdResponseTime")))))a.va=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Am(c.getElementsByTagName("Period"),a.eV,a);a.state=2;a.X("loaded");bka(a)}return a}),function(c){if(c instanceof dt){var d=c.xhr;
a.Y=d.status}a.state=3;a.X("loaderror");return Vg(d)})};
dka=function(a,b,c){return cka(new KE(a,b,c),a)};
UE=function(a){return a.isLive&&(0,g.P)()-a.Aa>=a.V};
bka=function(a){var b=a.V;isFinite(b)&&(UE(a)?a.refresh():(b=Math.max(0,a.Aa+b-(0,g.P)()),a.B||(a.B=new g.J(a.refresh,b,a),g.F(a,a.B)),a.B.start(b)))};
eka=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
VE=function(a){return a.C&&(a.l||a.Da)?a.C-(a.l||a.timestampOffset):0};
WE=function(a){return a.I&&(a.l||a.Da)?a.I-(a.l||a.timestampOffset):0};
XE=function(a){if(!isNaN(a.ya))return a.ya;var b=a.i,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ra&&(a.ya=b);return b}if(a.isLive&&(d=b[c],d.Oi))return d.Oi}return NaN};
fka=function(a,b){a=Qb(a.i,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
gka=function(a,b){g.Eb(a.i,function(c){g.Eb(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)})})};
hka=function(a,b){if(!a.i["0"]){var c=new ZD("0","fakesb",{video:new VD(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new gD(new g.yB("http://www.youtube.com/videoplayback"),c,"fake"):new RD(new g.yB("http://www.youtube.com/videoplayback"),c,new MC(0,0),new MC(0,0))}};
YE=function(a,b,c){for(var d in a.i){var e=dE(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=nD(e,b);0<=f&&e.segments.splice(f,1)}}};
TE=function(a,b){return a.Ia?"yt:"+b:a.La+":"+b};
ika=function(a){a.I=0;a.C=0;a.J=0};
$E=function(){this.u=this.i=0;this.l=Array.from({length:ZE.length}).fill(0)};
jka=function(){};
kka=function(a){this.name=a;this.startTimeMs=(0,g.P)();this.i=!1};
lka=function(){this.profiles=new jka};
aF=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new $E),a.profiles[b].Nk(c,d))};
bF=function(){};
mka=function(){var a=g.gz("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
nka=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
oka=function(){this.xb=this.u=this.Da=this.ea=this.V=this.ya=this.Aa=this.Ra=this.La=!1;this.I=this.C=0;this.Ya=!1;this.Ua=!0;this.Za=!1;this.J=0;this.qb=!1;this.fb=Infinity;this.Cb=!1;this.Bb=!0;this.Ga=this.Ia=!1;this.l={};this.jb=this.i=this.va=!1;this.B=this.L=null;this.eb=this.Y=!1};
tB=function(a){if(a.Ra)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.qb&&(b.unshift("1"),b.unshift("1h"));a.u&&b.unshift("h");a.L&&b.unshift(a.L);return b};
pB=function(a){var b=["o","a","A"];a.ya&&(b=["m","M"].concat(b));a.V&&(b=["mac3","MAC3"].concat(b));a.ea&&(b=["meac3","MEAC3"].concat(b));a.La&&(b=["so","sa"].concat(b));!a.xb||a.Da||a.B||b.unshift("a");a.Aa&&b.unshift("ah");a.B&&b.unshift(a.B);return b};
dF=function(a,b,c){b=void 0===b?{}:b;if(mB(a.B,nB.AV1_CODECS)&&mB(a.B,nB.HEIGHT)&&mB(a.B,nB.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=pka();if(d)return b.localPref=d}catch(f){}d=g.U(a.experiments,"html5_av1_thresh");var e=g.U(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.U(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.U(a.experiments,"html5_av1_thresh_arm"))&&ut()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return bE(f)}))&&a.l)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(cF("1",c.fps),cF("1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&(b.hdr=1,d*=.75)}else c=cF("1",30),b.perfCap30=c,d=Math.min(d,c),c=cF("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
fF=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.i={};this.l=this.keySystemAccess=null;this.I=this.J=-1;this.u=null;this.C="";this.L=!!d&&g.S(d,"edge_nonprefixed_eme");this.C=d?g.eF(d,"html5_hdcp_probing_stream_url"):""};
hF=function(a){return a.L?!1:!a.keySystemAccess&&!!gF()&&"com.microsoft.playready"===a.keySystem};
iF=function(a){return"com.microsoft.playready"===a.keySystem};
jF=function(a){return!a.keySystemAccess&&!!gF()&&"com.apple.fps.1_0"===a.keySystem};
kF=function(a){return"com.youtube.fairplay"===a.keySystem};
g.lF=function(a){return"fairplay"===a.flavor};
gF=function(){var a=window,b=a.MSMediaKeys;Bt()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
mF=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.bj&&!g.vt())return ar("45");if(g.Ew||g.ce)return g.S(a,"edge_nonprefixed_eme");if(g.cj)return ar("47");if(g.dj){if(g.S(a,"html5_enable_safari_fairplay"))return!1;if(a=g.U(a,"html5_safari_desktop_eme_min_version"))return ar(a)}return!0};
qka=function(a,b,c,d){var e=wt(),f=(c=e||c&&Bt())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.la(f),g.la(nF.playready)):[].concat(g.la(nF.playready),g.la(f))};
oF=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ha=e;this.i=[];this.l={};this.B={};this.callback=null;this.C=!1;this.u=[];this.initialize(a,!c);this.ma()};
ska=function(a,b){a.callback=b;a.u=[];mF(a.experiments)?pF(a):rka(a)};
pF=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.u);else{var b=a.i[0],c=a.l[b],d=tka(a,c);a.ma();navigator.requestMediaKeySystemAccess(b,d).then(es(function(e){if(!a.isDisposed()){a.ma();c.keySystemAccess=e;if(iF(c)){e=gE();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())uka(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())uka(a,c,f.value)}a.u.push(c);a.Z("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),pF(a)):a.callback(a.u)}}),es(function(){a.ma();
a.C=!a.C&&"widevine"===a.l[a.i[0]].flavor;a.C||a.i.shift();pF(a)}))}};
uka=function(a,b,c){a.Z("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
tka=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};iF(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")&&
e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.Z("html5_query_sw_secure_crypto_for_android")&&(Ht()||tt())&&(a.Ha("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
rka=function(a){if(gF()&&g.dj)a.ma(),a.u.push(new fF("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=vka(),c=g.fb(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.ma(),a.u.push(a.l[c])):a.ma();a.i=[]}a.callback(a.u)};
vka=function(){var a=gF();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=gE();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
wka=function(){this.i=0};
xka=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=hs(b||"","&");var c={};g.Cb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.S=function(a,b){return"true"===a.flags[b]};
g.U=function(a,b){return Number(a.flags[b])||0};
g.eF=function(a,b){return(a=a.flags[b])?a.toString():""};
qF=function(a,b,c){this.experiments=a;this.ea=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.S(this.experiments,"html5_disable_protected_hdr");this.l=!1;this.V=g.S(this.experiments,"html5_disable_vp9_encrypted");a=g.Ha("cast.receiver.platform.getValue");this.u=!this.I&&a&&a("max-video-resolution-vpx")||null};
iB=function(a,b,c){c=void 0===c?1:c;var d=b.tc();if("0"===d||g.S(a.experiments,"html5_use_media_capability")&&b.isSupported)return!0;var e=b.mimeType;if(bE(b)&&a.L)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(mB(a,nB.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.bj?ar(53):g.cj&&ar(64)))return"dopus";var f=c;f=void 0===f?1:f;c=
{};b.video&&(b.video.width&&(c[nB.WIDTH.name]=b.video.width),b.video.height&&(c[nB.HEIGHT.name]=b.video.height),b.video.fps&&(c[nB.FRAMERATE.name]=b.video.fps*f),b.video.l&&(c[nB.EOTF.name]=b.video.l),b.Ib&&(c[nB.BITRATE.name]=8*b.Ib*f),"("===b.i&&(c[nB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[nB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.i&&(c[nB.CHANNELS.name]=b.audio.i);a.l&&$D(b)&&(c[nB.EXPERIMENTAL.name]=
"allowed");f=g.q(Object.keys(nB));for(var h=f.next();!h.done;h=f.next()){h=nB[h.value];var l;if(l=c[h.name])(l=h===nB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.S(a.experiments,"html5_ignore_h264_framerate_cap")&&h===nB.FRAMERATE&&("H"===l.i||"h"===l.i)),l=!(l||h===nB.DECODETOTEXTURE&&!g.S(a.experiments,"html5_decode_to_texture_cap"));if(l)if(mB(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(aE(b)&&h===nB.EOTF)return"dvp92"}!g.S(a.experiments,
"disable_html5_cast_hdcp_filter2")&&a.I&&b.video&&1080<b.video.i&&b.Yd&&(e+="; hdcp=2.2");return"227"!==d||g.S(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.S(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
rF=function(){var a=tt()&&!ar(29),b=rt("google tv")&&rt("chrome")&&!ar(30),c=wt();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
yka=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)&&iB(a,e,c)){d=e.video.i;break}return d};
g.sF=function(a,b){b=void 0===b?!1:b;return rF()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(gE(),"application/x-mpegURL")?!0:!1};
mB=function(a,b){b.name in a.C||(a.C[b.name]=zka(a,b));return a.C[b.name]};
zka=function(a,b){if(a.u)return!!a.u[b.name];if(b===nB.BITRATE&&g.S(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===nB.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)};
tF=function(){g.Q.call(this);this.items={}};
Aka=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.l=new Uint8Array(a.buffer,16)};
uF=function(a){try{return g.xd(a)}catch(b){return null}};
Bka=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?uF(b.clientKey):null;var c=b.encryptedClientKey?uF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.P)():null;a&&c&&d&&(this.i=new Aka(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=uF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
vF=function(a){this.i=this.l=0;this.alpha=Math.exp(Math.log(.5)/a)};
wF=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=Cka(this);this.u=c;this.C=d};
Cka=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
xF=function(a,b){if(!a.l&&0===a.valueIndex)return 0;a.B&&(g.zb(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};
Eka=function(a){var b=new wka;this.policy=a;this.ea=b;this.V=this.Y=0;this.C=-1;this.L=this.B=yF();this.J=new wF(4,1,.6,.4);this.i=new wF(10,1,.5,.4);this.u=a.i?new vF(a.l):new wF(a.l,20,.5,.4);this.I=new wF(5,1,.25);this.l=new wF(30,1,.5);a=Dka();this.u.Lg(this.policy.C,0<a.byterate?a.byterate:this.policy.u);0<a.delay&&this.J.Lg(1,Math.min(a.delay,2));0<a.stall&&this.i.Lg(1,a.stall);0<a.init&&(this.L=Math.min(a.init,this.L));this.C=yF()};
zF=function(a){a=a.J.cg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Fka=function(a,b,c){isNaN(c)||(a.V+=c);isNaN(b)||(a.Y+=b)};
AF=function(a){a=a.u.cg();return 0<a?a:1};
BF=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=AF(a);d=1/((a.i.cg()||0)+1/d);var e=a.I.cg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+zF(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((xF(a.l,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
CF=function(a){return{delay:zF(a),stall:a.i.cg()||0,byterate:AF(a),init:a.L}};
DF=function(a){-1<a.C&&3E4<yF()-a.C&&(Gka(CF(a)),a.C=yF())};
Hka=function(a){return 4E3<=yF()-a.B};
Ika=function(){this.l=17;this.u=13E4;this.C=.5;this.B=this.i=!1};
Jka=function(a,b,c){var d=new Ika;a&&(d.i=!0,d.C=.1);g.S(c,"html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.u=b/8);d.B=480<=EF();return d};
Lka=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.Ll=b;this.l={};this.u=this.i=0;this.B=new g.J(function(){Kka(c)},1E4);
g.F(this,this.B)};
FF=function(a,b){Mka(a,b);return a.values[b]&&a.Ll[b]?a.values[b]/Math.pow(2,a.i/a.Ll[b]):0};
Mka=function(a,b){a.values[b]||(b=Nka(),a.values=b.values||{},a.Ll=b.halfLives||{},a.l=b.values?Object.assign({},b.values):{})};
Kka=function(a){var b=Nka();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]=FF(a,e);a.l=c}Oka(a.l,a.Ll)};
GF=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
HF=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
IF=function(a,b){return void 0===b||null===b?a:Number(b)};
JF=function(a,b){return void 0===b||null===b?a:b.toString()};
Pka=function(a){if(!a)return null;var b=a.split("x");if(2!==b.length)return null;a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)||0>=a*b?null:new g.Tf(a,b)};
KF=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Qka))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
LF=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Zr("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
yG=function(a,b,c){var d,e,f;g.E.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ce=this.Tb=this.Aa=this.Be=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Gd=NaN;this.Cb=!1;this.Za=0;this.Hi=this.Pj=!1;this.Ui=!0;this.Nh=this.hc=!1;this.Yi=null;this.Zk=Hx(4);a=a?g.Vb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new xka(b?b.serializedExperimentIds:
a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Ya=b?b.serializedForcedExperimentIds:JF("",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:JF("",a.csp_nonce);Dz=this.Z("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(H){l=""}this.Ub=l;this.Zc=(l=window.location.ancestorOrigins)?Array.from(l):[];l=!this.Z("web_player_context_config_embeds_fields_killswitch");this.l=GF(!1,
b&&l?b.isEmbed:a.is_embed);b&&b.device?Rka(this,b.device):(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||MF(this)&&b.loaderUrl?b.loaderUrl||"":this.Ub:this.loaderUrl=this.l||MF(this)&&a.loaderUrl?JF("",a.loaderUrl):this.Ub;this.Z("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=JF("",a.embedsTokenValue));this.u=Ez(this.loaderUrl,Ska,Tka);this.dl=Ria(this.loaderUrl);
this.La=GF(!1,a.privembed);this.protocol=0===this.Ub.indexOf("http:")?"http":"https";this.Da=Gz((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Gz(this.Ub)||this.protocol+"://www.youtube.com/";this.Ia=Uka(this,b?b.eventLabel:a.el);xu();var m=null,n=b?b.playerStyle:a.ps,p=g.jb(Vka,n);!n||p&&!this.u||(m=n);this.playerStyle=m;this.L=(this.C=g.jb(Vka,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.bl=!this.L;this.va=GF(!1,a.disableplaybackui);
this.Xb=this.Z("variable_playback_rate")?!0:gE().defaultPlaybackRate?NF||g.Gt||OF?g.cj&&ar("20")||g.bj&&ar("4")||g.Vk&&ar("11")||Ct():!(g.Vk&&!rt("chrome")||NF||rt("android")||rt("silk")):!1;this.Zj=GF(!1,a.enable_faster_speeds);this.i=GF("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.al=Wka(this);this.jb="3"===this.controlsType||this.i||GF(!1,a.use_media_volume);this.Y=lE();this.ql=g.PF;this.Pi=GF(!1,b&&l?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=
GF(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.Z("embeds_pfp_chazal_ui_killswitch"));var r;b?void 0!==b.hideInfo&&(r=!b.hideInfo):r=a.showinfo;this.Nj=g.QF(this)&&!this.Pi||GF(!RF(this)&&!SF(this)&&!this.C,r);this.Ri=b?!!b.mobileIphoneSupportsInlinePlayback:GF(!1,a.playsinline);r=this.i&&TF&&null!=UF&&0<UF&&2.3>=UF;m=b?b.useNativeControls:a.use_native_controls;n=this.i&&!this.Z("embeds_enable_mobile_custom_controls");m=VF(this)||!r&&GF(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType=
"0"!==n&&0!==n?m:"0";this.J=(this.Z("embeds_enable_mobile_custom_controls")||"1"===this.controlsType&&!this.Z("embeds_use_native_controls_killswitch"))&&g.QF(this)&&this.i;this.Pc=this.i;this.color=HF("red",b&&l?b.progressBarColor:a.color,Xka);this.jl="3"===this.controlsType||GF(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.eb=!this.l;this.Oj=(m=!this.eb&&!SF(this)&&!this.L&&!this.C&&!RF(this))&&!this.jl&&"1"===this.controlsType;this.Bb=g.WF(this)&&m&&"0"===this.controlsType&&
!this.Oj;this.vl=this.ll=r;this.Vi=XF&&!g.Wd(601)?!1:!0;this.ck=this.l||!1;this.wc=SF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=JF("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||GF(!0,t);r=!0;b&&b.disableMdxCast&&(r=!1);this.Gg=this.Z("enable_cast_for_web_unplugged")&&g.YF(this)&&r||this.Z("enable_mdx_module_for_music_web")&&g.ZF(this)&&r||t&&r&&"1"===this.controlsType&&!this.i&&(SF(this)||
g.WF(this)||g.$F(this))&&!g.aG(this)&&!rG(this);this.ul=jE()||kE();t=b?!!b.supportsAutoplayOverride:GF(!1,a.autoplayoverride);this.Zg=!this.i&&!rt("nintendo wiiu")&&!rt("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:GF(!1,a.mutedautoplay);r=this.Z("embeds_enable_muted_autoplay")&&g.QF(this);this.Lc=t&&r&&this.Y&&!VF(this);t=(SF(this)||RF(this))&&"blazer"===this.playerStyle;this.Hg=b?!!b.disableFullscreen:!GF(!0,a.fs);this.Ua=!this.Hg&&(t||rx());this.Kh=this.Z("uniplayer_block_pip")&&(tt()&&ar(58)&&
!Ht()||Et);t=g.QF(this)&&!this.Pi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.xb=t||GF(!this.C,u);this.Mj=GF(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.I=Ht()&&0<UF&&4.4>=UF?"_top":"_blank";this.Ec=g.$F(this);this.Tg=GF("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u=
"gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.ya=u;this.ea=JF("",b&&l?b.authorizedUserIndex:a.authuser);this.Fi=g.QF(this)&&(this.La||g.S(this.experiments,"embeds_web_enable_hiding_login_buttons")&&(!ot()||Ht()||Ft()));var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Rj=(!this.Fi||!!this.ea)&&GF(!this.L,this.u?x:void 0);
this.He=b?!!b.disableKeyboardControls:GF(!1,a.disablekb);this.loop=GF(!1,a.loop);this.pageId=JF("",!this.Z("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.rl=GF(!0,a.canplaylive);this.Qj=GF(!1,a.livemonitor);this.disableSharing=GF(this.C,b?b.disableSharing:a.ss);this.Wi=Pka(b&&this.Z("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:GF(!1,a.mute);this.Vg=!this.mute&&GF("0"!==this.controlsType,a.store_user_volume);
x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:HF(void 0,x,sG);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":JF("",a.cc_lang_pref);x=HF(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,sG);"3"===this.controlsType&&2===x&&(x=3);this.Ra=x;this.Xd=b?b.hl||"en_US":JF("en_US",a.hl);this.region=b?b.contentRegion||"US":JF("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":JF("en",a.host_language);this.Xj=!this.La&&Math.random()<
g.U(this.experiments,"web_player_api_logging_fraction");this.Ga=!this.La;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:GF(!0,a.deviceHasDisplay);this.Gd=IF(this.Gd,a.ismb);this.Xi=Yka(this,a);tG(this,a,!0);this.V=new tF;g.F(this,this.V);this.Jg=Zka(this,a,b);this.Lj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new qF(this.experiments,this.Z("html5_force_hfr_support")?!0:uG(this)||xt()||zt()||$ka(this),g.bj&&g.Wd(56)||g.cj&&g.Wd(54)||$ka(this));this.schedule=
new Eka(Jka(g.vG(this),this.Gd,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:GF(!1,a.enable_safety_mode);x=this.va?!1:SF(this)&&"blazer"!==this.playerStyle;var y;b&&l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Lb=GF(x,!this.L&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:GF(!1,a.send_visitor_id_header);this.fb=(0,g.P)();var B;"docs"===this.playerStyle&&(b&&l?B=b.disableNativeContextMenu:B=
a.disable_native_context_menu);this.disableNativeContextMenu=GF(!1,B);this.bk=uG(this)&&this.Z("enable_skip_intro_button");this.embedConfig=JF("",b&&l?b.serializedEmbedConfig:a.embed_config);this.Ig=GF(!1,a.full_window);this.qb=!g.YF(this)&&!wG(this)&&!g.aG(this)&&!rG(this)&&!0;this.livingRoomAppMode=HF("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,ala);this.transparentBackground=b?!!b.transparentBackground:GF(!1,a.transparent_background);
this.useFastSizingOnWatchDefault=GF(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:GF(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:GF(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:GF(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=GF(!1,a.showbackbutton);this.Ui=null!==(f=a.show_loop_video_toggle)&&
void 0!==f?f:!0;this.il=1E-4>Math.random();this.Mg=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Bka(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.ol=c;this.ac=new Lka;g.F(this,this.ac);this.Nh=GF(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.O("DATASYNC_ID",void 0);this.fl=g.O("LOGGED_IN",!1);this.Sj=(null===b||void 0===
b?void 0:b.allowWoffleManagement)||!1;this.Jh=0;if(this.Z("html5_generate_session_po_token")){a={fm:"O43z0dpjhgX20SCx4KAo"};try{this.bh=pea(a);xG(this);var G=g.U(this.experiments,"html5_session_po_token_interval_time");0<G&&(this.Ij=Vs(function(){xG(h)},G))}catch(H){H instanceof Error&&g.cy(H)}}};
tG=function(a,b,c){c=void 0===c?!1:c;a.Tb=JF(a.Tb,b.video_id);a.Aa=JF(a.Aa,b.eventid);a.Aa&&(Gx=a.Aa);for(var d=[],e=g.q(Object.keys(bla)),f=e.next();!f.done;f=e.next()){f=bla[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.il&&(d.sort(),g.cy(new g.Pv("Player client parameters changed after startup",d)));a.userAge=IF(a.userAge,b.user_age);a.userDisplayImage=JF(a.userDisplayImage,b.user_display_image);g.Iz(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=JF(a.userDisplayName,b.user_display_name);a.Be=JF(a.Be,b.user_gender);a.csiPageType=JF(a.csiPageType,b.csi_page_type);a.csiServiceName=JF(a.csiServiceName,b.csi_service_name);a.Tg=GF(a.Tg,b.enablecsi);a.pageId=JF(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
Uka=function(a,b){var c="detailpage";"adunit"===b?c=a.l?"embedded":"detailpage":"embedded"===b||a.u?c=HF(c,b,dla):b&&(c="embedded");return c};
Zka=function(a,b,c){var d=c?c.innertubeApiKey:JF("",b.innertube_api_key),e=c?c.innertubeApiVersion:JF("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:JF("",b.innertube_context_client_version);return{innertubeApiKey:g.O("INNERTUBE_API_KEY",void 0)||d,innertubeApiVersion:g.O("INNERTUBE_API_VERSION",void 0)||e,iJ:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),jJ:a.deviceParams.c,innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,lJ:a.hostLanguage,kJ:a.region,
mJ:g.O("INNERTUBE_HOST_OVERRIDE",void 0)||"",oJ:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),nJ:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
zG=function(a,b){return!a.C&&tt()&&ar(55)&&"3"===a.controlsType&&!b};
g.AG=function(a){a=ela(a.Da);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.BG=function(a){return g.aG(a)?"music.youtube.com":g.AG(a)};
CG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
DG=function(a){return SF(a)&&!g.YF(a)};
VF=function(a){return XF&&!a.Ri||rt("nintendo wiiu")||rt("nintendo 3ds")?!0:!1};
rG=function(a){return"area120-boutique"===a.playerStyle};
g.aG=function(a){return"music-embed"===a.playerStyle};
g.vG=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
fla=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
MF=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
$ka=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.EG=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
uG=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.FG=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
wG=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.YF=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
GG=function(a){return"TV_UNPLUGGED_CAST"===a.deviceParams.c};
HG=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.IG=function(a){return g.YF(a)||GG(a)||HG(a)};
g.ZF=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.JG=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
gla=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.KG=function(a){return g.FG(a)&&a.Z("web_player_i_see_captions")};
LG=function(a){return a.Z("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.FG(a)};
Wka=function(a){if(a.i)return!a.C;var b=Number(Date.now()/1E3),c=g.iv.getInstance();return a.Z("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.NG=function(a){return(a.deviceHasDisplay&&g.bj&&!Et&&"3"!==a.controlsType?g.Gt?a.l&&g.Wd(51):!0:!1)||(a.deviceHasDisplay&&g.cj&&!Et&&"3"!==a.controlsType?g.Gt?a.l&&g.Wd(48):g.Wd(38):!1)||(a.deviceHasDisplay&&g.Vk&&!Et&&"3"!==a.controlsType?g.Gt?a.l&&g.Wd(37):g.Wd(27):!1)||a.deviceHasDisplay&&g.MG&&!Dt()&&g.Wd(11)||a.deviceHasDisplay&&g.dj&&g.Wd("604.4")};
hla=function(a){if(g.WF(a)&&TF)return!1;if(g.cj){if(!g.Wd(47)||!g.Wd(52)&&g.Wd(51))return!1}else if(g.dj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
SF=function(a){return"detailpage"===a.Ia};
g.WF=function(a){return"embedded"===a.Ia};
OG=function(a){return"leanback"===a.Ia};
RF=function(a){return"adunit"===a.Ia||"gvn"===a.playerStyle};
g.$F=function(a){return"profilepage"===a.Ia};
g.QF=function(a){return a.l&&g.WF(a)&&!RF(a)&&!a.C};
Yka=function(a,b){if(g.eF(a.experiments,"html5_qoe_intercept"))return g.eF(a.experiments,"html5_qoe_intercept");a.bl?(b=b.vss_host||"s.youtube.com",a.Z("www_for_videostats")&&"s.youtube.com"===b&&(b=ela(a.Da)||"www.youtube.com")):b="video.google.com";return b};
PG=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.cy(new g.Pv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.QG=function(a){var b=g.BG(a);!a.Z("yt_embeds_disable_new_error_lozenge_url")&&ila.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Rka=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver=
b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)};
xG=function(a){if(a.Z("html5_generate_session_po_token"))if(!a.bh)g.cy(new g.Pv("Failed to update session PO token","webPo not initialized"));else if(a.bh.isReady()){var b=g.O("VISITOR_DATA",void 0);b=a.bh.Cy({TH:a.fl?a.datasyncId:b});a.Rg=g.$d(b,2)}};
ela=function(a){var b=g.ji(a);return(a=Number(g.ii(4,a))||null)?b+":"+a:b};
RG=function(a){this.i=a};
SG=function(a,b,c){if(c)return ht();var d={};c=gE();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.kf().mimeType)){var f=e.i.ib().quality;if(!d[f]||d[f].kf().Oe())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Cb(WD,function(l){(l=d[l])&&h.push(l)});
return h.length?it(h):ht()};
jla=function(a,b,c){this.u=a;this.l=b;this.cpn=c;this.B=0;this.i=""};
kla=function(a,b,c){a.cpn&&(b=g.ui(b,{cpn:a.cpn}));c&&(b=g.ui(b,{p9:c}));return b};
lla=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
mla=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)};
nla=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.Nc=void 0===p?null:p;this.audioChannels=r;this.u=(null===l||void 0===l?void 0:l.split(","))||[];this.l=m||null;this.Yd=n||"";this.i=""};
ola=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.q(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var l=f.type.match(/codecs="([^"]*)"/);
l=l?l[1]:"";var m=null;f.audio_track_id&&(m=new fE(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new nla(f.itag,f.url,l,+f.width,+f.height,+f.fps,+f.bitrate,f.audio_itag,n?h[n]:void 0,f.drm_families,m,+f.audio_channels);e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
TG=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.l=null};
pla=function(a,b){if(!(Et||Bt()||wt()))return null;a=ola(b,g.S(a.experiments,"html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},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()){var h=f.value;h.Nc&&(f=h.Nc.getId(),c[f]||(h=new YA(f,h.Nc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
ula=function(a,b,c,d,e,f){if(!(Et||Bt()||wt()))return ht();var h=[],l=qla(c);c=ola(c,g.S(a.experiments,"html5_filter_fmp4_in_hls"),a.B.B,h);if(!c)return f("noplst"),ht();rla(c);var m={},n=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),p;m=[];for(var r=[],t=[],u=null,x="",y=g.q(Object.keys(c)),B=y.next();!B.done;B=y.next())if(B=B.value,!g.S(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==B&&"373"!==B){B=g.q(c[B]);for(var G=B.next();!G.done;G=B.next())if(G=G.value,G.width){for(var H=
g.q(G.u),I=H.next();!I.done;I=H.next())if(I=I.value,c[I]){G.i=I;break}G.i||(G.i=sla(c,G));if(H=c[G.i])if(m.push(G),"fairplay"===G.Yd&&(p=n),I="","PQ"===G.l?I="smpte2084":"HLG"===G.l&&(I="arib-std-b67"),I&&(x=I),t.push(tla(H,[G],e,G.itag,G.width,G.height,G.fps,l,void 0,void 0,p,I)),!u||G.width*G.height*G.fps>u.width*u.height*u.fps)u=G}else r.push(G)}else h.push(B),h.push("disdrmhfr");t.reduce(function(L,T){return T.kf().Ak()&&L},!0)&&(p=n);
c=u||{};t.push(tla(r,m,e,"93",void 0===c.width?0:c.width,void 0===c.height?0:c.height,void 0===c.fps?0:c.fps,l,"auto",Math.max(d,0),p,x));h.length&&f(h.join("."));return SG(a.B,t,zG(a,b))};
tla=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,u="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,u||(u=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,u=y.itag);d=new ZD(d,"application/x-mpegURL",{audio:new TD(0,t,null,u),video:new VD(e,f,h,null,void 0,m,void 0,r),Yd:p});a=new jla(a,b,c);a.B=n?n:1369843;return new TG(d,a,l)};
qla=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};
sla=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.Yd===b.Yd&&!e.audioChannels)return d}return""};
rla=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]};
UG=function(a,b){this.i=a;this.l=b};
vla=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 g.yB(h.url,!0);if(h.s){var l=h.sp,m=xB(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=eE(h.type,h.quality,h.itag,h.width,h.height);e.push(new UG(h,f))}}return SG(a.B,e,zG(a,b))};
VG=function(a,b){this.i=a;this.l=b};
wla=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=eE(c.type,"medium","0");b.push(new VG(d,c.url))}});
return b};
xla=function(a,b,c){c=wla(c);return SG(a.B,c,zG(a,b))};
yla=function(){var a=g.Ha("ytDebugData.callbacks");a||(a={},g.Ga("ytDebugData.callbacks",a,void 0));return a};
XG=function(){void 0===WG&&(WG=g.tr());return WG};
YG=function(){var a=XG();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
zla=function(a){var b=XG();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
ZG=function(a){return YG()[a]||0};
$G=function(a,b){var c=YG();b!==c[a]&&(0!==b?c[a]=b:delete c[a],zla(c))};
Ala=function(a){var b=YG();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]):2!==b[c]&&(b[c]=4);Object.assign(b,a);zla(b);JSON.stringify(b);return b};
Bla=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(cia())})})};
g.aH=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(Cla().open())})})};
Dla=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.aH)(),2);d=e.l;return e.return(jw(d,["index","media","captions"],"readwrite",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");f=[lw(f,"index").delete(h),lw(f,"media").delete(h),lw(f,"captions").delete(h)];return Yv.all(f).then(function(){})}))})})};
Gla=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,(0,g.aH)(),2);c=d.l;return d.return(jw(c,["index","media"],"readwrite",function(e){var f={};return qw(lw(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=Yv.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=Ela(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h.delete().then(function(){});
return Yv.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=Ala(h);return tw(lw(e,"media"),function(r){var t=r.getKey().match(Fla);t&&h[t[1]]||lw(e,"media").delete(r.getKey());return r.continue()}).then(function(){return p})})}))})})};
Hla=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,(0,g.aH)(),2);e=f.l;return g.w(f,jw(e,["captions"],"readwrite",function(h){var l=[];h=lw(h,"captions");for(var m=0;m<b.length;m++){var n=kw(h,b[m],a+"|"+b[m].metadata.vss_id);l.push(n)}return Yv.all(l)}),0)})})};
bH=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p,r,t;return g.z(l,function(u){switch(u.i){case 1:m=ZG(a);if(4===m)return u.return(Promise.resolve(4));n=c.lastModified||"0";return g.w(u,(0,g.aH)(),2);case 2:return p=u.l,ta(u,3),g.w(u,jw(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC"},function(x){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");y=kw(lw(x,"media"),f,y)}else y=Yv.resolve(void 0);var B=Ila(a,b.isVideo()),G=Ila(a,!b.isVideo()),
H={fmts:Jla(d),format:c||{}};B=kw(lw(x,"index"),H,B);var I=-1===d.downloadedEndTime;x=I?lw(x,"index").get(G):Yv.resolve(void 0);return Yv.all([x,y,B]).then(function(L){L=g.q(L).next().value;var T=ZG(a);4!==T&&I&&void 0!==L&&Ela(L.fmts)&&(T=1,$G(a,T));return T})}),5);
case 5:return u.return(u.l);case 3:r=va(u);t=ZG(a);if(4===t)return u.return(t);$G(a,4);throw r;}})})};
Kla=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.aH)(),2);d=e.l;return e.return(jw(d,["index"],"readonly",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");return lw(f,"index").getAll(h).then(function(l){return l.map(function(m){return m?m.format:{}})})}))})})};
Lla=function(a,b,c,d){return g.D(this,function f(){var h;return g.z(f,function(l){if(1==l.i)return g.w(l,(0,g.aH)(),2);h=l.l;return l.return(jw(h,["media"],"readonly",function(m){var n=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return lw(m,"media").get(n)}))})})};
Mla=function(a){return g.D(this,function c(){return g.z(c,function(d){$G(a,0);return d.return(Dla(a))})})};
Nla=function(){return g.D(this,function b(){return g.z(b,function(c){var d=XG();d&&d.remove("yt-player-lv");return g.w(c,Cla().delete(),0)})})};
Ela=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Ila=function(a,b){return""+a+"|"+(b?"v":"a")};
Jla=function(a){var b={};return is((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Ola=function(a){var b={},c={};a=g.q(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(Fla)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.q(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
Pla=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=uF(a.ustreamerConfig))};
g.cH=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.eH=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.dH(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.i,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.fH=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.dH=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("")};
Tla=function(a,b,c,d){a||(a=b&&Qla.hasOwnProperty(b)&&Rla.hasOwnProperty(b)?Rla[b]+"_"+Qla[b]:void 0);b=a;if(!b)return null;a=b.match(Sla);if(!a||5!==a.length)return null;if(a=b.match(Sla)){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};
hH=function(a){for(var b={},c=g.q(Object.keys(gH)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[gH[d]];e&&(b[d]=e)}return b};
Ula=function(a,b){for(var c={},d=g.q(Object.keys(gH)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Iz(f)&&(c[gH[e]]=f)}return c};
iH=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(Vla)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Vla[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Wla(h.url);g.Iz(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Wla(a.url),g.Iz(a)&&(b["maxresdefault.jpg"]=a));return b};
Wla=function(a){return a.startsWith("//")?"https:"+a:a};
Yla=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Xla[a];return null};
jH=function(a){return a&&a.baseUrl||""};
kH=function(a){a=g.ls(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};
Zla=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ia=b)};
ama=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=$la(d.baseUrl);if(!e)return;d=new g.cH({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Yz(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.hB=b.audioTracks||[];a.yJ=b.defaultAudioTrackIndex||0;a.iB=b.translationLanguages?g.Qe(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Yz(f.languageName)}}):
[];
a.jl=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
bma=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},js(h))});
d=g.q(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Jj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Jj:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
Jj:0===f?5:7})}}};
cma=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
dma=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)};
jma=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=js(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=ema[c]);(c=a.projectionType)&&(b.projection_type=fma[c]);(c=a.stereoLayout)&&(b.stereo_layout=gma[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=hma[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(lH[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=Yla(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=ima[a])&&(b.primaries=a);return g.si(b)};
mH=function(a){g.Q.call(this);this.i=null;this.u=new xr;this.i=null;this.J=new Set;this.C=a||""};
kma=function(a,b,c){for(c=nH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.oH(d,b)))return d;c--}return g.oH(a.levels[0],b)};
mma=function(a,b,c){c=nH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),wr(d.u,f,{KJ:f,WJ:e}))}lma(a)};
lma=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=nma(a,b)}};
nma=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=oma(a.levels[b.KJ],b.WJ);c.onload=function(){var d=b.KJ,e=b.WJ;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);lma(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.uC()-1);e=[e,d];a.X("l",e[0],e[1])};
return c};
g.pH=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};
oma=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.ui(c,{sigh:a.signature}));return Mz(c)};
g.oH=function(a,b){b>=a.vA()&&a.Ys();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Ys()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:oma(a,c),column:b,columns:h,row:e,rows:d,Ey:a.width*h,Dy:a.height*d}};
qH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;mH.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)};
pma=function(a,b,c){return(a=a.levels[b])?a.ww(c):-1};
nH=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.pH.call(this,a,b,c,0);this.l=null;this.I=d?2:0};
sH=function(a,b,c,d){qH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].TF(c)};
qma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.ui(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
rma=function(a){navigator.mediaCapabilities?tH(a.videoInfos).then(function(){return a},function(){return a}):it(a)};
tH=function(a){var b=navigator.mediaCapabilities;if(!b)return it(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.Ib||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.Ib||128E3,samplerate:e.sampleRate||44100}}):d=null,e=b.decodingInfo(d);return e});
return Yg(c).then(function(d){for(var e=0;e<d.length;e++)a[e].u=d[e].smooth,a[e].l=d[e].powerEfficient,a[e].isSupported=d[e].supported;return a},function(){return a})};
g.vH=function(a,b){g.Q.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.eH=this.fl=this.adQueryId=this.dl=null;this.dB={start:NaN,end:NaN};this.Uq="";this.Yd=null;this.kB=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Da="";this.gB=this.il=!1;this.JM=null;this.Hi=this.Ce=this.Pi=this.YD=!1;this.J=null;this.gH=this.Ig=!1;this.Yi=NaN;this.Pj=!1;this.VA=0;this.bH=!1;this.Gp={};this.pA=this.cycToken=null;this.author="";this.Eq=0;this.Lj=
!1;this.Dq=null;this.QA=[];this.No=this.JJ=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Tb=this.Pc="";this.contentCheckOk=!1;this.endSeconds=this.Bb=0;this.cH=this.hc=this.l=this.ZB=null;this.SC="";this.Y=!1;this.Ij=this.Zk=0;this.fB=this.pipable=this.zk=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Cb=this.isPrivate=this.isListed=this.fD=this.jH=this.mutedAutoplay=this.Jk=!1;this.hE="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=
this.isLiveDefaultBroadcast=this.pD=this.Ui=this.Xe=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Ld=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.qb=0;this.reloadReason="";this.zD=this.IM=this.He=!1;this.keywords={};this.jb="";this.Wi=0;this.wq=!1;this.liveChunkReadahead=NaN;this.Vg=null;this.Oq=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.ri=[];this.ea=[];this.racyCheckOk=!1;this.IF=
{};this.Ov=0;this.u=null;this.autonavState=1;this.wH=null;this.shortDescription="";this.eb=this.mA=!1;this.rq=this.Ub=this.startSeconds=0;this.xq=this.tI=this.yq=uH;this.suggestions=null;this.YA=this.aB=void 0;this.Nh=null;this.oA=!1;this.expandedSubtitle=this.vl=this.subtitle=this.title="";this.Jg=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.jB=void 0;this.bl=[];this.hlsFormats=this.Fi="";this.wp=this.qq=this.Hg=this.xb=this.Ra=this.Qj=this.bp=null;this.Sh="vvt";this.wc=!1;this.UA=
null;this.BH="";this.ck=NaN;this.zo=this.qo=this.po=this.oo=this.jo=this.bk=this.Yj=this.xo=this.Zj=this.uo="";this.Ri=null;this.XG=!1;this.L={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.cL=this.iK=NaN;this.Xb=this.Vi=this.Lc=this.pM=this.rL=!1;this.Rj=!0;this.Lb={};this.captionTracks=[];this.hB=[];this.yJ=0;this.iB=[];this.jl=!1;this.Mj=new YA("und",new fE("Default","und",!0));this.gE=0;this.I=null;this.Zg=[];this.FB=!1;this.Ec=[];this.zq=this.Xd="";this.slotPosition=-1;
this.breakType=0;this.watchNextResponse=this.playerResponse=this.SJ=this.Tp=this.Nj=this.Sg=this.vB=this.eB=this.cB=null;this.ql=!1;this.V=null;this.isInlinePlaybackNoAd=this.Mg=this.useCobaltWidevine=this.ZG=this.Bp=this.ya=!1;this.JG=this.LG=NaN;this.defraggedFromSubfragments=this.wk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.ut=this.SA=this.Be=!1;this.interstitials=[];this.C=this.kD=!1;this.Xi=this.zF=this.Ga="";this.Ep=null;this.Vc="";this.Za=this.wL=!1;this.yF=this.Xj=
"";this.uF=this.lF=this.eD=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Sj=!1;this.Kh=this.Gg=!0;this.errorDetail=this.userGenderAge="";this.qA=this.rA=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.di=this.errorReason=this.errorCode=null;this.ol=this.ll="";this.rl=!1;this.aH=this.PG=this.NG=this.jg=this.je=0;this.fetchType=
null;this.JF=!0;this.fH=void 0;this.iH=-1;this.Jh=this.ac=!1;this.Zc=null;this.fb="";this.Tg=!1;this.Z("web_player_ux_module_wait")&&this.B.qb&&this.ea.push("ux");this.ac=this.Z("web_new_autonav_countdown");this.Jh=this.Z("web_new_big_thumbnail_endscreen");sma(this,b)};
g.yH=function(a,b,c,d){b&&b.cpn&&g.cy(new g.Pv("CPN provided in VideoData update",{o9:b.cpn,Pf:a.clientPlaybackNonce,e9:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.di=null);c?(LF(b),sma(a,b),wH(a)&&xH(a)):(b=b||{},tma(a,b),uma(a,b),vma(a,b),a.X("dataupdated"))};
vma=function(a,b){a.fflags=JF(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Da=Mz(c));a.il=GF(a.il,b.iv_ads_only);a.gB=GF(a.gB,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.wR=c;a.isPharma=GF(a.isPharma,b.is_pharma);a.author=JF(a.author,b.author);a.Pc=$la(b.ttsurl)||a.Pc;a.Lj=GF(a.Lj,b.cc_asr);a.Tb=JF(a.Tb,b.channel_path);a.channelBanner=JF(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.wg=JF(a.wg,c);a.videoCountText=JF(a.videoCountText,b.video_count_text);a.autonavState=
HF(a.autonavState,b.autonav_state,wma);a.clientPlaybackNonce=JF(a.clientPlaybackNonce,b.cpn);a.subscribed=GF(a.subscribed,b.subscribed);a.rawViewCount=IF(a.rawViewCount,b.view_count);a.shortViewCount=JF(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=JF(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=JF(a.lengthText||"",b.lengthText);a.gy=JF(a.gy||"",b.gy);a.Dt=JF(a.Dt||"",b.Dt);a.title=JF(a.title,b.title);a.subtitle=JF(a.subtitle,b.subtitle);a.vl=JF(a.vl,b.expanded_title);
a.expandedSubtitle=JF(a.expandedSubtitle,b.expanded_subtitle);a.Uq=JF(a.Uq,b.aria_label);a.ypcPreview=JF(a.ypcPreview,b.ypc_preview);a.WA=JF(a.WA,b.ypc_origin);a.wc=GF(a.wc,b.ypc_is_premiere_trailer);a.Xj=JF(a.Xj,b.ypc_clickwrap_message);a.paygated=GF(a.paygated,b.paygated);a.XG=GF(a.XG,b.requires_purchase);a.showShareButton=!GF(!a.showShareButton,b.ss);a.Gg=GF(a.Gg,b.showwatchlater);a.Kh=GF(a.Kh,b.shownotifybutton);a.Sj=GF(a.Sj,b.copy_share);if(c=b.keywords)a.keywords=xma(c.split(","));if(c=b.rvs)a.suggestions=
ks(c);a.contentCheckOk=GF(a.contentCheckOk,b.cco);a.racyCheckOk=GF(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=GF(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=JF(a.oauthToken,b.oauth_token);a.jb=JF(a.jb,b.kpt);a.visitorData=JF(a.visitorData,b.visitor_data);if(c=b.session_data)a.Ud=hs(c,"&");if(c=b.endscreen_autoplay_session_data)a.ZB=hs(c,"&");a.ul=JF(a.ul,b.endscreen_ad_tracking_data);a.hH=GF(a.hH,b.wait_for_vast_info_cards_xml);a.nA=GF(a.nA,b.suppress_creator_endscreen);a.GM=GF(a.GM,
b.is_trueview_action);a.dH=JF(a.dH,b.tracking_list);a.ll=JF(a.ll,b.clip);a.ol=JF(a.ol,b.clipt);yma(a,b)};
sma=function(a,b){var c,d,e,f;b=b||{};var h=b.errordetail;null!=h&&(a.errorDetail=h);var l=b.errorcode;null!=l?a.errorCode=l:"fail"==b.status&&(a.errorCode="150");var m=b.reason;null!=m&&(a.errorReason=m);var n=b.subreason;null!=n&&(a.di=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||Ix());a.Cb=GF(a.B.Qj,b.livemonitor);tma(a,b);var p=b.raw_player_response;if(!p){var r=b.player_response;r&&(p=JSON.parse(r))}p&&(a.playerResponse=p);if(a.playerResponse){var t=a.playerResponse.annotations;if(t)for(var u=
g.q(t),x=u.next();!x.done;x=u.next()){var y=x.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.il=!0);y.allowInPlaceSwitch&&(a.gB=!0);var B=y.loadPolicy;B&&(a.annotationsLoadPolicy=zma[B]);var G=y.invideoUrl;G&&(a.Da=Mz(G));a.YD=!0;break}}var H=a.playerResponse.attestation;H&&Zla(a,H);var I=a.playerResponse.cotn;I&&(a.cotn=I);var L=a.playerResponse.heartbeatParams;if(L){var T,N=L.heartbeatToken;N&&(a.drmSessionId=L.drmSessionId||"",a.heartbeatToken=N,a.iK=Number(L.intervalMilliseconds),a.cL=
Number(L.maxRetries),a.rL=!!L.softFailOnError,a.pM=!!L.useInnertubeHeartbeatsForDrm,a.Pi=!0);a.heartbeatServerData=L.heartbeatServerData;a.Z("heartbeat_iff_heartbeat_params_filled")&&(a.Pi=!0);a.Pj=!(null===(T=L.heartbeatAttestationConfig)||void 0===T||!T.requiresAttestation)}var oa=a.playerResponse.messages;oa&&cma(a,oa);var za=a.playerResponse.multicamera;if(za){var pc=za.playerLegacyMulticameraRenderer;if(pc){var te=pc.metadataList;te&&(a.yF=te,a.Ec=ks(te))}}var bc=a.playerResponse.overlay;if(bc){var ee=
bc.playerControlsOverlayRenderer;if(ee){var Jd=ee.controlBgHtml;null!=Jd?(a.Ga=Jd,a.C=!0):(a.Ga="",a.C=!1);if(ee.mutedAutoplay){var Jh=ee.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Jh&&Jh.endScreen){var Qg=Jh.endScreen.playerMutedAutoplayEndScreenRenderer;Qg&&Qg.text&&(a.zF=g.Yz(Qg.text))}}else a.mutedAutoplay=!1}}var jc=a.playerResponse.playabilityStatus;if(jc){var Vl=jc.backgroundability;Vl&&Vl.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Wl=jc.offlineability;Wl&&
Wl.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var Xl=jc.contextParams;Xl&&(a.contextParams=Xl);var zf=jc.pictureInPicture;zf&&zf.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);jc.playableInEmbed&&(a.allowEmbed=!0);var Ka=jc.ypcClickwrap;if(Ka){var Af=Ka.playerLegacyDesktopYpcClickwrapRenderer,fe=Ka.ypcRentalActivationRenderer;if(Af)a.Xj=Af.durationMessage||"",a.Hi=!0;else if(fe){var fy=fe.durationMessage;a.Xj=fy?g.Yz(fy):"";a.Hi=!0}}var Kh=jc.errorScreen;if(Kh){if(Kh.playerLegacyDesktopYpcTrailerRenderer){var gd=
Kh.playerLegacyDesktopYpcTrailerRenderer;a.zo=gd.trailerVideoId||"";var ps=Kh.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Yl=ps&&ps.ypcTrailerRenderer}else if(Kh.playerLegacyDesktopYpcOfferRenderer)gd=Kh.playerLegacyDesktopYpcOfferRenderer;else if(Kh.ypcTrailerRenderer){Yl=Kh.ypcTrailerRenderer;var qs=Yl.fullVideoMessage;a.Yj=qs?g.Yz(qs):""}gd&&(a.po=gd.itemTitle||"",gd.itemUrl&&(a.qo=gd.itemUrl),gd.itemBuyUrl&&(a.jo=gd.itemBuyUrl),a.oo=gd.itemThumbnail||"",a.xo=gd.offerHeadline||"",a.Zj=
gd.offerDescription||"",a.bk=gd.offerId||"",a.uo=gd.offerButtonText||"",a.UA=gd.offerButtonFormattedText||null,a.ck=gd.overlayDurationMsec||NaN,a.Yj=gd.fullVideoMessage||"",a.Ce=!0);if(Yl){var gy=Yl.unserializedPlayerResponse;if(gy)a.Ri={raw_player_response:gy};else{var hy=Yl.playerVars;a.Ri=hy?js(hy):null}a.Ce=!0}}}var bf=a.playerResponse.playbackTracking;if(bf){var iy=b,jy=jH(bf.googleRemarketingUrl);jy&&(a.googleRemarketingUrl=jy);var ky=jH(bf.youtubeRemarketingUrl);ky&&(a.youtubeRemarketingUrl=
ky);var rs=jH(bf.ptrackingUrl);if(rs){var Ao=kH(rs),Bo=Ao.oid;Bo&&(a.BF=Bo);var ly=Ao.pltype;ly&&(a.CF=ly);var my=Ao.ptchn;my&&(a.AF=my);var Lh=Ao.ptk;Lh&&(a.Fp=encodeURIComponent(Lh))}var ny=jH(bf.ppvRemarketingUrl);ny&&(a.ppvRemarketingUrl=ny);var ts=jH(bf.qoeUrl);if(ts){for(var ik=g.ls(ts),bG=g.q(Object.keys(ik)),oy=bG.next();!oy.done;oy=bG.next()){var us=oy.value,vs=ik[us];ik[us]=Array.isArray(vs)?vs.join(","):vs}var py=ik.cat;py&&(a.Xi=py);var ws=ik.live;ws&&(a.hE=ws);var Co=ik.drm_product;Co&&
(a.kB=Co)}var jk=jH(bf.remarketingUrl);if(jk){a.remarketingUrl=jk;var hd=kH(jk);hd.foc_id&&(a.L.focEnabled=!0);var Rg=hd.data;Rg&&(a.L.rmktEnabled=!0,Rg.engaged&&(a.L.engaged="1"));a.L.baseUrl=ki(jk)+gi(g.ii(5,jk))}var xs=jH(bf.videostatsPlaybackUrl);if(xs){var id=kH(xs),ys=id.adformat;if(ys&&(iy.adformat=ys,!a.Z("process_video_data_ad_format_in_player_tracking_killswitch"))){var qy=a.T(),ry=Tla(ys,a.zq,qy.l,qy.u);ry&&(a.adFormat=ry)}var zs=id.aqi;zs&&(iy.ad_query_id=zs);var As=id.autoplay;As&&(a.Jk=
"1"==As);var sy=id.autonav;sy&&(a.zk="1"==sy);var ty=id.delay;ty&&(a.Bb=td(ty));var uy=id.ei;uy&&(a.eventId=uy);"adunit"===id.el&&(a.Jk=!0);var Bs=id.feature;Bs&&(a.YG=Bs);var Cs=id.list;Cs&&(a.playlistId=Cs);var cG=id.of;cG&&(a.jR=cG);var Zl=id.osid;Zl&&(a.osid=Zl);var kk=id.referrer;kk&&(a.referrer=kk);var Ds=id.sdetail;Ds&&(a.WG=Ds);var vy=id.sourceid;vy&&(a.A9=vy);var wy=id.ssrt;wy&&(a.TA="1"==wy);var Es=id.subscribed;Es&&(a.subscribed="1"==Es,a.L.subscribed=Es);var yy=id.uga;yy&&(a.userGenderAge=
yy);var dG=id.upt;dG&&(a.kR=dG);var cf=id.vm;cf&&(a.videoMetadata=cf)}var Fs=jH(bf.videostatsWatchtimeUrl);if(Fs){var eG=kH(Fs).ald;eG&&(a.xP=eG)}if(bf.promotedPlaybackTracking){var ue=bf.promotedPlaybackTracking;ue.startUrls&&(a.Xp=ue.startUrls);ue.firstQuartileUrls&&(a.xF=ue.firstQuartileUrls);ue.secondQuartileUrls&&(a.jA=ue.secondQuartileUrls);ue.thirdQuartileUrls&&(a.kA=ue.thirdQuartileUrls);ue.completeUrls&&(a.wF=ue.completeUrls);ue.engagedViewUrls&&(1<ue.engagedViewUrls.length&&g.cy(new g.Pv("There are more than one engaged_view_urls.")),
a.bh=ue.engagedViewUrls[0])}}var Gs=a.playerResponse.playerAds;if(Gs)for(var ge=b,zy=g.q(Gs),Do=zy.next();!Do.done;Do=zy.next()){var Ay=Do.value;if(Ay){var Hs=Ay.playerLegacyDesktopWatchAdsRenderer;if(Hs){var lk=Hs.playerAdParams;if(lk){"1"==lk.autoplay&&(a.Jk=!0);a.fl=lk.encodedAdSafetyReason||null;void 0!==lk.showContentThumbnail&&(a.Rj=!!lk.showContentThumbnail);ge.enabled_engage_types=lk.enabledEngageTypes;break}}}}var he=a.playerResponse.playerConfig;if(he){var mk=he.manifestlessWindowedLiveConfig;
if(mk){var By=Number(mk.minDvrSequence),Cy=Number(mk.maxDvrSequence),Is=Number(mk.minDvrMediaTimeMs),Mi=Number(mk.maxDvrMediaTimeMs),Dy=Number(mk.startWalltimeMs);By&&(a.je=By);Is&&(a.PG=Is/1E3);Cy&&(a.jg=Cy);Mi&&(a.NG=Mi/1E3);Dy&&(a.aH=Dy/1E3)}var Eo=he.daiConfig;if(Eo&&Eo.enableDai){a.Ld=!0;var fG=Eo.enableServerStitchedDai;fG&&(a.enableServerStitchedDai=fG)}var Ni=he.audioConfig;if(Ni){var Ey=Ni.loudnessDb;null!=Ey&&(a.Yi=Ey);Ni.audioMuted&&(a.Ig=!0);Ni.muteOnStart&&(a.gH=!0)}var Fy=he.playbackEndConfig;
if(Fy){var Gy=Fy.endSeconds;Gy&&a.mutedAutoplay&&(a.endSeconds=Gy)}var Fo=he.fairPlayConfig;if(Fo){var Hy=Fo.certificate;Hy&&(a.hc=uF(Hy));var Iy=Number(Fo.keyRotationPeriodMs);0<Iy&&(a.qQ=Iy);var Jy=Number(Fo.keyPrefetchMarginMs);0<Jy&&(a.OP=Jy)}var Oi=he.playbackStartConfig;if(Oi){a.uF=Number(Oi.startSeconds);var Go=Oi.liveUtcStartSeconds,jS=!1;a.Z("html5_start_seconds_priority")&&(jS=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);Go&&!jS&&(a.liveUtcStartSeconds=Number(Go));var kS=Oi.startPosition;
if(kS){var jba=kS.utcTimeMillis;jba&&!jS&&(a.liveUtcStartSeconds=.001*Number(jba));var kba=kS.streamTimeMillis;kba&&(a.rq=.001*Number(kba))}a.progressBarStartPosition=Oi.progressBarStartPosition;a.progressBarEndPosition=Oi.progressBarEndPosition}else{var lS=he.skippableSegmentsConfig;if(lS){var lba=lS.introSkipDurationMs;lba&&(a.eD=Number(lba)/1E3);var mba=lS.outroSkipDurationMs;mba&&(a.lF=Number(mba)/1E3)}}var mS=he.skippableIntroConfig;if(mS){var nba=Number(mS.startMs),oba=Number(mS.endMs);isNaN(nba)||
isNaN(oba)||(a.LG=nba,a.JG=oba)}var pba=he.streamSelectionConfig;pba&&(a.Ij=Number(pba.maxBitrate));var qba=he.vrConfig;qba&&(a.Bp="1"==qba.partialSpherical);var Ky=he.webDrmConfig;if(Ky){Ky.skipWidevine&&(a.ZG=!0);var rba=Ky.widevineServiceCert;rba&&(a.cH=uF(rba));Ky.useCobaltWidevine&&(a.useCobaltWidevine=!0);Ky.startWithNoQualityConstraint&&(a.Mg=!0)}var sba=he.mediaCommonConfig;if(sba){var gG=sba.dynamicReadaheadConfig;gG&&(a.maxReadAheadMediaTimeMs=gG.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=
gG.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=gG.readAheadGrowthRateMs||NaN)}}var nk=a.playerResponse.streamingData;if(nk){var tba=nk.adaptiveFormats;if(tba){for(var uba=[],vba=g.q(tba),Mh=vba.next();!Mh.done;Mh=vba.next()){var hG=Mh.value;uba.push(jma(hG));var wba=hG.loudnessDb;hG.itag&&null!=wba&&(a.Gp[hG.itag.toString()]=wba)}a.adaptiveFormats=uba.join(",")}var nS=nk.formats;if(nS){var Ly=[],xba=g.q(nS);for(Mh=xba.next();!Mh.done;Mh=xba.next()){var oS=Mh.value;Ly.push(oS.itag+"/"+oS.width+
"x"+oS.height)}a.SC=Ly.join(",");Ly=[];var yba=g.q(nS);for(Mh=yba.next();!Mh.done;Mh=yba.next()){var Js=Mh.value,My={itag:Js.itag,type:Js.mimeType,quality:Js.quality},zba=Js.url;zba&&(My.url=zba);var Aba=Js.cipher||Js.signatureCipher;if(Aba){var pS=js(Aba);My.sp=pS.sp;My.s=pS.s;My.url=pS.url}Ly.push(g.si(My))}a.Fi=Ly.join(",")}var qS=nk.hlsFormats;if(qS){var Bba=he||null,iG={};if(Bba){var rS=Bba.audioPairingConfig;if(rS&&rS.pairs)for(var Cba=g.q(rS.pairs),sS=Cba.next();!sS.done;sS=Cba.next()){var Dba=
sS.value,tS=Dba.videoItag;iG[tS]||(iG[tS]=[]);iG[tS].push(Dba.audioItag)}}for(var Eba={},Fba=g.q(qS),Ho=Fba.next();!Ho.done;Ho=Fba.next()){var Gba=Ho.value;Eba[Gba.itag]=Gba.bitrate}var Hba=[],Iba=g.q(qS);for(Ho=Iba.next();!Ho.done;Ho=Iba.next()){var Bf=Ho.value,Pi={itag:Bf.itag,type:Bf.mimeType,url:Bf.url,bitrate:Bf.bitrate,width:Bf.width,height:Bf.height,fps:Bf.fps},jG=Bf.audioTrack;if(jG){var Jba=jG.displayName;Jba&&(Pi.name=Jba,Pi.audio_track_id=jG.id,jG.audioIsDefault&&(Pi.is_default="1"))}if(Bf.drmFamilies){for(var Kba=
[],Lba=g.q(Bf.drmFamilies),uS=Lba.next();!uS.done;uS=Lba.next())Kba.push(lH[uS.value]);Pi.drm_families=Kba.join(",")}var kG=iG[Bf.itag];if(kG&&kG.length){Pi.audio_itag=kG.join(",");var Mba=Eba[kG[0]];Mba&&(Pi.bitrate+=Mba)}var Nba=Yla(Bf);Nba&&(Pi.eotf=Nba);Bf.audioChannels&&(Pi.audio_channels=Bf.audioChannels);Hba.push(g.si(Pi))}a.hlsFormats=Hba.join(",")}var vS=nk.licenseInfos;if(vS&&0<vS.length){for(var Oba={},Pba=g.q(vS),wS=Pba.next();!wS.done;wS=Pba.next()){var Qba=wS.value,Rba=Qba.drmFamily,
Sba=Qba.url;Rba&&Sba&&(Oba[lH[Rba]]=Sba)}a.Yd=Oba}var Tba=nk.drmParams;Tba&&(a.drmParams=Tba);var Uba=nk.dashManifestUrl;Uba&&(a.Ua=g.ui(Uba,{cpn:a.clientPlaybackNonce}));var Vba=nk.hlsManifestUrl;Vba&&(a.hlsvp=Vba);var Wba=nk.probeUrl;Wba&&(a.probeUrl=Mz(g.ui(Wba,{cpn:a.clientPlaybackNonce})))}var Xba=a.playerResponse.trackingParams;Xba&&(a.La=Xba);var qc=a.playerResponse.videoDetails;if(qc){var Qi=b,xS=qc.videoId;xS&&(a.videoId=xS,Qi.video_id||(Qi.video_id=xS));var Yba=qc.channelId;Yba&&(a.L.uid=
Yba.substr(2));var yS=qc.title;yS&&(a.title=yS,Qi.title||(Qi.title=yS));var zS=qc.lengthSeconds;zS&&(a.lengthSeconds=Number(zS),Qi.length_seconds||(Qi.length_seconds=zS));var Zba=qc.keywords;Zba&&(a.keywords=xma(Zba));var AS=qc.channelId;AS&&(a.Rh=AS,Qi.ucid||(Qi.ucid=AS));var $ba=qc.viewCount;$ba&&(a.rawViewCount=Number($ba));var BS=qc.author;BS&&(a.author=BS,Qi.author||(Qi.author=BS));var aca=qc.shortDescription;aca&&(a.shortDescription=aca);var bca=qc.isCrawlable;bca&&(a.isListed=bca);var cca=
qc.musicVideoType;cca&&(a.musicVideoType=cca);var CS=qc.isLive;null!=CS&&(a.isLivePlayback=CS);if(CS||qc.isUpcoming)a.isPremiere=!qc.isLiveContent;var dca=qc.thumbnail;dca&&(a.Lb=iH(dca));var eca=he||null,DS=b;qc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);qc.isUpcoming&&(a.isUpcoming=!0);if(qc.isPostLiveDvr)a.Xe=!0;else{var ES=!1;if(a.Cb)a.allowLiveDvr=zH(!0),a.isLivePlayback=!0;else if(qc.isLive){DS.livestream="1";a.allowLiveDvr=zH(!!qc.isLiveDvrEnabled);a.va=27;qc.isLowLatencyLiveStream&&
(a.isLowLatencyLiveStream=!0);var fca=qc.latencyClass;fca&&(a.latencyClass=Ama[fca]||"UNKNOWN");var gca=qc.liveChunkReadahead;gca&&(a.liveChunkReadahead=gca);var Ny=eca&&eca.livePlayerConfig;if(Ny){Ny.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Ny.hasSubfragmentedWebm&&(a.wk=!0);Ny.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var hca=Ny.liveExperimentalContentId;hca&&(a.liveExperimentalContentId=Number(hca))}ES=!0}else qc.isUpcoming&&(ES=!0);ES&&(a.isLivePlayback=!0,DS.adformat&&
"8"!==DS.adformat.split("_")[1]||a.ea.push("heartbeat"),a.Z("heartbeat_iff_heartbeat_params_filled")||(a.Pi=!0))}var ica=qc.isPrivate;ica&&(a.isPrivate=GF(a.isPrivate,ica))}if(jc){var jca=qc||null,kca=!1,Ks=jc.errorScreen;kca=Ks&&(Ks.playerLegacyDesktopYpcOfferRenderer||Ks.playerLegacyDesktopYpcTrailerRenderer||Ks.ypcTrailerRenderer)?!0:jca&&jca.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(jc.status);if(!kca){a.errorCode="150";var lG=Ks&&Ks.playerErrorMessageRenderer;if(lG){a.playerErrorMessageRenderer=
lG;var lca=lG.reason;lca&&(a.errorReason=g.Yz(lca));var HS=lG.subreason;HS&&(a.di=g.Yz(HS),a.Wo=HS)}else a.errorReason=jc.reason||null;var IS=jc.status;if("LOGIN_REQUIRED"===IS)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===IS)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===IS){var mca=jc.errorScreen,nca=mca&&mca.playerKavRenderer;a.errorDetail=nca&&nca.kavUrl?"4":"3"}else a.errorDetail=jc.isBlockedInRestrictedMode?"5":"0"}}var oca=a.playerResponse.interstitialPods;oca&&bma(a,oca);a.Da&&a.eventId&&
(a.Da=os(a.Da,{ei:a.eventId}));if(a.Z("web_player_force_premiere_to_use_live_caption")&&g.WF(a.B)&&Et&&a.isPremiere&&!GF(!1,b.mdx))a.Ha("cc","ignoreVodTrack");else{a.Ha("cc","useVodTrack");var JS=a.playerResponse.captions;JS&&JS.playerCaptionsTracklistRenderer&&ama(a,JS.playerCaptionsTracklistRenderer)}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.uF=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.FG=a.accountLinkingConfig.alsParam);a.Z("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&dma(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}uma(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var pca=b.hlsdvr;null!=pca&&(a.allowLiveDvr=zH("1"==pca));a.adQueryId=b.ad_query_id||null;
a.fl||(a.fl=b.encoded_ad_safety_reason||null);a.eH=b.agcid||null;a.cB=b.ad_id||null;a.eB=b.ad_sys||null;a.vB=b.encoded_ad_playback_context||null;a.Ig=GF(a.Ig,b.infringe||b.muted);a.authKey=b.authkey;a.HG=b.authuser;a.wH=b.autonav_watch_endpoint||null;a.mutedAutoplay=GF(a.mutedAutoplay,b&&b.playmuted)&&a.Z("embeds_enable_muted_autoplay");a.endSeconds=IF(a.endSeconds,a.lF||b.end||b.endSeconds);a.La=JF(a.La,b.itct);a.fD=GF(a.fD,b.noiba);a.pD=GF(a.pD,b.is_live_destination);a.isLivePlayback=GF(a.isLivePlayback,
b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=GF(a.isUpcoming,b.isUpcoming));a.Xe=GF(a.Xe,b.post_live_playback);a.isMdxPlayback=GF(a.isMdxPlayback,b.mdx);var mG=b.mdx_control_mode;mG&&(a.mdxControlMode="number"===typeof mG?mG:td(mG));a.isInlinePlaybackNoAd=GF(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.qb=IF(a.qb,b.reload_count);a.reloadReason=JF(a.reloadReason,b.reload_reason);a.Rj=GF(a.Rj,b.show_content_thumbnail);a.zD=
GF(a.zD,b.utpsa);a.oA=GF(a.oA,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.pA=b.tkn||null;var qca=Ula(b);0<Object.keys(qca).length&&(a.Lb=qca);a.Aa=JF(a.Aa,b.vvt);a.mdxEnvironment=JF(a.mdxEnvironment,b.mdx_environment);a.IR=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=JF(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?IF(0,b.index):IF(a.playlistIndex,b.index));a.AG=b.pyv_view_beacon_url;a.IG=b.pyv_quartile25_beacon_url;a.KG=b.pyv_quartile50_beacon_url;
a.MG=b.pyv_quartile75_beacon_url;a.GG=b.pyv_quartile100_beacon_url;var rca=b.remarketing_url;rca&&(a.remarketingUrl=rca);var sca=b.ppv_remarketing_url;sca&&(a.ppvRemarketingUrl=sca);var tca=b.session_data;!a.OG&&tca&&(a.OG=hs(tca,"&").feature);a.isFling=1==IF(a.isFling?1:0,b.is_fling);a.vnd=IF(a.vnd,b.vnd);a.Rg=JF(a.Rg,b.force_ads_url);a.zg=JF(a.zg,b.ctrl);a.Jf=JF(a.Jf,b.ytr);a.Bl=b.ytrcc;a.QG=b.ytrexp;a.lA=b.ytrext;a.Xd=JF(a.Xd,b.adformat);a.zq=JF(a.zq,b.attrib);a.slotPosition=IF(a.slotPosition,
b.slot_pos);a.breakType=b.break_type;a.TA=GF(a.TA,b.ssrt);a.videoId=LF(b)||a.videoId;a.Ya=JF(a.Ya,b.vss_credentials_token);a.Sh=JF(a.Sh,b.vss_credentials_token_type);a.Be=GF(a.Be,b.audio_only);a.SA=GF(a.SA,b.aac_high);a.ut=GF(a.ut,b.prefer_low_quality_audio);a.Xi=JF(a.Xi,b.qoe_cat);a.rl=GF(a.rl,b.download_media);a.Za=GF(a.Za,b.prefer_gapless);a:{var KS=a.playerResponse;if(KS&&KS.adPlacements)for(var uca=g.q(KS.adPlacements),LS=uca.next();!LS.done;LS=uca.next()){var nG=LS.value.adPlacementRenderer;
if(null!=nG&&"AD_PLACEMENT_KIND_START"==(nG.config&&nG.config.adPlacementConfig&&nG.config.adPlacementConfig.kind)){var vca=!0;break a}}vca=!1}vca&&(a.adModule=!0,a.ea.push("ad"));var wca=b.adaptive_fmts;wca&&(a.adaptiveFormats=wca);var xca=b.allow_embed;xca&&(a.allowEmbed="1"==xca);var yca=b.backgroundable;yca&&(a.backgroundable="1"==yca);var zca=b.autonav;zca&&(a.zk="1"==zca);var Aca=b.autoplay;Aca&&(a.Jk="1"==Aca);var Bca=b.iv_load_policy;Bca&&(a.annotationsLoadPolicy=HF(a.annotationsLoadPolicy,
Bca,sG));var Cca=b.cc_lang_pref;Cca&&(a.captionsLanguagePreference=JF(Cca,a.captionsLanguagePreference));var Dca=b.cc_load_policy;Dca&&(a.Dq=HF(a.Dq,Dca,sG));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.zJ=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.QA=null!==(e=b.viewer_selected_caption_langs)&&void 0!==e?e:[];var Eca=b.cached_load;Eca&&(a.No=GF(a.No,Eca));"0"==b.dash&&(a.JJ=!0);var Fca=b.dashmpd;Fca&&(a.Ua=g.ui(Fca,{cpn:a.clientPlaybackNonce}));var Gca=
b.delay;Gca&&(a.Bb=td(Gca));var Hca=a.lF||b.end;void 0!=Hca&&(a.clipEnd=IF(a.clipEnd,Hca));var Ica=b.fmt_list;Ica&&(a.SC=Ica);b.heartbeat_preroll&&a.ea.push("heartbeat");a.Zk=-Math.floor(10*Math.random());a.Oq=-Math.floor(40*Math.random());var Jca=b.is_listed;Jca&&(a.isListed=GF(a.isListed,Jca));var Kca=b.is_private;Kca&&(a.isPrivate=GF(a.isPrivate,Kca));var Lca=b.is_dni;Lca&&(a.C=GF(a.C,Lca));var Mca=b.dni_color;Mca&&(a.Ga=JF(a.Ga,Mca));var Nca=b.pipable;Nca&&(a.pipable=GF(a.pipable,Nca));a.fB=a.pipable&&
a.B.ul;a.mA=a.fB&&(!a.B.showMiniplayerButton||a.Z("web_player_pip"));var Oca=b.paid_content_overlay_duration_ms;Oca&&(a.paidContentOverlayDurationMs=td(Oca));var Pca=b.paid_content_overlay_text;Pca&&(a.paidContentOverlayText=Pca);var Qca=b.url_encoded_fmt_stream_map;Qca&&(a.Fi=Qca);var Rca=b.hls_formats;Rca&&(a.hlsFormats=Rca);var Sca=b.hlsvp;Sca&&(a.hlsvp=Sca);var oG=b.length_seconds;oG&&(a.lengthSeconds="string"===typeof oG?td(oG):oG);var pG=b.live_start_walltime;pG&&(a.SE="number"===typeof pG?
pG:td(pG));var qG=b.live_manifest_duration;qG&&(a.Vg="number"===typeof qG?qG:td(qG));var Tca=b.player_params;Tca&&(a.playerParams=Tca);var Uca=b.partnerid;Uca&&(a.va=IF(a.va,Uca));var Vca=b.probe_url;Vca&&(a.probeUrl=Mz(g.ui(Vca,{cpn:a.clientPlaybackNonce})));var MS=b.pyv_billable_url;MS&&Jz(MS)&&(a.bh=MS);var NS=b.pyv_conv_url;NS&&Jz(NS)&&(a.BG=NS);yma(a,b);0<a.startSeconds||(a.startSeconds=IF(a.startSeconds,a.uF||a.eD||b.start||b.startSeconds),a.Ub=a.startSeconds);if(a.Z("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var Wca=b.live_utc_start;if(null!=Wca)a.liveUtcStartSeconds=Number(Wca);else{var OS=a.startSeconds;OS&&isFinite(OS)&&1E9<OS&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Xca=b.utc_start_millis;Xca&&(a.liveUtcStartSeconds=.001*Number(Xca))}}else{var Yca=b.live_utc_start;null!=Yca&&(a.liveUtcStartSeconds=Number(Yca));var Zca=b.utc_start_millis;Zca&&(a.liveUtcStartSeconds=.001*Number(Zca))}var $ca=b.stream_time_start_millis;
$ca&&(a.rq=.001*Number($ca));var ada=a.eD||b.start;void 0==ada||"1"==b.resume||a.isLivePlayback||(a.clipStart=IF(a.clipStart,ada));var bda=b.url_encoded_third_party_media;bda&&(a.Nh=ks(bda));var PS=b.ypc_offer_button_formatted_text;if(PS){var cda=JSON.parse(PS);a.UA=null!=cda?cda:null;a.BH=PS}var dda=b.ypc_offer_button_text;dda&&(a.uo=dda);var eda=b.ypc_offer_description;eda&&(a.Zj=eda);var fda=b.ypc_offer_headline;fda&&(a.xo=fda);var gda=b.ypc_full_video_message;gda&&(a.Yj=gda);var hda=b.ypc_offer_id;
hda&&(a.bk=hda);var ida=b.ypc_buy_url;ida&&(a.jo=ida);var jda=b.ypc_item_thumbnail;jda&&(a.oo=jda);var kda=b.ypc_item_title;kda&&(a.po=kda);var lda=b.ypc_item_url;lda&&(a.qo=lda);var mda=b.ypc_vid;mda&&(a.zo=mda);b.ypc_overlay_timeout&&(a.ck=Number(b.ypc_overlay_timeout));var nda=b.ypc_trailer_player_vars;nda&&(a.Ri=js(nda));var oda=b.ypc_original_itct;oda&&(a.yV=oda);a.Rh=JF(a.Rh,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=GF(a.L.focEnabled,b.focEnabled);a.L.rmktEnabled=GF(a.L.rmktEnabled,b.rmktEnabled);a.qq=b.storyboard_spec||null;a.wp=b.live_storyboard_spec||null;a.JM=b.iv_endscreen_url||null;a.YD=GF(a.YD,b.iv3_module);a.Pi=GF(a.Pi,b.ypc_license_checker_module);a.Ce=GF(a.Ce,b.ypc_module);a.Hi=GF(a.Hi,b.ypc_clickwrap_module);a.Ce&&a.ea.push("ypc");a.Hi&&a.ea.push("ypc_clickwrap");a.IF={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};vma(a,b);var pda=b.cotn;pda&&(a.cotn=pda);Bma(a)?
AH(a)&&(a.isLivePlayback&&a.Ua?a.Lc=!0:a.hc&&(a.Vi=!0)):Cma(a)?a.Lc=!0:!Dma(a,a.adaptiveFormats)&&a.Ua&&(a.Lc=!0);var RS=b.adpings;RS&&(a.dl=RS?js(RS):null);var tda=b.feature;tda&&(a.YG=tda);var uda=b.referrer;uda&&(a.referrer=uda);a.clientScreenNonce=JF(a.clientScreenNonce,b.csn);a.Ov=IF(a.Ov,b.root_ve_type);a.Wi=IF(a.Wi,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.wq=GF(a.wq,b.upg_content_filter_mode);var vda=b.unplugged_location_info;vda&&(a.V=vda);var wda=b.unplugged_partner_opt_out;
wda&&(a.bB=JF("",wda));a.ql=GF(a.ql,b.disable_watch_next);a.Oj=JF(a.Oj,b.internal_ip_override);a.kD=!!b.is_yto_interstitial;(a.interstitials.length||a.kD)&&a.ea.push("yto");var xda=b.ri;xda&&(a.ri=xda);b.Dz&&(a.Dz=b.Dz);a.fb=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.Tg=!!b.force_gvi};
uma=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,L,T=b.raw_watch_next_response;if(!T){var N=b.watch_next_response;N&&(T=JSON.parse(N))}if(T){a.watchNextResponse=T;var oa=a.watchNextResponse.contents;if(oa){var za=oa.singleColumnWatchNextResults;if(za){var pc=IF(0,b.autoplay_count);if(za.autoplay&&za.autoplay.autoplay&&!za.playlist){var te=za.autoplay.autoplay.sets,bc={},ee={},Jd=null;if(te){for(var Jh=g.q(te),Qg=Jh.next();!Qg.done;Qg=Jh.next()){var jc=Qg.value.autoplayVideoRenderer;if(jc&&
jc.compactVideoRenderer){Jd=jc.compactVideoRenderer;break}}var Vl=te[0].autoplayVideo;if(Vl){var Wl=Vl.clickTrackingParams;Wl&&(bc.itct=Wl);bc.autonav="1";bc.playnext=String(pc)}}else bc.feature="related-auto";if(Jd){ee.autonav="1";ee.video_id=Jd.videoId;var Xl=Jd.shortBylineText;Xl&&(ee.author=g.Yz(Xl));var zf=Jd.title;zf&&(ee.title=g.Yz(zf))}ee.endscreen_autoplay_session_data=g.si(bc);a.suggestions=[ee]}}var Ka=oa.twoColumnWatchNextResults}a.hR=!(null===(c=null===Ka||void 0===Ka?void 0:Ka.autoplay)||
void 0===c||!c.autoplay);var Af=a.watchNextResponse.playerOverlays;if(Af){var fe=Af.playerOverlayRenderer;if(fe){var fy=fe.endScreen;if(fy){var Kh=fy.watchNextEndScreenRenderer;if(Kh)var gd=Kh.results}var ps=fe.videoDetails;if(ps){var Yl=ps.embeddedPlayerOverlayVideoDetailsRenderer;var qs=ps.musicEmbeddedPlayerOverlayVideoDetailsRenderer;qs&&(a.lC=qs.title,a.UB=qs.byline)}var gy=fe.actions;if(gy)for(var hy=g.q(gy),bf=hy.next();!bf.done;bf=hy.next()){var iy=bf.value;iy.likeButtonRenderer&&(a.likeButtonRenderer=
iy.likeButtonRenderer)}var jy=null===(e=null===(d=fe.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(jy)for(var ky=g.q(jy),rs=ky.next();!rs.done;rs=ky.next()){var Ao=rs.value;if(null===(h=null===(f=Ao.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=Ao.suggestedActionRenderer}var Bo=null===(l=fe.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;
Bo&&(a.multiMarkersPlayerBarRenderer=null===(m=Bo.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.jB=null===(p=null===(n=Bo.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.mV=null===(r=Bo.playerBarActionButton)||void 0===r?void 0:r.buttonRenderer);g.WF(a.B)&&(a.Gg=!!fe.addToMenu);Ema(a,fe.shareButton);var ly=fe.productsInVideoOverlayRenderer;ly&&(a.shoppingOverlayRenderer=ly.shoppingOverlayRenderer);var my=fe.autoplay;if(my)var Lh=my.playerOverlayAutoplayRenderer;
a.progressBarStartPosition=fe.startPosition;a.progressBarEndPosition=fe.endPosition}}if(!gd&&Ka){var ny=Ka.endScreen&&Ka.endScreen.endScreen;ny&&(gd=ny.results)}if(Ka){var ts=Ka.desktopOverlay&&Ka.desktopOverlay.desktopOverlayConfigRenderer;ts&&(ts.suppressShareButton&&(a.showShareButton=!1),ts.suppressWatchLaterButton&&(a.Gg=!1))}Yl&&Fma(a,b,Yl);var ik=IF(0,b.autoplay_count);if(gd){for(var bG=Ka||null,oy=Lh||null,us=[],vs=!0,py=g.q(gd),ws=py.next();!ws.done;ws=py.next()){var Co=ws.value,jk=void 0,
hd=null;if(Co.endScreenVideoRenderer){var Rg=Co.endScreenVideoRenderer,xs=Rg.title;hd={id:Rg.videoId,length_seconds:Rg.lengthInSeconds};var id=Rg.publishedTimeText;id&&(hd.publishedTimeText=g.Yz(id));var ys=Rg.shortBylineText;ys&&(hd.author=g.Yz(ys));var qy=Rg.shortViewCountText;qy&&(hd.short_view_count_text=g.Yz(qy));if(xs){hd.title=g.Yz(xs);var ry=xs.accessibility;if(ry){var zs=ry.accessibilityData;zs&&zs.label&&(hd.aria_label=zs.label)}}var As=Rg.navigationEndpoint;if(As){jk=As.clickTrackingParams;
var sy=As.watchEndpoint;sy&&(hd.aC=sy)}var ty=Rg.thumbnailOverlays;if(ty)for(var uy=g.q(ty),Bs=uy.next();!Bs.done;Bs=uy.next()){var Cs=Bs.value.thumbnailOverlayTimeStatusRenderer;if(Cs)if("LIVE"===Cs.style){hd.live_playback="1";break}else if("UPCOMING"===Cs.style){hd.isUpcoming=!0;break}}var cG=iH(Rg.thumbnail),Zl=hH(cG);Zl.iurlmq&&(Zl={iurlmq:Zl.iurlmq,iurlhq:Zl.iurlmq});Object.assign(hd,Zl)}else if(Co.endScreenPlaylistRenderer){var kk=Co.endScreenPlaylistRenderer,Ds=kk.navigationEndpoint;if(!Ds)continue;
var vy=Ds.watchEndpoint;if(!vy)continue;var wy=vy.videoId;hd={list:kk.playlistId,video_id:wy,playlist_length:kk.videoCount,thumbnail_ids:wy};var Es=kk.title;Es&&(hd.playlist_title=g.Yz(Es));var yy=kk.shortBylineText;yy&&(hd.playlist_author=g.Yz(yy));jk=Ds.clickTrackingParams;var dG=iH(kk.thumbnail);Object.assign(hd,hH(dG))}hd&&(hd.session_data=g.si({itct:jk}),vs?(Gma(hd,bG,oy,ik),us.splice(0,0,hd),vs=!1):us.push(hd))}a.suggestions=us}if(Lh){a.JF=!!Lh.preferImmediateRedirect;a.ac=a.ac||!!Lh.webShowNewAutonavCountdown;
a.Jh=a.Jh||!!Lh.webShowBigThumbnailEndscreen;if(a.ac||a.Jh){var cf=Lh,Fs=gd||null,eG=Ka||null,ue,Gs,ge={id:cf.videoId},zy=null===(Gs=null===(ue=null===Fs||void 0===Fs?void 0:Fs[0])||void 0===ue?void 0:ue.endScreenVideoRenderer)||void 0===Gs?void 0:Gs.navigationEndpoint;zy&&(ge.session_data=g.si({itct:zy.clickTrackingParams}));var Do=cf.videoTitle;if(Do){ge.title=g.Yz(Do);var Ay=Do.accessibility;if(Ay){var Hs=Ay.accessibilityData;Hs&&Hs.label&&(ge.aria_label=Hs.label)}}var lk=cf.byline;lk&&(ge.author=
g.Yz(lk));var he=cf.publishedTimeText;he&&(ge.publishedTimeText=g.Yz(he));var mk=cf.shortViewCountText;mk&&(ge.short_view_count_text=g.Yz(mk));var By=cf.thumbnailOverlays;if(By)for(var Cy=g.q(By),Is=Cy.next();!Is.done;Is=Cy.next()){var Mi=Is.value.thumbnailOverlayTimeStatusRenderer;if(Mi)if("LIVE"===Mi.style){ge.live_playback="1";break}else if("UPCOMING"===Mi.style){ge.isUpcoming=!0;break}else if("DEFAULT"===Mi.style&&Mi.text){ge.lengthText=g.Yz(Mi.text);var Dy=Mi.text.accessibility;if(Dy){var Eo=
Dy.accessibilityData;Eo&&Eo.label&&(ge.gy=Eo.label)}break}}var fG=iH(cf.background),Ni=hH(fG);Ni.iurlmq&&(Ni={iurlmq:Ni.iurlmq,iurlhq:Ni.iurlmq});Object.assign(ge,Ni);var Ey=cf.nextButton;if(Ey){var Fy=Ey.buttonRenderer;if(Fy){var Gy=Fy.navigationEndpoint;if(Gy){var Fo=Gy.watchEndpoint;Fo&&(ge.aC=Fo)}}}if(cf.topBadges){var Hy=cf.topBadges[0];if(Hy){var Iy=Hy.metadataBadgeRenderer;Iy&&"BADGE_STYLE_TYPE_PREMIUM"==Iy.style&&(ge.Dz=!0)}}var Jy=cf.alternativeTitle;Jy&&(ge.Dt=g.Yz(Jy));Gma(ge,eG,cf,ik);
a.suggestions||(a.suggestions=[]);a.suggestions[0]=ge}null!=Lh.countDownSecs&&(a.iH=1E3*Lh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Lb=iH(a.watchNextResponse.currentVideoThumbnail));if(!a.Z("player_parse_profile_picture_from_watch_next_killswitch")){var Oi=null===(B=null===(y=null===(x=null===(u=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===u?void 0:u.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===B?void 0:
B.contents;if(Oi&&Oi[1]){var Go=null===(L=null===(I=null===(H=null===(G=Oi[1].videoSecondaryInfoRenderer)||void 0===G?void 0:G.owner)||void 0===H?void 0:H.videoOwnerRenderer)||void 0===I?void 0:I.thumbnail)||void 0===L?void 0:L.thumbnails;Go&&Go.length&&(a.wg=Go[Go.length-1].url)}}}};
BH=function(a){return!!(a.u&&a.u.videoInfos&&a.u.videoInfos.length)};
FH=function(a){if(a.Z("html5_single_format_policy")&&a.Zc)return a.Zc;var b=a.Za,c=!!a.i&&(LE(a.i)||ME(a.i)||NE(a.i)),d=a.B,e=!!a.i&&a.i.ji,f=CH(a),h=a.SA;a.isAd();var l=a.isOtf(),m=DH(a,"html5_samsung_vp9_live"),n=new oka;if(a.ya||g.S(d.experiments,"html5_logging_format_selection"))n.i=!0;n.Ra=f;n.Aa=h&&d.u;rt("windows nt 5.1")&&!g.cj&&(n.u=!0);if(f=c)f=d.Z("disable_html5_ambisonic_audio")||!(g.NG(d)||d.Z("html5_enable_spherical")||d.Z("html5_enable_spherical3d"))?!1:hla(d);f&&(n.La=!0);b&&(n.u=
!0,n.xb=!0);l&&!g.S(d.experiments,"html5_otf_prefer_vp9")&&(n.u=!0);mB(d.B,nB.CHANNELS)&&(g.S(d.experiments,"html5_enable_aac51")&&(n.ya=!0),g.S(d.experiments,"html5_enable_ac3")&&(n.V=!0),g.S(d.experiments,"html5_enable_eac3")&&(n.ea=!0),g.S(d.experiments,"html5_enable_ac3_gapless")&&(n.Da=!0));g.S(d.experiments,"html5_block_8k_hfr")&&(n.Za=!0);n.C=g.U(d.experiments,"html5_max_selectable_quality_ordinal");n.I=g.U(d.experiments,"html5_min_selectable_quality_ordinal");!g.S(d.experiments,"html5_kaios_hd_killswitch")&&
OF&&(n.fb=480);if(e||c)n.Ua=!1;n.Ya=!1;b=dF(d,n.l);0<b&&2160>b&&(zE()||g.S(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+zE(),n.J=b);2160<=b&&(n.qb=!0);pka()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.Bb=!1);n.Cb=m;m=g.Ew||It()&&!m?!1:!0;n.Ga=m;n.va=g.S(d.experiments,"html5_format_hybridization");n.jb=g.S(d.experiments,"html5_offline_av1_fallback");n.Y=g.S(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff");n.eb=g.S(d.experiments,"html5_disable_codec_on_platform_errors");
wt()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.V=!0,n.ea=!0);a.aB&&(n.L=a.aB);a.YA&&(n.B=a.YA);n.Ia=a.isLivePlayback&&EH(a)&&a.B.Z("html5_drm_live_audio_51");return a.Zc=n};
Ima=function(a){a.hc||a.i&&oB(a.i);var b={};a.i&&(b=kB(FH(a),a.B.B,a.i,function(c){return a.X("ctmp","fmtflt",c)}));
b=new oF(b,a.B.experiments,a.ZG,Hma(a),function(c,d){a.Ha(c,d)});
g.F(a,b);a.Vi=!1;a.Y=!0;ska(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.hc;e.J=a.qQ;e.I=a.OP;break;case "widevine":e.u=a.cH}a.Zg=c;if(0<a.Zg.length&&(a.I=a.Zg[0],g.GH(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.Ha("drmProbe",c.join("."))}xH(a)})};
Kma=function(a,b){var c;(c=!b)||(c=!(!AH(a)&&a.adaptiveFormats));if(c)return null;DH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(SE=!0);c=HH(b);var d=Date.now();b=Wja(c,a.Yd,a.lengthSeconds,a.isLivePlayback,a.Xe,a.B);d=Date.now()-d;if(a.Z("html5_log_manifest_performance")){var e=Sja(b)?1:0;a.Ha("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=QE(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Ui=!0)));if(c=b.isManifestless)c=!(a.Z("html5_manifestless_vp9")||
a.Z("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Jma(b));return c?(b.dispose(),null):b};
Dma=function(a,b){b=Kma(a,b);if(!b)return!1;IH(a,b);return!0};
AH=function(a){return wt()?!JH(a):Bt()?!(!a.hc||!a.Z("html5_enable_safari_fairplay")):!1};
JH=function(a){return DH(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"'))};
Hma=function(a){return a.useCobaltWidevine?wt()?JH(a):!1:!1};
Jma=function(a){return a.isManifestless&&iE('video/webm; codecs="vp9"')&&g.Hb(a.i,function(b){return $D(b.info)})};
KH=function(a){return!(!a.i||!a.i.isManifestless)};
Lma=function(a){return WA()?a.Z("html5_streaming_debug")||KH(a)&&("ULTRALOW"==a.latencyClass||21530001==LH(a))?!0:window.AbortController?a.Z("html5_streaming_xhr")||a.Z("html5_streaming_xhr_manifestless")&&KH(a)?!0:!1:!1:!1};
Mma=function(a){return uB({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,wk:a.wk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:KH(a),QE:Lma(a)})};
LH=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=XE(a.i)?21530001:a.liveExperimentalContentId};
Bma=function(a){return wt()&&JH(a)?!1:!rF()||a.JJ?!0:!1};
Oma=function(a){a.Y=!0;a.Lc=!1;if(Cma(a))Kla(a.videoId).then(function(d){Nma(a,d)}).then(function(){xH(a)});
else{Hz(a.Ua)||g.cy(new g.Pv("DASH MPD Origin invalid: ",a.Ua));var b=a.Ua,c=g.U(a.B.experiments,"dash_manifest_version")||4;b=g.ui(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.ui(b,{pacing:0}));dka(b,a.B.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(IH(a,d,!0),NA("mrc",void 0,a.fb),xH(a))},function(d){a.isDisposed()||(a.Y=!1,a.X("dataloaderror",new g.vE("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
NA("mrs",void 0,a.fb)}};
Nma=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
e.url=b.find(function(f){return f.itag===e.itag}).url;
e.signatureCipher="";return jma(e)}).join(",");
d=Kma(a,d);IH(a,d);a.Ha("dlr","")};
xH=function(a){a.isDisposed()||(a.Y=!1,a.X("dataloaded"))};
IH=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.F(a,b);b.je=a.je;b.jg=a.jg;b.I=a.PG;b.C=a.NG;g.S(a.B.experiments,"html5_start_walltime_min_seekable_killswitch")||(b.J=a.aH);Pma(a)&&a.ea.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Vg=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Ha,a),c?b.subscribe("refresh",a.wK,a):b.subscribe("cuepointsadded",a.PH,a));oB(b)&&(a.Vi=!0)};
EH=function(a){return a.Yd?!0:!!a.i&&oB(a.i)};
Uma=function(a,b){if(a.isDisposed())return ht();a.u=null;a.Ra=null;a.xb=null;var c=a.B.deviceParams.c;if(!a.Z("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.B.Zk;a.ya=g.GH(a)||1==d[0]&&d[1]<c}return Qma(a,b).then(void 0,function(){return Rma(a,b)}).then(void 0,function(){return Sma(a)}).then(void 0,function(){return Tma(a)})};
Qma=function(a,b){b=b||Bma(a);return a.i&&!b?(CH(a)&&hka(a.i,a.isLivePlayback),DH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.B.l=!0),Vma(a).then(function(){return kja(FH(a),a.B.B,a.i,a.I,function(c){return a.X("ctmp","fmtflt",c)},a.Z("html5_dynamic_av1_hybrid_threshold")).then(function(c){Wma(a,c);
/^av/.test(a.clientPlaybackNonce)&&a.Zc&&a.Ha("av1",g.wE(a.Zc.l))})})):ht()};
Vma=function(a){if(!a.i||!a.i.i||!a.Z("html5_use_media_capability"))return it();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)};
Rma=function(a,b){var c;if(b&&a.hlsvp)return ht();if(a.hlsFormats){b=HH(a.hlsFormats);if((null===(c=a.Zc)||void 0===c?0:c.i)&&b){for(var d=[],e=g.q(b),f=e.next();!f.done;f=e.next())d.push(f.value.itag);a.Ha("hlsfmt",d.join("."))}a.bp=pla(a.B,b);d=a.clientPlaybackNonce;return ula(a.B,a.isAd(),b,a.Ij,d,function(h){return a.X("ctmp","hlsflt",h)}).then(function(h){for(var l,m,n,p,r=0,t=[],u=g.q(h),x=u.next();!x.done;x=u.next())x=x.value,t.push(null===(l=x.kf())||void 0===l?void 0:l.tc()),(null===(n=null===
(m=x.kf())||void 0===m?void 0:m.audio)||void 0===n?void 0:n.i)>r&&(r=x.kf().audio.i);
2<r&&a.Ha("hlschl",""+r);(null===(p=a.Zc)||void 0===p?0:p.i)&&a.Ha("hlsfmtaf",t.join("."));MH(a,h)})}return ht()};
Sma=function(a){return a.Nh&&a.IM?xla(a.B,a.isAd(),a.Nh).then(function(b){MH(a,b)}):ht()};
Tma=function(a){var b=HH(a.Fi,a.SC);if(a.hlsvp){var c=qma(a.hlsvp,a.clientPlaybackNonce,a.Ij);b.push(c)}return vla(a.B,a.isAd(),b,Xma(a)).then(function(d){MH(a,d)})};
Wma=function(a,b){a.u=b;b=a.getAvailableAudioTracks();b=b.concat(a.Mj);for(var c=0;c<a.hB.length;c++)for(var d=a.hB[c],e=0;e<b.length;e++){var f=b[e],h=f.Nc.id==d.audioTrackId;if(f.Nc.isDefault&&c==a.yJ||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.u=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.l=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.I&&a.u&&a.u.videoInfos&&!(0>=a.u.videoInfos.length)&&(b=cE(a.u.videoInfos[0]),b!=("fairplay"==a.I.flavor)))for(c=g.q(a.Zg),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.I=d;break}};
MH=function(a,b){a.xb=b;Wma(a,new gB(g.Qe(a.xb,function(c){return c.kf()})))};
Xma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Fp&&(b.ptk=a.Fp,b.oid=a.BF,b.ptchn=a.AF,b.pltype=a.CF);return b};
g.NH=function(a){return AH(a)&&a.hc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Yd||null};
Yma=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Yz(b.text):a.paidContentOverlayText};
OH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?td(b.durationMs):a.paidContentOverlayDurationMs};
PH=function(a){var b="";if(a.hE)return a.hE;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.QH=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
RH=function(a){return!!(a.Ua||a.adaptiveFormats||a.Fi||a.Nh||a.hlsvp)};
wH=function(a){var b=g.jb(a.ea,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Y&&(RH(a)||g.jb(a.ea,"heartbeat")||b)};
HH=function(a,b){a=ks(a);var c={};if(b){b=g.q(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.q(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
Ema=function(a,b){var c,d;a.showShareButton=!!b;if(b=(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))a.Sj=!!b.copyTextEndpoint};
tma=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.Sg=m);if(a.Sg){if(m=a.Sg.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.Sg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Ga=n,a.C=!0):(a.Ga="",a.C=!1);if(n=m.defaultThumbnail)a.Lb=iH(n),
a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Fma(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.lC=n.title,a.UB=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Gg=!!m.addToWatchLaterButton;Ema(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0:
m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,r=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;r&&(a.Ep=new Pla(r));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=td(m.videoDurationSeconds));a.Z("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&dma(a,m.webPlayerActionsPorting);if(p=null===(l=
null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){r=0;for(var t=p.contents.length;r<t;r++){var u=p.contents[r].playlistPanelVideoRenderer;if(u){var x=u.shortBylineText?g.Yz(u.shortBylineText):"",y=u.title?g.Yz(u.title):"";m.push({author:x,encrypted_id:u.videoId,title:y,channel_path:r===n?b.channel_path:"",profile_picture:r===n?b.profile_picture:"",is_private:r===n?a.isPrivate:!1,is_dni:r===n?a.C:!1,dni_color:r===n?a.Ga:
""})}}}b={index:p.currentIndex,list:p.playlistId,playlist_length:p.totalVideos,video:m};p.titleText&&(b.title=g.Yz(p.titleText));p.shortBylineText&&(b.author=g.Yz(p.shortBylineText));a.SJ=b}}if(a.Z("embeds_enable_playability_on_web_preview")&&a.Sg.previewPlayabilityStatus){a.Tp=a.Sg.previewPlayabilityStatus;b=a.Tp;var B;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){p=b.errorScreen;if(m=null===p||void 0===p?void 0:p.playerErrorMessageRenderer){a.lB=m;if(n=m.reason)a.errorReason=g.Yz(n);if(m=
m.subreason)a.di=g.Yz(m)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":(null===(B=null===p||void 0===p?void 0:p.playerKavRenderer)||void 0===B?0:B.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Sg.playabilityStatus&&(a.Nj=a.Sg.playabilityStatus,Zma(a)&&(a.errorDetail="0",a.Nj&&(B=a.Nj.embeddedPlayerErrorMessageRenderer)))&&
(a.lB=B.embeddedPlayerErrorMessageRenderer);(B=a.Sg.attestation)&&Zla(a,B)}};
Gma=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.si(d)};
Fma=function(a,b,c){var d,e,f,h=c.channelThumbnail;h&&(h=h.thumbnails)&&(h=h[0])&&(b.profile_picture=h.url);if(h=null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.channelThumbnailEndpoint)||void 0===d?void 0:d.channelThumbnailEndpoint)||void 0===e?void 0:e.urlEndpoint)||void 0===f?void 0:f.urlEndpoint)b.channel_path=h.url;if(h=c.collapsedRenderer)if(h=h.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var l=h.title;l&&(b.title=g.Yz(l));if(h=h.subtitle)b.subtitle=g.Yz(h)}if(c=c.expandedRenderer)if(c=
c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.Yz(h);if(h=c.subtitle)b.expanded_subtitle=g.Yz(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Kh=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.rA=b.toggledServiceEndpoint||null,a.qA=b.defaultServiceEndpoint||
null):(a.rA=b.defaultServiceEndpoint||null,a.qA=b.toggledServiceEndpoint||null))}};
g.SH=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
TH=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.UH=function(a){return!!a.i&&LE(a.i)};
g.VH=function(a){return!!a.i&&ME(a.i)};
Pma=function(a){return g.VH(a)||g.UH(a)||g.WH(a)||g.XH(a)};
g.XH=function(a){return!!a.i&&NE(a.i)};
g.WH=function(a){return!!a.i&&Qja(a.i)};
g.$ma=function(a){if(a.nA)return null;var b=a.JM;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.ana=function(a){return a.nA?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.YH=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.ZH=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};
$H=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.B.Ia};
aI=function(a){if(a.isAd()&&a.videoId!=a.B.Tb)return a.B.Tb};
bI=function(a){return a.Jk||"detailpage"==$H(a)||"shortspage"==$H(a)||a.mutedAutoplay};
cI=function(a){if(bI(a)){if("detailpage"==$H(a))return a.zk||0<a.qb;if(!("17_8"===a.adFormat&&!a.zk||g.S(a.B.experiments,"embeds_enable_autoplayblocked_ping_fix")&&a.jH||"adunit"==$H(a)&&a.bh))return!0}return!1};
bna=function(a){var b=1,c=g.U(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Yi;a.u&&a.u.i&&a.u.i[0]&&a.Gp[a.u.i[0].id]&&(c=a.Gp[a.u.i[0].id]);if(a.Z("html5_stateful_audio_normalization")&&null!=c){if(a.bH)return Math.min(1,Math.pow(10,-a.VA/20))||b;var d=0;g.S(a.B.experiments,"html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.Jh,g.U(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.VA=c}return Math.min(1,Math.pow(10,-c/20))||b};
CH=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.Be&&(g.ZF(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Be=!0);if(b=g.vt())b=/Starboard\/([0-9]+)/.exec(g.Uc),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;
!a.Be&&(c||fla(a.B))&&!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.Be=!0);return!a.B.deviceHasDisplay||a.Be&&a.B.u};
cna=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
eI=function(a){return dI(a)&&!!a.adaptiveFormats};
dI=function(a){return!!(a.Z("woffle_orchestration")&&a.rl&&a.B.u)};
Cma=function(a){if(a.Z("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===ZG(b);a=b&&!a.rl}else a=!1;return a};
g.fI=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&CB(b[a.l.id].l.i)&&!!b[a.J.id]&&CB(b[a.J.id].l.i)};
Zma=function(a){return(a=a.Nj)&&a.showError?a.showError:!1};
g.GH=function(a){return a.Z("disable_rqs")?!1:DH(a,"html5_high_res_logging")};
DH=function(a,b){return a.Z(b)?!0:(a.fflags||"").includes(b+"=true")};
dna=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
yma=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.vF=b.quartile_0_url,a.LF=b.quartile_25_url,a.xG=b.quartile_50_url,a.zG=b.quartile_75_url,a.KF=b.quartile_100_url,a.Xp=b.quartile_0_urls,a.xF=b.quartile_25_urls,a.jA=b.quartile_50_urls,a.kA=b.quartile_75_urls,a.wF=b.quartile_100_urls};
zH=function(a){return a?rF()?!0:gI&&5>hI?!1:!0:!1};
xma=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};
$la=function(a){if(a){if(Kz(a))return a;a=Lz(a);if(Kz(a,!0))return a}return""};
g.ena=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.QH(a,"yt:cc_default_lang")||a.B.Xd};
iI=function(a,b){this.i=a;this.La=b||{};this.L=String(Math.floor(1E9*Math.random()));this.J={};this.V=0};
fna=function(a){return jI(a)&&1==a.getPlayerState(2)};
jI=function(a){a=a.Gc();return void 0!==a&&2==a.getPlayerType()};
kI=function(a){a=a.T();return uG(a)&&!g.IG(a)&&"desktop-polymer"==a.playerStyle};
lI=function(a,b){var c=a.T();VF(c)||"3"!=c.controlsType||a.bb().Pv(b)};
nI=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=mI(a)};
mI=function(a){return a+(":"+(yr.getInstance().i++).toString(36))};
oI=function(a){this.W=a};
gna=function(a,b){var c;if(!(c=0===b)){if(b=1===b)b=g.S(a.W.experiments,"check_ad_ui_status_for_mweb_safari")&&a.W.i&&g.dj?!1:a.W.i||g.IG(a.W)||g.vG(a.W)||wG(a.W)||!g.dj;c=b}if(c)return!0;a=g.dg("video-ads");return null!=a&&"none"!==Fl(a,"display")};
hna=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}};
pI=function(){g.Q.call(this);var a=this;this.i={};g.hf(this,function(){for(var b=g.q(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
rI=function(){if(null===qI){qI=new pI;Cm(rq).i="b";var a=Cm(rq),b="h"==aq(a)||"b"==aq(a),c=!(Mm(),!1);b&&c&&(a.C=!0,a.I=new Lfa)}return qI};
ina=function(a,b,c){a.i[b]=c};
jna=function(a){this.u=a;this.l={};this.i=kl()?500:g.vG(a.T())?1E3:2500};
lna=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.l||(a.l[c.mimeType]=a.u.canPlayType(c.mimeType));return a.l[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return kna(a,b)};
kna=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,b=g.q(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
sI=function(a,b,c){this.i=a;this.C=b;this.u=c;this.l=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
tI=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||[]]])};
mna=function(a){return(a=a.pings)?Object.fromEntries(tI(a)):{}};
uI=function(a,b,c,d,e){iI.call(this,a,mna(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ra=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.u=new sI(0,[]);this.I=this.Da=null;this.Ua=b;this.Ga=[];this.C={};this.Aa=null;this.l=0;this.ea=this.va=this.B=null;this.ya=e;this.Y=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.Aa=b);this.C=js(this.i.playerVars||"");if(b=this.i.external)this.Ga=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.l=b/1E3,this.C.length_seconds=
this.l.toString()),(b=lna(this.Ua,this.Ga))?(this.va=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.va)+"&type="+encodeURIComponent(b)):this.ea=Error("Nonplayable third party ad media file.");else if(this.B=this.i.externalVideoId||null,this.Da=this.C.ucid||null,this.l=IF(this.l,this.C.length_seconds),this.ya&&this.B&&(this.Y=this.ya(this.B)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.ds(f)}this.I=
this.i.clickthroughEndpoint||null;this.u=new sI(0,[this.l])};
nna=function(a){var b=a.C||{};1<a.u.l&&(b.slot_pos=a.u.i);b.autoplay="1";return b};
vI=function(a){return 0<a.l&&7.05>=a.l};
wI=function(){this.i=[];this.l=0};
xI=function(a,b){b&&a.i.push(b)};
yI=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};
zI=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};
AI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
BI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
ona=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=yI(a.impressionCommands)||[];b.error=yI(a.errorCommands)||[];b.mute=yI(a.muteCommands)||[];b.unmute=yI(a.unmuteCommands)||[];b.pause=yI(a.pauseCommands)||[];b.rewind=yI(a.rewindCommands)||[];b.resume=yI(a.resumeCommands)||[];b.skip=yI(a.skipCommands)||[];b.close=yI(a.closeCommands)||[];b.clickthrough=yI(a.clickthroughCommands)||[];b.fullscreen=yI(a.fullscreenCommands)||[];b.active_view_viewable=yI(a.activeViewViewableCommands)||
[];b.active_view_measurable=yI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=yI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=yI(a.endFullscreenCommands)||[];b.channel_clickthrough=yI(a.channelClickthroughCommands)||[];b.abandon=yI(a.abandonCommands)||[];b.progress=zI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=zI(a.progressCommands.filter(function(c){return BI(c)&&Qf(AI(c),0)}));
b.first_quartile=zI(a.progressCommands.filter(function(c){return BI(c)&&Qf(AI(c),.25)}));
b.midpoint=zI(a.progressCommands.filter(function(c){return BI(c)&&Qf(AI(c),.5)}));
b.third_quartile=zI(a.progressCommands.filter(function(c){return BI(c)&&Qf(AI(c),.75)}));
b.complete=zI(a.progressCommands.filter(function(c){return BI(c)&&Qf(AI(c),1)}));
return b};
CI=function(a){iI.call(this,a,ona(a));this.l=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
pna=function(a,b,c,d){this.id=b;this.Y=a.placementStartPings||[];this.ea=a.placementEndPings||[];this.B=d.Kd;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=Wz(b,d);if(null==f)d=new Tz(b,new Zq(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(yr.getInstance().i++).toString(36);var h=d.daiEnabled||d.Kd;f=new Tz(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Kd||0<d.i)if(d=Wz(b,d,!0))h=new Tz(b,d,!1,"prefetch:"+e,3),f.u=h,h.u=f;d=[h,f]}this.va=d[0];this.i=d[1];this.l=c;this.J=!1;this.C={};this.V={};this.L=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
DI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
FI=function(a){var b={};qna(a,b);rna(b);b.LACT=EI(function(){return zu().toString()});
b.VIS=EI(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=EI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
sna=function(a){var b={};if(!a.kind)return g.by(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.by(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=EI($a(Math.round(td(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=EI($a("0"));return b};
EI=function(a){return{toString:function(){return a()}}};
tna=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.Rb(c))return a;var f=Object.assign({},a),h=b?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};
qna=function(a,b){b.CPN=EI(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.cy(Error("Video data is null.")),c=null);return c});
b.AD_MT=EI(function(){return una(a,2)});
b.MT=EI(function(){return una(a,1)});
b.P_H=EI(function(){return a.bb().dg().height.toString()});
b.P_W=EI(function(){return a.bb().dg().width.toString()});
b.PV_H=EI(function(){return a.bb().getVideoContentRect().height.toString()});
b.PV_W=EI(function(){return a.bb().getVideoContentRect().width.toString()})};
una=function(a,b){a=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,a)).toString()};
rna=function(a){a.CONN=EI($a("0"));a.WT=EI(function(){return Date.now().toString()})};
vna=function(a){var b=Object.assign({},{});b.MIDROLL_POS=DI(a)?EI($a(Math.round(a.i.start/1E3).toString())):EI($a("0"));return b};
wna=function(a){var b={};b.SLOT_POS=EI($a(a.u.i.toString()));return b};
xna=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};
GI=function(a){for(var b={},c=g.q(yna),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
HI=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};
II=function(){};
JI=function(a){this.So=a};
KI=function(a){this.Ho=a};
zna=function(a,b,c,d,e,f){e=void 0===e?new KI(new JI(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.ad=a;this.u=b;this.macros=c;this.i=d;this.Mh=e;this.daiEnabled=f;this.l={HF:.25,SECOND:.5,SG:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.La.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds})};
Cna=function(a,b,c){!LI(a)&&0<c&&(MI(a,b),NI(a)?Ana(a,b,c):Bna(a,b,c))};
PI=function(a,b){LI(a)||(NI(a)?(MI(a,0,!0),Ana(a,b,b)):(MI(a,0,!0),Bna(a,0,0,!0)),OI(a,"complete"))};
MI=function(a,b,c){for(c=void 0===c?!1:c;a.ad.V<a.progressPings.length;){var d=QI(a,"progress"),e=a.progressPings[a.ad.V];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&RI(a,f,d,e.headers||[]);a.ad.V++}else break}};
Bna=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.l.HF||d)&&OI(a,"first_quartile");(b>=c*a.l.SECOND||d)&&OI(a,"midpoint");(b>=c*a.l.SG||d)&&OI(a,"third_quartile")};
SI=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;OI(a,b)};
Ana=function(a,b,c){if(0<c&&0<b){var d=a.i.ub(a.i.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(SI(a,"first_quartile",b,c*a.l.HF),SI(a,"midpoint",b,c*a.l.SECOND),SI(a,"third_quartile",b,c*a.l.SG))}a.lastUpdatedTimeSecs=b};
TI=function(a,b){for(var c=QI(a,b),d=g.q(a.ad.La[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&RI(a,f,c,e.headers||[])}a.ad.J[b]=!0};
OI=function(a,b){a.ad.J.hasOwnProperty(b)||TI(a,b)};
UI=function(a,b){return a.ad.J.hasOwnProperty(b)};
RI=function(a,b,c,d){for(var e=a.Mh,f=e.send,h={},l=FI(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.macros);f.call(e,b,a,c,d)};
QI=function(a,b){var c=a.u;a=a.ad;if(a.Nu())if(b=Dna(b),null==b)c={};else{var d;(d=a.Ia()())||(d=(d=c.G)&&d.Gc?(d=d.Gc())&&2==d.getPlayerType()?VI(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=vq(b,a.L,c)):c={}}else c={};return c?Object.assign({},c):{}};
NI=function(a){return!g.S(a.i.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
LI=function(a){return NI(a)&&!UI(a,"impression")};
Ena=function(a){return NI(a)&&UI(a,"seek")};
g.WI=function(a,b){this.state=a;this.Gn=b};
XI=function(a,b){return g.V(a.state,b)&&!g.V(a.Gn,b)?1:!g.V(a.state,b)&&g.V(a.Gn,b)?-1:0};
g.YI=function(a,b){return 0<XI(a,b)};
ZI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.Q.call(this);this.G=a;this.l=d;this.u=e;this.u.i[b.L]=this;this.u.subscribe("adactiveviewmeasurable",this.kL,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.lL,this);this.u.subscribe("adoverlaymeasurableimpression",this.mL,this);this.u.subscribe("adoverlayunviewableimpression",this.nL,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.oL,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.pL,this);
this.u.subscribe("adviewableimpression",this.qL,this);this.ad=b;this.va=[];this.macros=c;this.I=!1;this.Aa=!gna(new oI(this.G.T()),f)};
$I=function(a,b){sb(a.va,b);Fna(a,b,1)};
Gna=function(a){a=a.l;a.macros=HI(a.macros,xna(0,"No playable media files can be selected"));OI(a,"error")};
Fna=function(a,b,c){0!=b.length&&(b=g.Qe(b,function(d){return new Xz(d,c,d.id)}),a.X("onAdUxUpdate",b))};
aJ=function(a){var b={};b.abandon=a.abandonCommands&&yI(a.abandonCommands.commands)||[];iI.call(this,a,b)};
bJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;nI.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.oh=e;this.Mi=f};
cJ=function(a,b,c,d,e,f){ZI.call(this,a,b,c,d,e,1);this.B=b;this.i=b.i.durationMilliseconds||0;this.Hb=null;this.C=f};
dJ=function(a){iI.call(this,a);this.l=js(this.i.playerVars||"")};
eJ=function(){iI.apply(this,arguments)};
fJ=function(){iI.apply(this,arguments)};
Hna=function(a,b,c,d,e,f){this.I=a;this.B=b;this.i=c;this.C=d;this.u=e;this.l=f};
gJ=function(a,b,c,d,e){ZI.call(this,a,b,c,d,e);var f=this;this.C=b;this.i=new g.J(function(){f.Yg("load_timeout")},1E4);
g.F(this,this.i);this.B=new vx(this);g.F(this,this.B)};
Ina=function(a){nI.call(this,"ad-message",a)};
hJ=function(a,b,c,d,e,f,h){ZI.call(this,a,b,c,d,e);var l=this;this.J=b;this.L=b.i.durationMs||0;this.C=h;this.V=!1;this.B=this.i=0;this.ea=function(){var m=l.G.getProgressState().current;m<l.i?l.eg():m>l.B&&l.qh()}};
Kna=function(a){if(a.C&&a.V){a.V=!1;a=g.q(a.C.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.l=void 0;Jna(b.u(),c)}else R("Received AdNotify terminated event when no slot is active")}};
Lna=function(){nI.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.iJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={gA:c.gA},e=d.next())e=e.value,c.gA=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.gA}}(c));
return a};
jJ=function(a){return a?g.Yz(a):null};
Mna=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};
Nna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Ona=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Rna=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&&(Pna(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=jJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Qna(a,b,c,d))}};
Pna=function(a,b,c){var d=jJ(b.confirmLabel)||"",e=jJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(jJ(l.value)||"");h=b.headerTitle?g.Yz(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:jJ(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)}};
Qna=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:jJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Mna(b.navigationEndpoint);var h=Ona(b[1]),l=[Ona(b[0])];(b=Nna(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)};
Sna(a,e,d)}}};
Sna=function(a,b,c){a.muteAdInfo.goneText=jJ(b.title)||"";a.muteAdInfo.questionText=jJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=jJ(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=jJ(e.reason)||"";e=Mna(e.endpoint)[0];a.push({label:d,url:e})}};
Tna=function(a,b){var c=new Lna;c.adBadgeText="Ad";1<a.l&&(c.adPodPositionInfoString=g.iJ("$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};
kJ=function(a,b,c,d,e,f){this.l=a;this.u=b;this.i=FI(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.B=c;this.C=d;this.I=e};
Una=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.pd(e):a.B.jn()};
b.skipShown=function(){a.pd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
Vna=function(a,b,c){Rna(b,c,function(d){a.pd(d)},function(d){a.sendAdsPing(d)})};
Wna=function(a){if(g.S(a.C.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.u;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.u)};
Xna=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,adBreakEndSeconds:null}};
Yna=function(a,b,c,d,e,f,h){this.i=c;this.l=new kJ(a,b,d,e,f,void 0);this.u=h};
Zna=function(a,b,c){var d=Xna();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){a.l.pd(e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Una(a.l,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Vna(a.l,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=vI(a.i)&&!d.isSkippable;d.isPostroll=a.i.isPostroll;a.i.isSkippable();b=a.i.B;c=a.i.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.i.I)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.l.sendAdsPing(e)};
d.daiEnabled=a.u;d.remoteSlotsData=a.i.Y;return d};
lJ=function(a){this.value=a};
mJ=function(a){this.value=a};
nJ=function(a){this.value=a};
oJ=function(a){this.value=a};
pJ=function(){lJ.apply(this,arguments)};
qJ=function(a){this.value=a};
rJ=function(a){this.value=a};
sJ=function(a){this.value=a};
tJ=function(a){this.value=a};
uJ=function(a){this.value=a};
vJ=function(a){this.value=a};
wJ=function(){lJ.apply(this,arguments)};
xJ=function(){lJ.apply(this,arguments)};
yJ=function(a){this.value=a};
zJ=function(a){this.value=a};
AJ=function(a){this.value=a};
BJ=function(a){this.value=a};
CJ=function(a){this.value=a};
DJ=function(a){this.value=a};
EJ=function(a){this.value=a};
FJ=function(a){this.value=a};
GJ=function(a){this.value=a};
HJ=function(a){this.value=a};
IJ=function(a){this.value=a};
JJ=function(a){this.value=a};
KJ=function(a){this.value=a};
LJ=function(a){this.value=a};
MJ=function(a){this.value=a};
NJ=function(a){this.value=a};
OJ=function(a){this.value=a};
PJ=function(a){this.value=a};
QJ=function(a){this.value=a};
RJ=function(a){this.value=a};
SJ=function(a){this.value=a};
TJ=function(a){this.value=a};
UJ=function(a){this.value=a};
VJ=function(a){this.value=a};
WJ=function(a){this.value=a};
XJ=function(a){this.value=a};
YJ=function(a){this.value=a};
ZJ=function(a){this.value=a};
$J=function(a){this.value=a};
aK=function(a){this.value=a};
bK=function(a){this.value=a};
cK=function(a){this.value=a};
dK=function(){lJ.apply(this,arguments)};
eK=function(){lJ.apply(this,arguments)};
fK=function(){lJ.apply(this,arguments)};
gK=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 $na(a)?!0:!1};
aoa=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=$na(a)):b=!1:b=!1;return b};
$na=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
coa=function(a,b,c,d,e,f){this.i=new kJ(a,b,c,d,e,boa(f))};
doa=function(a,b){var c=Xna();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.pd(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Una(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Vna(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
boa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=EI(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=EI(a);return b};
hK=function(a,b,c){g.Q.call(this,!0);var d=this;this.I=b;this.C=c;this.l=a;this.Hb=new g.jh(200);this.Hb.Pa("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.Hb.stop());e=d.i/1E3;d.C&&d.C.Rb(e);eoa(d,{current:e,duration:d.l/1E3})});
g.F(this,this.Hb);this.i=0;this.u=null;g.hf(this,function(){d.u=null});
this.B=0};
eoa=function(a,b){a.I.Na("onAdPlaybackProgress",b);a.u=b};
iK=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;nI.call(this,"survey",a,{},b,c);this.oh=d;this.Mi=e};
jK=function(a,b,c,d,e,f,h){ZI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new vx;g.F(this,this.B);this.B.N(this.G,"resize",function(){450>l.G.bb().dg().width&&(g.xx(l.B),l.eg())});
this.L=0;this.J=h(this,function(){return""+(Date.now()-l.L)});
if(this.i=g.vG(a.T())?new hK(1E3*b.l,a,f):null)g.F(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.J.pd(m&&m.timeoutCommands)):g.by(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
kK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;nI.call(this,"survey-interstitial",a,b,c,d);this.oh=e;this.HE=f};
lK=function(a,b,c,d,e){ZI.call(this,a,b,c,d,e,1);this.i=b};
goa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ji(window.location.href);e&&d.push(e);e=g.ji(a);if(g.jb(d,e)||!e&&oc(a,"/"))if(g.Zr("autoescape_tempdata_url")&&(d=document.createElement("a"),g.kd(d,a),a=d.href),a&&(a=li(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Rx()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&foa(a,b,f)}else foa(a,b)};
foa=function(a,b,c){a="ST-"+sd(a).toString(36);b=b?g.si(b):"";c=c||5;g.Zr("drop_st_cookie_before_cb")&&!Jt()||g.lt(a,b,c)};
g.ioa=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.ui(a,b)+c;var e=void 0===e?vl:e;e=wl(a,e)||hoa;d.href=Aj(e)};
g.mK=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&goa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.ioa(a))};
g.nK=function(a,b,c,d){c&&goa(a,c);c=g.Kc(a);c=g.Gc(c);a!=c&&fs(Error("Unsafe window.open URL: "+a));a=c;b=b||sd(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("attribution-reporting")))try{a=joa(a);var h=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,h);return}catch(l){}window.open(a,b)};
joa=function(a){return"www.googleadservices.com"!==g.ji(a)?a:a+"&nis=3"};
koa=function(a){a=void 0===a?null:a;nI.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
loa=function(a){a=void 0===a?null:a;nI.call(this,"ad-title");this.videoTitle=a};
moa=function(a){a=void 0===a?null:a;nI.call(this,"advertiser-name");this.channelName=a};
oK=function(a,b,c,d,e){e=void 0===e?!1:e;nI.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.i=d;this.Mi=e};
noa=function(a){nI.call(this,"skip-button",a)};
ooa=function(a){nI.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};
pK=function(a,b,c,d,e,f,h,l,m,n,p){ZI.call(this,a,b,c,d,e,1);var r=this;this.Ux=!0;this.Y=m;this.i=b;this.B=f;this.ya=new vx(this);g.F(this,this.ya);this.C=new g.J(function(){r.Yg("load_timeout")},1E4);
g.F(this,this.C);this.ea=!1;this.Da=l(this);this.J=h;this.L=n;this.V=p};
poa=function(a){if(a.J&&(g.S(a.G.T().experiments,"enable_topsoil_wta_for_halftime")||g.S(a.G.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))){var b=a.i.u,c=b.B,d=b.u,e=b.i;b=b.C;if(void 0===c)g.by(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.by(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)}};
sK=function(a,b){if(null!==a.Y){var c=qoa(a);a=g.q(a.Y.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(roa(d,e,[],!1),soa(d.u(),d.l),toa(d.u(),d.l),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}qK(d.u(),d.l,d.i,e);if(h){e=d.u();h=d.l;rK(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.q(e.Jd);for(f=e.next();!f.done;f=e.next())f.value.zj(h);Jna(d.u(),d.l)}d.l=
null;d.i=null}}}};
tK=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
qoa=function(a){if(a=a.i.i.elementId)return a;g.by(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
uK=function(a){var b=a.i.i,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.G.T();if(g.IG(d)&&!c.skipOrPreviewRenderer){var e=a.G.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.IG(d)&&g.by(new g.Pv("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.i.isSkippable()&&!vI(a.i)?d.skipAdRenderer=uoa(a):d.adPreviewRenderer=voa(a,!1,vI(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Rb(c.skipOrPreviewRenderer)&&
g.by(new g.Pv("IAPOR.skipOrPreview was filled, but empty.",b));return c};
uoa=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=voa(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
voa=function(a,b,c){var d=a.G.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.iJ("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.iJ("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.iJ("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=CG(a.G.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
woa=function(a){function b(l,m){l=a.gV;var n=Object.assign({},{});n.FINAL=EI($a("1"));n.SLOT_POS=EI($a("0"));return HI(l,GI(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var r=b(m,n);
n=a.Mz(m,r);m=l(m,r,n,p);g.F(m,n);return m}}}
var d=c(function(l,m,n){return new cJ(a.G,l,m,n,a.Zo,a.Va)}),e=c(function(l,m,n){return new lK(a.G,l,m,n,a.Zo)}),f=c(function(l,m,n){return new hJ(a.G,l,m,n,a.Zo,a.Va,a.Tl)}),h=c(function(l,m,n){return new gJ(a.G,l,m,n,a.Zo,a.Va)});
this.nP=new Hna({create:function(l,m){var n=HI(b(l,m),GI(wna(l)));m=a.Mz(l,n);var p=new pK(a.G,l,n,m,a.Zo,a.Va,a.daiEnabled,function(r){return new Yna(a.Va,n,l,r,a.G,a.Mh,a.daiEnabled)},a.Ul,a.Dh,a.Hd);
g.F(p,m);return p}},{create:function(l,m){var n=a.Mz(l,m);
l=new jK(a.G,l,m,n,a.Zo,a.Va,function(p,r){return new coa(a.Va,m,p,a.G,a.Mh,r)});
g.F(l,n);return l}},d,e,f,h)};
vK=function(a,b){this.l=a;this.i={};this.u=void 0===b?!1:b};
xoa=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}b=Math.max(a.startSecs,0);return{IP:new Zq(b,c),ZQ:new Az(b,c-b,a.context,a.identifier,a.event,a.i)}};
wK=function(){this.i=[]};
xK=function(a,b,c){var d=g.xb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
yoa=function(){this.i=new wK};
yK=function(a){this.i=a};
zoa=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};
Aoa=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()};
Coa=function(a,b){var c=void 0===c?Date.now():c;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;zK({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Boa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.l&&("unknown"===d.event&&AK("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.B&&a.u.getCurrentTime()>d&&AK("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
Doa=function(a,b,c){a.l&&zK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Eoa=function(a,b){a.l&&zK({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.vP}})};
AK=function(a,b){zK({daiStateTrigger:{errorType:a,contentCpn:b}})};
zK=function(a){g.Kv("adsClientStateChange",a)};
Boa=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"}};
BK=function(a){this.G=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.fg=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Foa=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.fg=!1;a.i=!1};
Goa=function(a){a.i=!1;LA("video_to_ad",["apbs"],void 0,void 0)};
Ioa=function(a){a.B?Hoa(a):(a.i=!1,LA("ad_to_ad",["apbs"],void 0,void 0))};
Hoa=function(a){a.i=!1;LA("ad_to_video",["pbresume"],void 0,void 0)};
Joa=function(a){a.fg&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(NA("apbs",void 0,a.actionType),g.Zr("finalize_all_timelines")&&(a=a.actionType,IA("c",a),tA(a),HA(a))))};
Koa=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.Moa=function(a){return(a=Loa[a.toString()])?a:"LICENSE"};
CK=function(){g.E.call(this);this.l=null;this.I=this.C=!1;this.u=new g.Jf;g.F(this,this.u)};
DK=function(a){a=a.Bu();return 1>a.length?NaN:a.end(a.length-1)};
Noa=function(a,b,c){a.ym()||a.getCurrentTime()>b||10<c||(a.play(),g.Us(function(){Noa(a,a.getCurrentTime(),c+1)},500))};
Ooa=function(a,b){a.l&&null!==b&&b.i===a.l.i||(a.l&&a.l.dispose(),a.l=b)};
EK=function(a){return sE(a.Qf(),a.getCurrentTime())};
Poa=function(a,b){if(0===a.rh()||0<a.Zi())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Bu(),a.length||!c)?pE(a,b):c};
Qoa=function(a){var b=a.Qf();return 0<rE(b)&&a.getDuration()?b.end(b.length-1):0};
FK=function(a){switch(a.Zi()){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.GK=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
HK=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.GK(b,c)};
IK=function(a,b){return HK(a,a.state|b)};
JK=function(a,b){return HK(a,a.state&~b)};
KK=function(a,b,c){return HK(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.LK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.MK=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
NK=function(a){return a.yc()&&!g.V(a,16)&&!g.V(a,32)};
Roa=function(a){return g.V(a,8)&&g.V(a,16)};
g.OK=function(a){return g.V(a,1)&&!g.V(a,2)};
PK=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
QK=function(a,b,c,d,e,f,h,l){g.Q.call(this);this.Of=a;this.G=b;this.i=d;this.J=this.i.l instanceof iI?this.i.l:null;this.l=null;this.ea=!1;this.C=c;this.V=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.va=0;this.ya=!1;this.Cl=e;this.lr=f;this.Fo=h;this.Y=!1;this.daiEnabled=l};
Soa=function(a){if(jI(a.G)){var b=a.G.getVideoData(2);b=a.i.V[b.Vc]||null;if(!b)return a.lk(),!0;(!a.l||a.l&&a.l.ad!==b)&&a.ct(b)}else if(1===a.G.getPresentingPlayerType()&&a.l)return a.lk(),!0;return!1};
Toa=function(a){(a=a.baseUrl)&&g.Bu(a,void 0,yq(a))};
Uoa=function(a,b){a.C.Ht(a.i.i.i,b,a.wI(),a.yI(),a.isLiveStream())};
RK=function(a){Voa(a.Of,a.i.i,a);a.daiEnabled&&!a.i.J&&(Woa(a,a.zI()),a.i.J=!0)};
Woa=function(a,b){for(var c=SK(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=Xoa(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(!Yoa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Xoa(p)},0);
Doa(a.Cl,a.i.i.nu(),b);Eoa(a.Cl,{cueIdentifier:a.i.B&&a.i.B.identifier,vP:e})};
Xoa=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};
SK=function(a){var b=a.i.i.end;a=xK(a.lr,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
Yoa=function(a,b,c,d){var e=a.Fo.create(b,GI(vna(a.i)),a.i.i.i);c=e.iI(c,d);g.ff(e);if(!c)return!1;a.i.V[c]=b;return!0};
UK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;a.ea=!0;g.ff(a.l);Ioa(a.C);b?b=!1:a.daiEnabled?(b=a.G.getCurrentTime(2,!0),b=1>=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.C.hasOwnProperty("ad_placement_end")){b=g.q(a.i.ea);for(var d=b.next();!d.done;d=b.next())Toa(d.value);a.i.C.ad_placement_end=!0}b=a.i.L;if(null!==b){d=a.Cl;var e=a.i.B&&a.i.B.identifier,f=a.i.i.start,h=SK(a);d.l&&zK({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h-
f).toString(),driftFromHeadMs:Math.round(1E3*d.u.Vm()).toString()}});a.i.L=null}c||a.daiEnabled?TK(a.Of,!0):a.V&&a.vG()&&a.Qu()?TK(a.Of,!1,Zoa(a)):TK(a.Of,!1);Uoa(a,!0)};
Zoa=function(a){if(a.ya)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Sa()/1E3)-a.va;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
$oa=function(a,b,c){this.i=a;this.l=b;this.u=c};
VK=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.I=new Map};
WK=function(){VK.i||(VK.i=new VK);return VK.i};
apa=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.Rx(c),l=g.Px(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Sy(a.client,h,l,[g.Lx(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Sy(a.client,h,l,[g.Lx(d.playerResponse.trackingParams)]))})};
bpa=function(a,b){XK(a,g.Lx(b),void 0,void 0)};
XK=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.Rx(d);c=c||g.Px(d);e&&c&&g.Sy(a.client,e,c,[b])}};
dpa=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){cpa(a,b,c);var f=g.Px(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,XK(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.Rx(h);var n=m[0]||g.Px(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={Ue:Sx(l),hm:l},"UNDEFINED_CSN"==l?Ry("visualElementStateChanged",m,n):h?ev("visualElementStateChanged",m,h,n):g.Kv("visualElementStateChanged",
m,n))}}};
g.Rx(c.layer)||a.u();if(c.eI)for(var d=g.q(c.eI),e=d.next();!e.done;e=d.next())apa(a,e.value,c.layer);else g.by(Error("Delayed screen needs a data promise."))};
cpa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.dV?c.dV:c.layer;var e=g.Rx(d);d=g.Px(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.O("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.bI,p=c.Ue,r=epa(),t={csn:r,pageVe:(new Kx({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?t.implicitGesture=
{parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.cy(new g.Pv("newScreen() parent element does not have a VE - rootVe",b));n&&(t.cloneCsn=n);n={Ue:p,hm:r};m?ev("screenCreated",t,m,n):g.Kv("screenCreated",t,n);yv(Yy,new Qy(r));var u=r}catch(x){Cia(x,{Ov:b,rootVe:d,parentVisualElement:void 0,a9:e,q9:f,bI:c.bI});g.by(x);return}Ux(u,b,c.layer,c.Ue);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Zr("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(fpa));for(f=b.next();!f.done;f=
b.next())if(g.Rx(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Uy(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=u||"");g.MA("csn",u);cz.getInstance().clear();d=g.Px(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Zr("web_mark_root_visible")||g.Zr("music_web_mark_root_visible"))&&g.Ty(u,d,void 0);a.l.delete(c.layer||0);a.u=void 0;e=g.q(a.I);for(u=e.next();!u.done;u=e.next())u=g.q(u.value),b=u.next().value,u.next().value.has(c.layer)&&d&&XK(a,b,d,c.layer)};
YK=function(){this.i={};if(this.l=ot()){var a=g.mt("CONSISTENCY");a&&gpa(this,{encryptedTokenJarContents:a})}};
gpa=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.lt("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
ZK=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=hpa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
hpa=function(a){return void 0===a.localStorage?new uv("yt-client-location"):a.localStorage};
$K=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.by(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Wb(d);g.Zr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.O("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.iv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.kv(0,165)?h="USER_INTERFACE_THEME_DARK":g.kv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Zr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:nia()||h;e.userInterfaceTheme=
f;if(g.Zr("web_log_connection")&&!b){if(f=pv())e.connectionType=f;g.Zr("web_log_effective_connection_type")&&(f=rv())&&(d.client.effectiveConnectionType=f)}f=g.ls(g.A.location.href);!g.Zr("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);if("MWEB"===e.clientName||"WEB"===e.clientName)e.mainAppWebInfo={graftUrl:g.A.location.href},g.Zr("kevlar_woffle")&&fv.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=fv.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.Zr("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=gv()),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share;if(!g.Zr("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(B){}l=void 0}l&&(e.timeZone=l)}(l=g.O("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken;l=bs();YK.i||(YK.i=new YK);e=Lb(YK.i.i);
d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});!g.Zr("web_prequest_context_killswitch")&&(l=g.O("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=l);e=g.iv.getInstance();l=g.kv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=!0);(l=g.O("DELEGATED_SESSION_ID"))&&!g.Zr("pageid_as_header_web")&&(d.user.onBehalfOfUser=l);g.Zr("warm_op_csn_cleanup")?c&&(b=
g.Rx())&&(d.clientScreenNonce=b):!b&&(b=g.Rx())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});g.Zr("web_enable_client_location_service")&&ZK.getInstance().setLocationOnInnerTubeContext(d);var m;try{var n=Qs(void 0),p=n.bid;delete n.bid;d.adSignalsInfo={params:[],bid:p};for(var r=g.q(Object.entries(n)),t=r.next();!t.done;t=r.next()){var u=g.q(t.value),x=u.next().value,y=u.next().value;null===(m=d.adSignalsInfo.params)||void 0===m?void 0:m.push({key:x,value:""+y})}}catch(B){g.by(B)}return d};
aL=function(){this.TV=!0};
ipa=function(a,b,c){return Ug(a.tx(b,c))};
bL=function(){aL.apply(this,arguments);this.Zp={}};
jpa=function(){cL||(cL=new bL);return cL};
kpa=function(a,b){b?a.Zp.Authorization="Bearer "+b:delete a.Zp.Authorization};
lpa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
mpa=function(){var a=null;Rt().then(function(b){return a=b},function(b){return a=lpa(b)});
return a};
npa=function(){var a=lh(1E3,"NO_BID");return $g(g.bh(gba([Rt(),a]),lpa),function(){return a.cancel()})};
opa=function(a){return a.Lb?g.kv(g.iv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
dL=function(a){this.player=a;this.l=this.i=1};
fL=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Ot,f=c.Zd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().Yj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:opa(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Vm(),LACT:zu(),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.bb().dg().height,
P_W:a.player.bb().dg().width,YT_REMOTE:h?h.join(","):""},m=Ps(Os);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Ns(b)&&(d.sts="18808",(e=a.player.T().Ya)&&(d.forced_experiments=e));b=os(g.zq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Vg(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&Ms()){var n=jpa();kpa(n,d)}n=a.player.Jl(n);a=ppa(a,b,l,c.isMdxPlayback);return g.eL(n,a,"/youtubei/v1/player/ad_break")};
spa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Ls(b),f=qpa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=qpa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=is(Qs(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=[];rpa.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};
vpa=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 tpa&&(f.clientName=tpa[d[0]]),d[1]in upa&&(f.platform=upa[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};
ppa=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=wpa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=xpa.test(b),l=ypa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=zpa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=Apa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.AG(a.player.T()),r=$K(a.player.getVideoData(1).La,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";spa(r,b,t.toString(),a.player.T());a={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18808,autonavState:opa(a.player.T())};d&&(d={},vpa(d,c.YT_REMOTE)&&(a.mdxContext=d));if(d=Bpa.includes(p)?void 0:g.mt("PREF")){for(var u=d.split(/[:&]/),x=0,y=u.length;x<y;x++){var B=u[x].split("=");if(("SML"===B[0].toUpperCase()||"GSML"===B[0].toUpperCase())&&1<B.length&&"TRUE"===B[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
Cpa)for(d=d.split(/[:&]/),x=Cpa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,u="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,B=d.length;y<B;y++){var G=d[y].split("=");if(G[0]===u&&parseInt("0x"+G[1],16)&x){d=!0;break a}}d=!1}a.autoCaptionsDefaultOn=d}b=Dpa.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:is(Qs(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};
gL=function(a,b,c,d,e,f){g.Q.call(this);this.I=a;this.l=b;this.u=c;this.C=d;this.i=e;this.B=f;g.S(this.u.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")||Epa(this)};
Fpa=function(a,b){var c={isEmpty:!0,vJ:!1,wl:[]};if(!b)return c;b&&b.trackingParams&&bpa(WK(),b.trackingParams);if(b&&b.adThrottled)return c.vJ=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.kb(b))return c;if(0<a.i.i.end){var d=a.i.i.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.wl=b;
c.isEmpty=!1;return c};
Epa=function(a){[a.i.va,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Voa(a.l,b,a)})};
hL=function(a,b,c,d,e,f,h,l){QK.call(this,a,b,c,d,e,f,h,l);this.u=d.l;this.B=-1;this.I=null;this.L=Gpa(this.Cx())};
Hpa=function(a){a.B++;var b=a.Cx();b?a.ct(b):UK(a)};
Gpa=function(a){return a?Ipa.some(function(b){return a instanceof b}):!1};
Jpa=function(a){this.i=new $oa(function(b){b=new QK(a.Of,a.G,a.aI(),b,a.Cl,a.lr,a.Fo,a.daiEnabled);RK(b);return b},function(b){return new gL(a.oB,a.Of,a.G,a.Eo,b,a.Cl)},function(b){b=new hL(a.Of,a.G,a.aI(),b,a.Cl,a.lr,a.Fo,a.daiEnabled);
RK(b);return b})};
Kpa=function(a,b){wI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Kv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),xI(this,new eJ(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.q(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);xI(this,e);c.push(e.l);d.instreamVideoAdRenderer.isCritical&&(this.l=1)}else d.adActionInterstitialRenderer?(d=new aJ(d.adActionInterstitialRenderer),
xI(this,d)):d.adIntroRenderer&&(d=new dJ(d.adIntroRenderer),xI(this,d),this.l=1);this.i.filter(function(f){return f instanceof uI}).forEach(function(f,h){f instanceof uI&&(h=new sI(h,c),f.u=h)})}}};
Mpa=function(a,b){wI.call(this);xI(this,Lpa(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new CI(c.instreamSurveyAdRenderer);break a}}b=null}xI(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.l=1,a=new aJ(a.adActionInterstitialRenderer)):a=null:a=null;xI(this,a)};
Lpa=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.l=1,new aJ(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Kv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new eJ(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new fJ(b.surveyTextInterstitialRenderer):null};
Npa=function(a,b,c){this.u=a;this.i=b;this.l=c};
Opa=function(a){this.i=a};
Ppa=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 pna(b,c,h,d)}catch(l){g.ds(l)}};
Qpa=function(a){var b=new Opa(a.oP);return{vI:function(){return b}}};
iL=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.hf(this,function(){return b.i=null});
var c=ux(a);if(c){var d=function(){b.i&&b.i(!!sx())};
this.l.addEventListener(c,d);g.hf(this,function(){b.l.removeEventListener(c,d)})}};
jL=function(a){g.E.call(this);this.i=a};
Rpa=function(a){var b=window.document;return g.IG(a.T())?new iL(b):new jL(a)};
Spa=function(a){g.E.call(this);this.fN=new Aoa(a.G,a.contentCpn,a.daiEnabled)};
Tpa=function(a){kL=a&&a.data};
Vpa=function(a){Upa=a&&a.data};
Wpa=function(a){lL=a&&a.data};
Xpa=function(a){mL=a&&a.data};
Ypa=function(a){nL=a&&a.data};
Zpa=function(){nL=mL=lL=kL=null};
qL=function(a){g.E.call(this);var b=this;this.Fc=a;this.Dd=new Map;this.i=new Map;oL(this,"commandExecutorCommand",function(c,d,e){b.pd(c.commands,d,e)});
pL(this,"commandExecutorCommand",function(c,d){$pa(b,c.commands,d)});
oL(this,"clickTrackingParams",function(){});
pL(this,"clickTrackingParams",function(){})};
aqa=function(a,b){oL(a,b.qk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
bqa=function(a,b){pL(a,b.qk(),function(c,d){b.Ml(c,d)})};
oL=function(a,b,c){a.isDisposed();a.Dd.get(b)&&g.by(Error("Extension name "+b+" already registered"));a.Dd.set(b,c)};
pL=function(a,b,c){a.isDisposed();a.i.get(b)&&g.by(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
$pa=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())rL(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())rL(a,b.value,c)};
cqa=function(a,b){a.Fc.get().Na("innertubeCommand",{openPopupAction:b})};
dqa=function(a,b){a.Fc.get().Na("innertubeCommand",{confirmDialogEndpoint:b})};
rL=function(a,b,c){a.isDisposed();b.loggingUrls&&eqa(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?cqa(a,e):"confirmDialogEndpoint"===d?dqa(a,e):fqa.hasOwnProperty(d)||eqa(a,d,e,c)}};
gqa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Dd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.by(f)}else b=new g.Pv("Unhandled field",b),g.cy(b)};
eqa=function(a,b,c,d){(a=a.i.get(b))||new g.Pv("Unhandled field",b);try{a(c,d)}catch(e){g.by(e)}};
iqa=function(a,b,c,d){for(var e=!1,f=g.q(b.Ni.entries()),h=f.next();!h.done;h=f.next())h=g.q(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.rb&&"core"===h.gb&&(e=!0);e?(d=hqa(b,d))?c.NC(d):R("No triggering layout ID available when attempting to mute."):g.Jg(function(){a.lk()})};
hqa=function(a,b){if(b)return b;a=g.q(a.Ni.entries());for(b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.rb&&"core"===b.gb)return c.layoutId}};
jqa=function(a){var b=new JI(a.So),c=new KI(b);return{hQ:function(){return b},
AC:function(){return c}}};
Dna=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";default:return null}};
kqa=function(a){this.G=a;var b=Cm(rq),c=a.Ld();b.u!==c&&((b.u=c)||rga(b));g.S(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&jm(Mm().featureSet,"ssmol",1)};
lqa=function(a){g.E.call(this);this.i=a;this.l=new kqa(a.G)};
mqa=function(a){return function(){return new BK(a.i.G)}};
nqa=function(a){return function(b,c){return new zna(b,a.l,c,a.i.G,a.i.Mh,a.i.daiEnabled)}};
sL=function(a,b,c,d,e,f){g.Q.call(this);var h=this;this.i=c;this.Ia=null;this.Ya=d;this.eb=f.Dh;this.Za=f.Ln;this.l=null;this.u=new Map;d=this.i.T().experiments;var l=jqa({So:c.getVideoData(1)}),m=new lqa({Mh:l.AC(),G:c,daiEnabled:!1});g.F(this,m);this.Go=new Set;this.Ox=-1;this.ea=[];this.I=null;this.Y=new Map;this.J=new Map;this.L=new Set;this.B=new vx(this);g.F(this,this.B);this.C=new vx(this);g.F(this,this.C);this.va=this.Ua=this.ya=!1;this.V=g.IG(c.T());this.fb=e;e=new Spa({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
Y8:this,daiEnabled:!1,G:this.i});g.F(this,e);this.Da=e.fN;this.La=(new yoa({Z8:this,w9:g.S(d,"html5_recognize_predict_start_cue_point"),s9:g.S(d,"html5_persist_cue_range_killswitch")})).i;var n=Zb(GI(FI(this.i)));b=new woa({Va:this,Zo:rI(),Mh:l.AC(),G:this.i,gV:n,Mz:nqa(m),daiEnabled:!1,Ul:f.Ul,Dh:this.eb,Tl:f.Tl,Hd:b});this.Aa=(new Jpa({Eo:this.Ya,Fo:b.nP,oB:a,Of:this,Zo:rI(),aI:mqa(m),Cl:this.Da,lr:this.La,G:this.i,E9:n,Mz:function(p){return nqa(m)(p,n)},
daiEnabled:!1})).uI();this.Ga=Qpa({oP:new Npa(new jna(c),d,function(p){return h.J.has(p)?h.J.get(p):null})}).vI();
this.Ra=Rpa(this.i);g.F(this,this.Ra);this.jb=OG(this.i.T())?g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
sqa=function(a,b){var c=a.i.getVideoData(1);if(c.No||g.O("SERVED_VIA_SPF_HISTORY"))tL(a);else{if(kI(a.i)){var d=oqa(a.i);d.addEventListener("updateKevlarOrC3Companion",Tpa);d.addEventListener("onPlaShelfInfoCardsReady",Vpa);d.addEventListener("updateEngagementPanelAction",Wpa);d.addEventListener("changeEngagementPanelVisibility",Xpa);d.addEventListener("scrollToEngagementPanel",Ypa);window.addEventListener("yt-navigate-start",Zpa)}a.B.N(a.i,"applicationplayerstatechange",a.jS);a.B.N(a.i,g.Rz("ad"),
a.ID,a);a.B.N(a.i,g.Sz("ad"),a.DS,a);a.B.N(a.i,"aduxclicked",a.VR);a.B.N(a.i,"videodatachange",a.TU);b=pqa(a,b);b=qqa(a,b);b=rqa(a,b);0<b.length&&uL(a,b);a.I&&c.subscribe("cuepointupdated",a.uK,a);g.Jg(a.pW,a)}};
pqa=function(a,b){return b.filter(function(c){if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)){if(g.S(a.i.T().experiments,"html5_pacf_enable_non_dai_live_video_ads"))return R("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.IG(a.i.T())&&a.i.getVideoData(1).ji()||(a.I=c);return!1}return!0})};
qqa=function(a,b){a.Y=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.Y.set(c.elementId,c),!1):!0})};
rqa=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})};
tqa=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.ds(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof gL?!1:c instanceof QK?!c.yp():!0})};
tL=function(a){var b=uqa(a);if(0<b.length){var c=g.U(a.i.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.V&&g.vG(a.i.T())?(c=new g.J(function(){vqa(a,b)},c),g.F(a,c),c.start()):g.Jg(function(){vqa(a,b)})}};
uqa=function(a){for(var b=wqa(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.Go.delete(d.value);return b};
wqa=function(a){var b=[];a=g.q(a.Go);for(var c=a.next();!c.done;c=a.next())c=c.value,Uz(c)&&b.push(c);return b};
xqa=function(a,b,c){c=void 0===c?null:c;var d=a.Ga,e=d.create;var f=1E3*a.i.getDuration(1);f=new Bz(f,1E3*a.i.getCurrentTime(1)||0,!1,g.S(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};
vqa=function(a,b){if(!a.isDisposed()){b=g.q(b);for(var c=b.next();!c.done;c=b.next())a.ID(c.value)}};
uL=function(a,b,c){b=xqa(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Aa.create(d)})};
yqa=function(a){a.ya||(a.C.N(a.i,"presentingplayerstatechange",a.gN),a.C.N(a.i,"internalAbandon",a.LR),a.C.N(a.i,"progresssync",a.WU),a.C.N(a.i,"onVolumeChange",a.XU),a.C.N(a.Ra,"fullscreentoggled",a.PS),a.ya=!0);g.K(a.i.getRootNode(),"ad-showing");g.K(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&kI(a.i)&&g.K(a.i.getRootNode(),"ad-teal-design");a.i.Cj(2)};
TK=function(a,b,c){var d=!!a.l&&a.l||null,e=d&&d.yp()&&(jI(a.i)||!1);d=b&&d&&d.reset()||null;a.l&&zqa(a,a.l);a.l=null;a.Ox=-1;e&&Aqa(a,c);a.va||a.Za.Yo();b&&d&&(d.uG().l=!1,RK(d))};
Aqa=function(a,b){g.xx(a.C);a.ya=!1;g.Nq(a.i.getRootNode(),"ad-showing");a.jb?(a.va||a.Za.Yo(),Bqa(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),Bqa(a));g.Nq(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&g.Nq(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
Bqa=function(a){if(a.Ua)!a.V&&g.vG(a.i.T())&&(g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.Qn(2);else if(a.i.Qn(2),!a.V){var b=a.i.ub(1);g.V(b,4)&&!g.V(b,2)&&a.i.playVideo()}};
Voa=function(a,b,c){if(b instanceof Tz){if(a.V&&Vz(b)&&g.V(a.i.ub(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.u.has(b)?g.ds(Error(b.toString()+" has already been seen")):(a.Go.add(b),a.u.set(b,c),Uz(b)||a.i.Id([b],1))}else g.ds(Error("Should use AdCueRange instead of CueRange"))};
zqa=function(a,b){a=a.u;for(var c=g.q(a),d=c.next();!d.done;d=c.next()){d=g.q(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ff(b)};
vL=function(a){g.E.call(this);this.l=a};
wL=function(a){vL.call(this,!0);this.i=a};
Cqa=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.fl||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.qx()});
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 zu().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Dqa=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.ea=null;var d=(0,g.C)(a,b);this.i=new g.J(function(){return d(c.ea)},300);
g.F(this,this.i);this.V=this.L=Infinity};
Eqa=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};
xL=function(){var a="ytp-id-"+Fqa.toString();Fqa++;return a};
g.yL=function(a){g.E.call(this);this.Za={};this.Tb={};this.element=this.createElement(a)};
zL=function(a,b,c,d){if("{{"===d.substr(0,2))a.Tb[d]=[b,c];else return d};
Gqa=function(a,b){var c=[];if(!b)return c;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.D?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.og("BR"));c.push(g.pg(f))}):c.push(g.pg(d))}return c};
AL=function(a,b,c,d){if("child"===c){g.qg(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.D?[d]:d;c=Gqa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Bl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Gc(g.Kc(a))),b.setAttribute(c,a))};
g.W=function(a){g.yL.call(this,a);this.vb=!0;this.ea=!1;this.listeners=[]};
g.BL=function(a,b){b?a.show():a.hide()};
g.CL=function(a){g.W.call(this,a);this.Ia=new g.Q;g.F(this,this.Ia)};
DL=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.CL.call(this,c);this.api=a;this.Va=b;this.macros={};this.componentType=d;this.J=null;this.fb=h;this.layoutId=e;this.i=f;this.Ra=null;this.FL=new wL(this.element);g.F(this,this.FL);this.eb=this.N(this.element,"click",this.onClick);this.ya=[];this.va=new Dqa(this.onClick,this);g.F(this,this.va);this.jb=!1;this.V=null};
Hqa=function(a,b,c){a.Va?a.Va.executeCommand(b,a.macros,c):g.ds(Error("null or undefined adService"))};
EL=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return fs(Error("Got null or undefined adText object")),"";var c=g.rd(a.text);if(!a.isTemplated)return c;if(null==b)return fs(Error("Missing required parameters for a templated message")),c;a=g.q(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.q(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Iqa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.rd(a.thumbnails[0].url)};
Jqa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Tf(0,0):new g.Tf(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.Kqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
FL=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.GL=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.HL=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"}}]}};
Lqa=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"}}]}};
Mqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Kb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Nqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Kb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.IL=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"}}]}};
Oqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Pqa=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"}}]}};
Qqa=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"}}]}};
Rqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Sqa=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.JL=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"}}]}};
KL=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"}}]}};
Tqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Kb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
LL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.ML=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"}}]}};
Uqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Vqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Wqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Xqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.NL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.OL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
Yqa=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
PL=function(){return{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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"}}]}};
QL=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.IL();case "INFO_OUTLINE":return Sqa();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 LL();case "LIKE":return g.JL();case "DISLIKE":return Qqa();default:return g.cy(new g.Pv("Unexpected icon:",a)),null}};
RL=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={D:"button",Ea:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});DL.call(this,a,b,e,void 0===f?"button":f,c,d);this.l=this.u=this.B=null;this.C=h;this.hide()};
Zqa=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||[]};
SL=function(){g.E.call(this);var a=this;this.i=new Map;this.l=xha(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Bu(b[c],void 0,void 0)})};
$qa=function(){null==TL&&(TL=new SL);return TL};
UL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=ara(a))){b=ng("SPAN",null,b);break a}b=g.pg(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(bra(e,b))}return 1==c.length?c[0]:ng("SPAN",null,c)};
bra=function(a,b){var c=null,d=a.text;b&&(d=ara(d)||d);a.bold&&(c=ng("B",null,c||d));a.italics&&(c=ng("I",null,c||d));a.strikethrough&&(c=ng("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=ng("A",null,c||d),g.kd(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),$qa().register(c,a),g.K(c,"ytp-ad-has-logging-urls"));
return c||ng("SPAN",null,d)};
ara=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(ng("BR")),b.push(a[c]);return b}return null};
VL=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;DL.call(this,a,b,{D:"span",Ea:["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()};
WL=function(a){return a&&a.thumbnails&&!g.kb(a.thumbnails||null)&&a.thumbnails[0].url?g.rd(a.thumbnails[0].url):""};
XL=function(a,b,c,d,e,f){f=void 0===f?!1:f;DL.call(this,a,b,{D:"img",K:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.l=f;this.hide()};
YL=function(a,b,c,d,e,f){e=void 0===e?[]:e;DL.call(this,a,b,{D:"div",Ea:["ytp-ad-confirm-dialog-background"],S:[{D:"div",K:"ytp-ad-confirm-dialog-container",S:[{D:"div",Ea:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{D:"div",K:"ytp-ad-confirm-dialog-title",ra:"{{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",ra:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-confirm-dialog-confirm-button",
ra:"{{confirmLabel}}"}]}]}]},{D:"button",Ea:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{D:"span",K:"ytp-ad-button-icon",S:[g.IL()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.L=this.Ca("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Ca("ytp-ad-confirm-dialog-cancel-button");this.I=this.Ca("ytp-ad-confirm-dialog-confirm-button");this.Y=this.Ca("ytp-ad-confirm-dialog-messages");this.B=null;this.l=new vx;g.F(this,this.l);this.u=null;this.hide()};
cra=function(a,b){if(b.title){var c=g.Yz(b.title);a.Ta("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=UL(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.Yz(b.cancelLabel),a.Ta("cancelLabel",c),a.l.N(a.C,"click",function(e){return a.wA(e)}));
b.confirmLabel&&(b=g.Yz(b.confirmLabel),a.Ta("confirmLabel",b),a.l.N(a.I,"click",function(e){return a.GD(e)}));
a.l.N(a.L,"click",function(e){return a.FD(e)})};
ZL=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=mI("ytp-ad-toggle-button-input");DL.call(this,a,b,{D:"div",Ea:["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",ra:"{{untoggledIconTemplateSpec}}"},{D:"span",K:"ytp-ad-toggle-button-toggled-icon",ra:"{{toggledIconTemplateSpec}}"}]},{D:"input",
K:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{D:"span",K:"ytp-ad-toggle-button-text",ra:"{{buttonText}}"},{D:"span",K:"ytp-ad-toggle-button-tooltip",ra:"{{tooltipText}}"}]}]},f,c,d);this.B=this.Ca("ytp-ad-toggle-button");this.l=this.Ca("ytp-ad-toggle-button-input");this.Ca("ytp-ad-toggle-button-label");this.Y=this.Ca("ytp-ad-toggle-button-icon");this.I=this.Ca("ytp-ad-toggle-button-untoggled-icon");this.C=this.Ca("ytp-ad-toggle-button-toggled-icon");this.Aa=this.Ca("ytp-ad-toggle-button-text");
this.u=null;this.L=!1;this.hide()};
$L=function(a){a.L&&(a.isToggled()?(g.Rl(a.I,!1),g.Rl(a.C,!0)):(g.Rl(a.I,!0),g.Rl(a.C,!1)))};
dra=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||[]};
aM=function(a){vx.call(this);this.i=a;this.N(this.i,"onAdUxUpdate",this.J)};
bM=function(a,b,c,d){DL.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",ra:"{{title}}"}]},{D:"span",K:"ytp-ad-info-dialog-feedback-options-title",ra:"{{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",
ra:"{{cancelLabel}}"},{D:"button",K:"ytp-ad-feedback-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.l=null;this.I=this.Ca("ytp-ad-feedback-dialog-cancel-button");this.L=this.Ca("ytp-ad-feedback-dialog-confirm-button");this.Y=this.Ca("ytp-ad-info-dialog-feedback-options");this.Aa=this.Ca("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
hra=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new RL(a.api,a.Va,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.F(a,a.l),a.l.init(mI("button"),c,a.macros),a.l.Pa("click",a.pK,a),a.l.Ba(a.element));b.title&&(c=g.Yz(b.title),a.Ta("title",c));b.reasonsTitle&&(c=g.Yz(b.reasonsTitle),a.Ta("reasonsTitle",c));b.reasons&&era(a,b.reasons);b.cancelLabel&&(c=g.Yz(b.cancelLabel),a.Ta("cancelLabel",c),g.$t(a.I,"click",function(){return a.pK()}));
b.confirmLabel&&(c=g.Yz(b.confirmLabel),a.Ta("confirmLabel",c),g.$t(a.L,"click",function(){return fra(a)}));
b.undoRenderer&&gra(a,b.undoRenderer)};
era=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?fs(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?fs(Error("AdFeedbackReason.endpoint was not set.")):(c=new ira(c,d),g.F(a,c),a.Y.appendChild(c.i.element),a.C.push(c)))}};
gra=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new RL(a.api,a.Va,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.F(a,a.u),a.u.init(mI("ad-feedback-undo-mute-button"),b,a.macros),a.u.Pa("click",a.RU,a),a.u.Ba(a.Aa)):fs(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
fra=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Va.executeCommand(b[0].l,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.X("a"),a.hide())};
ira=function(a,b){this.l=b;this.i=new g.CL({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",ra:g.Yz(a)}]});this.u=this.i.Ca("ytp-ad-feedback-dialog-reason-input")};
cM=function(a,b,c,d){YL.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
dM=function(a,b,c,d,e){DL.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",ra:"{{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",ra:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.l=this.u=null;this.L=this.Ca("ytp-ad-info-dialog-confirm-button");this.Ua=this.Ca("ytp-ad-info-dialog-mute-container");this.La=this.Ca("ytp-ad-info-dialog-message");this.Da=this.Ca("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.I=null;this.Ga=!1;this.Y=null;this.hide()};
jra=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Va.executeCommand(b,a.macros)})};
kra=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new bM(a.api,a.Va,a.layoutId,a.i),g.F(a,a.u),a.u.init(mI("ad-feedback-dialog"),b,a.macros),a.u.Ba(a.Aa),a.u.subscribe("a",function(){return a.X("c")})};
lra=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new cM(a.api,a.Va,a.layoutId,a.i),g.F(a,a.C),a.C.init(mI("ad-mute-confirm-dialog"),b,a.macros),a.C.Ba(a.Aa),a.C.subscribe("b",function(){return a.X("c")})};
mra=function(a){a.l&&a.l.Pa("click",a.VF,a);g.$t(a.L,"click",function(){return a.VF()})};
eM=function(a,b,c,d,e,f){VL.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()};
nra=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.ds(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new dM(a.api,a.Va,a.layoutId,a.i,a.B),g.F(a,a.l),a.l.init(mI("ad-info-dialog"),b,c),a.l.Ba(a.B),a.l.subscribe("d",function(){return a.X("f")}),a.l.subscribe("c",function(){return a.X("e")}))};
pra=function(a,b,c){null==a.button?g.ds(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.K(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(nra(a,b,c),a.button.Pa("click",function(){a.l&&!a.l.vb&&(a.l.show(),ora(a))})):a.button.Pa("click",function(){return ora(a)}))};
ora=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
fM=function(a,b,c,d,e,f){DL.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()};
gM=function(a,b){b&&g.vg(a.element,EL(a.l,b))};
hM=function(a,b,c,d,e,f,h){DL.call(this,a,b,c,d,e,f);this.l=h;g.F(this,this.l);this.Da=this.C=-1};
iM=function(a){a.l&&-1===a.C&&(a.C=a.l.subscribe("h",a.On,a),a.Da=a.l.subscribe("g",a.Wp,a),a.On())};
jM=function(a){null!=a.l&&-1!==a.C&&(a.l.Wf(a.C),a.l.Wf(a.Da),a.Da=-1,a.C=-1)};
g.kM=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.J(this.Sz,0,this);g.F(this,this.delay)};
lM=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
mM=function(a,b,c,d,e,f){hM.call(this,a,b,{D:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.La=-1;this.u=new g.CL({D:"span",K:"ytp-ad-preview-container"});g.F(this,this.u);this.B=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-ad-preview-text");g.F(this,this.B);this.B.Ba(this.u.element);this.L=new g.CL({D:"span",K:"ytp-ad-preview-image"});g.F(this,this.L);this.I=new XL(this.api,this.Va,this.layoutId,this.i);g.F(this,this.I);this.I.Ba(this.L.element);this.L.Ba(this.u.element);
this.u.Ba(this.element);this.Y=new g.kM(this.u,400,!1,100,function(){return h.hide()});
g.F(this,this.Y);this.Aa=0;this.Ga=!1;this.Ua=f;this.hide()};
nM=function(a){a.Y.show(100);a.show()};
oM=function(a,b,c,d,e){hM.call(this,a,b,{D:"div",Ea:["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 XL(this.api,this.Va,this.layoutId,this.i,"ytp-flyout-cta-icon");g.F(this,this.L);this.L.Ba(this.Ca("ytp-flyout-cta-icon-container"));
this.I=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-flyout-cta-headline");g.F(this,this.I);this.I.Ba(this.Ca("ytp-flyout-cta-headline-container"));this.B=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-flyout-cta-description");g.F(this,this.B);this.B.Ba(this.Ca("ytp-flyout-cta-description-container"));this.u=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.F(this,this.u);this.u.Ba(this.Ca("ytp-flyout-cta-action-button-container"));this.Y=null;this.Aa=0;this.hide()};
pM=function(a,b,c,d,e){DL.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 ZL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.F(this,this.B);this.B.Ba(this.element);this.u=new ZL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.F(this,this.u);this.u.Ba(this.element);this.C=new g.kM(this,400,!1,500,function(){return f.hide()});
g.F(this,this.C);this.hide()};
qra=function(a,b){a.B.init(mI("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.u.init(mI("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.WF)};
qM=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.u=a;this.l=!1;this.V=d;this.I=!1;this.i=null;0<b&&(this.i=new g.J(this.uH,b,this),g.F(this,this.i));this.C=new g.J(this.uH,c,this);g.F(this,this.C);this.L=Sq(this.u,e,1,d);g.F(this,this.L);this.J=Sq(this.u,0,d,1);g.F(this,this.J);this.B=new vx;g.F(this,this.B)};
rM=function(a,b,c,d,e,f){hM.call(this,a,b,{D:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.L=null;this.Aa=!1;this.Ga=f;this.B=new g.CL({D:"span",Ea:["ytp-ad-skip-button-container"]});g.F(this,this.B);this.B.Ba(this.element);this.u=this.I=null;this.La=new g.kM(this.B,500,!1,100,function(){return h.hide()});
g.F(this,this.La);this.Y=new qM(this.B.element,15E3,5E3,.5,.5);g.F(this,this.Y);this.hide()};
sra=function(a){var b=a.L&&a.L.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return g.S(a.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?rra(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
rra=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
sM=function(a,b,c,d,e,f){hM.call(this,a,b,{D:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Y=f;this.L=!1;this.I=0;this.B=this.u=null;this.hide()};
tM=function(a,b){a.L||(a.L=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b?(a=a.B,a.La.show(),a.show()):a.B.show())};
uM=function(a,b,c,d){RL.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
vM=function(a,b,c,d,e){e=void 0===e?!1:e;DL.call(this,a,b,{D:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.l=e;this.hide()};
wM=function(a,b){g.Q.call(this);this.api=a;this.durationMs=b;this.i=null;this.qe=new vx(this);g.F(this,this.qe);this.l=tra;this.qe.N(this.api,"presentingplayerstatechange",this.Hc);this.i=this.qe.N(this.api,"onAdPlaybackProgress",this.Rb)};
xM=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;g.Q.call(this);var e=this;this.Va=b;this.I=c;this.J=d;this.u=!1;this.B=this.l=0;this.qe=new vx(this);g.F(this,this.qe);this.durationMs=a;this.I?(this.i=new g.jh(200),g.F(this,this.i),this.i.Pa("tick",function(){e.Rb()})):(this.i=new g.jh(100),g.F(this,this.i),this.qe.N(this.i,"tick",this.Rb));
this.C={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.yM=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){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";d=(b+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.zM=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)};
AM=function(a,b,c,d,e,f){hM.call(this,a,b,{D:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
BM=function(a,b,c,d){fM.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
CM=function(a,b){this.l=a;this.i=b};
DM=function(a){return a.i-a.l};
EM=function(a,b){return a.l+b*DM(a)};
FM=function(a,b,c){return DM(a)?g.Nf((b-a.l)/DM(a),0,1):null!=c?c:Infinity};
GM=function(a,b){g.CL.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.F(this,this.l);this.Ic=this.Ca("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()};
HM=function(a,b,c,d,e,f){DL.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.Ca("ytp-ad-player-overlay-flyout-cta");this.u=this.Ca("ytp-ad-player-overlay-instream-info");this.B=null;ura(this)&&(a=
ng("div"),g.K(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 BM(this.api,this.Va,this.layoutId,this.i),c.Ba(a),c.init(mI("ad-title"),{text:b.title},this.macros),g.F(this,c)),this.B=a);this.C=this.Ca("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Ca("ytp-ad-player-overlay-progress-bar");this.Y=this.Ca("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.F(this,this.l);this.hide()};
ura=function(a){a=a.api.T();return g.ZF(a)&&a.i};
IM=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.ui("/sharing_services",a);g.Bu(d)};
g.wra=function(a,b,c){b=vra(null,b,c);if(b=ld(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Iu("LOGGED_IN",function(d){g.Ju(g.O("LOGGED_IN_PUBSUB_KEY",void 0));Wr("LOGGED_IN",!0);a(d)}),Wr("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
vra=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=ti(c,"mode",a));a=ti(d,"next",c);b&&(a=ti(a,"feature",b));return a};
yra=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=xra[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(xra).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/"+yra(a)};
KM=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(li(a)));return a};
zra=function(a,b){g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=os(a,{key:g.O("INNERTUBE_API_KEY")}));return a};
LM=function(a,b){return{method:void 0===b?"POST":b,mode:Ls(a)?"same-origin":"cors",credentials:Ls(a)?"same-origin":"include"}};
MM=function(){};
NM=function(){};
OM=function(a,b,c,d){var e=Jv;this.i=a;this.B=b;this.l=c;this.handleError=e;this.u=d;a.kq||(a.kq={});a.kq=Object.assign(Object.assign({},Ara),a.kq)};
QM=function(a,b,c){var d=void 0===d?PM:d;var e=Bra(a,b);if(!e)return g.Zr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Pv("Error: No request builder found for command.",b)),Ug({})):Vg(new g.Pv("Error: No request builder found for command.",b));var f=e.C(b,c,d);return f?new Og(function(h){return g.D(a,function m(){var n,p,r=this,t;return g.z(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.aq)||void 0===n?void 0:n.mode)?"cors":void 0,g.w(u,Cra(r,f.config,p),2);t=u.l;
h(Dra(r,f,t));g.sa(u)})})}):g.Zr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Pv("Error: Failed to build request for command.",b)),Ug({})):Vg(new g.Pv("Error: Failed to build request for command.",b))};
g.eL=function(a,b,c){var d=void 0===d?{Ko:{identity:PM}}:d;var e=void 0===e?!0:e;b.context||(b.context=$K(void 0,e));return new Og(function(f){return g.D(a,function l(){var m,n,p=this,r,t,u;return g.z(l,function(x){if(1==x.i)return m=KM(c),n=Ls(m)?"same-origin":"cors",g.w(x,Cra(p,d,n),2);r=x.l;t=zra(KM(c),r);u={input:t,aq:LM(t),Ju:b,config:d};f(Dra(p,u,r));g.sa(x)})})})};
Dra=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:y.wb(2);break;case 3:if((h=y.l)&&!h.isExpired())return y.return(Promise.resolve(h.i()));case 2:l=g.q([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.v9(b.Ju.context);p=JSON.stringify(b.Ju);b.aq=Object.assign(Object.assign({},b.aq),{headers:c});r=Object.assign({},b.aq);"POST"===b.aq.method&&(r=Object.assign(Object.assign({},r),{body:p}));return g.w(y,f.B.fetch(b.input,r),4);case 4:if((t=
y.l)&&f.u)for(u=g.q(f.u),m=u.next();!m.done;m=u.next())x=m.value,x.handleResponse(t,b);return y.return(t)}})})};
Era=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.kq)return as("web_op_signal_type_banlist").includes(b.signalServiceEndpoint.signal)?!1:!!a.i.kq[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.PB)return as("web_op_continuation_type_banlist").includes(b.continuationCommand.request)?!1:!!a.i.PB[b.continuationCommand.request];for(var e in b)if(a.i.MB[e]){if(as("web_op_endpoint_banlist").includes(e))break;
return!0}return!1};
Cra=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){if(f.l.TV){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.Ko)||void 0===n?void 0:n.identity)||PM;n=null===(m=null===b||void 0===b?void 0:b.Ko)||void 0===m?void 0:m.sessionIndex;m=f.l.tx(p,{sessionIndex:n});m=Object.assign(Object.assign({},Fra(c)),m);h=l.call(h,m)}else h=h.return(Gra(f,b,c));return h})})};
Gra=function(a,b,c){var d,e,f=(null===(d=null===b||void 0===b?void 0:b.Ko)||void 0===d?void 0:d.identity)||PM;b=null===(e=null===b||void 0===b?void 0:b.Ko)||void 0===e?void 0:e.sessionIndex;return ipa(a.l,f,{sessionIndex:b}).then(function(h){return Promise.resolve(Object.assign(Object.assign({},Fra(c)),h))})};
Fra=function(a){var b={"Content-Type":"application/json"},c=g.O("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a));return b};
Bra=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.kq){var e=a.i.kq[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.PB&&(e=a.i.PB[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.MB[f]&&(b=a.i.MB[f]))return new b};
RM=function(){};
SM=function(){};
TM=function(){};
UM=function(){};
VM=function(){};
WM=function(){};
XM=function(){this.i=this.l=void 0};
g.ZM=function(a,b){if(!YM){var c={MB:{feedbackEndpoint:TM,modifyChannelNotificationPreferenceEndpoint:UM,playlistEditEndpoint:VM,subscribeEndpoint:RM,unsubscribeEndpoint:SM,webPlayerShareEntityServiceEndpoint:WM}},d=g.Zr("web_enable_client_location_service")?ZK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(aL.i||(aL.i=new aL),a=aL.i);void 0===b&&(XM.i||(XM.i=new XM),b=XM.i);OM.i=new OM(c,b,a,e);YM=OM.i}return YM};
Ira=function(){if((!g.Zr("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Jt())&&"1"!=Tb(g.O("PLAYER_VARS",{}),"privembed",!1)){var a=function(){$M=!0;"google_ad_status"in window?Wr("DCLKSTAT",1):Wr("DCLKSTAT",2)};
try{g.kz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Hra.push(g.ou(function(){if(!($M||"google_ad_status"in window)){try{if(a){var b=""+g.Pa(a),c=mz[b];c&&g.Ju(c)}}catch(d){}$M=!0;Wr("DCLKSTAT",3)}},5E3))}};
Jra=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a};
Lra=function(){var a,b;return g.D(this,function d(){var e;return g.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(Kra()):f.return()})})};
Kra=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."))})};
Iv=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});
this.u=Math.random()<=$r("ytidb_transaction_ended_event_rate_limit",.02)};
Nra=function(a,b){Lra().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Mra(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Mra(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Mra=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
aN=function(){this.l=!1;this.i=null};
Pra=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.l=!0,g.kz(c,function(){a.l=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Ora(a,d,!!h,l,e);else{l=lz(c);var m=document.getElementById(l);m&&(Mu(l),m.parentNode.removeChild(m));g.cy(new g.Pv("Unable to load Botguard","from "+c))}},f)):b&&(f=g.og("SCRIPT"),f.textContent=b,f.nonce=nd(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Ora(a,d,!!h,b,e):g.cy(Error("Unable to load Botguard from JS")))};
Ora=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{Qra(a,new d(b,e?function(){return e(b)}:g.Ia))}catch(l){l instanceof Error&&g.cy(l)}else{try{Qra(a,new d(b))}catch(l){l instanceof Error&&g.cy(l)}e&&e(b)}else g.cy(Error("Failed to finish initializing VM"))};
Rra=function(a,b){var c=bN;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){c.i?c.i.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)};
Qra=function(a,b){a.i=b};
Sra=function(){SA("bg_l","player_att");cN=(0,g.P)()};
Tra=function(a){a=void 0===a?{}:a;return bN.invoke(a)};
Ura=function(a){var b=$r("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Rra(a,b)};
g.Vra=function(a){var b=this;this.videoData=a;a={};this.l=(a.c1a=function(){if(bN.ge()){var c="";b.videoData&&b.videoData.Ia&&(c=b.videoData.Ia+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);SA("bg_v","player_att");c=Tra(c);SA("bg_s","player_att");c=c?"r1a="+c:"r1c=2"}else SA("bg_e","player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},a.c6a=function(c){return"r6a="+
(Number(c.c)^Jra())},a);
this.videoData&&this.videoData.Ia?this.i=js(this.videoData.Ia):this.i={}};
Wra=function(a){if(a.videoData&&a.videoData.Ia){for(var b=[a.videoData.Ia],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};
g.Yra=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return Xra(a)});
if(a.videoData&&a.videoData.Ia){for(var c=[a.videoData.Ia],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)};
Xra=function(a){if(!bN.ge())return SA("bg_e","player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Ia&&(b=a.videoData.Ia+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){SA("bg_v","player_att");Ura(c).then(function(e){e?(SA("bg_s","player_att"),d("r1a="+e)):(SA("bg_e","player_att"),d("r1c=2"))},function(){SA("bg_e","player_att");
d("r1c=3")})})};
Zra=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 dN(a)};
dN=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};
$ra=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};
gN=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.V=new Set;eN(this,"cueVideoById",this.cueVideoById);eN(this,"loadVideoById",this.loadVideoById);eN(this,"cueVideoByUrl",this.cueVideoByUrl);eN(this,"loadVideoByUrl",this.loadVideoByUrl);eN(this,"playVideo",this.playVideo);eN(this,"pauseVideo",this.pauseVideo);eN(this,"stopVideo",this.stopVideo);eN(this,"clearVideo",this.clearVideo);
eN(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);eN(this,"getVideoBytesTotal",this.getVideoBytesTotal);eN(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);eN(this,"getVideoStartBytes",this.getVideoStartBytes);eN(this,"cuePlaylist",this.cuePlaylist);eN(this,"loadPlaylist",this.loadPlaylist);eN(this,"nextVideo",this.nextVideo);eN(this,"previousVideo",this.previousVideo);eN(this,"playVideoAt",this.playVideoAt);eN(this,"setShuffle",this.setShuffle);eN(this,"setLoop",this.setLoop);eN(this,
"getPlaylist",this.mQ);eN(this,"getPlaylistIndex",this.getPlaylistIndex);eN(this,"getPlaylistId",this.getPlaylistId);eN(this,"loadModule",this.loadModule);eN(this,"unloadModule",this.unloadModule);eN(this,"setOption",this.setOption);eN(this,"getOption",this.getOption);eN(this,"getOptions",this.getOptions);eN(this,"mute",this.mute);eN(this,"unMute",this.unMute);eN(this,"isMuted",this.isMuted);eN(this,"setVolume",this.setVolume);eN(this,"getVolume",this.getVolume);eN(this,"seekTo",this.seekTo);eN(this,
"getPlayerState",this.getPlayerState);eN(this,"getPlaybackRate",this.getPlaybackRate);eN(this,"setPlaybackRate",this.setPlaybackRate);eN(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);eN(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
eN(this,"setPlaybackQuality",this.setPlaybackQuality);eN(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);eN(this,"getCurrentTime",this.getCurrentTime);eN(this,"getDuration",this.getDuration);eN(this,"addEventListener",this.tP);eN(this,"removeEventListener",this.pV);eN(this,"getDebugText",this.getDebugText);eN(this,"getVideoData",function(){return c.Gx()});
eN(this,"addCueRange",this.addCueRange);eN(this,"removeCueRange",this.removeCueRange);eN(this,"setSize",this.setSize);eN(this,"getApiInterface",this.getApiInterface);eN(this,"destroy",this.destroy);eN(this,"showVideoInfo",this.showVideoInfo);eN(this,"hideVideoInfo",this.hideVideoInfo);eN(this,"isVideoInfoVisible",this.isVideoInfoVisible);eN(this,"getSphericalProperties",this.getSphericalProperties);eN(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().C||(eN(this,"getVideoEmbedCode",
this.getVideoEmbedCode),eN(this,"getVideoUrl",this.getVideoUrl));eN(this,"getMediaReferenceTime",this.getMediaReferenceTime);fN(this,"getInternalApiInterface",this.getInternalApiInterface);fN(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);fN(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);fN(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);fN(this,"getAdState",this.getAdState);fN(this,"sendAbandonmentPing",this.sendAbandonmentPing);fN(this,"setLoopRange",this.setLoopRange);
fN(this,"getLoopRange",this.getLoopRange);fN(this,"setAutonavState",this.setAutonavState);fN(this,"seekToLiveHead",this.seekToLiveHead);fN(this,"seekToStreamTime",this.seekToStreamTime);fN(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);fN(this,"startSeekCsiAction",this.startSeekCsiAction);fN(this,"getStreamTimeOffset",this.getStreamTimeOffset);fN(this,"getVideoData",this.Gx);fN(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);fN(this,"downloadVideo",this.downloadVideo);
fN(this,"refreshAllVideos",this.refreshAllVideos);fN(this,"deleteVideos",this.deleteVideos);fN(this,"deleteAllVideos",this.deleteAllVideos);fN(this,"isOrchestrationLeader",this.isOrchestrationLeader);fN(this,"getAppState",this.getAppState);fN(this,"addInfoCardXml",this.addInfoCardXml);fN(this,"updateLastActiveTime",this.updateLastActiveTime);fN(this,"setBlackout",this.setBlackout);fN(this,"setAccountLinkState",this.setAccountLinkState);fN(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);
fN(this,"setUserEngagement",this.setUserEngagement);fN(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);fN(this,"setFauxFullscreen",this.setFauxFullscreen);fN(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);fN(this,"getPresentingPlayerType",this.getPresentingPlayerType);fN(this,"canPlayType",this.canPlayType);fN(this,"updatePlaylist",this.updatePlaylist);fN(this,"updateVideoData",this.updateVideoData);fN(this,"updateEnvironmentData",this.updateEnvironmentData);fN(this,
"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);fN(this,"setCardsVisible",this.setCardsVisible);fN(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);fN(this,"setSafetyMode",this.setSafetyMode);fN(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
fN(this,"getVideoAspectRatio",this.getVideoAspectRatio);fN(this,"getPreferredQuality",this.getPreferredQuality);fN(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);fN(this,"onAdUxClicked",this.onAdUxClicked);fN(this,"getFeedbackProductData",this.getFeedbackProductData);fN(this,"getStoryboardFrame",this.getStoryboardFrame);fN(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);fN(this,"getStoryboardLevel",this.getStoryboardLevel);fN(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
fN(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);fN(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);fN(this,"setAutonav",this.setAutonav);fN(this,"isNotServable",this.isNotServable);fN(this,"channelSubscribed",this.channelSubscribed);fN(this,"channelUnsubscribed",this.channelUnsubscribed);fN(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);fN(this,"togglePictureInPicture",this.togglePictureInPicture);fN(this,"supportsGaplessAudio",this.supportsGaplessAudio);
fN(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
fN(this,"clearQueue",this.clearQueue);fN(this,"isFastLoad",function(){return!1});
fN(this,"getPlayerResponse",this.getPlayerResponse);fN(this,"getAudioTrack",this.bQ);fN(this,"setAudioTrack",this.setAudioTrack);fN(this,"getAvailableAudioTracks",this.cQ);fN(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);fN(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);fN(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);fN(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);fN(this,"setMinimized",this.setMinimized);fN(this,"confirmYpcRental",
this.confirmYpcRental);fN(this,"setInlinePreview",this.setInlinePreview);fN(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);fN(this,"handleExternalCall",this.handleExternalCall);fN(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);fN(this,"getStatsForNerds",this.getStatsForNerds);fN(this,"setScreenLayer",this.setScreenLayer);fN(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);fN(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);fN(this,"shouldSendVisibilityState",
this.shouldSendVisibilityState);fN(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);fN(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);fN(this,"setGlobalCrop",this.setGlobalCrop);fN(this,"getVisibilityState",this.getVisibilityState);fN(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);fN(this,"setInternalSize",this.setInternalSize)};
eN=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ma();return c.apply(a,e)};
a.l.hasOwnProperty(b)||fN(a,b,c);a.L.push(b)};
hN=function(a,b,c){a.J[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ma();return c.apply(a,e)};
a.l.hasOwnProperty(b)||fN(a,b,c);a.L.push(b)};
fN=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ma();return c.apply(a,e)}};
oqa=function(a){a.u||(a.u={},g.Ra(a.u,a.C),g.Ra(a.u,a.J),a.u.addEventListener=function(b,c){asa(a,b,c)},a.u.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Pa(c));
var d=a.B[c];d&&(a.app.Gl.unsubscribe(b,d),b=a.B,c in b&&delete b[c])});
return a.u};
asa=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.Gl.subscribe(b,f)}};
bsa=function(a,b,c){b=g.Nf(Math.floor(b),0,100);isFinite(b)&&iN(a.app,{volume:b,muted:a.isMuted()},c)};
csa=function(a,b){iN(a.app,{muted:!0,volume:a.getVolume()},b)};
dsa=function(a,b){iN(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.kN=function(a){var b=jN(a.app.sb());if(b)return b.ju();a=a.app.sb();a=g.aG(a.G.T())?a.ud.get("music"):void 0;return a?a.ju():null};
mN=function(a,b){gN.call(this,a,b);var c=this;this.i=!1;hN(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(lN(c,d),e)});
hN(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(lN(c,d),e,f,h)});
hN(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(lN(c,d),e,f,h)});
hN(this,"seekBy",this.seekBy);hN(this,"mutedAutoplay",this.mutedAutoplay);hN(this,"showControls",this.showControls);hN(this,"hideControls",this.hideControls);hN(this,"cancelPlayback",this.cancelPlayback);hN(this,"getProgressState",this.getProgressState);hN(this,"isInline",this.isInline);hN(this,"setInline",this.setInline);hN(this,"setLoopVideo",this.setLoopVideo);hN(this,"getLoopVideo",this.getLoopVideo);hN(this,"getStoryboardFormat",this.getStoryboardFormat);hN(this,"getVideoContentRect",this.getVideoContentRect);
hN(this,"toggleFullscreen",this.toggleFullscreen);hN(this,"isFullscreen",this.isFullscreen);hN(this,"getVideoStats",this.getVideoStats);hN(this,"getPlayerSize",this.getPlayerSize);hN(this,"toggleSubtitles",this.toggleSubtitles);hN(this,"setCenterCrop",this.setCenterCrop);hN(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);hN(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);hN(this,"setSizeStyle",this.setSizeStyle);hN(this,"wakeUpControls",this.wakeUpControls)};
lN=function(a,b){var c={};if(a.app.T().L){a=g.q(esa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.q(fsa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.nN=function(a){mN.call(this,a);this.xA=null};
oN=function(a){a=a.sb();var b=a.ud.get("endscreen");return b&&b.hq()?!0:a.Rv()||g.aG(a.G.T())};
g.pN=function(a,b){3===a.getPresentingPlayerType()?a.X("mdxautoplaycancel"):a.X("autonavcancel",b)};
g.rN=function(a){var b=g.qN(a.sb());return a.app.ag&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.vk()||!!a.getPlaylist()};
g.tN=function(a){return(a=g.sN(a.sb()))?a.Dx():{}};
g.gsa=function(a){a=(a=a.getVideoData())&&a.l;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.hsa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Ua)};
g.uN=function(a,b,c){a=a.bb().element;var d=yb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.rg(a,b,d);b.setAttribute("data-layer",String(c))};
g.vN=function(a){var b=a.T();if(!b.Lb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.S(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.jb(c.ea,"ypc")&&!a&&(!g.QF(b)||f)};
isa=function(a){a=g.X(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.l||!b.l.video||1080>b.l.video.i||b.wL)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.l.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ha("iqss",d,!0),!0):!1};
g.wN=function(){vx.apply(this,arguments)};
jsa=function(){this.l=this.i=NaN};
xN=function(a,b){this.W=a;this.timerName="";this.l=!1;this.u=new jsa;this.i=b||null;this.l=!1};
ksa=function(a,b,c){var d=g.WF(b.B)&&!b.B.C;if(b.B.Tg&&(SF(b.B)||OG(b.B)||d)&&!a.l){a.l=!0;g.O("TIMING_ACTION")||Wr("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&Wr("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.i){b=a.i.hp();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,NA(e,b[e],a.timerName);b=a.i.Nt;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.MA(e,b[e],a.timerName);b=a.i;b.i={};b.Nt={}}g.MA("yt_pvis",UA(),a.timerName);g.MA("yt_pt","html5",a.timerName);
c&&!RA("pbs",a.timerName)&&a.tick("pbs",c);c=a.W;!OG(c)&&!SF(c)&&RA("_start",a.timerName)&&TA(a.timerName)}};
g.yN=function(a,b){this.type=a||"";this.id=b||""};
g.zN=function(a,b){g.Q.call(this);this.l=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.Ud=this.ZB=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.u=0;if(a=b.session_data)this.Ud=hs(a,"&");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(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new g.yN("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=new g.yN(a.substr(0,2),a.substr(2));if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.q(a);for(c=a.next();!c.done;c=
a.next())(c=c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.B=Ula(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
AN=function(a){return!!(a.playlist||a.list||a.api)};
lsa=function(a){var b=a.index+1;return b>=a.length?0:b};
msa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
BN=function(a,b){a.index=g.Nf(b,0,a.length-1);a.startSeconds=0};
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.ib();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(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
c;break}a.setShuffle(!1);a.loaded=!0;a.u++;a.i&&a.i()}};
g.DN=function(a){var b=a.T(),c=nsa(b),d=a.La;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=$H(a);"leanback"===f?e="WATCH":b.Z("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Cb?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.Wi)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:osa[e]}});a.wq&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.V)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Xb&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=psa[b];c.request=d;d=c.user||{};if(b=a.Aa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.jb)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};
nsa=function(a){var b=$K(),c=b.client||{};a.Z("web_player_unset_default_csn_killswitch")||delete b.clientScreenNonce;if(a.Ya){var d=a.Ya.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.wc)b.thirdParty={embedUrl:a};return b};
EN=function(a,b,c){var d=a.videoId,e=g.DN(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zu()),referer:document.location.toString(),signatureTimestamp:18808};g.iv.getInstance();a.zk&&(h.autonav=!0);g.kv(0,141)&&(h.autonavState=g.kv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.kv(0,66);cI(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.Rg;if(l){var m={},n=[];l=l.split(",");
l=g.q(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var r=p.split("|");3!==r.length||p.includes("=")||(r[0]="breaktype="+r[0],r[1]="offset="+r[1],r[2]="url="+r[2]);p={adtype:"video_ad"};r=g.q(r);for(var t=r.next();!t.done;t=r.next()){var u=g.q(t.value.split("="));t=u.next().value;u=ka(u);p[t]=u.join("=")}r=p.url;t=p.viralresponseurl;u=Number(p.campaignid);if("in_display_ad"===p.adtype)r&&(m.url=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=String(u));else if("video_ad"===p.adtype){var x=
{offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=qsa[p.breaktype])x.breakType=p;r&&(x.url=r);t&&(x.viralAdResponseUrl=t);u&&(x.viralCampaignId=String(u));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.SE;if(null!=m){m={startWalltime:String(m)};if(n=a.Vg)m.manifestDuration=String(n||14400);h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.He&&(h.splay=
!0);m=a.vnd;5===m&&(h.vnd=m);m={};if((n=a.isMdxPlayback)||g.S(f.experiments,"send_mdx_remote_data_if_present"))m.triggeredByMdx=n;if(n=a.Bl)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Jf){n=a.lA;l=[];p=g.q(p.split(","));for(r=p.next();!r.done;r=p.next())if(t=r.value)if((r=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){r={applicationState:r?"INACTIVE":"ACTIVE",clientFormFactor:rsa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:ssa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:tsa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(y){g.cy(y)}u&&(t={params:[{key:"ms",value:u.ms}]},r.osName=u.os_name,r.userAgent=u.user_agent,r.windowHeightPoints=u.window_height_points,r.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:r})}m.remoteContexts=l}h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(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);e=a.T();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.kv(g.iv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.KG(e)&&(d.captionParams.deviceCaptionsOn=null!=h?!h:
!1);a.zJ&&(d.captionParams.deviceCaptionsLangPref=a.zJ);a.QA.length?d.captionParams.viewerSelectedCaptionLangs=a.QA:g.FG(e)&&e.Z("web_player_i_see_captions_2")&&(e=(0,g.usa)(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=e);e="onesie"===a.fetchType&&a.Z("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.Z("html5_non_onesie_attach_po_token");if(e||h)a=a.T(),a.Rg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Rg),xG(a);return d};
wsa=function(a){var b=a.T();g.iv.getInstance();var c={context:g.DN(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===$H(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Mj&&(c.showContentOwnerOnly=!0);g.kv(0,141)&&(c.autonavState=g.kv(0,140)?"STATE_OFF":"STATE_ON");g.KG(b)&&(a=g.kv(0,65),a=null!=a?!a:!1,b=!!(0,g.vsa)(),c.captionsRequested=a&&b);return c};
zsa=function(a,b){return g.D(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i){e=g.ZM();var p=a.T(),r={context:g.DN(a)};p=p.embedConfig;var t,u,x,y,B,G;var H=b.docid||b.video_id||b.videoId||b.id;if(!H){H=b.raw_embedded_player_response;if(!H&&!g.Zr("parse_video_id_from_serialized_embedded_player_response_killswitch")){var I=b.embedded_player_response;I&&(H=JSON.parse(I))}H=H?(null===(G=null===(B=null===(y=null===(x=null===(u=null===(t=null===H||void 0===H?void 0:H.embedPreview)||
void 0===t?void 0:t.thumbnailPreviewRenderer)||void 0===u?void 0:u.playButton)||void 0===x?void 0:x.buttonRenderer)||void 0===y?void 0:y.navigationEndpoint)||void 0===B?void 0:B.watchEndpoint)||void 0===G?void 0:G.videoId)||null:null}t=(t=H)?t:void 0;u=a.playlistId?a.playlistId:b.list;x=b.listType;if(u){var L;"user_uploads"===x?L={username:u}:L={playlistId:u};xsa(p,t,b,L);r.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},xsa(p,t,b,L),r.playlistRequest=L):t&&
(L={videoId:t},p&&(L.serializedThirdPartyEmbedConfig=p),r.singleVideoRequest=L);f=r;h=g.JM(ysa);return g.w(n,g.eL(e,f,h),2)}l=n.l;m=a.T();return n.return(new g.vH(m,{raw_embedded_player_response:l}))})})};
xsa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.FN=function(a){g.Q.call(this);this.loaded=!1;this.player=a};
Asa=function(){this.l=[];this.i=[]};
g.GN=function(a,b){return b?a.i.concat(a.l):a.i};
g.HN=function(a,b){switch(b.kind){case "asr":Bsa(b,a.l);break;default:Bsa(b,a.i)}};
Bsa=function(a,b){g.fb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.IN=function(a){g.E.call(this);this.W=a;this.l=new Asa;this.B=[]};
g.JN=function(a,b,c){g.IN.call(this,a);this.audioTrack=c;this.i=null;this.B=b.iB};
Csa=function(){this.i=!1;this.l=0;this.Mf=!1};
Dsa=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.wk?!1:c.wk;var d=new Csa;d.i=a.Z("html5_streaming_xhr_no_mp4_holdback_chunk");d.l=g.U(a.experiments,"html5_time_based_consolidation_ms");d.Mf=b||c;return d};
g.Esa=function(){this.B=new Csa;this.bp=this.Wo=!1;this.ll=2;this.I=20971520;this.J=8388608;this.C=120;this.eb=3145728;this.Y=62914560;this.fb=10485760;this.ol=this.ql=this.Gg=0;this.Dq=!1;this.Ib=NaN;this.Nh=0;this.Mj=this.Eq=2;this.Vg=3;this.Xp=2;this.va=2097152;this.Tp=1048576;this.Ua=!1;this.Ec=1800;this.il=5;this.V=15;this.Pc=1;this.l=1.15;this.u=1.05;this.ul=!0;this.Da=!1;this.qq=.8;this.Zk=this.Lb=!1;this.jb=6;this.ea=this.Ya=!1;this.Tb=0;this.Ub=!1;this.rl=0;this.Ri=!1;this.Mg=this.Vh=0;this.qb=
5E3;this.bk=6;this.He=1;this.bh=1.6;this.Za=!1;this.L=.5;this.ac=2;this.Xb=this.uo=0;this.xo=1.5;this.zo=this.Kh=.5;this.wh=15;this.fl=1;this.wq=this.Jg=!1;this.jl=0;this.Xj=this.Dl=this.po=this.Fp=this.bl=this.Ep=this.vl=!1;this.xb=2;this.xq=this.oo=this.Wi=!1;this.Be=0;this.hc=this.Hg=this.Oq=this.Tg=this.Ra=this.qo=this.Ig=this.yq=!1;this.La=!0;this.wc=this.ya=this.wp=this.Ga=!1;this.Sj=!0;this.Zg=!1;this.i="";this.ut=1048576;this.al=this.Hi=this.Lc=!1;this.Ce=46800;this.Rj=this.Xi=this.Gp=this.rq=
this.Vi=this.Nj=this.Bb=this.Qj=this.Lj=this.Zc=this.Gd=!1;this.Ia=0;this.Yj="";this.Pi=this.Fi=this.ck=this.Rg=this.Pj=this.Ui=!1;this.Xd=0;this.jo=this.Aa=this.Oj=this.zq=this.dl=this.Jh=!1;this.Yi=!0;this.Ij=this.Cb=this.Zj=!1};
Fsa=function(a,b){1080<b.ib().i&&!a.Wo&&(a.I=36700160,a.J=5242880,a.eb=10485760,a.va=4194304,a.Wo=!0);2160<b.ib().i&&!a.bp&&(a.I=104857600,a.Ib=13107200,a.bp=!0);b.Ib&&(a.Tp=Math.max(65536,Math.min(a.va,5*b.Ib)))};
g.KN=function(a,b){return dE(a.info.mimeType)?b?a.info.tc()===b:!0:!1};
g.Gsa=function(a,b){if(null!=a.i&&g.IG(b.T())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.ji())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.KN(c,"386")});
a=!!a.i&&!a.i.isManifestless&&Pja(a.i);return b||a};
g.LN=function(a,b,c,d,e){g.IN.call(this,e||null);this.videoId=b;this.gJ=d;this.C={};this.i=null;b=c||g.ls(a).hl||"";b=b.split("_").join("-");this.u=ns(a,{hl:b})};
MN=function(a,b){g.E.call(this);this.G=a;this.l=b;this.Nt={};this.i={};this.u=null;this.ud=new Map;this.B=g.S(a.T().experiments,"web_player_defer_modules")};
g.NN=function(a){return a.ud.get("captions")};
Jsa=function(a,b){switch(b){case "ad":return ON(a);case "annotations_module":return b=a.G.T(),rG(b)?a=!1:(a=a.G.getVideoData(),a=a.GM||"3"===b.controlsType?!1:b.V.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Da||!!g.YH(a)||!!g.ZH(a):!0),a;case "attribution":return a=a.G.T(),g.S(a.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.G.T(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===
b.playerStyle?a=!0:(a=a.G.getVideoData(),a=!!a&&(!!g.$ma(a)||!!g.ana(a))),a;case "embed":return g.QF(a.G.T());case "endscreen":return g.Hsa(a);case "heartbeat":return a.GE();case "inline_preview":return a.G.T().showInlinePreviewUi;case "kids":return wG(a.G.T());case "remote":return a.G.T().Gg;case "miniplayer":return a.G.T().showMiniplayerUiWhenMinimized;case "music":return g.aG(a.G.T());case "captions":return b=a.G.getVideoData(),!!b.Pc||!!b.captionTracks.length||g.Gsa(b,a.G);case "unplugged":return g.YF(a.G.T());
case "ux":return a.G.T().qb;case "webgl":return Isa(a);case "ypc":return a.Rv();case "ypc_clickwrap":return a=a.G.getVideoData(),a.Hi&&!a.kD;case "yto":return!!a.G.getVideoData().ea.includes("yto");default:return g.by(Error("Module descriptor "+b+" does not match")),!1}};
PN=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.ud.get(b);if(!f||e)if(c||(c=function(){PN(a,b,void 0,d,e)}),f=f||Ksa(a,b,c,Jsa(a,b)))a.ud.set(b,f),f.create(),d&&a.G.Na("onApiChange")};
Lsa=function(a){a.B&&(PN(a,"endscreen"),a.SB(),PN(a,"creatorendscreen",void 0,!0))};
g.Hsa=function(a){var b=a.G.T();if(OG(b)||b.C||!b.xb&&!b.Ec)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.S(b.experiments,"desktop_enable_autoplay");a=a.G.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.S(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.sN=function(a){return a.ud.get("webgl")};
Isa=function(a){var b=a.G.getVideoData(),c=a.G.T().experiments,d=g.At(),e=g.S(c,"enable_spherical_kabuki");a=g.NG(a.G.T());if(g.XH(b))return d||e||a||g.S(c,"html5_enable_spherical");if(g.UH(b))return a||d||e||g.S(c,"html5_enable_spherical");if(g.VH(b))return a||d||g.S(c,"html5_enable_spherical3d");if(g.WH(b))return a||!1;d=b.l&&b.l.video&&b.l.video.isHdr();return a&&!g.NH(b)&&!d&&(g.S(c,"enable_webgl_noop")||g.S(c,"html5_enable_bicubicsharp")||g.S(c,"html5_enable_smartsharp"))};
Msa=function(a){g.S(a.G.T().experiments,"web_player_ux_module_wait")&&a.ud.get("ux")&&a.G.Ed("ux")};
Nsa=function(a){Msa(a);PN(a,"ux",void 0,!0)};
ON=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};
Ksa=function(a,b,c,d){try{if(d){var e=g.QN[b];if(e)return new e(a.G);"creatorendscreen"===b?a.l&&RN(a,a.l+"annotations_module.js","annotations_module",c):a.l&&RN(a,a.l+b+".js",b,c)}else a.G.Ed(b)}catch(f){a.G.Ed(b),g.by(f)}return null};
SN=function(a,b,c){for(var d=g.q(a.ud),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Li(b))&&(g.ff(f),a.ud.delete(e))}};
TN=function(a){return a.ud.get("ad")};
UN=function(a){if(wG(a.G.T()))return a.ud.get("kids")};
g.qN=function(a){if(a.G.T().Gg)return a.ud.get("remote")};
VN=function(a){if(g.YF(a.G.T()))return a.ud.get("unplugged")};
jN=function(a){if(a.G.T().qb)return a.ud.get("ux")};
g.WN=function(a){return a.ud.get("annotations_module")};
XN=function(a){return a.ud.get("creatorendscreen")};
Osa=function(a){var b=a.l.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){RN(a,b,null,function(){return g.D(a,function f(){var h,l;return g.z(f,function(m){if(1==m.i)return h=g.A.loadWasm,"function"!==typeof h?(d("noloadwasm"),m.wb(0)):g.w(m,h(),3);l=m.l;c(l);g.sa(m)})})})})};
RN=function(a,b,c,d){function e(){!a.isDisposed()&&c&&a.G.Ed(c)}
function f(){a.isDisposed()||d.call(a)}
for(var h=g.ag("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.og("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var r=m.onload;m.onload=function(y){Cg(f);r&&r.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var B=new g.Pv("Unable to load player module",(c||"lib")+".js from "+b+" on "+(document.location&&document.location.origin)+".");g.by(B)}Cg(e);t&&t(y)};
var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Cg(f)}x&&x(y)};
l&&((h=a.G.T().cspNonce)&&m.setAttribute("nonce",h),g.Cj(m,g.zl(b)),h=g.ag("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.hf(a,function(){m.parentNode&&m.parentNode.removeChild(m);c&&(g.QN[c]=null);"annotations_module"===c&&(g.QN.creatorendscreen=null)}))};
YN=function(a,b,c){g.jf.call(this,b,a);this.i=c};
g.ZN=function(a){CK.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new YN(b,c.type,c))}};
aO=function(a,b,c,d){g.Q.call(this);var e=this;this.target=a;this.Rw=b;this.l=0;this.I=!1;this.B=new g.Rf(NaN,NaN);this.i=new g.wN(this);this.ya=this.u=this.J=null;g.F(this,this.i);b=d?4E3:3E3;this.V=new g.J(function(){$N(e,1,!1)},b,this);
g.F(this,this.V);this.ea=new g.J(function(){$N(e,2,!1)},b,this);
g.F(this,this.ea);this.Y=new g.J(function(){$N(e,512,!1)},b,this);
g.F(this,this.Y);this.va=c&&0<c.Ec.length?5E3:3E3;d||(this.u=this.i.N(a,"mouseover",this.Fy),this.i.N(a,"mousemove",this.BR),this.i.N(a,"mouseleave",this.CR));Dl?this.i.N(a,"keypress",this.iR):this.i.N(a,"focusin",this.eQ);this.C=this.i.N(a,"mousedown",this.XJ);this.L=this.i.N(a,"touchstart",this.kM,void 0,!0);$N(this,640,!0)};
Psa=function(a){$N(a,4,!1);a.J&&(a.i.lc(a.J),a.J=null,a.u=a.i.N(a.target,"mouseover",a.Fy));a.u&&(a.i.lc(a.u),a.u=a.i.N(a.target,"mouseover",a.Fy))};
$N=function(a,b,c){a.isDisposed();var d=!a.l;c?(a.l|=b,b&1&&a.V.start(),b&2&&a.ea.start()):(a.l&=~b,b&1&&a.V.stop(),b&2&&a.ea.stop(),b&512&&a.Y.stop());a.l&512&&!(a.l&128)&&g.Fq(a.Y,a.va);b=!a.l;d!==b&&a.X("autohideupdate",b)};
g.bO=function(a){g.W.call(this,{D:"button",Ea:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.Ma);this.Ma()};
cO=function(a){var b=["ytp-cued-thumbnail-overlay"];a.T().C&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{D:"div",Ea:b,S:[{D:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ca("ytp-cued-thumbnail-overlay");var c=new g.bO(a);g.F(this,c);c.Ba(b);this.u=new g.wN(this);g.F(this,this.u);this.api=a;this.C=this.Ca("ytp-cued-thumbnail-overlay-image");this.B=c;this.l=new g.kM(this,250);g.F(this,this.l);this.i=new g.J(this.Ma,0,this);g.F(this,this.i);this.Ma();this.N(a,"appresize",this.tb);this.N(a,
"presentingplayerstatechange",this.nN);this.N(a,"ypcStateChanged",this.cV);SF(a.T())&&this.N(a,"videoplayerreset",this.mN)};
Qsa=function(a){var b=!a.T().Hg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.dO=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.zM(a))return g.fu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.mK(a,d,!0);return!1};
g.eO=function(a,b,c){if(DG(b.T())&&2!==b.getPresentingPlayerType()){if(g.zM(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.fu(c),!0}else if(b.T().Z("embeds_enable_webview_nonjs_navigation")&&g.QF(b.T())&&(Ht()||Ft()))b=c.target,b instanceof HTMLAnchorElement&&(a=wl(a),b.href=Aj(a));else{var d=g.zM(c);d&&b.pauseVideo();g.mK(a,void 0,!0);d&&(g.nK(a),g.fu(c))}return!1};
fO=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"}]}]}]}};
gO=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
hO=function(a,b,c){a=a.T();return g.S(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.He?g.iJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.iO=function(a){g.W.call(this,{D:"div",Ea:["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",ra:"{{content}}"},{D:"div",K:"ytp-error-content-wrap-subreason",ra:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.jO=function(a){a=a.split(Rsa);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]},ra:a[c+2]})}return{D:"span",S:b}};
lO=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.iJ(g.kO[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",ra:f});d.push(b[0]);h&&d.push({D:"br"});d.push({D:"a",U:{href:c,target:e?"_blank":null},ra:b[2]});d.push(b[4]);return{D:"span",S:d}};
Ssa=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)}};
Tsa=function(a){for(var b=0;b<a.keys.length;b++)a.lc(a.keys[b]);a.keys=[]};
nO=function(a){g.wN.call(this);this.G=a;this.i=new Set;this.mediaSession=navigator.mediaSession;mO(this,"play",function(){a.playVideo()});
mO(this,"pause",function(){a.pauseVideo()});
mO(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
mO(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.ob);this.N(a,"presentingplayerstatechange",this.hh);this.ob()};
mO=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
Usa=function(a){var b,c;a=a.G.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null===(c=null===(b=null===a||void 0===a?void 0:a.playerOverlayRenderer)||void 0===b?void 0:b.browserMediaSession)||void 0===c?void 0:c.browserMediaSessionRenderer};
Vsa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.Iz(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
oO=function(a){g.W.call(this,{D:"div",K:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.ld=this.i=null;var b=a.T();a.Z("enable_new_paid_product_placement")&&!g.JG(b)?(this.l=new g.W({D:"a",K:"ytp-paid-content-overlay-link",U:{href:"{{href}}",target:"_blank"},S:[{D:"div",K:"ytp-paid-content-overlay-icon",ra:"{{icon}}"},{D:"div",K:"ytp-paid-content-overlay-text",ra:"{{text}}"},{D:"div",K:"ytp-paid-content-overlay-chevron",ra:"{{chevron}}"}]}),
this.N(this.l.element,"click",this.onClick)):this.l=new g.W({D:"div",Ea:["ytp-button","ytp-paid-content-overlay-text"],ra:"{{text}}"});this.u=new g.kM(this.l,250,!1,100);g.F(this,this.l);this.l.Ba(this.element);g.F(this,this.u);this.G.Pg(this.element,this);this.N(a,"videodatachange",this.ob);this.N(a,"presentingplayerstatechange",this.Hc)};
Wsa=function(a,b){var c=Yma(b),d=OH(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Hq(a.i),a.videoId=b.videoId,a.B=!!d);else if(c&&d){var e,f,h,l;a.i=new g.J(a.Ab,d,a);g.F(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0===
l?void 0:l.url;a.G.im(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.l.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{D:"svg",U:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",U:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.HL():null})}};
Xsa=function(a,b){a.i&&(g.V(b,8)&&a.B?(a.B=!1,a.bd(),a.i.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
pO=function(a){g.W.call(this,{D:"div",K:"ytp-spinner",S:[fO(),{D:"div",K:"ytp-spinner-message",ra:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ca("ytp-spinner-message");this.i=new g.J(this.show,500,this);g.F(this,this.i);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"playbackstalledatstart",this.u);a=a.ub();Ysa(a)?this.i.start():this.hide()};
Ysa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.qO=function(a,b,c,d){d=void 0===d?!1:d;g.CL.call(this,b);var e=this;this.G=a;this.Aa=d;this.J=new g.wN(this);this.V=new g.kM(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.F(this,this.J);g.F(this,this.V)};
Zsa=function(a){a.l&&(document.activeElement&&g.ug(a.element,document.activeElement)&&(yg(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=void 0);g.xx(a.J);a.L=void 0};
rO=function(a,b,c){a.Sf()?a.Ab():a.bd(b,c)};
sO=function(a){var b=g.eF(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Ea:["ytp-unmute-icon"],S:[{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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",Ea:["ytp-unmute-text"],ra:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Ea:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.qO.call(this,a,{D:"button",Ea:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{D:"div",K:"ytp-unmute-inner",S:d}]},100);this.i=this.u=!1;this.api=a;this.api.Yb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.vv,this);this.N(a,"presentingplayerstatechange",
this.hh);this.Pa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.QF(this.api.T());g.BL(this,a);a&&$sa(this);this.B=a};
$sa=function(a){a.i||(a.i=!0,a.api.kb(a.element,!0))};
g.uO=function(a){g.wN.call(this);var b=this;this.api=a;this.FE=!1;this.yk=null;this.Zw=!1;this.oe=null;this.RB=this.Lz=!1;this.dF=this.fF=null;this.GJ=NaN;this.cF=this.St=!1;this.ev=0;this.mB=[];var c=a.T(),d=a.bb();this.vH=new g.J(this.CD,0,this);g.F(this,this.vH);g.aG(c)||(this.jr=new cO(a),g.F(this,this.jr),g.uN(a,this.jr.element,4));if(ata()){var e=new pO(a);g.F(this,e);e=e.element;g.uN(a,e,4)}var f=a.getVideoData();this.kd=new aO(d,function(l){return b.Rw(l)},f,c.Pc);
g.F(this,this.kd);this.kd.subscribe("autohideupdate",this.uj,this);var h=new oO(a);g.F(this,h);g.uN(a,h.element,4);this.Qz=new sO(a);g.F(this,this.Qz);g.uN(this.api,this.Qz.element,2);this.TC=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.vv);this.Kz=new g.J(this.Ds,200,this);g.F(this,this.Kz);this.iD=f.videoId;this.BL=new g.J(function(){b.ev=0},350);
g.F(this,this.BL);this.dx=new g.J(function(){b.cF||tO(b)},350,this);
g.F(this,this.dx);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.K(f,"ytp-color-white")}g.aG(c)&&g.K(f,"ytp-music-player");!g.S(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new nO(a),g.F(this,f));this.N(a,"appresize",this.tb);this.N(a,"presentingplayerstatechange",this.hh);this.N(a,"videodatachange",this.ob);this.N(a,"videoplayerreset",this.DT);
this.N(a,"autonavvisibility",function(){b.pm()});
this.N(a,"sizestylechange",function(){b.pm()});
this.N(d,"click",this.gU,this);this.N(d,"dblclick",this.hU,this);c.Ua&&(this.N(d,"gesturechange",this.iU,this),this.N(d,"gestureend",this.jU,this));this.En=[d.Mt];this.jr&&this.En.push(this.jr.element);e&&this.En.push(e)};
vO=function(a,b){if(!b)return!1;var c=a.api.qd();if(c.Bo()&&(c=c.Ge())&&g.ug(c,b))return c.controls;for(c=0;c<a.En.length;c++)if(g.ug(a.En[c],b))return!1;return g.Lq(b,"ytp-player-content")||g.Lq(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
bta=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.bb().Mx||!1)&&a.api.T().i&&wO&&11<=hI;a=a.api.T().J&&wO;return!(!b&&!a)};
xO=function(a,b){return!vO(a,cu(b))&&g.zM(b)};
tO=function(a){a.kd.Rk();if(g.S(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.Lz&&a.RB)a.RB=!1;else if(!a.api.T().va&&!a.pk()){var b=a.api.ub();g.V(b,2)&&oN(a.api)||a.jq(b);if(!a.api.T().Ua||b.isCued()||g.V(b,1024)){var c=a.api.Bz();g.Kv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.Kv("embedsRequestStorageAccessState",{isCued:b.isCued(),i9:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Kv("embedsRequestStorageAccessFailedState",
{state:b.state}),a.Ds())}else a.Kz.isActive()?(a.Nx(),a.Kz.stop()):a.Kz.start()}};
cta=function(a,b){return g.zM(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.ub(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Ds(),!0):!1};
dta=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
ata=function(){var a=tt()&&67<=pt();return!rt("tizen")&&!OF&&!a&&!0};
yO=function(a,b){b=void 0===b?2:b;g.Q.call(this);this.api=a;this.i=null;this.qe=new vx(this);g.F(this,this.qe);this.l=tra;this.qe.N(this.api,"presentingplayerstatechange",this.Hc);this.i=this.qe.N(this.api,"progresssync",this.Rb);this.Jj=b;1===this.Jj&&this.Rb()};
zO=function(a){g.W.call(this,{D:"button",Ea:["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",Kb:!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.BL(this,a.T().showBackButton);this.Pa("click",this.onClick)};
g.AO=function(a){g.W.call(this,{D:"div",S:[{D:"div",K:"ytp-bezel-text-wrapper",S:[{D:"div",K:"ytp-bezel-text",ra:"{{title}}"}]},{D:"div",K:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{D:"div",K:"ytp-bezel-icon",ra:"{{icon}}"}]}]});this.G=a;this.l=new g.J(this.show,10,this);this.i=new g.J(this.hide,500,this);g.F(this,this.l);g.F(this,this.i);this.hide()};
CO=function(a,b,c){if(0>=b){c=PL();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",Kb:!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",Kb:!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";BO(a,c,b,d+"%")};
eta=function(a,b){b=b?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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",Kb:!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"}}]};var c=a.G.getPlaybackRate(),d=g.iJ("Speed is $RATE",{RATE:String(c)});BO(a,b,d,c+"x")};
BO=function(a,b,c,d){d=void 0===d?"":d;a.Ta("label",void 0===c?"":c);a.Ta("icon",b);g.Hq(a.i);a.l.start();a.Ta("title",d);g.M(a.element,"ytp-bezel-text-hide",!d)};
EO=function(a,b,c){g.W.call(this,{D:"button",Ea:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.QF(a.T()))},S:[{D:"span",K:"ytp-cards-button-icon-default",S:[{D:"div",K:"ytp-cards-button-icon",S:[Rqa()]},{D:"div",K:"ytp-cards-button-title",ra:"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",ra:"Shopping"}]}]});this.G=a;this.u=b;this.B=c;this.i=null;this.l=new g.kM(this,250,!0,100);g.F(this,this.l);g.M(this.B,"ytp-show-cards-title",g.QF(a.T()));this.hide();this.Pa("click",this.onClicked);this.Pa("mouseover",this.WS);DO(this,!0)};
DO=function(a,b){b?a.i=g.FO(a.u.jc(),a.element):(a.i=a.i,a.i(),a.i=null)};
GO=function(a,b,c){g.W.call(this,{D:"div",K:"ytp-cards-teaser",S:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",S:a.T().Z("player_new_info_card_format")?[{D:"button",K:"ytp-cards-teaser-info-icon",U:{"aria-label":"Show cards","aria-haspopup":"true"},S:[Rqa()]},{D:"span",K:"ytp-cards-teaser-label",ra:"{{text}}"},{D:"button",K:"ytp-cards-teaser-close-button",U:{"aria-label":"Close"},S:[g.IL()]}]:[{D:"span",K:"ytp-cards-teaser-label",ra:"{{text}}"}]}]});var d=this;this.G=a;this.V=
b;this.Zh=c;this.B=new g.kM(this,250,!1,250);this.i=null;this.J=new g.J(this.nT,300,this);this.I=new g.J(this.mT,2E3,this);this.C=[];this.l=null;this.L=new g.J(function(){d.element.style.margin="0"},250);
this.u=null;g.F(this,this.B);g.F(this,this.J);g.F(this,this.I);g.F(this,this.L);g.S(a.T().experiments,"player_new_info_card_format")?(g.K(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.Ca("ytp-cards-teaser-close-button"),"click",this.Ai),this.N(this.Ca("ytp-cards-teaser-info-icon"),"click",this.TE),this.N(this.Ca("ytp-cards-teaser-label"),"click",this.TE)):this.Pa("click",this.TE);this.N(c.element,"mouseover",this.ZF);this.N(c.element,"mouseout",this.YF);this.N(a,"cardsteasershow",this.GU);
this.N(a,"cardsteaserhide",this.Ab);this.N(a,"cardstatechange",this.tM);this.N(a,"presentingplayerstatechange",this.tM);this.N(a,"appresize",this.qF);this.N(a,"onShowControls",this.qF);this.N(a,"onHideControls",this.DP);this.Pa("mouseenter",this.pN)};
gta=function(a,b,c,d){var e=window.location.search;if(38===b.va&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.ui("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.IR});if(30===b.va&&"docs"===a.playerStyle)return g.ui("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.HG,authkey:b.authKey,eurl:a.wc});if(33===b.va&&"google-live"===a.playerStyle)return g.ui("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.ya&&g.by(Error("getVideoInfoUrl for invalid namespace: "+a.ya));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.wc,ps:a.playerStyle,el:$H(b),hl:a.Xd,list:b.playlistId,agcid:b.eH,aqi:b.adQueryId,sts:18808,lact:zu()};g.Ra(f,a.deviceParams);a.Ya&&(f.forced_experiments=a.Ya);b.Aa?(f.vvt=b.Aa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.lf()&&(f.access_token=b.lf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.cB&&(f.ad_id=b.cB);null!==b.eB&&(f.ad_sys=b.eB);null!==b.vB&&(f.encoded_ad_playback_context=b.vB);b.oA&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ra&&2!==a.Ra&&(f.cc_load_policy=a.Ra);var h=g.kv(g.iv.getInstance(),65);g.KG(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.ul&&(f.endscreen_ad_tracking=
b.ul);(h=a.V.get(b.videoId))&&h.hw&&(f.ic_track=h.hw);b.La&&(f.itct=b.La);cI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.zk&&(f.autonav="1");b.fD&&(f.noiba="1");g.S(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Jf&&(f.ytr=b.Jf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Jf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Bl&&(f.ytrcc=b.Bl);b.zD&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&
(f.vnd=b.vnd);b.Rg&&(h=3===b.Rg.split("|").length,f.force_ad_params=h?b.Rg:"||"+b.Rg);b.Xb&&(f.preload=b.Xb);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.He&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");aI(b)&&(f.content_v=aI(b));b.Cb&&(f.livemonitor=1);a.ea&&(f.authuser=a.ea);a.pageId&&(f.pageid=a.pageId);a.Aa&&(f.ei=a.Aa);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.SE&&(f.live_start_walltime=b.SE);a.u&&b.Vg&&(f.live_manifest_duration=b.Vg);
a.u&&b.playerParams&&(f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.pA&&(f.tkn=b.pA);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.jb&&(f.kpt=b.jb);b.Wi&&(f.kids_age_up_mode=b.Wi);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.wq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.V?(h=null!=b.V.latitudeE7&&null!=b.V.longitudeE7?b.V.latitudeE7+","+b.V.longitudeE7:",",h+=","+(b.V.clientPermissionState||
0)+","+(b.V.locationRadiusMeters||"")+","+(b.V.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.Oj&&(f.internalipoverride=b.Oj);a.embedConfig&&(f.embed_config=a.embedConfig);a.Mj&&(f.co_rel="1");0<a.Zc.length&&(f.ancestor_origins=Array.from(a.Zc).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.ll&&b.ol&&(f.clip=b.ll,f.clipt=b.ol);b.ql&&(f.disable_watch_next="1");a.Z("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(EN(b,c,d)));a.Z("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(wsa(b)));b.Tg&&(f.forced_by_var="1");for(var l in f)!fta.has(l)&&f[l]&&512<String(f[l]).length&&(g.cy(Error("GVI param too long: "+l)),f[l]="");b=a.Da;g.YF(a)&&(b=Gz(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Da);a=g.ui(b+"get_video_info",f);e&&(a=Zs(a,e));return a};
g.HO=function(a,b){return a.Da+"timedtext_video?ref=player&v="+b.videoId};
g.IO=function(a){var b={};b.feature=a;return b};
hta=function(a){var b={};a.lA&&(b.ytrext=a.lA);return g.Rb(b)?void 0:b};
KO=function(a){g.W.call(this,{D:"button",Ea:[JO.BUTTON,JO.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{D:"div",K:JO.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.ML()]},{D:"div",K:JO.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.i=!1;a.Yb(this.element,this,36927);this.Pa("click",this.onClick,this);this.Ta("pressed",!1);this.Ta("label","Get notified about every new video")};
ita=function(a,b){a.i=b;a.element.classList.toggle(JO.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.rA:c.qA)?(a=a.api.Jl())?QM(a,b):g.ds(Error("No innertube service available when updating notification preferences.")):g.ds(Error("No update preferences command available.")):g.ds(Error("No video data when updating notification preferences."))};
g.MO=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 u=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.WF(u)||g.$F(u))c.target=u.I;g.W.call(this,{D:"div",Ea:["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",ra:b}:""]}]});f&&g.K(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.WF(u)&&!g.S(u.experiments,"subscribe_tooltipkillswitch");g.W.call(this,{D:"div",Ea:["ytp-button","ytp-sb"],S:[{D:"div",K:"ytp-sb-subscribe",U:p?{title:g.iJ("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":PG(u),"data-tooltip-opaque":String(g.QF(u)),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",ra:b}:""]},{D:"div",K:"ytp-sb-unsubscribe",U:p?{title:g.iJ("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":PG(u),"data-tooltip-opaque":String(g.QF(u)),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",ra:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Ca("ytp-sb-subscribe"),B=this.Ca("ytp-sb-unsubscribe");
f&&g.K(this.element,"ytp-sb-classic");if(e){l?this.l():this.u();var G=function(){var I=x.channelId;if(m||n){var L={c:I};if(g.S(r.T().experiments,"embeds_botguard_with_subscribe_killswitch"))L="";else{var T;bN.ge()&&(T=Tra(L));L=T||""}if(T=r.getVideoData())if(T=T.subscribeCommand){var N=r.Jl();N?(QM(N,T,{botguardResponse:L,feature:m}),r.Na("SUBSCRIBE",I)):g.ds(Error("No innertube service available when updating subscriptions."))}else g.ds(Error("No subscribe command in videoData."));else g.ds(Error("No video data available when updating subscription."))}B.focus();
B.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},H=function(){var I=x.channelId;
if(m||n){var L=r.getVideoData();QM(r.Jl(),L.unsubscribeCommand,{feature:m});r.Na("UNSUBSCRIBE",I)}y.focus();y.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.N(y,"click",G);this.N(B,"click",H);this.N(y,"keypress",function(I){13===I.keyCode&&G(I)});
this.N(B,"keypress",function(I){13===I.keyCode&&H(I)});
this.N(r,"SUBSCRIBE",this.l);this.N(r,"UNSUBSCRIBE",this.u);this.i&&p&&(this.tooltip=this.i.jc(),LO(this.tooltip),g.hf(this,g.FO(this.tooltip,y)),g.hf(this,g.FO(this.tooltip,B)))}else g.K(y,"ytp-sb-disabled"),g.K(B,"ytp-sb-disabled")}};
NO=function(a,b){g.W.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().I,"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",ra:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().I,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",
K:"ytp-title-expanded-subtitle",ra:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Ca("ytp-title-channel");this.i=this.Ca("ytp-title-channel-logo");this.B=this.Ca("ytp-title-expanded-overlay");this.u=this.l=this.subscribeButton=null;this.C=g.QF(this.api.T());a.Yb(this.i,this,36925);this.C&&jta(this);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.Ma()};
jta=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.Fi){var d=b.ea?null:vra(),e=new g.MO("Subscribe",null,"Subscribed",null,!0,!1,c.Rh,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.F(a,e);e.Ba(a.B);a.api.Yb(e.element,a,36926);e.hide();a.N(e.element,"click",function(){a.api.Gb(e.element)});
var f=new KO(a.api);a.l=f;g.F(a,f);f.Ba(a.B);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.Kh&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.Kh&&(f.hide(),ita(f,!1))})}a.Ta("flyoutUnfocusable","true");
a.Ta("channelTitleFocusable","-1");b.i?a.N(a.i,"click",function(h){kta(a)&&(h.preventDefault(),a.isExpanded()?a.LB():a.jC());a.api.Gb(a.i)}):(a.N(a.channel,"mouseenter",a.jC),a.N(a.channel,"mouseleave",a.LB),a.N(a.channel,"focusin",a.jC),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.LB()}),a.N(a.i,"click",function(){a.api.Gb(a.i)}));
a.u=new g.J(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.kb(a.subscribeButton.element,!1)),a.l&&(a.l.hide(),a.api.kb(a.l.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.F(a,a.u);a.N(a.channel,lta,function(){mta(a)});
a.N(a.api,"onHideControls",a.sE);a.N(a.api,"appresize",a.sE);a.N(a.api,"fullscreentoggled",a.sE)};
mta=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
kta=function(a){var b=a.api.getPlayerSize();return a.C&&524<=b.width};
g.PO=function(a,b,c,d){g.CL.call(this,a);this.priority=b;c&&g.OO(this,c);d&&this.dd(d)};
g.QO=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",Ea:b,U:a,S:[{D:"div",K:"ytp-menuitem-icon",ra:"{{icon}}"},{D:"div",K:"ytp-menuitem-label",ra:"{{label}}"},{D:"div",K:"ytp-menuitem-content",ra:"{{content}}"}]}};
RO=function(a,b){a.Ta("icon",b)};
g.OO=function(a,b){a.Ta("label",b)};
SO=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",Ea:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({D:"button",Ea:["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.CL.call(this,h);this.content=b;d&&h.S?b.Ba(this.element,h.S.length-1):b.Ba(this.element);this.aJ=!1;this.SQ=d;c&&(c=this.Ca(l),this.N(c,"click",this.mS),this.aJ=!0,
e&&(n=this.Ca(n),this.N(n,"click",e)));b.subscribe("size-change",this.rK,this);this.N(a,"fullscreentoggled",this.rK)};
g.TO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.CL({D:"div",K:"ytp-panel-menu",U:h});SO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.F(this,this.menuItems)};
g.UO=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.OD,a);a.items=[];g.qg(a.menuItems.element);a.menuItems.X("size-change")};
nta=function(a,b){return b.priority-a.priority};
VO=function(a){var b=g.QO({"aria-haspopup":"true"});g.PO.call(this,b,a);this.Pa("keydown",this.i)};
WO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
XO=function(a,b){g.PO.call(this,g.QO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Pa("click",this.onClick)};
YO=function(a,b,c,d){var e;g.TO.call(this,a);this.G=a;this.yb=c;this.qc=d;this.getVideoUrl=new VO(6);this.jj=new VO(5);this.gj=new VO(4);this.Eb=new VO(3);this.Lv=new g.PO(g.QO({href:"{{href}}",target:this.G.T().I},void 0,!0),2,"Troubleshoot playback issue");this.gr=new g.CL({D:"div",Ea:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},ra:"{{text}}"});this.VH=new SO(this.G,this.gr);this.un=null;this.G.T().Ui&&(this.wi=new XO("Loop",7),g.F(this,this.wi),this.Cc(this.wi,!0),this.wi.Pa("click",
this.hT,this),a.Yb(this.wi.element,this.wi,28661));g.F(this,this.getVideoUrl);this.Cc(this.getVideoUrl,!0);this.getVideoUrl.Pa("click",this.SS,this);a.Yb(this.getVideoUrl.element,this.getVideoUrl,28659);g.F(this,this.jj);this.Cc(this.jj,!0);this.jj.Pa("click",this.US,this);a.Yb(this.jj.element,this.jj,28660);g.F(this,this.gj);this.Cc(this.gj,!0);this.gj.Pa("click",this.RS,this);a.Yb(this.gj.element,this.gj,28658);g.F(this,this.Eb);this.Cc(this.Eb,!0);this.Eb.Pa("click",this.QS,this);g.F(this,this.Lv);
this.Cc(this.Lv,!0);this.Lv.Pa("click",this.bU,this);b=new g.PO(g.QO(),1,"Stats for nerds");g.F(this,b);this.Cc(b,!0);b.Pa("click",this.tU,this);g.F(this,this.gr);this.gr.Pa("click",this.CS,this);g.F(this,this.VH);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.bj&&g.Wd(43)&&(c=!0);g.cj&&!g.Wd(41)&&(c=!1);c&&(this.un=new g.W({D:"textarea",K:"ytp-html5-clipboard",U:{readonly:""}}),g.F(this,this.un),this.un.Ba(this.element));null===(e=this.wi)||void 0===e?void 0:RO(e,{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"}}]});RO(this.Eb,{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"}}]});RO(this.Lv,{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"}}]});RO(b,Sqa());this.N(a,"loopchange",this.CK);this.N(a,"videodatachange",this.ob);ota(this);this.Ji(this.G.getVideoData())};
$O=function(a,b){var c=!1;if(a.un){var d=a.un.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.yb.Ab():(a.gr.dd(b,"text"),g.ZO(a.yb,a.VH),gO(a.gr.element),a.un&&(a.un=null,ota(a)));return c};
ota=function(a){var b=!!a.un;g.OO(a.Eb,b?"Copy debug info":"Get debug info");WO(a.Eb,!b);g.OO(a.gj,b?"Copy embed code":"Get embed code");WO(a.gj,!b);g.OO(a.getVideoUrl,b?"Copy video URL":"Get video URL");WO(a.getVideoUrl,!b);g.OO(a.jj,b?"Copy video URL at current time":"Get video URL at current time");WO(a.jj,!b);RO(a.gj,b?Pqa():null);RO(a.getVideoUrl,b?KL():null);RO(a.jj,b?KL():null)};
g.aP=function(a,b){g.qO.call(this,a,{D:"div",Ea:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.B=null;this.Bw=this.maxWidth=0;this.size=new g.Tf(0,0);this.Pa("keydown",this.qN)};
pta=function(a){var b=a.i[a.i.length-1];if(b){g.Pl(a.element,a.maxWidth||"100%",a.Bw||"100%");g.Bl(b.element,"minWidth","250px");g.Bl(b.element,"width","");g.Bl(b.element,"height","");g.Bl(b.element,"maxWidth","100%");g.Bl(b.element,"maxHeight","100%");g.Bl(b.content.element,"height","");var c=g.Ql(b.element);c.width+=1;c.height+=1;g.Bl(b.element,"width",c.width+"px");g.Bl(b.element,"height",c.height+"px");g.Bl(b.element,"maxWidth","");g.Bl(b.element,"maxHeight","");var d=0;b.aJ&&(d=b.Ca("ytp-panel-header"),
d=g.Ql(d).height);var e=0;b.SQ&&(e=b.Ca("ytp-panel-footer"),g.Bl(e,"width",c.width+"px"),e=g.Ql(e).height);g.Bl(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.Bl(b.element,"width",c.width+"px")));a.size=c}};
g.ZO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);bP(a,c,b)};
g.cP=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];bP(a,b,c,!0)}};
bP=function(a,b,c,d){qta(a);b&&(b.unsubscribe("size-change",a.Is,a),b.unsubscribe("back",a.kh,a));c.subscribe("size-change",a.Is,a);c.subscribe("back",a.kh,a);if(a.vb){g.K(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;pta(a);g.Pl(a.element,e);a.B=new g.J(function(){rta(a,b,c,d)},20,a);
a.B.start()}else c.Ba(a.element),b&&b.detach()};
rta=function(a,b,c,d){a.B.dispose();a.B=null;g.K(a.element,"ytp-popup-animating");d?(g.K(b.element,"ytp-panel-animate-forward"),g.Nq(c.element,"ytp-panel-animate-back")):(g.K(b.element,"ytp-panel-animate-back"),g.Nq(c.element,"ytp-panel-animate-forward"));g.Pl(a.element,a.size);a.I=new g.J(function(){g.Nq(a.element,"ytp-popup-animating");b.detach();g.Oq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
qta=function(a){a.B&&g.Gq(a.B);a.I&&g.Gq(a.I)};
g.dP=function(a,b,c){g.aP.call(this,a);this.ya=b;this.qc=c;this.u=new g.wN(this);this.Y=new g.J(this.LU,1E3,this);this.va=this.C=null;g.F(this,this.u);g.F(this,this.Y);a.Yb(this.element,this,28656);g.K(this.element,"ytp-contextmenu");sta(this);this.hide()};
sta=function(a){g.xx(a.u);if("gvn"!==a.G.T().playerStyle){var b=a.G.bb();a.u.N(b,"contextmenu",a.zS);a.u.N(b,"touchstart",a.sN,null,!0);a.u.N(b,"touchmove",a.YK,null,!0);a.u.N(b,"touchend",a.YK,null,!0)}};
tta=function(a){a.G.isFullscreen()?g.uN(a.G,a.element,9):a.Ba(document.body)};
g.eP=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{D:"button",Ea:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.QF(a.T()))},S:[{D:"div",K:"ytp-copylink-icon",ra:"{{icon}}"},{D:"div",K:"ytp-copylink-title",ra:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.jc();b=a.T();LO(this.tooltip);g.M(this.element,"ytp-show-copylink-title",g.QF(b)&&!g.aG(b));a.Yb(this.element,this,86570);this.Pa("click",
this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();g.hf(this,g.FO(this.tooltip,this.element))};
uta=function(a){a.Ta("icon",FL());if(a.api.T().i)fP(a.tooltip,a.element,"Link copied to clipboard");else{a.Ta("title-attr","Link copied to clipboard");gP(a.tooltip);fP(a.tooltip,a.element);var b=a.Pa("mouseleave",function(){a.lc(b);a.Ma();a.tooltip.cj()})}};
vta=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return ta(f,2),g.w(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);va(f);var h=f.return,l=!1,m=g.og("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(Et){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)})})};
hP=function(a){g.W.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",ra:"{{seekText}}"},{D:"div",K:"ytp-doubletap-tooltip-label",ra:"{{seekTime}}"}]}]}]});this.G=a;this.u=new g.J(this.show,10,this);this.l=new g.J(this.hide,700,this);this.i=this.Ca("ytp-doubletap-static-circle");g.F(this,this.u);g.F(this,this.l);this.hide();this.B=this.Ca("ytp-doubletap-fast-forward-ve");this.C=this.Ca("ytp-doubletap-rewind-ve");this.G.Yb(this.B,this,28240);this.G.Yb(this.C,this,28239);this.G.kb(this.B,!0);this.G.kb(this.C,!0)};
iP=function(a,b,c){var d=a.G.bb().getPlayerSize();g.Hq(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.K(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";wta(a,c)};
jP=function(a,b,c){g.Hq(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.K(a.element,"ytp-chapter-seek");a.Ta("seekText",c);a.Ta("seekTime","")};
wta=function(a,b){b=g.iJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ta("seekTime",b)};
kP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
lP=function(a,b){var c=0;a=g.q(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
xta=function(a,b){b=lP(a,b)+1;return b<a.length?b:-1};
yta=function(a,b){return lP(a,b)-1};
g.mP=function(a,b,c,d,e,f,h){g.wN.call(this);var l=this;this.api=a;this.contextMenu=c;this.kd=d;this.qc=e;this.i=f;this.B=h;this.u=new g.J(function(){zta(l,!1)},1E3);
this.l="";g.F(this,this.u);a=g.Qa(this.DE,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.WI);this.N(c.element,"keydown",this.WI);this.N(b,"keyup",this.XI);this.N(c.element,"keyup",this.XI)};
oP=function(a,b,c,d){var e=g.NN(a.api.sb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.nP.length;h++){var l=g.nP[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);zta(a,!0);a.u.start()}};
Ata=function(a,b){a.api.nf();if(g.V(a.api.ub(),4)){var c=a.api.getVideoData().l;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
zta=function(a,b){g.NN(a.api.sb())&&a.api.setOption("captions","sampleSubtitles",b)};
pP=function(a,b,c){g.W.call(this,{D:"button",Ea:["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.jc();
a.Yb(this.element,this,16499);this.N(a,"appresize",this.Ma);this.N(a,"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();g.hf(this,g.FO(this.tooltip,this.element));this.Pa("click",function(){a.Gb(d.element);rO(c,d.element,!1)})};
qP=function(a,b){g.qO.call(this,a,{D:"div",K:"ytp-overflow-panel",U:{id:xL(),role:"dialog"},S:[{D:"div",K:"ytp-overflow-panel-content",S:[{D:"div",K:"ytp-overflow-panel-action-buttons",ra:"{{buttons}}"}]},{D:"button",Ea:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.IL()]}]},250);this.actionButtons=[];this.tooltip=b.jc();this.i=this.Ca("ytp-overflow-panel-content");this.closeButton=this.Ca("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.Ab);g.hf(this,g.FO(this.tooltip,
this.closeButton));this.Pa("click",this.tN);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Ye);this.hide()};
rP=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ta("buttons",a.actionButtons))};
Bta=function(a,b){a=g.q(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Sb(b)};
sP=function(a,b,c){var d=b.ib(c),e=a.T(),f=d.We("default.jpg");g.W.call(this,{D:"a",Ea:["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",ra:String(c+1)},{D:"div",K:"ytp-video-menu-item-now-playing",ra:"\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",ra:d.title},{D:"div",
K:"ytp-video-menu-item-author",ra:d.author}]});this.api=a;this.index=c;this.Pa("click",this.onClick)};
tP=function(a){g.qO.call(this,a,{D:"div",K:"ytp-playlist-menu",U:{role:"dialog",id:xL()},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}}"},ra:"{{title}}"},{D:"button",Ea:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.IL()]}]},{D:"div",K:"ytp-playlist-menu-subtitle",ra:"{{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.Ca("ytp-playlist-menu-items");this.u=new g.wN(this);this.i=[];a=this.Ca("ytp-playlist-menu-close");this.N(a,"click",this.Ab);a=this.Ca("ytp-playlist-menu-title-name");this.N(a,"click",this.KU);g.F(this,this.u);this.hide()};
uP=function(a,b,c){g.W.call(this,{D:"button",Ea:["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",Kb:!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",ra:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.jc();a.Yb(this.element,this,70344);this.N(a,"videodatachange",this.i);this.N(a,"onPlaylistUpdate",this.i);this.N(a,"presentingplayerstatechange",this.Ma);this.N(a,"appresize",this.Ma);this.hide();this.i();g.hf(this,g.FO(this.tooltip,this.element));this.Pa("click",function(){a.Gb(d.element);rO(c,d.element,!1)})};
vP=function(a,b,c){g.W.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",ra:"{{title}}"},{D:"div",K:"ytp-promotooltip-details",ra:"{{details}}"}]},{D:"div",K:"ytp-promotooltip-buttons",S:[{D:"div",K:"ytp-promotooltip-dismiss-button",ra:"{{dismissButtonText}}",U:{tabindex:"0"}},{D:"div",K:"ytp-promotooltip-accept-button",ra:"{{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.Ca("ytp-promotooltip-title");this.details=this.Ca("ytp-promotooltip-details");this.acceptButton=this.Ca("ytp-promotooltip-accept-button");this.dismissButton=this.Ca("ytp-promotooltip-dismiss-button");this.I=this.C=this.l=this.B=!1;g.BL(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.l=!!a)this.G.Pg(this.element,this,!0),this.G.im(this.element,a);this.N(c,"onShowControls",
this.zA);this.N(c,"onHideControls",this.BS);this.N(c,"resize",this.tb);this.N(this.acceptButton,"click",this.MR);this.N(this.dismissButton,"click",this.IS);this.N(document,"click",this.uN)};
Cta=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
wP=function(a){g.BL(a,!1);a.l&&a.G.kb(a.element,a.vb)};
xP=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)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.G.Jl(),(null===a||void 0===a?0:Era(a,f))&&QM(a,f,b)}};
Dta=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};
yP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.NL()]});this.G=a;this.N(a,"presentingplayerstatechange",this.i);this.Pa("click",this.onClick,this);a=a.ub();g.BL(this,g.V(a,2));g.FO(b.jc(),this.element)};
g.zP=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{D:"button",Ea:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.QF(a.T()))},S:[{D:"div",K:"ytp-share-icon",ra:"{{icon}}"},{D:"div",K:"ytp-share-title",ra:"Share"}]});this.api=a;this.i=b;this.u=c;this.l=d;this.visible=!1;this.tooltip=this.i.jc();b=a.T();a.Yb(this.element,this,28664);this.Pa("click",this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",
this.Ma);this.N(a,"appresize",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();g.M(this.element,"ytp-show-share-title",g.QF(b)&&!g.aG(b));g.hf(this,g.FO(this.tooltip,this.element))};
Eta=function(a){"InvalidStateError"!==a.name&&g.by(a)};
g.AP=function(a,b){var c=xL(),d=a.T();c={D:"div",K:"ytp-share-panel",U:{id:xL(),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},ra:"Share"},{D:"a",Ea:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.I,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ra:"{{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:[fO()]},{D:"div",K:"ytp-share-panel-service-buttons",ra:"{{buttons}}"},{D:"div",K:"ytp-share-panel-error",ra:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",Ea:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.IL()]}]};g.qO.call(this,a,c,250);this.api=a;this.tooltip=b.jc();this.i=[];this.C=this.Ca("ytp-share-panel-inner-content");this.closeButton=this.Ca("ytp-share-panel-close");
this.N(this.closeButton,"click",this.Ab);g.hf(this,g.FO(this.tooltip,this.closeButton));this.B=this.Ca("ytp-share-panel-include-playlist-checkbox");this.N(this.B,"click",this.Ma);this.u=this.Ca("ytp-share-panel-link");g.hf(this,g.FO(this.tooltip,this.u));this.Pa("click",this.vN);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Ye);this.N(a,"onLoopRangeChange",this.rR);this.hide()};
Gta=function(a,b){Fta(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={tm:e.tm},f++){e.tm=c[f];a:switch(e.tm.img||e.tm.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.W({D:"a",Ea:["ytp-share-panel-service-button","ytp-button"],U:{href:e.tm.url,target:"_blank",title:e.tm.sname||e.tm.serviceName},S:[h]}),h.Pa("click",function(m){return function(n){if(g.zM(n)){var p=m.tm.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 u=p instanceof g.Fc?p:g.Kc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Pd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.og("A"),g.kd(y,u),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=ld("",t,p,y),r=g.Gc(u),t&&(g.MG&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.ed(g.gc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.qd(r)+'">'),(u=t.document)&&u.write&&(u.write(g.ad(r)),u.close()))):(t=ld(u,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.fu(n)}}}(e)),g.hf(h,g.FO(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.W({D:"a",Ea:["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"}});b.Pa("click",function(m){g.eO(l,a.api,m)&&a.api.Na("SHARE_CLICKED")});
g.hf(b,g.FO(a.tooltip,b.element));a.i.push(b);a.Ta("buttons",a.i)};
Fta=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ff(c);a.i=[]};
DP=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{D:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.eb=b;this.La=this.J=this.i=this.C=this.B=this.l=this.expanded=this.enabled=this.u=!1;this.Ya=!0;this.Ia=new g.J(function(){d.badge.element.style.width=""},200,this);
this.Y=new g.J(function(){BP(d);CP(d)},200,this);
this.dismissButton=new g.W({D:"button",Ea:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.F(this,this.dismissButton);this.I=new g.W({D:"div",K:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",K:"ytp-suggested-action-badge-title",ra:"{{badgeLabel}}"},this.dismissButton]});g.F(this,this.I);this.badge=new g.W({D:"button",Ea:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.F(this,this.badge);this.badge.Ba(this.element);this.L=new g.kM(this.badge,250,!1,100);g.F(this,this.L);this.ya=new g.kM(this.I,250,!1,100);g.F(this,this.ya);this.Ga=new g.Bq(this.MV,null,this);g.F(this,this.Ga);this.va=new g.Bq(this.XP,null,this);g.F(this,this.va);g.F(this,this.Ia);g.F(this,this.Y);this.G.Pg(this.badge.element,this.badge,!0);this.G.Pg(this.dismissButton.element,this.dismissButton,!0);this.N(this.G,"onHideControls",function(){d.i=!1;CP(d);BP(d);d.Qh()});
this.N(this.G,"onShowControls",function(){d.i=!0;CP(d);BP(d);d.Qh()});
this.N(this.badge.element,"click",this.DD);this.N(this.dismissButton.element,"click",this.ED);this.N(this.G,"pageTransition",this.wN);this.N(this.G,"appresize",this.Qh);this.N(this.G,"fullscreentoggled",this.OS);this.N(this.G,"cardstatechange",this.pS);this.N(this.G,"annotationvisibility",this.mW,this);this.N(this.G,"offlineslatestatechange",this.nW,this)};
BP=function(a){g.M(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)};
CP=function(a,b){var c=a.J||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ga.stop(),a.va.stop(),a.Ia.stop(),a.Ga.start()):(g.BL(a.I,a.expanded),g.M(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Hta(a))};
Hta=function(a){a.B&&a.G.kb(a.badge.element,a.Sv());a.C&&a.G.kb(a.dismissButton.element,a.Sv()&&(a.J||a.i||!a.l))};
Ita=function(a){var b=a.text||"";g.vg(g.dg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ra?a.Ra:"")};
Jta=function(a,b){b?a.C&&a.G.Gb(a.dismissButton.element):a.B&&a.G.Gb(a.badge.element)};
EP=function(a,b){DP.call(this,a,b);var c=this;this.V=this.Aa=this.Da=!1;this.N(this.G,g.Rz("shopping_overlay_visible"),function(){c.Re(!0)});
this.N(this.G,g.Sz("shopping_overlay_visible"),function(){c.Re(!1)});
this.N(this.G,g.Rz("shopping_overlay_expanded"),function(){c.J=!0;CP(c)});
this.N(this.G,g.Sz("shopping_overlay_expanded"),function(){c.J=!1;CP(c)});
this.N(this.G,"changeProductsInVideoVisibility",this.HT);this.N(this.G,"videodatachange",this.ob);this.N(this.G,"paidcontentoverlayvisibilitychange",this.yT)};
FP=function(a){a.G.uf("shopping_overlay_visible");a.G.uf("shopping_overlay_expanded")};
GP=function(a){g.qO.call(this,a,{D:"button",Ea:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",K:"ytp-skip-intro-button-text",ra:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.J(function(){b.hide()},5E3);
this.i=this.u=NaN;g.F(this,this.B);this.va=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.Fr(c,d)});
this.N(this.element,"click",function(){b.G.seekTo(b.i/1E3)});
this.hide()};
HP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},ra:"{{icon}}"});this.G=a;this.Pa("click",this.onClick);this.N(a,"airplayactivechange",this.Ma);this.N(a,"airplayavailabilitychange",this.Ma);this.Ma();g.hf(this,g.FO(b.jc(),this.element))};
IP=function(a,b){g.W.call(this,{D:"button",Ea:["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.Yb(this.element,this,113681);this.N(a,"presentingplayerstatechange",this.gt);this.Pa("click",this.onClick);this.tooltip=b.jc();g.hf(this,g.FO(b.jc(),this.element));this.gt()};
Kta=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ta("title",b);a.Ta("label",b);gP(a.tooltip)};
g.KP=function(a){g.W.call(this,{D:"div",K:"ytp-gradient-bottom"});this.i=g.og("CANVAS");this.ctx=this.i.getContext("2d");this.u=NaN;this.i.width=1;this.l=g.aG(a.T());g.JP(this,a.bb().getPlayerSize().height)};
g.JP=function(a,b){if(a.ctx){b=Math.floor(b*(a.l?1:.4));b=Math.max(b,47);var c=b+2;if(a.u!==c){a.u=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.l)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.i.toDataURL()+")"}catch(f){}}}};
LP=function(a,b){g.W.call(this,{D:"div",K:"ytp-chapter-container",S:[{D:"button",Ea:["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",ra:"\u2022"},{D:"div",K:"ytp-chapter-title-content",ra:"{{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.Ca("ytp-chapter-container");this.l=this.Ca("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.Rb);this.N(a,"SEEK_TO",this.Rb);this.N(a,"innertubeCommand",this.onClickCommand)};
Lta=function(a,b,c,d,e){var f=b.Dy/b.rows,h=Math.min(c/(b.Ey/b.columns),d/f),l=b.Ey*h,m=b.Dy*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.MP=function(a){g.W.call(this,{D:"div",K:"ytp-storyboard-framepreview",S:[{D:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.Ca("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.wN(this);this.i=new g.kM(this,100);g.F(this,this.events);g.F(this,this.i);this.N(this.api,"presentingplayerstatechange",this.Hc)};
NP=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){NP(a,a.api.Gh())}),a.events.N(a.api,"progresssync",a.hd),a.events.N(a.api,"appresize",a.C)),a.u=NaN,OP(a),a.i.show(200)):(c&&g.xx(a.events),a.i.hide(),a.i.stop())};
OP=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=nH(b,d.width);c=pma(b,e,c);c!==a.u&&(a.u=c,mma(b,c,d.width),b=kma(b,c,d.width),Lta(a.B,b,d.width,d.height))};
PP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",Ea:["ytp-fullerscreen-edu-text"],ra:"Scroll for details"},{D:"div",Ea:["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.kM(this,250,void 0,100);this.C=this.u=!1;a.Yb(this.element,this,61214);this.B=b;g.F(this,this.l);this.N(a,
"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Pa("click",this.onClick);this.Ma()};
g.QP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},ra:"{{icon}}"});this.G=a;this.l=b;this.message=null;this.i=g.FO(this.l.jc(),this.element);this.u=new g.J(this.zP,2E3,this);g.F(this,this.u);this.N(a,"fullscreentoggled",this.Ii);this.N(a,"presentingplayerstatechange",this.Ma);this.Pa("click",this.onClick);rx()&&(b=this.G.bb(),this.N(b,pia(),this.KD),this.N(b,ux(document),this.Yl));a.T().Ua||a.T().J||this.disable();this.Ma();this.Ii(a.isFullscreen())};
RP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[Vqa()]});this.G=a;this.visible=!1;this.Pa("click",this.onClick);this.N(a,"fullscreentoggled",this.Ma);this.Ta("title",hO(a,"Miniplayer","i"));g.hf(this,g.FO(b.jc(),this.element));a.Yb(this.element,this,62946);this.Ma()};
SP=function(a,b,c){g.W.call(this,{D:"button",Ea:["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",Kb:!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.J(this.u,400,this);this.tooltip=b.jc();LO(this.tooltip);g.F(this,this.l);this.Pa("click",function(){rO(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.Ma(!1)});
this.N(a,"videodatachange",this.ob);this.Ma(!0);g.hf(this,g.FO(this.tooltip,this.element))};
TP=function(a){g.qO.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",Ea:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.IL()]}]}]},{D:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.wN(this);this.items=this.Ca("ytp-multicam-menu-items");this.i=[];g.F(this,this.u);a=this.Ca("ytp-multicam-menu-close");this.N(a,"click",this.Ab);this.hide()};
UP=function(){g.E.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.Bq(this.i,null,this);g.F(this,this.delay)};
Mta=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=Mta(a,d)))return d}};
Pta=function(a,b,c){c=Mta(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=xL();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=Nta(e),m=Nta(c);VP(a,function(n){d.setAttribute("d",Ota(l,m,n))},200)};
VP=function(a,b,c){a.l=b;a.startTime=(0,g.P)();a.duration=c;a.i()};
Nta=function(a){var b=[];a=a.match(Qta);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};
Ota=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.WP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-mute-button","ytp-button"],U:a.T().Y?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ra:"{{icon}}"});this.G=a;this.i=null;this.B=this.L=this.C=this.Y=NaN;this.va=this.I=null;this.u=[];this.l=[];this.visible=!1;this.J=null;var c=this.G.T();this.Ta("icon",PL());this.tooltip=b.jc();this.i=new g.yL({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",Kb:!0,Ea:["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",Kb:!0,Ea:["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.F(this,this.i);this.I=this.i.Ca("ytp-svg-volume-animation-speaker");this.va=this.I.getAttribute("d");this.u=g.cg("ytp-svg-volume-animation-mover",this.i.element);
this.l=g.cg("ytp-svg-volume-animation-hider",this.i.element);this.ya=new UP;g.F(this,this.ya);this.V=new UP;g.F(this,this.V);this.Pa("click",this.oT);this.N(a,"appresize",this.bG);this.N(a,"onVolumeChange",this.Hf);var d=null;if(c.Y)g.hf(this,g.FO(b.jc(),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.qO(a,{D:"span",Ea:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{D:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.I},ra:e[2]},e[4]]},100,!0);g.F(this,d);d.hide();d.subscribe("show",function(f){b.rr(d,f)});
g.uN(a,d.element,4)}this.message=d;a.Yb(this.element,this,28662);this.bG(a.bb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Tta=function(a,b){a.Y=b;var c=a.va;b&&(c+=Ota(Rta,Sta,b));a.I.setAttribute("d",c)};
Uta=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=PL():e=a.i;for(c=0;c<a.l.length;c++)if(d=a.l[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.J&&(a.Ta("icon",e),a.J=e)};
XP=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[Vqa()]});this.G=a;this.Ta("title","Picture in Picture");this.Pa("click",this.onClick);g.hf(this,g.FO(b.jc(),this.element))};
g.YP=function(a,b,c){g.W.call(this,{D:"button",Ea:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},ra:"{{icon}}"});this.G=a;this.i=null;this.transition=new UP;this.tooltip=b.jc();g.F(this,this.transition);this.l=!!c;this.N(a,"fullscreentoggled",this.ob);this.N(a,"presentingplayerstatechange",this.u);this.N(a,"videodatachange",this.ob);Vta(this,a.ub());this.Pa("click",this.Ds,this);g.hf(this,g.FO(b.jc(),this.element))};
Wta=function(a){switch(a){case 1:return Wqa();case 2:return Uqa();case 3:return g.NL();case 4:return Yqa();default:return null}};
Vta=function(a,b){var c=g.SH(a.G.getVideoData()),d=!1;g.MK(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=hO(a.G,"Pause","k");break;case 3:c="Replay";break;case 1:c=hO(a.G,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:Wta(b)}):(a.update({title:c,label:c}),(c=Wta(b))&&a.i&&3!==a.i?Pta(a.transition,a.element,c):a.Ta("icon",c));gP(a.tooltip);a.i=b}};
g.ZP=function(a,b){return AN(b)?(b.fetch=0,new g.zN(a,b)):new g.vH(a,b)};
g.aQ=function(a,b,c){g.W.call(this,{D:"a",Ea:[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?LL():Xqa()]});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.jc();this.N(a,"fullscreentoggled",this.ob);
this.N(a,"videodatachange",this.ob);this.N(a,"onPlaylistUpdate",this.ob);this.i||this.N(a,"appresize",this.AA);this.N(a,"mdxpreviousnextchange",function(){$P(d);d.AA()});
this.ob()};
Xta=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.ob,a)};
Yta=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
Zta=function(a){var b=g.qN(a.G.sb());return b?a.i?b.hasNext():b.vk():!1};
$P=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.rN(a.G)&&(!a.i||c);var d=a.i&&g.vN(a.G),e=Zta(a),f=a.i&&5===a.G.getPresentingPlayerType(),h=hO(a.G,"Next","SHIFT+n"),l=hO(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.ib(a.i?lsa(a.playlist):msa(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.yM(m.lengthSeconds):null;b.preview=m.We("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.ZP(a.G.T(),a.videoData.suggestions[0]),b.url=l.dn(),b.text=l.title,b.duration=l instanceof g.vH?g.yM(l.lengthSeconds):null,b.preview=l.We("mqdefault.jpg"),l.dispose()),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.FO(a.tooltip,a.element),a.C=a.Pa("click",
a.onClick,a)):a.l&&(a.l(),a.l=null,a.lc(a.C),a.C=null);gP(a.tooltip)};
$ta=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};
aua=function(a){g.W.call(this,{D:"div",K:"ytp-heat-map-chapter",S:[{D:"svg",U:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",U:{id:"{{id}}"},S:[{D:"path",K:"ytp-heat-map-path",U:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{D:"rect",K:"ytp-heat-map-graph",U:{"clip-path":"",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-hover",U:{"clip-path":"",height:"100%",x:"0",y:"0"}},
{D:"rect",K:"ytp-heat-map-play",U:{"clip-path":"",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.B=this.Ca("ytp-heat-map-path");this.u=this.Ca("ytp-heat-map-graph");this.l=this.Ca("ytp-heat-map-play");this.i=this.Ca("ytp-heat-map-hover")};
dua=function(a,b,c){c=bua(b,void 0===c?!0:c);if(0===b.length)c="";else{b="";for(var d=g.q(c.entries()),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;if(0===e)e="M "+f.x+","+f.y;else{var h=cua(c[e-1],c[e-2],f);e=cua(f,c[e-1],c[e+1],!0);e=" C "+(h.x+","+h.y+" "+e.x+","+e.y+" "+f.x+","+f.y)}b+=e}c=b}a.B.setAttribute("d",c);g.M(a.api.getRootNode(),"ytp-heat-map",a.api.Z("web_player_heat_map")&&""!==c);g.M(a.api.getRootNode(),"ytp-heat-map-played_bar",a.api.Z("web_player_heat_map_played_bar")&&
""!==c)};
bua=function(a,b){b=void 0===b?!0:b;var c,d=Math.max.apply(Math,g.la(a.map(function(n){var p;return(null===(p=n.markerRenderer)||void 0===p?void 0:p.heatmapIntensityScoreNormalized)||1})));
b=b?1/d:1;d=1E3/a.length;var e=[];e.push({x:0,y:100});for(var f=g.q(a.entries()),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=(null===(c=l.next().value.markerRenderer)||void 0===c?void 0:c.heatmapIntensityScoreNormalized)||0;l=(h+.5)*d;m=100-100*m*b;0===h&&e.push({x:0,y:m});e.push({x:l,y:m});h===a.length-1&&e.push({x:1E3,y:m})}e.push({x:1E3,y:100});return e};
cua=function(a,b,c,d){d=void 0===d?!1:d;b=new eua(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.i:b.i),y:a.y+.2*((void 0===d?0:d)?-1*b.l:b.l)}};
eua=function(a,b){this.l=this.i=0;this.i=b.x-a.x;this.l=b.y-a.y};
bQ=function(){g.W.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",Ea:["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.Ca("ytp-ad-progress-list");this.B=this.Ca("ytp-load-progress");this.C=this.Ca("ytp-play-progress");this.l=this.Ca("ytp-hover-progress");
this.i=this.Ca("ytp-chapter-hover-container")};
cQ=function(a,b){g.Bl(a.i,"width",b)};
dQ=function(a,b){g.Bl(a.i,"margin-right",b+"px")};
eQ=function(a,b){return"PLAY_PROGRESS"===b?a.C:"LOAD_PROGRESS"===b?a.B:a.l};
fua=function(){this.u=this.position=this.B=this.i=this.C=this.l=this.width=NaN};
gua=function(){g.W.call(this,{D:"div",K:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.fQ=function(a,b){g.CL.call(this,{D:"div",K:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{D:"div",Ea:["ytp-heat-map-container"]},{D:"div",Ea:["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",Ea:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{D:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",K:"ytp-bound-time-left",ra:"{{boundTimeLeft}}"},{D:"div",K:"ytp-bound-time-right",ra:"{{boundTimeRight}}"},{D:"div",K:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},ra:"{{clipstarticon}}"},{D:"div",K:"ytp-clip-end",U:{title:"{{clipendtitle}}"},ra:"{{clipendicon}}"}]});this.api=a;this.Xb=!1;this.C=this.Lc=
0;this.Ga=1;this.Pc=this.Y=0;this.I=null;this.va=this.xb=0;this.hc=this.Ca("ytp-marker-crenellation-list");this.Da={};this.jb={};this.clipEnd=Infinity;this.Ya=this.Ca("ytp-clip-end");this.Cb=new g.Bx(this.Ya,!0);this.ac=this.Ca("ytp-clip-end-exclude");this.Be=this.Ca("ytp-clip-start-exclude");this.clipStart=0;this.eb=this.Ca("ytp-clip-start");this.Lb=new g.Bx(this.eb,!0);this.V=this.Ra=0;this.Ic=this.Ca("ytp-progress-bar");this.qb={};this.Bb=this.Ca("ytp-chapters-container");this.Xd=this.Ca("ytp-timed-markers-container");
this.i=[];this.ya=[];this.Gd={};this.La=-1;this.Ua=this.Aa=0;this.L=null;this.Zc=this.Ca("ytp-scrubber-button");this.He=this.Ca("ytp-scrubber-container");this.fb=new g.Rf;this.wc=new fua;this.l=new CM(0,0);this.B=null;this.u=this.Ub=!1;this.Ec=null;this.Ce=this.Ca("ytp-heat-map-container");this.J=[];this.tooltip=b.jc();g.hf(this,g.FO(this.tooltip,this.Ya));g.F(this,this.Cb);this.Cb.subscribe("hoverstart",this.oK,this);this.Cb.subscribe("hoverend",this.nK,this);this.N(this.Ya,"click",this.mz);g.hf(this,
g.FO(this.tooltip,this.eb));g.F(this,this.Lb);this.Lb.subscribe("hoverstart",this.oK,this);this.Lb.subscribe("hoverend",this.nK,this);this.N(this.eb,"click",this.mz);hua(this);iua(this);this.N(a,"resize",this.tb);this.N(a,"presentingplayerstatechange",this.yN);this.N(a,"videodatachange",this.Fr);this.N(a,"videoplayerreset",this.AQ);this.N(a,"cuerangesadded",this.xM);this.N(a,"cuerangesremoved",this.qV);this.N(a,"cuerangemarkersupdated",this.xM);this.N(a,"onLoopRangeChange",this.vM);this.N(a,"innertubeCommand",
this.onClickCommand);this.N(a,g.Rz("timedMarkerCueRange"),this.Cd);this.updateVideoData(a.getVideoData(),!0);this.vM(a.getLoopRange())};
hua=function(a){if(0===a.i.length){var b=new bQ;a.i.push(b);g.F(a,b);b.Ba(a.Bb,0)}for(;1<a.i.length;)a.i.pop().dispose();cQ(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
iua=function(a){if(a.api.Z("web_player_heat_map")){for(0===a.J.length&&jua(a);1<a.J.length;)a.J.pop().dispose();dua(a.J[0],[])}};
jua=function(a,b){b=void 0===b?NaN:b;var c=new aua(a.api);a.J.push(c);g.F(a,c);c.Ba(a.Ce);a="hm_"+a.J.length;c.update({id:a});a="url(#"+a+")";c.u.setAttribute("clip-path",a);c.l.setAttribute("clip-path",a);c.i.setAttribute("clip-path",a);0<=b&&(c.element.style.width=b+"px")};
kua=function(a){for(;a.ya.length;)a.ya.pop().dispose()};
nua=function(a,b){var c,d,e=null===(c=a.qb[b])||void 0===c?void 0:c.chapters;e&&(lua(a,e),a.api.getVideoData().bl=a.i);if((e=null===(d=a.qb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var f;kua(a);b=g.q(e);for(e=b.next();!e.done;e=b.next()){var h=e.value;e=new gua;if(h=h.markerRenderer)e.title=(null===(f=h.title)||void 0===f?void 0:f.simpleText)||"",e.timeRangeStartMillis=h.timeRangeStartMillis||NaN,e.thumbnailUrl=h.thumbnailUrl||"",e.onActiveCommand=(null===h||void 0===h?void 0:h.onActiveCommand)||
void 0,a.ya.push(e),g.F(a,e),e.Ba(a.Xd,a.Xd.children.length)}mua(a,a.ya);f=a.ya;b=a.Gd;e=[];for(h=0;h<f.length;h++)if(!isNaN(f[h].timeRangeStartMillis)&&f[h].onActiveCommand){var l=f[h].timeRangeStartMillis;l=new g.Oz(l,h===f.length-1?Infinity:f[h+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:7,id:"tm_"+l});e.push(l);b[l.id]=f[h].onActiveCommand}a.api.Id(e)}};
mua=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=oua(a,c.timeRangeStartMillis/(1E3*a.l.i),gQ(a));g.Bl(c.element,"transform","translateX("+d+"px)")}};
lua=function(a,b){var c=0;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(d.chapterRenderer){d=d.chapterRenderer;var e={startTime:NaN,title:null,onActiveCommand:void 0};e.title=$ta(d.title);var f=d.timeRangeStartMillis;null!=f&&(e.startTime=f);e.onActiveCommand=d.onActiveCommand;d=e;0===c&&0!==d.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=d.onActiveCommand,c++);a.i.length<=c&&(e=new bQ,a.i.push(e),g.F(a,e),e.Ba(a.Bb,a.Bb.children.length));a.i[c].startTime=d.startTime;
a.i[c].title=d.title?d.title:"";a.i[c].onActiveCommand=d.onActiveCommand}c++}for(;c<a.i.length;)a.i.pop().dispose();g.hQ(a);iQ(a)};
g.hQ=function(a){a.Aa=a.i.length-1;a.Ua=0;pua(a,!0)&&pua(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){dQ(a.i[d],0);cQ(a.i[d],Math.floor(a.i[d].width)+"px");break}cQ(a.i[c],"0")}else c===a.i.length-1?cQ(a.i[c],Math.floor(a.i[c].width+b)+"px"):(b=a.i[c].width+b,d=Math.round(b),b-=d,cQ(a.i[c],d+"px"));qua(a)};
qua=function(a){var b,c,d=null===(b=a.api.getVideoData())||void 0===b?void 0:b.Jg;if(d=d?null===(c=a.qb[d])||void 0===c?void 0:c.markers:void 0)for(var e=0,f=a.i.length,h={},l=0;l<f;h={iA:h.iA,aA:h.aA},l++){var m=a.i[l].width;h.iA=a.i[l].startTime;h.aA=l===f-1?Infinity:a.i[l+1].startTime;l<a.J.length?a.J[l].element.style.width=m+"px":l===a.J.length&&jua(a,m);a.J[l].element.style.left=e+"px";var n=d.filter(function(p){return function(r){var t;r=(null===(t=null===r||void 0===r?void 0:r.markerRenderer)||
void 0===t?void 0:t.timeRangeStartMillis)||-1;return r>=p.iA&&r<=p.aA}}(h));
dua(a.J[l],n,1===a.J.length);e+=m+(a.u?3:2)}};
pua=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.C){for(var h=a.C-(a.u?3:2)*a.Aa,l=0===a.Ua?3:h*a.Ua,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,dQ(a.i[c],a.u?3:2));g.M(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);dQ(p.i[r],0);b&&(a.Aa--,m/f>a.Ua&&(a.Ua=m/f),d=!0)}c++}}return d};
iQ=function(a){if(a.C){var b=a.api.getProgressState();var c=b.seekableStart;var d=b.seekableEnd,e=!!a.B&&a.B.postId&&2!==a.api.getPresentingPlayerType(),f=g.S(a.api.T().experiments,"enable_fully_expanded_clip_range_in_progress_bar"),h=g.S(a.api.T().experiments,"enable_expanded_clip_range_in_progress_bar");e&&f?c=new CM(Math.max(c,a.B.startTimeMs/1E3),Math.min(d,a.B.endTimeMs/1E3)):e&&h?(e=a.B.startTimeMs/1E3,f=a.B.endTimeMs/1E3,h=(f-e)/20,c=new CM(Math.max(c,e-h),Math.min(d,f+h))):c=new CM(c,d);d=
FM(c,b.loaded,0);b=FM(c,b.current,0);e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;jQ(a,b,d);e&&kQ(a);rua(a)}};
mQ=function(a,b){var c=EM(a.l,b.u);if(1<a.i.length){c=lQ(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};
sua=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.C-(a.u?3:2)*a.Aa)};
tua=function(a,b,c,d){b=g.Nf(b,0,a.u?60:40);a.Y=b;var e=a.Ga;a.Ga=b/(a.u?60:40)*(Math.max(DM(a.l)/a.C,1)-1)+1;b=a.C*a.Ga;a.va=g.Nf(d*b-c,0,b-a.C);e!==a.Ga&&kQ(a)};
kQ=function(a){var b=gQ(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=cba(a.hc),f=0;if(a.Y>.2*(a.u?60:40)&&1===a.i.length)for(var h=DM(a.l)/60*d,l=Math.ceil(DM(a.l)/60*c);l<h;l++){var m=e[f];m||(m=g.og("DIV"),a.hc.appendChild(m));f++;0===l%60?g.Kq(m,"ytp-60m-progress"):0===l%30?g.Kq(m,"ytp-30m-progress"):0===l%15?g.Kq(m,"ytp-15m-progress"):g.Kq(m,"ytp-1m-progress");m.style.left=(60*l/DM(a.l)-c)*b.i+"px"}b=a.Ub?a.l.i:0;a.update({boundTimeLeft:g.yM(EM(a.l,c)-b),boundTimeRight:g.yM(EM(a.l,d)-b)});for(c=e.length-
1;c>=f;c--)g.sg(e[c]);a.element.style.height=a.Y+(a.u?8:5)+"px";a.X("height-change",a.Y);a.Zc.style.height=a.Y+(a.u?20:13)+"px";e=g.q(Object.keys(a.Da));for(f=e.next();!f.done;f=e.next())uua(a,f.value);nQ(a);jQ(a,a.V,a.Ra)};
gQ=function(a){var b=a.fb.x,c=a.C*a.Ga;b=g.Nf(b,0,a.C);a.wc.update(b,a.C,-a.va,-(c-a.va-a.C));return a.wc};
jQ=function(a,b,c){var d,e;a.V=b;a.Ra=c;var f=gQ(a),h=a.l.i,l=EM(a.l,a.V),m=g.iJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.yM(l,!0),DURATION:g.yM(h,!0)}),n=lP(a.i,1E3*l);n=a.i[n].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(h),arianow:Math.floor(l),arianowtext:n?n+" "+m:m});h=a.clipStart;l=a.clipEnd;a.B&&2!==a.api.getPresentingPlayerType()&&(h=a.B.startTimeMs/1E3,l=a.B.endTimeMs/1E3);h=FM(a.l,h,0);m=FM(a.l,l,1);n=!(null===(d=a.api.getVideoData())||void 0===d||!g.fI(d));l=g.Nf(b,
h,m);c=n?1:g.Nf(c,h,m);b=oua(a,b,f);g.Bl(a.He,"transform","translateX("+b+"px)");oQ(a,f,h,l,"PLAY_PROGRESS");oQ(a,f,h,c,"LOAD_PROGRESS");a.api.Z("web_player_heat_map")&&(null===(e=a.J[0])||void 0===e?void 0:e.l.setAttribute("width",(100*l).toFixed(2)+"%"))};
oQ=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Aa*(a.u?3:2),l=c*h;c=lQ(a,l);var m=d*h;h=lQ(a,m);"HOVER_PROGRESS"===e&&(h=lQ(a,b.i*d,!0),m=b.i*d-vua(a,b.i*d)*(a.u?3:2));b=Math.max(l-wua(a,c),0);for(d=c;d<f;d++)eQ(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,pQ(a,eQ(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.Nf(m-wua(a,h),0,f);c===h&&(m-=b);pQ(a,eQ(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)pQ(a,eQ(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)pQ(a,eQ(a.i[h],e),0,a.i[h].width)};
wua=function(a,b){if(b>=a.i.length)return a.C;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
pQ=function(a,b,c,d,e){e||a.api.T().i?b.style.width=c+"px":g.Bl(b,"transform","scalex("+(d?c/d:0)+")")};
lQ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=vua(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};
oua=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.Aa)+(a.u?3:2)*(0>e?0:e)+c.l};
vua=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.qQ=function(a,b,c,d){var e=a.C!==c;a.Lc=b;a.C=c;a.u=d;kQ(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.hQ(a)};
nQ=function(a){var b=!!a.B&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.B?(c=a.B.startTimeMs/1E3,d=a.B.endTimeMs/1E3):(e=c>a.l.l,f=0<a.l.i&&d<a.l.i);g.M(a.element,"ytp-loop-range-enabled",b);g.M(a.element,"ytp-clip-start-enabled",e);g.M(a.element,"ytp-clip-end-enabled",f);b=e?FM(a.l,c,0):0;d=f?FM(a.l,d,1):1;a.eb.style.left=Math.round(1E3*b)/10+"%";a.Ya.style.left=Math.round(1E3*d)/10+"%";a.Be.style.width=Math.round(1E3*b)/10+"%";a.ac.style.left=Math.round(1E3*d)/10+
"%";a.ac.style.width=Math.round(1E3*(1-d))/10+"%"};
rua=function(a){var b,c=gQ(a);oQ(a,c,a.V,Math.max(c.u,a.V),"HOVER_PROGRESS");for(var d=lQ(a,c.i*a.V,!0),e=lQ(a,c.B,!0),f=d;f<=e;f++)g.M(a.i[f].l,"ytp-hover-progress-light",c.u>a.V);g.M(a.Zc,"ytp-scrubber-button-hover",d===e&&1<a.i.length);a.api.Z("web_player_heat_map")&&(null===(b=a.J[0])||void 0===b?void 0:b.i.setAttribute("width",(100*c.u).toFixed(2)+"%"))};
uua=function(a,b){var c=a.Da[b];b=a.jb[b];var d=gQ(a),e=FM(a.l,c.start/1E3,0),f=Yia(c,a.u)/d.width;var h=FM(a.l,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Nf(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.l,0)+"px";pQ(a,b,g.Nf((h-c)*d.i+d.l,0,d.width),d.width,void 0===e?!1:e)};
xua=function(a,b){var c=b.getId();a.Da[c]===b&&(g.sg(a.jb[c]),delete a.Da[c],delete a.jb[c])};
yua=function(a,b){b?a.L||(a.element.removeAttribute("aria-disabled"),a.L=new g.Bx(a.Ic,!0),a.L.subscribe("hovermove",a.KT,a),a.L.subscribe("hoverend",a.JT,a),a.L.subscribe("dragstart",a.IT,a),a.L.subscribe("dragmove",a.NT,a),a.L.subscribe("dragend",a.LT,a),a.Ec=a.Pa("keydown",a.zN)):a.L&&(a.element.setAttribute("aria-disabled","true"),a.lc(a.Ec),a.L.cancel(),a.L.dispose(),a.L=null)};
g.zua=function(a){var b=2*a.C*g.EG();return 1E3*DM(a.l)/a.api.getPlaybackRate()/b};
rQ=function(a,b,c){g.W.call(this,{D:"button",K:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},ra:"{{icon}}"});this.G=a;this.yb=c;this.i=null;this.N(a,"onMdxReceiversChange",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();this.Pa("click",this.l,this);g.hf(this,g.FO(b.jc(),this.element))};
sQ=function(a,b,c){g.W.call(this,{D:"button",Ea:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":xL(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.OL()]});this.G=a;this.yb=c;this.l=!0;this.Pa("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.hf(this,g.FO(b.jc(),this.element));this.G.Yb(this.element,this,
28663);this.updateBadge();this.i(a.bb().getPlayerSize())};
tQ=function(a,b){a.l=!!b;a.i(a.G.bb().getPlayerSize())};
uQ=function(a,b){XO.call(this,"Annotations",6);this.G=a;this.yb=b;this.i=!1;this.N(a,"videodatachange",this.Ma);this.N(a,"onApiChange",this.Ma);this.subscribe("select",this.l,this);this.Ma()};
g.vQ=function(a,b,c,d,e,f,h){g.PO.call(this,g.QO({"aria-haspopup":"true"}),b,a);this.yb=d;this.B=!1;this.l=null;this.options={};this.u=new g.TO(c,void 0,a,e,f,h);g.F(this,this.u);this.Pa("keydown",this.AN);this.Pa("click",this.open)};
Aua=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.wQ=function(a,b){g.UO(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.OO(l.options[f],l.aj(f,!0)),delete a.options[f]):h=a.xB(f,-e,l);c[f]=h;a.u.Cc(h,!0)}d||(a.l=null);b=g.q(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
xQ=function(a,b){g.vQ.call(this,"Audio track",3,a,b);this.G=a;this.tracks={};this.i=new g.W({D:"div",S:[{D:"span",ra:"Audio track"},{D:"span",K:"ytp-menuitem-label-count",ra:"{{content}}"}]});g.F(this,this.i);g.OO(this,this.i);this.N(a,"videodatachange",this.Ma);this.N(a,"onPlaybackAudioChange",this.Ma);this.Ma()};
yQ=function(a,b){XO.call(this,"Autoplay",7);this.G=a;this.yb=b;this.i=!1;this.u=[];this.N(a,"presentingplayerstatechange",this.l);this.subscribe("select",this.C,this);a.Yb(this.element,this,113682);this.l()};
zQ=function(a,b,c,d){d=new g.W({D:"div",Ea:["ytp-linked-account-popup-button"],ra:d,U:{role:"button",tabindex:"0"}});b=new g.W({D:"div",K:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{D:"div",K:"ytp-linked-account-popup-title",ra:b},{D:"div",K:"ytp-linked-account-popup-description",ra:c},{D:"div",K:"ytp-linked-account-popup-buttons",S:[d]}]});g.qO.call(this,a,{D:"div",K:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.F(this,this.dialog);
d.Pa("click",function(){e.Ab()});
g.F(this,d);g.uN(this.G,this.element,4);this.hide()};
AQ=function(a,b){g.PO.call(this,g.QO({"aria-haspopup":"true"}),1);this.G=a;this.yb=b;this.l=this.i=!1;this.N(this.G,"videodatachange",this.B);this.Pa("click",this.onClick);this.B()};
BQ=function(a){return a?g.Yz(a):""};
CQ=function(a,b){g.vQ.call(this,"Quality",2,a,b);this.G=a;this.C={};this.i="unknown";g.K(this.u.element,"ytp-quality-menu");this.N(a,"videodatachange",this.jt);this.N(a,"videoplayerreset",this.jt);this.N(a,"onPlaybackQualityChange",this.cG);this.jt()};
Bua=function(a,b,c){a=a.C[b];var d=g.aB[b];c={D:"span",Ea: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",ra:e}));return c};
DQ=function(a,b,c,d,e,f,h){g.W.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.va=this.Ca("ytp-slider-section");this.l=this.Ca("ytp-slider");this.L=this.Ca("ytp-slider-handle");
this.B=new g.Bx(this.l,!0);this.i=h?h:c;g.F(this,this.B);this.B.subscribe("dragmove",this.CN,this);this.N(this.element,"keydown",this.DN);this.N(this.element,"wheel",this.BN);this.init()};
FQ=function(a){DQ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.u=g.og("P");this.ya=jaa(this.V,this);g.K(this.l,"ytp-speedslider");g.K(this.u,"ytp-speedslider-text");a=this.u;var b=this.l;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);EQ(this);this.N(this.G,"onPlaybackRateChange",this.Aa)};
EQ=function(a){a.u.textContent=GQ(a,a.i)+"x"};
GQ=function(a,b){a=Number(g.Nf(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
HQ=function(a){g.CL.call(this,{D:"div",K:"ytp-speedslider-component"});this.i=new FQ(a);g.F(this,this.i);this.element.appendChild(this.i.element)};
Cua=function(a){var b=new HQ(a);SO.call(this,a,b,"Custom");g.F(this,b)};
IQ=function(a,b){var c=new Cua(a);g.vQ.call(this,"Playback speed",5,a,b,"Custom",function(){g.ZO(b,c)});
g.F(this,c);this.G=a;this.C=this.i=this.J=null;this.I=this.G.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.Ma);this.Ma()};
Dua=function(a,b){var c=JQ(b);a.options[c]?a.Th(c):b===a.C&&a.i&&(a.Th(a.i),a.dd(b.toString()))};
Fua=function(a){g.wQ(a,a.I.map(JQ));a.i=null;a.C=null;var b=a.G.getPlaybackRate();a.I.includes(b)||(Eua(a,b),g.vQ.prototype.zf.call(a,a.i))};
Eua=function(a,b){a.C=b;a.i=g.iJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(JQ);b.unshift(a.i);g.wQ(a,b)};
JQ=function(a){return a.toString()};
KQ=function(a,b,c,d){var e=new g.TO(b,void 0,"Video Override");g.vQ.call(this,d.text||"",a,b,c,"Video Override",function(){g.ZO(c,e)});
var f=this;g.K(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Db(a,this.getKey,this);this.I=e;g.F(this,this.I);b=new g.PO({D:"div",K:"ytp-menuitemtitle",ra:"Allow for a different caption style if specified by the video."},0);g.F(this,b);this.I.Cc(b,!0);this.C=new g.PO({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ra:"On"}]},-1);g.F(this,this.C);this.I.Cc(this.C,!0);this.N(this.C.element,
"click",function(){Gua(f,!0)});
this.i=new g.PO({D:"div",K:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",K:"ytp-menuitem-label",ra:"Off"}]},-2);g.F(this,this.i);this.I.Cc(this.i,!0);this.N(this.i.element,"click",function(){Gua(f,!1)});
g.wQ(this,g.Qe(a,this.getKey))};
Gua=function(a,b){a.X("settingChange",a.setting+"Override",!b);a.yb.kh()};
LQ=function(a,b){g.TO.call(this,a,void 0,"Options");var c=this;this.Cn={};for(var d=0;d<g.nP.length;d++){var e=g.nP[d],f=new KQ(-d,a,b,e);g.F(this,f);f.subscribe("settingChange",this.ih,this);this.Cn[e.option.toString()]=f;this.Cc(f,!0)}a=new g.PO(g.QO(),-g.nP.length,"Reset");g.F(this,a);a.Pa("click",function(){c.ih("reset",!0)});
this.Cc(a,!0)};
MQ=function(a,b){g.vQ.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.Yb(this.element,this,127301);a.kb(this.element,!0)};
Hua=function(a,b){a.languages=g.Db(b,a.getKey,a);g.wQ(a,g.Qe(b,a.getKey))};
NQ=function(a,b){var c=new LQ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.KG(a.T())&&(e={D:"div",K:"ytp-panel-footer-content",S:[{D:"span",ra:d[0]},{D:"a",K:"ytp-panel-footer-content-link",ra:"Settings",U:{href:"/account_playback"}},{D:"span",ra:d[1]}]});g.vQ.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.ZO(b,c)},e);
var f=this;this.G=a;this.yb=b;this.tracks={};this.I=new g.J(function(){Iua(f,!1)},3E3);
g.F(this,this.I);this.J=new g.W({D:"div",S:[{D:"span",ra:"Subtitles/CC"},{D:"span",K:"ytp-menuitem-label-count",ra:"{{content}}"}]});g.F(this,this.J);g.OO(this,this.J);this.i=new MQ(a,b);g.F(this,this.i);this.i.subscribe("select",this.FN,this);this.C=c;g.F(this,this.C);this.C.subscribe("settingChange",this.ih,this);b.subscribe("show",this.sU,this);this.N(a,"videodatachange",this.Ma);this.N(a,"onApiChange",this.Ma);this.N(a,"onCaptionsTrackListChanged",this.Ma);this.N(a,"captionschanged",this.Ma);
a.Yb(this.element,this,127300);this.Ma()};
Iua=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
OQ=function(a){g.aP.call(this,a,"ytp-settings-menu");var b=this;this.Od=new g.TO(this.G);this.lD=this.settingsButton=null;this.ge=!1;g.F(this,this.Od);this.hide();g.ZO(this,this.Od);a.Yb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Re(c)})};
Jua=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
PQ=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},ra:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new UP;this.tooltip=b.jc();g.F(this,this.transition);this.N(a,"sizestylechange",this.Ma);this.N(a,"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();this.Pa("click",this.onClick);g.hf(this,g.FO(this.tooltip,this.element))};
g.QQ=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:hO(a,"Subtitles/closed captions","c")},S:[Oqa()]});this.G=a;this.N(a,"videodatachange",this.Ma);this.N(a,"appresize",this.Ma);this.N(a,"promotooltipacceptbuttonclicked",this.i);this.N(a,"onApiChange",this.Ma);this.N(a,"onCaptionsTrackListChanged",this.Ma);this.N(a,"captionschanged",this.Ma);this.G.Yb(this.element,this,127299);this.Ma();this.Pa("click",this.onClick);g.hf(this,
g.FO(b.jc(),this.element))};
g.RQ=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{D:"div",Ea:["ytp-time-display","notranslate"],S:[{D:"span",K:"ytp-time-current",ra:"{{currenttime}}"},{D:"span",K:"ytp-time-separator",ra:" / "},{D:"span",K:"ytp-time-duration",ra:"{{duration}}"}]});this.api=a;this.J=c;this.liveBadge=new g.W({D:"button",Ea:["ytp-live-badge","ytp-button"],U:{disabled:"true"},ra:"{{content}}"});this.i=null;this.l=!1;this.I=this.C=null;this.isPremiere=!1;this.B=this.u=null;this.liveBadge.dd("Live");g.F(this,this.liveBadge);
this.liveBadge.Ba(this.element);this.tooltip=b.jc();this.Pa("click",this.onClick);this.N(a,"presentingplayerstatechange",this.Rb);this.N(a,"appresize",this.Rb);this.N(a,"videodatachange",this.ob);(a=a.getVideoData())&&this.updateVideoData(a);this.Rb()};
UQ=function(a,b,c){g.W.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.I=c;this.ni=!1;this.L=this.volume=0;this.C=null;this.hasFocus=this.l=this.isDragging=!1;this.i=b;this.I=c;this.u=b.Le();this.J=this.Ca("ytp-volume-slider");this.V=this.Ca("ytp-volume-slider-handle");
this.B=new g.Bx(this.J,!0);g.F(this,this.B);this.B.subscribe("dragstart",this.wU,this);this.B.subscribe("dragmove",this.HN,this);this.B.subscribe("dragend",this.vU,this);this.N(a,"onVolumeChange",this.Hf);this.N(a,"appresize",this.dG);this.N(a,"fullscreentoggled",this.Yl);this.N(a,"onShowControls",this.QH);this.N(a,"onHideControls",this.QH);this.N(this.element,"keydown",this.IN);this.N(this.element,"focus",function(){SQ(d,d.l,d.isDragging,!0,d.i.ni())});
this.N(this.element,"blur",function(){SQ(d,d.l,d.isDragging,!1,d.i.ni())});
this.dG(a.bb().getPlayerSize());TQ(this,a.getVolume(),a.isMuted())};
TQ=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ta("valuenow",d);a.Ta("valuetext",e);a.V.style.left=(a.u?60:40)*c+"px";a.volume=b};
Kua=function(a,b){g.M(a.element,"ytp-volume-control-hover",b);SQ(a,b,a.isDragging,a.hasFocus,a.i.ni())};
SQ=function(a,b,c,d,e){var f=a.l||a.isDragging||a.hasFocus||a.ni;a.l=b;a.isDragging=c;a.hasFocus=d;a.ni=e;b=a.l||a.isDragging||a.hasFocus||a.ni;f!==b&&(b?a.C=a.N(a.element,"wheel",a.GN):(a.lc(a.C),a.C=null),g.M(a.I,"ytp-volume-slider-active",b))};
g.VQ=function(a,b){var c=a.T(),d=g.BG(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.aG(c)&&e.push("ytp-youtube-music-button");g.W.call(this,{D:"a",Ea:e,U:{href:"{{url}}",target:c.I,title:g.iJ("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},ra:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Yb(this.element,this,28666);this.Pa("click",this.onClick);this.N(a,"videodatachange",this.ob);this.N(a,"onLoopRangeChange",
this.ob);this.N(a,"appresize",this.tb);this.ob();g.hf(this,g.FO(b.jc(),this.element));this.tb()};
XQ=function(a,b,c){g.wN.call(this);var d=this;this.G=a;this.u=b;this.kd=c;this.Ga=NaN;this.La=this.Ia=null;this.i=new OQ(this.G);this.Ic=new g.fQ(this.G,this.u);this.muteButton=null;this.Dg=new g.RQ(this.G,this.u);this.L=this.C=this.B=this.V=this.Aa=null;this.ea=new XP(this.G,this.u);this.Da=new g.QP(this.G,this.u);this.zd=new g.Bq(this.Mp,null,this);this.J=null;c=a.T();this.kd.subscribe("autohideupdate",this.uj,this);var e=!a.ub().isCued(),f=this.G.T().Z("html5_player_bottom_linear_gradient");f||
!g.aG(c)&&!g.S(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.W({D:"div",K:"ytp-gradient-bottom-container",S:[{D:"div",K:"ytp-gradient-bottom-extension"},{D:"div",K:"ytp-gradient-bottom"}]}):new g.W({D:"div",K:"ytp-gradient-bottom"}):this.La=f=new g.KP(a);g.F(this,f);g.uN(a,f.element,8);this.va=new g.kM(f,250,e,100);g.F(this,this.va);this.l=new g.W({D:"div",K:"ytp-chrome-bottom",S:[{D:"div",K:"ytp-chrome-controls"}]});g.F(this,this.l);g.uN(a,this.l.element,8);this.Y=new g.kM(this.l,
250,e,100);g.F(this,this.Y);this.ya=this.l.element.children[0];g.hf(this.i,function(){a.Zm()===d.i&&(a.xA=null)});
g.F(this,this.i);a.xA=this.i;g.uN(a,this.i.element,6);this.i.subscribe("show",function(m){var n=d.u.jc(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:WQ(n);n.B.show();break;default:n.B.show()}else n.B.hide();n.I=p;b.yz(d.i,m)});
g.F(this,this.Ic);this.Ic.Ba(this.l.element,0);e=new g.MP(a);g.F(this,e);g.uN(a,e.element,4);f=new g.yL({D:"div",K:"ytp-left-controls"});g.F(this,f);f.Ba(this.ya);e=new g.aQ(a,b,!1);g.F(this,e);e.Ba(f.element);c.va||(e=new g.YP(a,b),g.F(this,e),e.Ba(f.element),LG(c)&&(e=new g.yL({D:"div",K:"ytp-hybrid-controls"}),g.F(this,e),this.L=new g.YP(a,b,!0),g.F(this,this.L),this.L.Ba(e.element),g.uN(a,e.element,4)));e=new g.aQ(a,b,!0);g.F(this,e);e.Ba(f.element);e=new g.W({D:"span",K:"ytp-volume-area"});g.F(this,
e);e.Ba(f.element);if(!c.jb&&(this.muteButton=new g.WP(a,b),g.F(this,this.muteButton),this.muteButton.Ba(e.element),c.Y)){var h=new UQ(a,b,this.l.element);g.F(this,h);h.Ba(e.element);e=new g.Bx(e.element);g.F(this,e);e.subscribe("hoverstart",function(){Kua(h,!0)});
e=new g.Bx(f.element);g.F(this,e);e.subscribe("hoverend",function(){Kua(h,!1)})}g.F(this,this.Dg);
this.Dg.Ba(f.element);e=new g.yL({D:"div",K:"ytp-right-controls"});g.F(this,e);this.Aa=new LP(a,this.Ic);g.F(this,this.Aa);this.Aa.Ba(f.element);e.Ba(this.ya);a.T().Lb&&g.S(c.experiments,"web_player_move_autonav_toggle")&&(f=new IP(a,b),g.F(this,f),f.Ba(e.element));g.S(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&DG(c)&&(this.V=new PP(a,b),g.F(this,this.V),this.V.Ba(e.element));f=new g.QQ(a,b);g.F(this,f);f.Ba(e.element);f=new sQ(a,b,this.i);g.F(this,f);Jua(this.i,f);f.Ba(e.element);
var l=new TP(a);g.F(this,l);g.uN(a,l.element,5);l.subscribe("show",function(m){b.Nm(l,m)});
f=new SP(a,b,l);g.F(this,f);f.Ba(e.element);f=a.getVideoData();if(c.Oj||f.C&&"1"===c.controlsType)this.B=new g.VQ(a,b),g.F(this,this.B),this.B.Ba(e.element);c.showMiniplayerButton&&!g.S(a.T().experiments,"web_player_pip")&&(this.C=new RP(a,b),g.F(this,this.C),this.C.Ba(e.element));g.F(this,this.ea);this.ea.Ba(e.element);f.mA||this.ea.hide();c.Ig||(f=new PQ(a,b),g.F(this,f),f.Ba(e.element));c.Gg&&(f=new rQ(a,b,this.i),g.F(this,f),f.Ba(e.element));c.Lj&&(c=new HP(a,b),g.F(this,c),c.Ba(e.element));g.F(this,
this.Da);this.Da.Ba(e.element);g.F(this,this.zd);this.N(a,"appresize",this.tb);this.N(a,"fullscreentoggled",this.tb);this.N(a,"presentingplayerstatechange",this.BA);this.N(a,"videodatachange",this.ob);this.tb()};
Lua=function(a,b){a.G.ub().isCued()||b?b&&(a.Y.hide(),a.va.hide(),a.muteButton&&a.muteButton.Sb(!1),a.B&&a.B.Sb(!1),a.C&&a.C.Sb(!1),a.u.jc().cj(a.l.element)):b||(a.Y.show(),a.va.show(),a.muteButton&&a.muteButton.Sb(!0),a.B&&a.B.Sb(!0),a.C&&a.C.Sb(!0),a.uj())};
Mua=function(a){var b=a.G.bb().getPlayerSize().width;return Math.max(b-2*YQ(a),100)};
YQ=function(a){var b=a.u.Le();return 12*(a.G.getVideoData().C?0:b?2:1)};
ZQ=function(a){var b=a.u.Le()?72:50;a=a.G.T();g.FG(a)&&(b=54,g.S(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
$Q=function(a,b){DP.call(this,a,b,!1);var c=this;this.N(this.G,"videodatachange",this.ob);this.N(this.G,g.Rz("suggested_action_button_visible"),function(){c.Re(!0)});
this.N(this.G,g.Sz("suggested_action_button_visible"),function(){c.Re(!1)})};
aR=function(a){a.G.uf("suggested_action_button_visible")};
cR=function(a){g.W.call(this,{D:"div",K:bR.TITLE,S:[{D:"div",K:bR.TEXT,S:[{D:"a",Ea:[bR.LINK,bR.SESSIONLINK],U:{target:a.T().I,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ra:"{{title}}"},{D:"div",K:bR.SUBTEXT,S:[{D:"a",K:bR.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},ra:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Ca(bR.LINK);a.Yb(this.element,this,23851);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",
this.Ma);this.Ma()};
Nua=function(a){a.Ta("channelLink","");a.Ta("channelName","");a.Ta("channelTitleFocusable","-1")};
g.dR=function(a,b){g.W.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",ra:"{{title}}"},{D:"span",K:"ytp-tooltip-text",ra:"{{text}}"}]},{D:"div",K:"ytp-tooltip-bg",S:[{D:"div",K:"ytp-tooltip-duration",ra:"{{duration}}"}]}]});var c=this;this.api=a;this.Aa=b;this.env=this.api.T();this.ya=this.env.i;this.bg=this.Ca("ytp-tooltip-bg");this.image=this.Ca("ytp-tooltip-image");this.text=this.Ca("ytp-tooltip-text");this.title=this.Ca("ytp-tooltip-title");
this.L=function(d){(d=du(d))&&g.ug(c.activeElement,d)||c.Tj()};
this.u=function(d){3===c.type&&c.Tj();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.u),d.addEventListener("mouseout",c.L),d.removeEventListener("focus",c.u),d.addEventListener("blur",c.L),Oua(c,d,2))};
this.V=function(){c.Tj()};
this.activeElement=null;this.B=new g.kM(this,100);this.type=null;this.J=!1;this.i=null;this.l=NaN;this.C="";this.CA=this.api.bb().getPlayerSize().width;this.I=!0;this.scale=1;this.Y=new g.J(this.lR,250,this);this.va=new g.J(this.Tj,5E3,this);g.F(this,this.B);g.F(this,this.Y);g.F(this,this.va);NF&&(a=this.Ca("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
LO=function(a){a.element.setAttribute("aria-live","polite")};
Rua=function(a,b,c,d,e,f,h,l){if(!a.ya){3===a.type&&a.Tj();1!==a.type&&(g.Kq(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.I&&a.B.show(),a.i&&a.i.dispose(),a.i=a.api.Gh(),a.i&&a.i.subscribe("l",a.yK,a));a.update({text:d,title:h?h:""});g.M(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.M(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=nH(a.i,160*a.scale),g.S(a.env.experiments,"web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=pma(a.i,d,c));Pua(a,d);if(l)switch(c=g.Ql(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"}Qua(a,!!e,b,f)}};
g.eR=function(a){1===a.type&&a.Tj()};
g.FO=function(a,b){if(a.ya)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.Tj();b.removeEventListener("mouseover",a.u);b.removeEventListener("focus",a.u)}};
fP=function(a,b,c){if(a.type)if(3===a.type)a.Tj();else return;Oua(a,b,3,c)};
Oua=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Pv("showElementTooltip called with non-element.",b.toString()),g.by(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.Kq(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.M(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.M(a.element,"ytp-tooltip-opaque",
!!b);a.type=c;a.api.addEventListener("appresize",a.V);a.I&&(WQ(a),a.B.show(0))}};
WQ=function(a){var b;a.activeElement&&(b=a.activeElement.getAttribute("data-tooltip-text"));if(b&&!a.J){var c=a.activeElement;a.Ta("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.Mq(a.element,
["ytp-text-detail","ytp-preview"]);g.M(a.element,"ytp-has-duration",!!d)}else a.Ta("text",a.C),g.Oq(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Qua(a,!!b)};
Qua=function(a,b,c,d){var e=Math.min(a.CA,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Aa.Up(a.element,a.activeElement,c,1===a.type,d);a.element.style.top?g.K(a.element,"ytp-bottom"):a.element.style.bottom&&g.K(a.element,"ytp-top");3===a.type&&a.va.start()};
gP=function(a){a.activeElement&&!a.J&&a.activeElement.hasAttribute("title")&&(a.C=a.activeElement.getAttribute("title")||"",a.activeElement.removeAttribute("title"),a.I&&WQ(a))};
Pua=function(a,b){g.M(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.l)){a.l=b;b=160*a.scale;var c=160*a.scale,d=kma(a.i,a.l,b);Lta(a.bg,d,b,c,!0);a.Y.start()}};
Sua=function(a){var b=a.activeElement;3===a.type&&a.va.stop();a.api.removeEventListener("appresize",a.V);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null};
g.fR=function(a,b){g.W.call(this,{D:"button",Ea:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.QF(a.T()))},S:[{D:"div",K:"ytp-watch-later-icon",ra:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",ra:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.jc();LO(this.tooltip);a.Yb(this.element,this,28665);this.Pa("click",this.onClick,this);this.N(a,"videoplayerreset",this.JN);
this.N(a,"appresize",this.Cw);this.N(a,"videodatachange",this.Cw);this.N(a,"presentingplayerstatechange",this.Cw);this.Cw();a=this.G.T();var c=Tua();a.l&&c?(Uua(),Vua(this)):this.Ma(2);g.M(this.element,"ytp-show-watch-later-title",g.QF(a));g.hf(this,g.FO(b.jc(),this.element))};
Wua=function(a,b){g.wra(function(){Uua({videoId:b});window.location.reload()},"wl_button",g.AG(a.G.T()))};
Vua=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ma(3);var b=a.G.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Jl(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ma(2);a.G.T().u&&a.G.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Ma(1);a.G.T().i&&fP(a.tooltip,a.element);a.G.T().u&&a.G.Na("WATCH_LATER_VIDEO_ADDED")};
QM(c,b).then(d,function(){a.isRequestPending=!1;Xua(a,"An error occurred. Please try again later.")})}};
Xua=function(a,b){a.Ma(4,b);a.G.T().u&&a.G.Na("WATCH_LATER_ERROR",b)};
Yua=function(a,b){var c=a.G.T();if(b!==a.icon){switch(b){case 3:var d=fO();break;case 1:d=FL();break;case 2:d={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.S(c.experiments,"watch_later_iconchange_killswitch")?{D:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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",Kb:!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.Ta("icon",d);
a.icon=b}};
gR=function(a){g.uO.call(this,a);var b=this;this.Tx=(this.zp=g.QF(this.api.T()))&&(this.api.T().i||Ht()||Ft());this.JB=48;this.KB=69;this.hk=null;this.Fn=[];this.qc=new g.AO(this.api);this.Tt=new hP(this.api);this.Oh=new g.W({D:"div",K:"ytp-chrome-top"});this.gw=[];this.tooltip=new g.dR(this.api,this);this.backButton=this.Wr=null;this.channelAvatar=new NO(this.api,this);this.title=new cR(this.api,this);this.Eg=new g.yL({D:"div",K:"ytp-chrome-top-buttons"});this.ph=null;this.Zh=new EO(this.api,this,
this.Oh.element);this.overflowButton=this.Tf=null;this.Vf="1"===this.api.T().controlsType?new XQ(this.api,this,this.kd):null;this.contextMenu=new g.dP(this.api,this,this.qc);this.uB=!1;this.kx=new g.W({D:"div",U:{tabindex:"0"}});this.jx=new g.W({D:"div",U:{tabindex:"0"}});this.Ev=null;this.FE=this.Zw=!1;var c=a.bb(),d=a.T(),e=a.getVideoData();this.zp&&(g.K(a.getRootNode(),"ytp-embed"),g.K(a.getRootNode(),"ytp-embed-playlist"),g.S(d.experiments,"embeds_enable_player_overlays_autohide")&&this.Tx&&(g.K(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.K(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.JB=60,this.KB=89);this.api.T().i&&(g.K(a.getRootNode(),"ytp-mobile"),this.api.T().J&&g.K(a.getRootNode(),"ytp-embed-mobile-exp"));this.Sg=e&&e.Sg;g.F(this,this.qc);LG(d)||g.uN(a,this.qc.element,4);g.F(this,this.Tt);g.uN(a,this.Tt.element,4);e=new g.W({D:"div",K:"ytp-gradient-top"});g.F(this,e);g.uN(a,e.element,1);this.bF=new g.kM(e,250,!0,100);g.F(this,this.bF);g.F(this,this.Oh);g.uN(a,this.Oh.element,
1);this.aF=new g.kM(this.Oh,250,!0,100);g.F(this,this.aF);g.F(this,this.tooltip);g.uN(a,this.tooltip.element,4);var f=new tP(a);g.F(this,f);g.uN(a,f.element,5);f.subscribe("show",function(l){b.Nm(f,l)});
this.gw.push(f);this.Wr=new uP(a,this,f);g.F(this,this.Wr);d.showBackButton&&(this.backButton=new zO(a),g.F(this,this.backButton),this.backButton.Ba(this.Oh.element));this.zp||this.Wr.Ba(this.Oh.element);this.channelAvatar.Ba(this.Oh.element);g.F(this,this.channelAvatar);g.F(this,this.title);this.title.Ba(this.Oh.element);g.F(this,this.Eg);this.Eg.Ba(this.Oh.element);this.ph=new g.fR(a,this);g.F(this,this.ph);this.ph.Ba(this.Eg.element);var h=new g.AP(a,this);g.F(this,h);g.uN(a,h.element,5);h.subscribe("show",
function(l){b.Nm(h,l)});
this.gw.push(h);this.shareButton=new g.zP(a,this,h);g.F(this,this.shareButton);this.shareButton.Ba(this.Eg.element);this.Og=new g.eP(a,this);g.F(this,this.Og);this.Og.Ba(this.Eg.element);d.bk&&(e=new GP(a),g.F(this,e),g.uN(a,e.element,4));this.zp&&this.Wr.Ba(this.Eg.element);g.F(this,this.Zh);this.Zh.Ba(this.Eg.element);e=new GO(a,this,this.Zh);g.F(this,e);e.Ba(this.Eg.element);this.Tf=new qP(a,this);g.F(this,this.Tf);g.uN(a,this.Tf.element,5);this.Tf.subscribe("show",function(){b.Nm(b.Tf,b.Tf.Sf())});
this.gw.push(this.Tf);this.overflowButton=new pP(a,this,this.Tf);g.F(this,this.overflowButton);this.overflowButton.Ba(this.Eg.element);this.Vf&&g.F(this,this.Vf);"3"===d.controlsType&&(e=new yP(a,this),g.F(this,e),g.uN(a,e.element,8));g.F(this,this.contextMenu);this.contextMenu.subscribe("show",this.CM,this);e=new GM(a,new yO(a));g.F(this,e);g.uN(a,e.element,4);this.kx.Pa("focus",this.fQ,this);g.F(this,this.kx);this.jx.Pa("focus",this.gQ,this);g.F(this,this.jx);(this.Rl=d.Pc?null:new g.mP(a,c,this.contextMenu,
this.kd,this.qc,this.Tt,function(){return b.pk()}))&&g.F(this,this.Rl);
this.zp||(this.NL=new EP(this.api,this),g.F(this,this.NL),g.uN(a,this.NL.element,4));this.ZL=new $Q(this.api,this);g.F(this,this.ZL);g.uN(a,this.ZL.element,4);this.En.push(this.qc.element);this.N(a,"fullscreentoggled",this.Yl);this.N(a,"offlineslatestatechange",function(){b.api.Pu()&&$N(b.kd,128,!1)});
this.N(a,"cardstatechange",function(){b.Ti()});
this.N(a,"resize",this.AS);this.N(a,"showpromotooltip",this.iT)};
Zua=function(a){var b=a.api.T(),c=g.V(a.api.ub(),128);return b.l&&c&&!a.api.isFullscreen()};
hR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Fl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=hR(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};
$ua=function(a,b,c){var d;if(g.S(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.Ev){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.Ev=new vP(e,a,a.api),g.F(a,a.Ev),g.uN(a.api,a.Ev.element,8));null===
(d=a.Ev)||void 0===d?void 0:d.zA(e,c)}}};
g.iR=function(a){g.FN.call(this,a);this.chrome=null;this.load()};
jR=function(){var a=ava;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=zr.apply(null,[$ga.apply(null,g.la(b))].concat(g.la(c)));this.store=Cr(a,void 0,b)};
kR=function(a){this.l=a;this.B=this.i=0;this.u=-1};
lR=function(a){var b=DD(a.l,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=DD(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
mR=function(a,b){a.B=b;var c=a.u;for(a.u=-1;a.i+1<=a.l.totalLength;){0>c&&(c=lR(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:lR(a);break;case 1:a.i+=8;break;case 2:d=lR(a);a.i+=d;break;case 5:a.i+=4}}return!1};
nR=function(a,b,c){c=void 0===c?0:c;return mR(a,b)?lR(a):c};
oR=function(a,b){var c=void 0===c?null:c;if(!mR(a,b))return c;b=lR(a);c=BD(a.l,a.i,b);a.i+=b;return c};
bva=function(){this.i=0;this.u=void 0;this.B=[];this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.A.TextEncoder&&(this.u=new TextEncoder)};
pR=function(a,b){b=a.i+b;if(!(a.l.length>=b)){for(var c=2*a.l.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.l);a.l=b;a.view=new DataView(a.l.buffer)}};
qR=function(a,b){if(268435455<b){pR(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(pR(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};
rR=function(a,b,c){qR(a,b<<3|0);qR(a,c)};
sR=function(a,b,c){qR(a,b<<3|2);b=c.length;qR(a,b);pR(a,b);a.l.set(c,a.i);a.i+=b};
uR=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(tR(g.Ya(c)).buffer);sR(a,b,c)};
cva=function(a){qR(a,18);a.B.push(a.i);a.i+=2};
dva=function(a){var b=a.B.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)};
vR=function(a){var b=new kR(new uD([g.xd(decodeURIComponent(a))]));a=b.bf(2);b=nR(b,4);return{ZP:b,entityType:eva[b],entityId:a}};
wR=function(a,b){var c=new bva;uR(c,2,a);rR(c,4,fva[b]);rR(c,5,1);a=new Uint8Array(c.l.buffer,0,c.i);return encodeURIComponent(g.$d(a))};
xR=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
yR=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
hva=function(a){var b=gva[a];if(b)return b;g.cy(new g.Pv("Entity model not found.",{entityType:a}))};
iva=function(a){this.i=a;this.l={}};
zR=function(a,b,c){return lw(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})};
AR=function(a,b,c){return c?(c=c.map(function(d){return zR(a,d,b)}),Yv.all(c)):lw(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})};
CR=function(a,b,c){var d=xR(b),e={key:d,entityType:c,data:b};return lw(a.i,"EntityStore").get(d).then(function(f){if(f&&f.entityType!==c)throw Error("Incorrect entity type");}).then(function(){var f=[];
f.push(kw(lw(a.i,"EntityStore"),e));g.Zr("pes_enable_association_store")&&f.push(jva(a,b,c));return Yv.all(f)}).then(function(){BR(a,d,c);
return d})};
DR=function(a,b,c){b=b.map(function(d){return CR(a,d,c)});
return Yv.all(b)};
FR=function(a,b){var c=vR(b).entityType,d=[];d.push(lw(a.i,"EntityStore").delete(b));g.Zr("pes_enable_association_store")&&d.push(ER(a,b));return Yv.all(d).then(function(){BR(a,b,c)})};
kva=function(a,b){return vw(lw(a.i,"EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){var d=[];d.push(c.delete());g.Zr("pes_enable_association_store")&&d.push(ER(a,c.BC()));return Yv.all(d).then(function(){BR(a,c.BC(),b);return c.continue()})})};
BR=function(a,b,c){var d=a.l[c];d||(d=new Set,a.l[c]=d);d.add(b)};
lva=function(a,b,c){var d=xR(b);c=hva(c);if(!c)return Yv.resolve([]);c=new c(b);a=lw(a.i,"EntityAssociationStore");b=[];c=g.q(c.l());for(var e=c.next();!e.done;e=c.next())b.push(kw(a,{parentEntityKey:d,childEntityKey:e.value}));return Yv.all(b).then(function(f){return f.map(function(h){return h[1]})})};
ER=function(a,b){return lw(a.i,"EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
jva=function(a,b,c){var d=xR(b);return ER(a,d).then(function(){return lva(a,b,c)})};
GR=function(){g.E.apply(this,arguments);this.i=[];if(!Rv())throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Qv()),a.onmessage=this.l.bind(this);this.channel=a};
HR=function(a,b,c){return g.D(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){if(1==p.i)return g.w(p,mva().open(),2);if(3!=p.i)return f=p.l,g.w(p,jw(f,["EntityStore","EntityAssociationStore"],b,function(r){h=new iva(r);return c(h)}),3);
l=p.l;h&&(m=h.l,0<Object.keys(m).length&&(n.channel&&n.channel.postMessage(m),nva(n,m)));return p.return(l)})})};
IR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
JR=function(a,b,c){return HR(a,"readwrite",function(d){return CR(d,b,c)})};
ova=function(a,b){return HR(a,"readwrite",function(c){return DR(c,b,"offlineOrchestrationActionWrapperEntity")})};
pva=function(a,b){return HR(a,"readwrite",function(c){return FR(c,b)})};
KR=function(a,b,c){return HR(a,"readonly",function(d){return zR(d,b,c)})};
LR=function(a,b,c){return HR(a,"readonly",function(d){return AR(d,b,c)})};
nva=function(a,b){a=g.q(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),qva&&c&&qva.push(c)};
NR=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,Gw(),2);if(!c.l||!Rv())return c.return();if(MR)return c.return(MR);MR=new GR;return c.return(MR)})})};
tva=function(a){var b=rva;return g.D(this,function d(){var e;return g.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 g.w(f,sva(e),2)}e.length=0;g.sa(f)})})};
sva=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,NR(),2):(d=e.l)?g.w(e,HR(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=Jb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(CR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
m.type&&h.push(FR(f,m.entityKey)))}return Yv.all(h)}),0):e.return()})})};
uva=function(a){return void 0!==a};
vva=function(a,b){var c={};c=void 0===c?{}:c;g.D(this,function e(){return g.z(e,function(f){if("locks"in navigator)return f.return(navigator.locks.request(a,c,function(h){return b(h)}));
throw Error("Web lock is not supported.");})})};
OR=function(a,b,c){g.cy(new g.Pv("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.cy(b)};
PR=function(){};
QR=function(){};
RR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+Qv("CacheStorage get")};
wva=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){d=c;if(void 0!==SR)return e.return(SR);SR=new Promise(function(f){return g.D(d,function l(){var m;return g.z(l,function(n){switch(n.i){case 1:return ta(n,2),g.w(n,TR.open("test-only"),4);case 4:return g.w(n,TR.delete("test-only"),5);case 5:ua(n,3);break;case 2:if(m=va(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})});
return e.return(SR)})})};
VR=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,wva(),2);if(!c.l)return c.return(void 0);UR||(UR=new QR);return c.return(UR)})})};
xva=function(){return g.D(this,function b(){var c;return g.z(b,function(d){return 1==d.i?g.w(d,VR(),2):(c=d.l)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})};
yva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,VR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})};
zva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,VR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,e.addAll(a),0)})})};
WR=function(a){g.Kv("offlineTransferStatusChanged",a)};
Ava=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE";
case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}};
YR=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)};
ZR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
$R=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
Eva=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,L,T,N;return g.z(e,function(oa){switch(oa.i){case 1:return f=wR(a,"ytMainVideoEntity"),h=wR(a,"ytMainChannelEntity"),l=wR(a,"transfer"),g.w(oa,HR(b,"readonly",function(za){return Yv.all([zR(za,f,"ytMainVideoEntity"),zR(za,h,"ytMainChannelEntity"),zR(za,l,"transfer"),AR(za,"ytMainChannelEntity"),AR(za,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:m=oa.l;n=g.q(m);p=n.next().value;r=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;if(!p&&!r){oa.wb(3);break}y=p?aS(p.thumbnail):[];if(!r){B=[];oa.wb(4);break}return g.w(oa,Bva(r,u),5);case 5:B=oa.l;case 4:return G=B,g.w(oa,yva(y.concat(G)),3);case 3:H=[wR(a,"ytMainDownloadedVideoEntity"),f,h,wR(a,"playbackData"),l,wR(a,"offlineVideoPolicy"),wR(a,"offlineVideoStreams")];I=g.q(x);for(L=I.next();!L.done;L=I.next())T=L.value,N=vR(T.key).entityId,N!==a||Cva(c,T.actionProto)||
H.push(T.key);return g.w(oa,HR(b,"readwrite",function(za){return Yv.all(H.map(function(pc){return FR(za,pc)})).then(function(){return m})}),7);
case 7:Dva(t),g.sa(oa)}})})};
Gva=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){if(1==m.i)return g.w(m,HR(a,"readwrite",function(n){var p=AR(n,"transfer"),r=AR(n,"offlineOrchestrationActionWrapperEntity");return Yv.all([p,r]).then(function(t){t=g.q(t);var u=t.next().value,x=t.next().value;t=Fva.map(function(H){return kva(n,H)});
x=g.q(x);for(var y=x.next();!y.done;y=x.next()){y=y.value;var B="ytMainDownloadedVideoEntity"===vR(y.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===y.actionProto.actionType;Cva(b,y.actionProto)||B&&(!B||G)||t.push(FR(n,y.key))}return Yv.all(t).then(function(){return u})})}),2);
e=m.l;f=g.q(e);for(h=f.next();!h.done;h=f.next())l=h.value,Dva(l);return g.w(m,xva(),0)})})};
Cva=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
Dva=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=vR(a.key).entityId;WR({encryptedVideoId:b,cotn:a.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"})}};
aS=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};
Bva=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){e=aS(a.avatar);f=g.q(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.q(aS(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,r=e.indexOf(p),-1!==r&&e.splice(r,1);return t.return(e)})})};
bS=function(a){this.i=a};
cS=function(a,b,c){this.status=a;this.i=b;this.l=c};
dS=function(a,b){this.i=a;this.W=b};
Jva=function(a,b){var c,d;return g.D(a,function f(){var h,l,m=this,n;return g.z(f,function(p){switch(p.i){case 1:return h=b.entityKey,l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch,ta(p,2),g.w(p,Hva(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l}),4);case 4:return(n=p.l)?g.w(p,Iva(m,n,b),5):p.return(eS(b,!1));case 5:return p.return(eS(b,!0,n.orchestrationActions));case 2:return va(p),OR("PDE handleAdd error"),
p.return(eS(b,!1))}})})};
Kva=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:return e=b.entityKey,g.w(t,HR(f.i,"readonly",function(u){var x=zR(u,e,"playbackData");u=zR(u,wR(vR(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");return Yv.all([x,u])}),2);
case 2:h=t.l;l=g.q(h);m=l.next().value;n=l.next().value;if(!m||!n)return t.return(eS(b,!0));p={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};ta(t,3);return g.w(t,Hva(f,e,{refreshData:p}),5);case 5:return(r=t.l)?g.w(t,Iva(f,r,b),6):t.return(eS(b,!1));case 6:return t.return(eS(b,!0,r.orchestrationActions));case 3:return va(t),t.return(eS(b,!1))}})})};
Hva=function(a,b,c){return g.D(a,function e(){var f,h=this,l,m;return g.z(e,function(n){f=g.ZM();var p=h.W,r=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u={entityKey:b};r&&(u.refreshData=r);t&&(u.isExpiredStreamUrlRefetch=t);l={context:nsa(p),signatureTimestamp:18808,videos:[u]};m=g.JM(Lva);return n.return(g.eL(f,l,m))})})};
Iva=function(a,b,c){return g.D(a,function e(){var f,h=this;return g.z(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return l.wb(2);f=vR(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.w(l,Eva(f,h.i,c),2)}return g.w(l,
tva(b.frameworkUpdates.entityBatchUpdate),0)})})};
eS=function(a,b,c){return new cS(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",YR(a),c)};
fS=function(){bS.apply(this,arguments)};
Nva=function(a,b){return g.D(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=YR(b),g.w(l,KR(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.l)return l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.w(l,Mva(f,b),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Ova=function(a,b){return g.D(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=YR(b),g.w(l,KR(f.i,b.entityKey,"transfer"),2);case 2:h=l.l;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.w(l,Mva(f,b),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
e))}})})};
Mva=function(a,b){var c;return g.D(a,function e(){var f,h,l=this,m;return g.z(e,function(n){if(1==n.i)return f=null===(c=b.actionMetadata)||void 0===c?void 0:c.transferEntityActionMetadata,h={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:Ix(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===f||void 0===f?void 0:f.maximumDownloadQuality,preferredAudioTrack:null===f||void 0===f?void 0:f.preferredAudioTrack,transferRetryCount:0},g.w(n,JR(l.i,h,"transfer"),
2);m=vR(h.key).entityId;WR({encryptedVideoId:m,cotn:h.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"});g.sa(n)})})};
Qva=function(a){var b,c;return g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=g.ZM(),h={context:$K(),videoIds:[a]},l=g.JM(Pva),g.w(p,g.eL(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)})})};
gS=function(){bS.apply(this,arguments)};
Tva=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){switch(n.i){case 1:return e=YR(b),f=vR(b.entityKey),h=f.entityId,ta(n,2),g.w(n,Rva(l,h),4);case 4:ua(n,3);break;case 2:return va(n),n.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return m=Sva("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h),n.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[m]))}})})};
Uva=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m,n;return g.z(d,function(p){switch(p.i){case 1:return e=YR(b),f=vR(b.entityKey),h=f.entityId,g.w(p,KR(l.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:m=p.l;if(!m)return p.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(p,3);return g.w(p,Rva(l,h,m.addedTimestampMillis),5);case 5:ua(p,4);break;case 3:return va(p),p.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return n=Sva("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
h),p.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[n]))}})})};
Vva=function(a,b){return g.D(a,function d(){var e,f,h=this;return g.z(d,function(l){switch(l.i){case 1:return e=YR(b),ta(l,2),f=vR(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===f?g.w(l,Gva(h.i,b),5):g.w(l,Eva(f,h.i,b),5);case 5:ua(l,3);break;case 2:return va(l),l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return l.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Rva=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n,p;return g.z(e,function(r){switch(r.i){case 1:return g.w(r,Qva(b),2);case 2:return h=r.l,g.w(r,Wva(f,h,c),3);case 3:l=r.l;m=l.videoEntity;n=l.channelEntity;ta(r,4);var t=aS(m.thumbnail),u=aS(n.avatar);return g.w(r,zva(t.concat(u)),6);case 6:ua(r,0);break;case 4:p=va(r),OR("thumbnails failed",p),g.sa(r)}})})};
Wva=function(a,b,c){var d;return g.D(a,function f(){var h,l,m,n,p=this;return g.z(f,function(r){if(1==r.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());h=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;l={id:wR(b.videoId,"ytMainChannelEntity"),channelId:h.channelId,title:h.title,avatar:h.thumbnail};m={id:wR(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:l.id};n={id:wR(b.videoId,"ytMainDownloadedVideoEntity"),video:m.id,playbackData:wR(b.videoId,"playbackData"),offlineVideoPolicy:wR(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.w(r,HR(p.i,"readwrite",function(t){var u=CR(t,l,"ytMainChannelEntity"),x=CR(t,m,"ytMainVideoEntity");
t=CR(t,n,"ytMainDownloadedVideoEntity");return Yv.all([u,x,t])}),2)}return r.return({videoEntity:m,
channelEntity:l,b9:n})})})};
Sva=function(a,b){b=wR(b,"playbackData");return{actionType:a,entityKey:b,actionMetadata:{priority:1,retryScheduleIntervalsInSeconds:Xva}}};
Zva=function(){return{priority:1,retryScheduleIntervalsInSeconds:Yva}};
hS=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=void 0===e?b: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};
iS=function(a){return{key:wR(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()}};
$va=function(){this.i=new Map};
awa=function(){GS||(GS=new $va);return GS};
bwa=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0}};
cwa=function(a,b,c){if(!c){var d=void 0===d?!1:d;c=a.i.get("FLOW_TYPE_OFFLINE_ORCHESTRATION");if(!c||d)c=Ix(),a.i.set("FLOW_TYPE_OFFLINE_ORCHESTRATION",c)}a={flowNonce:c,flowType:"FLOW_TYPE_OFFLINE_ORCHESTRATION",flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);void 0!==b.statusCode&&(a.flowEventStatus=b.statusCode);g.Kv("flowEvent",a,void 0)};
dwa=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=vR(a.action.entityKey);a={entityType:d.ZP,entityId:d.entityId,offlineOrchestrationActionType:a.action.actionType,orchestrationAction:{orchestrationActionId:a.actionId}};b&&(a.offlineOrchestrationActionResult=b.status,a.isRetryable=b.i);c&&(a.additionalOrchestrationActions=c.map(function(e){return{orchestrationActionId:e.actionId}}));
return a};
QS=function(a,b){var c={offlineOrchestrationContext:dwa(a)};b=bwa(b,c);cwa(awa(),b,a.rootActionId)};
ewa=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:dwa(a,b,c)};b=bwa(3,b);cwa(awa(),b,a.rootActionId)};
fwa=function(){this.actions=[]};
gwa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,QS(c,1),a.actions.push(c);a.actions.sort(a.i)};
hwa=function(a,b){a=g.q(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
SS=function(a,b){g.E.call(this);var c=this;this.i=a;this.V=b;this.l=new fwa;this.J=new Xw;this.u=new g.J(function(){iwa(c)});
this.C=NaN;g.F(this,this.u);this.I=IR(this.i,this.L.bind(this))};
lwa=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return e=new SS(a,b),g.w(f,jwa(e),2);kwa(e);return f.return(e)})})};
kwa=function(a){return a.B?Promise.resolve():TS(a)};
TS=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:if(d.B)throw Error("Already processing an action");if(d.isDisposed())return n.return();e=d.l.actions.shift();if(void 0===e)return n.return();d.B=e;if(f=d.V[e.entityType]){n.wb(2);break}d.B=void 0;return g.w(n,TS(d),3);case 3:return n.return();case 2:return ta(n,4,5),QS(e,2),g.w(n,f.l(e.action),7);case 7:return h=n.l,g.w(n,mwa(d,e,h),5);case 5:wa(n);d.B=void 0;xa(n,6);break;case 4:return l=va(n),
OR("Orchestration error",l),ta(n,9),g.w(n,nwa(d,e),11);case 11:ua(n,5);break;case 9:m=va(n);OR("Orchestration retry error",m);3>e.retryScheduleIndex&&gwa(d.l,[e]);n.wb(5);break;case 6:return g.w(n,TS(d),0)}})})};
mwa=function(a,b,c){var d;return g.D(a,function f(){var h=this,l,m;return g.z(f,function(n){if(1==n.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status)return m=null===(d=c.l)||void 0===d?void 0:d.map(function(p){return l.createAction(p,b)}),ewa(b,c,m),g.w(n,HR(h.i,"readwrite",function(p){var r=[];
if(m){var t=m.map(function(u){return iS(u)});
r.push(DR(p,t,"offlineOrchestrationActionWrapperEntity"))}t=iS(b);r.push(FR(p,t.key));return Yv.all(r)}),9);
if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return n.wb(0);ewa(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.w(n,nwa(h,b),0);OR("Orchestration result is not retryable, deleting action");return g.w(n,pva(h.i,iS(b).key),0)}QS(b,4);g.sa(n)})})};
US=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){f=[];h=Infinity;l=4E3;m=g.q(b);for(n=m.next();!n.done;n=m.next())p=n.value,r=Number(p.enqueueTimeSec),t=owa(r),u=p.retryScheduleIndex,x=null!=u&&0<u,0<t&&x?(h=Math.min(h,r),l=Math.min(t,l)):f.push(p);isFinite(h)&&(!e.u.isActive()||h<e.C)&&(e.C=h,e.u.start(l));e.J.nj()||(y=f.length,f=f.filter(function(H){var I;H=(null===(I=H.actionProto)||void 0===I?void 0:I.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";
return!pwa.includes(H)}),B=f.length<y,!e.u.isActive()&&B&&e.u.start(1));
qwa(e,f);return g.w(G,kwa(e),0)})})};
iwa=function(a){g.D(a,function c(){var d=this,e,f,h,l,m,n,p;return g.z(c,function(r){if(1==r.i)return g.w(r,rwa(d),2);e=r.l;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=vR(m.key),p=n.entityId,hwa(d.l,p)||f.push(m);return g.w(r,US(d,f),0)})})};
owa=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
nwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){var h,l,m=(null===(l=null===(h=b.action)||void 0===h?void 0:h.actionMetadata)||void 0===l?void 0:l.retryScheduleIntervalsInSeconds)||Yva;h=1;b.retryScheduleIndex<m.length&&(h=m[b.retryScheduleIndex]);b.i=1E3*h+Date.now();b.retryScheduleIndex++;return g.w(f,swa(e,[b]),0)})})};
jwa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return g.w(f,LR(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.l;return g.w(f,US(d,e),0)})})};
qwa=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=vR(c.key),e=vR(c.actionProto.entityKey);c=new hS(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&gwa(a.l,[c])})};
rwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,LR(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.l;return h.return(f.filter(uva))})})};
swa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return iS(c)});
return ova(a.i,b)};
twa=function(a){this.api=a;this.i=void 0};
vwa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){f=e;h=b.videoId;l=e.api.T();m=!0;if(b.captionTracks.length)e.i=new g.JN(e.api.T(),b,e.api.getAudioTrack());else if(b.Pc)n=g.ena(b),e.i=new g.LN(b.Pc,h,n,b.Lj,l),m=b.Lj;else return p.return();return p.return(new Promise(function(r){var t;null===(t=f.i)||void 0===t?void 0:t.Pr(function(){return g.D(f,function x(){var y=this;return g.z(x,function(B){if(1==B.i)return g.w(B,uwa(y,h,m),2);r();g.sa(B)})})})}))})})};
uwa=function(a,b,c){c=void 0===c?!0:c;return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x,y,B,G;return g.z(e,function(H){switch(H.i){case 1:if(!f.i)return H.return();h=[];l=g.GN(f.i.l,c);m=[];n={};p=g.q(l.entries());for(r=p.next();!r.done;n={cA:n.cA},r=p.next())t=r.value,u=g.q(t),n.cA=u.next().value,x=u.next().value,y=f.i.tp(x,"json3"),B=g.bh(g.ft(y,{withCredentials:!0},3,500).then(function(I){return function(L){L={metadata:g.eH(l[I.cA]),trackData:L.xhr.responseText};m.push(L)}}(n)),function(I){OR("Caption fetch error",
I)}),h.push(B);
return g.w(H,Yg(h),2);case 2:return ta(H,3),g.w(H,Hla(b,m),5);case 5:ua(H,0);break;case 3:G=va(H),OR("Caption DB transaction error",G),g.sa(H)}})})};
wwa=function(){this.tag="woffle"};
VS=function(a,b,c,d){this.api=a;this.player=b;this.B=c;this.i=d;this.logger=new wwa;this.l=!1;a={};yx(this.player,(a.localmediachange=this.I,a.signatureexpired=this.MD,a.statechange=this.C,a),this)};
xwa=function(a){return g.D(this,function c(){return g.z(c,function(d){return d.return(Mla(a))})})};
WS=function(a,b){var c=ZG(b);if(1===c||0===c)return Promise.resolve();(c=a.player.getVideoData().videoId===b?a.player:null)&&c.Hm();a.u=0;return xwa(b)};
ywa=function(){switch(g.iv.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
XS=function(a){g.E.call(this);this.i=a;this.l=IR(this.i,this.u.bind(this))};
zwa=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return wR(u,"transfer")});
return g.w(t,LR(f.i,"transfer",e),2);case 2:h=t.l;l=h.filter(uva).map(function(u){return vR(u.key).entityId});
m=b.filter(function(u){return-1===l.indexOf(u)});
if(0===m.length)return t.return([]);n=g.q(m);p=n.next();case 3:if(p.done){t.wb(5);break}r=p.value;return g.w(t,xwa(r),4);case 4:p=n.next();t.wb(3);break;case 5:return t.return(m)}})})};
Awa=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p;return g.z(l,function(r){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(m="STREAM_TYPE_AUDIO_AND_VIDEO",OR("unexpected stream type")):c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=wR(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===
m?Number(c.tc()):void 0};return g.w(r,HR(a,"readwrite",function(t){return zR(t,n,"offlineVideoStreams").then(function(u){if(u&&u.streamsProgress){var x=u;a:{var y=d.itag+";"+d.xtags;for(var B=u.streamsProgress,G=0;G<B.length;G++){var H=JSON.parse(B[G].formatStreamBytes);if(H.itag+";"+H.xtags===y){B[G]=p;y=B;break a}}B.push(p);y=B}x.streamsProgress=y}else u={key:n,streamsProgress:[p]};return u}).then(function(u){u=CR(t,u,"offlineVideoStreams");
var x=zR(t,wR(b,"transfer"),"transfer");return Yv.all([u,x]).then(function(y){y=g.q(y);y.next();y=y.next().value;if(!y)return FR(t,n).then(function(){});
y.offlineVideoStreams||(y.offlineVideoStreams=[]);return-1===y.offlineVideoStreams.indexOf(n)?(y.offlineVideoStreams.push(n),CR(t,y,"transfer")):Yv.resolve(void 0)})})}),0)})})};
Bwa=function(a,b){return g.D(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i)return e=wR(b,"offlineVideoStreams"),g.w(n,KR(a,e,"offlineVideoStreams"),2);f=n.l;if(!f||!f.streamsProgress)return n.return();h=g.q(f.streamsProgress);for(l=h.next();!l.done;l=h.next())m=l.value,m.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",m.numTotalBytes!==m.numBytesDownloaded&&(m.numBytesDownloaded=m.numTotalBytes);return g.w(n,JR(a,f,"offlineVideoStreams"),0)})})};
YS=function(a,b,c,d){g.E.call(this);this.l=a;this.player=c;this.I=0;this.B=IR(this.l,this.L.bind(this));this.J=new VS(b,c,d,this);this.V=new twa(b);this.C=new XS(this.l)};
Cwa=function(a){g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,Gla(),2);var f=d.C;var h=YG();h=Object.keys(h);f=zwa(f,h);return g.w(e,f,0)})})};
ZS=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i){if(e.i)throw Error("Already downloading a video");return g.w(h,Dwa(e),2)}return 4!=h.i?(f=h.l)?b?g.w(h,new Promise(function(l){g.Us(l,1E3)}),4):h.wb(4):h.wb(0):g.w(h,Ewa(e,f),0)})})};
Fwa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return d.u?g.w(e,WS(d.J,d.u.videoDetails.videoId),3):e.wb(0);$S(d);g.sa(e)})})};
Ewa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m;return g.z(d,function(n){switch(n.i){case 1:return e.i=b,g.w(n,aT(e),2);case 2:return f=null,ta(n,3),g.w(n,Gwa(e,b),5);case 5:f=n.l;e.u=f;ua(n,4);break;case 3:return h=va(n),OR("error getting player response",h,b.cotn),g.w(n,e.yv("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return n.return();case 4:return l=new g.vH(e.player.T(),{cotn:b.cotn,raw_player_response:f,download_media:!0,start:Infinity,disable_watch_next:!0}),ta(n,7),g.w(n,
vwa(e.V,l),9);case 9:ua(n,8);break;case 7:m=va(n),OR("Caption downloading error",m,b.cotn);case 8:var p=e.J;l.getPlayerResponse()&&dI(l);$G(l.videoId,2);p.u=2;p.l=!1;p.player.Ji(l,p.B);var r=ywa();g.S(p.player.T().experiments,"hoffle_lmqf_killswitch")||(r=bB(r,r,!0,"m"),Hwa(p.player,r,!1));bT(p.player,!1);g.sa(n)}})})};
Dwa=function(a){return g.D(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,LR(d.l,"transfer"),2);e=h.l;f=e.filter(Iwa).sort(Jwa);return 0===f.length?h.return():h.return(f[0])})})};
aT=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){return g.w(e,cT(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
Kwa=function(a){g.D(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,cT(d,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),2);if(3!=h.i)return e=vR(d.i.key),f=e.entityId,g.w(h,Bwa(d.l,f),3);WR({encryptedVideoId:f,cotn:d.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",statusType:"SUCCESS"});$S(d);ZS(d);g.sa(h)})})};
Lwa=function(a,b,c){g.D(a,function e(){var f=this,h;return g.z(e,function(l){if(1==l.i)return"TRANSFER_STATE_TRANSFERRING"===f.i.transferState?l.wb(2):g.w(l,aT(f),2);if(5!=l.i){h=Date.now();if(!(1E3<h-f.I))return l.wb(0);f.I=h;return g.w(l,Awa(f.l,c.videoId,c.l,c.formatStream,c.bytesDownloaded,c.i),5)}var m=Math.floor(c.bytesDownloaded/1024).toFixed();WR({encryptedVideoId:b,cotn:f.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:m,
totalFetchedKbytes:m,totalContentKbytes:Math.floor(c.i/1024).toFixed()});g.sa(l)})})};
Mwa=function(a){a=a.i;var b=3>(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
dT=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,cT(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);f=vR(e.i.key).entityId;var l=b,m={encryptedVideoId:f,cotn:e.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};l&&(m.transferFailureReason=l,m.failureReason=Ava(l));WR(m);g.sa(h)})})};
cT=function(a,b,c,d){return g.D(a,function f(){var h=this,l;return g.z(f,function(m){l=h;h.i.transferState=b;h.i.failureReason=d;return g.w(m,Nwa(h,function(n){return c?AR(n,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(p){for(var r=g.q(p),t=r.next();!t.done;t=r.next())if((t=t.value)&&t.streamsProgress){t=g.q(t.streamsProgress);for(var u=t.next();!u.done;u=t.next())u.value.streamState=c}return DR(n,p.filter(function(x){return!!x}),"offlineVideoStreams")}):Yv.resolve(void 0)}),0)})})};
Nwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(!e.i)return h.return();f=e.i;return g.w(h,HR(e.l,"readwrite",function(l){var m=[CR(l,f,"transfer")];b&&m.push(b(l));return Yv.all(m)}),0)})})};
$S=function(a){a.i=void 0;a.u=void 0};
Gwa=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){if(1==n.i)return e=vR(b.key),f=e.entityId,h=wR(f,"playbackData"),g.w(n,KR(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");})})};
Iwa=function(a){return void 0!==eT[a.transferState]};
Jwa=function(a,b){var c=eT[a.transferState],d=eT[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
Pwa=function(a,b,c,d){this.W=a;this.api=b;this.player=c;this.C=d;this.u=new Xw;this.B=!1;this.l=new br;Owa(this)};
Owa=function(a){var b=Qv("OfflineManager");vva("woffle_orchestration_leader:"+b,function(){return Qwa(a)})};
Qwa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){d.I=new br;d.B=!0;d.api.Na("onOrchestrationBecameLeader");d.i&&d.J||Rwa(d).then(d.l.resolve).catch(d.l.reject);var f=d.l.promise;return g.w(e,f,2)}return g.w(e,d.I.promise,0)})})};
Rwa=function(a){return g.D(a,function c(){var d,e=this,f,h;return g.z(c,function(l){if(1==l.i)return g.w(l,NR(),2);if(3!=l.i){d=l.l;if(!d)return OR("PES is undefined"),l.return();e.i=new YS(d,e.api,e.player,e.C);f={};h=(f.ytMainDownloadedVideoEntity=new gS(d),f.playbackData=new dS(d,e.W),f.transfer=new fS(d),f);return g.w(l,lwa(d,h),3)}e.J=l.l;return g.w(l,Swa(e),0)})})};
Swa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return e=d,d.i?g.w(f,ZS(d.i),2):(OR("transferManager is undefined"),f.return());if(3!=f.i)return g.w(f,Twa(d),3);d.L=Vs(function(){Twa(e)},9E5);
nu(qu(),function(){e.i&&Cwa(e.i)});
g.sa(f)})})};
Uwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.Fv(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})};
Vwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.Fv(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
Wwa=function(a){return g.D(a,function c(){var d,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,NR(),2);if(3!=h.i)return(d=h.l)?g.w(h,LR(d,"transfer"),3):h.return([]);e=h.l;f=e.map(function(l){return vR(l.key).entityId});
return h.return(f)})})};
Twa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r;return g.z(c,function(t){if(1==t.i)return d.u.nj()?g.w(t,NR(),2):t.return(Xwa(d));if(3!=t.i){e=t.l;if(!e)return t.return();f=Date.now()/1E3;return g.w(t,LR(e,"offlineVideoPolicy"),3)}h=t.l;l=[];m=g.q(h);for(n=m.next();!n.done;n=m.next())p=n.value,Number(p.lastUpdatedTimestampSeconds)+43200<=f&&(r=vR(p.key).entityId,l.push(r));return l.length?g.w(t,Vwa(d,l),0):t.wb(0)})})};
Xwa=function(a){return g.D(a,function c(){var d,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return g.w(n,NR(),2);case 2:d=n.l;if(!d)return n.return();e=Date.now()/1E3;return g.w(n,LR(d,"offlineVideoPolicy"),3);case 3:f=n.l,h=g.q(f),l=h.next();case 4:if(l.done){n.wb(0);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)<e)){n.wb(5);break}m.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.w(n,JR(d,m,"offlineVideoPolicy"),5);case 5:l=h.next(),n.wb(4)}})})};
Zwa=function(){g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=[],g.w(e,NR(),2);(d=e.l)&&c.push(HR(d,"readwrite",function(f){var h=Ywa.map(function(l){return kva(f,l)});
return Yv.all(h)}));
c.push(xva(),Bla().then(function(f){return f?Nla():Promise.resolve()}));
return g.w(e,Promise.all(c),0)})})};
$wa=function(){for(var a=fT.length;4>a;a++){var b=g.og("VIDEO");b.load();fT.push(new g.ZN(b))}};
axa=function(){this.l=200;this.i=12};
bxa=function(a){var b=new axa;b.l=g.U(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.U(a.experiments,"html5_gapless_max_played_ranges");return b};
g.gT=function(a,b,c,d){d=void 0===d?!1:d;CK.call(this);this.oa=a;this.start=b;this.end=c;this.i=d};
cxa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.Il()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.qd())&&b.isView()&&(b=b.oa),b&&b.qp().length>a.i&&g.NH(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.NH(f)&&g.NH(e))return"content-protection";a=c.i[0].audio;
e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.bj?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"};
hT=function(){var a=this;this.i=this.l=haa;this.promise=new Og(function(b,c){a.l=b;a.i=c})};
iT=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 hT;this.Gj=d-1E3*b.Qc();this.C.then(void 0,function(){});
this.timeout=new g.J(function(){e.Fe("timeout")},1E4);
g.F(this,this.timeout);this.L=isFinite(d);this.status={status:0,error:null};this.ma()};
hxa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u;return g.z(c,function(x){if(1==x.i){e=d;if(d.isDisposed())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.ma();d.timeout.start();f=g.jT.Wv("gtfta");return g.w(x,d.C,2)}g.jT.au(f);h=d.i.qd();if(h.Bk())return d.Fe("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.B||!CE(d.B))return d.Fe("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.l.mp()!==
d.B)return d.Fe("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=dxa(d);m=l.fK;n=l.dI;p=l.eK;d.i.Ag(!1,!0);r=exa(h,m,p,!d.l.getVideoData().isAd());d.l.setMediaElement(r);d.L&&(d.l.seekTo(d.l.getCurrentTime()+.001,{Iu:!0,ZE:3,ye:"gapless_pseudo"}),r.play()||it());t=h.Eb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.Ha("gapless",g.wE(t));d.i.Ha("gaplessTo",d.l.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.l.getPlayerType();fxa(d.i,n,
!1,u,d.l.getVideoData().clientPlaybackNonce);fxa(d.l,d.l.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.Jg(function(){!e.l.getVideoData().eb&&g.MK(e.l.getPlayerState())&&gxa(e.l)});
kT(d,6);d.dispose();return x.return(Promise.resolve())})})};
kxa=function(a){if(a.l.getVideoData().u){lT(a.l,a.B);kT(a,3);ixa(a);var b=jxa(a),c=b.ML;b=b.KV;c.subscribe("updateend",a.Jq,a);b.subscribe("updateend",a.Jq,a);a.Jq(c);a.Jq(b)}};
ixa=function(a){a.i.unsubscribe("internalvideodatachange",a.Jo,a);a.l.unsubscribe("internalvideodatachange",a.Jo,a);a.i.unsubscribe("mediasourceattached",a.Jo,a);a.l.unsubscribe("statechange",a.Hc,a)};
exa=function(a,b,c,d){a=a.isView()?a.oa:a;return new g.gT(a,b,c,d)};
kT=function(a,b){a.ma();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))};
dxa=function(a){var b=a.i.qd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:mT(a.i,!0);c=Math.min(a.Gj/1E3,c)+b;var d=a.L?100:0;a=c-a.l.Il()+d;return{KP:b,fK:a,dI:c,eK:Infinity}};
jxa=function(a){return{ML:a.u.i.md,KV:a.u.l.md}};
nT=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=bxa(this.api.T());this.u=null;this.I=function(){g.Jg(function(){lxa(b)})}};
mxa=function(a,b,c,d){d=void 0===d?0:d;a.ma();a.Lr()||oT(a);a.B=new hT;a.l=b;var e=c,f=a.api.Gc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*mT(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.Rz("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.Oz(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,mT(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,mT(b)+l));f=fka(e,h)||d;f!==d&&a.l.Ha("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.Gc())d.cz=e;d.getVideoData().Xb=!0;d.getVideoData().Za=!0;bT(d,!0);e="";a.i&&(e=g.pT(a.i.Vb.l),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ha("queued",e);0!==b&&d.seekTo(b+.01,{Iu:!0,ZE:3,ye:"videoqueuer_queued"});a.u=new iT(a.L,a.api.Gc(),a.l,c);c=a.u;c.ma();Infinity!==c.status.status&&(kT(c,
1),c.i.subscribe("internalvideodatachange",c.Jo,c),c.l.subscribe("internalvideodatachange",c.Jo,c),c.i.subscribe("mediasourceattached",c.Jo,c),c.l.subscribe("statechange",c.Hc,c),c.i.subscribe("newelementrequired",c.EK,c),c.Jo());return a.B};
lxa=function(a){g.D(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:e=d;if(d.isDisposed())return m.return();d.ma();if(!d.B||!d.l)return d.ma(),m.return();d.J&&qT(d.api.Gc(),!0,!1);f=null;if(!d.u){m.wb(2);break}ta(m,3);return g.w(m,hxa(d.u),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:return d.api.Tw(d.l),g.jT.jE("vqsp",function(){e.api.Cj(e.l.getPlayerType())}),g.jT.jE("vqpv",function(){e.api.playVideo()}),f&&nxa(d.l,f.message),l=d.B,oT(d),m.return(l.resolve(void 0))}})})};
oT=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.Rz("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.Fe("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1};
oxa=function(){var a=Tt();return!(!a||"visible"===a)};
qxa=function(a){var b=pxa();b&&document.addEventListener(b,a,!1)};
rxa=function(a){var b=pxa();b&&document.removeEventListener(b,a,!1)};
pxa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[St+"VisibilityState"])return"";a=St+"visibilitychange"}return a};
rT=function(){g.Q.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Re()};
qxa(this.B);this.C=this.getVisibilityState(this.Df(),this.isFullscreen(),this.Ne(),this.isInline(),this.Kr(),this.Ir())};
sxa=function(a){this.end=this.start=a};
g.tT=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.W=b;this.i=c;this.Da=new Map;this.Ra=new Map;this.B=new Map;this.C=[];this.u=[];this.Za=NaN;this.Aa=this.Y=null;this.Ua=new g.J(function(){sT(d,d.Za)});
this.events=new g.wN(this);this.isLiveNow=!0;this.eb=g.U(this.W.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.I=new g.J(function(){d.J=!0;d.i.Ha("sdai","aftimeout."+d.eb.toString());d.Eu(!1);d.ya=!1},this.eb);
this.J=!1;this.va=new Map;this.La=[];this.V=null;this.ea=[];this.qb=[];this.fb=[];this.l=void 0;this.Ya=0;this.Ga=!0;this.ya=this.L=!1;this.Ia=[];this.jb=new Set;this.i.getPlayerType();txa(this.i,this);g.F(this,this.Ua);g.F(this,this.events);g.F(this,this.I);this.events.N(this.api,g.Rz("serverstitchedcuerange"),this.Cd);this.events.N(this.api,g.Sz("serverstitchedcuerange"),this.sf)};
wxa=function(a,b,c,d,e,f,h){var l=uxa(a,e,e+d);a.J&&a.i.Ha("sdai","adaftto");var m=g.S(a.W.experiments,"web_player_ssdai_reject_invalid_ads_killswitch"),n=a.i;f=void 0===f?e+d:f;e===f&&!d&&a.W.Z("html5_allow_zero_duration_ads_on_timeline")&&a.i.Ha("sdai","attl0d");if(e>f&&(a.Ad("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.Ad("Invalid playback enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+p),m))return"";
n=1E3*n.getDuration();if(f>n&&(a.Ad("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+n),m))return"";n=null;p=g.q(a.u);for(var r=p.next();!r.done;r=p.next()){r=r.value;if(e>=r.Mc&&e<r.wd&&(a.Ad("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+uT(r))),m)||f<=r.wd&&f>r.Mc&&(a.Ad("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+
e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+uT(r))),m)||f===r.Mc&&(a.Ad("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+uT(r))),m))return"";e===r.wd&&(n=r)}if(l&&n)for(m=g.q(a.ea.entries()),p=m.next();!p.done;p=m.next()){if(p=g.q(p.value),r=p.next().value,p.next().value.identifier===l.identifier){a.ea.splice(r,1);break}}else if(l&&g.S(a.W.experiments,
"web_player_ss_timeout_skip_ads"))return a.i.Ha("sdai","rejectAttl"),h&&!un(a.fb,function(t){return t===h})&&(a.i.Ha("sdai","rejectAdBreakAttl"),a.fb.push(h)),"";
l="childplayback_"+vxa++;m=b.raw_player_response;m||g.S(a.W.experiments,"web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=Ix());p=b.cpn;b=new g.vH(a.W,b);b.Vc=l;c={Vc:l,playerType:c,durationMs:d,Mc:e,wd:f,playerResponse:m,cpn:p,videoData:b};a.u=a.u.concat(c).sort(function(t,u){return t.Mc-u.Mc});
h?c.bj=h:n?c.bj=n.bj:c.bj=c.cpn;a.I.isActive()&&(a.J=!1,a.I.stop(),a.Eu(!0));a.ma();return l};
xxa=function(a,b){return new g.Oz(a,b,{namespace:"serverstitchedcuerange",priority:7})};
yxa=function(a,b,c){var d=a.L,e={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Mc:0,playerType:1,wd:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){e=a.u.find(function(h){return h.cpn===b.adCpn});
var f=a.u.find(function(h){return h.cpn===c.adCpn});
f&&e&&(a.api.X("serverstitchedvideochange",e.Vc),vT(a.i,f,e,c.mm,b.mm,d))}else!b.isAd&&c.isAd?(a.api.X("serverstitchedvideochange"),f=c.Zd,a.Ya=f.end-f.start,(f=a.u.find(function(h){return h.cpn===c.adCpn}))&&vT(a.i,f,e,c.mm,b.mm,d)):b.isAd&&!c.isAd&&(f=a.u.find(function(h){return h.cpn===b.adCpn}))&&(a.api.X("serverstitchedvideochange",f.Vc),a.Ya=0,vT(a.i,e,f,c.mm,b.mm,d))};
wT=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Mc/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Al:e,Kp:b-d};d=h-e.wd/1E3}return{Al:void 0,Kp:b-d}};
xT=function(a,b){var c=zxa(a,b);if(c)return a.u.find(function(d){return d.cpn===a.B.get(c)})};
zxa=function(a,b){a=g.q(a.B.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
sT=function(a,b){var c=a.Aa||a.api.Gc().getPlayerState();yT(a,!0);var d=b;g.S(a.W.experiments,"web_player_ssdai_seek_without_offset_killswitch")&&(d=wT(a,b).Kp);a.i.seekTo(d);a=a.api.Gc();b=a.getPlayerState();g.MK(c)&&!g.MK(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
yT=function(a,b){a.Za=NaN;a.Ua.stop();a.Y&&b&&zT(a.Y);a.Aa=null;a.Y=null};
AT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();for(var d=b,e=c,f=[],h=g.q(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Mc<d||l.wd>e)&&f.push(l);a.u=f;d=b;e=c;f=g.q(a.B.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.i.removeCueRange(h),a.B.delete(h),a.i.Ha("sdai","rmAdCR"));d=wT(a,b/1E3);b=d.Al;d=d.Kp;b&&(d=1E3*d-b.Mc,e=b.Mc+d,a.ma(),b.durationMs=d,b.wd=e,Axa(a,b));(b=wT(a,c/1E3).Al)&&a.Ad("Invalid clearEndTimeMs="+c+" that falls during "+uT(b)+
".Child playbacks can only have duration updated not their start.")};
Axa=function(a,b){for(var c=null,d=g.q(a.B),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.C);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Mc+b.durationMs:d.end===c.start&&(d.end=b.Mc);c.start=b.Mc;c.end=b.Mc+b.durationMs}};
uT=function(a){var b;return"playback={timelinePlaybackId="+a.Vc+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Mc+" parentReturnTimeMs="+a.wd+"}"};
Bxa=function(a,b,c){c=a.va.get(c);c||(b+=BT(a),c=wT(a,b,1).Al);return c};
Cxa=function(a,b,c,d){var e,f;if(3===d)return"";if(!g.S(a.W.experiments,"html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Da.has(b))return a.Da.get(b);if(2===d&&a.Ra.has(b))return a.Ra.get(b)}d=null===(f=null===(e=a.i.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.i.Ha("sdai","gdu.nodaist.seg."+b+".itag."+c),"")};
CT=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;Dxa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.i.removeCueRange(e);a.Ia.includes(e)&&a.sf(e);a.C.splice(d,1);continue}d++}else Dxa(a,b,c)};
Dxa=function(a,b,c){b=xxa(b,c);c=!0;g.Bb(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.i.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}c&&a.i.addCueRange(b)};
DT=function(a,b,c){if(void 0===c||!c){c=g.q(a.La);for(var 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.La.push(new sxa(b))}};
g.Exa=function(a,b){a=g.q(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
BT=function(a){var b=0;a.W.Z("web_player_ss_media_time_offset")&&(b=0===a.i.getStreamTimeOffset()?a.i.Qc():a.i.getStreamTimeOffset());return b};
Fxa=function(a,b){var c=[];a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.bj===b&&d.cpn&&c.push(d.cpn);return c};
Gxa=function(a,b){var c,d=[];a=g.q(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.bj===b&&f&&d.push(f)}return d};
uxa=function(a,b,c){if(a.ea.length)for(var d={},e=g.q(a.ea),f=e.next();!f.done;d={Zn:d.Zn},f=e.next()){d.Zn=f.value;f=1E3*d.Zn.startSecs;var h=1E3*d.Zn.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return un(a.qb,function(l){return function(m){return m.identifier===l.Zn.identifier}}(d))||(a.i.Ha("sdai","adskip_"+b),a.qb.push(d.Zn)),d.Zn}};
ET=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.W=b;this.l=c;this.I=new Map;this.i=[];this.u=this.J=null;this.V=NaN;this.C=this.B=null;this.L=new g.J(function(){Hxa(d,d.V)});
this.ea=[];this.Y=new g.J(function(){var e=d.ea.pop();if(e){var f=e.Vc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ea.length&&g.Fq(d.Y,4500))}});
this.events=new g.wN(this);c.getPlayerType();g.F(this,this.L);g.F(this,this.Y);g.F(this,this.events);this.events.N(this.api,g.Rz("childplayback"),this.Cd);this.events.N(this.api,"onQueuedVideoLoaded",this.RT);this.events.N(this.api,"presentingplayerstatechange",this.hh)};
Lxa=function(a,b,c,d,e,f){var h=a.l;f=void 0===f?e+d:f;if(e>f)return a.Ad("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(e<l)return a.Ad("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.Qc(),a.Ad(h),"";l=null;
for(var m=g.q(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Mc&&e<n.wd)return a.Ad("e.overlappingEnter"),a.ma(),"";if(f<=n.wd&&f>n.Mc)return a.Ad("e.overlappingReturn"),a.ma(),"";if(f===n.Mc)return a.Ad("e.outOfOrder"),a.ma(),"";e===n.wd&&(l=n)}m="childplayback_"+Ixa++;n={Zd:FT(d,!0),Gj:Infinity,target:null};var p={Vc:m,playerVars:b,playerType:c,durationMs:d,Mc:e,wd:f,Pm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Mc-x.Mc});
l?Jxa(a,l,{Zd:FT(l.durationMs,!0),Gj:a.W.Z("timeline_manager_transition_killswitch")?Infinity:l.Pm.Gj,target:p}):(b={Zd:FT(e,!1),Gj:e,target:p},a.I.set(b.Zd,b),a.ma(),h.addCueRange(b.Zd));b=g.S(a.W.experiments,"html5_gapless_preloading");if(a.l===a.api.Gc()&&(h=1E3*h.getCurrentTime(),h>=p.Mc&&h<p.wd)){var r=a.api.Gc().getPlayerState(),t=h-p.Mc;Cg(function(){Kxa(a,p,t/1E3,r)});
b=!1}b&&(a.ea.unshift(p),g.Fq(a.Y,0));a.ma();return m};
FT=function(a,b){return new g.Oz(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Mxa=function(a,b,c,d){a.ma();a.u=d;a.api.fx(a.l,c,b)};
Nxa=function(a,b,c,d){a.ma();a.u=d;d=b.Vc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
Jxa=function(a,b,c){var d=b.Pm;b.Pm=c;GT(a,b)&&(c=a.api.Gc(),d.Zd===a.u&&HT(a),a.ma(),c.removeCueRange(d.Zd),b=b.Pm,a.ma(),c.addCueRange(b.Zd))};
HT=function(a){a.J=null;a.u=null;a.api.Lr()||a.api.clearQueue()};
Oxa=function(a,b){GT(a,b)||a.Ad("e.childPlaybackIsNotPresenting");return b.wd===b.Mc+b.durationMs?(a=a.api.Gc(),b.Mc+1E3*a.getCurrentTime()):b.wd};
IT=function(a,b){var c=0;a=g.q(a.i);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Mc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Al:d,Kp:b-e};c=f-d.wd/1E3}return{Al:null,Kp:b-c}};
Hxa=function(a,b){var c=a.C||a.api.Gc().getPlayerState();JT(a,!0);b=g.S(a.W.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.l.hj();var d=IT(a,b);b=d.Al;d=d.Kp;var e=b&&!GT(a,b)||!b&&a.l!==a.api.Gc(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||HT(a);a.ma();b?(a.ma(),Kxa(a,b,d,c)):(a.ma(),KT(a,d,c))};
KT=function(a,b,c){var d=a.l,e=a.api.Gc();d!==e&&a.api.Cj(d.getPlayerType());d.seekTo(b,{ye:"application_timelinemanager"});Pxa(a,c)};
Kxa=function(a,b,c,d){var e=GT(a,b);if(!e){a.api.Cj(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.vH(a.W,b.playerVars);f.Vc=b.Vc;a.api.An(f,b.playerType)}f=a.api.Gc();e||(b=b.Pm,a.ma(),f.addCueRange(b.Zd));f.seekTo(c,{ye:"application_timelinemanager"});Pxa(a,d)};
Pxa=function(a,b){a=a.api.Gc();var c=a.getPlayerState();g.MK(b)&&!g.MK(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
JT=function(a,b){a.V=NaN;a.L.stop();a.B&&b&&zT(a.B);a.C=null;a.B=null};
GT=function(a,b){a=a.api.Gc();return!!a&&a.getVideoData().Vc===b.Vc};
Qxa=function(a){var b=a.i.find(function(e){return GT(a,e)});
if(b){var c=a.api.Gc();HT(a);var d=new g.GK(8);b=Oxa(a,b)/1E3;KT(a,b,d);c.Ha("forceParentTransition","childPlayback");a.l.Ha("forceParentTransition","parentPlayback")}};
LT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ma();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.Gj>=d&&l.target&&l.target.wd<=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.Mc>=d&&l.wd<=e){var m=a;m.J===l&&HT(m);GT(m,l)&&m.api.Qn(l.playerType)}else f.push(l);a.i=f;d=IT(a,b/1E3);b=d.Al;d=d.Kp;b&&(d*=1E3,Rxa(a,b,d,b.wd===b.Mc+b.durationMs?b.Mc+d:b.wd));
(b=IT(a,c/1E3).Al)&&a.Ad("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Vc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Mc+" parentReturnTimeMs="+b.wd+"}.Child playbacks can only have duration updated not their start."))};
Rxa=function(a,b,c,d){a.ma();b.durationMs=c;b.wd=d;d={Zd:FT(c,!0),Gj:c,target:null};Jxa(a,b,d);GT(a,b)&&1E3*a.api.Gc().getCurrentTime()>c&&(b=Oxa(a,b)/1E3,c=a.api.Gc().getPlayerState(),KT(a,b,c))};
Txa=function(a){a&&"web"!==a&&Sxa.includes(a)};
OT=function(a,b){g.E.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.J(function(){MT(c);NT(c)});
g.F(this,this.i)};
MT=function(a){var b=(0,g.P)();a.data.forEach(function(c){c.expire<b&&PT(a,c,!0)});
a.data=g.Ro(a.data,function(c){return!(c.expire<b)})};
PT=function(a,b,c){c&&a.l&&a.l(b.value)};
NT=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)&&(b=Math.max(b-Date.now(),100),a.i.start(b))};
QT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.l=this.i=a-1};
Uxa=function(a){return a.data[a.i]||0};
RT=function(a){g.E.call(this);this.u=a;this.i=new Map;this.l=new g.J(this.sample,250,this);g.F(this,this.l);this.start()};
ST=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.l!==a.i;)a.l=(a.l+1)%a.data.length,b.push(a.data[a.l]);a=b}return a||[]};
TT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:Uxa(c.buffer))||0};
UT=function(a){this.l=a;this.i=NaN;this.buffer=new QT(100)};
Vxa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.tc()+")":a.tc()};
VT=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)};
Wxa=function(a,b){nx(a,"version",b)};
XT=function(a){g.W.call(this,{D:"div",Ea:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",K:g.WT.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.Mt=this.Ca(g.WT.VIDEO_CONTAINER);this.Zr=new g.rl(0,0,0,0);this.Fb=null;this.ez=new g.rl(0,0,0,0);this.HC=this.uD=this.tD=NaN;this.Mx=this.LH=!1;this.OB=NaN;this.dD=!1;this.Tu=null;this.dispatchEvent=function(){};
this.JD=function(){b.element.focus()};
this.Xz=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.Bm("ytp-transparent");"0"===e.controlsType&&this.Bm("ytp-hide-controls");g.K(this.element,"ytp-exp-bottom-control-flexbox");e.Z("html5_player_bottom_linear_gradient")&&g.K(this.element,"ytp-linear-gradient-bottom-experiment");e.Z("web_player_bigger_buttons_like_mobile")&&g.K(this.element,"ytp-exp-bigger-button-like-mobile");e.Z("enable_new_paid_product_placement")&&!g.JG(e)&&g.K(this.element,"ytp-exp-ppp-update");Wxa(this.element,Xxa(a));this.OL=!1;DG(e)&&
"blazer"!==e.playerStyle&&window.matchMedia&&(this.Xz="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Tf(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Tf(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Tf(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Tf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Tf(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Tf(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Tf(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Tf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Tf(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Tf(640,360)}]);this.sF=e.useFastSizingOnWatchDefault;this.du=new g.Tf(NaN,NaN);Yxa(this);this.N(a.Wa,"onMutedAutoplayChange",this.vv)};
Yxa=function(a){function b(){a.Fb&&ZT(a);$T(a)!==a.dD&&a.resize()}
function c(h,l){a.Fr(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.ez=new g.rl(0,0,0,0);a.Zr=new g.rl(0,0,0,0)}
var f=a.app.Wa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.hf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
Zxa=function(a){var b=g.X(a.app);if(b=b?b.getVideoData():null){if(g.UH(b)||g.VH(b)||g.XH(b))return 16/9;if(BH(b)&&b.u.i)return a=b.u.videoInfos[0].video,aU(a.width,a.height)}return(a=a.Fb)?aU(a.videoWidth,a.videoHeight):16/9};
$xa=function(a,b,c,d){var e=c,f=aU(b.width,b.height);a.LH?e=c<f?Infinity:0:isNaN(a.HC)?isNaN(a.uD)||(e=a.uD):e=a.HC;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
aU=function(a,b){return 1>Math.abs(bU*b-a)||1>Math.abs(bU/a-b)?bU:a/b};
$T=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.X(a.app);if(!b||b.Ol())return!1;var c=a.app.Wa.ub();a=!g.V(c,2)||!g.S(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Za;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
ZT=function(a){var b="3"===a.app.T().controlsType&&!a.Mx&&$T(a)&&!a.app.Xu||!1;a.Fb.controls=b;a.Fb.tabIndex=b?0:-1;b?a.Fb.removeEventListener("focus",a.JD):g.S(a.app.T().experiments,"disable_focus_redirect")||a.Fb.addEventListener("focus",a.JD)};
aya=function(a){var b=a.dg(),c=1,d=!1,e=$xa(a,b,a.getVideoAspectRatio()),f=Dt();if($T(a)){var h=Zxa(a);var l=isNaN(h)||g.Ew||cU&&g.dj;Et&&!g.Wd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.rl(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.rl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.dj&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));if(f||a.OL)a.Fb.style.display="";a.dD=!0}else{l=-b.height;Et?l*=window.devicePixelRatio:g.MG&&(l-=window.screen.height);
l=new g.rl(0,l,b.width,b.height);if(f||a.OL)a.Fb.style.display="none";a.dD=!1}sl(a.ez,l)||(a.ez=l,g.YF(a.app.T())?(a.Fb.style.setProperty("width",l.width+"px","important"),a.Fb.style.setProperty("height",l.height+"px","important")):g.Pl(a.Fb,new g.Tf(l.width,l.height)),d=new g.Rf(l.left,l.top),g.Il(a.Fb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.rl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);sl(a.Zr,b)||(a.Zr=b,d=!0);g.Bl(a.Fb,"transform",1===c?"":"scaleX("+c+")");return d};
bya=function(){this.csn=g.Rx();this.clientPlaybackNonce=null;this.elements=new Set;this.u=new Set;this.i=new Set;this.l=new Set};
cya=function(a,b){a.elements.has(b);a.elements.delete(b);a.u.delete(b);a.i.delete(b);a.l.delete(b)};
dya=function(a){if(a.csn!==g.Rx())if("UNDEFINED_CSN"===a.csn)a.csn=g.Rx();else{var b=g.Rx(),c=g.Px();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.Zy(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.Ty(b,c,void 0)}};
dU=function(a,b,c,d,e){g.W.call(this,{D:"div",K:"ytp-horizonchart"});this.C=b;this.sampleCount=c;this.u=d;this.B=e;this.index=0;this.heightPx=-1;this.l=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.C+"em"};
eU=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.og("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.l=c;a.l.width=d;a.l.style.width=d+"px";a.element.appendChild(a.l)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.og("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.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.l.height=a.heightPx*
c,a.l.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.q(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
fU=function(a){var b=null;b={D:"button",Ea:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},ra:"[x]"};g.W.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",ra:"Video ID / sCPN"},{D:"span",ra:"{{video_id_and_cpn}}"}]},{D:"div",S:[{D:"div",ra:"Viewport / Frames"},{D:"span",ra:"{{dims_and_frames}}"}]},{D:"div",S:[{D:"div",ra:"Current / Optimal Res"},{D:"span",ra:"{{resolution}}"}]},{D:"div",S:[{D:"div",ra:"Volume / Normalized"},
{D:"span",ra:"{{volume}}"}]},{D:"div",S:[{D:"div",ra:"Codecs"},{D:"span",ra:"{{codecs}}"}]},{D:"div",U:{style:"{{shader_info_style}}"},S:[{D:"div",ra:"Shader Info"},{D:"span",ra:"{{shader_info}}"}]},{D:"div",U:{style:"{{color_style}}"},S:[{D:"div",ra:"Color"},{D:"span",ra:"{{color}}"}]},{D:"div",U:{style:"{{drm_style}}"},S:[{D:"div",ra:"Protected"},{D:"span",ra:"{{drm}}"}]},{D:"div",U:{style:"{{bandwidth_style}}"},S:[{D:"div",ra:"Connection Speed"},{D:"span",S:[{D:"span",ra:"{{bandwidth_chart}}"},
{D:"span",ra:"{{bandwidth_kbps}}"}]}]},{D:"div",U:{style:"{{network_activity_style}}"},S:[{D:"div",ra:"Network Activity"},{D:"span",S:[{D:"span",ra:"{{network_activity_chart}}"},{D:"span",ra:"{{network_activity_bytes}}"}]}]},{D:"div",S:[{D:"div",ra:"Buffer Health"},{D:"span",S:[{D:"span",ra:"{{buffer_health_chart}}"},{D:"span",ra:"{{buffer_health_seconds}}"}]}]},{D:"div",U:{style:"{{live_latency_style}}"},S:[{D:"div",ra:"Live Latency"},{D:"span",S:[{D:"span",ra:"{{live_latency_chart}}"},{D:"span",
ra:"{{live_latency_secs}}"}]}]},{D:"div",U:{style:"{{live_mode_style}}"},S:[{D:"div",ra:"Live Mode"},{D:"span",ra:"{{live_mode}}"}]},{D:"div",U:{style:"{{playback_categories_style}}"},S:[{D:"div",ra:"Playback Categories"},{D:"span",ra:"{{playback_categories}}"}]},{D:"div",S:[{D:"div",ra:"Mystery Text"},{D:"span",ra:"{{debug_info}}"}]},{D:"div",U:{style:"{{cotn_and_local_media_style}}"},S:[{D:"div",ra:"COTN / Local Media"},{D:"span",ra:"{{cotn_and_local_media}}"}]},{D:"div",U:{style:"{{release_style}}"},
S:[{D:"div",ra:"Player Release"},{D:"span",ra:"{{release_name}}"}]}]}]});b&&(b=this.Ca("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 dU(300,1,150,b,c);g.F(this,this.i);this.Ta("bandwidth_chart",this.i);this.u=new dU(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.F(this,this.u);this.Ta("live_latency_chart",this.u);this.l=new dU(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.F(this,this.l);this.Ta("buffer_health_chart",this.l);this.B=new dU(300,1,150,d,c);g.F(this,this.B);this.Ta("network_activity_chart",this.B);this.delay=new g.J(this.Ma,
500,this);g.F(this,this.delay);this.C=a};
eya=function(a){a=void 0===a?{}:a;var b=a.Mf,c=a.Cg,d=a.getLastSegmentNumber,e=a.Br;this.Dl=a.Dl;this.Mf=b;this.Cg=c;this.getLastSegmentNumber=d;this.Br=e};
fya=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Dl||b===c&&(a=a.Br())&&b===a.Ka?!0:!1};
gya=function(a,b,c){if(!fya(a,b))return 0;if(!a.Mf||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Br())&&b===a.Ka&&!a.pending?2:1};
hya=function(a){this.schedule=a;this.i=NaN;this.l=[];this.totalBytes=0};
gU=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.ai?!1:e.ai;var f=void 0===e.Ck?!1:e.Ck,h=e.fh,l=e.Ka;e=e.Je;this.schedule=a;this.Wt=b;this.Za=c;this.Da=null;this.Aa=this.i=NaN;this.Ua=0;this.va=this.Ia=this.l=this.B=NaN;this.La=this.ya=this.isActive=!1;this.u=0;this.ea=NaN;this.L=this.I=Infinity;this.Y=NaN;this.Ra=!1;this.J=this.V=NaN;this.C=this.Ga=void 0;this.ai=d;this.Ck=f;this.fh=h;this.Ka=l;this.Je=e;this.snapshot=CF(this.schedule)};
iya=function(a){return{rt:(a.now()-a.i).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.ea).toFixed(),pb:a.Wt.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.Aa-a.i).toFixed(),elbowBytes:a.Ua.toFixed()}};
lya=function(a){a.i=a.now();a.B=a.i;a.l=0;a.Ia=a.i;a.va=0;a.C&&(a.C=[]);a.ya=!1;a.La=!1;a.u=0;a.snapshot=CF(a.schedule);a.I=Infinity;a.L=Infinity;jya(a);kya(a,a.i);a.ea=(a.V-a.i)/1E3;a.J=NaN;a.Ga=void 0};
hU=function(a){!a.J&&a.Da&&(a.J=a.Da(),3===a.J&&(a.Ga=new hya(a.schedule)));return a.J};
nya=function(a,b,c){var d=(b-a.B)/1E3,e=c-a.l,f=hU(a);if(3===f&&e){var h=a.Ga;h.l.push({m9:e,H9:isNaN(h.i)?NaN:b-h.i,r9:b});h.i=b}a.isActive?1===f&&0<e&&(.2<d||1024>e?(a.u+=d,.2<d&&jU(a,.05,e)):jU(a,d,e),a.La=!0):iU(a,c)&&(1===f&&(f=(b-a.i)/1E3,mya(a)||a.Ck||(h=a.schedule,h.J.Lg(1,f),DF(h))),a.Aa=b,a.Ua=c,a.isActive=!0);a.Ck||Fka(a.schedule,d,e);a.B=b;a.l=c};
jU=function(a,b,c){if(!a.Ck){b=Math.max(b,.05);a=a.schedule;var d=b;a.u.Lg(void 0===b?d:b,c/d);a.B=yF()}};
lU=function(a,b,c){c=Math.round(c/1024);a.C&&a.C.push(kU(b-a.Ia,c-a.va));a.Ia=b;a.va=c};
iU=function(a,b){return b?a.fh&&1!==hU(a)?!0:2048<=b:!1};
mU=function(a){return iU(a,a.l)};
jya=function(a){a.Y=a.i+1E3*a.snapshot.delay;a.Ra=!1};
nU=function(a,b){if(a.fh&&void 0!==a.Ka&&void 0!==a.Je){var c=Math,d=c.min,e=a.I;var f=a.fh;var h=a.i;if(fya(f,a.Ka))f=b;else{var l=0;f.Mf&&(l=.2);f=h+1E3*(f.Cg+l)}a.I=d.call(c,e,f);c=Math;d=c.min;e=a.L;f=a.fh;h=a.i;l=gya(f,a.Ka,a.Je);2!==l&&(b=l?b:h+1E3*f.Cg,f.Mf&&(b+=1E3*f.Cg));a.L=d.call(c,e,b);a.I<=a.i?jya(a):(a.Y=a.I,a.Ra=!0)}};
mya=function(a){a.fh&&nU(a,a.now());return a.Ra};
kya=function(a,b){b=void 0===b?a.now():b;if(a.fh){nU(a,b);var c=a.J?a.fh?1!==hU(a):!1:a.I!==a.L;if(c){if(c=a.L,b<c){a.V=a.L;return}}else c=a.I;c=Math.max(c,a.Y)}else c=a.Y;var d=a.Wt-a.l;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=mU(a)?d+b:d+Math.max(b,c);a.V=d};
kU=function(a,b){for(var c="";4095<a;)c+=kU(4095,0),a-=4095;for(;4095<b;)c+=kU(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))};
oU=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
pU=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Lc&&(d=Math.abs(d));d/=a.playbackRate;var f=1/BF(a.schedule);var h=.9*(d-a.policy.Vg);h=Math.max(h,zF(a.schedule)+2048*f);c=h/f*a.policy.qq/(b+c);c=Math.min(c,d);a.policy.wh&&e&&(c=Math.max(c,a.policy.wh));return oya(a,c,b)};
oya=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Xp*c),Math.min(Math.min(a.policy.va,31*c),Math.ceil(b*c))))||65536};
qU=function(a){return BF(a.schedule,!a.policy.Zk,a.policy.Tp)};
rU=function(a){return qU(a)/a.playbackRate};
sU=function(a,b,c,d,e){g.Q.call(this);this.l=a;this.videoTrack=b;this.audioTrack=c;this.policy=d;this.I=e;this.seekCount=this.u=0;this.i=!1;this.C=null;this.B=this.l.isManifestless&&!this.l.Xe};
pya=function(a,b,c){var d=b.i.index,e=b.l.Ka;oD(d,e)||c&&c.Ka===e?(a.ma(),b.C=!oD(d,e),b.L=!oD(d,e)):(a.ma(),b.C=!0,b.L=!0)};
rya=function(a,b,c,d){a.ma();if(!b.i.Me())return 0!==c&&tU(b),c;var e=uU(b,c);if(!isNaN(e))return a.ma(),e;vU(b);return d&&(a=qE(d.jf(),c),!isNaN(a))?(wU(b,a+qya),c):wU(b,c)};
vya=function(a,b,c,d){if(a.i&&a.u){var e=sya(a,b,c);if(-1!==e){a.videoTrack.C=!1;a.audioTrack.C=!1;a.B=!0;g.Jg(function(){xU(a,"seekreason","reason.behindMinSq;tgt."+e);tya(a,e)});
return}}c?a.videoTrack.L=!1:a.audioTrack.L=!1;var f=a.policy.Oj||!a.B;if(0<=uU(a.videoTrack,a.u)&&0<=uU(a.audioTrack,a.u)&&f){if(a.videoTrack.C||a.audioTrack.C)a.ma(),xU(a,"iterativeSeeking","done;count."+a.seekCount,!1);a.videoTrack.C=!1;a.audioTrack.C=!1}else d&&g.Jg(function(){if(a.B||!a.policy.La)uya(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.C:a.audioTrack.C;m=!a.isDisposed()&&m;var n=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,p=!a.videoTrack.L&&!a.audioTrack.L;m&&n&&p&&(a.u>=h&&a.u<
h+l+.1?((c?a.videoTrack:a.audioTrack).C=!1,a.videoTrack.C||a.audioTrack.C||(a.ma(),xU(a,"iterativeSeeking","done;count."+a.seekCount,!1),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ma(),xU(a,"iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.u+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.u)):(a.ma(),xU(a,"iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.u+";actual."+h,!1),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.X("seekplayerrequired",h+.1,!0)))}})};
sya=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.u);return(oD(c,a.l.je)||b.Ka===a.l.je)&&d<a.l.je?(a.ma(),a.l.getMinSeekableTime()):-1};
tya=function(a,b){!a.isDisposed()&&a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.ma(),a.X("seekplayerrequired",b+.1,!0))};
uya=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.vg(),c=!c&&a.audioTrack.vg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.vg().info.Ka,-1!==b.I){var d=Math.max(b.i.index.getStartTime(b.I),c.i.index.getStartTime(c.I));a.policy.Yi&&WE(a.l)&&432E3<Math.abs(d-WE(a.l))&&ika(a.l);xU(a,"seekreason","reason.initManifestlessSync;tgt."+d);g.Jg(function(){return tya(a,d)});
a.C&&(a.C.resolve(d+.1),a.C=null)}};
xU=function(a,b,c,d){a.X("ctmp",b,c,void 0===d?!1:d)};
yU=function(){this.u=this.B=0;this.ticks={}};
zU=function(a,b,c,d,e){g.Q.call(this);this.V=a;this.policy=b;this.J=c;this.va=d;this.u=this.Y=this.i=null;this.I=!1;this.B=this.C=NaN;this.L=0;this.ea=null;this.l=e?1:0};
AU=function(a,b,c){a.policy.hc&&(b.startSecs+=isNaN(a.L)?0:a.L);a=a.V;a.ea.push(b);a.X("cuepointsadded",c)};
xya=function(a,b,c,d){wya(a.J,d,c,b);wya(a.va,d,c,b);YE(a.V,d,!0);YE(a.V,d,!1);BU(a,"sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
CU=function(a,b){if(a.i){a.u=null;a.I=!1;var c=a.i.Kd.durationSecs-(b.startTime+a.L-a.i.Kd.startSecs);0>=c||(c=new Az(a.i.Kd.startSecs-(a.policy.hc&&!isNaN(a.L)?a.L:0),c,a.i.Kd.context,a.i.Kd.identifier,"stop",a.i.Kd.i+1E3*b.duration),BU(a,"cuepointdiscontinuity","segNum."+b.Ka),a.policy.Aa?AU(a,c,b.Ka):a.Ny(c,b.Ka))}};
yya=function(a,b,c,d){(void 0===d?0:d)?(a.l=1,BU(a,"sdai","rststate_skth")):0<b&&5<=Math.abs(b-c)&&4===a.l&&(BU(a,"sdai","rststate_skt_"+b.toFixed(2)+"_ct_"+c.toFixed(2)),a.l=5)};
BU=function(a,b,c){a.X("ctmp",b,c,!1)};
DU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
zya=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Qa=a;this.va=b;this.policy=c;this.C=d;this.I=e;this.Za=f;this.u=uH;this.i=this.J=null;this.V=-1;this.Ia=!1;this.nextVideo=this.l=null;this.B=[];this.Aa={};this.videoIndex=0;this.Ra=this.ea=this.L=!1;this.ya=0;this.La=new Set;this.Ua=!1;this.Y=new Map;this.Ga=0;this.Ya=!1;this.Da=null};
Eya=function(a,b,c){EU(a,b);Aya(a,c);a.J=a.l;Bya(a);Cya(a);a.i=a.nextVideo;a.J=a.l;return Dya(a)};
Fya=function(a,b){if($A(a.u,b))return null;if("m"===b.reason&&b.isLocked())return a.ma(),EU(a,b),a.videoIndex=a.B.length-1,FU(a),GU(a),a.ea=a.ea||a.i!==a.nextVideo,a.i=a.nextVideo,new DU(a.l,a.i,b.reason);"r"===b.reason&&(a.V=-1);EU(a,b);GU(a);if("r"===b.reason&&a.nextVideo===a.i)return new DU(a.l,a.nextVideo,b.reason);a.i&&a.nextVideo&&HU(a,a.i.info)<HU(a,a.nextVideo.info)&&(b=a.u.reason,a.L=a.L||"r"===b||"u"===b||"v"===b);return null};
Gya=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,Dya(a)}else a.Ra=a.J!==b,a.J=b;return null};
IU=function(a,b,c){a.Ga+=1;if(void 0===c?0:c)a.Ya=!0;c=6E4;a.policy.Cb&&(c*=Math.pow(2,a.Ga));a.Y.set(b.info.id,(0,g.P)()+c);a.V=-1;EU(a,a.u)};
JU=function(a){if(a.Y.size){for(var b=(0,g.P)(),c=g.q(a.Y.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.Y.clear()}return!1};
Hya=function(a,b){return new DU(a.J,a.i,b||a.u.reason)};
KU=function(a){return a.u.isLocked()};
Dya=function(a){a.Ia?a.Ia=!1:a.V=(0,g.P)();a.L=!1;return new DU(a.J,a.i,a.u.reason)};
Iya=function(a){var b=!KU(a)&&-1<a.V&&8E3>(0,g.P)()-a.V,c=a.nextVideo&&3*HU(a,a.nextVideo.info)<rU(a.va);if(!b||c)FU(a),GU(a),a.ea=a.ea||a.nextVideo!==a.i};
Jya=function(a,b){var c={};b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&bE(f)&&f.video.i>a.policy.Ia,l=e<=a.policy.Ia?bE(d):$D(d);if(!f||h||l)c[e]=d}return c};
EU=function(a,b){a.u=b;var c=a.I.videoInfos;if(!KU(a)){var d=(0,g.P)();c=g.Ro(c,function(n){if(n.Ib>this.policy.Ib)return this.ma(),!1;var p=this.C.i[n.id],r=p.info.i;return this.policy.Pj&&this.La.has(r)||this.Y.get(n.id)>d?!1:4<p.l.l||4<p.L?(this.ma(),!1):p.C?!1:!0},a);
if(a.policy.Cb)a.Ya&&JU(a)&&(c=g.Ro(c,function(n){return 480>=n.video.i}));
else if(JU(a)){var e=g.Ro(c,function(n){n=n.tc();return"140"===n||"134"===n||"243"===n});
e.length&&(c=e)}}c.length||(c=a.I.videoInfos);e=g.Ro(c,b.B,b);if(a.policy.Rj||a.policy.Fi){var f="m"===b.reason||"s"===b.reason;a.policy.ck&&cU&&g.dj&&(!f||1080>b.i)&&(e=e.filter(function(n){return!!n&&!!n.video&&!!n.l}));
if(!zE()&&0<e.length){var h=(b=e[0])&&b.video&&b.video.i;if(h){b=e.filter(function(n){return!!n&&!!n.video&&n.video.i===h});
var l=Jya(a,b)[h].i;e=e.filter(function(n){return!!n&&!!n.video&&n.i===l})}}var m=Jya(a,e);
e=e.filter(function(n){return!!n&&!!n.video&&n.i===m[n.video.i].i})}e.length||(e=[c[0]]);
e.sort(function(n,p){return HU(a,n)-HU(a,p)});
for(c=1;c<e.length;c++)b=e[c-1],f=e[c],b.video.width>f.video.width?(a.ma(),g.nb(e,c),c--):HU(a,b)*a.policy.l>HU(a,f)&&(a.ma(),g.nb(e,c-1),c--);c=e[e.length-1];a.Ua=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.ma();a.B=e;Fsa(a.policy,c)};
Aya=function(a,b){b?a.l=a.C.i[b]:(b=(b=g.fb(a.I.i,function(c){return!!c.Nc&&c.Nc.isDefault}))||a.I.i[0],a.l=a.C.i[b.id]);
FU(a)};
Kya=function(a,b){for(var c=0;c+1<a.B.length&&"tiny"===a.B[c].ib().quality;)c++;var d=rU(a.va)/a.policy.l;return HU(a,b.info)+HU(a,a.B[c])>d};
FU=function(a){if(!a.l||!a.policy.i)if(!a.l||!a.l.info.Nc)if(a.l=a.C.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Ga){if(b=!0,a.policy.wp){var c=eb(a.I.i,function(d){return"250"===d.tc()});
0<=c&&(a.l=a.C.i[a.I.i[c].id],b=Kya(a,a.l))}}else b=a.u.isLocked()?240>a.u.i:Kya(a,a.l);b&&(a.l=a.C.i[g.db(a.I.i).id])}};
GU=function(a){a.policy.Rg&&(a.Da=a.Da||new g.J(function(){a.policy.Rg&&a.i&&!JU(a)&&1===Math.floor(10*Math.random())?(IU(a,a.i),a.L=!0):a.Da.start()},6E4),g.Fq(a.Da));
if(!a.nextVideo||!a.policy.i)if(KU(a))a.nextVideo=360>=a.u.i?a.C.i[a.B[0].id]:a.C.i[g.db(a.B).id],a.ma();else{for(var b=Math.min(a.videoIndex,a.B.length-1),c=rU(a.va),d=HU(a,a.l.info),e=c/a.policy.u-d;0<b&&!(HU(a,a.B[b])<=e);b--);for(c=c/a.policy.l-d;b<a.B.length-1&&!(HU(a,a.B[b+1])>=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.videoIndex!==b&&a.ma();a.videoIndex=b}};
Bya=function(a){var b=a.policy.u,c=rU(a.va)/b-HU(a,a.l.info);b=g.gb(a.B,function(d){return HU(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.i[a.B[b].id];a.ma()};
Cya=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if(b.includes(LC(d)))return d;for(var f=0;f<e.length;f++){var h=a.C.i[e[f].id],l=LC(h);if(b.includes(l))return d=d.info.tc(),e=h.info.tc(),a.Qa.Ha("ombifa","f."+d+";t."+e),a.ma(),a.Ia=!0,h}a.Qa.Ha("ombifa","mismatch."+b.join("."));return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.l=c(a.l,a.I.i)}};
Lya=function(a,b){a.policy.Ia=dF(b,{},a.I);EU(a,a.u);Iya(a);a.L=a.nextVideo!==a.i};
HU=function(a,b){if(!a.Aa[b.id]){var c=a.C.i[b.id].index.getLocalMaxByterate(a.ya,15);c=b.Et&&a.i&&a.i.index.isLoaded()?c||b.Et:c||b.Ib;a.Aa[b.id]=c}c=a.Aa[b.id];a.policy.Tb&&b.video&&b.video.i>a.policy.Tb&&(c*=1.5);return c};
Mya=function(a,b){a=Qb(a.C.i,function(c){return c.info.tc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
Nya=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(Rja(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.B.length;c++){var d=a.B[c].tc();b.push(d)}b.reverse()}return b};
Oya=function(a,b,c){this.policy=a;this.i=b;this.J=c;this.u=this.l=0;this.Pe=null;this.C=[];this.indexRange=this.initRange=null;this.chunkSize=a.ut;this.B=new Uint8Array(this.chunkSize);this.I=new hT};
Pya=function(a){var b=LU(a);b=bH(a.policy.i,a.i.info,MU(a),b);NU(a,b)};
OU=function(a){return!!a.Pe&&a.Pe.u};
Rya=function(a,b){if(!OU(a)){if(1===b.info.type)a.initRange=OC(0,b.i.totalLength);else if(2===b.info.type){if(!a.Pe||1!==a.Pe.type)return;a.indexRange=OC(a.u*a.chunkSize+a.l,b.i.totalLength)}else if(3===b.info.type){if(3===a.Pe.type&&!VC(a.Pe,b.info)){a.C=[];var c=a.Pe;if(b.info.Ka!==c.Ka+(c.Rd?1:0)||0!==b.info.zb)return}if(b.info.Rd){c=g.q(a.C);for(var d=c.next();!d.done;d=c.next())Qya(a,d.value);a.C=[]}else{a.C.push(b);a.Pe=b.info;return}}a.Pe=b.info;Qya(a,b);OU(a)&&(b=new Uint8Array(a.B.buffer,
0,a.l),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Et)},b=bH(a.policy.i,a.Pe.i.info,MU(a),c,a.u,b),NU(a,b,!0))}};
Qya=function(a,b){for(var c=0,d=BD(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.Pe&&OU(a)&&c===d.length)break;e=LU(a);e=bH(a.policy.i,a.i.info,MU(a),e,a.u,a.B);NU(a,e);e=LU(a);a.J(MU(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate);a.B=new Uint8Array(a.chunkSize);a.l=0;a.u+=1}}};
LU=function(a){return{downloadedEndTime:Math.round(a.Pe?a.Pe.B:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Et)}};
MU=function(a){var b,c,d={lmt:a.i.info.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?"+is(d);d={itag:+a.i.info.tc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Ib,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:PC(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:PC(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};
NU=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)})};
Sya=function(a){a=g.hC(a,1886614376);g.Cb(a,function(b){return!b.mI});
return g.Qe(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Tya=function(a){var b=Bm(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Cb(a,function(e){c.set(e,d);d+=e.length});
return c};
Uya=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d};
PU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.Oe=!1};
Vya=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=b.subarray(c+f,c+f+l);b:{for(var n=new Er,p=new Fd(m);Gd(p);){var r;switch(p.C){case 18:f=r=Kd(p);Ee(n,2).push(f);break;case 34:r=Kd(p);He(n,4,r);break;case 56:r=p.Jc();He(n,7,r);break;case 72:r=p.Jc();He(n,9,r);break;case 80:r=p.Jc();He(n,
10,r);break;case 88:r=Dd(p.i);He(n,11,r);break;case 96:r=p.Jc();He(n,12,r);break;case 106:f=r=Kd(p);Ee(n,13).push(f);break;case 114:r=new Fr;f=p;var t=r,u=dha,x=f.i.u,y=Ed(f.i),B=f.i.i+y;f.i.u=B;u(t,f);f.i.i=B;f.i.u=x;f=n;t=r;u=Fr;var G=Le(f,u,14),H=t?t:new u,I=Ee(f,14);G.push(H);I.push(Me(H));break;case 122:r=p.bf();He(n,15,r);break;case 130:r=p.bf();He(n,16,r);break;case 136:r=p.Jc();He(n,17,r);break;case 8:r=Dd(p.i);He(n,1,r);break;case 26:r=p.bf();He(n,3,r);break;case 42:r=p.bf();He(n,5,r);break;
case 50:r=p.bf();He(n,6,r);break;case 66:r=Kd(p);He(n,8,r);break;default:if(!ve(p)){var L=n;break b}}}L=n}f=L;if(null!==f){var T=f;break a}}catch(N){}}c+=e}T=null}catch(N){T=null}}if(null!=T)for(b=Ee(T,7),null==b||a.Oe||(a.cryptoPeriodIndex=b),b=Ee(T,10),null!=b&&0<b&&!a.Oe&&(a.i=b),T=Ee(T,2),T=!T.length||T[0]instanceof Uint8Array?T:g.Qe(T,we),T=g.q(T),b=T.next();!b.done;b=T.next())a.l.push(g.$d(b.value,4))};
QU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.cE?!1:d.cE;var e=void 0===d.videoDuration?0:d.videoDuration;d=void 0===d.Dv?void 0:d.Dv;this.videoId=a;this.status=b;this.cE=c;this.videoDuration=e;this.Dv=d};
Wya=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.l=c;this.bytesDownloaded=d;this.i=e};
RU=function(a){this.i=a;this.offset=0};
Xya=function(a,b){b=void 0===b?!1:b;var c=a.xg();if(1===c){b=-1;for(c=0;7>c;c++){var d=a.xg();-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+a.xg(),d*=128;return b?c:c-d};
Yya=function(a,b,c){var d=this;this.Qa=a;this.policy=b;this.C=c;this.l=[];this.i=null;this.Y=-1;this.L=0;this.ya=NaN;this.V=0;this.u=NaN;this.Aa=0;this.Da=-1;this.B=this.ea=this.Ra=this.Ga=this.Ia=this.La=this.I=this.J=this.va=null;this.Ua=!1;this.timestampOffset=0;if(this.policy.i){var e=this.C,f=this.policy.i;this.B=new Oya(this.policy,e,function(h,l,m){SU(a,new QU(d.policy.i,2,{Dv:new Wya(f,h,e.info,l,m)}))});
this.B.I.promise.then(function(h){d.B=null;1===h&&SU(a,new QU(d.policy.i,h))},function(){d.B=null;
SU(a,new QU(d.policy.i,4))});
Pya(this.B)}};
Zya=function(a){return a.l.length?a.l[0]:null};
TU=function(a){return a.l.length?a.l[a.l.length-1]:null};
cza=function(a,b,c){if(a.I){var d=a.I.zb+a.I.l;if(0<c.info.zb)if(c.info.Ka===a.I.Ka&&c.info.zb<d){if(c.info.zb+c.info.l<=d)return;c=ID(c,d-c.info.zb)[1]}else if(0<=c.info.Ka&&0<=a.I.Ka&&!VC(a.I,c.info))throw new g.Pv("improper_continuation",RC(a.I),RC(c.info));if(a.policy.Ui){d=a.I;var e=c.info;d=d.Ka!==e.Ka&&e.Ka!==d.Ka+1||d.type!==e.type||Qf(d.C,e.C)&&d.Ka===e.Ka?!1:WC(d,e)}else d=WC(a.I,c.info);d||(a.u=NaN,a.Aa=0,a.Da=-1)}else if(0<c.info.zb)throw new g.Pv("continuation_of_null",RC(c.info));a.I=
c.info;a.C=c.info.i;0===c.info.zb?UU(a):!c.info.i.Ng()&&a.J&&ZC(c.info,a.J);if(a.i){d=JD(a.i,c);if(!d)throw new g.Pv("failed_to_merge",RC(a.i.info),RC(c.info));a.i=d}else a.i=c;a:{c=g.KD(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Rd)break a;6===a.i.info.type?$ya(a,b,a.i):VU(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=ED(f,l),n=ED(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 RU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=Xya(p,!0),t=Xya(p,!1);var u=r;var x=t}catch(B){x=u=-1}p=u;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+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.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+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=aza(a,a.Y),d.u&&!d.info.i.Ng()&&bza(a,d),$ya(a,b,d),WU(a,d),
a.Y=0):a.L&&(d=aza(a,0>a.L?Infinity:a.L),a.L-=d.i.totalLength,WU(a,d))}}a.i&&a.i.info.Rd&&(WU(a,a.i),a.i=null)};
VU=function(a,b){!b.info.i.Ng()&&0===b.info.zb&&(g.KD(b.info.i.info)||b.info.i.info.Oe())&&QD(b);if(1===b.info.type)try{bza(a,b),dza(a,b)}catch(d){g.by(d);var c=XC(b.info);c.hms="1";XU(a.Qa,!0,"fmt.unparseable",c||{})}b.info.i.MC(b);a.B&&Rya(a.B,b)};
eza=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};
YU=function(a){return g.Qe(a.l,function(b){return b.info})};
aza=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=ID(c,b);a.i=c[1];return c[0]};
bza=function(a,b){var c=GD(b);if(!a.policy.Fp&&aE(b.info.i.info)&&"bt2020"===b.info.i.info.ib().primaries){var d=new jC(c);lC(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;$D(d)&&!aE(d)&&(d=GD(b),rC(new jC(d)),qC([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.u&&(g.KD(d.info)?d.u=pja(c):d.info.Oe()&&(d.u=rja(c))));b.info.i.info.Oe()&&
b.info.isVideo()&&(c=GD(b),rC(new jC(c)),qC([408125543,374648427,174,224],30320,c)&&qC([408125543,374648427,174,224],21432,c));if(a.policy.Jh&&b.info.i.info.Oe()){c=GD(b);var e=new jC(c);if(lC(e,[408125543,374648427,174,29637])){d=oC(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.xn()&&g.KD(b.info.i.info)){d=GD(b);c=g.WB(d,0,1701606260);f=g.WB(d,0,1836476516);if(c&&f){c.skip(2);var h=c.Mk(),l=c.Jc();d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(c.gs()),
e.push(c.gs()),m.push(c.Mk()),n.push(c.Mk());else for(h=0;h<l;++h)d.push(c.Ze()),e.push(c.Ze()),m.push(c.Mk()),n.push(c.Mk());c=g.YB(f);c=new oja(e[0]/c,d[0]/c)}else c=null;if(c){if(g.KD(b.info.i.info))for(d=GD(b),e=g.WB(d,0,1701082227);e;)e.markAsSkip(),e=g.WB(d,e.offset+e.size,1701082227);a.Ua=!0;b.info.i.I=c}}b.info.i.Ng()||b.info.i.i||b.info.i.indexRange||(g.KD(b.info.i.info)?(a=GD(b),(c=$B(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),
a=d):a=null):a=sja(new jC(GD(b))),a&&(b.info.i.i=a))};
$ya=function(a,b,c){if(c.info.i.Ng()){if(a.Ua&&fza(c)&&(b=GD(c),b=g.WB(b,0,1953658222))){b.skip(1);var d=b.xg()<<16|b.Mk(),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=b.Jc();2>m||(e&&b.skip(4),f&&b.skip(4),e=b.Jc(),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.setUint32(b.Zb,e))}}if(b=a.va&&!!a.va.C.I)if(b=c.info.isVideo())b=PD(c),h=a.va,ZU?(l=1/b,b=$U(a,b)>=$U(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&fza(c)&&(b=a.va,ZU?(l=PD(c),h=1/l,l=$U(a,l),b=$U(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,XB(GD(c),b))}else{h=!1;a.J||(QD(c),c.l&&(a.J=c.l,h=!0,ZC(c.info,c.l),l=c.info.i.info,f=GD(c),g.KD(l)?gC(f,1701671783):l.Oe()&&qC([408125543],307544935,f)));if(f=l=OD(c))f=c.info.i.info.Oe()&&160===DD(c.i,0);if(f)a.V+=l,a.u=NaN;else{if(a.policy.oo){var n;e=a.Qa;f=LD(c)/1;isNaN(e.timestampOffset)&&gza(e,f-Math.min(f,e.policy.Ce));e=n=f-e.timestampOffset;if(0<=a.u&&6!==c.info.type){f=n-a.u;var p=f-a.Aa;d=c.info.Ka;var r=a.La?a.La.Ka:-1,t=a.Ga?a.Ga:-1,u=a.Ia?a.Ia:
-1;m=a.policy.Be&&f>a.policy.Be;var x=a.policy.Xd&&p>a.policy.Xd;1E-4<Math.abs(p)&&(n={audio:""+ +a.xn(),sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},XU(a.Qa,!1,"qoe.avsync",n),a.Da=d);n=0;a.policy.xq&&(m||x||(e=a.u),a.policy.yq&&a.va&&!a.xn()&&g.KD(c.info.i.info)&&(x=a.va,m=x.Da,x=x.Aa,p=.02<Math.abs(x-f),(d===m||d>m&&d>a.Da)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),XB(GD(c),
d),d=OD(c),n=l-d,l=d)));a.Aa=f+n}}else isNaN(a.u)?e=c.info.startTime:e=a.u;MD(c,e)?(isNaN(a.ya)&&(a.ya=e),a.V+=l,a.u=e+l):(l=XC(c.info),l.smst="1",XU(a.Qa,!0,"fmt.unparseable",l||{}))}a.La=c.info;a.Ia=OD(c);c.B&&(a.Ga=c.B);if(h&&a.J){h=hza(a,!0);$C(c.info,h);a.i&&$C(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())$C(l.value,h);(c.info.Rd||a.i&&a.i.info.Rd)&&6!==c.info.type||(a.ea=h,b=a.Qa,b.i.isManifestless&&iza(b,h,!!a.C.info.video),a.policy.Aa||jza(a))}}dza(a,c);a.timestampOffset&&
ND(c,a.timestampOffset)};
WU=function(a,b){if(b.info.Rd){a.Ra=b.info;if(a.J){var c=hza(a,!1);a.Qa.ND(a.C,c);a.ea||a.policy.Aa||jza(a);a.ea=null}UU(a)}a.B&&Rya(a.B,b);if(c=TU(a))if(c=JD(c,b,a.policy.Nj)){a.l.pop();a.l.push(c);return}a.l.push(b)};
UU=function(a){a.i=null;a.Y=-1;a.L=0;a.J=null;a.ya=NaN;a.V=0;a.ea=null};
dza=function(a,b){if(a.C.info.Yd){if(b.info.i.info.Oe()){var c=new jC(GD(b));if(lC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=oC(c,!0);c=16!==d?null:vC(c,d)}else c=null;d="webm"}else b.info.L=Sya(GD(b)),c=Tya(b.info.L),d="cenc";c&&c.length&&(c=new PU(c,d),c.Oe=b.info.i.info.Oe(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.Xi&&b.l&&b.l.u&&(c.i=b.l.u),a.Qa.Np(c))}};
jza=function(a){var b=a.J,c=SB(b);c&&(c.startSecs+=a.ya,a.Qa.Ny(a.C,c,b.i))};
hza=function(a,b){var c,d=a.J;if(c=SB(d))c.startSecs+=a.ya;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 Uya(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new IB(d.i,a.ya,b?d.Oi:a.V,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
fza=function(a){return a.info.i.Ng()&&a.info.Ka===a.info.i.index.getLastSegmentNumber()};
$U=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.C.I&&b&&(b+=a.C.I.i);return b+a.getDuration()};
kza=function(a,b){0>b||(a.l.forEach(function(c){ND(c,b)}),a.timestampOffset=b)};
aV=function(a,b){this.info=a;this.callback=b;this.state=1;this.L=!1;this.B=0;this.C=!1;this.i=null};
lza=function(a){return g.Am(a.info.i,function(b){return 3===b.type})};
bV=function(a,b){var c=a.state;a.state=b;a.DA();a.callback&&a.callback(a,c)};
cV=function(a,b){b&&a.state<b?bV(a,b):a.callback&&a.callback(a,a.state)};
mza=function(a){a.i&&a.i.B?(a=a.i.B,a=new SC(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.Ka,a.startTime+a.duration,0,a.zb+a.l,0,!1)):(a=a.info.i[0],a=new SC(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.Ka,a.startTime,0,a.zb,0,!1));return a};
nza=function(a,b){this.i=a;this.l=0;this.u=null;this.Md=[];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.Am(this.i,function(c){return!!c.range})};
oza=function(a,b,c){a.u&&(wD(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.q(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.l<=a.l)f+=m.l;else{if(TC(m)&&!c&&a.l+b.totalLength-h<f+m.l){a.u=b.split(h).oq;break}var n=3===m.type||4===m.type,p=a.l-f,r=a,t=h,u=b,x=m.i.Vs()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,B=u.totalLength-t;m.range&&(B=Math.min(m.l-p,B));y=m.range?m.zb+p+B===m.range.length:y;p=new SC(m.type,m.i,m.range,"reslice"+m.I,m.Ka,m.startTime,m.duration,m.zb+p,B,y&&m.u,y);
y=B;t=u.split(t).oq.split(y).Lx;r.Md.push(new FD(p,t,x));r=B;a.l+=r;h+=r;f+=m.l;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
pza=function(a){if(!a.Md.length)return[];var b=a.Md;a.Md=[];a.B=g.db(b).info;return b};
qza=function(a){return a.length-a.l+a.Md.reduce(function(b,c){return b+c.i.totalLength},0)};
dV=function(a,b,c,d){aV.call(this,b,d);var e=this;this.l=a;this.u=c;this.hd=function(){e.isDisposed()||(e.u.gg(e.l)&&cV(e,2),e.u.mf(e.l)&&(rza(e.u,e.l)?bV(e,4):bV(e,5)))};
this.i=new nza(this.info.i,this.info.range.length);this.u.Ae[this.l].hd=this.hd;g.Jg(this.hd)};
sza=function(a){for(;a.u.gg(a.l);){var b=a.i,c=a.u.Ki(a.l),d=a.u.Ae[a.l];oza(b,c,d.mf&&!d.Md.totalLength&&rza(a.u,a.l))}};
eV=function(a,b,c){this.Qa=a;this.policy=b;this.i=c;this.u=[];this.l=this.Qb=null;this.ea=this.Y=0;this.I=-1;this.L=!1;this.V=-1;this.B=new Yya(a,b,c);this.Ib=c.info.Ib;this.J=c.Ou();this.isManifestless=c.Ou();this.C=this.J};
fV=function(a,b){b&&ZU&&kza(a.B,b.DC());a.Qb=b};
gV=function(a){return a.Qb&&a.Qb.xx()};
hV=function(a,b){a.u.push(b);a.l=g.db(b.info.i)};
iV=function(a){for(;a.u.length&&4===a.u[0].state;){var b=a.u.shift();tza(a,b);a.Y=b.BI()}a.u.length&&(b=a.u[0],b.Yr()&&(!b.info.ai()||b instanceof dV)&&tza(a,b))};
tza=function(a,b){if(b.Yr()){var c=b.EA();c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.ea&&b instanceof dV&&a.Qa.Ha("omblss","s."+RC(d.info)),uza(a,b,d)}};
uza=function(a,b,c){switch(c.info.type){case 1:case 2:VU(a.B,c);break;case 4:var d=c.info.i.SF(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.Ka===c.Ka&&e.zb===c.zb&&e.l===c.l&&(a.l=g.db(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())uza(a,b,c.value);break;case 3:cza(a.B,b,c);break;case 6:cza(a.B,b,c),a.l=c.info}};
uU=function(a,b,c){c=void 0===c?!1:c;if(a.Qb){var d=a.Qb.jf(),e=qE(d,b),f=NaN,h=gV(a);h&&(f=qE(d,h.i.index.getStartTime(h.Ka)));if(e===f&&a.l&&a.l.l&&vza(jV(a),0))return b}a=wza(a,b,c);return 0<=a?a:NaN};
wU=function(a,b){a.i.Me();var c=wza(a,b);if(0<=c)return c;c=a.B;c.B?(c=c.B,c=c.Pe&&3===c.Pe.type?c.Pe.startTime:0):c=Infinity;b=Math.min(b,c);a.l=a.i.Ym(b).i[0];kV(a)&&a.Qb&&a.Qb.abort();a.ea=0;return a.l.startTime};
xza=function(a){a.J=!0;a.C=!0;a.I=-1;wU(a,Infinity)};
lV=function(a){var b=0;g.Cb(a.u,function(c){var d=b;c=c.i&&c.i.length?qza(c.i):eD(c.info);b=d+c},a);
return b+=eza(a.B)};
mV=function(a,b){if(!a.Qb)return 0;var c=gV(a);if(c&&c.u)return c.B;a=a.Qb.jf(!0);return sE(a,b)};
vU=function(a){tU(a);a=a.B;a.l=[];UU(a)};
wya=function(a,b,c,d){tU(a);for(var e=a.B,f=!1,h=e.l.length-1;0<=h;h--){var l=e.l[h];l.info.Ka>=b&&(e.l.pop(),e.u-=OD(l),f=!0)}f&&(e.I=0<e.l.length?e.l[e.l.length-1].info:null);d>c?wU(a,d):a.l=a.i.xm(b-1,!1).i[0]};
pV=function(a,b){var c;for(c=0;c<a.u.length&&b!==a.u[c];c++);if(c===a.u.length)nV(a,b);else{for(;c<a.u.length;)nV(a,a.u.pop());var d=oV(a);d&&d.i.Ng()&&un(b.info.i,function(e){return YC(e,d)})?a.l=d:UC(b.info.i[0])?a.l=mza(b):a.l=null}};
kV=function(a){var b;!(b=!a.policy.Lj&&"f"===a.i.info.i)&&(b=a.policy.i)&&(b=a.B,b=!!b.B&&OU(b.B));if(b)return!0;b=gV(a);if(!b)return!1;var c=b.u&&b.Rd;return a.isManifestless&&0<a.V?c||b.Ka>=a.V:c};
yza=function(a){var b;return kV(a)||!(null===(b=TU(a.B))||void 0===b||!b.info.u)};
jV=function(a){var b=[],c=gV(a);c&&b.push(c);b=g.qb(b,YU(a.B));g.Cb(a.u,function(d){g.Cb(d.info.i,function(e){d.L&&(b=g.Ro(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.zb>=e.range.start+e.zb&&f.range.start+f.zb+f.l<=e.range.start+e.zb+e.l:f.Ka===e.Ka&&f.zb>=e.zb&&(f.zb+f.l<=e.zb+e.l||e.Rd))}));
(UC(e)||4===e.type)&&b.push(e)})});
a.l&&!yja(a.l,g.db(b),a.l.i.Ng())&&b.push(a.l);return b};
vza=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!WC(a[b-1],a[b]))return!1;return!0};
wza=function(a,b,c){c=void 0===c?!1:c;if(!a.l||!a.l.l)return NaN;a=jV(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:vza(a,c?b:0)?a[b].startTime:NaN};
qV=function(a){return!(!a.l||a.l.i===a.i)};
rV=function(a){return qV(a)&&a.i.Me()&&a.l.i.info.Ib<a.i.info.Ib};
zza=function(a,b,c){return(a=oV(a))&&!a.u?a.B>b&&a.B<b+c:!1};
oV=function(a){var b=TU(a.B);return b?b.info:gV(a)};
tU=function(a){g.Cb(a.u,function(b){nV(this,b)},a);
a.u=[];a.l=null};
nV=function(a,b){var c=b.info.i[0].i.Ng();b.L&&!c&&(a=a.B,a.ma(),a.ea&&!a.policy.Ig&&(c=a.Qa,c.i.isManifestless&&YE(c.i,a.ea.Ka,!!a.C.info.video)),a.ea=null,a.J=null,a.I=a.Ra,a.u-=a.V,UU(a));b.dispose()};
Aza=function(a){return!!a.l&&-1!==a.l.Ka&&a.l.Ka<a.i.index.getFirstSegmentNumber()};
Bza=function(a){var b=a.l;b&&-1===b.Ka&&(a=TU(a.B))&&UC(a.info)&&(a=a.info.Ka,b.I="updateLastSliceRequested",b.Ka=a)};
Cza=function(a){return un(a.u,function(b){return b.C})};
sV=function(a,b,c,d){this.target=a;this.trigger=b;this.l=c;this.u=d;this.i=0};
Eza=function(a,b){var c=this;this.i=a;this.u=b;this.loaded=this.status=0;this.error="";a=NC(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.l=new uD;Dza(this).then(function(){c.u.zv()},function(d){c.error=""+d||"unknown_err";
c.u.zv()})};
Dza=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u,x,y,B,G;return g.z(c,function(H){if(1==H.i){d.status=200;e=d.i.get("docid");f=pd(d.i.get("fmtid")||"");h=d.i.get("lmt")||"0";l=+(d.i.get("csz")||0);if(!e||!f||!l)throw Error("Invalid local URL");m=d.range;n=Math.floor(m.start/l);p=Math.floor(m.end/l);r=n}if(5!=H.i)return r<=p?g.w(H,Lla(e,f,h,r),5):H.wb(0);t=H.l;if(void 0===t)throw Error("invariant: data is undefined");u=r*l;x=(r+1)*l;y=Math.max(0,m.start-u);B=Math.min(m.end+
1,x)-(y+u);G=new Uint8Array(t.buffer,y,B);d.l.append(G);d.loaded+=B;d.loaded<m.length&&d.u.Ty((0,g.P)(),d.loaded);r++;return H.wb(2)})})};
tV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.C=c;this.ya=d;this.status=0;this.response=void 0;this.va=!1;this.l=0;this.Y=NaN;this.V=this.I=this.ea=!1;this.errorMessage="";this.Da=function(f){e.status=f.status;if(f.ok&&f.body)e.status=e.status||242,e.u=f.body.getReader(),e.isDisposed()?e.u.cancel().catch(function(){}):(e.L=f.headers,e.C.UD(),Fza(e));
else e.onDone()};
this.Aa=function(f){var h=(0,g.P)();if(!e.isDisposed()){var l=f.value?f.value:void 0;e.J&&(e.i.append(e.J),e.J=void 0);f.done?(e.u=void 0,e.onDone()):(e.l+=l.length,Gza(e)?e.i.append(l):e.J=l,e.C.Ty(h,e.l),Fza(e))}};
this.onError=function(f){e.ma();e.errorMessage=String(f);e.I=!0;e.onDone()};
this.i=new uD;this.id=Hza++;this.B=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
Fza=function(a){a.u.read().then(a.Aa,a.onError).then(void 0,Jv)};
Gza=function(a){var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.i&&a.policy.Mf&&XA(a)&&b};
uV=function(a,b,c){var d=this;c=void 0===c?{}:c;this.u=b;this.l=this.status=0;this.isDisposed=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.q(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===d.xhr.readyState&&d.u.UD()};
a=es(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",es(function(f){d.hd(f)}),!1)};
xV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Av?[]:h.Av;var l=void 0===h.Yv?!1:h.Yv,m=void 0===h.Mo?0:h.Mo;h=void 0===h.poToken?"":h.poToken;aV.call(this,b,e);var n=this;this.policy=a;this.timing=c;this.lastError=null;this.ea=this.u=0;this.ya=!1;this.J=this.I=null;this.timing.Da=function(){var p;if(Iza(n)){if(p=n.policy.Xj&&!(!window.performance||!window.performance.now)&&n.xhr.qn()&&n.xhr.Bs())p=n.xhr,p=p.policy.Mf&&XA(p);p=p?n.info.i[0].i.info.video?3:4:2}else p=1;return p};
this.Y=d;this.Yv=l;this.requestNumber=++Jza;this.l=g.dD(this.info,this.policy,this.Y);this.l.set("rn",this.requestNumber.toString());this.l.set("rbuf",(1E3*m).toFixed().toString());this.Yv&&this.l.set("smb","1");this.policy.Ij&&h&&this.l.set("pot",h);this.Av=f||null;this.C=Kza(this);this.va=1*this.policy.Ec;this.V=new g.J(this.tV,this.va,this);this.info.l.C=(0,g.P)();wja(vV(this));lya(this.timing);try{this.xhr=Lza(this),this.V.start(),this.ma("Sent, itag="+this.l.get("itag")+(" seg="+this.info.i[0].Ka)+
(" range="+this.l.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.db(this.info.i).B))+(" rtp="+(this.timing.V-Date.now()).toFixed(0)))}catch(p){g.cy(p),this.lastError="net.ssl",g.Jg(function(){wV(n)})}};
Kza=function(a){if(!(cD(a.info)&&a.info.ai()&&a.policy.Jg&&a.Av)||2<=a.info.l.l||Mza()||!Nza())return!1;var b=a.l.get("aitags");if(!b)return!1;b=pd(b).split(",");for(var c=[],d=g.q(a.Av),e=d.next();!e.done;e=d.next())e=e.value,g.jb(b,e)&&c.push(e);if(!c.length)return!1;a.l.set("altitags",od(c.join(",")));return!0};
vV=function(a){return FC(a.Y,BB(a.l.Ah))};
Sza=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.lz())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(Oza(a)){var d=b.vg();2048>=d.totalLength&&(c=BD(d),c=NB(c),Hz(c)?a.ma():c="")}if(c)return b=vV(a),(0,g.P)(),b.started=0,b.timedOut=0,b.i=0,a.info.lj(a.l,c),3;c=b.pp();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.iE())return a.lastError="net.closed",5;Pza(a,!0);if(!d&&a.i&&(d=a.i.Md,d.length&&!HD(d[0])))return a.lastError="net.closed",
5;var e=lza(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=lza(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.ya=!0,a.policy.Ep&&(e=b);b=a.timing;d=(0,g.P)();e=e?Number(e):0;if(!b.ya){b.ya=!0;if(!b.Ck){lU(b,d,c);nya(b,d,c);var f=hU(b);if(2===f&&e)jU(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.ea.i||!b.schedule.ea.i)&&!b.La&&mU(b)&&jU(b,e,c),mU(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.Lg(1,b.u/c),DF(e));c=b.schedule;d=(d-b.i)/1E3||.05;e=b.ea;f=b.ai;c.I.Lg(d,b.l/d);c.B=yF();f||
c.l.Lg(1,d-e)}b.deactivate()}b=vV(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;a.info.l.l=0;(0,g.P)()<Qza+3E5||!a.l||CB(a.l.Ah)||!(b=BB(a.l.Ah))||0>b.indexOf("googlevideo.com")||(Rza({primary:b}),Qza=(0,g.P)());b=a.timing;a.ma("Succeeded, rtpd="+(1E3*b.ea+b.i-Date.now()).toFixed(0));return 4};
wV=function(a){var b;a.ma("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ka)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.Ck){lU(c,d,1024*c.va);var e=(d-c.i)/1E3;if(2!==hU(c))if(mU(c)){c.u+=(d-c.B)/1E3;var f=c.schedule,h=c.l;h=Math.max(h,2048);f.i.Lg(1,c.u/h);DF(f)}else mya(c)||c.Ck||(f=c.schedule,f.J.Lg(1,e),DF(f)),c.Aa=d;f=c.schedule;h=c.ea;var l=c.ai;f.I.Lg(e,c.l/e);f.B=yF();l||f.l.Lg(1,
e-h);Fka(c.schedule,(d-c.B)/1E3,0)}}else(0,g.P)();"net.nocontent"!==a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError?(c=vV(a),c.timedOut+=1):(c=vV(a),c.i+=1),a.timing.l||a.info.l.l++);bV(a,5)};
Tza=function(a,b){b&&(b=vV(a),b.l+=1);yV(a);a.lastError="net.timeout";wV(a)};
yV=function(a){a.ma();a.xhr&&a.xhr.abort();a.timing.deactivate()};
Oza=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.vx();return(!a.xhr.Bs()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)};
Lza=function(a){if(CB(a.l.Ah))return new Eza(a.l,a);var b=g.CC(a.l);return a.policy.Da&&(a.policy.wq&&!isNaN(a.info.Je)&&a.info.Je>a.policy.jl||a.C?0:WA())?new tV(b,a.policy.B,a):new uV(b,a)};
Pza=function(a,b){if(b||a.xhr.qn()&&a.xhr.gg()&&!Oza(a)&&!a.C){if(!a.i){if(a.xhr.Bs())a.info.range&&(c=a.info.range.length);else var c=a.xhr.pp();a.i=new nza(a.info.i,c)}for(;a.xhr.gg();)oza(a.i,a.xhr.Ki(),b&&!a.xhr.gg())}};
Iza=function(a){if(!a.policy.B.Mf||!isNaN(a.info.Je)&&0<a.info.Je)return!1;if(!a.xhr.qn())return a.ma(),!0;if(!XA(a.xhr))return!1;if(isNaN(a.info.Je)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.ma();else if(Number(b)>a.info.i[0].Ka)return!1}return!0};
zV=function(a,b,c,d,e){this.Qa=a;this.policy=b;this.schedule=c;this.L=d;this.ea=e;this.Y=NaN;this.l=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1;this.V=NaN};
Uza=function(a,b,c,d,e){return b.Za&&b.Ra&&3===vB(b)?new zV(a,b,c,d,e):null};
Vza=function(a,b){if(a.policy.qo){var c=b.info.Ib,d=BF(a.schedule);b=b.index.Cg;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*b+a.policy.L)/c,b-a.policy.ac));a.ma()}};
Yza=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Kh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e<a.policy.xo&&(h=!0);a.ma();a.I=c}c=d>=a.policy.ac&&!a.u;if(!f&&!c&&Wza(a,b))return NaN;c&&(a.u=!0,a.ma());a:{d=h;c=Date.now()/1E3-(a.L.cg()||0)-a.J.l-a.policy.L;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.ma();AV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Xb;d<c&&(a.ma(),c=d)}else a.u&&(d=c+a.policy.L-a.Y+a.policy.zo,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Xb))),
c=d);c=Math.max(c,f);a.ma();f=c}a.i=f;if(isNaN(a.i))return a.ma(),a.clear(),NaN;if(!h&&Wza(a,b))return Xza(a,b),NaN;if(a.i<=a.l.startTime)return AV(a,NaN,"y",b),a.clear(),NaN;if(!a.ea(a.i,!1))return!Xza(a,b)&&h&&(AV(a,NaN,"t",b),a.clear()),NaN;a.ma();h=a.i;AV(a,h,"s",b);a.clear();return h};
Xza=function(a,b){return a.ea(a.i,!0)?!1:(AV(a,NaN,"ns",b),a.ma(),a.clear(),!0)};
Wza=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.u?a.policy.Xb:a.policy.uo)};
AV=function(a,b,c,d){var e=a.B.kt();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.l).toFixed(0);e.ssr_fa=a.u?"1":"0";e.ssr_o=(1E3*a.L.cg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.l.i.index;oD(b,a.l.Ka,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.l.Ka)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.l.Ka)).toFixed(0));a.Qa.Ha("ssr",g.wE(e))};
Zza=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.BV=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.Q.call(this);var n=this;this.Ia=a;this.schedule=b;this.policy=c;this.i=d;this.Y=m;this.timing=new yU;this.mediaSource=null;this.J=this.currentTime=NaN;this.va=this.Za=0;this.ya=this.Ra=this.isSuspended=!1;this.Ga="";this.Aa={};this.eb=this.Je=NaN;this.fh=null;this.timestampOffset=NaN;this.fb=!1;this.Ua=0;this.V=!1;this.L=null;this.I=new oU(b,c);a=m&&Object.keys(m.Ae);this.l=new zya(this,this.I,c,this.i,e,a);c=Eya(this.l,f,h&&h.id);this.audioTrack=
new eV(this,this.policy,c.audio);this.videoTrack=new eV(this,this.policy,c.video);this.videoTrack.B.va=this.audioTrack.B;this.La={updateend:this.KN,error:this.fS};this.ea=new g.J(this.uh,0,this);g.F(this,this.ea);this.Ya=new g.J(this.uh,1E3,this);g.F(this,this.Ya);this.qb=new g.J(this.uh,void 0,this);g.F(this,this.qb);this.jb=new g.J(this.uh,1E4,this);g.F(this,this.jb);this.Da=new vF(5);this.C=Uza(this,this.policy,this.schedule,this.Da,function(p,r){return $za(n,p,r)});
this.u=new zU(this.i,this.policy,this.videoTrack,this.audioTrack,l);g.F(this,this.u);this.u.subscribe("ctmp",this.Ha,this);this.B=new sU(this.i,this.videoTrack,this.audioTrack,this.policy,this.u);g.F(this,this.B);aAa(this,this.B);this.ma()};
cAa=function(a,b){var c=b.i;if(a.Y&&bAa(a.Y,LC(c))&&c.indexRange&&c.initRange){var d=LC(c),e=c.indexRange.length+c.initRange.length,f=a.Y.Ae[d].Wt||0;if(f){if(e=c.np(f-e))f=function(h){h.isFailed()?(a.Ha("ombf","1"),pV(b,h),cD(h.info)&&CV(a,b,c,!0),a.uh()):DV(a,h)&&a.uh()},c.B=!0,bD(e)&&hV(b,new dV(d,e,a.Y,f))}else a.Ha("ombooo","1")}};
dAa=function(a){var b=a.videoTrack.i.index;a.fh=new eya({Dl:a.policy.Dl,Mf:a.policy.B.Mf,Cg:b.Cg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Br:function(){return b.Br()}})};
FV=function(a,b){b=b||a.videoTrack&&a.videoTrack.l&&a.videoTrack.l.startTime||a.currentTime;var c=a.videoTrack,d=a.l;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.ya!==b&&(d.Aa={},d.ya=b,EU(d,d.u));Iya(d);d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.ya=-1);EV(a,c,d.nextVideo);EV(a,a.audioTrack,a.l.l)};
GV=function(a,b){a.Ra=b;a.V||(a.ma(),a.isSuspended=!0)};
eAa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.l&&(zx(a.mediaSource.i,a.La,a),zx(a.mediaSource.l,a.La,a));fV(a.audioTrack,null);fV(a.videoTrack,null);a.mediaSource=null};
IV=function(a,b){b=void 0===b?!1:b;a.ma();eAa(a);b?(a.ma(),a.V=!0):a.policy.wc?GV(a,a.fb):GV(a,!1);HV(a)};
JV=function(a){a.mediaSource&&a.mediaSource.mf()&&(IV(a),a.policy.rq&&XU(a,!0,"fmt.unplayable",{unexpected:1}))};
LV=function(a,b,c){var d=a.u;if(2===d.l||3===d.l||a.isSuspended&&(!Hka(a.schedule)||a.Ra))return!1;if(a.i.isManifestless){if(0<b.u.length&&b.l&&-1===b.l.Ka||b.u.length>=a.policy.fl&&!a.policy.Ub||!a.policy.vl&&0<b.u.length&&!a.policy.B.Mf)return!1;if(b.J)return!a.i.isLive||!isNaN(a.Je)}if(Cza(b))return a.ma(),!1;if(!(b.l||a.i.isManifestless&&a.policy.Ub&&b.J)){if(!b.i.Me())return!1;wU(b,a.currentTime)}d=b.u.length+c.u.length;(b.u.length&&b.u[0].Kq()||c.u.length&&c.u[0].Kq()||a.i.isLive&&(!a.policy.Ub||
!b.u.length))&&--d;if(d+1>=a.policy.ll)return!1;if(!b.l)return!0;d=b.l;if(!JC(d.i.l,a.policy))return!1;4===d.type&&d.i.Me()&&(b.l=g.db(d.i.Mv(d)),d=b.l);if(!d.u&&!d.i.wm(d))return!1;var e=a.i.Xe||a.i.L;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0<b.i.index.Ws&&0<e&&d.Ka>=e)return b.V=e,c.V=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(rV(b)&&!a.policy.Ua)return!0;if(d.u||lV(b)&&lV(b)+lV(c)>a.policy.eb)return!1;e=!b.C&&!c.C;
f=b===a.videoTrack&&a.V;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.La&&!b.C&&c.C)&&(c=UC(d))){c=d.B;a:if(d=a.u,d=d.i?d.i.Kd:null,a.V&&d)a=d.startSecs+d.durationSecs+(a.policy.Zj?15:0);else{d=KV(a,b,!0);!KU(a.l)&&0<a.policy.V&&(e=((0,g.P)()-a.Za)/1E3,d=Math.min(d,a.policy.V+a.policy.Pc*e));d=a.currentTime+d;if(a.policy.Mg&&(e=fAa(a)+a.policy.Mg,e<d)){a.Ha("mrl","ori."+d+";mod."+e,!0);a.policy.al&&(a.Za=(0,g.P)());a=e;break a}a=d}c=c>a}return c?!1:(b=
b.Qb)&&b.isLocked()?!1:!0};
hAa=function(a,b,c){if(LV(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.je&&a.i.L?b.i.xm(a.i.je,!1):b.i.Ym(Infinity);d.Je=a.Je}else d=b.i.xm(0,!1);a.C?0===d.Je&&(d.C=a.C.V):d.C=a.eb}else if(d=b.l,d.i.Me()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.zb?0:d.range.length-(d.zb+d.l),h=d.i;if(qV(b)&&b.i.Me()){var l=Math.min(15,.5*KV(a,b,!0));var m=rV(b)||e<=l||a.l.L;a.ma("ready to adapt: "+m+", upgrade pending: "+rV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+gAa,d.l&&(h+=d.duration),wU(b,h),d=b.l,h=d.i));h.Ng()?(f=a.l,c=pU(a.I,h.info.Ib,c.i.info.Ib,e,0<f.B.length&&0===f.videoIndex&&a.ya),e=qV(b),c=d.i.Fq(d,c),c.range&&1<c.i.length&&(e||c.l.l||c.i[0].i!==d.i?c=d.i.Fq(d,c.i[0].l):(e=c.i[c.i.length-1],h=e.l/c.range.length,!e.Rd&&.4>h&&(c=d.i.Fq(d,c.range.length-e.l)))),d=c):(0>d.Ka&&(c=XC(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.Ha("nosq",d.I+";"+g.wE(c))),d=h.Us(d));if(a.V)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Ng()?
(c=pU(a.I,b.i.info.Ib,c.i.info.Ib,0),d=d.i.Fq(d,c)):d=d.i.Us(d);if(a.L&&(c=a.u,e=d.i[0].Ka,c=0>e&&!isNaN(c.B)?c.B:e,e=a.u,h=(0>c||c===e.B)&&!isNaN(e.C)?e.C:d.i[0].C,e=a.L.yr(h,c,d.i[0].i.info.id,b===a.audioTrack?1:2),0>c&&yya(a.u,0,0,!0),e)){h="decurl_itag"+d.i[0].i.info.tc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.zq&&b.isRequestPending(c-1)){a.Ha("sdai","wt_daistate_on_sg"+(c-1));return}a.Ha("sdai",h);c=d;e&&(c.u=new g.yB(e))}a.policy.Vi&&-1!==d.i[0].Ka&&d.i[0].Ka<a.i.je&&(d=b.i.xm(a.i.je,!1));
hV(b,MV(a,d))}};
iAa=function(a,b){var c=eD(b),d=a.I,e=Math.min(2.5,zF(d.schedule));d=qU(d);var f=TC(b.i[0]),h=CB(b.l.i),l;a.fh?l={ai:f,Ck:h,fh:a.fh,Ka:b.i[0].Ka,Je:b.Je}:l={ai:f,Ck:h};return new gU(a.schedule,c,c-e*d,l)};
MV=function(a,b){UC(b.i[b.i.length-1])&&jAa(a,Gya(a.l,b.i[0].i));var c=iAa(a,b);a.policy.ea&&(c.C=[]);var d={Mo:Math.max(0,b.i[0].C-a.currentTime),Av:a.policy.Jg&&cD(b)&&b.i[0].i.info.video?Nya(a.l):void 0,Yv:a.V,poToken:kAa(a.Ia)};return new xV(a.policy,b,c,a.Aa,function(e,f){a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||3<=e.state||e.B||!(!a.mediaSource||a.isSuspended||3<mV(l,a.currentTime))){var m=a.policy.xb;if(!(!m||3<=e.state||e.B<m||IC(e.info.l,a.Aa))){m=
a.Aa;var n=BB(HC(e.info.l));m=FC(m,n);m.i||m.timedOut||m.started||(m=fD(e.info,!0))&&MV(a,m)}if(3<=e.state||e.isDisposed()&&3>f)a.policy.Ya&&(f=iya(e.timing),m=e.timing,a.Ha("rqs",g.wE({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.xhr.Bs(),d:m.C?m.C.join(""):""}))),e.ya&&a.Ha("sbwe3","1",!0);if(!a.isDisposed()&&2<=e.state)if(f=a.timing,n=e.info.i[0].i,m=!f.l&&n.info.video,n=!f.i&&n.info.audio,3===e.state?m?f.tick("vrr"):n&&f.tick("arr"):
4===e.state?m?(f.l=g.CC(e.l),qu(),uu(4)):n&&(f.i=g.CC(e.l)):e.Kq()&&m&&(qu(),uu(4)),3===e.state)pV(l,e),cD(e.info)&&CV(a,l,h,!0),a.L&&(l=e.info.yr())&&a.L.lj(e.info.i[0].Ka,h.info.id,l),a.uh();else if(3<=e.state&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof xV&&h.B&&Tza(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.ma();h=Mya(a.l,h);l=e.info.range.length-
h.xC();h.B=!0;e.info.i[0].i.B=!1;f=h.np(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=BD(l.Md[0].i);BD(g.db(l.Md).i);for(var p=0;p<l.Md.length;p++){l.Md[p].info=f[p];var r=f[p].range;l.Md[p].i=new uD([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.C=!1;EV(a,a.videoTrack,h);l=a.videoTrack;l.l&&(l.l.i=h);a.X("constraint",h.info.ib().quality);(l=e.xhr.getResponseHeader("X-Segment-Lmt"))&&h.info.lastModified&&h.info.lastModified!==+l&&pV(a.videoTrack,e)}else e.C=!1;if(4===e.state){if(DV(a,
e),a.u&&(h=a.u,l=e.info,f=a.L,0!==h.l&&f&&l.i[0].isVideo()))if(l.i[0].Ka>h.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ka===l.i[0].Ka)if(m=h.i.Kd.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ka,h.C=l.i[0].C,BU(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.JC(h.i.Kd)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Da&&e.Yr()&&!(3<=e.state)&&!DV(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,CB(h.l.i)&&(f=g.$d(g.Xa(e.pe()),3),a.Ha("dldbrerr",f||"none")),
e.canRetry()?(f=(h.info.video&&1<h.l.l||410===e.u||500===e.u||503===e.u)&&!JU(a.l),m=e.kt(),n=h.info.video?a.videoTrack:a.audioTrack,f&&(m.stun="1"),XU(a,!1,l,m),a.isDisposed()||(f&&(a.ma(),IU(a.l,h)),a.policy.Tg&&1===e.info.i.length&&0<e.info.i[0].zb&&h!==n.i&&a.ya?a.X("reattachrequired"):(pV(n,e),a.uh()))):CB(h.l.i)?(a.X("localplaybackfailed"),XU(a,!1,"net.closed",{err:e.lastError||"",rn:e.requestNumber.toString()})):(XU(a,!1,l,e.kt()),e.info.ai()&&!a.policy.i?(h.C=l,a.uh()):XU(a,!0,"net.retryexhausted",
{err:l,rn:e.requestNumber.toString()})));a.uh();a.policy.qb&&3<=e.state&&e.canRetry()&&IC(e.info.l,a.Aa)&&(h=a.Aa,l=BB(e.info.l.i),h=FC(h,l),h.u+a.policy.qb*EC(h,a.policy,!0)>(0,g.P)()||(e=fD(e.info,!1))&&MV(a,e))}}}},d)};
jAa=function(a,b){b&&(a.ma(),a.X("videoformatchange",b));a.policy.dl&&a.l.Ra&&a.X("audioformatchange",Hya(a.l,"a"))};
DV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.J&&(b.isDisposed(),3<=b.state||b.Yr(),c.J=!1);b.qC()&&a.Da.Lg(1,b.qC());var d=b.fG(),e=b.GI(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.fk&&(d&&(l.Ws=Math.max(l.Ws,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.ai()&&!bD(b.info))for(var m=g.q(b.EA()),n=m.next();!n.done;n=m.next())VU(c.B,n.value);iV(c);return!!c.vg()}catch(p){return p instanceof Error&&(g.by(p),b=b.kt(),b.origin="hrhs",XU(a,!0,"fmt.unplayable",
b)),!1}};
OV=function(a){var b=a.mediaSource.i,c=a.mediaSource.l,d=lAa(a);if(d){if(a.policy.Ri){if(!b.jp()){var e=a.audioTrack.vg();e&&NV(a,b,e)}c.jp()||(b=a.videoTrack.vg())&&NV(a,c,b)}a.va||(a.va=(0,g.P)(),a.ma(),a.policy.ea&&a.Ha("apdps","r."+d))}else{if(a.va){d=(0,g.P)()-a.va;e=mV(a.audioTrack,a.currentTime);var f=mV(a.videoTrack,a.currentTime);a.ma();a.policy.ea&&a.Ha("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.va=0}if(a.C){d=a.C;e=a.audioTrack;f=rE(a.mediaSource.l.jf());
if(d.B)d=Yza(d,f);else{if(f=e.vg()){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.Je&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.C=d.l.startTime,d.ma())}d=NaN}d&&a.X("seekplayerrequired",d,!0)}d=!1;mAa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=Date.now(),e.tick("vda"),SA("vda","video_to_ad"),e.u&&(qu(),uu(4))));if(a.mediaSource&&!a.mediaSource.mf()&&(mAa(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=Date.now(),d.tick("ada"),
SA("ada","video_to_ad"),d.B&&(qu(),uu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.ya&&kV(a.videoTrack)&&kV(a.audioTrack)&&CE(a.mediaSource)&&!a.mediaSource.hg()&&(e=gV(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ma(),e=a.mediaSource,CE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ee.webkitSourceEndOfStream(e.Ee.EOS_NO_ERROR)),e=a.schedule,Gka(CF(e)),e.C=yF()));e=a.policy.ol;f=a.policy.Dq;d||!(0<e||f)||!CE(a.mediaSource)||kV(a.videoTrack)||kV(a.audioTrack)||(b.jw(a.currentTime,f,e),c.jw(a.currentTime,
f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):FE());c&&g.Fq(a.ea)}}};
lAa=function(a){if(Cza(a.videoTrack))return a.ma(),"ssf";var b=a.u;if(1===b.l||2===b.l||3===b.l)return"cpm";if(a.policy.Hg||yza(a.videoTrack)||yza(a.audioTrack))return"";if(a.B.i){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.u.length||d.u.length){var e=0,f=YU(c.B).concat(YU(d.B));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.l;c=c.i.info.Ib+d.i.info.Ib;e/=c;b=e<b.policy.rl?!1:10<e?!0:10>c*(10-e)/rU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.u.length&&1===b.B.l.length&&Zya(b.B).info.J<
b.Y)return"seek"}if(!a.ya||!a.policy.jb||10>a.currentTime||360<a.videoTrack.i.info.ib().i)return"";b=zza(a.videoTrack,a.currentTime,a.policy.jb)||zza(a.audioTrack,a.currentTime,a.policy.jb);return(0<a.videoTrack.u.length||0<a.audioTrack.u.length||LV(a,a.videoTrack,a.audioTrack)||LV(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
mAa=function(a,b,c){if(c.hg())return!0;if(!c.AB())return!1;var d=b.vg(),e;if(!(e=!d||6===d.info.type)&&(e=a.u)){e=a.u;var f;if(f=0!==e.l&&b===e.va)e=oV(e.J),f=d.info.Ka>(e?e.Ka:-1);e=!!f}if(e)return!1;e=d.info;f=gV(b);!f||f.Rd||VC(f,e)||c.abort();!c.pu()||zE()?c.nF(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.pu()&&a.Ha("ctu","ct."+zE()+";prev_c."+c.pu()+";curr_c."+e.i.info.containerType);f=e.i.I;a.policy.Sj&&f&&(e=0+f.duration,f=-f.i,0===c.sx()&&e===c.nC()||c.AE(0,e),f!==
c.Qc()&&(c.ys(f),ZU&&kza(a.audioTrack.B,c.DC())));if(a.i.u&&0===d.info.zb&&(g.KD(d.info.i.info)||a.policy.Oq)){if(null==c.jp()){e=gV(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.Ab(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.jp(),f=d.info.i.i,e=e!==f&&!g.Ab(e,f);e&&a.Ha("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ka);a.policy.Lb&&!e&&(g.KD(d.info.i.info)?(gC(GD(d),1836019574),gC(GD(d),1718909296)):(e=
new jC(GD(d)),zC(e),nC(e,524531317,!0),d.i=d.i.split(e.start+e.i).oq),d.u=!1)}a.policy.Zg&&d.u&&(d.u=!1);e=a.C&&!!a.C.B&&b.i.info.audio;f=a.i.isManifestless||d.u;if(!(a.i.u&&0!==d.info.zb||f&&!e)&&NV(a,c,d))return!0;if(e)return!1;e=a.currentTime+KV(a,b,!1);if(!(e=d.info.C>e)){a:if(a.policy.Gd&&(!d.info.zb||d.info.Rd||10>d.info.C)&&a.Ha("sba",c.Eb({as:RC(d.info)})),e=d.u?d.info.i.i:null,f=BD(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=nAa(a,c,f,d.info,e),"s"===e)a.Ua=0,e=!0;else{a.policy.Qj||
(c.abort(),vU(b));if("i"===e||"x"===e)oAa(a,"checked",e,d.info);else{if("q"===e)if(d.info.isVideo()?(e=a.policy,e.I=Math.floor(.8*e.I),e.Y=Math.floor(.8*e.Y),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.fb=Math.floor(.8*e.fb),e.C=Math.floor(.8*e.C)),a.policy.Cb)IU(a.l,d.info.i);else if(!c.hg()&&!a.mediaSource.isView&&c.jw(Math.min(a.currentTime,d.info.startTime),!0,5)){e=!1;break a}a.X("reattachrequired")}e=!1}e=!e}if(e)return!1;b.Ki(d);a.ma("Appended "+RC(d.info)+", buffered: "+nE(c.jf()));
return!0};
oAa=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&&!JU(a.l)&&IU(a.l,d.i)):"i"===c&&(15>a.Ua?(a.Ua++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=XC(d);d.mrs=EE(a.mediaSource);d.origin=b;d.reason=c;XU(a,f,e,d)};
iza=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=dE(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!oD(l,b.Ka))l.uA(b),e=!0;else if(d.Za){e=b;var m=l.ej(e.Ka);m&&m.startTime!==e.startTime?(l.segments=[],l.uA(e),e=!0):e=!1;e&&(f=b.Ka)}}0<=f&&d.X("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);vya(a.B,b,c,e);a.u.ND(b,c)};
NV=function(a,b,c){c.info.i.Me();var d=c.info.i.i;if(null==d||b.jp()===d)return!1;var e=d,f=b.wx();if(a.policy.Zg&&f&&b.isView()&&g.KD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=qja(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ha("fenc","1")}f=null;(h=c.info.i.np(0))&&(f=h.i[0]);a.policy.Pi&&b.abort();d=nAa(a,b,e,f,d);if("s"!==d)return oAa(a,"sepInit",d,c.info),!0;a.ma();return b.hg()};
nAa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:nE(b.jf()).replace(/,/g,"_"),message:g.$d(g.Xa(f.message),3),track:a.mediaSource?b===a.mediaSource.l?"v":"a":"u"},Zza()),XU(a,!1,"player.exception",b),"q";g.by(f)}return"u"}return a.mediaSource.mf()?"m":"s"};
aAa=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.V||a.X("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Ha(c,d,!1)});
b.subscribe("error",function(c,d,e){XU(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
SU=function(a,b){a.X("localmediachange",b)};
KV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.I;!a.policy.Ua&&KU(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.fb:a.policy.Y));c&&(d+=a.policy.eb);var e=KU(a.l)?b.l?b.l.i.info.Ib:b.i.info.Ib:b.Ib;d/=e;0<a.policy.Gg&&a.mediaSource&&CE(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.l:a.mediaSource.i)&&!b.hg()&&(b=b.jf(),e=oE(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.Gg,a.policy.ql))));0<a.policy.C&&(d=Math.min(d,a.policy.C));
a.policy.Vh&&c&&!KU(a.l)&&(c=a.l,c=HU(c,g.db(c.B))+HU(c,c.I.i[0]),c=a.policy.Vh*(c/qU(a.I)),c<d&&15>c&&a.Ha("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
fAa=function(a){var b=g.Ro(a.Ia.Um(),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};
pAa=function(a,b){(new sV(b,"cms",null,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.X.apply(a,["error"].concat(g.la(d)))})).send()};
qAa=function(a,b){if(a.mediaSource&&a.mediaSource.l){b-=!isNaN(a.timestampOffset)&&a.policy.hc?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.B.i&&!a.mediaSource.mf()){var c=a.currentTime<=b&&b<a.currentTime+10,d=pE(a.mediaSource.l.jf(),a.currentTime+gAa);c&&d&&(a.B.i=!1)}a.B.i||(a.currentTime=b);g.Fq(a.Ya)}};
rAa=function(a,b){var c=jV(a.videoTrack).find(function(d){return d.startTime>=b&&$za(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
$za=function(a,b,c){if(!(a.videoTrack.i.Me()&&a.audioTrack.i.Me()&&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=uU(a.videoTrack,b,c);if(isNaN(d))return!1;a=uU(a.audioTrack,a.policy.Ra?b:d,c);return isNaN(a)?!1:!0};
EV=function(a,b,c){b.i!==c&&(a.ma(),b.i=c)};
CV=function(a,b,c,d){if(!c.Me()&&!c.B&&JC(c.l,a.policy)&&"f"!==c.info.i){if(d){d=a.I;var e=c.info,f=oya(d,e.video?d.policy.Eq:d.policy.Mj,e.Ib);d=d.policy.Nh&&e.video?Math.max(f,d.policy.Nh):f}else d=0;d=c.np(d);a=MV(a,d);bD(d)&&hV(b,a);c.B=!0}};
XU=function(a,b,c,d){a.isDisposed()||(d=new g.vE(c,b,d),g.Pa(a),g.wE(d.details),a.X("error",d),"html5.invalidstate"!==c&&"fmt.unplayable"!==d.errorCode&&"fmt.unparseable"!==c&&b&&a.dispose())};
HV=function(a){vU(a.audioTrack);vU(a.videoTrack)};
gza=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.ma(),a.u.L=a.timestampOffset,a.X("timestamp",a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Da?b.timestampOffset=a:b.l=a))};
g.PV=function(a){this.le=a};
QV=function(){g.Q.apply(this,arguments)};
RV=function(a,b,c,d){QV.call(this);var e=this;this.u=-1;this.i={};this.B=new g.J(this.C,0,this);g.F(this,this.B);this.l=new g.J(function(){e.isDisposed()||(e.B.start(Math.random()*c),e.l.start(b))},a,this);
g.F(this,this.l);d.subscribe("fairplay_next_need_key_info",this.I,this)};
sAa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
tAa=function(a){var b=a.interval,c=a.Nv;this.url=a.url;this.interval=b;this.Nv=c};
uAa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.l={};this.nextFairplayKeyId=null};
wAa=function(a){var b=MB(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=VB(b.slice(d+2));if(null==b)return null;a=new uAa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Moa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new tAa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Nv:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.l=vAa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
vAa=function(a){if(!a)return{};a=a.split(";");var b={};g.Cb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
SV=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.l=c;this.onError=this.onSuccess=null;this.i=new g.Xe(5E3,2E4,.2)};
xAa=function(a,b,c){a.onSuccess=b;a.onError=c};
zAa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(a.ma(),0!==e.status&&e.response)if(NA("drm_net_r",void 0,a.l),e=new Uint8Array(e.response),e=wAa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else yAa(a,e)},
onError:function(e){yAa(a,e)}};
c&&(b=Ai(b,"access_token",c));g.at(b,d);a.ma()};
yAa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
BAa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.ma();NA("drm_net_r",void 0,a.l);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.xd(f.license)}catch(x){g.by(x)}if(0!==h||l){l=new uAa(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=AAa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");r.isHdr&&
(t+="HDR");h[t]||(m.push(t),h[t]=!0);var u=null;try{u=g.xd(r.keyId)}catch(x){g.by(x)}u&&(n[g.$d(u,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.isDisposed())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.tH="Bearer "+d);g.$u(c,"player/get_drm_license",b,e)};
UV=function(a,b,c,d){g.Q.call(this);this.videoData=a;this.W=b;this.Aa=c;this.sessionId=d;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.V=!1;this.u=null;this.va=[];this.C=[];this.ea=!1;this.i={};this.Y=NaN;this.status="";this.I=NaN;this.l=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Aa&&(a.vvt=this.videoData.Aa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.ea&&(a.authuser=this.W.ea);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.Z("html5_send_drm_atv_device_type")){var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Uc))?e[1]:"";"ATV"===e&&(a.cdt=e)}this.B=a;this.B.session_id=d;this.L=!0;"widevine"===this.l.flavor&&(this.B.hdr="1");"playready"===this.l.flavor&&(b=Number(g.eF(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.B.mfpe=""+b),this.L=
!1,this.videoData.Z("html5_playready_enable_non_persist_license")&&(this.B.pst="0"));this.baseUrl=g.lF(this.l)?sAa(c.initData).replace("skd://","https://"):this.l.B;this.fairplayKeyId=yi(this.baseUrl,"ek")||"";if(b=yi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ya=this.videoData.Z("html5_use_drm_retry");this.va=c.l;this.ma();TV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
FAa=function(a,b){TV(a,"createkeysession");a.status="gr";NA("drm_gk_s",void 0,a.videoData.fb);a.url=CAa(a);try{a.u=b.createSession(a.Aa,function(c){TV(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.X("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.u&&(DAa(a.u,function(c,d){EAa(a,c,d)},function(c){a.isDisposed()||(a.ma(),a.error("drm.keyerror",!0,c))},function(){a.isDisposed()||(a.ma(),TV(a,"onkyadd"),a.J||(a.X("sessionready"),a.J=!0))},function(c){a.Kn(c)}),g.F(a,a.u))};
CAa=function(a){var b=a.baseUrl;Uia(b)||a.error("drm.net",!0,"t.x");if(!yi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.B.fexp=c.join())}c=g.q(Object.keys(a.B));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ai(b,d,a.B[d]);return b};
EAa=function(a,b,c){if(!a.isDisposed())if(b){a.ma();TV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":GAa(a,b);return;default:a.X("ctmp","message_type","t."+c+";l."+b.byteLength)}a.V||(NA("drm_gk_f",void 0,a.videoData.fb),a.V=!0,a.X("newsession",a));if(iF(a.l)&&(b=HAa(b),!b))return;g.lF(a.l)&&!a.videoData.useInnertubeDrmService()&&(b=LB(g.$d(b)));b=new SV(b,++a.requestNumber,a.videoData.fb);xAa(b,
function(d,e){IAa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var h=!1,l;
(l=3<=d.i.l)||(l=a.ya&&36E4<(0,g.P)()-a.Y);l&&(h=!0,e="drm.net.retryexhausted");a.ma();TV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&JAa(a,d)}});
g.F(a,b);KAa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
GAa=function(a,b){a.ma();TV(a,"sdpvrq");a.I=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.W.deviceParams);c=g.ui("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:MB(b)}),responseType:"arraybuffer"};
g.ft(c,b,3,500).then(es(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=MB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.X("ctmp","drminfo","provisioning"),f=(Date.now()-a.I)/1E3,a.I=NaN,a.X("ctmp","provs",""+f.toFixed(3)),a.u&&a.u.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),es(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
VV=function(a){var b;if(b=a.L&&null!=a.u)a=a.u,b=!(!a.i||!a.i.keyStatuses);return b};
KAa=function(a,b){var c,d;a.status="km";NA("drm_net_s",void 0,a.videoData.fb);if(a.videoData.useInnertubeDrmService()){var e=new g.lx(a.W.Jg),f={context:g.Yu(e.config_||g.Zu())};f.drmSystem=LAa[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.$d(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.ib())||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.ma();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.W.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.Aa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.Aa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.jb&&(f.context.user.kidsParent={oauthToken:a.videoData.jb});if(g.lF(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.$d(l)}BAa(b,f,e,a.videoData.lf())}else zAa(b,a.url,a.videoData.oauthToken);
a.status="rs"};
IAa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.l.flavor&&((a.W.Z("html5_drm_ignore_out_of_order_responses")||a.W.Z("html5_drm_ignore_out_of_order_responses_cfl"))&&TV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.W.Z("html5_drm_ignore_out_of_order_responses")))return;TV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(NA("drm_kr_s",void 0,a.videoData.fb),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.Z("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.l.B.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.X("newlicense",b.heartbeatParams),b.i&&(a.C=b.i,g.S(a.W.experiments,"html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.FB&&a.X("newlicense",new tAa({})),a.videoData.FB=!0),a.ea=un(a.C,function(d){return d.includes("HDR")})),b.l&&(a.i=Gb(b.l,function(d){return{type:d,
status:"unknown"}})),jF(a.l)&&!a.videoData.useInnertubeDrmService()?b.message=g.xd(MB(b.message)):kF(a.l)&&a.videoData.useInnertubeDrmService()&&(b.message=LB(g.$d(b.message))),a.u&&(a.ma(),TV(a,"updtks"),a.status="ku",a.u.update(b.message).then(function(){NA("drm_kr_f",void 0,a.videoData.fb);
VV(a)||(TV(a,"ksApiUnsup"),a.X("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.$d(g.Xa(d.message),3);
a.error("drm.keyerror",!0,d)})),a.J&&(a.Y=(0,g.P)()),g.lF(a.l)&&a.X("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
JAa=function(a,b){var c=b.i.getValue();c=new g.J(function(){KAa(a,b)},c);
g.F(a,c);c.start();g.Ye(b.i);a.ma();TV(a,"rtyrq")};
MAa=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)};
NAa=function(a){var b=a.status+".";return VV(a)?b+MAa(a,"."):b+a.C.join(".")};
OAa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
WV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
TV=function(a,b,c){c=void 0===c?!1:c;a.ma();(c||a.videoData.ya||"playready"===a.l.flavor&&a.videoData.Z("html5_log_playready_high_res"))&&a.X("ctmp","drmlog",b)};
PAa=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};
HAa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=md(new DOMParser,g.ed(g.gc("Uses only text content."),b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(tR(be(a.childNodes[0].nodeValue)).buffer):null:null};
QAa=function(a,b,c,d){if(a=LB(g.$d(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Mda(c,d),g.ft(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=wAa(e))&&e.message&&b.update(e.message)})};
XV=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 vx(this);g.F(this,this.B);RAa(this)};
RAa=function(a){a.i?(a.B.N(a.i,"message",a.LN),a.B.N(a.i,"keystatuseschange",a.Kn),a.i.closed&&a.i.closed.then(es(function(){a.isDisposed()||rt("xboxone")&&a.u&&a.u("closed")}),null)):a.l&&(wx(a.B,a.l,["mskeymessage",
"webkitkeymessage"],a.MK),wx(a.B,a.l,["mskeyerror","webkitkeyerror"],a.LK),wx(a.B,a.l,["mskeyadded","webkitkeyadded"],a.KK))};
DAa=function(a,b,c,d,e){a.C=b;a.u=c;a.I=d;a.J=e};
SAa=function(a,b,c){g.ds(c);a.u&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.u(b))};
YV=function(a,b){g.E.call(this);this.element=a;this.i=b;this.I={};this.B=null;this.C=new vx(this);this.u=this.l=null;g.F(this,this.C)};
ZV=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.l=b,a.element.setMediaKeys(b))});
hF(a.i)?a.u=new (gF())(a.i.keySystem):jF(a.i)?(a.u=new (gF())(a.i.keySystem),a.element.webkitSetMediaKeys(a.u)):TAa(a);return null};
TAa=function(a){wx(a.C,a.element,["keymessage","webkitkeymessage"],a.ON);wx(a.C,a.element,["keyerror","webkitkeyerror"],a.NN);wx(a.C,a.element,["keyadded","webkitkeyadded"],a.MN)};
VAa=function(a,b){b=UAa(b,a.i.l);a=a.u.createSession("video/mp4",b);return new XV(null,null,null,null,a)};
WAa=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);a=a.u.createSession("video/mp4",b,c);return new XV(null,null,null,null,a)};
$V=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};
UAa=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};
aW=function(a,b){g.E.call(this);this.i=g.og("video");this.l=null;this.C=[];this.B=new vx(this);this.u=new fF("fairplay","com.youtube.fairplay","",b);this.u.l=a;g.F(this,this.B);this.init()};
bW=function(a,b,c){QV.call(this);var d=this;this.B=a;this.u=b;this.i=[];this.l=new g.J(function(){if(d.i){if(0<d.i.length){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.X("rotated_need_key_info_ready",e)}0<d.i.length&&(e=d.i[0].time-(0,g.P)(),d.l.start(Math.max(0,e)))}},0);
g.F(this,this.l);c.subscribe("widevine_set_need_key_info",this.C,this)};
cW=function(){this.keys=[];this.values=[]};
dW=function(a){a.keys=[];a.values=[]};
eW=function(a,b){return g.gb(a.keys,function(c){return g.Ab(b,c)})};
gW=function(a,b,c){g.Q.call(this);this.element=a;this.videoData=b;this.W=c;this.i=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.Jx();this.l=new cW;this.C=new cW;this.J=new cW;this.u=[];this.Da=2;this.Y=new vx(this);this.Ia=this.ya=!1;this.heartbeatParams=null;this.va=this.V=!1;this.I=null;this.Aa=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||gF()||mF(c.experiments);c=this.videoData.Mg;this.L="fairplay"===this.i.flavor||c?uH:XAa;this.B=new YV(this.element,this.i);g.F(this,this.B);
hF(this.i)&&(this.ea=new YV(this.element,this.i),g.F(this,this.ea));g.F(this,this.Y);c=this.element;this.i.keySystemAccess?this.Y.N(c,"encrypted",this.PN):wx(this.Y,c,hF(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.rT);YAa(this);a:switch(c=this.i,a=this.W.experiments,b=this.l,c.flavor){case "fairplay":19.2999<qt()?(a=c.J,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),c=new RV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new bW(g.S(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.I=
c)g.F(this,this.I),this.I.subscribe("rotated_need_key_info_ready",this.pH,this);this.ma("Created, key system "+this.i.keySystem+", final EME "+mF(this.W.experiments));fW(this,"cks"+this.i.kf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ga=new aW(this.videoData.hc,this.W.experiments),g.F(this,this.Ga))};
YAa=function(a){var b=ZV(a.B);b?b.then(es(function(){ZAa(a)}),es(function(c){if(!a.isDisposed()){a.ma();
g.ds(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.X("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ma(),fW(a,"mdkrdy"),a.V=!0);
a.ea&&(b=ZV(a.ea))};
$Aa=function(a,b,c){a.Ia=!0;c=new PU(b,c);a.W.Z("html5_eme_loader_sync")&&(a.C.get(b)||a.C.set(b,c));a.W.Z("html5_process_all_encrypted_events")?hW(a,c):a.W.Z("html5_eme_loader_sync")?hW(a,c):0!==a.u.length&&a.videoData.u&&a.videoData.u.i?iW(a):hW(a,c)};
hW=function(a,b){if(!a.isDisposed()){fW(a,"onInitData");if(g.S(a.W.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.J.get(b.initData);b=a.C.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.C.remove(c);a.J.remove(c)}a.ma();fW(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.ya&&!a.videoData.isLivePlayback)a.W.Z("html5_process_all_encrypted_events")&&iW(a);else{if(!(g.S(a.W.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Oe)){a.ya=
!0;c=b.cryptoPeriodIndex;var d=b.i;Vya(b);b.Oe||(d&&b.i!==d?a.X("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.X("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.X("widevine_set_need_key_info",b)}}else a.pH(b)}};
ZAa=function(a){if(!a.isDisposed())if(g.S(a.W.experiments,"html5_drm_set_server_cert")&&!g.vG(a.W)){var b=a.B.setServerCertificate();b?b.then(es(function(c){a.videoData.ya&&a.X("ctmp","ssc",c)}),es(function(c){a.X("ctmp","ssce","n."+c.name+";m."+c.message)})).then(es(function(){jW(a)})):jW(a)}else jW(a)};
jW=function(a){a.isDisposed()||(a.V=!0,a.ma(),fW(a,"onmdkrdy"),iW(a))};
iW=function(a){if(a.Ia&&a.V&&!a.va){for(;a.u.length;){var b=a.u[0];if(a.l.get(b.initData))if("fairplay"===a.i.flavor)a.l.remove(b.initData);else{a.u.shift();continue}Vya(b);break}a.u.length&&a.createSession(a.u[0])}};
fW=function(a,b){var c=void 0===c?!1:c;a.isDisposed()||(a.ma(),(a.videoData.ya||c)&&a.X("ctmp","drmlog",b))};
aBa=function(a){var b;if(b=g.vt()){var c;b=!(null===(c=a.B.l)||void 0===c||!c.getMetrics)}b&&(b=a.B.getMetrics())&&(b=g.A.TextDecoder?(new TextDecoder).decode(b):g.Za(b),a.X("ctmp","drm",b))};
lW=function(a,b,c){b=void 0===b?a.T():b;c=void 0===c?a.getVideoData():c;g.Q.call(this);var d=this;this.l=a;this.i=b;this.videoData=c;this.Ru=0;this.oa=this.Qa=null;this.ea=this.I=this.C=this.B=!1;this.V=this.L=0;this.J=g.U(this.i.experiments,"html5_delayed_retry_count");this.u=new g.J(function(){kW(d.l)},g.U(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.F(this,this.u)};
nW=function(a,b,c){var d=!1,e=a.Ru+3E4<(0,g.P)()||a.u.isActive(),f;if(f=!e)f=a.l.visibility,f=!!(f.Ne()||f.isInline()||f.isBackground()||f.Kr()||f.Ir());f&&(c.nonfg="paused",e=!0,a.l.pauseVideo());!e&&0<a.J&&(a.u.start(),e=!0,c.delayed="1",--a.J);f=a.videoData.l;if(!e&&!a.videoData.Z("html5_disable_codec_on_platform_errors_cfl")&&((null===f||void 0===f?0:bE(f))||(null===f||void 0===f?0:$D(f)))){if(a.videoData.Z("html5_disable_codec_on_platform_errors")){a.i.B.i.set(f.i,{oI:1,tE: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).oI);h.i.set(l,{oI:m+1,tE:Math.pow(2,m+1)});h="cfallexp"}else a.videoData.Z("html5_disable_codec_for_playback_on_error")&&a.Qa&&(l=a.Qa.l,m=f.i,l.La.has(m)?l=!1:(l.La.add(m),l.V=-1,EU(l,l.u),l=!0),l&&(h="cfallp"));h&&(d=e=!0,c[h]=f.i)}if(!e)return bBa(a,c);a.Ru=(0,g.P)();e=a.videoData;e.Ra?(e=e.Ra.CI(),h=Date.now()/1E3+1800,e=e<h):e=!1;c.e=b;e&&(c.staleprog="1");a.ue("qoe.restart",
c);if(e&&cBa(a))return mW(a),!0;rt("philips")&&dBa(a);!a.videoData.Z("html5_disable_codec_on_platform_errors")&&f&&bE(f)?(a.i.B.disableAv1(),d=!0):a.Qa?(b=a.Qa,c=(c=gV(b.videoTrack)||b.videoTrack.l)?c.i:b.videoTrack.i,c.L+=1,IU(b.l,c,!0)):a.videoData.Ra&&a.videoData.Ra.xE();a.u.isActive()||kW(a.l,d);return!0};
bBa=function(a,b){if(a.videoData.eb)return!1;a.i.Za+=1;if(10>=a.i.Za)return!1;b.exiled=""+a.i.Za;a.ue("qoe.start15s",b);a.X("playbackstalledatstart");return!0};
dBa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
cBa=function(a){return a.B?!0:a.C||"yt"!==a.i.ya?!1:a.videoData.eb?25>a.videoData.qb:!a.videoData.qb};
mW=function(a,b){b=void 0===b?!1:b;eI(a.videoData)?a.X("signatureexpiredreloadrequired"):a.i.Z("html5_signature_reload_refactor")?a.B||(a.B=!0,a.l.em(),b||a.X("signatureexpiredreloadrequired")):a.C||a.X("signatureexpiredreloadrequired")};
eBa=function(a,b){if(a.oa&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.oa.Zi();b.details.merr=c?c.toString():"0";b.details.msg=a.oa.pe()}};
fBa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
hBa=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&&!a.B)return!1;b.details.sts="18808";if(cBa(a))return!c||dI(a.videoData)||a.i.Z("html5_signature_reload_refactor")?(b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.vE("qoe.restart",!1,b)),a.ue(b.errorCode,b.details),mW(a,c)):(a.I=!0,oW(a.l)),!0;6048E5<(0,g.P)()-a.i.fb&&gBa(a,"signature");return!1};
gBa=function(a,b){try{window.location.reload();a.ue("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.vG(a.i)&&dBa(a)};
iBa=function(a,b){a.i.B.B=!1;a.ue("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});pW(a.l)};
jBa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d};
qW=function(a,b,c){this.W=a;this.Uv=b;this.i=c;this.V=this.I=this.J=this.u=this.l=this.C=this.L=this.B=0;this.playbackRate=1};
lBa=function(a,b,c){!g.S(a.W.experiments,"html5_tv_ignore_capable_constraint")&&g.vG(a.W)&&(c=c.compose(kBa(a,b)));return c};
oBa=function(a,b){return mBa(a).compose(nBa(a,b))};
mBa=function(a){a=pBa(a);return bB("auto",a,!1,"s")};
pBa=function(a){var b;a.Z("html5_exponential_memory_for_sticky")?b=.5>FF(a.W.ac,"sticky-lifetime")?"auto":dB[EF()]:b=dB[EF()];return b};
qBa=function(a,b){return 1<a.playbackRate?(a=yka(a.W.B,b.i.videoInfos,a.playbackRate),new ZA(0,a,!0,"o")):new ZA(0,0,!1,"o")};
kBa=function(a,b){if(g.vG(a.W)&&mB(a.W.B,nB.HEIGHT))var c=b.i.videoInfos[0].ib().i;else{var d=!!b.i.i;var e;VF(a.W)&&(e=window.screen&&window.screen.width?new g.Tf(window.screen.width,window.screen.height):null);e||(e=a.W.Wi?a.W.Wi.clone():a.Uv.dg());(XF||cU||d)&&e.scale(g.EG());d=e;CH(b.videoData)||eI(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].ib();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||TF||(e=.45);a=g.U(a.W.experiments,"html5_viewport_undersend_maximum");
for(f=0;f<b.length;f++){c=b[f];var h=c.ib();if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.ib();c="93"===c.tc()?g.aB[UD(d.width,d.height)]:d.i;c=new ZA(0,c,!1,"r")}else c=uH;c=c.i}c&&(c=Math.max(c,360));return new ZA(0,c,!1,"r")};
rBa=function(a,b){return g.D(a,function d(){var e;return g.z(d,function(f){if(!b.i.i)return f.return(void 0);e=b.i.videoInfos;return f.return(tH(e))})})};
sBa=function(a,b){return g.D(a,function d(){var e,f,h,l,m=this;return g.z(d,function(n){if(1==n.i)return(e=b.i.videoInfos.find(function(p){return bE(p)}))?null!==e.l?n.wb(2):g.w(n,tH([e]),2):n.return(!1);
f=e.l||!1;h=b.i.videoInfos[0].video;l=Math.min(cF("1",h.fps),cF("1",30));m.i.Ha("mcrsp","itag."+e.id+";smooth."+ +e.u+";efficient."+ +f+";perf."+l);return n.return(f)})})};
uBa=function(a,b){if(!b.videoData.l||a.Z("html5_disable_performance_downgrade"))return!1;6E4<g.Sa()-a.L&&(a.B=0);a.B++;a.L=g.Sa();if(4!==a.B)return!1;tBa(a,b.videoData.l);return!0};
wBa=function(a,b,c,d){if(!b||!c||!b.videoData.l)return!1;var e=g.U(a.W.experiments,"html5_df_downgrade_thresh"),f=a.Z("html5_log_media_perf_info"),h=g.U(a.W.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.P)()-a.C?0:f||0<e||0<h))return!1;a.C=(0,g.P)();c=c.zw();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.V;a.I=c.droppedVideoFrames;a.V=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.ya&&a.i.Ha("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.l=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.vG(a.W))return!1;a.l=d>e?a.l+1:0;if(3!==a.l)return!1;tBa(a,b.videoData.l);a.i.Ha("dfd",vBa());return!0};
xBa=function(a,b){return 0>=g.U(a.W.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.ib()&&32<b.ib().fps)?!1:3<=a.u?(a.u=0,!0):!1};
tBa=function(a,b){var c=b.ib().i-1;yBa(b.i,b.ib().fps,c);a=a.i;a.Qa&&Lya(a.Qa.l,a.W)};
zBa=function(a,b){if(!b.i.i)return uH;var c=a.W.Z("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.U(a.W.experiments,"html5_performance_cap_floor");a=a.W.i?240:e;b=g.q(b.i.videoInfos);for(e=b.next();!e.done;e=b.next()){var f=e.value;if(!c||!bE(f))if(e=cF(f.i,f.ib().fps),f=f.ib().i,Math.max(e,a)>=f){d=f;break}}return new ZA(0,d,!1,"b")};
ABa=function(a,b){var c=g.U(a.W.experiments,"html5_background_quality_cap"),d=g.U(a.W.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==pBa(a)||zu()/1E3<d?uH:b.isBackground()?new ZA(0,c,!1,"v"):b.isInline()?(a=g.U(a.W.experiments,"html5_inline_quality_cap"),new ZA(0,a,!1,"v")):uH};
nBa=function(a,b,c){if(g.vG(a.W)&&(1080<=EF(-1)||b.osid))return uH;var d=g.U(a.W.experiments,"html5_autonav_quality_cap"),e=g.U(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.zk&&zu()/1E3>e?(c&&(d=BBa(a,c,d)),new ZA(0,d,!1,"e")):uH};
BBa=function(a,b,c){if(a.Z("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;b<a.length;b++)if(a[b].video.i<c)return a[b-1].video.i;return c};
CBa=function(a,b){a.Z("html5_log_media_perf_info")&&(a.i.Ha("perfdb",vBa()),a.i.Ha("hwc",""+navigator.hardwareConcurrency,!0),b&&a.i.Ha("mcdb",b.i.videoInfos.filter(function(c){return!1===c.u}).map(function(c){return c.tc()}).join("-")))};
vBa=function(){var a=Gb(rW(),function(b){return""+b});
return g.wE(a)};
sW=function(a,b){g.E.call(this);this.i=a;this.J=b;this.l=-1;this.I=!1;this.u=-1;this.playerState=new g.GK;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.J(this.send,6E4,this);this.B=!1;g.F(this,this.delay)};
DBa=function(a){0<=a.l||(3===a.i.i.getVisibilityState()?a.I=!0:(a.l=g.pT(a.i),a.delay.start()))};
EBa=function(a){if(!(0>a.u)){var b=g.pT(a.i),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.OK(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
FBa=function(a){switch(a.W.ol){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
GBa=function(a){return(!a.Z("html5_health_to_gel")||a.W.fb+36E5<(0,g.P)())&&(a.Z("html5_health_to_gel_canary_killswitch")||a.W.fb+36E5<(0,g.P)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===FBa(a))?a.Z("html5_health_to_qoe"):!0};
tW=function(a,b,c,d,e,f){var h={format:"RAW"},l={};if(Ls(a)&&Ms()){if(f){var m;2!==(null===(m=HBa.uaChPolyfill)||void 0===m?void 0:m.state.type)?a=null:(a=HBa.uaChPolyfill.state.data.values,a={"Synth-Sec-CH-UA-Arch":a.architecture,"Synth-Sec-CH-UA-Model":a.model,"Synth-Sec-CH-UA-Platform":a.platform,"Synth-Sec-CH-UA-Platform-Version":a.platformVersion,"Synth-Sec-CH-UA-Full-Version":a.uaFullVersion});l=Object.assign(l,a);h.withCredentials=!0}c&&(l["X-Goog-Visitor-Id"]=c);b&&(l["X-Goog-PageId"]=b);
d&&(l.Authorization="Bearer "+d);if(c||d||b)h.withCredentials=!0}0<Object.keys(l).length&&(h.headers=l);e&&(h.onFinish=e);return 1<Object.keys(h).length?h:null};
uW=function(a,b,c,d,e,f,h){Ms()&&c.token&&(a=g.ui(a,{ctt:c.token,cttype:c.YE,mdx_environment:c.mdxEnvironment}));e?(null==b?b={allowPingSend:!0}:(c=g.ls(a),Object.keys(c).includes("cpn")),h?fx(a,b):f?ex(a,b):dx(a,b)):b?(f=g.ls(a),Object.keys(f).includes("cpn"),g.at(a,b)):g.Bu(a,d)};
g.wW=function(a){g.E.call(this);var b=this;this.i=a;this.l={};this.sequenceNumber=1;this.Ua=NaN;this.ld="N";this.L=this.jb=this.Ya=this.Ra=this.B=0;this.Aa=this.qb="";this.eb=this.Y=NaN;this.Za=0;this.xb=-1;this.fb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ga=this.ya=this.isOffline=this.va=!1;this.Cb=[];this.ea=null;this.C=this.Ia=this.I=!1;this.u=-1;this.Da=!1;this.Bb=new g.J(this.CQ,750,this);this.V=this.adCpn="";this.adFormat=void 0;this.Lb=0;g.F(this,this.Bb);(a="function"===typeof navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.ea=c});
g.vW(this,0,"vps",["N"])};
g.vW=function(a,b,c,d){var e=a.l[c];e||(e=[],a.l[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
xW=function(a,b){var c=a.i.i.getCurrentTime();g.vW(a,b,"cmt",[c.toFixed(3)]);c=a.i.i.Il();if(a.J&&1E3*c>a.J.gK+100&&a.J){var d=a.J,e=d.isAd;a.La=1E3*b-d.zV-(1E3*c-d.gK)-d.oV;a.Ha("gllat","l."+a.La.toFixed()+";prev_ad."+ +e);delete a.J}};
yW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.pT(a.i);var c=a.i.i.Ex();if(!isNaN(a.Y)&&!isNaN(c.l)){var d=c.l-a.Y;0<d&&g.vW(a,b,"bwm",[d,(c.B-a.eb).toFixed(3)])}isNaN(a.Y)&&c.l&&a.isOffline&&IBa(a,!1);a.Y=c.l;a.eb=c.B;isNaN(c.bandwidthEstimate)||g.vW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.ya&&(c.i&&a.Ha("bwinfo",c.i),(d=g.wE(Zza()))&&a.Ha("meminfo",d));a.ea&&g.vW(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.i.i.getVisibilityState();a.xb!==d&&(g.vW(a,b,"vis",[d]),a.xb=d);xW(a,
b);(d=JBa(a.i))&&d!==a.Za&&(g.vW(a,b,"conn",[d]),a.Za=d);KBa(a,b,c)};
KBa=function(a,b,c){if(!isNaN(c.Mo)){var d=c.Mo;c.u<d&&(d=c.u);g.vW(a,b,"bh",[d.toFixed(3)])}};
zW=function(a){for(var b=0,c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Bm(a.l[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.J(a.reportStats,0,a)).start()};
LBa=function(a){a.i.videoData.Xb&&AW(a,"prefetch");a.i.videoData.qb&&a.Ha("reload","r."+a.i.videoData.reloadReason+";ct."+a.i.videoData.qb);a.i.videoData.Cb&&AW(a,"monitor");a.i.videoData.isLivePlayback&&AW(a,"live");cna(a.i.videoData)&&AW(a,a.i.videoData.enableServerStitchedDai?"ssdai":"csdai");a.i.videoData.zg&&a.Ha("ctrl",a.i.videoData.zg,!0);if(a.i.videoData.Jf){var b=a.i.videoData.Jf.replace(/,/g,"_");a.Ha("ytp",b,!0)}a.i.videoData.QG&&(b=a.i.videoData.QG.replace(/,/g,"."),a.Ha("ytrexp",b,!0));
if(!g.S(a.i.W.experiments,"html5_disable_gpu_reporting")){var c=a.i.W.experiments;b=a.i.videoData;c=g.S(c,"enable_white_noise")||g.S(c,"enable_webgl_noop")||g.S(c,"enable_gpu_logging");var d=g.WH(b)||g.UH(b)||g.VH(b)||g.XH(b),e=b.u&&bE(g.db(b.u.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.BW)())&&(a.l.gpu=[b])}eI(a.i.videoData)&&g.vW(a,g.pT(a.i),"dt",["1"]);a.C=!0;a.Ua=Vs(function(){a.reportStats()},1E4)};
MBa=function(a){0<=a.u||(a.i.W.hc||3!==a.i.i.getVisibilityState()?a.u=g.pT(a.i):a.Da=!0)};
AW=function(a,b){var c=a.l.cat||[];c.push(b);a.l.cat=c};
IBa=function(a,b){a.isOffline=b;g.vW(a,g.pT(a.i),"is_offline",[a.isOffline?"1":"0"])};
NBa=function(a,b,c,d,e){var f=g.pT(a.i);1===b&&g.vW(a,f,"vps",[a.ld]);var h=a.l.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.l.xvt=h};
OBa=function(a){this.l=a;this.L=!1;this.i=0;this.C=-1;this.lastUpdateTime=NaN;this.u=0;this.segments=[];this.J=this.I=0;this.ea=this.l.Ve().volume;this.V=this.l.Ve().muted;this.B=CW(this.l)};
DW=function(a){a.B.startTime=a.u;a.B.endTime=a.i;a.segments.length&&g.db(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.I+=a.i-a.u;a.B=CW(a.l);a.u=a.i};
PBa=function(a){a.segments.length&&a.i===a.u||DW(a);var b=a.segments;a.segments=[];return b};
RBa=function(a){QBa(a);a.J=Vs(function(){a.update()},100);
a.lastUpdateTime=g.pT(a.l);a.B=CW(a.l)};
QBa=function(a){window.clearInterval(a.J);a.J=NaN};
SBa=function(a,b,c){c-=a.lastUpdateTime;return b===a.i&&.5<c};
EW=function(a,b,c,d){this.W=b;this.segments=[];this.experimentIds=[];this.Aa=this.jb=this.isFinal=this.Pc=this.Ya=this.autoplay=this.autonav=!1;this.Bb="yt";this.B=this.I=null;this.sendVisitorIdHeader=this.Da=!1;this.pageId="";this.u="watchtime"===c;this.C="playback"===c;this.fb="delayplay"===c;this.eb="atr"===c;this.Zc="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.eb?"/api/stats/"+c:"//"+b.Xi+"/api/stats/"+c;this.Vh=!b.Z("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.C;this.Tb=b.Z("embeds_enable_intersection_observer_v2");d&&(this.jb=d.fs,d.rtn&&(this.B=d.rtn),this.u?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.wh=d.mos,this.Be=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Lb=d.inview),d.size&&(this.Cb=d.size));this.deviceParams=g.Vb(b.deviceParams);this.Lc=b.wc;b.Z("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;
this.ya=b.Xd;this.Bb=b.ya;this.region=b.region;this.userAge=b.userAge;this.Ra=b.Be;this.He=zu();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.V=g.S(b.experiments,"vss_pings_using_networkless");this.ea=g.S(b.experiments,"vss_send_then_write");this.Gd=g.S(b.experiments,"vss_final_ping_send_and_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.wc=b.l&&g.S(b.experiments,"embeds_append_synth_ch_headers");this.accessToken=a.lf();this.adFormat=a.adFormat;
this.adQueryId=a.adQueryId;this.autoplay=cI(a);this.autonav=a.zk||this.autonav;this.Ec=aI(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ya=a.C;a.Ya&&(this.J=a.Ya,this.Za=a.Sh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.Eq;this.va=a.Bb;a.l&&(this.videoFormat=a.l.tc(),a.J&&a.J.tc()!==this.videoFormat&&(this.Ua=a.J.tc()));a.i&&hB(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Vh?"embedded_unbranded":$H(a);this.Aa=a.He;this.Ub=a.Zk;if(b=PH(a))this.Xd=b;
this.Xb=a.Oq;this.eventId=a.eventId;this.playlistId=a.dH||a.playlistId;this.zg=a.zg;this.Jf=a.Jf;this.hc=a.TA;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.ac=a.jR;this.referrer=a.referrer;this.Ia=a.OG||a.YG;this.Ga=a.bB;this.La=a.kR;this.userGenderAge=a.userGenderAge;this.Y=a.xP};
FW=function(a,b){return tW(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.wc)};
TBa=function(a,b){return function(){var c=a.uri,d=GW(a),e=FW(a),f=a.V,h=a.ea;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.ui(c,d);f?(null==e&&(e={}),h?ex(c,e):dx(c,e)):e?g.at(c,e):g.Bu(c)}};
GW=function(a){var b={ns:a.Bb,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.jb?"1":"0",rt:a.l(a.Ce),of:a.ac,adformat:a.adFormat,content_v:a.Ec,etv:a.embedsTokenValue,euri:a.Lc,lact:a.He,live:a.Xd,cl:(382180333).toString(),mos:a.wh,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Be};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.Ya&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Aa&&(b.splay="1");a.va&&(b.delay=a.va);a.ya&&(b.hl=a.ya);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ra&&(b.uga=a.Ra+a.userAge);void 0!==a.xb&&(b.len=a.l(a.xb));!a.u&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.l(a.B));a.Ia&&(b.feature=a.Ia);a.playlistId&&(b.list=a.playlistId);a.zg&&(b.ctrl=a.zg);a.Jf&&(b.ytr=a.Jf);a.hc&&(b.ssrt="1");a.Ua&&(b.afmt=a.Ua);
a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.qb&&(b.lio=a.l(a.qb));a.u?(b.idpj=a.Ub,b.ldpj=a.Xb,null!=a.I&&(b.rti=a.l(a.I)),a.Y&&(b.ald=a.Y)):void 0!==a.adType&&(b.at=a.adType);a.Cb&&(a.C||a.fb||a.u&&a.Tb)&&(b.size=a.Cb);null!=a.Lb&&(a.C||a.fb||a.u&&a.Tb)&&(b.inview=a.l(a.Lb));a.u&&(b.volume=HW(a,g.Qe(a.segments,function(d){return d.volume})),b.st=HW(a,g.Qe(a.segments,function(d){return d.startTime})),b.et=HW(a,g.Qe(a.segments,function(d){return d.endTime})),un(a.segments,function(d){return 1!==
d.playbackRate})&&(b.rate=HW(a,g.Qe(a.segments,function(d){return d.playbackRate}))),un(a.segments,function(d){return"-"!==d.i})&&(b.als=g.Qe(a.segments,function(d){return d.i}).join(",")));
b.muted=HW(a,g.Qe(a.segments,function(d){return d.muted?1:0}));
un(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=HW(a,g.Qe(a.segments,function(d){return d.visibilityState})));
un(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=HW(a,g.Qe(a.segments,function(d){return d.connectionType})));
un(a.segments,function(d){return 0!==d.l})&&(b.blo=HW(a,g.Qe(a.segments,function(d){return d.l})));
un(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Qe(a.segments,function(d){return d.B}).join(","));
un(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Qe(a.segments,function(d){return d.clipId}).join(","));
if(un(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Qe(a.segments,function(d){return d.u}).join(",")}Ms()&&a.J&&(b.ctt=a.J,b.cttype=a.Za,b.mdx_environment=a.mdxEnvironment);
a.Zc&&(b.etype=void 0!==a.L?a.L:0);a.Ga&&(b.uoo=a.Ga);a.La&&(b.upt=a.La);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=UBa[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
HW=function(a,b){return g.Qe(b,a.l).join(",")};
IW=function(a){g.E.call(this);this.i=a;this.currentPlayerState="paused";this.u=NaN;this.I=[10,10,10,40];this.L=this.J=0;this.va=this.Y=this.Aa=this.ya=this.ea=this.V=this.B=!1;this.C=NaN;this.l=new OBa(a)};
WBa=function(a){if(!a.B){g.S(a.i.W.experiments,"disable_embedpage_playback_logging")||16623!==a.i.videoData.Ov||g.cy(Error("Playback for EmbedPage"));var b=JW(a,"playback");a.I=[10+a.i.videoData.Zk,10,10,40+a.i.videoData.Oq-a.i.videoData.Zk,40];RBa(a.l);b.B=KW(a,!0);0<a.C&&(b.i-=a.C);b.send();if(a.i.videoData.Fp){b=a.i.W;var c=a.i.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.Fp,oid:c.BF,ptchn:c.AF,pltype:c.CF,content_v:aI(c)};b=g.ui(b.Da+"ptracking",c);LW(a,
b)}a.i.videoData.Bb||VBa(a);a.B=!0;a=a.l;a.i=a.l.i.getCurrentTime();a.lastUpdateTime=g.pT(a.l);!(0===a.u&&5>a.i)&&2<a.i-a.u&&(a.u=a.i);a.L=!0}};
KW=function(a,b,c){c=void 0===c?NaN:c;var d=g.pT(a.i);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.u=g.Us(function(){if(!a.isDisposed()){a.u=NaN;a.l.update();var h=PBa(a.l),l=XBa(a,h);b&&(l.I=f);var m=1E3<a.L;!(1<h.length)&&h[0].isEmpty()||m||(l.B=KW(a,!0,f));l.send();a.L++}},1E3*(f-d));
return f};
JW=function(a,b){var c=a.i;c=Object.assign(c.Ve(),c.videoData.Ve());g.Ra(c,{state:a.currentPlayerState});b=new EW(a.i.videoData,a.i.W,b,c);b.i=a.i.i.getCurrentTime();a.i.videoData.isLivePlayback||(b.xb=a.i.i.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.qb=c-b.i);b.Ce=g.pT(a.i);b.segments=[CW(a.i)];return b};
XBa=function(a,b){var c=JW(a,"watchtime");if(0<a.C){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.i-=a.C}else c.i=a.l.i;c.segments=b;return c};
MW=function(a){a.l.update();return XBa(a,PBa(a.l))};
VBa=function(a){a.i.videoData.remarketingUrl&&!a.ya&&(LW(a,a.i.videoData.remarketingUrl),a.ya=!0);a.i.videoData.youtubeRemarketingUrl&&!a.Aa&&(LW(a,a.i.videoData.youtubeRemarketingUrl),a.Aa=!0);a.i.videoData.googleRemarketingUrl&&!a.Y&&(LW(a,a.i.videoData.googleRemarketingUrl),a.Y=!0);a.i.videoData.ppvRemarketingUrl&&!a.va&&(LW(a,a.i.videoData.ppvRemarketingUrl),a.va=!0);a.Hs()};
YBa=function(a){if(!a.isDisposed()&&a.B){a.currentPlayerState="paused";var b=MW(a);b.isFinal=!0;b.send();a.dispose()}};
ZBa=function(a,b,c){if(!a.V){c||(c=JW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.V=!0}};
LW=function(a,b){var c=a.i.videoData.lf(),d=a.i.Z("web_player_vss_pageid_header")?a.i.W.pageId:void 0,e=a.i.W.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,f=g.S(a.i.W.experiments,"vss_pings_using_networkless"),h=g.S(a.i.W.experiments,"vss_send_then_write"),l=g.S(a.i.W.experiments,"allow_skip_networkless");c=tW(b,d,e,c,void 0);uW(b,c,{token:a.i.videoData.Ya,YE:a.i.videoData.Sh,mdxEnvironment:a.i.videoData.mdxEnvironment},void 0,f&&!l,h)};
$Ba=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="-"};
NW=function(a,b,c,d){this.videoData=a;this.W=b;this.i=c;this.Ve=d;this.l=void 0};
g.pT=function(a){return aCa(a)()};
aCa=function(a){if(!a.l){var b=g.Qa(function(d){var e=(0,g.P)();d&&631152E6>=e&&(g.by(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.S(a.W.experiments,"html5_validate_yt_now")),c=b();
a.l=function(){return Math.round(b()-c)/1E3};
a.i.RD()}return a.l};
JBa=function(a){if(navigator.connection&&navigator.connection.type)return bCa[navigator.connection.type]||bCa.other;if(g.vG(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
CW=function(a){var b=new $Ba;b.B=a.Ve().cc||"-";b.playbackRate=a.i.getPlaybackRate();var c=a.i.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.Cb&&(b.l=1);c=a.i.getAudioTrack();c.Nc&&c.Nc.id&&"und"!==c.Nc.id&&(b.u=c.Nc.id);b.connectionType=JBa(a);b.volume=a.Ve().volume;b.muted=a.Ve().muted;b.clipId=a.Ve().clipid||"-";b.i=a.videoData.FG||"-";return b};
g.OW=function(a){g.E.call(this);var b=this;this.l=a;this.u=this.qoe=this.i=null;this.Pf=void 0;this.B=new Map;this.l.videoData.isValid()&&!this.l.videoData.Nh&&(this.i=new IW(this.l),g.F(this,this.i),this.qoe=new g.wW(this.l),g.F(this,this.qoe),this.l.videoData.enableServerStitchedDai&&(this.Pf=this.l.videoData.clientPlaybackNonce)&&this.B.set(this.Pf,this.i));GBa(this.l)&&(this.u=new sW(this.l,function(c){b.Ha("h5h",c)}),g.F(this,this.u))};
cCa=function(a){var b;a.l.videoData.enableServerStitchedDai&&a.Pf?null===(b=a.B.get(a.Pf))||void 0===b?void 0:DW(b.l):a.i&&DW(a.i.l)};
dCa=function(a,b){a.i&&ZBa(a.i,b)};
eCa=function(a){if(!a.i)return null;var b=JW(a.i,"atr");return function(c){a.i&&ZBa(a.i,c,b)}};
fCa=function(a,b,c,d){c.adFormat=c.Xd;var e=b.i;b=new IW(new NW(c,b.W,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Il:function(){return e.Il()},
Ex:function(){return e.Ex()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Du:function(){return e.Du()},
getVisibilityState:function(){return e.getVisibilityState()},
RD:function(){e.RD()},
ov:function(){e.ov()}},b.Ve));
b.C=d;g.F(a,b);return b};
gCa=function(){this.Mo=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN};
hCa=function(){this.l=g.Qz;this.i=[]};
jCa=function(a,b,c){var d=[];for(b=iCa(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};
kCa=function(a,b){var c=[];a=g.q(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
lCa=function(a){return a.i.slice(iCa(a,0x7ffffffffffff),a.i.length)};
iCa=function(a,b){a=yb(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
mCa=function(a,b){var c=NaN;a=g.q(a.i);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
nCa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
PW=function(a,b,c,d){g.E.call(this);this.ea=a;this.Y=b;this.J=c;this.L=d;this.u=NaN;this.C=this.I=this.started=!1;this.l=[];this.V=new g.J(this.Wk,250,this);g.F(this,this.V);this.B=new g.J(this.Wk,0,this);g.F(this,this.B);this.i=new hCa};
oCa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.L(g.Rz(d.namespace),d):a.L(g.Sz(d.namespace),d)}};
pCa=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};
qCa=function(a){this.l=this.mediaTime=NaN;this.u=this.i=!1;this.B=.001;g.vG(a)&&g.U(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.B=g.U(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
QW=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
RW=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};
rCa=function(a,b){this.videoData=a;this.i=b};
sCa=function(a,b,c){return Uma(b,c).then(function(){return it(new rCa(b,b.u))},function(d){d instanceof Error&&fs(d);
d=b.isLivePlayback&&!g.sF(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Ua,drm:""+ +EH(b),f18:""+ +(0<=b.Fi.indexOf("itag=18")),c18:""+ +hE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(EH(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=""+ +iE('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +iE('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +iE('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.vE(d,!0,e)})};
tCa=function(a){this.C=a;this.u=this.l=0;this.B=new QT(50)};
TW=function(a,b,c){g.Q.call(this);this.videoData=a;this.experiments=b;this.L=c;this.l=[];this.B=0;this.u=!0;this.C=!1;this.I=0;c=new uCa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.Cb?c.l=3:g.SH(a)&&(c.l=2);g.S(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.L=!0);var d=Mma(a);c.C=2===d||-1===d;c.C&&(c.Y++,21530001===LH(a)&&(c.I=g.U(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(rt("trident/")||rt("edge/"))d=g.U(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u,
d);g.U(b,"html5_minimum_readahead_seconds")&&(c.u=g.U(b,"html5_minimum_readahead_seconds"));g.U(b,"html5_maximum_readahead_seconds")&&(c.V=g.U(b,"html5_maximum_readahead_seconds"));g.S(b,"html5_force_adaptive_readahead")&&(c.B=!0);g.U(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.U(b,"html5_allowable_liveness_drift_chunks"));g.U(b,"html5_readahead_ratelimit")&&(c.ea=g.U(b,"html5_readahead_ratelimit"));switch(LH(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=g.S(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.J=1!==this.policy.l;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Cb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(LH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=SW(this,b);this.ma()};
vCa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===Mma(a.videoData)&&--c;return UW(a)*c};
VW=function(a,b){var c=a.hj(),d=a.policy.i;a.C||(d=Math.max(d-1,0));a=d*UW(a);return b>=c-a};
wCa=function(a,b,c){b=VW(a,b);c||b?b&&(a.u=!0):a.u=!1;a.J=2===a.policy.l||3===a.policy.l&&a.u};
xCa=function(a,b){b=VW(a,b);a.C!==b&&a.X("livestatusshift",b);a.C=b};
UW=function(a){return a.videoData.i?XE(a.videoData.i)||5:5};
SW=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.u/UW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/UW(a))),b)};
uCa=function(){this.Y=1;this.u=0;this.V=Infinity;this.ea=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.I=NaN;this.J=this.L=!1};
YW=function(a,b,c,d,e){g.E.call(this);this.W=a;this.videoData=b;this.X=c;this.visibility=d;this.C=e;this.Qa=this.oa=null;this.B=this.i=0;this.l={};this.playerState=new g.GK;this.u=new g.J(this.QN,1E3,this);g.F(this,this.u);this.ya=new WW({delayMs:g.U(this.W.experiments,"html5_seek_timeout_delay_ms")});this.V=new WW({delayMs:g.U(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.Aa=XW(this,"html5_seek_set_cmt");this.ea=XW(this,"html5_seek_jiggle_cmt");this.Y=XW(this,"html5_seek_new_elem");
this.Ga=XW(this,"html5_unreported_seek_reseek");this.J=XW(this,"html5_long_rebuffer_jiggle_cmt");this.L=XW(this,"html5_reload_element_long_rebuffer");this.I=XW(this,"html5_ads_preroll_lock_timeout");this.Da=new WW({delayMs:g.U(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ir:!g.S(this.W.experiments,"html5_report_slow_ads_as_error")});this.Ia=new WW({delayMs:g.U(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ir:!g.S(this.W.experiments,"html5_skip_slow_buffering_ad")});this.va=XW(this,
"html5_seek_over_discontinuities")};
XW=function(a,b){var c=g.U(a.W.experiments,b+"_delay_ms");a=g.S(a.W.experiments,b+"_cfl");return new WW({delayMs:c,ir:a})};
yCa=function(a,b,c,d,e,f,h){var l=oE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;ZW(a,a.va,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
ZW=function(a,b,c,d,e,f,h){zCa(b,c)?(a.Ad(e,b,h),b.ir||f()):(b.oz&&b.triggerTimestamp&&!b.u?(c=(0,g.P)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.oz,c=b.i&&c-b.i>b.nE||f?b.u=!0:!1):c=!1,c&&(c=a.Eb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.wE(c),a.X("ctmp","workaroundReport",h),d&&(b.reset(),a.l[e]=!1)))};
WW=function(a){a=void 0===a?{}:a;var b=void 0===a.nE?1E3:a.nE,c=void 0===a.oz?3E4:a.oz,d=void 0===a.ir?!1:a.ir;this.B=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.nE=b;this.oz=c;this.ir=d;this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1};
zCa=function(a,b){if(!a.B||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.P)();if(!a.startTimestamp)a.startTimestamp=b,a.l=0;else if(a.l>=a.B)return a.triggerTimestamp=b,!0;a.l+=1;return!1};
aX=function(a,b,c,d){g.Q.call(this);var e=this;this.videoData=a;this.W=b;this.visibility=c;this.Ua=d;this.policy=new ACa(this.W);this.I=new YW(this.W,this.videoData,(0,g.C)(this.X,this),this.visibility,this.Ua);a={};this.ya=(a.seekplayerrequired=this.EV,a.videoformatchange=this.LD,a);this.playbackData=null;this.Ra=new vx;this.J=this.l=this.Qa=this.oa=null;this.i=NaN;this.u=0;this.B=null;this.Aa=NaN;this.C=this.L=null;this.ea=this.V=!1;this.va=new g.J(function(){BCa(e,!1)},2E3);
this.Ya=new g.J(function(){$W(e)});
this.La=new g.J(function(){e.ma();e.V=!0;CCa(e)});
this.Ga=this.timestampOffset=0;this.Da=!0;this.Ia=0;this.Za=NaN;this.Y=new g.J(function(){var f=e.W.ac;f.i+=1E4/36E5;f.i-f.u>1/6&&(Kka(f),f.u=f.i);e.Y.start()},1E4);
this.Z("html5_unrewrite_timestamps")?this.ya.timestamp=this.ys:this.ya.timestamp=this.RN;g.F(this,this.Ra);g.F(this,this.va);g.F(this,this.La);g.F(this,this.Ya);g.F(this,this.Y)};
DCa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new tCa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(KH(a.videoData)&&a.Qa){var c=a.Qa.Da.cg()||0;break a}if(a.videoData.i){c=a.videoData.i.va;break a}}c=0}return c}),a.l=new TW(a.videoData,a.W.experiments,function(){return a.cd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.u=a.u||a.videoData.startSeconds||0)};
dX=function(a,b){a.Qa&&zx(a.Qa,a.ya,a);(a.Qa=b)?(yx(b,a.ya,a),bX(a,!0)):cX(a);a.I.Qa=b};
ECa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.i&&!(c>=e.l&&c<e.u)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.l=e.i.getStartTime(f),e.u=e.l+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.C(),e.B.add(f))}}a.l&&(d&&(d=a.l,e=a.oa?EK(a.oa):0,d.B++,3>d.B||g.Sa()-d.I<d.policy.ea||(d.I=g.Sa(),d.l.push(e),50<d.l.length&&d.l.shift(),d.ma())),d=a.l,wCa(d,c,void 0===b?!0:b),xCa(d,c),b&&BCa(a,!0))};
BCa=function(a,b){if(a.l){var c=a.l;var d=a.getCurrentTime();!VW(c,d)&&c.Pl()?(c.ma(),c.policy.L&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.ma(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.hj())):c=NaN;if(!isNaN(c)){if(a.Qa&&b&&(b=a.va.isActive(),d=a.l.hj(),(d=rAa(a.Qa,d-a.Qc()))&&!b)){a.va.start();a.X("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Qc()));a.seekTo(d+a.Qc(),{ye:"playbacktimeline_inBufferSeek"});return}a.Z("html5_peg_to_live_logging")&&
a.X("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Qc()));a.seekTo(c,{ye:"playbacktimeline_pegToLive"})}}};
bX=function(a,b){if(a.l&&a.Qa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.l,b.l.length){c=b.i;b:{if(b.l.length){if(1<Math.min.apply(null,b.l)){b.ma();var d=SW(b,b.i-1);break b}if(b.policy.B){b.ma();d=SW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.ma(),b.l=[],b.B=0}else c=!1;c&&a.X("livereadaheadchanged",vCa(a.l));b=a.Qa;c=a.l.i;d=a.l;d=(d.i-1+d.policy.i)*UW(d);a=a.l.policy.I;b.Je=Math.max(c-1,0);b.C&&
(b.C.Y=d);b.eb=a}};
eX=function(a){return a.videoData.isLivePlayback&&!!a.videoData.u&&!a.videoData.u.i};
CCa=function(a){FCa(a).then(void 0,function(){cX(a)});
fX(a).then(function(c){GCa(a,c)},function(){cX(a)});
a.X("seekstart");if(g.GH(a.videoData)){var b=a.Eb();b["native"]=""+ +a.ea;b.tgt=""+a.i;a.X(g.wE(b))}};
FCa=function(a){if(!a.L)if(a.Qa)if(isFinite(a.i))a.ma(),a.L=a.Qa.seek(a.i-a.timestampOffset);else{a.ma();var b=a.Qa;HV(b);b.B.i&&b.ma();b.C&&Vza(b.C,b.videoTrack.i);g.Fq(b.ea);b=b.B;var c=Math.max(b.videoTrack.B.u||0,b.audioTrack.B.u||0);xza(b.videoTrack);xza(b.audioTrack);var d=b.l,e;for(e in d.i)KB(d.i[e].index,Infinity);b.l.isManifestless&&(b.B=!0);b.X("setcurrenttime",c);b.i=!0;b.C=new hT;a.L=b.C;a.i=a.Qa.getCurrentTime()+a.timestampOffset}else a.L=Ug(a.i-a.timestampOffset);return a.L};
fX=function(a){var b=a.B;b||(a.B=new hT,b=a.B,$W(a));return b};
HCa=function(a,b,c){return isNaN(b)?NaN:g.Nf(b,a.getMinSeekableTime(),a.cd(c))};
$W=function(a){if(a.B)if(!a.Z("html5_nondash_live_seek_killswitch")&&eX(a)&&a.oa&&0<a.oa.rh()&&0<DK(a.oa)&&(a.i=HCa(a,a.i,!1)),!a.oa||!ICa(a))a.Ya.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.Aa!==a.i-a.timestampOffset){var b=a.oa.getCurrentTime()-a.i;if(Math.abs(b)<=a.Ia)JCa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.cd()-.1)a.i=a.cd(),a.B.resolve(a.cd()),a.X("ended");else try{var c=a.i-a.timestampOffset;a.ma();a.oa.seekTo(c);a.I.i=c;a.Aa=c;a.u=a.i}catch(d){a.ma()}}};
ICa=function(a){if(!a.oa||0===a.oa.rh()||0<a.oa.Zi())return!1;var b=0<a.oa.getCurrentTime();if(!(a.Z("html5_nondash_mediaelementready_killswitch")||a.videoData.u&&a.videoData.u.i||a.videoData.isLivePlayback)&&EH(a.videoData))return b;if(0<=a.i){var c=a.oa.Bu();if(c.length||!b)return pE(c,a.i-a.timestampOffset)}return b};
JCa=function(a){a.B?a.B.resolve(a.oa.getCurrentTime()):a.ma()};
GCa=function(a,b){a.ma();a.C&&(a.C.resolve(b),a.X("seekend"),g.GH(a.videoData)&&(b=a.Eb(),b["native"]=""+ +a.ea,a.X("ctmp","seekEnd",g.wE(b))));KCa(a)};
KCa=function(a){a.i=NaN;a.Aa=NaN;a.B=null;a.L=null;a.C=null;a.V=!1;a.ea=!1;a.Ia=0;a.va.stop();a.La.stop()};
cX=function(a){a.C&&a.ma();KCa(a)};
LCa=function(a){if(a.oa){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ra.N(a.oa,c.value,function(d){var e=a.oa;d=d.type;a.ma();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.ea&&d!==a.i)a.B=new hT,a.Aa=d,e=e.getCurrentTime(),a.I.i=e,a.seekTo(d,{ye:"playbacktimeline_mediaElementEvent"}),a.ea=!0;break;case "seeked":JCa(a);break;case "loadedmetadata":a.Da?(e="ss.",d=0,(TH(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.Ub,e="utc.",d=a.cd()-a.getIngestionTime(a.cd())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.Ub?(e="mss.",d=a.videoData.Ub+a.Qc()):a.Z("html5_unrewrite_timestamps")&&a.videoData.rq&&(e="stss.",d=a.videoData.rq),d?(a.seekTo(d,{ye:"playbacktimeline_startSeconds"}),a.X("ctmp","startSeconds",e+String(d)),a.Da=!1):a.videoData.Ub&&a.X("ctmp",
"startSeconds",""+e+(a.videoData.Ub+a.Qc())),e=!!d):e=!1;a.Z("html5_nondash_live_seek_killswitch")&&!e&&eX(a)&&(a.i=isFinite(a.i)?g.Nf(a.i,a.getMinSeekableTime(),a.cd()):a.cd());$W(a);break;case "progress":$W(a)}});
a.C||a.u||a.policy.l||!a.oa.rE()||a.seekTo(.01,{ye:"playbacktimeline_setupMediaElement"})}};
MCa=function(a,b){a.i=b;a.u=b;fX(a).then(function(c){GCa(a,c)},function(){cX(a)})};
ACa=function(a){this.i=g.S(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.u=a.Z("html5_seek_over_discontinuities");this.l=a.Z("html5_requires_seek_for_playback_at_zero_killswitch")};
gX=function(){this.i=this.started=!1};
hX=function(){this.i=this.l=void 0};
nX=function(a){this.counter=[0,0,0,0];this.l=new Uint8Array(16);this.i=16;if(!NCa){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);iX=new Uint8Array(256);jX=[];kX=[];lX=[];mX=[];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;iX[f]=e;b=e<<1^(e>>7&&283);var h=b^e;jX.push(b<<24|e<<16|e<<8|h);kX.push(h<<24|jX[f]>>>8);lX.push(e<<24|kX[f]>>>8);mX.push(e<<24|lX[f]>>>8)}NCa=!0}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=(iX[a>>16&255]^d)<<24|iX[a>>8&255]<<16|iX[a&255]<<8|iX[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e};
OCa=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.i=16};
PCa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=jX[c>>>24]^kX[d>>16&255]^lX[e>>8&255]^mX[f&255]^b[h++];var m=jX[d>>>24]^kX[e>>16&255]^lX[f>>8&255]^mX[c&255]^b[h++];var n=jX[e>>>24]^kX[f>>16&255]^lX[c>>8&255]^mX[d&255]^b[h++];f=jX[f>>>24]^kX[c>>16&255]^lX[d>>8&255]^mX[e&255]^b[h++];c=l;d=m;e=n}a=a.l;c=[c,d,e,f];for(d=0;16>d;)a[d++]=iX[c[0]>>>24]^b[h]>>>24,a[d++]=iX[c[1]>>
16&255]^b[h]>>16&255,a[d++]=iX[c[2]>>8&255]^b[h]>>8&255,a[d++]=iX[c[3]&255]^b[h++]&255,c.push(c.shift())};
oX=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()};
RCa=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+QCa[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};
TCa=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;SCa(a);return b};
SCa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0};
UCa=function(a,b,c){a=new nX(a);OCa(a,c);return a.encrypt(b)};
WCa=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=pX(),h={name:"AES-CTR",counter:c,length:128},g.w(p,VCa(a),2);if(3!=p.i)return l=p.l,m=qX.Wv("oan2"),g.w(p,f.encrypt(h,l,b),3);n=p.l;qX.au(m,Math.ceil(b.byteLength/16));return p.return(new Uint8Array(n))})})};
XCa=function(a){var b=new nX(a);return function(c,d){OCa(b,d);return new Uint8Array(b.encrypt(c))}};
VCa=function(a){return pX().importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
YCa=function(a){return g.D(this,function c(){var d=this,e,f,h;return g.z(c,function(l){if(1==l.i)return e=d,f=pX(),g.w(l,VCa(a),2);h=l.l;return l.return(function(m,n){return g.D(e,function r(){var t,u,x;return g.z(r,function(y){if(1==y.i)return t={name:"AES-CTR",counter:n,length:128},u=qX.Wv("oan2"),g.w(y,f.encrypt(t,h,m),2);x=y.l;qX.au(u,Math.ceil(m.byteLength/16));return y.return(new Uint8Array(x))})})})})})};
ZCa=function(){if(g.Ew)return!1;var a=pX();return a?!!a.importKey&&!!a.sign&&!!a.encrypt:!1};
pX=function(){var a;return null===(a=window.crypto)||void 0===a?void 0:a.subtle};
rX=function(a){this.i=a;this.iv=tR(Hx(16))};
$Ca=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){return h.return(WCa(f.i.i,b,c))})})};
sX=function(a){this.i=a;this.Ae={}};
bAa=function(a,b){return b in a.Ae};
aDa=function(a){for(var b=g.q(Object.keys(a.Ae)),c=b.next();!c.done;c=b.next())if(c=c.value,!a.Ae[c].hd){var d=a;d.Ae[c].Md=new uD;tX(d,c)}};
rza=function(a,b){a=a.Ae[b];return a.bytesReceived===a.Wt&&a.yB+a.Md.totalLength===a.bytesReceived};
bDa=function(a,b){var c=new g.J(function(){tX(a,b)},3E3);
c.start();a.Ae[b]={Md:new uD,yB:0,bytesReceived:0,pI:c,mf:!1};a.ma()};
tX=function(a,b){a.ma();b=a.Ae[b];if(!b.mf&&(b.pI.stop(),b.mf=!0,b.hd&&b.hd(),cDa(a))){a=a.i;var c;a.V&&(null===(c=a.xhr)||void 0===c?void 0:c.abort())}};
cDa=function(a){return Object.values(a.Ae).every(function(b){return b.mf})};
dDa=function(a){this.iv=oR(new kR(a),5)};
eDa=function(a){a=oR(new kR(a),4);this.i=new dDa(new uD([a]))};
fDa=function(a){this.i=[];for(a=new kR(a);;){var b=nR(a,2);if(!b)break;this.i.push(b)}};
hDa=function(a){a=new kR(a);this.u=nR(a,1);this.itag=nR(a,3);this.lastModifiedTime=nR(a,4);this.xtags=a.bf(5);nR(a,6);nR(a,8);nR(a,9,-1);nR(a,10);this.i=nR(a,14);this.l=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.xn="audio"===gDa[YD[""+this.itag]]};
iDa=function(a){this.body=null;a=new kR(a);this.onesieProxyStatus=nR(a,1,-1);this.httpStatus=nR(a,2,-1);this.body=oR(a,4)};
jDa=function(a){a=new kR(a);this.startTimeMs=nR(a,1);this.endTimeMs=nR(a,2)};
kDa=function(a){var b=new kR(a);a=b.bf(3);var c=nR(b,5);this.l=nR(b,7);var d=oR(b,14);new jDa(new uD([d]));b=b.bf(15);this.i=a+";"+c+";"+b};
lDa=function(a){this.u=a;this.l=!1;this.i=[]};
uX=function(a){for(;a.i.length&&!a.i[0].Ak;){var b=a.i.shift(),c=b.PE;if(b=b.buffer)mDa(a.u.Fd,c,b);else{b=a.u;b.i[c].ZI=!0;var d=void 0;null===(d=b.Fd.Lq)||void 0===d?void 0:tX(d,c)}}};
nDa=function(a,b){a.i.push({PE:b,Ak:!1});a.l||uX(a)};
vX=function(a){this.Fd=a;this.u={};this.i={};this.l=this.iv=null;this.queue=new lDa(this)};
pDa=function(a,b){var c=b.totalLength;a.ma();var d=!1;switch(a.l){case 0:oDa(a,b).then(function(e){var f=a.Fd;f.yf("oprr");f.l.resolve(e);f.V=!0;f.B.stop()},function(e){wX(a.Fd,e)});
break;case 2:a.Fd.yf("ormk");b=BD(b);a.queue.decrypt(b);a.ma();break;default:d=!0,a.ma()}a.Fd.Nl&&a.Fd.Ha("ombup","id.11;pt."+a.l+";len."+c+(d?";ignored.1":""));a.l=null};
qDa=function(a,b,c){var d=DD(b,0);a.Fd.Nl&&a.Fd.Ha("ombup","id.21;enc."+ +c+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=BD(b,1),d=a.u[d]||null,a.ma(),d&&(a=a.queue,a.i.push({PE:d,buffer:b,Ak:c}),a.l||uX(a)))};
oDa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n,p,r,t,u;return g.z(d,function(x){if(1==x.i){e.Fd.yf("orpr");f=BD(b);var y=e.Fd;var B=e.iv;y=ZCa()?$Ca(y.u,f,B):Promise.resolve(y.u.decrypt(f,B));return g.w(x,y,2)}h=x.l;l=new iDa(new uD([h]));if(1!==l.onesieProxyStatus)return m={st:l.onesieProxyStatus},n=new g.vE("onesie.response.badproxystatus",!1,m),x.return(Promise.reject(n));if(200!==l.httpStatus)return p={st:l.httpStatus},r=new g.vE("onesie.response.badstatus",!1,p),x.return(Promise.reject(r));
t=l.body;u=g.A.TextDecoder?(new TextDecoder).decode(t):g.Za(t);e.ma();e.ma();return x.return(u)})})};
xX=function(){};
yX=function(a){var b=new bva;a.l(b);return new Uint8Array(b.l.buffer,0,b.i)};
zX=function(a){var b=a.value;this.name=a.name;this.value=b};
AX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
BX=function(a){this.i=a};
CX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
DX=function(a,b,c){this.u=a;this.i=b;this.onesieUstreamerConfig=c};
rDa=function(a,b){if(b+1<=a.totalLength){var c=DD(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)a=DD(a,b++);else if(2===c)c=DD(a,b++),a=DD(a,b++),a=(c&63)+64*a;else if(3===c){c=DD(a,b++);var d=DD(a,b++);a=DD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=DD(a,b++);d=DD(a,b++);var e=DD(a,b++);a=DD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),yD(a,c,4)?a=zD(a).getUint32(c-a.u,!0):(d=DD(a,c+2)+256*DD(a,c+3),a=DD(a,c)+256*(DD(a,c+1)+
256*d)),b+=5;return[a,b]};
sDa=function(a){this.l=a;this.i=new uD};
tDa=function(a){var b=g.q(rDa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(rDa(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).oq.split(b),b=d.Lx,d=d.oq,a.l(c,b),a.i=d,tDa(a))};
xDa=function(a,b,c){var d=a.getVideoData().isAd()?.5:.9;c=c*d-16E3;a=oBa(a.rg,a.videoData);d=[];b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=uDa[e]||0;if(!(f&&f>c)){var h=vDa[e]||0;a.i&&h>a.i||d.push({itag:e,byterate:f})}}return d.sort(function(l,m){return wDa.indexOf(YD[l.itag])-wDa.indexOf(YD[m.itag])||m.byterate-l.byterate}).map(function(l){return l.itag})};
zDa=function(a){return[a].concat(g.la(yDa[a]||[]))};
BDa=function(a){function b(h){return h.id}
function c(h){return f[h]||[]}
var d=Wja(ADa,null,0,!1,!1,void 0),e=a.T().B;a=FH(a);var f=kB(a,e,d,function(){return!0});
d=pB(a).map(c).flat();return{video:tB(a).map(c).flat().map(b),audio:d.map(b)}};
CDa=function(a,b){var c=this;this.i=a;this.playerRequest=b;this.xhr=null;this.l=new hT;this.V=this.J=!1;this.B=new g.J(this.HQ,1E4,this);this.L=!1;this.W=this.i.T();this.videoData=this.i.getVideoData();this.Nl=g.GH(this.i.getVideoData());this.I=this.W.Mg;this.u=new rX(this.I.i);this.ea=new sDa(function(d,e){c.C.feed(d,e)});
g.S(this.W.experiments,"html5_onesie_media_bytes")&&WA()&&(this.Lq=new sX(this));this.C=new vX(this)};
mDa=function(a,b,c){var d;null===(d=a.Lq)||void 0===d?void 0:(d.ma(),a=d.Ae[b],a.mf||(a.pI.start(),a.Md.append(c),a.bytesReceived+=c.length,a.hd&&a.hd()))};
wX=function(a,b){var c;a.l.reject(b);a.B.stop();a.yf("ore");null===(c=a.xhr)||void 0===c?void 0:c.abort()};
DDa=function(a){var b=a.xhr;102400<b.pp()&&!a.L&&(a.yf("or100k"),a.L=!0);for(;b.gg();){var c=b.Ki(),d=c.totalLength;a.ma();a.Nl&&a.Ha("ombrss","len."+d);a.ea.feed(c)}};
IDa=function(a){function b(e){return(d.Tg||!(c.Nh?0:c.Z("web_player_gvi_wexit")||(g.vG(c)?"TVHTML5"===c.deviceParams.c?fla(c)?c.Z("web_player_gvi_wexit_living_room_pangea"):c.Z("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.Z("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||MF(c)?c.Z("web_player_gvi_wexit_living_room_simply"):HG(c)||GG(c)?c.Z("web_player_gvi_wexit_living_room_unplugged"):c.Z("web_player_gvi_wexit_living_room_other"):1))&&
!dI(d)?0:"yt"!==c.ya?38===d.va&&"books"===c.playerStyle||30===d.va&&"docs"===c.playerStyle||33===d.va&&"google-live"===c.playerStyle?0:g.S(c.experiments,"web_player_gvi_wexit_all_player_styles"):"adunit"!==$H(d)||g.S(c.experiments,"web_player_gvi_wexit_adunit"))?EDa(a,d).then(function(){EX(a,d)},function(f){EX(a,d,!0);
throw f;}):FDa(a,d,e)}
var c=a.T(),d=a.getVideoData();d.isDisposed();d.Y=!0;return GDa(a)?HDa(a,d).then(function(){EX(a,d)},function(e){e=xE(e);
if(e.i)return EX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
GDa=function(a){var b=a.T();if(!g.S(b.experiments,"html5_onesie")||"yt"!==b.ya)return!1;b=b.Mg;if(!b||!b.i)return a.handleError(new g.vE("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.vE("html5.missingapi",!1,b)),!1):!0};
JDa=function(a){var b=jpa();kpa(b,a.lf());hX.i||(hX.i=new hX);return g.ZM(b,hX.i)};
HDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){if(1==t.i)return b.fetchType="onesie",e=EN(b,a.getPlayerSize(),a.getVisibilityState()),f=new CDa(a,e),g.w(t,f.fetch(),2);h=t.l;l={player_response:h};b.Y=!1;b.al=f.Lq;b.TQ=f.SN;g.yH(b,l,!0);if(b.Y||wH(b))return t.return(Promise.resolve());b.al=void 0;m={};n="onesie.response";p=!1;b.errorCode?(n="auth",m.ec=b.errorCode,m.ed=b.errorDetail,m.es=b.di||"",p=!0):(m.successButUnplayable="1",m.disposed=""+ +b.isDisposed(),
m.afmts=""+ +/adaptiveFormats/.test(h),m.cpn=b.clientPlaybackNonce);r=new g.vE(n,p,m);return t.return(Promise.reject(r))})})};
EDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t;return g.z(d,function(u){switch(u.i){case 1:e=b.isAd(),f=!e,h=e?1:3,l=0;case 2:if(!(l<h)){u.wb(4);break}if(!(0<l)){u.wb(5);break}return g.w(u,lh(5E3),6);case 6:m=new g.Pv("Retrying OnePlatform request",{attempt:l}),g.cy(m);case 5:return ta(u,7),g.w(u,KDa(a,b),9);case 9:return u.return();case 7:n=va(u);p=xE(n);r=p.errorCode;f&&"manifest.net.badstatus"===r&&"401"===p.details.rc&&(f=!1,l===h-1&&(h+=1));if("auth"===r||"manifest.net.retryexhausted"===
r)return u.return(Promise.reject(p));a.handleError(p);if(p.i){u.wb(4);break}case 3:l++;u.wb(2);break;case 4:return t=e?"auth":"manifest.net.retryexhausted",u.return(Promise.reject(new g.vE(t,!0,{backend:"op"})))}})})};
KDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I;return g.z(d,function(L){if(1==L.i)return b.fetchType="gp",e=JDa(b),f=EN(b,a.getPlayerSize(),a.getVisibilityState()),h=g.JM(LDa),l=b.lf(),m=(0,g.P)(),n=!1,p="empty",r=0,a.yf("ps_s"),g.w(L,g.eL(e,f,h),2);t=L.l;a.yf("ps_r");if(b.isDisposed())return L.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 u=a.T(),x=400===r||429===r,y=
((0,g.P)()-m).toFixed(),B={backend:"op",rc:""+r,rt:y,reason:p,has_kpt:b.jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:l?"1":"0",has_vvt:b.Aa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.zg||"",token_eq:l===b.lf()?"1":"0"},G="manifest.net.connect",429===r?G="auth":200<r&&(G="manifest.net.badstatus"),L.return(Promise.reject(new g.vE(G,x,B)));b.Y=!1;g.yH(b,{raw_player_response:t},
!0);if(b.errorCode)return H={ec:b.errorCode,ed:b.errorDetail,es:b.di||""},L.return(Promise.reject(new g.vE("auth",!0,H)));if(!b.Y&&!wH(b))return I=b.isAd()?"auth":"manifest.net.retryexhausted",L.return(Promise.reject(new g.vE(I,!0,{successButUnplayable:"1",hasMedia:RH(b)?"1":"0"})));g.sa(L)})})};
FDa=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:f=gta(a.T(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),h=function(){return!0},l=function(B){B=xE(B);
if(B.i)return Promise.reject(B);a.handleError(B);return!1},n=(m=b.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.wb(4);break}r=f;if(!(0<p)){y.wb(5);break}return g.w(y,lh(5E3),6);case 6:t={playerretry:p,playerretrysrc:c},m||(t.recover="embedded"),r=os(f,t);case 5:return g.w(y,MDa(b,r).then(h,l),7);case 7:if(u=y.l)return y.return();p++;y.wb(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.cy(new g.Pv("b/152131571",btoa(f)))}catch(B){}return y.return(Promise.reject(new g.vE(x,!0,{backend:"gvi"})))}})})};
MDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.T(),(l=hta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=os(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.eF(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0<
Object.keys(m).length&&(f.headers=m),p=(0,g.P)(),r=function(H){if(!a.isDisposed()){H=H?H.status:-1;var I=400===H||429===H,L=((0,g.P)()-p).toFixed();L={backend:"gvi",rc:""+H,rt:L};var T="manifest.net.connect";429===H?T="auth":200<H&&(T="manifest.net.badstatus");return Promise.reject(new g.vE(T,I,L))}},t=function(H){return r(H.xhr)},g.w(G,HE(et,h,f).then(void 0,t),2);
u=G.l;if(!u||!u.responseText)return G.return(r(u));a.Y=!1;x=js(u.responseText);g.yH(a,x,!0,void 0);if(a.errorCode)return y={ec:a.errorCode,ed:a.errorDetail,es:a.di||""},G.return(Promise.reject(new g.vE("auth",!0,y)));if(!a.Y&&!wH(a))return B=a.isAd()?"auth":"manifest.net.retryexhausted",G.return(Promise.reject(new g.vE(B,!0,{successButUnplayable:"1"})));g.sa(G)})})};
EX=function(a,b,c){c=void 0===c?!1:c;g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i){f=a.T();if(c&&(!g.JG(f)||"embedded"!==$H(b))||b.ql||"adunit"!==$H(b)&&(g.vG(f)||wG(f)||g.ZF(f)||g.YF(f)||"WEB_CREATOR"===f.deviceParams.c))return p.return();ta(p,2);h=JDa(b);l=wsa(b);m=g.JM(NDa);a.yf("wn_s");return g.w(p,g.eL(h,l,m),4)}if(2!=p.i)return n=p.l,a.yf("wn_r"),n&&!n.error&&g.yH(b,{raw_watch_next_response:n},!1),ua(p,0);va(p);g.sa(p)})})};
ODa=function(a){function b(){a.yf("virc");SA("virc","video_to_ad")}
a.yf("vir");SA("vir","video_to_ad");var c=IDa(a);c.then(b,b);return c};
g.IX=function(a,b,c,d,e,f,h,l){g.Q.call(this);var m=this;this.W=a;this.playerType=b;this.Mb=c;this.Uv=d;this.getVisibilityState=f;this.visibility=h;this.sH=l;this.Gt=new qCa(this.W);this.yd=null;this.Vr=new cW;this.nk=null;this.rg=new qW(this.W,this.Uv,this);this.QC=!0;this.mediaSource=this.Qa=null;this.Di=[];this.Aj=new gX;this.ke=this.Ur=null;this.Kk=new gX;this.Bv=null;this.bJ=this.Cp=!1;this.Xy=NaN;this.Jz=new g.J(this.JU,500,this);this.playerState=new g.GK;this.Zy=[];this.Ks=new vx;this.videoData=
new g.vH(this.W);this.oa=null;this.Hp=new g.J(this.cT,15E3,this);this.ME=new g.J(this.xU,g.U(this.W.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.RL=0;this.vE=this.Zu=!1;this.Nn=NaN;this.Vq=!1;this.At=0;this.tB=new g.J(this.yE,4500,this);this.Sx=!1;this.Zx=NaN;this.Gz=new RT(new Map([["bufferhealth",function(){var n=m.fc;return n.oa?EK(n.oa):0}],
["bandwidth",function(){return m.oC()}],
["networkactivity",function(){return m.W.schedule.V}],
["livelatency",function(){return m.isAtLiveHead()&&m.yc()?FX(m):NaN}],
["rawlivelatency",function(){return FX(m)}]]));
this.BB=!0;this.Ru=0;this.loop=!1;this.playbackRate=1;this.CJ=0;this.xH=!1;this.Yy=[];this.hD=this.fL=0;this.uE=this.wM=!1;this.nB=new g.J(this.rQ,0,this);this.le=null;this.cz=void 0;this.AJ=0;this.hK=new g.J(this.AP,0,this);this.fz=new g.J(this.AL,3E4,this);this.KR=[this.Jz,this.Ks,this.nB,this.Hp,this.fz,this.Jz,this.tB,this.Gz,this.hK,this.ME];this.Re=function(){var n=m.Vb;n.l.W.hc||3===n.l.i.getVisibilityState()||(n.l.W.hc=!0);cCa(n);if(n.u){var p=n.u;p.I&&0>p.l&&3!==p.i.i.getVisibilityState()&&
DBa(p)}n.qoe&&(n=n.qoe,n.Da&&0>n.u&&n.i.W.hc&&MBa(n));g.U(m.W.experiments,"html5_background_quality_cap")&&m.Qa&&GX(m);m.W.al&&!m.videoData.backgroundable&&m.oa&&!m.Df()&&(m.isBackground()&&m.oa.xw()?(m.Ha("bgmobile","suspend"),m.em(!0)):m.isBackground()||HX(m)&&m.Ha("bgmobile","resume"))};
this.ma();this.Bh=new PW(function(){return m.getCurrentTime()},function(){return m.getPlaybackRate()},function(){return m.getPlayerState()},function(n,p){n!==g.Rz("endcr")||g.V(m.playerState,32)||qT(m);
e(n,p,m.playerType)});
g.F(this,this.Bh);PDa(this,function(){return{}});
QDa(this);qxa(this.Re);this.visibility.subscribe("visibilitystatechange",this.Re);RDa(this);!this.Z("html5_log_coat_killswitch")&&this.Z("html5_high_res_logging")&&(a=pCa())&&this.Ha("cblt",a)};
PDa=function(a,b){!a.Vb||a.Vb.isDisposed();a.Vb=new g.OW(new NW(a.videoData,a.W,a,b))};
QDa=function(a){!a.Pd||a.Pd.isDisposed();a.Pd=new lW(a);a.Pd.subscribe("playbackstalledatstart",function(){return a.X("playbackstalledatstart")});
a.Pd.subscribe("signatureexpiredreloadrequired",function(){return a.X("signatureexpired")});
a.Pd.subscribe("nonfatalerror",function(b){a.X("nonfatalerror",b)})};
JX=function(a){var b=a.Vb;b.u&&b.u.send();if(b.qoe){var c=b.qoe;if(c.C){"PL"===c.ld&&(c.ld="N");var d=g.pT(c.i);g.vW(c,d,"vps",[c.ld]);c.I||(0<=c.u&&(c.l.user_intent=[c.u.toString()]),c.I=!0);c.ya=!0;c.reportStats(d)}}if(b.l.videoData.enableServerStitchedDai)for(c=g.q(b.B.values()),d=c.next();!d.done;d=c.next())YBa(d.value);else b.i&&YBa(b.i);b.dispose();g.ff(a.Vb)};
VI=function(a){return a.oa&&a.oa.Bo()?a.oa.Ge():null};
KX=function(a){if(a.videoData.isValid())return!0;a.wf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
bT=function(a,b){b=void 0===b?!1:b;a.cz&&a.Z("html5_match_codecs_for_gapless")&&(a.videoData.Za=!0,a.videoData.Xb=!0,a.videoData.YA=a.cz.rC(),a.videoData.aB=a.cz.sC());a.Cp=b;!KX(a)||a.Aj.started?g.vG(a.W)&&a.videoData.isLivePlayback&&a.Aj.started&&!a.Aj.isFinished()&&!a.Cp&&a.IB():(a.Aj.start(),b=a.Vb,g.pT(b.l),b.qoe&&LBa(b.qoe),a.IB())};
SDa=function(a){var b=a.videoData;ODa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=xE(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.wf("auth",unescape(a.videoData.errorReason),g.wE(c.details),a.videoData.errorDetail,a.videoData.di||void 0):a.handleError(c))})};
txa=function(a,b){a.le=b;a.Qa&&(a=a.Qa,b=new g.PV(b),a.L=b,a.u&&(a.u.ea=b))};
UDa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),a.BB=!0,a.ma(),4!==a.playerType&&(a.Di=g.rb(a.videoData.ea)),RH(a.videoData)){LX(a).then(function(){a.isDisposed()||(a.Cp&&(a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Jb(IK(IK(a.playerState,512),1)),HX(a)),TDa(a,a.videoData),a.Aj.i=!0,MX(a,"dataloaded"),a.Kk.started?NX(a):a.Cp&&!a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Jb(IK(IK(a.playerState,512),1)),CBa(a.rg,a.ke))});
a.Z("html5_log_media_perf_info")&&a.Ha("loudness",""+a.videoData.Yi.toFixed(3),!0);var b=dna(a.videoData);b&&a.Ha("playerResponseExperiment",b,!0);a.sB()}else MX(a,"dataloaded")};
LX=function(a){oW(a);a.ke=null;var b=sCa(a.W,a.videoData,a.Df());a.Ur=b;a.Ur.then(function(c){VDa(a,c)},function(c){a.isDisposed()||(c=xE(c),a.visibility.isBackground()?(OX(a,"vp_none_avail"),a.Ur=null,a.Aj.reset()):(a.Aj.i=!0,a.wf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.wE(c.details))))});
return b};
pW=function(a){a.ma();LX(a).then(function(){return HX(a)});
g.MK(a.playerState)&&a.playVideo()};
VDa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()&&(a.ma(),a.ke=b,DCa(a.fc,a.ke),a.videoData.isLivePlayback&&(0<a.videoData.Ub&&!KH(a.videoData)||a.seekTo(a.cd(),{ye:"videoplayer_playbackData"})),a.videoData.u.i&&(a.Qa?g.cy(Error("Duplicated Loader")):WDa(a)),PX(a),a.Z("html5_nonblocking_media_capabilities"))){var c=Date.now();rBa(a.rg,b).then(function(){var d=Date.now();a.Ha("mclatency",(d-c).toString())})}};
QX=function(a){a.ma();a.oa&&a.oa.Rq();bT(a);KX(a)&&!g.V(a.playerState,128)&&(a.Kk.started||(a.Kk.start(),a.Jb(IK(IK(a.playerState,8),1))),NX(a))};
NX=function(a){a.isDisposed();a.ma();if(a.Kk.isFinished())a.ma();else if(a.Aj.isFinished())if(g.V(a.playerState,128))a.ma();else if(a.Di.length)a.ma();else{if(!a.Bh.started){var b=a.Bh;b.started=!0;b.Wk()}if(a.Ol())a.ma();else{a.Qa&&(b=a.Qa.timing,a.bJ=!!b.i&&!!b.l);a.Kk.isFinished()||(a.Kk.i=!0);!a.videoData.isLivePlayback||0<a.videoData.Ub&&!KH(a.videoData)||(a.ma(),a.seekTo(Infinity,{ye:"videoplayer_readying"}),a.isBackground()&&(a.vE=!0));b=a.Vb;if(b.qoe){b=b.qoe;b.i.videoData.Xi&&AW(b,b.i.videoData.Xi);
if(b.i.videoData.isLivePlayback){var c=b.i.videoData.i;KH(b.i.videoData)&&AW(b,"manifestless");c&&XE(c)&&AW(b,"live-segment-"+XE(c).toFixed(1))}"yt"!==b.i.W.ya&&(b.l.len=[b.i.videoData.lengthSeconds.toFixed(2)]);b.i.videoData.cotn&&!eI(b.i.videoData)&&IBa(b,!0)}a.ma();a.X("playbackready",a);RA("pbr",a.Mb.timerName)||(a.Mb.tick("pbr"),SA("pbr","video_to_ad"))}}else a.ma()};
qT=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.oa&&a.oa.pause();b=b?new g.GK(14):new g.GK;a.Jb(b)};
TDa=function(a,b){b.endSeconds&&b.endSeconds>b.startSeconds&&(b=b.endSeconds,a.nk&&(a.removeCueRange(a.nk),a.nk=null),a.nk=new g.Oz(1E3*b,0x7ffffffffffff),a.nk.namespace="endcr",a.addCueRange(a.nk))};
SX=function(a,b,c,d){a.videoData.l=c;d&&XDa(a,b,d);var e=(d=g.RX(a))?d.tc():"";d=a.Vb;c=new jBa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.pT(d.i);g.vW(d,e,"vfs",[c.i.id,c.l,d.qb,c.reason]);d.qb=c.i.id;var f=d.i.i.getPlayerSize();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.EG();1<h&&f.push(h);g.vW(d,e,"view",f)}d.Ia||(d.i.videoData.ya&&AW(d,"rqs"),d.i.videoData.i&&hB(d.i.videoData.i)&&(d.l.preload=["1"]));d.Ia=!0;d.C=!0;"m"===c.reason&&100===++d.Lb&&(c=d.l.fcnz,c||
(c=[],d.l.fcnz=c),c.push("2"));g.vW(d,e,"vps",[d.ld]);d.reportStats(e)}c=a.rg;c.B=0;c.l=0;a.X("internalvideoformatchange",a.videoData,"m"===b)};
g.RX=function(a){var b=TX(a);return cB(b)||!a.ke?null:g.fb(a.ke.i.videoInfos,function(c){return b.B(c)})};
XDa=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.Vb;c=new jBa(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.pT(e.i);c.i.id!==e.Aa&&(g.vW(e,f,"afs",[c.i.id,e.Aa,c.reason]),e.Aa=c.i.id)}d||a.X("internalaudioformatchange",a.videoData,"m"===b)}};
TX=function(a){if(a.ke){var b=a.rg;var c=a.ke,d=a.Dr(),e=a.visibility;a=mBa(b);if(cB(a)){a=qBa(b,c);var f=zBa(b,c),h=nBa(b,c.videoData,c);e=ABa(b,e);var l=4320;!b.W.i||g.WF(b.W)||Dt()||g.S(b.W.experiments,"hls_for_vod")||(l=g.aB.medium);var m=g.U(b.W.experiments,"html5_default_quality_cap");if(m){var n=!!c.i.i&&!c.videoData.zg&&!c.videoData.Yd,p=g.U(b.W.experiments,"html5_quality_cap_min_age_secs");n&&p&&(n=b.W.schedule.L,n=(0,g.P)()-n>1E3*p);n&&(l=Math.min(l,m))}m=g.U(b.W.experiments,"html5_random_playback_cap");
p=/[a-h]$/;m&&p.test(c.videoData.clientPlaybackNonce)&&(l=Math.min(l,m));(m=g.U(b.W.experiments,"html5_not_vp9_supported_quality_cap"))&&!iE('video/webm; codecs="vp9"')&&(l=Math.min(l,m));if(p=m=g.U(b.W.experiments,"html5_hfr_quality_cap"))a:{p=c.i;if(p.i)for(p=g.q(p.videoInfos),n=p.next();!n.done;n=p.next())if(32<n.value.ib().fps){p=!0;break a}p=!1}p&&(l=Math.min(l,m));(m=g.U(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(l=Math.min(l,m));l=BBa(b,c,l);l=new ZA(0,4320===
l?0:l,!1,"d");m=kBa(b,c);p=m.compose;a:if((n=c.i)&&n.videoInfos.length){for(var r=g.q(n.videoInfos),t=r.next();!t.done;t=r.next())if(t=t.value,t.u){n=t.ib().i;break a}n=n.videoInfos[0].ib().i}else n=0;ut()&&!g.vG(b.W)&&$D(c.i.videoInfos[0])&&(n=Math.min(n,g.aB.large));n=new ZA(0,n,!1,"o");f=p.call(m,n).compose(l).compose(e).compose(h).compose(f);h=f.compose;if((m=c.videoData.TQ)&&m.i.length&&cB(c.videoData.yq)){e=new Map;l=g.q(c.i.videoInfos);for(p=l.next();!p.done;p=l.next())p=p.value,e.set(+p.tc(),
p.video.i);l=[];m=g.q(m.i);for(p=m.next();!p.done;p=m.next())(p=e.get(p.value))&&l.push(p);e=Math.min.apply(Math,g.la(l));l=Math.max.apply(Math,g.la(l));c.videoData.yq=new ZA(e,l,!1,"u")}a=h.call(f,c.videoData.yq).compose(a)}else b.Z("html5_perf_cap_override_sticky")&&(a=a.compose(zBa(b,c)));b.Z("html5_varispeed_playback_rate")&&(a=a.compose(qBa(b,c)));b=c.videoData.xq.compose(a).compose(c.videoData.tI).compose(d)}else b=uH;return b};
Hwa=function(a,b,c){a.videoData.xq=b;if(a.ke&&c){c=a.rg;var d=a.ke,e,f;if(d.i.i){var h=EF(),l=d.i.videoInfos[0].ib().i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.Z("html5_varispeed_playback_rate")&&(h=yka(c.W.B,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.i.setPlaybackRate(1));YDa(g.aB[eB(b)],(null===(f=null===(e=d.videoData.l)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0);c.W.schedule.policy.B=480<=EF();if(c.Z("html5_exponential_memory_for_sticky")){b=c.W.ac;e=1;var m=void 0===
m?!1:m;Mka(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Ll["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Ll["sticky-lifetime"]=0);m&&.0625<FF(b,"sticky-lifetime")&&(e=2*b.Ll["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.Ll["sticky-lifetime"]=e;b.B.start()}c.Z("html5_perf_cap_override_sticky")&&ZDa(c.Z("html5_perserve_av1_perf_cap"))}}}PX(a)};
PX=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.u){if(a.videoData.u.i)UX(a);else{var b=TX(a),c=a.videoData;a:{var d=a.videoData.xb;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.kf(),l=g.aB[h.ib().quality];if((!b.u||"auto"!==h.ib().quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Ra=d;SX(a,b.reason,$Da(a,a.videoData.Ra))}if(a.Z("html5_check_unstarted")?g.MK(a.playerState):a.yc())a.fc.Da=!1,a.playVideo()}};
UX=function(a){if(a.videoData.u&&a.videoData.u.i){var b=TX(a),c=a.videoData.l;if(!a.Z("html5_dynamic_av1_hybrid_threshold")&&c&&bE(c)){var d=dF(a.W);if(d&&d<c.ib().i&&d!==a.AJ){a.AJ=d;LX(a);return}}if(a.Qa&&(a=a.Qa,!a.isDisposed()&&!$A(a.l.u,b)&&a.videoTrack)){a.ma();var e=a.l.u;jAa(a,Fya(a.l,b));FV(a);c=KU(a.l)&&"m"===b.reason&&a.l.ea;d=a.policy.Wi&&"l"===b.reason&&qV(a.videoTrack);b=("b"===b.reason||"o"===b.reason)&&e.i>b.i;e=a.l.Ua&&!zE();c||d||b||e?(a.Ha("reattachOnConstraint",c?"u":d?"drm":e?
"codec":"perf"),a.X("reattachrequired")):g.Fq(a.ea)}}};
GX=function(a){a.Z("html5_nonblocking_media_capabilities")?UX(a):PX(a)};
WDa=function(a){a.Z("html5_probe_media_capabilities")&&rma(a.videoData.u);gka(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.W.deviceParams.c,cver:a.W.deviceParams.cver});var b=a.W,c=a.videoData,d=new g.Esa,e=Dsa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,wk:c.wk});d.B=e;d.Pj=b.Z("html5_disable_codec_for_playback_on_error");d.Ui=b.Z("html5_max_drift_per_track_secs")||b.Z("html5_rewrite_manifestless_for_sync")||b.Z("html5_check_segnum_discontinuity");d.hc=b.Z("html5_unrewrite_timestamps");
d.Ub=b.Z("html5_stop_overlapping_requests");d.Gg=g.U(b.experiments,"html5_min_readbehind_secs");d.ql=g.U(b.experiments,"html5_min_readbehind_cap_secs");d.ol=g.U(b.experiments,"html5_max_readbehind_secs");d.Dq=g.S(b.experiments,"html5_trim_future_discontiguous_ranges");d.Ri=b.Z("html5_append_init_while_paused");d.Vh=g.U(b.experiments,"html5_max_readahead_bandwidth_cap");d.Mg=g.U(b.experiments,"html5_post_interrupt_readahead");d.L=g.U(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.ac=g.U(b.experiments,"html5_subsegment_readahead_timeout_secs");d.uo=g.U(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Xb=g.U(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.xo=g.U(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Kh=g.U(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.zo=g.U(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Jg=b.Z("html5_peak_shave");d.wq=b.Z("html5_restrict_streaming_xhr_on_sqless_requests");
d.jl=g.U(b.experiments,"html5_max_headm_for_streaming_xhr");d.vl=b.Z("html5_pipeline_manifestless_allow_nonstreaming");d.Ep=b.Z("html5_prefer_server_bwe3");d.Nh=1024*g.U(b.experiments,"html5_video_tbd_min_kb");d.bl=b.Z("html5_last_slice_transition");d.po=b.Z("html5_store_xhr_headers_readable");d.Xj=b.Z("html5_enable_packet_train_response_rate");d.qb=g.U(b.experiments,"html5_probe_primary_delay_base_ms")||d.qb;d.Ig=b.Z("html5_no_placeholder_rollbacks");d.qo=b.Z("html5_subsegment_readahead_enable_mffa");
b.Z("html5_allow_video_keyframe_without_audio")&&(d.Ra=!0);d.Tg=b.Z("html5_reattach_on_stuck");d.Oq=b.Z("html5_webm_init_skipping");d.Vg=g.U(b.experiments,"html5_request_size_padding_secs")||d.Vg;d.Lc=b.Z("html5_abs_buffer_health");d.al=b.Z("html5_interruption_resets_seeked_time");d.Ce=g.U(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ce;d.Zc=b.Z("html5_explicitly_dispose_xhr");d.rq=b.Z("html5_restart_on_unexpected_detach");d.xq=b.Z("html5_rewrite_manifestless_for_continuity");d.Xd=
g.U(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Be=g.U(b.experiments,"html5_max_drift_per_track_secs");d.yq=b.Z("html5_rewrite_manifestless_for_sync");d.Tb=g.U(b.experiments,"html5_static_abr_resolution_shelf");d.Nj=!b.Z("html5_encourage_array_coalescing");d.Xi=b.Z("html5_crypto_period_secs_from_emsg");d.Qj=b.Z("html5_disable_reset_on_append_error");d.ck=b.Z("html5_filter_non_efficient_formats_for_safari");d.Fi=b.Z("html5_format_hybridization");d.Pi=b.Z("html5_abort_before_separate_init");
d.zq=b.Z("html5_serialize_server_stitched_ad_request");d.Hg=b.Z("html5_never_pause_appends");d.rl=g.U(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Zj=b.Z("html5_mfl_extend_max_request_time");d.Cb=b.Z("html5_reattach_on_quota_exceeded");d.jo=b.Z("html5_enable_server_stitched_alr");d.Ij=b.Z("html5_attach_po_token_to_bandaid");b.Z("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.u.cg()===e.policy.u?d.V=10:d.V=c.minReadAheadMediaTimeMs/
1E3||d.V,d.Pc=c.readAheadGrowthRateMs/1E3||d.Pc);Dl&&(d.Y=41943040);d.Ua=!FE();g.vG(b)||!FE()?(e=b.experiments,d.I=8388608,d.J=524288,d.Mj=5,d.eb=2097152,d.va=1048576,d.Xp=1.5,d.ul=!1,d.Ib=4587520,xt()&&(d.Ib=786432),d.l*=1.1,d.u*=1.1,d.Lb=!0,d.Y=d.I,d.fb=d.J,d.wc=g.S(e,"persist_disable_player_preload_on_tv")||g.S(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.l*=1.3,d.u*=1.3);g.bj&&rt("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.J=1572864,e&&(d.Ib=
812500,d.Ec=1E3,d.Eq=5,d.va=2097152));!b.Z("html5_disable_firefox_init_skipping")&&g.cj&&(d.Lb=!0);b.supportsGaplessAudio()||(d.Sj=!1);OF&&(d.Ga=!0);Ct()&&(d.Jh=!0);var f;e=null===(f=c.i)||void 0===f?void 0:oB(f);if(KH(c)){d.Aa=b.Z("html5_used_segment_info_cuepoint");d.Zk=!0;d.oo=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.Z("html5_disable_low_pipeline"))d.fl=2,d.ll=4;d.Dl=c.defraggedFromSubfragments;c.Ld&&(d.Bb=!0);g.SH(c)&&(d.La=!1);d.Vi=g.IG(b)}c.isAd()&&(d.jb=0,d.wh=0);Lma(c)&&
(d.Da=!0,b.Z("html5_aggressive_timeout_for_streaming_xhr")&&(d.Ec=400,d.xb*=3,d.il=2,d.He=3,d.bh=1.4));d.Za=b.Z("html5_enable_subsegment_readahead_v3")||b.Z("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Ya=c.ya;d.ea=d.Ya&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.GH(c));It()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.Z("html5_disable_move_pssh_to_moov")&&e&&(d.Lb=!1);e&&(d.Tg=!1);var h=0;b.Z("html5_live_use_alternate_bandwidth_window_sizes")&&(h=
b.schedule.policy.l,c.isLivePlayback&&(h=g.U(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.ea.i=KH(c)?.5:0;if(!f.policy.i&&h&&(f=f.u,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=Cka(f)}d.Hg=c.isLivePlayback;switch(LH(c)){case 21530001:d.Hi=b.Z("html5_live_smoothly_extend_max_seekable_time");d.Za=!0;"LOW"===c.latencyClass?d.L=g.U(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.L=g.U(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Ig=!0;break;case 2153E4:d.Za=!1}d.Ga=d.Ga||c.ut;d.ya=c.Za;g.GH(c)&&(d.Gd=!0);c.Za&&!e&&b.Z("html5_hack_gapless_init")&&(d.Zg=!0);
(e=g.U(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Za&&c.isAd()&&(d.l*=e,d.u*=e);eI(c)&&(d.i=c.videoId,d.Lc=!0);d.Wi=c.Mg;b.Z("html5_dynamic_av1_hybrid_threshold")&&(d.Rj=!0,d.Ia=dF(b,{},c.u||void 0));c=480<=EF();e=g.U(b.experiments,"html5_deadzone_multiplier")||1;(f=g.U(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.l*=e;d.u*=e;if(e=g.U(b.experiments,"html5_request_sizing_multiplier"))d.qq=e;mB(b.B,nB.BITRATE)&&(d.Ib=NaN);b.B.l&&(d.Yj="; "+nB.EXPERIMENTAL.name+"=allowed");
c&&(d.Tb=0);d.Fp=b.Z("html5_rec_2020_matrix_correction_killswitch");g.S(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&OF&&(d.wp=!0);g.S(b.experiments,"debug_html5_random_stun_format")&&(d.Rg=!0);g.S(b.experiments,"html5_log_audio_abr")&&(d.dl=!0);b=b.experiments;g.S(b,"html5_audio_only_eos_fix_killswitch")&&(d.Lj=!0);g.S(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Gp=!0);g.S(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Jh=!1);g.S(b,"html5_skip_buffer_check_seek_to_head")&&
(d.Oj=!0);g.S(b,"html5_mfl_config_fallback_killswitch")&&(d.Yi=!1);b=a.getAudioTrack();b=b.Nc.isDefault?void 0:b;dW(a.Vr);c=a.W.schedule;e=a.videoData.i;f=a.videoData.u;h=TX(a);l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.al;delete m.al;a.Qa=new g.BV(a,c,d,e,f,h,b,l,n);a.Qa.subscribe("newDrmInfo",a.sT,a);a.Qa.subscribe("videoformatchange",a.LD,a);a.Qa.subscribe("audioformatchange",a.eT,a);a.Qa.subscribe("error",a.handleError,a);a.Qa.subscribe("reattachrequired",a.vV,a);a.Qa.subscribe("constraint",
a.SU,a);a.Qa.subscribe("timestamp",a.qR,a);a.Qa.subscribe("localmediachange",a.fT,a);a.Qa.subscribe("localplaybackfailed",a.lP,a);d=aEa(a)?!0:a.Cp&&g.vG(a.W)&&a.videoData.isLivePlayback;a.Qa.initialize(a.getCurrentTime(),TX(a),d);a.videoData.probeUrl&&(a.Qa.Ga=a.videoData.probeUrl);(a.Di.length||a.Cp)&&VX(a,!1);dX(a.fc,a.Qa);a.Pd.Qa=a.Qa;a.le&&(d=a.Qa,b=new g.PV(a.le),d.L=b,d.u&&(d.u.ea=b));g.fI(a.videoData)&&(a.Qa.policy.bk=2)};
RDa=function(a){a.fc=new aX(a.videoData,a.W,a.visibility,function(){return g.jb(a.Di,"ad")});
g.F(a,a.fc);a.fc.subscribe("seekto",function(b,c){a.fc.u=b;var d=a.Gt;d.mediaTime=b;d.i=!0;c||WX(a);a.nk&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.nk),a.nk=null);b<a.cd()-.01&&(c=JK(a.playerState,2),g.V(c,8)&&(c=JK(c,4)),a.Jb(c));a.X("SEEK_TO",a,b)});
a.fc.subscribe("seekstart",function(){zT(a)});
a.fc.subscribe("seekend",function(){return a.X("SEEK_COMPLETE")});
a.fc.subscribe("newmediaelementrequired",function(){return kW(a)});
a.fc.subscribe("ended",function(){qT(a)});
a.fc.subscribe("ctmp",a.Ha,a);a.fc.subscribe("qoeerror",a.ue,a);a.fc.subscribe("livereadaheadchanged",function(b){var c=a.Vb;c.qoe&&(c=c.qoe,g.vW(c,g.pT(c.i),"lra",[b]),c.Ha("live-readahead-seconds",b.toString()))});
a.fc.subscribe("releaseadsprerolllock",function(){a.Ed("ad")});
a.fc.subscribe("skipslowad",function(){var b;(b=a.Z("html5_check_ad_presenting_killswitch"))||(b=(b=a.sH.Gc())?a.videoData.isAd()&&b.getVideoData().Vc===a.getVideoData().Vc:!1);!b&&a.videoData.Ld||a.wf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
oW=function(a){a.Qa&&(a.Qa.dispose(),a.Qa=null,dX(a.fc,null),a.Pd.Qa=null);XX(a)};
XX=function(a){if(a.mediaSource){a.ma();if(a.Qa){var b=KH(a.videoData)&&a.videoData.Ld&&!a.videoData.isAd();IV(a.Qa,b)}a.mediaSource.dispose();a.mediaSource=null}};
YX=function(a){if(a.mediaSource)return a.mediaSource.Vu;a.ma();a:if(a.Z("html5_application_media_source"))a.X("requestmediasource",a);else{var b=g.U(a.W.experiments,"html5_source_buffer_attach_retry_limit")||0;a.RL<b&&a.ME.start();try{var c=a.oa.mp()}catch(d){if(nW(a.Pd,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.wf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}lT(a,c)}return a.mediaSource?a.mediaSource.Vu:
null};
lT=function(a,b){bEa(a);a.mediaSource=b;Mja(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ma();var d=a.getDuration();!d&&KH(a.videoData)&&(d=g.U(a.W.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.ma(),c>a.mediaSource.getDuration()&&a.mediaSource.Bj(c)):a.mediaSource.Bj(d);var e=a.Qa,f=a.mediaSource;e.V&&(e.ma(),HV(e),e.V=!1);e.ma();eAa(e);if(!DE(f)){var h=e.videoTrack.i.info.mimeType+e.policy.Yj,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 yE(p,f.Ee,"0",XD(l),!1),u=new yE(r,f.Ee,"1",XD(h),!0);f.i=t;f.l=u;g.F(f,t);g.F(f,u)}fV(e.videoTrack,f.l||null);fV(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();yx(f.i,e.La,e);yx(f.l,e.La,e);e.uh();a.X("mediasourceattached");a.ME.stop()}}catch(x){g.cy(x),
a.handleError(new g.vE("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
bEa=function(a){a.Qa?g.bh(a.Qa.seek(a.getCurrentTime()-a.Qc()),function(){}):WDa(a)};
kW=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return e.Qa&&e.Qa.isDisposed()&&oW(e),e.X("newelementrequired"),b?g.w(f,LX(e),2):f.wb(2);g.V(e.playerState,8)&&e.playVideo();g.sa(f)})})};
nxa=function(a,b){a.Ha("newelem",b);kW(a)};
WX=function(a){a.Mb.u.l=(0,g.P)();g.V(a.playerState,32)||(a.Jb(IK(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.X("beginseeking",a));a.Rb()};
zT=function(a){g.V(a.playerState,32)?(a.Jb(KK(a.playerState,16,32)),a.X("endseeking",a)):g.V(a.playerState,2)||a.Jb(IK(a.playerState,16));var b=a.Mb.u,c=a.videoData.clientPlaybackNonce;c&&!isNaN(b.i)&&(a=g.V(a.playerState,4)?"pbp":"pbs",LA("seek",["pbp","pbs"],b.i),g.MA("cpn",c,"seek"),isNaN(b.l)||NA("pl_ss",b.l,"seek"),NA(a,(0,g.P)(),"seek"),b.reset())};
MX=function(a,b){a.X("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
cEa=function(a){g.Cb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Ks.N(this.oa,b,this.TD,this)},a);
a.W.Lj&&a.oa.Bo()&&(a.Ks.N(a.oa,"webkitplaybacktargetavailabilitychanged",a.aS,a),a.Ks.N(a.oa,"webkitcurrentplaybacktargetiswirelesschanged",a.bS,a))};
eEa=function(a){a.Z("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&dEa(a)&&a.Jz.start()};
dEa=function(a){if(!a.oa)return!1;var b=a.oa.getCurrentTime();a=a.oa.getDuration();return!!(1<b&&b>a-.3)};
fEa=function(a){window.clearInterval(a.Xy);ZX(a)||(a.Xy=Vs(function(){return ZX(a)},100))};
ZX=function(a){var b=a.oa;b&&a.Zu&&!a.videoData.eb&&!RA("vfp",a.Mb.timerName)&&2<=b.rh()&&!b.Bk()&&0<rE(b.Qf())&&a.Mb.tick("vfp");return(b=a.oa)&&!a.videoData.eb&&0<b.getDuration()&&(!RA("pbp",a.Mb.timerName)&&b.ym()&&2<=b.rh()&&0<rE(b.Qf())&&a.Mb.tick("pbp"),b=b.getCurrentTime(),QW(a.Gt,b))?(gxa(a),!0):!1};
gxa=function(a){window.clearInterval(a.Xy);a.Hp.stop();a.videoData.eb=!0;a.W.Pj=!0;a.W.Za=0;var b=a.Pd,c=b.videoData.l;c&&b.videoData.Z("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i.delete(c.i);b.u.stop();a.W.Jh=a.videoData.VA;a.videoData.bH=!0;gEa(a);g.V(a.playerState,8)&&a.Jb(JK(a.playerState,65));b=a.Vb;b.i&&WBa(b.i);b.u&&(b=b.u,c=g.pT(b.i),0>b.l&&(b.l=c,b.delay.start()),b.u=c,b.C=c);g.Fq(a.tB);a.X("playbackstarted");g.ru()&&((a=g.Ha("yt.scheduler.instance.clearPriorityThreshold"))?
a():uu(0))};
gEa=function(a){var b=a.getCurrentTime(),c=a.videoData;!RA("pbs",a.Mb.timerName)&&dA.measure&&dA.getEntriesByName&&(dA.getEntriesByName("mark_nr")[0]?QA("mark_nr"):QA());c.videoId&&a.Mb.info("docid",c.videoId);c.eventId&&a.Mb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Mb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Mb.info("start",c.startSeconds.toString());a.oa&&a.oa.ym()&&a.Mb.info("paused",1);c.l?a.Mb.info("fmt",c.l.tc()):a.Mb.info("fmt","-1");c.Xb&&a.Mb.info("yt_pre",a.bJ?"2":"1");
a.isFullscreen()&&a.Mb.info("yt_fs","1");a.Mb.info("cmt",b.toFixed(3));if(a.Qa){b=a.Qa.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.Mb.tick(d,b[d])}};
hEa=function(a){a.Vb.hd();if(a.videoData.isLivePlayback&&Date.now()>a.CJ+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&UE(a.videoData.i))){var b=a.Vb;if(b.qoe){b=b.qoe;var c=b.i.i.Ex(),d=g.pT(b.i);KBa(b,d,c);c=c.C;isNaN(c)||g.vW(b,d,"e2el",[c.toFixed(3)])}}g.IG(a.W)&&a.Ha("rawlat","l."+TT(a.Gz,"rawlivelatency").toFixed(3));a.CJ=Date.now()}a.videoData.l&&cE(a.videoData.l)&&(b=VI(a))&&b.videoHeight!==a.hD&&(a.hD=b.videoHeight,SX(a,"a",$Da(a,a.videoData.Ra)))};
$Da=function(a,b){if("auto"===b.i.ib().quality&&cE(b.kf())&&a.videoData.xb)for(var c=g.q(a.videoData.xb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.hD&&"auto"!==d.i.ib().quality)return d.kf();return b.kf()};
FX=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.Qa)return NaN;var b=KH(a.videoData)?a.Qa.Da.cg()||0:a.videoData.i.va;return Date.now()/1E3-a.getIngestionTime()-b};
iEa=function(a){!a.Z("html5_ignore_airplay_events_on_new_video_killswitch")&&a.oa&&a.oa.Df()&&(a.Zx=(0,g.P)());a.W.ql?g.Us(function(){$X(a)},0):$X(a)};
$X=function(a){if(a.oa)try{a.Bv=a.oa.playVideo()}catch(c){OX(a,"err."+c)}if(a.Bv){var b=a.Bv;b.then(void 0,function(c){a.ma();if(!g.V(a.playerState,4)&&!g.V(a.playerState,256)&&a.Bv===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ma();else{var d="promise";c&&c.name&&(d+=";m."+c.name);OX(a,d);a.xH=!0;a.W.Z("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.jH=!0)}})}};
OX=function(a,b){g.V(a.playerState,128)||(a.Jb(KK(a.playerState,1028,9)),a.Ha("dompaused",b),a.X("onDompaused"))};
HX=function(a){if(!a.oa||!a.videoData.u)return!1;var b,c,d=null;(null===(c=a.videoData.u)||void 0===c?0:c.i)?(d=YX(a),null===(b=a.Qa)||void 0===b?void 0:b.resume()):(oW(a),a.videoData.Ra&&(d=a.videoData.Ra.Xs()));b=d;d=a.oa.xw();c=!1;d&&null!==b&&b.i===d.i||(a.Mb.tick("vta"),SA("vta","video_to_ad"),0<a.getCurrentTime()&&(c=a.getCurrentTime(),a.fc.u=c),a.oa.Rq(b),a.mediaSource&&uu(4),!a.videoData.eb&&g.MK(a.playerState)&&a.Hp.start(),c=!0);g.V(a.playerState,2)||(b=a.fc,b.C||!(0<b.u)||b.oa&&0<b.oa.getCurrentTime()||
b.seekTo(b.u,{ye:"playbacktimeline_resumeTime"}));a:if(b=c,g.NH(a.videoData)&&a.oa)if((d=a.videoData.I)&&a.oa.Bo()){var e=a.oa.Ge();if(a.yd)if(e!==a.yd.element)aY(a);else if(b&&"fairplay"===d.flavor&&!wt())aY(a);else break a;a.yd=new gW(e,a.videoData,a.W);a.yd.subscribe("licenseerror",a.My,a);a.yd.subscribe("qualitychange",a.YS,a);a.yd.subscribe("heartbeatparams",a.tv,a);a.yd.subscribe("keystatuseschange",a.Kn,a);a.yd.subscribe("ctmp",a.Ha,a);b=g.q(a.Vr.keys);for(d=b.next();!d.done;d=b.next())d=a.Vr.get(d.value),
a.yd.Np(d);a.Z("html5_eme_loader_sync")||dW(a.Vr)}else a.wf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
aY=function(a){a.yd&&(a.yd.dispose(),a.yd=null)};
mT=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.Z("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.Pl()||g.SH(a.videoData))?a.getCurrentTime():a.cd(b)};
jEa=function(a){a.ma();a.oa&&(a.mediaSource?(aY(a),XX(a),YX(a)):(a.videoData.Ra&&a.videoData.Ra.xE(),a.oa.stopVideo()),a.playVideo())};
bY=function(a,b){g.S(a.W.experiments,"html5_log_rebuffer_reason")&&a.Ha("bufreason","r."+b+";lact."+zu())};
vT=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.Vb;if(p.qoe){p=p.qoe;var r=b.cpn,t=c.cpn,u=l.videoData.Xd,x=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,B=t!==x&&n!==y;x=r!==x&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==r||(p.adCpn=x?r:"",p.V=x?m:"",p.adFormat=x?u:void 0,NBa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=B?t:"",p.V=B?n:"",p.adFormat=B?u:void 0,NBa(p,f?3:1,
r,m,d),p.reportStats())}d=a.Vb;b=b.cpn;d.B.has(b)?(b=d.B.get(b),MW(b).send(),g.Ws(b.u),b.u=NaN):(d.Pf=d.l.videoData.clientPlaybackNonce,d.Pf&&d.i&&d.B.set(d.Pf,d.i));a=a.Vb;c=c.cpn;l=l.videoData;var G;a.B.has(c)?null===(G=a.B.get(c))||void 0===G?void 0:G.B&&isNaN(G.u)&&KW(G,!1):(e=fCa(a,a.l,l,e),a.B.set(c,e),WBa(e));a.Pf=c}}};
kEa=function(a,b){if(a.videoData.ya){var c=g.U(a.W.experiments,"html5_log_rebuffer_events");if(c&&a.oa){var d=a.oa.Eb();d.rt=(1E3*g.pT(a.Vb.l)).toFixed();d.e=b.substr(0,3);a.Yy[a.fL++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ma()};
lEa=function(a){if(a.videoData.ya){a.Yy.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.Yy),c=b.next();!c.done;c=b.next())c=c.value,a.Ha("vpe","t."+c.rt+";"+g.wE(c));a.Yy=[];a.fL=0}};
mEa=function(a){if(rt("cobalt")&&rt("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ha("nxdock",""+ +b)}};
fxa=function(a,b,c,d,e){a.Ha("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
VX=function(a,b){GV(a.Qa,b||aEa(a))};
aEa=function(a){var b=a.Z("disable_prefetch_when_ad_pending_for_living_room")&&g.vG(a.W),c=a.Z("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.jb(a.Di,"ad")};
kAa=function(a){var b=a.W.Rg||"";xG(a.W);return b};
g.cY=function(a,b,c){g.E.call(this);var d=this;this.Xu=this.ag=!1;this.Tb={};this.Ya={};this.Xb=!1;this.qb=null;this.ac=!1;this.va=!0;this.Lb=!1;this.hc=this.Bb=null;this.wc=!0;this.oa=this.C=null;this.Za=this.Da=!1;this.Lc=this.Ga=this.l=this.playlist=null;this.Ra=void 0;this.Y=0;this.L=this.Aa=this.I=null;this.ma();this.config=qia(b||{});this.webPlayerContextConfig=c;Hha();b=this.config.args||{};this.W=new yG(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.F(this,this.W);this.sB();
this.W.i&&!nEa&&(window.addEventListener(NF?"touchstart":"click",$wa,{capture:!0,passive:!0}),nEa=!0);this.Pc=GF(SF(this.W)&&!0,b.enablesizebutton);this.xb=GF(!1,b.player_wide);this.visibility=new rT;g.F(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.wN(this);g.F(this,this.events);this.dm=new g.cr;g.F(this,this.dm);this.Gl=new g.cr;g.F(this,this.Gl);this.vn=new bya;this.Wa=new g.nN(this);g.F(this,this.Wa);this.template=new XT(this);g.F(this,this.template);this.J=
1;this.Xf=this.W.Vg?oEa():{volume:100,muted:this.W.mute};this.G=this.W.u?new mN(this,1):new gN(this,1);g.F(this,this.G);c={};this.eb=(c.internalvideodatachange=this.eS,c.playbackready=this.gS,c.playbackstarted=this.hS,c.statechange=this.iS,c);this.B=pEa(this);this.Cb=new g.wN(this);g.F(this,this.Cb);this.Z("html5_enable_web_assembly")&&this.B&&Osa(this.B).then(function(e){d.W.Yi=e});
this.Mb=new xN(this.W,this.B);this.i=qEa(this);c={};this.Ec=(c.airplayactivechange=this.YR,c.airplayavailabilitychange=this.ZR,c.beginseeking=this.UN,c.endseeking=this.VN,c.internalAbandon=this.WN,c.internalaudioformatchange=this.TN,c.internalvideodatachange=this.ob,c.internalvideoformatchange=this.YN,c.liveviewshift=this.aT,c.playbackstalledatstart=this.AU,c.progresssync=this.OT,c.onLoadProgress=this.bT,c.SEEK_COMPLETE=this.XN,c.SEEK_TO=this.pU,c.onVideoProgress=this.ZN,c.onLoadedMetadata=this.dT,
c.onDompaused=this.KS,c.playbackready=this.CT,c.statechange=this.bL,c.connectionissue=this.ov,c.newelementrequired=this.FK,c.heartbeatparams=this.tv,c.videoelementevent=this.TD,c.drmoutputrestricted=this.LS,c.requestmediasource=this.cU,c.signatureexpired=this.uU,c.nonfatalerror=this.tT,c);this.ea=new g.wN(this);g.F(this,this.ea);c=10;g.vG(this.W)&&(c=3);HG(this.W)&&(c=g.U(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ia=new OT(c,function(e){e!==g.X(d,e.getPlayerType())&&e.dispose()});
g.F(this,this.Ia);this.fb=this.Ua=-1;this.La=new g.J(this.template.resize,16,this.template);g.F(this,this.La);rEa(this);this.le=new ET(this.Wa,this.W,this.i);this.ya=new nT(this.Wa);g.F(this,this.ya);Txa(this.W.deviceParams.c);this.events.N(this.Wa,g.Rz("appapi"),this.cS);this.events.N(this.Wa,g.Sz("appapi"),this.dS);this.events.N(this.Wa,g.Rz("appad"),this.kK);this.events.N(this.Wa,g.Sz("appad"),this.kK);this.events.N(this.Wa,g.Sz("applooprange"),this.vz);this.events.N(this.Wa,"presentingplayerstatechange",
this.hh);this.events.N(this.Wa,"resize",this.dU);this.template.Ba($f(a));this.events.N(this.Wa,"offlineslatestatechange",this.vT);this.Ub=sEa(this,this.template.element);g.F(this,this.Ub);this.W.Sj&&(this.Z("woffle_orchestration")?this.V=tEa(this):Zwa());this.W.qb&&(g.QN.ux=g.iR);uEa(this);this.Mb.tick("fs");vEa(this);this.u=null;this.W.qb&&Nsa(this.B);g.aG(this.B.G.T())&&PN(this.B,"music");g.QF(this.B.G.T())&&PN(this.B,"embed");this.Z("web_player_sentinel_is_uniplayer")||g.cy(Error("Player flag missing: web_player_sentinel_is_uniplayer"));
this.Zc=wEa(this);if(a=g.U(this.W.experiments,"html5_block_pip_safari_delay"))this.jb=new g.J(this.GH,a,this),g.F(this,this.jb);this.W.Z("embeds_enable_pem_cookie_blocking_killswitch")||(jt=this.W.La);this.ma()};
wEa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.l||a.i).Vb.ue("player.exception",g.wE({n:c.name,m:c.message}))}
Oy.subscribe("handleError",b);cs.push(b);return function(){Oy.unsubscribe("handleError",b);var c=cs.indexOf(b);-1!==c&&cs.splice(c,1)}};
tEa=function(a){return new Pwa(a.W,a.Wa,dY(a,9),function(){return a.Ve()})};
qEa=function(a){var b=dY(a,1);b.setPlaybackRate(a.W.l?1:xEa(a,yEa()));yx(b,a.eb,a);return b};
AEa=function(a,b){zx(a.i,a.eb,a);var c=a.i.getPlaybackRate();a.i.dispose();a.i=b;a.i.setPlaybackRate(c);yx(b,a.eb,a);zEa(a)};
pEa=function(a){var b="",c=Xxa(a);0===c.indexOf("//")&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.cy(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new MN(a.Wa,b);BEa(a,b);return b};
BEa=function(a,b){var c={};c=(c.destroyed=function(){a.W.u&&a.l?a.Wa.Na("onApiChange",a.l.getPlayerType()):a.Wa.Na("onApiChange")},c);
b.u=c};
CEa=function(a,b){var c=a.isVideoInfoVisible();a.I||(a.I=new fU(a.Wa),g.F(a,a.I),g.uN(a.Wa,a.I.element,4));g.BL(a.I,b);eY(a)&&c!==b&&g.qN(a.B).XE();a=a.l;b&&a&&a.Ha("sfn","1",!0)};
fY=function(a){a.oa=a.W.deviceHasDisplay?fT.pop()||new g.ZN(g.og("VIDEO")):new g.ZN(g.og("AUDIO"));g.F(a,a.oa);a.l&&a.l.setMediaElement(a.oa);try{a.W.jb?(a.Aa&&a.events.lc(a.Aa),a.Aa=a.events.N(a.oa,"volumechange",a.lT)):(a.oa.us(a.Xf.muted),a.oa.setVolume(a.Xf.volume/100))}catch(d){a.Fe("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.xx(a.ea);DEa(a);var b=a.template;b.Fb=a.oa.Ge();b.Mx=!1;b.Fb.parentNode||g.rg(b.Mt,b.Fb,0);b.ez=new g.rl(0,
0,0,0);aya(b);ZT(b);g.K(b.Fb,"video-stream");g.K(b.Fb,g.WT.MAIN_VIDEO);var c=b.app.T();c.Hg&&b.Fb.setAttribute("data-no-fullscreen","true");c.Ri&&(b.Fb.setAttribute("webkit-playsinline",""),b.Fb.setAttribute("playsinline",""));c.ll&&b.Fb&&b.N(b.Fb,"click",b.Fb.play,b.Fb);try{a.oa.Rq()}catch(d){a.Fe("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
jY=function(a,b){if(a.l!==b){a.ma("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.l&&(c=a.l.getPlayerState(),a.ma(),SN(a.B,3),gY(a,"cuerangesremoved",a.l.Um()),a.ya&&!b.isGapless()&&a.l.isGapless()&&a.oa&&a.oa.stopVideo(),EEa(a));hY(a,b);a.l=b;a.oa&&b.setMediaElement(a.oa);yx(b,a.Ec,a);b.Vx()?iY(a,"setPresenting",!1,!0):(a.ob("newdata",b,b.getVideoData()),c&&!g.LK(c,b.getPlayerState())&&a.bL(new g.WI(b.getPlayerState(),c)),b.Aj.isFinished()&&
a.ob("dataloaded",b,b.getVideoData()),(c=(c=b.getVideoData().l)&&c.video)&&a.Wa.Na("onPlaybackQualityChange",c.quality),gY(a,"cuerangesadded",a.l.Um()),c=b.getPlayerState(),g.V(c,2)?FEa(a):g.V(c,8)&&b.playVideo(),a.ma())}};
FEa=function(a){if(!GEa(a)){var b=a.i.qd();b&&(b=b.Vt(),b instanceof Promise&&b.catch(function(){}));
kY(a,PK(a.ub()))}};
DEa=function(a){var b=a.oa;kE()?a.ea.N(b,"webkitpresentationmodechanged",a.mU):jE()&&(a.ea.N(b,"enterpictureinpicture",function(){a.ws(!0)}),a.ea.N(b,"leavepictureinpicture",function(){a.ws(!1)}));
XF&&(a.ea.N(b,"webkitbeginfullscreen",function(){a.Ii(3)}),a.ea.N(b,"webkitendfullscreen",function(){a.Ii(0)}))};
hY=function(a,b){if(b!==a.i){var c=b.getPlayerType();a.Tb[c]=b}};
EEa=function(a){a.ma();var b;if(b=a.L)b=a.oa,b=!!b&&b===a.L.oa;b&&(a.Ag(),fY(a));a.l&&(a.l.Ag(),zx(a.l,a.Ec,a));a.l=null;a.ma()};
g.X=function(a,b){return b?1===b?a.i:a.getVideoData().enableServerStitchedDai&&2===b?a.l:a.Tb[b]||null:a.l};
dY=function(a,b){var c=a.Mb;2===b&&(c=new xN(a.W));return new g.IX(a.W,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.dm.X.apply(a.dm,[d].concat(g.la(f)))},function(){return a.Wa.getVisibilityState()},a.visibility,a)};
lY=function(a,b){return a.Ld(b)?a.i:b};
mY=function(a,b){var c=a.l;return c&&b===a.i&&a.Ld(b)&&a.Ld(c)?c:b};
HEa=function(a){a.ma();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.B;d.WH();PN(d,"attribution",void 0,!1,!0);PN(d,"embed");PN(d,"inline_preview");PN(d,"kids");PN(d,"remote");PN(d,"miniplayer");PN(d,"music");PN(d,"captions",void 0,!0);PN(d,"unplugged");PN(d,"ypc",void 0,!1,!0);PN(d,"ypc_clickwrap",void 0,!1,!0);PN(d,"yto",void 0,!1,!0);PN(d,"webgl",void 0,!1,!0);d.B&&c?d.G.Ed("endscreen"):PN(d,"endscreen");d.B&&c?(d.G.Ed("annotations_module"),d.G.Ed("creatorendscreen")):(d.SB(),PN(d,"creatorendscreen",
void 0,!0));d.XH();Msa(d);c&&bI(b)?a.Cb.N(a.Wa,"presentingplayerstatechange",a.ET):Lsa(a.B);a.Wa.X("videoready",b)};
nY=function(a){return a.i.getVideoData()};
oY=function(a){a=nY(a);a.isValid();return bI(a)};
uEa=function(a){var b=new g.vH(a.W,a.config.args);g.jz()&&b.ea.push("remote");b.isValid()&&(a.i.Ji(b,function(){return a.Ve()}),a.Z("html5_androidtv_quic")&&(b=window,"h5vcc"in b&&"settings"in b.h5vcc&&b.h5vcc.settings.set("QUIC",1)),!g.S(a.W.experiments,"html5_delay_initial_loading")&&oY(a)&&(a.W.Zg||a.W.Lc)&&bT(a.i))};
vEa=function(a){a.ma();a.VB();var b=a.config.args;fY(a);var c=nY(a);a.Wa.Na("onVolumeChange",a.Xf);if(b&&AN(b)){var d=DG(a.W);d&&!a.ag&&(b.fetch=0);var e=g.QF(a.W);e&&!a.ag&&(b.fetch=0);pY(a,b);g.QF(a.W)&&a.Mb.tick("ep_pr_s");if(d&&!a.ag)qY(a);else if(e&&!a.ag)rY(a);else if(!c.isValid())a.playlist.onReady(function(){sY(a)})}jY(a,a.i);
g.V(a.i.getPlayerState(),128)||(b=Kja(a.W.deviceHasDisplay),"fmt.noneavailable"===b?a.Fe("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Fe(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&oY(a)&&(a.W.Zg||a.W.Lc)?tY(a):IEa()?(g.Kv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.ea}),JEa(!1),tY(a)):OG(a.W)||KEa(a),g.FG(a.W)?(nu(qu(),function(){uY(a)}),nu(qu(),function(){Ira()})):(uY(a),Ira()),a.ma())};
uY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Ia||"";a=a.W.cspNonce;c=c?"c1b"in js(c):!1;b.program&&(bN.l?0:!cN||72E5<(0,g.P)()-cN)&&(SA("bg_i","player_att"),bN.initialize(b,Sra,a,c))}};
KEa=function(a){a.ma();a.Wa.X("initializingmode");a.Pk(2);PN(a.B,"remote");g.S(a.W.experiments,"player_cued_miniplayer_module_killswitch")||PN(a.B,"miniplayer");a.ma()};
tY=function(a){a.ma();if(g.V(a.i.getPlayerState(),128))return!1;oY(a)&&a.W.Lc&&(fT.length&&a.Xu?(iN(a,{muted:!1,volume:a.Xf.volume},!1),vY(a,!1)):fT.length||a.Xf.muted||(iN(a,{muted:!0,volume:a.Xf.volume},!1),vY(a,!0)));var b=a.i.getVideoData();b.gH&&iN(a,{muted:!0,volume:a.Xf.volume},!1);wY(a,1,b,!1);a.Wa.X("initializingmode");jY(a,a.i);a.Pk(3);if(!(b=!a.W.Vi)){if(b=a.L)b=a.oa,b=!!b&&b===a.L.oa;b=b&&a.Xb}b&&(a.Ag(),fY(a),a.i.setMediaElement(a.oa));QX(a.i);if(g.V(a.i.getPlayerState(),128))return!1;
kY(a,3);return a.Xb=!0};
eY=function(a){a=g.qN(a.B);return!!a&&a.loaded};
LEa=function(a,b){if(!a.C)return!1;var c=.001*a.C.startTimeMs-1;a=.001*a.C.endTimeMs;return Qf(b,c)||Qf(b,a)||b>=c&&b<=a};
xEa=function(a,b){var c=a.Wa.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
xY=function(a,b,c){if(a.Ld(c)){c=c.getVideoData();if(a.u)c=b;else{a=a.le;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Vc===e.Vc){b+=e.Mc/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Vc===e.Vc)break;var f=e.Mc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.wd/1E3;else break}c=d}return c}return b};
MEa=function(a,b){var c;return 3===a.getPresentingPlayerType()?PK(g.qN(a.B).ld):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.u)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Ua:-1:2!==b||a.Ld()?a.Ua:a.fb};
zEa=function(a){a.ma();yY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Ya={};var b=a.Mb;if(b.i){var c=b.i;c.i={};c.Nt={}}b.l=!1;a.u?(b=a.u,a=a.i,a.getPlayerType(),b.ma(),yT(b,!1),AT(b),b.i=a):(b=a.le,a=a.i,1!==a.getPlayerType()&&b.Ad("e.invalidParentVideoPlayerType"),b.ma(),JT(b,!1),LT(b),b.l=a)};
qY=function(a){var b=NEa();if(b)if(!b.list)a.Dw();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Wa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.ib().videoId||(b.index=a.playlist.index));CN(a.playlist,b);a.Ga&&zY(a,a.Ga)}else a.Ga=null};
rY=function(a,b){var c=(b?b:nY(a)).SJ;a.Mb.tick("ep_pr_r");if(null!=c&&(CN(a.playlist,c),a.Lb))a.playlist.onReady(function(){sY(a,b)})};
pY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Dw,a),g.ff(a.playlist),a.playlist=null);b&&(a.ag&&(b.fetch=0),a.playlist=new g.zN(a.W,b),a.playlist.subscribe("error",a.Dw,a))};
AY=function(a,b,c,d){b in a.Ya||(c=new g.Oz(c,d,{id:b,priority:1,namespace:"appad"}),a.i.addCueRange(c),a.Ya[b]=c)};
REa=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=Cz(Ez(c,OEa,null),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=Cz(Ez(c,PEa,null),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=Cz(Ez(c,QEa,null),c,f,"Nielsen OCR URL")}g.Bu(c,void 0,e)});
return!0};
kY=function(a,b){a.ma();if(a.l){var c=a.l.getPlayerType();if(2===c&&!a.Ld()){a.fb!==b&&(a.fb=b,a.Wa.Na("onAdStateChange",b));return}if(2===c&&a.Ld()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Ua!==b&&(a.Ua=b,a.Wa.Na("onStateChange",b))};
SEa=function(a,b,c,d){d=void 0===d?Infinity:d;a.ma();c=c||a.l.getPlayerType();var e;g.S(a.W.experiments,"html5_gapless_preloading")&&(e=wY(a,c,b,!0));e||(e=dY(a,c),e.Ji(b,function(){return a.Ve()}));
a.fx(e,d)};
TEa=function(a,b,c,d){var e=BY(c,b.videoId,b.Vc);a.ma();b.Xb=!0;var f=a.l&&e===BY(a.l.getPlayerType(),a.l.getVideoData().videoId,a.l.getVideoData().Vc)?a.l:dY(a,c);f.Ji(b,function(){return a.Ve()});
1===c&&HG(a.W)||bT(f,!0);a.Ia.set(e,f,d||3600)};
BY=function(a,b,c){return a+"_"+b+"_"+c};
wY=function(a,b,c,d){if(!f){var e=BY(b,c.videoId,c.Vc);var f=a.Ia.get(e);if(!f)return null;a.Ia.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.X(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Tw(f);return f};
CY=function(a,b,c){c=g.X(a,c);b&&c===a.i&&(c.getVideoData().He=!0)};
DY=function(a,b,c){a.ma();var d=g.X(a,c);d&&(a.cancelPlayback(4,c),d.Ji(b,function(){return a.Ve()}),2===c&&a.i&&a.i.hs(b.clientPlaybackNonce,b.Xd||"",b.breakType||0),d===a.i&&(a.Pk(1),KEa(a)));
a.ma()};
UEa=function(a,b,c,d,e){b=$ra(b,c,d,e);(c=g.QF(a.W)&&!a.W.L)&&!a.ag&&(b.fetch=0);pY(a,b);g.QF(a.W)&&a.Mb.tick("ep_a_pr_s");if(c&&!a.ag)c=nY(a),zsa(c,b).then(function(f){a.Lb=!0;rY(a,f)});
else a.playlist.onReady(function(){sY(a)});
g.QF(a.W)&&a.Mb.tick("ep_a_pr_r")};
sY=function(a,b){var c=g.QF(a.W)&&!a.W.L,d=c&&b?b:a.playlist.ib();b=c&&b?b:a.getVideoData();d&&(b.Jk&&(a.W.Zg||a.W.Lc)||!a.va?(b=b.He,d=a.An(d,1),b&&CY(a,d)):DY(a,d));g.QF(a.W)&&a.Mb.tick("ep_p_l");a.Lb=!1;a.Wa.Na("onPlaylistUpdate")};
GEa=function(a){if(a.playlist&&g.WF(a.W)&&a.fu()){var b=g.S(a.W.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
zY=function(a,b){var c=g.Ha(b);c?((b=NEa())&&b.list&&c(),a.Ga=null):a.Ga=b};
NEa=function(){var a=g.Ha("yt.www.watch.lists.getState");return a?a():null};
VEa=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Nz.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Nz.AD_MARKER:(b.style=Nz.TIME_MARKER,b.color=e),b.visible=!0);a.xt([new g.Oz(1E3*c,1E3*d,b)],1);return!0};
WEa=function(a){var b=(0,g.P)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
iN=function(a,b,c){a.W.Y&&(a.Xf=b,b.muted||vY(a,!1),c&&a.W.Vg&&!a.W.jb&&XEa({volume:Math.floor(b.volume),muted:b.muted}),YEa(a),c=g.bj&&a.oa&&!a.oa.Af(),!a.W.jb||c)&&(b=g.Vb(b),a.W.Vg||(b.unstorable=!0),a.Wa.Na("onVolumeChange",b))};
YEa=function(a){var b=a.getVideoData();if(!b.Ig){b=a.W.jb?1:bna(b);var c=a.oa;c.us(a.Xf.muted);try{c.setVolume(a.Xf.volume*b/100)}catch(d){g.cy(new g.Pv("b183742307","multiplier: "+b+", volume: "+a.Xf.volume))}}};
vY=function(a,b){b!==a.Xu&&(a.Xu=b,a.Wa.Na("onMutedAutoplayChange",b))};
EY=function(a){var b=sx(!0);return b&&(b===a.template.element||a.oa&&b===a.oa.Ge())?b:null};
$Ea=function(a,b){var c=window.screen&&window.screen.orientation;if((g.S(a.W.experiments,"lock_fullscreen2")||a.W.J)&&c&&c.lock&&(!g.bj||!ZEa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.Da||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ia);a.Da=!0}}else a.Da&&(a.Da=!1,c.unlock())};
gY=function(a,b,c){a.Wa.X(b,c);var d=g.vG(a.W)||g.YF(a.W)||g.ZF(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Wa.Na(e,c)}};
FY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.X(a,e);if(!h||(2!==h.getPlayerType()||a.Ld(h)||f)&&!g.SH(h.getVideoData()))3===a.getPresentingPlayerType()?g.qN(a.B).Ek("control_seek",b,c):(h===a.i&&a.C&&!LEa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
iY=function(a,b,c,d){if(!a.Za){c&&(a.Ag(),fY(a));a.Z("html5_signature_reload_refactor")||(a.Za=!0);c=g.X(a);c.Pd.C=!0;c.ue("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?KH(e)&&g.IG(a.W)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Aa&&(f.vvt=e.Aa);e.Ya&&(f.vss_credentials_token=e.Ya,f.vss_credentials_token_type=
e.Sh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Tg&&(f.force_gvi=e.Tg);f.autoplay=1;f.reload_count=e.qb+1;f.reload_reason=b;e.bB&&(f.unplugged_partner_opt_out=e.bB);e.wc&&(f.ypc_is_premiere_trailer=e.wc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d)}};
bFa=function(a,b){nY(a).autonavState=b;aFa(b);a.Wa.X("autonavchange",b)};
cFa=function(a){var b=a.getVideoData().Ig,c=a.W.Cb,d=a.oa;b||c?d.XB():(d.YB(),iN(a,a.Xf))};
sEa=function(a,b){return g.S(a.W.experiments,"html5_enable_embedded_player_visibility_signals")&&g.QF(a.W)?new VT(b,a.W.Z("embeds_enable_intersection_observer_v2")):null};
yY=function(a){var b=TN(a.sb());b&&b.created&&(a.ma(),b.destroy())};
dFa=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]=Fl(a,d);b.hidden=!!a.hidden};
rEa=function(a){var b=a.W,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.S(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.dj&&d&&b.l?Ft()||b.La?(g.Kv("embedsStorageAccessNotChecked",{isIosWebview:Ft(),isPemPlayer:b.La}),a.Ra=!1):c.hasStorageAccess().then(function(e){g.Kv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Ra=!e},function(e){g.Kv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.cy(Error("Embeds ITP Error: "+e));a.Ra=!1}):a.Ra=!1};
GY=function(a,b){var c=void 0;g.vG(a.W)&&Ns(b)&&Ms(b)&&(a=a.getVideoData().lf())&&(c={Authorization:"Bearer "+a});g.Bu(b,void 0,void 0,c)};
HY=function(a,b){b.forEach(function(c){GY(a,c)})};
Xxa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
eFa=function(a){var b;a=null===(b=jN(a.sb()))||void 0===b?void 0:b.ju();if(!(a instanceof g.uO))return null;a=a.NI();return(null===a||void 0===a?void 0:a.V)||null};
IY=function(a){this.controller=a};
JY=function(a){this.QB=a};
KY=function(a,b,c){this.QB=a;this.dh=b;this.xi=c};
fFa=function(a,b,c){var d=a.QB();switch(b.type){case "SKIP":iqa(d,a.dh,a.xi,c)}};
LY=function(){};
MY=function(){};
NY=function(){};
OY=function(a,b){this.Ho=a;this.Xa=b};
PY=function(a){this.G=a};
QY=function(a,b){this.Mh=a;this.Xa=b};
hFa=function(a){g.E.call(this);this.i=a;this.aO=gFa(this)};
gFa=function(a){var b=new qL(a.i.Fc);g.F(a,b);a=g.q([new IY(a.i.qP),new OY(a.i.Ho,a.i.Xa),new PY(a.i.G),new QY(a.i.Mh,a.i.Xa),new KY(a.i.GR,a.i.dh,a.i.xi),new JY(a.i.CP),new MY,new NY,new LY]);for(var c=a.next();!c.done;c=a.next())c=c.value,aqa(b,c),bqa(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())oL(b,c.value,function(){});
return b};
RY=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ja.i.has(c.value))return!1;return!0};
iFa=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;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
SY=function(a){var b=new Map;a.forEach(function(c){b.set(c.Ob(),c)});
this.i=b};
TY=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
UY=function(a){return Array.from(a.i.keys())};
kFa=function(a){var b;return(null===(b=jFa.get(a))||void 0===b?void 0:b.As)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
WY=function(a,b){var c={type:b.rb,controlFlowManagerLayer:lFa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Wb&&(c.entryTriggerType=b.Wb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Wb)c.debugData.slotEntryTriggerData=VY(a);a=b.Ac;c.debugData.fulfillmentTriggerData=[];a=g.q(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(VY(d.value));b=b.zc;c.debugData.expirationTriggerData=
[];b=g.q(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(VY(a.value))}return c};
mFa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:lFa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
VY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Fg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Fg);null!=a.ze&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.ze);return c};
nFa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Qe(d||[],function(e){return WY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
return b};
YY=function(a,b){return function(c){return oFa(XY(a),b.slotId,b.rb,b.slotPhysicalPosition,b.gb,b.Wb,b.Ac,b.zc,c.layoutId,c.layoutType,c.gb)}};
oFa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:WY(a,{slotId:b,rb:c,slotPhysicalPosition:d,gb:e,Wb:f,Ac:h,zc:l,Ja:new SY([])}),layoutData:mFa(a,{layoutId:m,layoutType:n,gb:p,td:[],Sc:[],Oc:[],Tc:[],Xc:[],Bc:new Map,Ja:new SY([]),Dc:{}})}}};
ZY=function(a){this.Sa=a;this.i=.1>Math.random()};
XY=function(a){var b;(b=a.i)||(a=a.Sa.get(),b=g.S(a.G.T().experiments,"html5_force_debug_data_for_client_tmp_logs")||g.S(a.G.T().experiments,"html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
$Y=function(a,b,c,d){g.E.call(this);this.Jd=b;this.dc=c;this.Sa=d;this.i=a(this,this,this,this,this);g.F(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.F(this,b.value)};
aZ=function(a,b){a.Jd.add(b);g.F(a,b)};
soa=function(a,b){rK(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Lh(b)};
toa=function(a,b){rK(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Ff(b)};
Jna=function(a,b){rK(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Gf(b)};
cZ=function(a,b,c){R(c,b,void 0,void 0,c.Io);bZ(a,b,!0)};
rFa=function(a,b,c){if(dZ(a.i,b))if(eZ(a.i,b).B=c?"filled":"not_filled",null===c){fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Jd);for(var d=c.next();!d.done;d=c.next())d.value.Hk(b);bZ(a,b,!1)}else{fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Jd);for(d=e.next();!d.done;d=e.next())d.value.Ik(b);if(!pFa(a.Sa.get())||dZ(a.i,b))if(eZ(a.i,b).C)bZ(a,b,!1);else{fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!eZ(f,b))throw new gZ("Unknown slotState for onLayout");
if(!f.Dd.Sl.get(b.rb))throw new gZ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.rb);if(g.kb(c.td)&&g.kb(c.Sc)&&g.kb(c.Oc)&&g.kb(c.Tc)&&g.kb(c.Xc))throw new gZ("Layout has no exit triggers.");hZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.td);hZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Sc);hZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);hZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Tc);hZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){a.tf(b,
c,n);bZ(a,b,!0);return}eZ(a.i,b).I=!0;try{var h=a.i,l=eZ(h,b),m=h.Dd.Sl.get(b.rb).get().Te(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new gZ("Already had LayoutRenderingAdapter registered for slot");l.u=m;iZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.td);iZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Sc);iZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);iZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Tc);iZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){jZ(a,
b,!0);bZ(a,b,!0);a.tf(b,c,n);return}fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Jd);for(d=e.next();!d.done;d=e.next())d.value.wj(b,c);jZ(a,b,!1);qFa(a,b)}}};
kZ=function(a,b,c){fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.wj(b,c)};
lZ=function(a,b,c){fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.Kc(b,c)};
qK=function(a,b,c,d){fZ(a.dc,kFa(d),b,c);a=g.q(a.Jd);for(var e=a.next();!e.done;e=a.next())e.value.Uc(b,c,d)};
jZ=function(a,b,c){if(dZ(a.i,b)&&(eZ(a.i,b).I=!1,!pFa(a.Sa.get())||!c)){c=mZ;b=eZ(a.i,b);var d=[].concat(g.la(b.L));lb(b.L);c(a,d)}};
mZ=function(a,b){b.sort(function(f,h){function l(m){R("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):iFa(f.category,l)-iFa(h.category,l)});
var c=new Map;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,dZ(a.i,d.slot))if(eZ(a.i,d.slot).I)eZ(a.i,d.slot).L.push(d);else{sFa(a.dc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(tFa);for(d=b.next();!d.done;d=b.next())e=g.q(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&uFa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&vFa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&wFa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
xFa(a,c)};
uFa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&nZ(a.i,d.slot)&&yFa(a,d.slot,d.layout,c)};
vFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())bZ(a,c.value.slot,!1)};
wFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(eZ(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(rK(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Yt(c.slot))}};
xFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;rK(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Jd),e=d.next();!e.done;e=d.next())e.value.yj(c.slot);try{var f=a.i,h=c.slot,l=eZ(f,h);if(!l)throw new oZ("Got enter request for unknown slot");if(!l.l)throw new oZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new oZ("Tried to enter a slot from stage: "+l.i);if(pZ(l))throw new oZ("Got enter request for already active slot");
for(var m=g.q(qZ(f,h.rb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&pZ(p))throw new oZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){R(r,c.slot,rZ(a.i,c.slot),void 0,r.Io);bZ(a,c.slot,!0);continue}c=eZ(a.i,c.slot);"scheduled"!==c.i&&sZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.l.cC()}};
qFa=function(a,b){var c;dZ(a.i,b)&&pZ(eZ(a.i,b))&&rZ(a.i,b)&&!nZ(a.i,b)&&(fZ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=rZ(a.i,b))&&void 0!==c?c:void 0),a=eZ(a.i,b),"entered"!==a.i&&sZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.u.startRendering(a.layout))};
yFa=function(a,b,c,d){if(dZ(a.i,b)){var e=a.dc,f;var h=(null===(f=jFa.get(d))||void 0===f?void 0:f.ls)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";fZ(e,h,b,c);a=eZ(a.i,b);"rendering"!==a.i&&sZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.cf(c,d)}};
bZ=function(a,b,c){if(dZ(a.i,b)){a:switch(eZ(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(eZ(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(eZ(a.i,b).C=!0,!c))return;if(pZ(eZ(a.i,b)))eZ(a.i,b).C=!0,zFa(a,b,c);else{a:switch(eZ(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)eZ(a.i,b).C=!0,dZ(a.i,b)&&(rK(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=eZ(a.i,b),b.B="fill_cancel_requested",b.J.CB());else{c=
rZ(a.i,b);rK(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=eZ(a.i,b);var e=b.Wb,f=d.va.get(e.triggerId);f&&(f.Si(e),d.va.delete(e.triggerId));e=g.q(b.Ac);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.ea.get(f.triggerId);h&&(h.Si(f),d.ea.delete(f.triggerId))}e=g.q(b.zc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.V.get(f.triggerId))h.Si(f),d.V.delete(f.triggerId);null!=d.layout&&(e=d.layout,tZ(d,e.td),tZ(d,e.Sc),tZ(d,e.Oc),tZ(d,e.Tc),tZ(d,e.Xc));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;eZ(d,b)&&(d=qZ(d,b.rb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);rK(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Jd);for(d=a.next();!d.done;d=a.next())d=d.value,d.zj(b),c&&d.Fk(b,c)}}}};
zFa=function(a,b,c){if(dZ(a.i,b)&&pZ(eZ(a.i,b))){var d=rZ(a.i,b);if(d&&nZ(a.i,b))yFa(a,b,d,c?"error":"abandoned");else{rK(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=eZ(a.i,b);if(!e)throw new oZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&sZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new oZ("Cannot exit slot because adapter is not defined");e.l.hC()}catch(f){R(f,b,void 0,void 0,f.Io)}}}};
AFa=function(a){this.slot=a;this.va=new Map;this.ea=new Map;this.V=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"};
pZ=function(a){return"enter_requested"===a.i||a.isActive()};
gZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Io=c;this.args=[];b&&this.args.push(b)};
oZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Io=c;this.args=[];b&&this.args.push(b)};
uZ=function(a,b,c,d,e){g.E.call(this);this.Dd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.i=new Map};
qZ=function(a,b){return(a=a.i.get(b))?a:new Map};
eZ=function(a,b){return qZ(a,b.rb+"_"+b.slotPhysicalPosition).get(b.slotId)};
BFa=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};
dZ=function(a,b){return null!=eZ(a,b)};
nZ=function(a,b){a=eZ(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
rZ=function(a,b){a=eZ(a,b);return null!=a.layout?a.layout:null};
vZ=function(a,b,c){if(g.kb(c))throw new oZ("No "+CFa.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.Dd.Ph.get(d.triggerType))throw new oZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
hZ=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Dd.Ph.get(d.triggerType))throw new gZ("No trigger adapter registered for "+CFa.get(b)+" trigger of type: "+d.triggerType);};
iZ=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.Dd.Ph.get(e.triggerType);f.Gi(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
tZ=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.Y.get(c.triggerId);d&&(d.Si(c),a.Y.delete(c.triggerId))}};
sZ=function(a,b,c){R("Slot stage was "+b+" when calling method "+c,a)};
DFa=function(a){return wZ(a.Pp).concat(wZ(a.Ph)).concat(wZ(a.Hl)).concat(wZ(a.jm)).concat(wZ(a.Sl))};
wZ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.mj&&b.push(c);return b};
xZ=function(a){g.E.call(this);this.i=a;this.l=EFa(this)};
EFa=function(a){var b=new $Y(function(c,d,e,f){return new uZ(a.i.Dd,c,d,e,f)},new Set(DFa(a.i.Dd).concat(a.i.listeners)),a.i.dc,a.i.Sa);
g.F(a,b);return b};
yZ=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.hf(this,function(){g.ff(b.i);b.i=null})};
Y=function(a){return new yZ(a)};
FFa=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)};
GFa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
JFa=function(a,b,c,d,e,f,h){b=HFa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof oZ?b:IFa(a,d,e,b,c);return a instanceof oZ?a:[a]};
KFa=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)};
OFa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,zZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return LFa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Aq:b.Aq},h=f.next()){b.Aq=h.value;h={};for(var l=g.q(b.Aq.pB),m=l.next();!m.done;h={qm:h.qm},m=l.next())h.qm=m.value,m=function(n,p){return function(r){return n.qm.YH(r,p.Aq.instreamVideoAdRenderer.elementId,n.qm.nH)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.qm.Sq?a.push(MFa(c,d,h.qm.oH,e,b.Aq.instreamVideoAdRenderer.elementId,h.qm.adSlotLoggingData,m)):a.push(NFa(c,d,e,b.Aq.instreamVideoAdRenderer.elementId,h.qm.adSlotLoggingData,m))}return a};
zZ=function(a,b,c){if(b=PFa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=QFa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Px=c)}else R("InstreamVideoAdRenderer without externalVideoId")}};
PFa=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};
LFa=function(a){if(void 0===a.instreamVideoAdRenderer)return R("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.pB),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.YH)return!1;if(void 0===c.nH)return R("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Px||void 0===c.Sq||a.Px!==c.Sq&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Sq)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return R("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Px,"matching APSR kind":c.Sq}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Sq&&void 0===c.oH)return R("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
QFa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Px:void 0,adVideoId:b,pB:[]});return a.get(b)};
AZ=function(a,b,c,d,e,f,h){d?QFa(a,d).pB.push({oH:b,Sq:c,nH:e,adSlotLoggingData:f,YH:h}):R("Companion AdPlacementSupportedRenderer without adVideoId")};
BZ=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};
CZ=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,L,T,N=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon);N=[].concat(g.la((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.la((null===N||void 0===N?void 0:N.timeoutCommands)||
[]));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(r=a.playbackCommands)||void 0===r?void 0:r.rewindCommands,resumeCommands:null===
(t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,W8:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(B=a.playbackCommands)||void 0===B?void 0:B.fullscreenCommands,activeViewViewableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null===
(H=a.playbackCommands)||void 0===H?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(I=a.playbackCommands)||void 0===I?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(L=a.playbackCommands)||void 0===L?void 0:L.endFullscreenCommands,abandonCommands:null===(T=a.playbackCommands)||void 0===T?void 0:T.abandonCommands,completeCommands:N}};
SFa=function(a,b,c,d,e,f,h){return function(l,m){return RFa(a,m.slotId,l,f,function(n,p){n=h(n);return DZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new DJ(c),d],c.adLayoutLoggingData)})}};
VFa=function(a,b,c,d,e,f,h){if(!TFa(a))return new oZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[UFa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=EZ(e.l.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},r=new FZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Bc:new Map,td:[r],Sc:[],
Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new EJ(l)]),Dc:n(p)}})]};
TFa=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};
YFa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!aoa(a))return function(){return new oZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=BZ(h);return 0>=l?function(){return new oZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=WFa(m,c,d,function(r){var t=n(r),u=r.slotId;
r=CZ(h);u=EZ(e.l.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new FZ(e.i,d),B=new GZ(e.i,u),G=new HZ(e.i,u),H=new XFa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Bc:new Map,td:[y,H],Sc:[B],Oc:[],Tc:[G],Xc:[],gb:"core",Ja:new SY([new CJ(h),new uJ(b),new bK(l/1E3),new eK(r)]),Dc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=VFa(a,c,p.slotId,d,e,m,n);return m instanceof oZ?m:[p].concat(g.la(m))}};
eGa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=ZFa(u.slotId,c,b,e(u),d);h=u.SV;return u.LP};
else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y,B=c.config.adPlacementConfig,G=$Fa(B),H=G.jI;G=G.nI;var I=c.renderer.instreamVideoAdRenderer;if(null===(y=null===I||void 0===I?void 0:I.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var L=aGa(I);y=Math.min(H+1E3*L.videoLengthSeconds,G);G=new sI(0,[L.videoLengthSeconds],y);var T=L.videoLengthSeconds,N=L.playerVars,oa=L.instreamAdPlayerOverlayRenderer,
za=L.adVideoId,pc=bGa(c);L=L.Bc;var te=null===I||void 0===I?void 0:I.adLayoutLoggingData;I=null===I||void 0===I?void 0:I.sodarExtensionData;x=EZ(b.l.get(),"LAYOUT_TYPE_MEDIA",x);var bc={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Bc:L,td:[new IZ(b.i)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new yJ(d),new OJ(T),new PJ(N),new RJ(H),new SJ(y),oa&&new zJ(oa),new uJ(B),new wJ(za),new vJ(G),new XJ(pc),I&&new QJ(I),new KJ({current:null})].filter(cGa)),
Dc:u(bc),adLayoutLoggingData:te}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=dGa(a,d,l);f.push(m);for(var n=g.q(h),p=n.next();!p.done;p=n.next()){var r=p.value,t=r(a,e);if(t instanceof oZ)return t;f.push.apply(f,g.la(t))}}catch(u){return new oZ(u,{errorMessage:u.message,AdPlacementRenderer:c})}return f};
ZFa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=$Fa(f),l=h.jI,m=h.nI;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={XL:l,YL:0,PV:n};h=h.map(function(t){return fGa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new sI(u,n,m);
return t(u)});
var r=h.map(function(t){return t.MP});
return{LP:gGa(c,a,l,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),bGa(b),d,m),SV:h.map(function(t){return t.RV})}};
fGa=function(a,b,c,d,e,f,h,l){var m=aGa(b.instreamVideoAdRenderer),n=c.XL,p=c.YL,r=Math.min(n+1E3*m.videoLengthSeconds,l);c.XL=r;c.YL++;c.PV.push(m.videoLengthSeconds);return function(t){var u,x,y=m.playerVars;2<=t.l&&(y.slot_pos=t.i);y.autoplay="1";y=m.videoLengthSeconds;var B=m.playerVars,G=m.Bc,H=m.instreamAdPlayerOverlayRenderer,I=m.adVideoId,L=null===(u=b.instreamVideoAdRenderer)||void 0===u?void 0:u.adLayoutLoggingData,T=null===(x=b.instreamVideoAdRenderer)||void 0===x?void 0:x.sodarExtensionData,
N=EZ(d.l.get(),"LAYOUT_TYPE_MEDIA",a),oa={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};t={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Bc:G,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:"adapter",Ja:new SY([new yJ(h),new OJ(y),new PJ(B),new RJ(n),new SJ(r),new TJ(p),new KJ({current:null}),H&&new zJ(H),new uJ(f),new wJ(I),new vJ(t),T&&new QJ(T)].filter(cGa)),Dc:e(oa),adLayoutLoggingData:L};y=YFa(b.instreamVideoAdRenderer,f,h,t.layoutId,d);return{MP:t,RV:y}}};
aGa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=js(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e||
(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Bc:a.pings?tI(a.pings):new Map}};
bGa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
$Fa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{jI:b,nI:a}};
iGa=function(a,b,c,d,e,f,h,l){a=hGa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=EZ(b.l.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Bc:r,td:[new JZ(b.i,n)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new WJ(e),new uJ(c)]),Dc:m(p)}});
return a instanceof oZ?a:[a]};
kGa=function(a,b,c,d,e,f,h,l){a=jGa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=EZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=KZ(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,LZ(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=EZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=KZ(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,LZ(b,n,p))):r.imageOverlayAdContentRenderer?(r=EZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=LZ(b,n,p),n.push(new MZ(b.i,r)),n=KZ(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new gZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new gZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof oZ?a:[a]};
nGa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new oZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return lGa(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 mGa(a,n,e,function(p,r){var t=p.slotId;p=h(p);t=EZ(b.l.get(),"LAYOUT_TYPE_ENDCAP",t);return DZ(b,
t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new AJ(d)])})},d.adLayoutLoggingData,f)}};
oGa=function(a,b,c,d){if(!c.playerVars)return new oZ("No playerVars available in AdIntroRenderer.");var e=js(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=EZ(a.l.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{nq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Bc:new Map,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:"adapter",Ja:new SY([new VJ({}),new uJ(b),new KJ({current:null}),new PJ(e)]),Dc:f(l)},dr:[new NZ(a.i,h)],Ro:[],Yw:[],Xw:[]}}};
qGa=function(a,b,c,d,e,f,h,l){var m=BZ(e);if(!gK(e))return new oZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new oZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=SFa(a,b,e,f,c,d,h);return n instanceof oZ?n:function(p){return pGa(b,p.slotId,c,m,CZ(e),h(p),n,l)}};
rGa=function(a,b,c,d,e,f,h){function l(p){return mGa(a,p,d,m)}
function m(p,r){var t=p.slotId;p=h(p);t=EZ(b.l.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return DZ(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new BJ(e),f],e.adLayoutLoggingData)}
if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new oZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
h(p);p=OZ(b,p.slotId,c,n,r,new Map,t,l);r=new GJ(p.WD);return{nq:{layoutId:p.layoutId,layoutType:p.layoutType,Bc:p.Bc,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:p.gb,Ja:new SY([].concat(g.la(p.Lt),[r])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},dr:[],Ro:p.Oc,Yw:p.Tc,Xw:p.Xc,jh:p.jh}}};
vGa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var x=new sI(0,[t.Kw]),y=sGa(t.playerVars,t.vL,l,p,x);u=m(u);var B=n.get(t.Uz.externalVideoId);x=tGa(b,"core",t.Uz,c,y,t.Kw,f,x,u,B);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Bc:x.Bc,td:x.td,Sc:x.Sc,Oc:x.Oc,Tc:x.Tc,Xc:x.Xc,gb:x.gb,Ja:x.Ja,Dc:x.Dc,adLayoutLoggingData:x.adLayoutLoggingData},Zl:[]}}
var t=PZ(e);if(t instanceof gZ)return new oZ(t);if(r instanceof oZ)return r;a=uGa(a,c,f,h,d,r);return a instanceof oZ?a:a.Zl.concat(a.aE)};
PZ=function(a){if(!a.playerVars)return new gZ("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 gZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=js(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new gZ("Expected valid length seconds in player vars"):
{Uz:a,playerVars:b,vL:a.playerVars,Kw:c}};
sGa=function(a,b,c,d,e){a.iv_load_policy=d;b=js(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){R(f)}c.zg&&(a.ctrl=c.zg);c.Jf&&(a.ytr=c.Jf);c.Bl&&(a.ytrcc=c.Bl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Sh&&(a.vss_credentials_token_type=c.Sh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a};
yGa=function(a,b,c,d,e,f,h,l,m,n,p){b=wGa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(l=e.next();!l.done;l=e.next())if(l.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=xGa(a,c,f,h),c instanceof oZ?d=c:(f=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),h=EZ(a.l.get(),"LAYOUT_TYPE_SURVEY",f),c.zc.push(new RZ(a.i,h)),a=b({slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Wb:c.Wb,Ac:c.Ac,zc:c.zc},{slotId:f,layoutId:h}),d=a instanceof oZ?a:{aE:{slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,
Wb:c.Wb,Ac:c.Ac,zc:c.zc,gb:c.gb,Ja:new SY([new YJ(a.layout)]),adSlotLoggingData:d},Zl:a.Zl})):d=uGa(a,c,f,h,d,b);return d instanceof oZ?d:d.Zl.concat(d.aE)};
wGa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var r=[];for(var t=g.q(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=PZ(u.instreamVideoAdRenderer);if(u instanceof gZ){r=new oZ(u);break b}r.push(u.Kw)}}if(r instanceof oZ)p=r;else{t=0;u=[];for(var x=[],y=[],B=[],G=[],H=[],I=new LJ({current:null}),L=[],T=g.q(d),N=T.next();!N.done;N=T.next())if(N=N.value,N.adIntroRenderer){N=oGa(b,c,N.adIntroRenderer,h);if(N instanceof oZ){p=N;break a}N=N(n);u.push(N.nq);x=[].concat(g.la(N.dr),
g.la(x));y=[].concat(g.la(N.Ro),g.la(y));N.jh&&(L=[N.jh].concat(g.la(L)))}else if(N.instreamVideoAdRenderer){var oa=PZ(N.instreamVideoAdRenderer);if(oa instanceof gZ){p=new oZ(oa);break a}var za=new sI(t,r);N=b;var pc=oa.Uz,te=sGa(oa.playerVars,oa.vL,f,m,za),bc=h(n),ee=l.get(oa.Uz.externalVideoId);oa=tGa(N,"adapter",pc,c,te,oa.Kw,e,za,bc,ee);za=oa.Sc;pc.isCritical&&(za=[new NZ(N.i,oa.layoutId)].concat(g.la(za)));N={layoutId:oa.layoutId,layoutType:oa.layoutType,Bc:oa.Bc,td:[],Sc:[],Oc:[],Tc:[],Xc:[],
gb:oa.gb,Ja:oa.Ja,Dc:oa.Dc,adLayoutLoggingData:oa.adLayoutLoggingData};pc=za;oa=oa.Oc;t++;u.push(N);x=[].concat(g.la(pc),g.la(x));y=[].concat(g.la(oa),g.la(y))}else if(N.adActionInterstitialRenderer){N=nGa(a,b,c,N.adActionInterstitialRenderer,e,t,h);if(N instanceof oZ){p=N;break a}N=N(n);u.push(N.nq);x=[].concat(g.la(N.dr),g.la(x));y=[].concat(g.la(N.Ro),g.la(y));N.jh&&(L=[N.jh].concat(g.la(L)))}else if(N.instreamSurveyAdRenderer){if(void 0===p){p=new oZ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:N.instreamSurveyAdRenderer});break a}N=qGa(a,b,c,e,N.instreamSurveyAdRenderer,I,h,p);if(N instanceof oZ){p=N;break a}N=N(n);u.push(N.nq);N.jh&&L.push(N.jh);x=[].concat(g.la(N.dr),g.la(x));y=[].concat(g.la(N.Ro),g.la(y));B=[].concat(g.la(N.Yw),g.la(B));G=[].concat(g.la(N.Xw),g.la(G));H=[I].concat(g.la(H))}else if(N.surveyTextInterstitialRenderer){N=rGa(a,b,c,e,N.surveyTextInterstitialRenderer,I,h);if(N instanceof oZ){p=N;break a}N=N(n);u.push(N.nq);N.jh&&L.push(N.jh);y=[].concat(g.la(N.Ro),
g.la(y))}else{p=new oZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={QV:u,Sc:x,Tc:B,Xc:G,Oc:y,Lt:H,Zl:L}}}p instanceof oZ?n=p:(B=n.slotId,r=p.QV,t=p.Sc,u=p.Oc,x=p.Tc,y=p.Lt,n=h(n),B=EZ(b.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B),G={layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:new Map,td:[new JZ(b.i,B)],Sc:t,Oc:u,Tc:x,Xc:[],gb:"core",Ja:new SY([new MJ(r)].concat(g.la(y))),
Dc:n(G)},Zl:p.Zl});return n}};
AGa=function(a,b,c,d,e,f,h){if(!gK(c))return new oZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=BZ(c);if(0>=l)return new oZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new LJ({current:null}),n=SFa(a,b,c,m,d,f,h);return zGa(a,d,f,l,e,function(p,r){var t=p.slotId,u=CZ(c);p=h(p);t=EZ(b.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,r);
TY(y.Ja,"metadata_type_fulfilled_layout")||R("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new uJ(d),new cK(l),new eK(u),new fK(!0),m,new HJ("LAYOUT_TYPE_SURVEY")];return{uR:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:new Map,td:[new JZ(b.i,t)],Sc:[new GZ(b.i,r.layoutId)],Oc:[],Tc:[new HZ(b.i,r.layoutId)],Xc:[],gb:"core",Ja:new SY(u),Dc:p(x)},WQ:y}})};
SZ=function(a,b,c,d,e,f,h){this.l=a;this.i=b;this.Sa=c;this.u=d;this.C=e;this.B=f;this.loadPolicy=void 0===h?1:h};
wz=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,x,y,B,G,H=[];if(0===b.length)return H;b=b.filter(FFa);for(var I=new Map,L=new Map,T=g.q(b),N=T.next();!N.done;N=T.next())(N=N.value.renderer.remoteSlotsRenderer)&&N.hostElementId&&L.set(N.hostElementId,N);T=g.q(b);for(N=T.next();!N.done;N=T.next()){N=N.value;var oa=BGa(a,I,N,d,e,f,h,L);oa instanceof oZ?R(oa,void 0,void 0,{renderer:N.renderer,config:N.config.adPlacementConfig,kind:N.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):H.push.apply(H,
g.la(oa))}if(null===a.C||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),H.length||a||R("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===(u=b[0])||void 0===u?void 0:u.renderer}),H;c=c.filter(FFa);H.push.apply(H,g.la(OFa(I,c,a.l.get(),a.C,d,a.Sa.get())));H.length||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(B=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===B?void 0:B.kind,renderer:null===(G=b[0])||
void 0===G?void 0:G.renderer});return H};
BGa=function(a,b,c,d,e,f,h,l){function m(u){return YY(a.u.get(),u)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)AZ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.actionCompanionAdRenderer,H=YY(a.u.get(),u);return TZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new mJ(G),x,y,G.impressionPings,H,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)AZ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.imageCompanionAdRenderer,H=YY(a.u.get(),u);return TZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new qJ(G),x,y,G.impressionPings,H,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)AZ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.shoppingCompanionCarouselRenderer,H=YY(a.u.get(),u);return TZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new rJ(G),x,y,G.impressionPings,H,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!KFa(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.B)return new oZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");CGa(a.B,{adPlacementRenderer:c,contentCpn:d,UH:e});return[]}return JFa(a.l.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return iGa(a.l.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return kGa(a.l.get(),
a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||DGa(a.Sa.get())&&n.instreamVideoAdRenderer)&&f)return eGa(a.l.get(),a.i.get(),c,d,m);if(n.linearAdSequenceRenderer&&!f)return zZ(b,n,r),null!=n.linearAdSequenceRenderer.linearAds?yGa(a.l.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new oZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return zZ(b,n,r),vGa(a.l.get(),a.i.get(),
p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return AGa(a.l.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return GFa(n.sandwichedLinearAdRenderer)?yGa(a.l.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new oZ("Received invalid SandwichedLinearAdRenderer.")}}return[]};
UZ=function(a){g.E.call(this);this.i=a};
tz=function(a,b,c,d){a.i().Ci(b,d);c=c();a=a.i();VZ(a.dc,"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;rK(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.sc(c.slotId))throw new oZ("Slot ID was empty");if(eZ(e,c))throw new oZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Wb.triggerType});if(!e.Dd.Hl.has(c.rb))throw new oZ("No fulfillment adapter factory registered for slot of type: "+
c.rb);if(!e.Dd.jm.has(c.rb))throw new oZ("No SlotAdapterFactory registered for slot of type: "+c.rb);vZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Wb?[c.Wb]:[]);vZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.Ac);vZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.zc);var f=d.i,h=c.rb+"_"+c.slotPhysicalPosition,l=qZ(f,h);if(eZ(f,c))throw new oZ("Duplicate slots not supported");l.set(c.slotId,new AFa(c));f.i.set(h,l)}catch(za){R(za,c,void 0,void 0,za.Io);break a}eZ(d.i,c).I=!0;try{var m=d.i,n=eZ(m,c),p=c.Wb,r=m.Dd.Ph.get(p.triggerType);
r&&(r.Gi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.va.set(p.triggerId,r));for(var t=g.q(c.Ac),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Dd.Ph.get(x.triggerType);y&&(y.Gi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.ea.set(x.triggerId,y))}for(var B=g.q(c.zc),G=B.next();!G.done;G=B.next()){var H=G.value,I=m.Dd.Ph.get(H.triggerType);I&&(I.Gi("TRIGGER_CATEGORY_SLOT_EXPIRATION",H,c,null),n.V.set(H.triggerId,I))}var L=m.Dd.Hl.get(c.rb).get().Te(m.u,c);n.J=L;var T=m.Dd.jm.get(c.rb).get().Te(m.C,
c);T.init();n.l=T}catch(za){R(za,c,void 0,void 0,za.Io);bZ(d,c,!0);break a}rK(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Lh(c);for(var N=g.q(d.Jd),oa=N.next();!oa.done;oa=N.next())oa.value.Lh(c);jZ(d,c,!1)}};
WZ=function(a,b,c,d){this.Xn=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
XZ=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.B=b;this.l=c;this.i=new Map;d.get().addListener(this);g.hf(this,function(){d.get().removeListener(e)})};
Jia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.Ac),f=e.next();!f.done;f=e.next())f=f.value,f instanceof WZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):R("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Zq(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.l.get().addCueRange(d,c.start,c.end,!1,a)};
YZ=function(){g.E.apply(this,arguments);this.mj=!0;this.Ni=new Map;this.i=new Map};
EGa=function(a,b){a=g.q(a.Ni.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
FGa=function(a,b){a=g.q(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.q(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}R("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.sc(b)),layoutId:b})};
ZZ=function(){this.l=new Map;this.i=new Map;this.u=new Map};
QZ=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return Ix()};
EZ=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return Ix()};
$Z=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return Ix()};
RZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
NZ=function(a,b){this.ze=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
FZ=function(a,b){this.ze=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
IZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
a_=function(a,b){this.i=b;this.rb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
b_=function(a,b){this.i=b;this.rb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
JZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
GGa=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)};
XFa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
GZ=function(a,b){this.ze=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
HZ=function(a,b){this.ze=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
MZ=function(a,b){this.durationMs=45E3;this.ze=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
HGa=function(a){return[new FJ(a.Oz),new zJ(a.instreamAdPlayerOverlayRenderer),new JJ(a.eL),new uJ(a.adPlacementConfig),new OJ(a.videoLengthSeconds),new bK(a.rD)]};
IGa=function(a,b,c,d,e,f){a=c.WC?c.WC:EZ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bc:new Map,td:[new FZ(function(l){return $Z(f,l)},c.Oz)],
Sc:[],Oc:[],Tc:[],Xc:[],gb:b,Ja:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
c_=function(a){var b=this;this.l=a;this.i=function(c){return $Z(b.l.get(),c)}};
d_=function(a,b,c,d,e){return IGa(b,c,d,new SY(HGa(d)),e,a.l.get())};
JGa=function(a,b,c,d,e){var f=HGa(d);f.push(new sJ(d.pP));f.push(new tJ(d.rP));return IGa(b,c,d,new SY(f),e,a.l.get())};
TZ=function(a,b,c,d,e,f,h,l,m){b=EZ(a.l.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Bc:p,td:[new JZ(a.i,b),new a_(a.i,e)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([d,new uJ(f),new FJ(e)]),Dc:l(n),adLayoutLoggingData:m}};
LZ=function(a,b,c){var d=[];d.push(new b_(a.i,c));b&&d.push(b);return d};
KZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,Bc:new Map,td:h,Sc:[new RZ(a.i,b)],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new pJ(d),new uJ(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
DZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,Bc:new Map,td:[new FZ(a.i,c)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new uJ(d)].concat(g.la(h))),Dc:e(m),adLayoutLoggingData:l}};
lGa=function(a,b,c,d,e,f,h,l,m,n){a=OZ(a,b,c,d,e,f,h,l,m,n);return{nq:{layoutId:a.layoutId,layoutType:a.layoutType,Bc:a.Bc,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:a.gb,Ja:new SY(a.Lt),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},dr:a.Sc,Ro:a.Oc,Yw:a.Tc,Xw:a.Xc,jh:a.jh}};
pGa=function(a,b,c,d,e,f,h,l){b=OZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
a=new HZ(a.i,b.WD);c=new GJ(b.WD);d=new HJ("LAYOUT_TYPE_SURVEY");return{nq:{layoutId:b.layoutId,layoutType:b.layoutType,Bc:b.Bc,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:b.gb,Ja:new SY([].concat(g.la(b.Lt),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},dr:b.Sc,Ro:b.Oc,Yw:[].concat(g.la(b.Tc),[a]),Xw:b.Xc,jh:b.jh}};
OZ=function(a,b,c,d,e,f,h,l,m,n){b=EZ(a.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var r=TY(l.Ja,"metadata_type_fulfilled_layout");r||R("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");r=r?r.layoutId:"";c=[new uJ(c),new cK(d),new eK(e)];n&&c.push(new TJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:f,td:[],Sc:[new GZ(a.i,r)],Oc:[],Tc:[],Xc:[],gb:"adapter",
Lt:c,Dc:h(p),adLayoutLoggingData:m,jh:l,WD:r}};
tGa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new uJ(d),new vJ(l),new wJ(c.externalVideoId),new yJ(h),new zJ(c.playerOverlay.instreamAdPlayerOverlayRenderer),new eK({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new PJ(e),new KJ({current:null}),new OJ(f)];e=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:EZ(a.l.get(),
"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new GJ(f));d.push(new IJ(e));d.push(new TJ(l.i));c.adNextParams&&d.push(new nJ(c.adNextParams));c.clickthroughEndpoint&&d.push(new oJ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new dK(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new QJ(c.sodarExtensionData));n&&d.push(new aK(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Bc:tI(c.pings),td:[new JZ(a.i,p)],Sc:c.skipOffsetMilliseconds?[new GZ(a.i,f)]:[],Oc:[new GZ(a.i,
f)],Tc:[],Xc:[],gb:b,Ja:new SY(d),Dc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
gGa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return RY(p,[],["LAYOUT_TYPE_MEDIA"])})||R("Unexpect subLayout type for DAI composite layout");
b=EZ(a.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:f,td:[new IZ(a.i)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new RJ(c),new SJ(m),new MJ(d),new uJ(e),new XJ(h)]),Dc:l(n)}};
cGa=function(a){return null!=a};
e_=function(a,b,c){this.Xn=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
f_=function(a,b,c){this.ze=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
g_=function(a,b){this.ze=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
KGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
h_=function(a,b,c){this.Xn=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
i_=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
j_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
k_=function(a,b){this.Fg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
l_=function(a,b){this.Fg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
m_=function(a,b){this.Fg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
n_=function(a,b){this.Fg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
o_=function(a,b){this.Fg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
HFa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Lk:new Zq(-0x8000000000000,-0x8000000000000),gz:d},null!=c&&(d.vr=new Zq(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Lk:new Zq(0x7ffffffffffff,0x8000000000000),gz:d},null!=c&&(d.vr=new Zq(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||R("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||R("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 oZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Lk:new Zq(a,e),gz:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.vr=new Zq(a,e)}return d;default:return new oZ("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
p_=function(a){var b=this;this.l=a;this.i=function(c){return $Z(b.l.get(),c)}};
IFa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=QZ(a.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.vr&&d.vr.start!==d.Lk.start&&l.push(new WZ(a.i,c,new Zq(d.vr.start,d.Lk.start),!1));l.push(new WZ(a.i,c,new Zq(d.Lk.start,d.Lk.end),d.gz));d={getAdBreakUrl:b.getAdBreakUrl,uL:d.Lk.start,tL:d.Lk.end};b=new n_(a.i,h);f=[new ZJ(d)].concat(g.la(f));return{slotId:h,rb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Wb:b,Ac:l,zc:[new i_(a.i,c),new l_(a.i,h),new m_(a.i,h)],gb:"core",Ja:new SY(f),adSlotLoggingData:e}};
MGa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(LGa(a,b,e.value));return d};
LGa=function(a,b,c){return null!=c.Fg&&c.Fg===a?c.clone(b):c};
RFa=function(a,b,c,d,e){return NGa(a,b,c,d,e)};
mGa=function(a,b,c,d){var e=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");return NGa(a,e,b,c,d)};
NGa=function(a,b,c,d,e){var f=new g_(a.i,c),h=[new k_(a.i,b)];a=[new l_(a.i,b),new i_(a.i,d)];return{slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:f,Ac:h,zc:a,gb:"core",Ja:new SY([new YJ(e({slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:f,Ac:h,zc:a},c))]),adSlotLoggingData:void 0}};
zGa=function(a,b,c,d,e,f){var h=QZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),l=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),m=EZ(a.l.get(),"LAYOUT_TYPE_SURVEY",l);b=q_(a,b,c,d);d=[new k_(a.i,h)];a=[new l_(a.i,h),new i_(a.i,c),new RZ(a.i,m)];if(b instanceof oZ)return b;f=f({slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:b,Ac:d,zc:a},{slotId:l,layoutId:m});l=f.WQ;return[{slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,Ac:d,zc:a,gb:"core",Ja:new SY([new YJ(f.uR)]),adSlotLoggingData:e},
l]};
OGa=function(a,b,c,d,e){e=e?e:QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new g_(a.i,c);var f=[new k_(a.i,e)];a=[new i_(a.i,b),new l_(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,Ac:f,zc:a,gb:"core",Ja:new SY([new YJ(d({slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,Ac:f,zc:a}))])}};
jGa=function(a,b,c,d,e,f){b=q_(a,b,c,d);if(b instanceof oZ)return b;var h=b instanceof WZ?new h_(a.i,c,b.i):null;d=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");var l=[new k_(a.i,d)];a=[new i_(a.i,c),new l_(a.i,d)];f=f({slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:b,Ac:l,zc:a},h);return f instanceof gZ?new oZ(f):{slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:b,Ac:l,zc:a,gb:"core",Ja:new SY([new YJ(f)]),adSlotLoggingData:e}};
WFa=function(a,b,c,d){var e=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new g_(a.i,c);var f=[new k_(a.i,e)],h=[new l_(a.i,e),new i_(a.i,b)];f={slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,Ac:f,zc:h};return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,Ac:[new k_(a.i,e)],zc:[new i_(a.i,b),new l_(a.i,e)],gb:"core",Ja:new SY([new YJ(d(f))])}};
UFa=function(a,b,c,d,e){var f=QZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new f_(a.i,d,c);d=[new k_(a.i,f)];a=[new i_(a.i,b)];return{slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,Ac:d,zc:a,gb:"core",Ja:new SY([new YJ(e({slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,Ac:d,zc:a}))])}};
NFa=function(a,b,c,d,e,f){var h=QZ(a.l.get(),b);return PGa(a,h,b,new g_(a.i,d),c,e,d,f)};
MFa=function(a,b,c,d,e,f,h){return PGa(a,c,b,new j_(a.i,c),d,f,e,h)};
dGa=function(a,b,c){var d=QZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new KGa(a.i),f=[new o_(a.i,d)];a=[new i_(a.i,b)];return{slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:e,Ac:f,zc:a,gb:"core",Ja:new SY([new YJ(c({slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:e,Ac:f,zc:a})),new UJ({})])}};
uGa=function(a,b,c,d,e,f){a=xGa(a,b,c,d);if(a instanceof oZ)return a;f=f({slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,Ac:a.Ac,zc:a.zc,gb:a.gb});return f instanceof oZ?f:{aE:{slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,Ac:a.Ac,zc:a.zc,gb:a.gb,Ja:new SY([new YJ(f.layout)]),adSlotLoggingData:e},Zl:f.Zl}};
xGa=function(a,b,c,d){var e=QZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES");b=q_(a,b,c,d);if(b instanceof oZ)return b;d=[new k_(a.i,e)];a=[new l_(a.i,e),new i_(a.i,c)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,Ac:d,zc:a,gb:"core"}};
hGa=function(a,b,c,d,e,f){var h=QZ(a.l.get(),"SLOT_TYPE_FORECASTING");b=q_(a,b,c,d);if(b instanceof oZ)return b;d=[new k_(a.i,h)];a=[new l_(a.i,h),new i_(a.i,c)];return{slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Wb:b,Ac:d,zc:a,gb:"core",Ja:new SY([new YJ(f({slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Wb:b,Ac:d,zc:a}))]),adSlotLoggingData:e}};
QGa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new yz(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=HFa(b,d),a instanceof oZ?a:e(a.Lk,f);case "AD_PLACEMENT_KIND_END":return new e_(a.i,c,f);default:return new oZ("Cannot construct entry trigger",{kind:b.kind})}};
q_=function(a,b,c,d){return QGa(a,b,c,d,function(e,f){return new WZ(a.i,c,e,f)})};
PGa=function(a,b,c,d,e,f,h,l){var m=[new o_(a.i,b)];a=[new i_(a.i,e),new l_(a.i,b),new NZ(a.i,h)];return{slotId:b,rb:c,slotPhysicalPosition:1,Wb:d,Ac:m,zc:a,gb:"core",Ja:new SY([new YJ(l({slotId:b,rb:c,slotPhysicalPosition:1,gb:"core",Wb:d,Ac:m,zc:a}))]),adSlotLoggingData:f}};
r_=function(a,b,c){g.E.call(this);this.Sa=a;this.l=b;this.i=c;this.eventCount=0};
rK=function(a,b,c){VZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
fZ=function(a,b,c,d){VZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
sFa=function(a,b,c,d){var e=a.Sa.get();(g.S(e.G.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")||g.S(e.G.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&VZ(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)};
VZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Sa.get();if((g.S(p.G.T().experiments,"html5_enable_ads_client_monitoring_log")||g.S(p.G.T().experiments,"html5_enable_ads_client_monitoring_log_live_infra"))&&!g.S(a.Sa.get().G.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=XY(a.l.get());b={eventType:b,eventOrder:++a.eventCount};var r,t={organicPlaybackContext:{contentCpn:vz(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=vz(a.i.get(),
1).ji;var u=null===(r=vz(a.i.get(),2))||void 0===r?void 0:r.clientPlaybackNonce;u&&(t.adVideoPlaybackContext={adVideoCpn:u});a=a.Sa.get();a=g.U(a.G.T().experiments,"html5_experiment_id_label")||g.U(a.G.T().experiments,"html5_experiment_id_label_live_infra");0<a&&(t.html5ExperimentContext={ytExperimentId:a});a={};f&&(a.slotData=WY(p,f));h&&(a.layoutData=mFa(p,h));l&&(a.triggerData=VY(l.trigger,l.category));c&&(a.opportunityData=nFa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=
m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Kv("adsClientStateChange",{adsClientEvent:b})}};
s_=function(){this.i=new Map};
t_=function(a,b,c,d){g.E.call(this);this.G=a;this.u=b;this.Fa=c;this.l=d;this.listeners=[];var e=new vx(this);g.F(this,e);e.N(a,"internalAbandon",this.bO);g.hf(this,function(){g.xx(e)})};
u_=function(a){g.E.call(this);this.G=a;this.i=new Map;this.l=new vx(this);g.F(this,this.l);this.l.N(this.G,g.Rz("ad"),this.Cd,this);this.l.N(this.G,g.Sz("ad"),this.sf,this)};
RGa=function(a,b,c,d,e){g.Oz.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
v_=function(a){this.G=a};
w_=function(a){this.G=a};
x_=function(a){return g.FG(a.G.T())||a.G.T().i||g.JG(a.G.T())||gla(a.G.T())||wG(a.G.T())||g.ZF(a.G.T())||g.vG(a.G.T())||GG(a.G.T())?!0:g.S(a.G.T().experiments,"web_unplugged_pacf_enable_video_overlay_on_inplayer_slot")};
y_=function(a){return g.S(a.G.T().experiments,"enable_server_stitched_dai")};
SGa=function(a){return g.S(a.G.T().experiments,"html5_recognize_predict_start_cue_point")};
pFa=function(a){return g.S(a.G.T().experiments,"html5_enable_deferred_trigger_fix")};
TGa=function(a){return g.S(a.G.T().experiments,"html5_unlisten_to_control_flow_events_on_layout_exited")};
z_=function(a){return g.S(a.G.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")};
DGa=function(a){return g.S(a.G.T().experiments,"html5_enable_dai_single_video_ad")};
A_=function(a,b){this.Fa=a;this.G=b;this.i=new Map;rI().subscribe("adactiveviewmeasurable",this.Jy,this);rI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Iy,this);rI().subscribe("adviewableimpression",this.Ky,this)};
UGa=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?R("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),ina(rI(),b,{ou:function(){return c?{currentTime:a.Fa.get().getCurrentTimeSec(2,!1),duration:c,yc:2===a.Fa.get().getPresentingPlayerType()&&1===B_(a.Fa.get(),2),j9:!1,k9:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}}))};
VGa=function(a,b){a.i.has(b)?(a.i.delete(b),delete rI().i[b]):R("Unexpected unregistration of layout in LidarApi")};
C_=function(a,b){this.l=a;this.u=b};
D_=function(a,b,c,d){var e=void 0===e?new C_(function(){var f=a.getVideoData(1);return f?f.lf():""},function(){return a.T().pageId}):e;
this.G=a;this.l=b;this.u=c;this.B=d;this.Ho=e;this.Hz=null;this.i=new Map;this.Mh=new KI(e)};
XGa=function(a,b,c,d){d=void 0===d?[]:d;var e=FGa(a.l.get(),c);e?(c=E_(a,WGa(e),e),b.hasOwnProperty("baseUrl")?a.Ho.send(b,c):a.Mh.send(b,c,{},d)):R("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
YGa=function(a,b,c,d){d=void 0===d?[]:d;var e=FGa(a.l.get(),b);if(e)for(b=a.u.get().Se(b,c),e=E_(a,WGa(e),e),d=g.q(d),c=d.next();!c.done;c=d.next())c=c.value,c.baseUrl&&a.Mh.send(c.baseUrl,e,b,c.headers);else R("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,trackingType:c})};
F_=function(a,b){g.Kv("adsClientStateChange",b)};
G_=function(a,b){a.i.has(b.uu())?R("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.uu(),b)};
H_=function(a,b){a.i.delete(b.uu())||R("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
WGa=function(a){var b=TY(a.Ja,"metadata_type_ad_placement_config");a=TY(a.Ja,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,TJ:a}};
E_=function(a,b,c){var d=c?ZGa(a):{};c=c?$Ga(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FI(a.G)),sna(b.adPlacementConfig)),(e.SLOT_POS=EI(function(){return(b.TJ||0).toString()}),e)),c),d),(f.FINAL=EI(function(){return"1"}),f.AD_CPN=EI(function(){var l;
return(null===(l=vz(a.B.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(aHa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
ZGa=function(a){var b,c={},d=null===(b=a.Hz)||void 0===b?void 0:b.Uj/1E3;null!=d&&(c.SURVEY_ELAPSED_MS=EI(function(){return Math.round(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=EI(function(){return Math.round(Date.now()/1E3).toString()});
return c};
$Ga=function(a,b){a=a.i.get(b);if(!a)return{};a=a.mC();if(!a)return{};b={};return b.YT_ERROR_CODE=a.Zz.toString(),b.ERRORCODE=a.lw.toString(),b.ERROR_MSG=a.errorMessage,b};
I_=function(a,b,c){g.E.call(this);this.G=a;this.i=b;this.Sa=c;this.listeners=[];b=new g.wN(this);g.F(this,b);b.N(a,"videodatachange",this.UU);b.N(a,"serverstitchedvideochange",this.qU);this.Vo=vz(this);this.contentCpn=vz(this,1).clientPlaybackNonce};
vz=function(a,b){var c=a.G.getVideoData(b);return c?bHa(a,c,b||a.G.getPresentingPlayerType(!0)):null};
cHa=function(a,b,c){var d=bHa(a,b,c);a.Vo=d;a.listeners.forEach(function(e){e.JK(d)});
b=vz(a,1);b.clientPlaybackNonce!==a.contentCpn&&(a.contentCpn=b.clientPlaybackNonce,a.listeners.forEach(function(){}))};
bHa=function(a,b,c){var d,e,f=b.author,h=b.clientPlaybackNonce,l=b.isListed,m=b.Vc,n=b.title,p=b.zg,r=b.Jf,t=b.isMdxPlayback,u=b.Sh,x=b.mdxEnvironment,y=b.zk,B=b.Jk,G=b.No,H=b.videoId||"",I=b.wg||"",L=b.Rh||"";b=b.Bl||void 0;m=a.i.get().i.get(m)||{layoutId:null,slotId:null};var T=a.G.getVideoData(1),N=T.ji();T=T.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);T=(null===(e=null===(d=null===T||void 0===T?void 0:T.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:
e.enableDai)||!1;return Object.assign(Object.assign({},m),{videoId:H,author:f,clientPlaybackNonce:h,playbackDurationMs:c,UH:a,daiEnabled:T,isListed:l,ji:N,wg:I,title:n,Rh:L,zg:p,Jf:r,Bl:b,isMdxPlayback:t,Sh:u,mdxEnvironment:x,zk:y,Jk:B,No:G})};
J_=function(a){g.E.call(this);this.G=a;this.listeners=[];this.Yo=function(){R("Called 'doUnlockPreroll' before it's initialized.")};
var b=new vx(this);g.F(this,b);b.N(a,"progresssync",this.PT);b.N(a,"presentingplayerstatechange",this.FT);b.N(a,"fullscreentoggled",this.Ye);b.N(a,"onVolumeChange",this.Hf);b.N(a,"minimized",this.pg);b.N(a,"resize",this.tb)};
B_=function(a,b){return a.G.ub(b)};
dHa=function(a){var b=a.G.bb().dg();a=a.G.ij(!0,!0);return b.height-(a.height+a.top)};
eHa=function(a,b){var c=a.G.T();VF(c)||"3"!==c.controlsType||a.G.bb().Pv(b)};
fHa=function(a,b,c){g.E.call(this);var d=this;this.I=Y(function(){return new ZZ});
g.F(this,this.I);this.V=Y(function(){return new c_(d.I)});
g.F(this,this.V);this.J=Y(function(){return new YZ});
g.F(this,this.J);this.l=Y(function(){return new UZ(a)});
g.F(this,this.l);this.u=Y(function(){return new p_(d.I)});
g.F(this,this.u);this.va=Y(function(){return new s_});
g.F(this,this.va);this.L=Y(function(){return new u_(b)});
g.F(this,this.L);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.B=Y(function(){return new ZY(d.Sa)});
g.F(this,this.B);this.C=Y(function(){return new SZ(d.u,d.V,d.Sa,d.B,null,null)});
g.F(this,this.C);this.i=Y(function(){return new I_(b,d.va,d.Sa)});
g.F(this,this.i);this.dc=new r_(this.Sa,this.B,this.i);g.F(this,this.dc);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.ea=Y(function(){return new A_(d.Fa,b)});
g.F(this,this.ea);this.Xa=Y(function(){return new D_(b,d.J,d.ea,d.i)});
g.F(this,this.Xa);this.uc=new zz(this.l,this.C,c,this.Sa,a,this.i,this.Fa);g.F(this,this.uc);var e=new t_(b,this.uc,this.Fa);this.ya=Y(function(){return e});
this.Hn=e;this.Y=new XZ(this.l,this.u,this.L,this.ya);g.F(this,this.Y);this.xc=new sz(this.l,this.u,this.C,this.i,this.Y,c);g.F(this,this.xc);this.Dd={Pp:new Map,Hl:new Map,Ph:new Map,jm:new Map,Sl:new Map};this.listeners=[];this.Qe={xc:this.xc,ek:null,Ul:null,Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:null,xi:{NC:function(){}},
dh:this.J.get()}};
K_=function(a){this.i=a};
L_=function(){};
gHa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&el(b.siub,b.scs,b.bgub,b.bgp)};
hHa=function(a,b,c,d){this.callback=a;this.slot=b;this.u=c;this.l=d;this.i=null};
iHa=function(a,b,c){a.i&&R("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.Cs?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=a.u.get(),h=a.slot.slotId,l=YY(a.l.get(),{slotId:a.slot.slotId,rb:a.slot.rb,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Wb:a.slot.Wb,Ac:a.slot.Ac,zc:a.slot.zc}),m=EZ(f.l.get(),e,h),n={layoutId:m,layoutType:e,gb:"core"};d={layoutId:m,layoutType:e,
Bc:new Map,td:[new GGa(f.i,h)],Sc:[],Oc:[],Tc:[],Xc:[],gb:"core",Ja:new SY([new $J(d)]),Dc:l(n)};rFa(a.callback,a.slot,d)},function(d){a.i=null;
d instanceof gh||cZ(a.callback,a.slot,new oZ(d,void 0,!0))})};
jHa=function(a){if(null==a.i)a.callback.Qy(a.slot);else try{a.i.cancel(),a.i=null,a.callback.Qy(a.slot)}catch(b){a.i=null,cZ(a.callback,a.slot,new oZ(b))}};
M_=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.l=c;this.Sa=d;this.u=h;this.i=new hHa(a,b,e,f)};
N_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.l=c;this.i=new hHa(a,b,d,e)};
O_=function(a,b){this.callback=a;this.slot=b};
P_=function(a,b){return xz(a,b.me,b.rb)?!0:!1};
Q_=function(){};
R_=function(a,b,c,d,e){this.i=a;this.Sa=b;this.u=c;this.l=d;this.C=e};
S_=function(){};
kHa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
T_=function(a,b){return RY(a,b.me,b.Ef)?!0:!1};
U_=function(a){this.i=a};
V_=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Xa=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,TJ:e}};
W_=function(){return["metadata_type_ad_placement_config"]};
X_=function(a){var b=a.Xa.get();return E_(b,a.C)};
Y_=function(a,b){a.i.has(b)||a.Se(b)};
lHa=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];YGa(e.Xa.get(),e.layoutId,"progress",d);a.l++}else break}};
mHa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Xa=d;this.i=e;a=TY(this.layout.Ja,"metadata_type_ad_placement_config");this.l=new V_(c.Bc,this.Xa,a,c.layoutId)};
nHa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_FORECASTING"]}};
Z_=function(a,b){this.Xa=a;this.i=b};
$_=function(a,b,c,d){g.Q.call(this);this.callback=a;this.slot=b;this.layout=c;this.l=d;this.i=[]};
a0=function(a,b,c,d,e,f,h){e=TY(c.Ja,e);a=X_(a);var l=cb(function(){d.Kc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Dc},function(){l()}))};
b0=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.rb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():R("Tried to call engagePingCallback but it is null",h,l)}}else R("Companion AdUxClick received without a layoutId",h,l)};
oHa=function(a,b,c,d,e){nI.call(this,"action-companion",a,b,c,d,e)};
c0=function(a,b,c,d,e,f,h,l){$_.call(this,a,b,c,d);this.Xa=e;this.Ie=f;this.I=l;this.mj=!0;this.u=null;this.B=TY(c.Ja,"metadata_type_linked_player_bytes_layout_id");aZ(this.Ie(),this);a=TY(c.Ja,"metadata_type_ad_placement_config");this.C=new V_(c.Bc,this.Xa,a,c.layoutId)};
pHa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
d0=function(a,b,c,d,e){$_.call(this,a,b,c,d);a=TY(c.Ja,"metadata_type_ad_placement_config");this.u=new V_(c.Bc,e,a,c.layoutId)};
qHa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_ENDCAP"]}};
e0=function(a,b,c,d,e,f,h,l){$_.call(this,a,b,c,d);this.Fa=e;this.Xa=f;this.B=h;this.Hd=l;this.u=!1;this.C=TY(this.layout.Ja,"metadata_type_linked_player_bytes_layout_id")};
rHa=function(){return{me:["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"],Ef:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
f0=function(a,b,c,d,e,f,h,l){return T_(c,rHa())?new e0(a,b,c,d,e,f,h,l):T_(c,qHa())?new d0(a,b,c,d,f):null};
g0=function(a,b,c,d,e){this.i=a;this.Fa=b;this.Xa=c;this.l=d;this.Hd=e};
h0=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.xd=b;this.Fa=c;this.od=d;this.Ie=e;this.Sa=f;this.mj=!0;this.VC=!1};
i0=function(a,b,c,d,e,f,h,l,m,n){h0.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.l=[];this.i=-1;this.u=!1};
j0=function(a,b,c){var d=TY(a.Nb().Ja,"metadata_type_linked_in_player_layout_id");return d?d:(R("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.rd(),a.Nb(),{requestingSlot:b,requestingLayout:c}),null)};
k0=function(a,b,c,d){if(!a.u){var e=a.l[a.i];e?(e.Nb().layoutId!==c.layoutId&&R("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Nb().layoutId}),a.u=!0,e.cf(e.Nb(),d),qK(a.B,b,c,d),a.u=!1,a.C?a.C():sHa(a)):R("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
sHa=function(a){a.i===a.l.length-1?(a.i++,l0(a.I,a.layout.layoutId)):(-1===a.i&&a.callback.Kc(a.slot,a.layout),a.i++,a=a.l[a.i],a.startRendering(a.Nb()))};
m0=function(a){return!a.Gn.yc()&&a.state.yc()};
n0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
tHa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
uHa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
vHa=function(a,b,c,d){var e;this.C=a;this.layoutId=c;this.I=d;this.l=[];this.i=[];this.u=this.B=0;a=g.q(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":tHa(b)?this.l.push(b):R("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":uHa(b)?this.i.push(b):R("Invalid AdVideoProgressMillisecondsCommand");break;default:R("Unknown or invalid AdVideoProgressOffSet kind")}this.l.sort(function(f,
h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
p0=function(a,b,c,d,e,f,h,l,m,n,p,r,t){var u;g.E.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Xa=d;this.ea=e;this.Fa=f;this.od=h;this.Da=l;this.u=m;this.C=n;this.position=r;this.Ra=t;this.mj=!0;this.ya=!1;this.l="not_rendering";a=TY(this.layout.Ja,"metadata_type_ad_placement_config");this.i=new V_(c.Bc,this.Xa,a,c.layoutId);a=(null===(u=o0(this))||void 0===u?void 0:u.progressCommands)||[];this.La=new vHa(m,a,c.layoutId,function(){return x.Cr()});
this.va=cb(function(){x.callback.Kc(x.slot,x.layout)});
this.V=cb(function(){"rendering_stop_requested"!==x.l&&p(x);x.J?x.callback.Uc(x.slot,x.layout,x.J):R("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
o0=function(a){return TY(a.layout.Ja,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
q0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.l){lHa(a.i,1E3*b,c);var d=a.Cr();if(d&&(d/=1E3,(b>=.25*d||c)&&Y_(a.i,"first_quartile"),(b>=.5*d||c)&&Y_(a.i,"midpoint"),(b>=.75*d||c)&&Y_(a.i,"third_quartile"),a=a.La,b*=1E3,c=a.I())){for(;a.B<a.l.length;)if(d=a.l[a.B],d.adVideoOffset.percent*c<=b)a.C.get().executeCommand(d.command,a.layoutId),a.B++;else break;for(;a.u<a.i.length;)if(c=a.i[a.u],Number(c.adVideoOffset.milliseconds)<=b)a.C.get().executeCommand(c.command,a.layoutId),a.u++;else break}}};
r0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){p0.call(this,a,b,c,d,e,f,h,m,n,p,r,t,u,x);var y=this;this.Fc=l;this.Ux=!0;this.I=this.Uj=0;this.B=new g.jh(200);this.B.Pa("tick",function(){y.Rb()});
g.F(this,this.B)};
wHa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(W_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,Ef:["LAYOUT_TYPE_MEDIA_BREAK"]}};
xHa=function(a){a.I=Date.now();s0(a,a.Uj);a.B.start()};
s0=function(a,b){b={current:b/1E3,duration:a.Cr()/1E3};a.Fc.get().Na("onAdPlaybackProgress",b)};
t0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I){p0.call(this,a,b,c,d,e,m,p,t,u,y,B,G,H,I);var L=this;this.Ga=f;this.xd=h;this.Y=l;this.L=n;this.Fc=r;this.Ia=x;this.adCpn="";this.I=new g.J(function(){L.bv("load_timeout",new gZ("Media layout load timeout.",{},!0))},1E4)};
yHa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(W_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,Ef:["LAYOUT_TYPE_MEDIA"]}};
u0=function(a,b,c,d,e,f,h){h0.call(this,a,b,c,d,f,h);this.i=e};
AHa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H){if(T_(d,{me:["metadata_type_sub_layouts"],Ef:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var I=TY(d.Ja,"metadata_type_sub_layouts");a=new i0(a,n,r,u,b,c,d,f,e,H);e=[];for(b={ao:0};b.ao<I.length;b={ao:b.ao},b.ao++){var L=zHa({Kc:a.CU.bind(a),Uc:a.EU.bind(a),tf:a.DU.bind(a)},c,I[b.ao],h,l,m,n,p,r,t,u,x,y,B,G,function(T){return function(N){N.cf(I[T.ao],"normal")}}(b),b.ao,I.length,H);
if(!L)return;e.push(L)}a.l=e;return a}if(T_(d,{me:[],Ef:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=zHa({Kc:a.Kc.bind(a),Uc:a.Uc.bind(a),tf:a.tf.bind(a)},c,d,h,l,m,n,p,r,t,u,x,y,B,G,function(){l0(f,d.layoutId)},0,1,H))?new u0(a,n,r,u,c,e,H):c};
zHa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H){if(T_(c,wHa()))return new r0(a,b,c,d,e,m,p,r,t,u,function(){},y,B,G,H);
if(T_(c,yHa()))return c.Ja.i.has("metadata_type_ad_intro")?new t0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,function(I){r.get().Na("onAdIntroStateChange",I)},y,B,G,H):new t0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,function(I){r.get().Ei(I)},y,B,G,H)};
v0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){this.Ie=a;this.I=b;this.Xa=c;this.C=d;this.L=e;this.xd=f;this.J=h;this.Fa=l;this.u=m;this.od=n;this.Fc=p;this.i=r;this.l=t;this.B=u;this.Sa=x};
w0=function(a,b,c,d,e,f,h,l){g.E.call(this);this.C=a;this.J=b;this.I=c;this.u=d;this.B=e;this.l=f;this.Sa=h;this.i=l;this.mj=!0};
BHa=function(a){var b;return x_(a.Sa.get())?!0:!(null===(b=vz(a.i.get()))||void 0===b||!b.daiEnabled)};
x0=function(a){var b,c=null===(b=TY(a.Ja,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=TY(a.Ja,"metadata_type_content_cpn"),f=TY(a.Ja,"metadata_type_instream_ad_player_overlay_renderer"),h=TY(a.Ja,"metadata_type_ad_placement_config"),l=TY(a.Ja,"metadata_type_video_length_seconds");var m=a.Ja.i.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?TY(a.Ja,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.Ja.i.has("metadata_type_layout_enter_ms")&&a.Ja.i.has("metadata_type_layout_exit_ms")?
(TY(a.Ja,"metadata_type_layout_exit_ms")-TY(a.Ja,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Oz:d,contentCpn:e,eL:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,rD:m,WC:TY(a.Ja,"metadata_type_linked_in_player_layout_id"),fJ:TY(a.Ja,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
DHa=function(a,b){return CHa(a,b)};
EHa=function(a,b){var c;b=CHa(a,b);if(!b)return null;b.rD=null===(c=TY(a.Ja,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
CHa=function(a,b){var c,d=null===(c=TY(a.Ja,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.Ja.i.has("metadata_ad_video_is_listed"))var e=TY(a.Ja,"metadata_ad_video_is_listed");else b?e=b.isListed:(R("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);a.Ja.i.has("metadata_type_ad_info_ad_metadata")?b=TY(a.Ja,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Rh,channelThumbnailUrl:b.wg,channelTitle:b.author,videoTitle:b.title}:
(R("No layout metadata nor AdPlayback specified for AdMetaData"),b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{pP:b,adPlacementConfig:TY(a.Ja,"metadata_type_ad_placement_config"),rP:e,contentCpn:TY(a.Ja,"metadata_type_content_cpn"),WC:TY(a.Ja,"metadata_type_linked_in_player_layout_id"),fJ:TY(a.Ja,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:TY(a.Ja,"metadata_type_instream_ad_player_overlay_renderer"),rD:void 0,eL:d,Oz:a.layoutId,videoLengthSeconds:TY(a.Ja,
"metadata_type_video_length_seconds")}};
FHa=function(a,b){this.callback=a;this.slot=b};
y0=function(){};
GHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
HHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
z0=function(a){this.Fa=a};
A0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
B0=function(a){g.E.call(this);this.FA=a;this.Db=new Map};
IHa=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof HZ&&f.ze===b&&c.push(e)}c.length?mZ(a.FA(),c):R("Survey is submitted but no registered triggers can be activated.")};
C0=function(a,b){B0.call(this,a);var c=this;b.get().addListener(this);g.hf(this,function(){b.get().removeListener(c)})};
D0=function(a){g.E.call(this);this.i=a;this.mj=!0;this.Db=new Map;this.C=new Set;this.u=new Set;this.B=new Set;this.I=new Set;this.l=new Set};
E0=function(a,b){g.E.call(this);var c=this;this.i=a;this.Db=new Map;b.get().addListener(this);g.hf(this,function(){b.get().removeListener(c)})};
JHa=function(a,b,c,d){var e=[];a=g.q(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof i_){var h=f.trigger.i===b;h===c?e.push(f):d&&h&&(R("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
F0=function(a,b,c,d){g.E.call(this);var e=this;this.l=a;this.u=b;this.Fa=c;this.B=d;this.Db=new Map;this.i=new Set;c.get().addListener(this);g.hf(this,function(){c.get().removeListener(e)})};
G0=function(a,b,c,d,e,f,h,l,m,n){if(vz(a.B.get(),1).clientPlaybackNonce!==m)throw new oZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Db.set(c.triggerId,{bundle:new A0(b,c,d,e),ax:f});a.u.get().addCueRange(f,h,l,n,a)};
KHa=function(a,b){a=g.q(a.Db.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;if(b===d.ax)return c}return""};
H0=function(a){g.E.call(this);this.u=a;this.mj=!0;this.Db=new Map;this.l=this.i=null};
l0=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof JZ){var f;if(f=e.trigger.layoutId===b)f=(f=tFa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&mZ(a.u(),c)};
I0=function(a){g.E.call(this);this.i=a;this.mj=!0;this.Db=new Map};
J0=function(a,b,c,d,e){g.E.call(this);this.u=a;this.B=b;this.C=c;this.J=d;this.I=e;this.i=this.l=null;this.B.get().addListener(this)};
roa=function(a,b,c,d,e){var f=QZ(a.I.get(),"SLOT_TYPE_PLAYER_BYTES");a.l={slotId:f,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:void 0,Ac:[],zc:[],gb:"surface",Ja:new SY([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Bc:new Map,td:[],Sc:[],Oc:[],Tc:[],Xc:[],gb:"surface",Ja:new SY(c),Dc:oFa(XY(a.C.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(kZ(a.u(),a.l,a.i),lZ(a.u(),a.l,a.i))};
K0=function(a){this.Eo=a};
LHa=function(a,b){if(!a)return{wl:[],Cs:!0};a.trackingParams&&bpa(WK(),a.trackingParams);if(a.adThrottled)return{wl:[],Cs:!0};a=a.playerAds;if(!a||!a.length)return{wl:[],Cs:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{wl:[],Cs:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{wl:a,
Cs:!1}};
L0=function(a){g.E.call(this);this.G=a;this.listeners=[];this.i=new vx(this);g.F(this,this.i);this.i.N(this.G,"aduxclicked",this.onAdUxClicked);this.i.N(this.G,"aduxmouseover",this.BD);this.i.N(this.G,"aduxmouseout",this.AD);this.i.N(this.G,"muteadaccepted",this.WR)};
MHa=function(a,b,c){b=g.Qe(b,function(d){return new Xz(d,c,d.id)});
a.G.Na("onAdUxUpdate",b)};
M0=function(a,b){a=g.q(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
N0=function(a){this.G=a};
O0=function(a){this.G=a};
P0=function(){this.listeners=[]};
NHa=function(a){this.G=a};
Q0=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.l=d;this.C=e;this.u=f;this.Fa=h;this.I=l;this.Xa=m;this.J=n;this.driftRecoveryMs=TY(this.layout.Ja,"metadata_type_drift_recovery_ms")||null};
OHa=function(a){var b=TY(a.layout.Ja,"metadata_type_layout_enter_ms"),c=TY(a.layout.Ja,"metadata_type_layout_exit_ms");a=a.u.get();b=xK(a.i,b,c);return Math.min(c,null!==b?b:Infinity)};
R0=function(a,b){var c;F_(a.Xa.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.l.get().Vo)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Dc.adClientDataEntry},b)})};
S0=function(a,b,c,d,e,f,h,l,m,n,p){Q0.call(this,a,b,c,d,e,f,h,l,m,n);this.B=p;this.i=null};
QHa=function(a,b){b=PHa(a,b);a.i={Wh:b};b&&b.startRendering(b.Nb())};
PHa=function(a,b){return null==b?null:a.B.find(function(c){return c.Nb().layoutId===b})||null};
RHa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=e;this.Fa=f;this.I=h;this.B=l;this.C=m;this.Sa=n;this.Ux=!0;this.l=null};
THa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(2,!1);m0(c)&&n0(d,0,null)&&Y_(a.i,"impression");a.i.i.has("impression")&&(g.YI(c,4)&&!g.YI(c,2)&&a.i.Se("pause"),0>XI(c,4)&&!(0>XI(c,2))&&a.i.Se("resume"),g.YI(c,16)&&.5<=a.Fa.get().getCurrentTimeSec(2,!1)&&a.i.Se("seek"),g.YI(c,2)&&SHa(a,c.state,b))};
SHa=function(a,b,c){var d,e=TY(a.layout.Ja,"metadata_type_video_length_seconds"),f=y_(a.Sa.get())?null!==(d=c.ey)&&void 0!==d?d:0:a.Fa.get().getCurrentTimeSec(2,!1),h=1>=Math.abs(e-f);UHa(a,b,h?e:f,c.ey);h&&Y_(a.i,"complete")};
UHa=function(a,b,c,d){lHa(a.i,1E3*c);var e=TY(a.layout.Ja,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.V(b,16))||(null===b||void 0===b?0:g.V(b,32))||(n0(c,.25*e,d)&&Y_(a.i,"first_quartile"),n0(c,.5*e,d)&&Y_(a.i,"midpoint"),n0(c,.75*e,d)&&Y_(a.i,"third_quartile"))};
T0=function(a){return{enterMs:TY(a.Ja,"metadata_type_layout_enter_ms"),exitMs:TY(a.Ja,"metadata_type_layout_exit_ms")}};
U0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H){this.Ie=a;this.Y=b;this.l=c;this.u=d;this.Fa=e;this.Xa=f;this.va=h;this.J=l;this.i=m;this.B=n;this.xd=p;this.L=r;this.od=t;this.Fc=u;this.C=x;this.I=y;this.ea=B;this.Sa=G;this.V=H};
V0=function(a,b,c,d,e,f,h){g.E.call(this);var l=this;this.B=a;this.C=b;this.u=c;this.l=e;this.Fa=f;this.Sa=h;this.i=null;d.get().addListener(this);g.hf(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.hf(this,function(){e.get().removeListener(l)})};
CGa=function(a,b){if(vz(a.u.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)R("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.l.get().Nz);for(var c=b.next();!c.done;c=b.next())VHa(a,a.i,c.value)}};
VHa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);tz(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=y_(a.Sa.get());var h=1E3*c.startSecs;h={Lk:new Zq(h,h+1E3*c.durationSecs),gz:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Zq(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Zq(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.vr=f;return[IFa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new NJ(c)])]})};
W0=function(a){g.E.call(this);this.i=a;this.Db=new Map};
X0=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&mZ(a.i(),c)};
Y0=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.hf(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().Vo)||void 0===c?void 0:c.slotId)||null};
WHa=function(a,b){var c=[];a=g.q(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
Z0=function(a,b,c,d){g.E.call(this);this.G=a;this.B=b;this.Sa=c;this.Xa=d;this.listeners=[];this.l=new Set;this.Nz=[];this.u=new vK(this,SGa(c.get()));this.i=new wK;XHa(this)};
XHa=function(a){var b,c=a.G.getVideoData(1);c.subscribe("cuepointupdated",a.HD,a);a.l.clear();a.Nz.length=0;c=(null===(b=c.i)||void 0===b?void 0:Xja(b,0))||[];a.HD(c)};
YHa=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");}};
$0=function(a){this.G=a};
a1=function(){this.listeners=new Set};
ZHa=function(a,b,c,d,e){nI.call(this,"image-companion",a,b,c,d,e)};
b1=function(a,b,c,d,e,f,h,l){$_.call(this,a,b,c,d);this.Xa=e;this.Ie=f;this.I=l;this.mj=!0;this.u=null;this.B=TY(c.Ja,"metadata_type_linked_player_bytes_layout_id");aZ(this.Ie(),this);a=TY(c.Ja,"metadata_type_ad_placement_config");this.C=new V_(c.Bc,this.Xa,a,c.layoutId)};
$Ha=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
aIa=function(a,b,c,d,e){nI.call(this,"shopping-companion",a,b,c,d,e)};
c1=function(a,b,c,d,e,f,h,l){$_.call(this,a,b,c,d);this.Xa=e;this.Ie=f;this.I=l;this.mj=!0;this.u=null;this.B=TY(c.Ja,"metadata_type_linked_player_bytes_layout_id");aZ(this.Ie(),this);a=TY(c.Ja,"metadata_type_ad_placement_config");this.C=new V_(c.Bc,this.Xa,a,c.layoutId)};
bIa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
cIa=function(a,b,c,d,e){this.i=a;this.Xa=b;this.Ie=c;this.l=d;this.u=e};
d1=function(a,b,c,d,e){$_.call(this,c,a,b,d);this.Xa=e;a=TY(b.Ja,"metadata_type_ad_placement_config");this.u=new V_(b.Bc,e,a,b.layoutId)};
e1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
g1=function(a,b,c){c=void 0===c?f1:c;c.width<f1.width&&(c=f1);if(a.width<c.width||a.height<c.height)return{Zz:3,lw:501,errorMessage:"ad("+e1(c)+") larger than container("+e1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Zz:3,lw:501,errorMessage:"ad("+e1(c)+") to container("+e1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Zz:3,lw:501,errorMessage:"ad("+e1(c)+") covers container("+e1(a)+") center."}};
dIa=function(a,b){var c=TY(a.Ja,"metadata_type_ad_placement_config");return new V_(a.Bc,b,c,a.layoutId)};
h1=function(a){return TY(a.Ja,"metadata_type_invideo_overlay_ad_renderer")};
i1=function(a,b,c,d){nI.call(this,"invideo-overlay",a,b,c,d);this.i=d};
j1=function(a,b,c,d,e,f,h,l,m,n,p,r){$_.call(this,f,a,b,e);this.Xa=c;this.u=h;this.Fa=l;this.I=m;this.Sa=n;this.Hd=p;this.B=r;this.J=dIa(b,c)};
eIa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];W_().forEach(function(b){a.push(b)});
return{me:a,Ef:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
k1=function(a,b,c,d,e,f,h,l,m,n,p,r,t){$_.call(this,f,a,b,e);this.Xa=c;this.u=h;this.I=l;this.Fa=m;this.J=n;this.Sa=p;this.Hd=r;this.B=t;this.L=dIa(b,c)};
fIa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(W_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{me:a,Ef:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
l1=function(a){this.Fa=a;this.i=!1};
m1=function(a,b,c,d,e,f){$_.call(this,c,a,b,d);this.u=e;this.Fa=f};
gIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.I=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Sa=m;this.Hd=n};
n1=function(a){g.E.call(this);this.u=a;this.mj=!0;this.Db=new Map;this.i=new Map;this.l=new Map};
hIa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())(d=a.l.get(d.value.triggerId))&&c.push(d)}return c};
o1=function(a,b,c){g.E.call(this);this.u=a;this.B=b;this.C=c;this.i=this.l=void 0;this.B.get().addListener(this)};
iIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.ea=Y(function(){return new ZZ});
g.F(this,this.ea);this.Ga=Y(function(){return new c_(f.ea)});
g.F(this,this.Ga);this.u=Y(function(){return new YZ});
g.F(this,this.u);this.I=Y(function(){return new UZ(a)});
g.F(this,this.I);this.J=Y(function(){return new p_(f.ea)});
g.F(this,this.J);this.Lb=Y(function(){return new s_});
g.F(this,this.Lb);this.ac=Y(function(){return new oI(b.T())});
g.F(this,this.ac);this.va=Y(function(){return new L0(b)});
g.F(this,this.va);this.Ua=Y(function(){return new K_(e)});
g.F(this,this.Ua);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.Da=Y(function(){return new u_(b)});
g.F(this,this.Da);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.Tb=Y(function(){return new K0(d)});
g.F(this,this.Tb);this.B=Y(function(){return new ZY(f.Sa)});
g.F(this,this.B);this.La=Y(function(){return new SZ(f.J,f.Ga,f.Sa,f.B,"SLOT_TYPE_ABOVE_FEED",f.eb)});
g.F(this,this.La);this.Ec=Y(function(){return new O0(b)});
g.F(this,this.Ec);this.jb=Y(function(){return new P0});
g.F(this,this.jb);this.fb=Y(function(){return new a1});
g.F(this,this.fb);this.i=Y(function(){return new I_(b,f.Lb,f.Sa)});
g.F(this,this.i);this.dc=new r_(this.Sa,this.B,this.i);g.F(this,this.dc);this.Aa=Y(function(){return new Z0(b,f.i,f.Sa,f.Xa)});
g.F(this,this.Aa);this.xb=Y(function(){return new $0(b)});
g.F(this,this.xb);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.He=Y(function(){return new L_});
this.Y=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.Y);this.Xa=Y(function(){return new D_(b,f.u,f.Y,f.i)});
g.F(this,this.Xa);this.Zc=new w0(x0,p1,function(l,m,n,p){return d_(f.Ga.get(),l,m,n,p)},this.I,this.J,this.B,this.Sa,this.i);
g.F(this,this.Zc);this.uc=new zz(this.I,this.La,c,this.Sa,a,this.i,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa,this.Aa);this.Za=Y(function(){return h});
this.Hn=h;this.eb=new V0(this.I,this.J,this.i,this.Za,this.Aa,this.Fa,this.Sa);g.F(this,this.eb);this.Bb=new XZ(this.I,this.J,this.Da,this.Za);g.F(this,this.Bb);this.xc=new sz(this.I,this.J,this.La,this.i,this.Bb,c);g.F(this,this.xc);this.Xb=Y(function(){return new R_(f.Tb,f.Sa,f.Ga,f.B,f.xb)});
g.F(this,this.Xb);this.L=Y(function(){return new S_});
g.F(this,this.L);this.ya=new C0(a,this.va);g.F(this,this.ya);this.l=new D0(a);g.F(this,this.l);this.Ra=new W0(a);g.F(this,this.Ra);this.Ya=new E0(a,this.Za);g.F(this,this.Ya);this.Ia=new F0(a,this.Da,this.Fa,this.i);g.F(this,this.Ia);this.qb=new Y0(a,this.i);g.F(this,this.qb);this.C=new H0(a);g.F(this,this.C);this.Lc=new I0(a);g.F(this,this.Lc);this.Cb=new n1(a);g.F(this,this.Cb);this.V=Y(function(){return new y0});
g.F(this,this.V);this.Gd=Y(function(){return new z0(f.Fa)});
g.F(this,this.Gd);this.Xd=Y(function(){return new cIa(f.va,f.Xa,a,f.u,f.Y)});
g.F(this,this.Xd);this.Ub=Y(function(){return new U_(f.xc)});
g.F(this,this.Ub);this.hc=Y(function(){return new Z_(f.Xa,f.C)});
g.F(this,this.hc);this.Pc=Y(function(){return new U0(a,f.C,f.i,f.xb,f.Fa,f.Xa,f.Lb,f.Aa,f.Y,f.He,f.xd,f.Da,f.od,f.Fc,f.ac,f.Ua,f.Ec,f.Sa,f.u)});
g.F(this,this.Pc);this.wc=Y(function(){return new gIa(f.va,f.Fa,f.Xa,f.u,f.Y,f.Ra,f.Cb,f.Ua,f.Sa,c)});
g.F(this,this.wc);this.Be=new o1(a,this.fb,this.ea);g.F(this,this.Be);this.Ce=new J0(a,this.jb,this.B,this.i,this.ea);g.F(this,this.Ce);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.eb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bb]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Xb],["SLOT_TYPE_ABOVE_FEED",this.L],["SLOT_TYPE_FORECASTING",this.L],["SLOT_TYPE_IN_PLAYER",this.L],["SLOT_TYPE_PLAYER_BYTES",this.L]]),Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ya],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ya],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],
["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ra],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ya],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ia],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ia],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ia],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ya],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Lc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Cb]]),jm:new Map([["SLOT_TYPE_ABOVE_FEED",this.V],["SLOT_TYPE_AD_BREAK_REQUEST",this.V],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES",this.Gd]]),Sl:new Map([["SLOT_TYPE_ABOVE_FEED",
this.Xd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ub],["SLOT_TYPE_FORECASTING",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Pc],["SLOT_TYPE_IN_PLAYER",this.wc]])};this.listeners=[this.u.get()];this.Qe={xc:this.xc,ek:this.C,Ul:this.jb.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:this.fb.get(),xi:this.ya,dh:this.u.get()}};
jIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.I=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Sa=m;this.Hd=n};
kIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.B=Y(function(){return new ZZ});
g.F(this,this.B);this.ya=Y(function(){return new c_(f.B)});
g.F(this,this.ya);this.C=Y(function(){return new YZ});
g.F(this,this.C);this.J=Y(function(){return new UZ(a)});
g.F(this,this.J);this.L=Y(function(){return new p_(f.B)});
g.F(this,this.L);this.Lc=Y(function(){return new s_});
g.F(this,this.Lc);this.Bb=Y(function(){return new oI(b.T())});
g.F(this,this.Bb);this.Ia=Y(function(){return new L0(b)});
g.F(this,this.Ia);this.Ra=Y(function(){return new K_(e)});
g.F(this,this.Ra);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.V=Y(function(){return new u_(b)});
g.F(this,this.V);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.jb=Y(function(){return new K0(d)});
g.F(this,this.jb);this.u=Y(function(){return new ZY(f.Sa)});
g.F(this,this.u);this.Da=Y(function(){return new SZ(f.L,f.ya,f.Sa,f.u,null,null)});
g.F(this,this.Da);this.Ub=Y(function(){return new O0(b)});
g.F(this,this.Ub);this.Ya=Y(function(){return new P0});
g.F(this,this.Ya);this.Za=Y(function(){return new a1});
g.F(this,this.Za);this.l=Y(function(){return new I_(b,f.Lc,f.Sa)});
g.F(this,this.l);this.dc=new r_(this.Sa,this.u,this.l);g.F(this,this.dc);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.Aa=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.Aa);this.Xa=Y(function(){return new D_(b,f.C,f.Aa,f.l)});
g.F(this,this.Xa);this.Ec=Y(function(){return new L_});
g.F(this,this.Ec);this.hc=new w0(x0,p1,function(l,m,n,p){return d_(f.ya.get(),l,m,n,p)},this.J,this.L,this.u,this.Sa,this.l);
g.F(this,this.hc);this.uc=new zz(this.J,this.Da,c,this.Sa,a,this.l,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa);this.Cb=Y(function(){return h});
this.Hn=h;this.eb=new XZ(this.J,this.L,this.V,this.Cb);g.F(this,this.eb);this.xc=new sz(this.J,this.L,this.Da,this.l,this.eb,c);g.F(this,this.xc);this.xb=Y(function(){return new R_(f.jb,f.Sa,f.ya,f.u)});
g.F(this,this.xb);this.Y=Y(function(){return new S_});
g.F(this,this.Y);this.Ga=new C0(a,this.Ia);g.F(this,this.Ga);this.i=new D0(a);g.F(this,this.i);this.La=new W0(a);g.F(this,this.La);this.Ua=new E0(a,this.Cb);g.F(this,this.Ua);this.ea=new F0(a,this.V,this.Fa,this.l);g.F(this,this.ea);this.I=new H0(a);g.F(this,this.I);this.Xb=new I0(a);g.F(this,this.Xb);this.fb=new n1(a);g.F(this,this.fb);this.va=Y(function(){return new y0});
g.F(this,this.va);this.wc=Y(function(){return new z0(f.Fa)});
g.F(this,this.wc);this.qb=Y(function(){return new U_(f.xc)});
g.F(this,this.qb);this.Lb=Y(function(){return new Z_(f.Xa,f.I)});
g.F(this,this.Lb);this.Tb=Y(function(){return new jIa(f.Ia,f.Fa,f.Xa,f.C,f.Aa,f.La,f.fb,f.Ra,f.Sa,c)});
g.F(this,this.Tb);this.ac=Y(function(){return new v0(a,f.I,f.Xa,f.Aa,f.Ec,f.xd,f.l,f.Fa,f.V,f.od,f.Fc,f.Bb,f.Ra,f.Ub,f.Sa)});
g.F(this,this.ac);this.Pc=new o1(a,this.Za,this.B);g.F(this,this.Pc);this.Zc=new J0(a,this.Ya,this.u,this.l,this.B);g.F(this,this.Zc);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.hc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.eb]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xb],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",
this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Y]]),Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ga],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.i],["TRIGGER_TYPE_CLOSE_REQUESTED",this.La],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ua],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ea],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ea],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.I],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ua],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Xb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.fb]]),jm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.wc]]),Sl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qb],["SLOT_TYPE_FORECASTING",this.Lb],["SLOT_TYPE_IN_PLAYER",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.ac]])};this.listeners=[this.C.get()];this.Qe={xc:this.xc,ek:null,Ul:this.Ya.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:this.Za.get(),
xi:this.Ga,dh:this.C.get()}};
lIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Y=Y(function(){return new ZZ});
g.F(this,this.Y);this.va=Y(function(){return new c_(f.Y)});
g.F(this,this.va);this.C=Y(function(){return new YZ});
g.F(this,this.C);this.J=Y(function(){return new UZ(a)});
g.F(this,this.J);this.L=Y(function(){return new p_(f.Y)});
g.F(this,this.L);this.ac=Y(function(){return new s_});
g.F(this,this.ac);this.fb=Y(function(){return new oI(b.T())});
g.F(this,this.fb);this.Aa=Y(function(){return new L0(b)});
g.F(this,this.Aa);this.jb=Y(function(){return new K_(e)});
g.F(this,this.jb);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.V=Y(function(){return new u_(b)});
g.F(this,this.V);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.Za=Y(function(){return new K0(d)});
g.F(this,this.Za);this.u=Y(function(){return new ZY(f.Sa)});
g.F(this,this.u);this.ya=Y(function(){return new SZ(f.L,f.va,f.Sa,f.u,null,null)});
g.F(this,this.ya);this.Bb=Y(function(){return new O0(b)});
g.F(this,this.Bb);this.La=Y(function(){return new P0});
g.F(this,this.La);this.l=Y(function(){return new I_(b,f.ac,f.Sa)});
g.F(this,this.l);this.dc=new r_(this.Sa,this.u,this.l);g.F(this,this.dc);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.Ra=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.Ra);this.Xa=Y(function(){return new D_(b,f.C,f.Ra,f.l)});
g.F(this,this.Xa);this.Xb=Y(function(){return new L_});
g.F(this,this.Xb);this.Tb=new w0(x0,p1,function(l,m,n,p){return d_(f.va.get(),l,m,n,p)},this.J,this.L,this.u,this.Sa,this.l);
g.F(this,this.Tb);this.uc=new zz(this.J,this.ya,c,this.Sa,a,this.l,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa);this.qb=Y(function(){return h});
this.Hn=h;this.Ua=new XZ(this.J,this.L,this.V,this.qb);g.F(this,this.Ua);this.xc=new sz(this.J,this.L,this.ya,this.l,this.Ua,c);g.F(this,this.xc);this.eb=Y(function(){return new R_(f.Za,f.Sa,f.va,f.u)});
g.F(this,this.eb);this.ea=Y(function(){return new S_});
g.F(this,this.ea);this.Da=new C0(a,this.Aa);g.F(this,this.Da);this.i=new D0(a);g.F(this,this.i);this.Ia=new E0(a,this.qb);g.F(this,this.Ia);this.Ga=new F0(a,this.V,this.Fa,this.l);g.F(this,this.Ga);this.I=new H0(a);g.F(this,this.I);this.Cb=new I0(a);g.F(this,this.Cb);this.B=Y(function(){return new y0});
g.F(this,this.B);this.Ub=Y(function(){return new z0(f.Fa)});
g.F(this,this.Ub);this.Ya=Y(function(){return new U_(f.xc)});
g.F(this,this.Ya);this.xb=Y(function(){return new Z_(f.Xa,f.I)});
g.F(this,this.xb);this.hc=Y(function(){return new g0(f.Aa,f.Fa,f.Xa,f.C,c)});
g.F(this,this.hc);this.Lb=Y(function(){return new v0(a,f.I,f.Xa,f.Ra,f.Xb,f.xd,f.l,f.Fa,f.V,f.od,f.Fc,f.fb,f.jb,f.Bb,f.Sa)});
g.F(this,this.Lb);this.wc=new J0(a,this.La,this.u,this.l,this.Y);g.F(this,this.wc);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Tb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ua]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.ea]]),
Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ga],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ga],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.I],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.I],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Cb]]),jm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.Ub]]),
Sl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.xb],["SLOT_TYPE_IN_PLAYER",this.hc],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.C.get()];this.Qe={xc:this.xc,ek:null,Ul:this.La.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:null,xi:this.Da,dh:this.C.get()}};
mIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Y=Y(function(){return new ZZ});
g.F(this,this.Y);this.va=Y(function(){return new c_(f.Y)});
g.F(this,this.va);this.B=Y(function(){return new YZ});
g.F(this,this.B);this.I=Y(function(){return new UZ(a)});
g.F(this,this.I);this.J=Y(function(){return new p_(f.Y)});
g.F(this,this.J);this.hc=Y(function(){return new s_});
g.F(this,this.hc);this.eb=Y(function(){return new oI(b.T())});
g.F(this,this.eb);this.Aa=Y(function(){return new L0(b)});
g.F(this,this.Aa);this.fb=Y(function(){return new K_(e)});
g.F(this,this.fb);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.L=Y(function(){return new u_(b)});
g.F(this,this.L);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.Ua=Y(function(){return new K0(d)});
g.F(this,this.Ua);this.u=Y(function(){return new ZY(f.Sa)});
g.F(this,this.u);this.ya=Y(function(){return new SZ(f.J,f.va,f.Sa,f.u,null,null)});
g.F(this,this.ya);this.Cb=Y(function(){return new O0(b)});
g.F(this,this.Cb);this.Ga=Y(function(){return new P0});
g.F(this,this.Ga);this.l=Y(function(){return new I_(b,f.hc,f.Sa)});
g.F(this,this.l);this.dc=new r_(this.Sa,this.u,this.l);g.F(this,this.dc);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.La=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.La);this.Xa=Y(function(){return new D_(b,f.B,f.La,f.l)});
g.F(this,this.Xa);this.ac=Y(function(){return new L_});
g.F(this,this.ac);this.Ub=new w0(x0,p1,function(l,m,n,p){return d_(f.va.get(),l,m,n,p)},this.I,this.J,this.u,this.Sa,this.l);
g.F(this,this.Ub);this.uc=new zz(this.I,this.ya,c,this.Sa,a,this.l,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa);this.jb=Y(function(){return h});
this.Hn=h;this.Ra=new XZ(this.I,this.J,this.L,this.jb);g.F(this,this.Ra);this.xc=new sz(this.I,this.J,this.ya,this.l,this.Ra,c);g.F(this,this.xc);this.Ya=Y(function(){return new R_(f.Ua,f.Sa,f.va,f.u)});
g.F(this,this.Ya);this.V=Y(function(){return new S_});
g.F(this,this.V);this.Da=new C0(a,this.Aa);g.F(this,this.Da);this.i=new D0(a);g.F(this,this.i);this.Ia=new E0(a,this.jb);g.F(this,this.Ia);this.qb=new F0(a,this.L,this.Fa,this.l);g.F(this,this.qb);this.C=new H0(a);g.F(this,this.C);this.Lb=new I0(a);g.F(this,this.Lb);this.ea=Y(function(){return new y0});
g.F(this,this.ea);this.Xb=Y(function(){return new z0(f.Fa)});
g.F(this,this.Xb);this.Za=Y(function(){return new U_(f.xc)});
g.F(this,this.Za);this.xb=Y(function(){return new Z_(f.Xa,f.C)});
g.F(this,this.xb);this.Bb=Y(function(){return new g0(f.Aa,f.Fa,f.Xa,f.B,c)});
g.F(this,this.Bb);this.Tb=Y(function(){return new v0(a,f.C,f.Xa,f.La,f.ac,f.xd,f.l,f.Fa,f.L,f.od,f.Fc,f.eb,f.fb,f.Cb,f.Sa)});
g.F(this,this.Tb);this.wc=new J0(a,this.Ga,this.u,this.l,this.Y);g.F(this,this.wc);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ub],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ra]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES",this.V]]),
Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Lb]]),jm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ea],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.Xb]]),Sl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING",
this.xb],["SLOT_TYPE_IN_PLAYER",this.Bb],["SLOT_TYPE_PLAYER_BYTES",this.Tb]])};this.listeners=[this.B.get()];this.Qe={xc:this.xc,ek:null,Ul:this.Ga.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:null,xi:this.Da,dh:this.B.get()}};
q1=function(a,b,c,d,e,f,h,l,m){e0.call(this,a,b,c,d,e,f,h,m);this.I=l};
nIa=function(){var a=rHa();a.me.push("metadata_type_ad_info_ad_metadata");return a};
oIa=function(a,b,c,d,e,f){this.l=a;this.Fa=b;this.Xa=c;this.u=d;this.i=e;this.Hd=f};
pIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Y=Y(function(){return new ZZ});
g.F(this,this.Y);this.va=Y(function(){return new c_(f.Y)});
g.F(this,this.va);this.B=Y(function(){return new YZ});
g.F(this,this.B);this.I=Y(function(){return new UZ(a)});
g.F(this,this.I);this.J=Y(function(){return new p_(f.Y)});
g.F(this,this.J);this.hc=Y(function(){return new s_});
g.F(this,this.hc);this.fb=Y(function(){return new NHa(b)});
g.F(this,this.fb);this.jb=Y(function(){return new oI(b.T())});
g.F(this,this.jb);this.Aa=Y(function(){return new L0(b)});
g.F(this,this.Aa);this.qb=Y(function(){return new K_(e)});
g.F(this,this.qb);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.L=Y(function(){return new u_(b)});
g.F(this,this.L);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.Za=Y(function(){return new K0(d)});
g.F(this,this.Za);this.u=Y(function(){return new ZY(f.Sa)});
g.F(this,this.u);this.ya=Y(function(){return new SZ(f.J,f.va,f.Sa,f.u,null,null)});
g.F(this,this.ya);this.Cb=Y(function(){return new O0(b)});
g.F(this,this.Cb);this.La=Y(function(){return new P0});
g.F(this,this.La);this.l=Y(function(){return new I_(b,f.hc,f.Sa)});
g.F(this,this.l);this.dc=new r_(this.Sa,this.u,this.l);g.F(this,this.dc);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.Ra=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.Ra);this.Xa=Y(function(){return new D_(b,f.B,f.Ra,f.l)});
g.F(this,this.Xa);this.ac=Y(function(){return new L_});
g.F(this,this.ac);this.Ub=new w0(DHa,p1,function(l,m,n,p){return JGa(f.va.get(),l,m,n,p)},this.I,this.J,this.u,this.Sa,this.l);
g.F(this,this.Ub);this.uc=new zz(this.I,this.ya,c,this.Sa,a,this.l,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa);this.xb=Y(function(){return h});
this.Hn=h;this.Ua=new XZ(this.I,this.J,this.L,this.xb);g.F(this,this.Ua);this.xc=new sz(this.I,this.J,this.ya,this.l,this.Ua,c);g.F(this,this.xc);this.eb=Y(function(){return new R_(f.Za,f.Sa,f.va,f.u)});
g.F(this,this.eb);this.V=Y(function(){return new S_});
g.F(this,this.V);this.Da=new C0(a,this.Aa);g.F(this,this.Da);this.i=new D0(a);g.F(this,this.i);this.Ia=new E0(a,this.xb);g.F(this,this.Ia);this.Ga=new F0(a,this.L,this.Fa,this.l);g.F(this,this.Ga);this.C=new H0(a);g.F(this,this.C);this.Lb=new I0(a);g.F(this,this.Lb);this.ea=Y(function(){return new y0});
g.F(this,this.ea);this.Xb=Y(function(){return new z0(f.Fa)});
g.F(this,this.Xb);this.Ya=Y(function(){return new U_(f.xc)});
g.F(this,this.Ya);this.Bb=Y(function(){return new Z_(f.Xa,f.C)});
g.F(this,this.Bb);this.Tb=Y(function(){return new v0(a,f.C,f.Xa,f.Ra,f.ac,f.xd,f.l,f.Fa,f.L,f.od,f.Fc,f.jb,f.qb,f.Cb,f.Sa)});
g.F(this,this.Tb);this.wc=Y(function(){return new oIa(f.Aa,f.Fa,f.Xa,f.B,f.fb,c)});
g.F(this,this.wc);this.Ec=new J0(a,this.La,this.u,this.l,this.Y);g.F(this,this.Ec);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ub],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ua]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.V],["SLOT_TYPE_IN_PLAYER",this.V],["SLOT_TYPE_PLAYER_BYTES",this.V]]),
Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ga],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ga],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Lb]]),jm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ea],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",this.ea],["SLOT_TYPE_PLAYER_BYTES",this.Xb]]),Sl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Ya],["SLOT_TYPE_FORECASTING",this.Bb],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.Tb]])};this.listeners=[this.B.get()];this.Qe={xc:this.xc,ek:null,Ul:this.La.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:null,xi:this.Da,dh:this.B.get()}};
qIa=function(a,b,c,d,e,f,h){this.i=a;this.Fa=b;this.Xa=c;this.l=d;this.u=e;this.Hd=f;this.Sa=h};
rIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.va=Y(function(){return new ZZ});
g.F(this,this.va);this.ya=Y(function(){return new c_(f.va)});
g.F(this,this.ya);this.B=Y(function(){return new YZ});
g.F(this,this.B);this.C=Y(function(){return new UZ(a)});
g.F(this,this.C);this.I=Y(function(){return new p_(f.va)});
g.F(this,this.I);this.qb=Y(function(){return new s_});
g.F(this,this.qb);this.Lb=Y(function(){return new NHa(b)});
g.F(this,this.Lb);this.Tb=Y(function(){return new oI(b.T())});
g.F(this,this.Tb);this.Da=Y(function(){return new L0(b)});
g.F(this,this.Da);this.Ub=Y(function(){return new K_(e)});
g.F(this,this.Ub);this.od=Y(function(){return new BK(b)});
g.F(this,this.od);this.V=Y(function(){return new u_(b)});
g.F(this,this.V);this.xd=Y(function(){return new N0(b)});
g.F(this,this.xd);this.Fc=Y(function(){return new v_(b)});
g.F(this,this.Fc);this.Sa=Y(function(){return new w_(b)});
g.F(this,this.Sa);this.xb=Y(function(){return new K0(d)});
g.F(this,this.xb);this.u=Y(function(){return new ZY(f.Sa)});
g.F(this,this.u);this.Aa=Y(function(){return new SZ(f.I,f.ya,f.Sa,f.u,null,f.Ra,3)});
g.F(this,this.Aa);this.hc=Y(function(){return new O0(b)});
g.F(this,this.hc);this.Za=Y(function(){return new P0});
g.F(this,this.Za);this.i=Y(function(){return new I_(b,f.qb,f.Sa)});
g.F(this,this.i);this.dc=new r_(this.Sa,this.u,this.i);g.F(this,this.dc);this.L=Y(function(){return new Z0(b,f.i,f.Sa,f.Xa)});
g.F(this,this.L);this.fb=Y(function(){return new $0(b)});
g.F(this,this.fb);this.Fa=Y(function(){return new J_(b)});
g.F(this,this.Fa);this.Gd=Y(function(){return new L_});
this.Ya=Y(function(){return new A_(f.Fa,b)});
g.F(this,this.Ya);this.Xa=Y(function(){return new D_(b,f.B,f.Ya,f.i)});
g.F(this,this.Xa);this.uc=new zz(this.C,this.Aa,c,this.Sa,a,this.i,this.Fa);g.F(this,this.uc);var h=new t_(b,this.uc,this.Fa,this.L);this.Ga=Y(function(){return h});
this.Hn=h;this.Lc=new w0(EHa,p1,function(l,m,n,p){return JGa(f.ya.get(),l,m,n,p)},this.C,this.I,this.u,this.Sa,this.i);
g.F(this,this.Lc);this.Ra=new V0(this.C,this.I,this.i,this.Ga,this.L,this.Fa,this.Sa);g.F(this,this.Ra);this.jb=new XZ(this.C,this.I,this.V,this.Ga);g.F(this,this.jb);this.xc=new sz(this.C,this.I,this.Aa,this.i,this.jb,c);g.F(this,this.xc);this.Cb=Y(function(){return new R_(f.xb,f.Sa,f.ya,f.u,f.fb)});
g.F(this,this.Cb);this.ea=Y(function(){return new S_});
g.F(this,this.ea);this.Ia=new C0(a,this.Da);g.F(this,this.Ia);this.l=new D0(a);g.F(this,this.l);this.La=new E0(a,this.Ga);g.F(this,this.La);this.Ua=new F0(a,this.V,this.Fa,this.i);g.F(this,this.Ua);this.eb=new Y0(a,this.i);g.F(this,this.eb);this.J=new H0(a);g.F(this,this.J);this.wc=new I0(a);g.F(this,this.wc);this.Y=Y(function(){return new y0});
g.F(this,this.Y);this.Pc=Y(function(){return new z0(f.Fa)});
g.F(this,this.Pc);this.Bb=Y(function(){return new U_(f.xc)});
g.F(this,this.Bb);this.Xb=Y(function(){return new Z_(f.Xa,f.J)});
g.F(this,this.Xb);this.Ec=Y(function(){return new U0(a,f.J,f.i,f.fb,f.Fa,f.Xa,f.qb,f.L,f.Ya,f.Gd,f.xd,f.V,f.od,f.Fc,f.Tb,f.Ub,f.hc,f.Sa,f.B)});
g.F(this,this.Ec);this.ac=Y(function(){return new qIa(f.Da,f.Fa,f.Xa,f.B,f.Lb,c,f.Sa)});
g.F(this,this.ac);this.Zc=new J0(a,this.Za,this.u,this.i,this.va);g.F(this,this.Zc);this.Dd={Pp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ra],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.jb]]),Hl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cb],["SLOT_TYPE_FORECASTING",this.ea],["SLOT_TYPE_IN_PLAYER",
this.ea],["SLOT_TYPE_PLAYER_BYTES",this.ea]]),Ph:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ia],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l],
["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.La],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ua],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ua],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.eb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.eb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.La],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.wc]]),jm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Pc]]),Sl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bb],["SLOT_TYPE_FORECASTING",this.Xb],["SLOT_TYPE_PLAYER_BYTES",this.Ec],["SLOT_TYPE_IN_PLAYER",this.ac]])};this.listeners=[this.B.get()];this.Qe={xc:this.xc,ek:null,Ul:this.Za.get(),Dh:this.Sa.get(),Ln:this.Fa.get(),uc:this.uc,Tl:null,xi:this.Ia,dh:this.B.get()}};
r1=function(a,b,c,d){g.E.call(this);var e=this;this.i=sIa(function(){return e.l},a,b,c,d);
g.F(this,this.i);this.l=(new xZ(this.i)).u();g.F(this,this.l)};
sIa=function(a,b,c,d,e){try{var f=b.T();if(g.FG(f))var h=new iIa(a,b,c,d,e);else if(g.JG(f))h=new kIa(a,b,c,d,e);else if(gla(f))h=new mIa(a,b,c,d,e);else if(wG(f))h=new lIa(a,b,c,d,e);else if(g.ZF(f))h=new pIa(a,b,c,d,e);else if(g.YF(f))h=new rIa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),R("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,h9:e.deviceParams.cver,g9:e.deviceParams.ctheme,
f9:e.deviceParams.cplayer,t9:e.playerStyle}),new fHa(a,b,c,d)}};
s1=function(a,b){this.i=a;this.ek=b};
t1=function(a){aM.call(this,a)};
u1=function(a,b,c,d,e){hM.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.Ca("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
this.hide()};
v1=function(a,b,c,d,e,f){DL.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.oh=e;this.Mi=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.Ga=this.Ca("ytp-ad-action-interstitial-image-container");this.C=new XL(this.api,this.Va,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.F(this,this.C);this.C.Ba(this.Ga);this.Da=this.Ca("ytp-ad-action-interstitial-headline-container");this.Y=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.F(this,this.Y);this.Y.Ba(this.Da);
this.Aa=this.Ca("ytp-ad-action-interstitial-description-container");this.L=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.F(this,this.L);this.L.Ba(this.Aa);this.Ua=this.Ca("ytp-ad-action-interstitial-background-container");this.I=new XL(this.api,this.Va,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.F(this,this.I);this.I.Ba(this.Ua);this.La=this.Ca("ytp-ad-action-interstitial-action-button-container");this.B=new vx;g.F(this,this.B);this.hide()};
tIa=function(a){var b=g.dg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
w1=function(a,b,c,d){DL.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.Ya=this.Aa=this.C=this.Ua=this.Ga=null;this.La=!1;this.I=null;this.Y=0;a=this.Ca("ytp-ad-overlay-container");this.Da=new qM(a,45E3,6E3,.3,.4);g.F(this,this.Da);this.B=uIa(this);g.F(this,this.B);this.B.Ba(a);this.u=vIa(this);g.F(this,this.u);this.u.Ba(a);this.l=wIa(this);g.F(this,this.l);this.l.Ba(a);this.hide()};
uIa=function(a){var b=new g.CL({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:[QL(x1)]}]},{D:"div",K:"ytp-ad-overlay-title",ra:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ra:"{{description}}"},{D:"div",Ea:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ra:"{{displayUrl}}"}]});a.N(b.Ca("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element,
c)});
a.N(b.Ca("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ai);b.hide();return b};
vIa=function(a){var b=new g.CL({D:"div",Ea:["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:[QL(x1)]}]},{D:"div",K:"ytp-ad-overlay-text-image",S:[{D:"img",U:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",ra:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",ra:"{{description}}"},{D:"div",Ea:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ra:"{{displayUrl}}"}]});a.N(b.Ca("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ca("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ai);a.N(b.Ca("ytp-ad-overlay-text-image"),"click",a.HU);b.hide();return b};
wIa=function(a){var b=new g.CL({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:[QL(x1)]}]},{D:"div",K:"ytp-ad-overlay-image",S:[{D:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.Ca("ytp-ad-overlay-image"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ai);b.hide();return b};
z1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.by(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.dg("video-ads ytp-ad-module")||null,null==b)g.by(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.CL({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.F(a,a.Aa),a.Aa.Ba(b),b=new eM(a.api,a.Va,a.layoutId,a.i,a.Aa.element,!1),g.F(a,b),b.init(mI("ad-info-hover-text-button"),c,
a.macros),a.I){b.Ba(a.I,0);b.subscribe("f",a.PR,a);b.subscribe("e",a.PD,a);a.N(a.I,"click",a.QR);var d=g.dg("ytp-ad-button",b.element);a.N(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Ya=b}else g.by(Error("Ad info button container within overlay ad was not present."))}else g.cy(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
xIa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
yIa=function(a,b){if(A1(a,B1)||a.api.Ne())return!1;var c=EL(b.title),d=EL(b.description);if(g.sc(c)||g.sc(d))return!1;a.Pg(a.B.element,b.trackingParams||null);a.B.Ta("title",EL(b.title));a.B.Ta("description",EL(b.description));a.B.Ta("displayUrl",EL(b.displayUrl));b.navigationEndpoint&&sb(a.L,b.navigationEndpoint);a.B.show();a.Da.start();a.kb(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.Y++});
return!0};
zIa=function(a,b){if(A1(a,B1)||a.api.Ne())return!1;var c=EL(b.title),d=EL(b.description);if(g.sc(c)||g.sc(d))return!1;a.Pg(a.u.element,b.trackingParams||null);a.u.Ta("title",EL(b.title));a.u.Ta("description",EL(b.description));a.u.Ta("displayUrl",EL(b.displayUrl));a.u.Ta("imageUrl",Iqa(b.image));b.navigationEndpoint&&sb(a.L,b.navigationEndpoint);a.Ua=b.imageNavigationEndpoint||null;a.u.show();a.Da.start();a.kb(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.Y++});
return!0};
AIa=function(a,b){if(a.api.Ne())return!1;var c=Jqa(b.image),d=c;c.width<B1.width&&(d=B1);if(0===c.width||0===c.height||A1(a,d))return!1;a.Pg(a.l.element,b.trackingParams||null);a.l.Ta("imageUrl",Iqa(b.image));a.l.Ta("width",c.width);a.l.Ta("height",c.height);b.navigationEndpoint&&sb(a.L,b.navigationEndpoint);b=a.l.Ca("ytp-ad-image-overlay");g.Bl(b,"max-width",c.width+"px");a.l.show();a.kb(a.l.element,!0);a.N(a.l.element,"mouseover",function(){a.Y++;a.api.BD("invideo-overlay",a.layoutId)});
a.N(a.l.element,"mouseout",function(){a.api.AD("invideo-overlay",a.layoutId)});
return!0};
A1=function(a,b){var c=a.api.bb().dg(),d=a.api.ij(!0,!1);return(b=g1(c,c.height-(d.height+d.top),b))?(a.Ga&&b&&(c=g.Vb(a.macros),c.ERRORCODE=b.lw.toString(),c.ERROR_MSG=b.errorMessage,a.Va.executeCommand(a.Ga,c)),!0):!1};
y1=function(a,b,c){var d=g.Vb(a.macros),e=g.Ql(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ol(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.Va.executeCommand(h,d)});
a.api.pauseVideo()};
BIa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
C1=function(a,b,c,d,e){hM.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.B=0;this.L=!1;this.Aa=this.Ca("ytp-ad-message-slot");this.u=new g.CL({D:"span",K:"ytp-ad-message-container"});this.u.Ba(this.Aa);g.F(this,this.u);this.messageText=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-ad-message-text");g.F(this,this.messageText);this.messageText.Ba(this.u.element);this.I=new g.kM(this.u,400,!1,100,function(){return f.hide()});
g.F(this,this.I);this.hide()};
CIa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
D1=function(a,b,c,d){DL.call(this,a,b,{D:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d);this.l=null;this.toggledLoggingParams="";this.answer=this.Ca("ytp-ad-survey-answer");this.hide()};
E1=function(a,b,c,d){DL.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.Ca("ytp-ad-survey-none-of-the-above");this.hide()};
F1=function(a,b,c,d){RL.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
G1=function(a,b,c,d,e,f){DL.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.Mi=f;this.u=this.l=null;this.C=this.Ca("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Ca("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ca("ytp-ad-survey-player-overlay-submit");g.F(this,this.B);this.hide()};
H1=function(a,b,c,d,e,f,h){DL.call(this,a,b,{D:"div",K:"ytp-ad-survey-question",S:[{D:"div",Ea:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Ea:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Ea:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",K:"ytp-ad-survey-question-background"}]},e,c,d);this.oh=f;this.Mi=h;this.C=null;this.u=[];this.l=null;this.question=this.Ca("ytp-ad-survey-question");this.L=this.Ca("ytp-ad-survey-question-background");
this.questionText=this.Ca("ytp-ad-survey-question-text");this.answers=this.Ca("ytp-ad-survey-answers");this.playerOverlay=this.Ca("ytp-ad-survey-question-player-overlay");this.B=g.Sa()};
DIa=function(a,b,c){var d=new D1(a.api,a.Va,a.layoutId,a.i);d.Ba(a.answers);d.init(mI("survey-answer"),b,c);a.u.push(d)};
FIa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&WL(c)||"",g.sc(c)?g.cy(Error("Found ThumbnailDetails without valid image URL")):g.Bl(a.L,"backgroundImage","url("+c+")"));EIa(a,b)}else g.by(Error("addCommonComponents() needs to be called before starting countdown."))};
EIa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.by(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Sa();var c=g.S(a.api.T().experiments,"html5_use_normal_timer_for_survey");a.l=a.oh?new wM(a.api,b.durationMilliseconds):new xM(b.durationMilliseconds,a.Va,c,!0);g.F(a,a.l);if(b.timeoutCommands){var d=b.timeoutCommands;a.l.subscribe("g",function(){d.forEach(function(f){return a.Va.executeCommand(f,
a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var e=new G1(a.api,a.Va,a.layoutId,a.i,a.l,a.Mi);
e.Ba(a.playerOverlay);e.init(mI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=e;g.F(a,e);a.xL()}catch(f){g.by(Error("ISAPOR had an error when initializing. Error: "+(f+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.by(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new GM(a.api,a.l),b.Ba(a.playerOverlay),g.F(a,b)):g.by(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
GIa=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()})};
I1=function(a,b,c,d,e,f){H1.call(this,a,b,c,d,"survey-question-multi-select",e,f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
HIa=function(a,b,c){a.noneOfTheAbove=new E1(a.api,a.Va,a.layoutId,a.i);a.noneOfTheAbove.Ba(a.answers);a.noneOfTheAbove.init(mI("survey-none-of-the-above"),b,c)};
IIa=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
J1(a,!0)};
J1=function(a,b){var c=a.C;a=JIa(a);b=void 0===b?!1:b;c.l&&(a?c.l.hide():c.l.show(),b&&c.l instanceof sM&&!c.l.L&&tM(c.l,!1));c.u&&(a?c.u.show():c.u.hide())};
JIa=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.noneOfTheAbove.button.isToggled()};
K1=function(a,b,c,d,e,f){H1.call(this,a,b,c,d,"survey-question-single-select",e,f);this.hide()};
L1=function(a,b,c,d,e,f){DL.call(this,a,b,{D:"div",K:"ytp-ad-survey",S:[{D:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d);this.oh=e;this.Mi=f;this.questions=[];this.l=this.Ca("ytp-ad-survey-questions");this.hide()};
M1=function(a,b,c,d,e,f){DL.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.oh=e;this.HE=f;this.l=this.actionButton=null;this.interstitial=this.Ca("ytp-ad-survey-interstitial");this.u=this.Ca("ytp-ad-survey-interstitial-contents");this.text=this.Ca("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ca("ytp-ad-survey-interstitial-logo-image");this.transition=new g.kM(this,500,!1,300);g.F(this,this.transition)};
KIa=function(a,b){b=b&&WL(b)||"";if(g.sc(b))g.cy(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.ce&&10>document.documentMode)c=Qc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.og("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Qga(d.style)}b=Caa(c,Rc({"background-image":'url("'+b+'")'}));a.style.cssText=Oc(b)}};
LIa=function(a){var b=g.dg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
N1=function(a,b){aM.call(this,a);this.api=a;this.l={};this.C=b;a=new g.W({D:"div",Ea:["video-ads","ytp-ad-module"]});g.F(this,a);OF&&g.K(a.element,"ytp-ads-tiny-mode");this.B=new wL(a.element);g.F(this,this.B);g.uN(this.api,a.element,4);g.F(this,$qa())};
MIa=function(a,b){a=Tb(a.l,b.id,null);null==a&&g.cy(Error("Component not found for element id: "+b.id));return a||null};
O1=function(a){g.FN.call(this,a);var b=this;this.l=this.Va=null;this.created=!1;this.Eo=new dL(this.player);this.u=function(){function d(){return b.Va}
if(null!=b.l)return b.l;var e=jqa({So:a.getVideoData(1)});e=new hFa({qP:new s1(function(){return b.Va},b.i.i.Qe.ek),
Ho:e.hQ(),CP:d,GR:d,xi:b.i.i.Qe.xi,Mh:e.AC(),G:b.player,Dh:b.i.i.Qe.Dh,Xa:b.i.i.Xa,dh:b.i.i.Qe.dh,Fc:b.i.i.Fc});b.l=e.aO;return b.l};
this.i=new r1(this.player,this,this.Eo,this.u);g.F(this,this.i);var c=a.T();!uG(c)||g.YF(c)||wG(c)||(g.F(this,new N1(a,function(){return b.Va})),g.F(this,new t1(a)))};
P1=function(a,b){b===a.Do&&(a.Do=void 0)};
NIa=function(a){a.Va?a.i.i.Qe.uc.RC()||a.Va.RC()||a.i.i.Qe.Ln.Yo():R("AdService is null when calling maybeUnlockPrerollIfReady")};
OIa=function(a){a=g.q(a.i.i.Qe.dh.Ni.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.rb&&"core"===b.gb)return!0;return!1};
PIa=function(a){a=g.q(a.i.i.Qe.dh.Ni.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
uz=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.Qe.Dh,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.ji()||!1;d=QIa(b,d,f,e);Lia(a.i.i.Qe.xc,c,d.Vy,b);a.Va&&0<d.It.length&&(a=a.Va,b=d.It,b=qqa(a,b),b=rqa(a,b),uL(a,b))};
QIa=function(a,b,c,d){var e={It:[],Vy:[]};a=g.q(a);for(var f=a.next();!f.done;f=a.next())if((f=f.value)&&null!=f.renderer){var h=f.renderer,l=f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind,m=b;c?h=!0:null!=h.instreamSurveyAdRenderer?h=!!h.instreamSurveyAdRenderer.controlflowEnabled:null!=h.sandwichedLinearAdRenderer&&null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?h=!!h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled:
d&&!z_(m)?h=!1:null!=h.clientForecastingAdRenderer||null!=h.actionCompanionAdRenderer||null!=h.imageCompanionAdRenderer||null!=h.shoppingCompanionCarouselRenderer||null!=h.invideoOverlayAdRenderer||null!=h.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==l||z_(m))?h=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?(h=m,h=g.IG(h.G.T())?!1:uG(h.G.T())?g.S(h.G.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):g.vG(h.G.T())?g.S(h.G.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf_tv"):
!1):h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?h.linearAdSequenceRenderer.adStart?h=g.S(m.G.T().experiments,"html5_enable_vod_lasr_with_notify_pacf"):(h=m,h=g.IG(h.G.T())?!1:uG(h.G.T())?g.S(h.G.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf"):g.vG(h.G.T())?g.S(h.G.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1):h=null!=h.sandwichedLinearAdRenderer?g.S(m.G.T().experiments,"html5_enable_vod_slar_with_notify_pacf"):!1;h?e.Vy.push(f):e.It.push(f)}return e};
RIa=function(){if(!g.ce)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.Q1=function(a){if("undefined"!=typeof DOMParser)return md(new DOMParser,yl(a),"application/xml");if(SIa){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.R1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={D:"svg",U:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},S:[{D:"g",U:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",U:{transform:"translate(-1.000000, -3.000000)"},S:[{D:"polygon",U:{points:"0 0 24 0 24 24 0 24"}},{D:"path",U:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.T().Z("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={D:"svg",U:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},S:[{D:"g",U:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",U:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},S:[{D:"path",U:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.W.call(this,{D:"button",Ea:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},S:[d]});this.G=a;this.Pa("click",this.onClick,this);this.Ta("title",hO(a,e,"i"));g.hf(this,g.FO(b.jc(),this.element))};
aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
ea=aaa(this);ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.i=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=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},TIa=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}}(),S1;
if("function"==typeof Object.setPrototypeOf)S1=Object.setPrototypeOf;else{var T1;a:{var UIa={a:!0},VIa={};try{VIa.__proto__=UIa;T1=VIa.a;break a}catch(a){}T1=!1}S1=T1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=S1;
pa.prototype.L=function(a){this.l=a};
pa.prototype.return=function(a){this.u={return:a};this.i=this.B};
pa.prototype.wb=function(a){this.i=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return TIa});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
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(!Ba(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(r){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ba(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&Ba(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&Ba(m,h)&&Ba(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&Ba(m,h)&&Ba(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.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.data_[n];if(p&&Ba(l.data_,n))for(l=0;l<p.length;l++){var r=p[l];if(m!==m&&r.key!==r.key||m===r.key)return{id:n,list:p,index:l,Zf:r}}return{id:n,list:p,index:-1,Zf:void 0}}
function e(l){this.data_={};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.data_[n.id]=[]);n.Zf?n.Zf.value=m:(n.Zf={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.Zf),this.i.previous.next=n.Zf,this.i.previous=n.Zf,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.Zf&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.Zf.previous.next=l.Zf.next,l.Zf.next.previous=l.Zf.previous,l.Zf.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.i=this.i.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Zf};
e.prototype.get=function(l){return(l=d(this,l).Zf)&&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("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).EM}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ha("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
ha("Object.setPrototypeOf",function(a){return a||na});
var WIa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ba(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||WIa});
ha("Promise",function(a){function b(h){this.Oa=0;this.Sd=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.ea),reject:h(this.u)}};
b.prototype.ea=function(h){if(h===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.va(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.V(h):this.B(h)}};
b.prototype.V=function(h){var l=void 0;try{l=h.then}catch(m){this.u(m);return}"function"==typeof l?this.ya(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.Oa)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Oa);this.Oa=h;this.Sd=l;2===this.Oa&&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.Sd)}},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.Sd;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.va=function(h){var l=this.l();h.Qw(l.resolve,l.reject)};
b.prototype.ya=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,u){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:u}
var n,p,r=new b(function(t,u){n=t;p=u});
this.Qw(m(h,n),m(l,p));return r};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.Qw=function(h,l){function m(){switch(n.Oa){case 1:h(n.Sd);break;case 2:l(n.Sd);break;default:throw Error("Unexpected state: "+n.Oa);}}
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).Qw(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;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).Qw(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
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("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){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("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).dJ}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push([d,b[d]]);return c}});
ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ha("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;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
ha("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",Fa);ha("Uint8Array.prototype.fill",Fa);ha("Uint8ClampedArray.prototype.fill",Fa);ha("Int16Array.prototype.fill",Fa);ha("Uint16Array.prototype.fill",Fa);ha("Int32Array.prototype.fill",Fa);ha("Uint32Array.prototype.fill",Fa);ha("Float32Array.prototype.fill",Fa);ha("Float64Array.prototype.fill",Fa);
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("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(b,d)&&c.push(b[d]);return c}});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
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("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
Gi=Gi||{};g.A=this||self;Oa="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.Ta(Va,Error);Va.prototype.name="CustomError";var Yf;g.Ta(Wa,Va);Wa.prototype.name="AssertionError";var ib,Bm,un;ib=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.XIa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Cb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Ro=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.Qe=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};
Bm=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Cb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
un=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.Am=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 YIa={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 $b;ec.prototype.xk=!0;ec.prototype.Hh=function(){return this.i};
var dc={},cc={};g.gc("");var hc={};ic.prototype.Hh=function(){return this.i.toString()};
ic.prototype.toString=function(){return this.i.toString()};var Tga,Sga,Rga,Uga;Tga=/[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.Vq=/^[^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]/;Sga=/^http:\/\/.*/;Rga=/\s+/;Uga=/[\d\u06f0-\u06f9]/;g.k=lc.prototype;g.k.xk=!0;g.k.Hh=function(){return this.i.toString()};
g.k.UC=!0;g.k.zr=function(){return 1};
g.k.toString=function(){return this.i+""};
var saa=/%{(\w+)}/g,raa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,kc={};var Bc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tc=/&/g,uc=/</g,vc=/>/g,wc=/"/g,xc=/'/g,yc=/\x00/g,uaa=/[\x00&<>"']/;g.k=g.Fc.prototype;g.k.xk=!0;g.k.Hh=function(){return this.i.toString()};
g.k.UC=!0;g.k.zr=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var waa=/^(?: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,vaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ic=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ec={},Jc=new g.Fc("about:invalid#zClosurez",Ec);Nc.prototype.xk=!0;Nc.prototype.Hh=function(){return this.i};
Nc.prototype.toString=function(){return this.i.toString()};
var Mc={},Qc=new Nc("",Mc),yaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Tc=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Sc=/\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,zaa=/\/\*/;a:{var ZIa=g.A.navigator;if(ZIa){var $Ia=ZIa.userAgent;if($Ia){g.Uc=$Ia;break a}}g.Uc=""};g.k=$c.prototype;g.k.UC=!0;g.k.zr=function(){return this.l};
g.k.xk=!0;g.k.Hh=function(){return this.i.toString()};
g.k.toString=function(){return this.i.toString()};
var aJa=/^[a-zA-Z0-9-]+$/,bJa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},cJa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Zc={},dd=new $c(g.A.trustedTypes&&g.A.trustedTypes.emptyHTML||"",0,Zc);var Gaa=bb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.ad(dd);return!b.parentElement}),Haa=/^[\w+/_-]+[=]{0,2}$/;g.dJa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Id="function"===typeof Uint8Array.prototype.slice,ke=0,le=0;g.k=Ad.prototype;g.k.clone=function(){return Cd(this.l,this.B,this.u-this.B)};
g.k.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1};
g.k.reset=function(){this.i=this.B};
g.k.advance=function(a){this.i+=a};
g.k.xg=function(){var a=this.l[this.i+0];this.i+=1;return a};
g.k.Mk=function(){var a=this.l[this.i+0],b=this.l[this.i+1];this.i+=2;return a<<0|b<<8};
g.k.Jc=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return(a<<0|b<<8|c<<16|d<<24)>>>0};
g.k.Ze=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return a<<0|b<<8|c<<16|d<<24};
g.k.gs=function(){var a=this.Jc(),b=this.Jc();return wd(a,b)};
g.k.bf=function(a){var b=this.l,c=this.i,d=c+a,e=[];for(a="";c<d;){var f=b[c++];if(128>f)e.push(f);else if(192>f)continue;else if(224>f){var h=b[c++];e.push((f&31)<<6|h&63)}else if(240>f){h=b[c++];var l=b[c++];e.push((f&15)<<12|(h&63)<<6|l&63)}else if(248>f){h=b[c++];l=b[c++];var m=b[c++];f=(f&7)<<18|(h&63)<<12|(l&63)<<6|m&63;f-=65536;e.push((f>>10&1023)+55296,(f&1023)+56320)}8192<=e.length&&(a+=String.fromCharCode.apply(null,e),e.length=0)}if(8192>=e.length)e=String.fromCharCode.apply(null,e);else{b=
"";for(d=0;d<e.length;d+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(e,d,d+8192));e=b}this.i=c;return a+e};
var Bd=[];g.k=Fd.prototype;g.k.reset=function(){this.i.reset();this.l=this.B=-1};
g.k.advance=function(a){this.i.advance(a)};
g.k.Ze=function(){return Ed(this.i)};
g.k.gs=function(){return Dd(this.i)};
g.k.Jc=function(){return Ed(this.i)};
g.k.bf=function(){var a=Ed(this.i);return this.i.bf(a)};Ld.prototype.push=function(a){if(!(this.l+1<this.i.length)){var b=this.i;this.i=new Uint8Array(Math.ceil(1+2*this.i.length));this.i.set(b)}this.i[this.l++]=a};
Ld.prototype.length=function(){return this.l};
Ld.prototype.end=function(){var a=this.i,b=this.l;this.l=0;return Id?a.slice(0,b):new Uint8Array(a.subarray(0,b))};Rd[" "]=g.Ia;var Dl,cU,ZEa,eJa,fJa,gJa,NF,OF,U1;g.Vk=Vc("Opera");g.ce=Vc("Trident")||Vc("MSIE");g.Ew=Vc("Edge");g.MG=g.Ew||g.ce;Dl=Vc("Gecko")&&!(Ac(g.Uc,"WebKit")&&!Vc("Edge"))&&!(Vc("Trident")||Vc("MSIE"))&&!Vc("Edge");g.jg=Ac(g.Uc,"WebKit")&&!Vc("Edge");cU=Vc("Macintosh");ZEa=Vc("Windows");g.Gt=Vc("Android");eJa=Od();fJa=Vc("iPad");gJa=Vc("iPod");NF=Pd();OF=Ac(g.Uc,"KaiOS");
a:{var V1="",W1=function(){var a=g.Uc;if(Dl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Ew)return/Edge\/([\d\.]+)/.exec(a);if(g.ce)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.jg)return/WebKit\/(\S+)/.exec(a);if(g.Vk)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
W1&&(V1=W1?W1[1]:"");if(g.ce){var X1=Ud();if(null!=X1&&X1>parseFloat(V1)){U1=String(X1);break a}}U1=V1}var Vd=U1,Kaa={},Y1;if(g.A.document&&g.ce){var hJa=Ud();Y1=hJa?hJa:parseInt(Vd,10)||void 0}else Y1=void 0;var Laa=Y1;var XF,gI;g.cj=Wc();XF=Od()||Vc("iPod");gI=Vc("iPad");g.PF=Vc("Android")&&!(Xc()||Wc()||Vc("Opera")||Vc("Silk"));g.bj=Xc();g.dj=Yc()&&!Pd();var Zd={},de=null;var qe="function"===typeof Uint8Array,Naa={gR:{value:!0,configurable:!0}};var ye,Ae=Object.freeze(se([]));xe.prototype.toString=function(){return Me(this).toString()};
xe.prototype.clone=function(){return ze(this.constructor,Maa(Me(this)))};g.v(Re,xe);g.v(Se,xe);g.v(Te,xe);g.v(Ve,xe);var Ue=[[1,2,3]];var wea={EL:5,hJ:100,RJ:6E5},rea={EL:10,hJ:500,RJ:6E5};g.v(We,Error);g.Xe.prototype.l=0;g.Xe.prototype.reset=function(){this.i=this.u=this.B;this.l=0};
g.Xe.prototype.getValue=function(){return this.u};g.k=af.prototype;g.k.sP=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(d=this.pC(c))?d.push(new $e(a)):this.JL(a,c)};
g.k.JL=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Zq.set(this.JI(c),[new $e(a)])};
g.k.pC=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.JI(b);return this.Zq.has(b)?this.Zq.get(b):void 0};
g.k.kQ=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.pC(b))&&b.length?b[0]:void 0};
g.k.clear=function(){this.Zq.clear()};
g.k.JI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.v(df,af);df.prototype.u=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.kQ(c);e&&(d=e.KH);this.JL(d+a,c)};g.v(ef,af);ef.prototype.Nk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.sP(a,c)};g.E.prototype.Vh=!1;g.E.prototype.isDisposed=function(){return this.Vh};
g.E.prototype.dispose=function(){this.Vh||(this.Vh=!0,this.xa())};
g.E.prototype.xa=function(){if(this.wh)for(;this.wh.length;)this.wh.shift()()};g.jf.prototype.stopPropagation=function(){this.l=!0};
g.jf.prototype.preventDefault=function(){this.defaultPrevented=!0};var lf={};var Yaa=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}();var lta;lta=g.jg?"webkitAnimationEnd":g.Vk?"oanimationend":"animationend";g.Ta(nf,g.jf);var iJa={2:"touch",3:"pen",4:"mouse"};
nf.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;(b=a.relatedTarget)?Dl&&(Sd(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;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:iJa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&nf.Vd.preventDefault.call(this)};
nf.prototype.stopPropagation=function(){nf.Vd.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
nf.prototype.preventDefault=function(){nf.Vd.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var of="closure_listenable_"+(1E6*Math.random()|0);var Vaa=0;rf.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=tf(a,b,d,e);-1<h?(b=a[h],c||(b.Pw=!1)):(b=new Waa(b,this.src,f,!!d,e),b.Pw=c,a.push(b));return b};
rf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=tf(e,b,c,d);return-1<b?(qf(e[b]),g.nb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
rf.prototype.vu=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=tf(a,b,c,d));return-1<e?a[e]:null};var Cf="closure_lm_"+(1E6*Math.random()|0),Hf={},Ef=0,If="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.Jf,g.E);g.Jf.prototype[of]=!0;g.k=g.Jf.prototype;g.k.addEventListener=function(a,b,c,d){vf(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Ff(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Ga;if(b){var c=[];for(var d=1;b;b=b.Ga)c.push(b),++d}b=this.xb;d=a.type||a;if("string"===typeof a)a=new g.jf(a,b);else if(a instanceof g.jf)a.target=a.target||b;else{var e=a;a=new g.jf(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=Kf(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Kf(h,d,!0,a)&&e,a.l||(e=Kf(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&f<c.length;f++)h=a.currentTarget=c[f],e=Kf(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.Jf.Vd.xa.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,qf(d[e]);delete a.listeners[c];a.i--}}this.Ga=null};
g.k.Pa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.iy=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.lc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.vu=function(a,b,c,d){return this.B.vu(String(a),b,c,d)};Lf.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};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var aba=!g.ce||g.Xd(9),bba=!Dl&&!g.ce||g.ce&&g.Xd(9)||Dl&&g.Wd("1.9.1");g.ce&&g.Wd("9");var dba=g.ce||g.Vk||g.jg;g.k=g.Rf.prototype;g.k.clone=function(){return new g.Rf(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.Tf.prototype;g.k.clone=function(){return new g.Tf(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Vf(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 eg={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=Wf.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.Ca=function(a){return g.dg(a,this.i)};
g.k.createElement=function(a){return lg(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){mg(Xf(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.sg;g.k.contains=g.ug;var Bg;Eg.prototype.add=function(a,b){var c=Lg.get();c.set(a,b);this.l?this.l.next=c:this.i=c;this.l=c};
Eg.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 Lg=new Lf(function(){return new Fg},function(a){return a.reset()});
Fg.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
Fg.prototype.reset=function(){this.next=this.scope=this.i=null};var Gg,Hg=!1,Ig=new Eg;Pg.prototype.reset=function(){this.context=this.onRejected=this.l=this.i=null;this.u=!1};
var Sg=new Lf(function(){return new Pg},function(a){a.reset()});
Og.prototype.then=function(a,b,c){return ah(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
Og.prototype.$goog_Thenable=!0;Og.prototype.cancel=function(a){if(0==this.Oa){var b=new gh(a);g.Jg(function(){ch(this,b)},this)}};
Og.prototype.jW=function(a){this.Oa=0;Ng(this,2,a)};
Og.prototype.kW=function(a){this.Oa=0;Ng(this,3,a)};
Og.prototype.aQ=function(){for(var a;a=dh(this);)eh(this,a,this.Oa,this.Sd);this.gC=!1};
var ih=Dg;g.Ta(gh,Va);gh.prototype.name="cancel";g.Ta(g.jh,g.Jf);g.k=g.jh.prototype;g.k.enabled=!1;g.k.Hb=null;g.k.setInterval=function(a){this.Rf=a;this.Hb&&this.enabled?(this.stop(),this.start()):this.Hb&&this.stop()};
g.k.XV=function(){if(this.enabled){var a=g.Sa()-this.HJ;0<a&&a<.8*this.Rf?this.Hb=this.ew.setTimeout(this.CH,this.Rf-a):(this.Hb&&(this.ew.clearTimeout(this.Hb),this.Hb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Hb||(this.Hb=this.ew.setTimeout(this.CH,this.Rf),this.HJ=g.Sa())};
g.k.stop=function(){this.enabled=!1;this.Hb&&(this.ew.clearTimeout(this.Hb),this.Hb=null)};
g.k.xa=function(){g.jh.Vd.xa.call(this);this.stop();delete this.ew};g.k=mh.prototype;g.k.FV=function(a){this.C=a;this.B=1};
g.k.QL=function(){var a=this.i.values();a=[].concat(g.la(a)).filter(function(b){return b.Zq.size});
a.length&&this.J.flush(a,this.C);qda(a);this.u=0;this.l.enabled&&this.l.stop()};
g.k.uP=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new df(a,c))};
g.k.qH=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new ef(a,c))};
g.k.ZM=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.aN.apply(this,[a,1].concat(g.la(c)))};
g.k.aN=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=oh(this,a))&&e instanceof df&&(e.u(b,d),nh(this))};
g.k.Nk=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=oh(this,a))&&e instanceof ef&&(e.Nk(b,d),nh(this))};ph.prototype.Nk=function(a,b,c,d){this.i.Nk("/client_streamz/po/w/rl",a,b,c,d)};
qh.prototype.Nk=function(a,b,c){this.i.Nk("/client_streamz/po/w/el",a,b,c)};g.v(rh,xe);g.v(sh,xe);g.v(uh,xe);g.v(wh,xe);var sda=[3,6,4],yda=[1],th=[[1,2,3]],vh=[[1,2,3]];g.v(xh,xe);var zda=[1];var Cda={};g.k=Bh.prototype;g.k.isEnabled=function(){if(!g.A.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{qy: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.y9;d=c.CV||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.qy}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(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=Bc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{qy:0,path:b,domain:c});return d};
g.k.gi=function(){return Ch(this).keys};
g.k.Xg=function(){return Ch(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=Ch(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var kt=new Bh("undefined"==typeof document?null:document);g.v(Hh,xe);var Dda=[2];var Qh={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Fda=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Rh.prototype.l=null;Rh.prototype.getOptions=function(){return this.l||(this.l=this.B())};var Z1;g.Ta(Sh,Rh);Sh.prototype.i=function(){var a=Th(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Sh.prototype.B=function(){var a={};Th(this)&&(a[0]=!0,a[1]=!0);return a};
Z1=new Sh;Uh.prototype[Symbol.iterator]=function(){return this};
Uh.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.l.call(void 0,a.value,this.u++),done:a.done}};g.ai="StopIteration"in g.A?g.A.StopIteration:{message:"StopIteration",stack:""};g.Vh.prototype.next=function(){return g.Vh.prototype.i.call(this)};
g.Vh.prototype.i=function(){throw g.ai;};
g.Vh.prototype.Kg=function(){return this};Wh.prototype.Kg=function(){return new Xh(this.i())};
Wh.prototype[Symbol.iterator]=function(){return new Yh(this.i())};
Wh.prototype.l=function(){return new Yh(this.i())};
g.v(Xh,g.Vh);Xh.prototype.i=function(){var a=this.u.next();if(a.done)throw g.ai;return a.value};
Xh.prototype.next=function(){return Xh.prototype.i.call(this)};
Xh.prototype[Symbol.iterator]=function(){return new Yh(this.u)};
Xh.prototype.l=function(){return new Yh(this.u)};
g.v(Yh,Wh);Yh.prototype.next=function(){return this.u.next()};g.k=g.ci.prototype;g.k.Xg=function(){ei(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.l[this.i[b]]);return a};
g.k.gi=function(){ei(this);return this.i.concat()};
g.k.has=function(a){return di(this.l,a)};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.l={};this.Yn=this.size=this.i.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return di(this.l,a)?(delete this.l[a],--this.size,this.Yn++,this.i.length>2*this.size&&ei(this),!0):!1};
g.k.get=function(a,b){return di(this.l,a)?this.l[a]:b};
g.k.set=function(a,b){di(this.l,a)||(this.size+=1,this.i.push(a),this.Yn++);this.l[a]=b};
g.k.forEach=function(a,b){for(var c=this.gi(),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.ci(this)};
g.k.keys=function(){return $h(this.Kg(!0)).l()};
g.k.values=function(){return $h(this.Kg(!1)).l()};
g.k.entries=function(){var a=this;return Hda(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Kg=function(a){ei(this);var b=0,c=this.Yn,d=this,e=new g.Vh;e.i=function(){if(c!=d.Yn)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw g.ai;var f=d.i[b++];return a?f:d.l[f]};
e.next=e.i.bind(e);return e};var hi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,xi=/#|$/,Lda=/[?&]($|#)/;g.Ta(g.Bi,g.Jf);var Pda=/^https?$/i,jJa=["POST","PUT"],Ci=[];g.k=g.Bi.prototype;g.k.BP=function(){this.dispose();g.ob(Ci,this)};
g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.V+"; newUri="+a);b=b?b.toUpperCase():"GET";this.V=a;this.u="";this.l=0;this.Ra=b;this.Da=!1;this.C=!0;this.i=this.Aa?this.Aa.i():Z1.i();this.ya=this.Aa?this.Aa.getOptions():Z1.getOptions();this.i.onreadystatechange=(0,g.C)(this.PK,this);try{Ih(Ii(this,"Opening Xhr")),this.Ia=!0,this.i.open(b,String(a),!0),this.Ia=!1}catch(f){Ih(Ii(this,"Error opening Xhr: "+f.message));Fi(this,f);return}a=
c||"";var e=this.headers.clone();d&&Kda(d,function(f,h){e.set(h,f)});
d=e.gi().find(function(f){return"content-type"==f.toLowerCase()});
c=g.A.FormData&&a instanceof g.A.FormData;!g.jb(jJa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,h){this.i.setRequestHeader(h,f)},this);
this.La&&(this.i.responseType=this.La);"withCredentials"in this.i&&this.i.withCredentials!==this.L&&(this.i.withCredentials=this.L);try{Li(this),0<this.J&&(this.va=Oda(this.i),Ih(Ii(this,"Will abort after "+this.J+"ms if incomplete, xhr2 "+this.va)),this.va?(this.i.timeout=this.J,this.i.ontimeout=(0,g.C)(this.MF,this)):this.Y=g.kh(this.MF,this.J,this)),Ih(Ii(this,"Sending request")),this.ea=!0,this.i.send(a),this.ea=!1}catch(f){Ih(Ii(this,"Send error: "+f.message)),Fi(this,f)}};
g.k.MF=function(){"undefined"!=typeof Gi&&this.i&&(this.u="Timed out after "+this.J+"ms, aborting",this.l=8,Ii(this,this.u),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.i&&this.C&&(Ii(this,"Aborting"),this.C=!1,this.I=!0,this.i.abort(),this.I=!1,this.l=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ei(this))};
g.k.xa=function(){this.i&&(this.C&&(this.C=!1,this.I=!0,this.i.abort(),this.I=!1),Ei(this,!0));g.Bi.Vd.xa.call(this)};
g.k.PK=function(){this.isDisposed()||(this.Ia||this.ea||this.I?Ki(this):this.ST())};
g.k.ST=function(){Ki(this)};
g.k.isActive=function(){return!!this.i};
g.k.getStatus=function(){try{return 2<g.Hi(this)?this.i.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.i&&4==g.Hi(this))return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.u?this.u:String(this.u)};g.v(Ti,xe);g.v(Ui,xe);g.v(Vi,xe);Vi.prototype.Z=function(){return null!=Ee(this,7)};
var Sda=[3,20,27];g.v(Wi,xe);var Tda=[3,5];g.v($i,xe);var Uda=[5];g.v(aj,xe);var Paa=new function(){this.fieldName={l9:0};this.i=aj;this.isRepeated=0};g.v(fj,g.Jf);g.k=fj.prototype;g.k.xa=function(){this.Zt();g.Jf.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof Vi)this.log(a);else{var b=new Vi;a=Pe(a);b=He(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Bb++;He(a,21,b);this.ea&&He(a,26,this.ea);if(!Ee(a,1)){b=a;var c=Date.now().toString();He(b,1,c)}null!=Ee(a,15)||He(a,15,60*(new Date).getTimezoneOffset());this.u&&(b=this.u.clone(),Ne(a,16,b));for(;1E3<=this.l.length;)this.l.shift(),++this.J;this.l.push(a);this.dispatchEvent(new ij(a));this.Y||this.i.enabled||this.i.start()};
g.k.flush=function(a,b){var c=this;if(0===this.l.length)a&&a();else if(this.Ia)Wda(this);else{var d=Date.now();if(this.eb>d&&this.Da<d)b&&b("throttled");else{var e=Zi(Yi(Xi(this.C.clone()),this.l),this.J);d={};var f=this.La();f&&(d.Authorization=f);var h=gj(this);this.V&&(d["X-Goog-AuthUser"]=this.V,h=vi(h,"authuser",this.V));this.Aa&&(d["X-Goog-PageId"]=this.Aa,h=vi(h,"pageId",this.Aa));if(f&&this.Ya===f)b&&b("stale-auth-token");else{this.l=[];this.i.enabled&&this.i.stop();this.J=0;var l=Pe(e),m;
this.L&&this.L.isSupported(l.length)&&(m=this.L.X8(l));var n={url:h,body:l,i:1,Zp:d,requestType:"POST",withCredentials:this.qb,timeoutMillis:0},p=function(u){c.I.reset();c.i.setInterval(c.I.getValue());if(u){var x=null;try{var y=JSON.parse(u.replace(")]}'\n",""));x=new $i(y)}catch(B){}x&&(u=Number(Fe(x,1,"-1")),0<u&&(c.Da=Date.now(),c.eb=c.Da+u),x=Qaa(x))&&(x=Ge(x,1,-1),-1!=x&&(c.Ua||hj(c,x)))}a&&a()},r=function(u){var x=Le(e,Vi,3);
g.Ye(c.I);c.i.setInterval(c.I.getValue());401===u&&f&&(c.Ya=f);if(500<=u&&600>u||401===u||0===u)c.l=x.concat(c.l),c.Y||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ra?c.Ra.send(n,p,r):c.jb(n,p,r)};
m?m.then(function(u){n.Zp["Content-Encoding"]="gzip";n.Zp["Content-Type"]="application/binary";n.body=u;n.i=2;t()},function(){t()}):t()}}}};
g.k.Zt=function(){this.flush()};
g.v(ij,g.jf);jj.prototype.Te=function(){var a=new fj(1654,this.C?this.C:Gh,"0",this.J,this.u,this.B,!1,void 0,void 0,void 0,this.L?this.L:void 0);if(this.ea){var b=this.ea;Ee(b,1)||He(b,1,1);Ne(a.C,1,b)}if(this.l){b=this.l;var c=Ke(a.C,Ui,1),d=Ke(c,Ti,11);d||(d=new Ti);He(d,7,b);Ne(c,11,d);Ee(c,1)||He(c,1,1);Ne(a.C,1,c)}this.I&&(a.L=this.I);this.i&&(a.ea=this.i);this.V&&((b=this.V)?(a.u||(a.u=new Hh),b=Pe(b),He(a.u,4,b)):a.u&&He(a.u,4,void 0));this.va&&(b=this.va,a.u||(a.u=new Hh),He(a.u,2,se(b||[])));this.Y&&
(b=this.Y,a.Ua=!0,hj(a,b));return a};kj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new xh,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new rh;h=He(h,1,f.l);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].ep);h=He(h,3,se(m||[]));l=[];m=[];n=g.q(f.Zq.keys());for(var p=n.next();!p.done;p=n.next())m.push(p.value.split(","));for(n=0;n<m.length;n++){p=m[n];var r=f.B;for(var t=f.pC(p)||[],u=[],x=0;x<t.length;x++){var y=t[x];y=y&&y.KH;var B=new wh;switch(r){case 3:Je(B,1,vh[0],Number(y));break;case 2:Je(B,2,vh[0],Number(y))}u.push(B)}r=
u;for(t=0;t<r.length;t++){u=r[t];x=new sh;u=Ne(x,2,u);x=p;y=[];B=f;for(var G=[],H=0;H<B.i.length;H++)G.push(B.i[H].fp);B=G;for(G=0;G<B.length;G++){H=B[G];var I=x[G],L=new uh;switch(H){case 3:Je(L,1,th[0],String(I));break;case 2:Je(L,2,th[0],Number(I));break;case 1:Je(L,3,th[0],"true"==I)}y.push(L)}Oe(u,1,y);l.push(u)}}Oe(h,4,l);c.push(h);e.clear()}Oe(b,1,c);this.i.dispatch(b);this.i.flush()}};mj.prototype.jy=function(){};
mj.prototype.ly=function(){};
mj.prototype.MJ=function(){};
nj.prototype.jy=function(a){this.clientError.i.ZM("/client_streamz/po/w/cec",a,this.fm)};
nj.prototype.ly=function(a,b){this.l.Nk(b,a,this.fm)};
nj.prototype.MJ=function(a,b){var c=this,d=Date.now();(function(){return g.D(c,function f(){var h,l,m=this,n;return g.z(f,function(p){if(1==p.i)return h=0,ta(p,2,3),g.w(p,b,3);if(2!=p.i)return wa(p),l=Date.now()-d,m.u.Nk(l,a,h,m.fm),xa(p,0);n=va(p);void 0!==n.code&&void 0!==n.code?h=n.code:(h=-1,m.jy(1));return p.wb(3)})})})()};g.v(oj,xe);g.v(pj,xe);g.v(qj,xe);qj.vR="bfkj";rj.prototype.snapshot=function(a){var b=this;if(this.i)throw Error("Already disposed");return this.B.then(function(){return new Promise(function(c){b.u(function(d){c(d)},[a.TH])})})};
rj.prototype.dispose=function(){var a=this;this.i=!0;this.B.then(function(){a.l&&a.l()})};
rj.prototype.isDisposed=function(){return this.i};var sj={};var vj;g.v(xj,wj);xj.prototype.toString=function(){return this.i.toString()};g.v(zj,yj);zj.prototype.toString=function(){return this.i};
var hoa=new zj("about:invalid#zTSz",sj);ea.Object.defineProperties(Fj.prototype,{l:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
u:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.v(Gj,xe);g.v(Hj,xe);Ij.prototype.yx=function(){return this.u};
Ij.prototype.getMetadata=function(){return this.l};Jj.prototype.getMetadata=function(){return this.i};
Jj.prototype.yx=function(){return this.l};
Jj.prototype.getStatus=function(){return null};Kj.prototype.getName=function(){return this.name};var kJa=new Kj("/google.internal.waa.v1.Waa/Create",Gj,Hj,function(a){return Pe(a)},function(a){return ze(Hj,a?JSON.parse(a):null)});g.v(Mj,xe);g.v(Nj,xe);var tea=new Kj("/google.internal.waa.v1.Waa/GenerateIT",Mj,Nj,function(a){return Pe(a)},function(a){return ze(Nj,a?JSON.parse(a):null)});var nea=Promise;g.v(Oj,xe);Oj.prototype.getValue=function(){return Fe(this,2,"")};
Oj.prototype.setValue=function(a){return Ie(this,2,a,"")};g.v(Pj,xe);var fea=[3];Qj.prototype.Wl=function(a,b){"data"==a?this.u.push(b):"metadata"==a?this.C.push(b):"status"==a?this.I.push(b):"end"==a?this.B.push(b):"error"==a&&this.l.push(b);return this};
Qj.prototype.removeListener=function(a,b){"data"==a?Wj(this.u,b):"metadata"==a?Wj(this.C,b):"status"==a?Wj(this.I,b):"end"==a?Wj(this.B,b):"error"==a&&Wj(this.l,b);return this};
Qj.prototype.cancel=function(){this.i.abort()};
Qj.prototype.cancel=Qj.prototype.cancel;Qj.prototype.removeListener=Qj.prototype.removeListener;Qj.prototype.on=Qj.prototype.Wl;g.Ta(Xj,Rh);Xj.prototype.i=function(){return new Yj(this.C,this.u)};
Xj.prototype.B=$a({});g.Ta(Yj,g.Jf);g.k=Yj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.Y=a;this.ea=b;this.readyState=1;ak(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.V,method:this.Y,credentials:this.I,cache:void 0};a&&(b.body=a);(this.va||g.A).fetch(new Request(this.ea,b)).then(this.FQ.bind(this),this.Kx.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.u&&this.u.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,bk(this));this.readyState=0};
g.k.FQ=function(a){if(this.i&&(this.C=a,this.l||(this.status=this.C.status,this.statusText=this.C.statusText,this.l=a.headers,this.readyState=2,ak(this)),this.i&&(this.readyState=3,ak(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.DQ.bind(this),this.Kx.bind(this));else if("undefined"!==typeof g.A.ReadableStream&&"body"in a){this.u=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.L=new TextDecoder;Zj(this)}else a.text().then(this.EQ.bind(this),this.Kx.bind(this))};
g.k.vQ=function(a){if(this.i){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.L.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?bk(this):ak(this);3==this.readyState&&Zj(this)}};
g.k.EQ=function(a){this.i&&(this.response=this.responseText=a,bk(this))};
g.k.DQ=function(a){this.i&&(this.response=a,bk(this))};
g.k.Kx=function(){this.i&&bk(this)};
g.k.setRequestHeader=function(a,b){this.V.append(a,b)};
g.k.getResponseHeader=function(a){return this.l?this.l.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.l)return"";for(var a=[],b=this.l.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(Yj.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.I=a?"include":"same-origin"}});g.ck.prototype.toString=function(){var a=[],b=this.B;b&&a.push(pk(b,lJa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.L)&&a.push(pk(b,lJa,!0),"@"),a.push(od(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(pk(c,"/"==c.charAt(0)?mJa:nJa,!0));(c=this.l.toString())&&a.push("?",c);(c=this.C)&&a.push("#",pk(c,oJa));return a.join("")};
g.ck.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.dk(b,a.B):c=!!a.L;c?b.L=a.L:c=!!a.i;c?g.ek(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.fk(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=oc(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?gk(b,a.l.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.ck.prototype.clone=function(){return new g.ck(this)};
g.ck.prototype.getPath=function(){return this.J};
var lJa=/[#\/\?@]/g,nJa=/[#\?:]/g,mJa=/[#\?]/g,jea=/[#\?@]/g,oJa=/#/g;g.k=ok.prototype;g.k.add=function(a,b){sk(this);this.u=null;a=tk(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){sk(this);a=tk(this,a);return this.i.has(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(){sk(this);return 0==this.l};
g.k.forEach=function(a,b){sk(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.gi=function(){sk(this);for(var a=this.i.Xg(),b=this.i.gi(),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.Xg=function(a){sk(this);var b=[];if("string"===typeof a)uk(this,a)&&(b=b.concat(this.i.get(tk(this,a))));else{a=this.i.Xg();for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){sk(this);this.u=null;a=tk(this,a);uk(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;a=this.Xg(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.u)return this.u;if(!this.i)return"";for(var a=[],b=this.i.gi(),c=0;c<b.length;c++){var d=b[c],e=od(d);d=this.Xg(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+od(d[f]));a.push(h)}}return this.u=a.join("&")};
g.k.clone=function(){var a=new ok;a.u=this.u;this.i&&(a.i=this.i.clone(),a.l=this.l);return a};g.Ta(g.wk,g.E);var pJa=[];g.k=g.wk.prototype;g.k.Pa=function(a,b,c,d){Array.isArray(b)||(b&&(pJa[0]=b.toString()),b=pJa);for(var e=0;e<b.length;e++){var f=vf(a,b[e],c||this.handleEvent,d||!1,this.l||this);if(!f)break;this.i[f.key]=f}return this};
g.k.iy=function(a,b,c,d){return xk(this,a,b,c,d)};
g.k.lc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.lc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.l||this,c=wf(c),d=!!d,b=pf(a)?a.vu(b,c,d,e):a?(a=yf(a))?a.vu(b,c,d,e):null:null,b&&(Gf(b),delete this.i[b.key])};
g.k.xa=function(){g.wk.Vd.xa.call(this);g.yk(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};zk.prototype.isInputValid=function(){return this.u};Bk.prototype.isInputValid=function(){return 3!=this.Oa};
Bk.prototype.pe=function(){return this.C};
Bk.prototype.Jw=function(){return!0};
Bk.prototype.parse=function(a){function b(m){m&128&&Ck(f,h,l,"invalid tag");2!=(m&7)&&Ck(f,h,l,"invalid wire type");f.l=m>>>3;1!=f.l&&2!=f.l&&15!=f.l&&Ck(f,h,l,"unexpected tag");f.Oa=1;f.i=0;f.u=0}
function c(m){f.u++;5==f.u&&m&240&&Ck(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.u-1);m&128||(f.Oa=2,f.I=0,"undefined"!==typeof Uint8Array?f.B=new Uint8Array(f.i):f.B=Array(f.i),0==f.i&&e())}
function d(m){f.B[f.I++]=m;f.I==f.i&&e()}
function e(){if(15>f.l){var m={};m[f.l]=f.B;f.Sd.push(m)}f.Oa=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.Oa){case 3:Ck(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.Oa);}f.J++;l++}a=f.Sd;f.Sd=[];return 0<a.length?a:null};Dk.prototype.isInputValid=function(){return null===this.i};
Dk.prototype.pe=function(){return this.i};
Dk.prototype.Jw=function(){return!1};
Dk.prototype.parse=function(a){null!==this.i&&Ek(this,a,"stream already broken");var b=null;try{var c=this.u;c.u||Ak(c,a,"stream already broken");c.i+=a;var d=Math.floor(c.i.length/4);if(0==d)var e=null;else{try{var f=be(c.i.substr(0,4*d))}catch(h){Ak(c,c.i,h.message)}c.l+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.B.parse(e)}catch(h){Ek(this,a,h.message)}this.l+=a.length;return b};var qJa={INIT:0,vt:1,ZA:2,Pq:3,Os:4,Ns:5,STRING:6,RA:7,yG:8,TG:9,UG:10,VG:11,DF:12,EF:13,FF:14,GF:15,CG:16,DG:17,EG:18,bP:19,XA:20};g.k=Gk.prototype;g.k.isInputValid=function(){return 3!=this.B};
g.k.pe=function(){return this.J};
g.k.done=function(){return 2===this.B};
g.k.Jw=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(Fk(a[t]))t++,f.l++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.l++;switch(f.Oa){case m.INIT:"{"===x?f.Oa=m.ZA:"["===x?f.Oa=m.Os:Fk(x)||Hk(f,a,t);continue;case m.RA:case m.ZA:if(Fk(x))continue;if(f.Oa===m.RA)h.push(m.yG);else if("}"===x){e("{}");f.Oa=d();continue}else h.push(m.Pq);'"'===x?f.Oa=m.STRING:Hk(f,a,t);continue;case m.yG:case m.Pq:if(Fk(x))continue;":"===x?(f.Oa===m.Pq&&(h.push(m.Pq),f.i++),f.Oa=m.vt):"}"===x?(f.i--,e(),f.Oa=d()):","===x?(f.Oa===m.Pq&&h.push(m.Pq),f.Oa=m.RA):Hk(f,a,t);continue;case m.Os:case m.vt:if(Fk(x))continue;
if(f.Oa===m.Os)if(f.i++,f.Oa=m.vt,"]"===x){f.i--;if(0===f.i){f.Oa=m.Ns;return}e("[]");f.Oa=d();continue}else h.push(m.Ns);'"'===x?f.Oa=m.STRING:"{"===x?f.Oa=m.ZA:"["===x?f.Oa=m.Os:"t"===x?f.Oa=m.TG:"f"===x?f.Oa=m.DF:"n"===x?f.Oa=m.CG:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.Oa=m.XA:Hk(f,a,t));continue;case m.Ns:if(","===x)h.push(m.Ns),f.Oa=m.vt,1===f.i&&(r=t);else if("]"===x){f.i--;if(0===f.i)return;e();f.Oa=d()}else if(Fk(x))continue;else Hk(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<
f.I;)if(x=a[t++],4===f.I?f.I=0:f.I++,!x)break a;if('"'===x&&!f.C){f.Oa=d();break}if("\\"===x&&!f.C&&(f.C=!0,x=a[t++],!x))break;if(f.C)if(f.C=!1,"u"===x&&(f.I=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.l+=t-y;continue;case m.TG:if(!x)continue;"r"===x?f.Oa=m.UG:Hk(f,a,t);continue;case m.UG:if(!x)continue;"u"===x?f.Oa=m.VG:Hk(f,a,t);continue;case m.VG:if(!x)continue;"e"===x?f.Oa=d():Hk(f,a,t);continue;case m.DF:if(!x)continue;
"a"===x?f.Oa=m.EF:Hk(f,a,t);continue;case m.EF:if(!x)continue;"l"===x?f.Oa=m.FF:Hk(f,a,t);continue;case m.FF:if(!x)continue;"s"===x?f.Oa=m.GF:Hk(f,a,t);continue;case m.GF:if(!x)continue;"e"===x?f.Oa=d():Hk(f,a,t);continue;case m.CG:if(!x)continue;"u"===x?f.Oa=m.DG:Hk(f,a,t);continue;case m.DG:if(!x)continue;"l"===x?f.Oa=m.EG:Hk(f,a,t);continue;case m.EG:if(!x)continue;"l"===x?f.Oa=d():Hk(f,a,t);continue;case m.bP:"."===x?f.Oa=m.XA:Hk(f,a,t);continue;case m.XA:if(-1!=="0123456789.eE+-".indexOf(x))continue;
else t--,f.l--,f.Oa=d();continue;default:Hk(f,a,t)}}}
function d(){var x=h.pop();return null!=x?x:m.vt}
function e(x){1<f.i||(x||(x=-1===r?f.u+a.substring(p,t):a.substring(r,t)),f.L?f.Sd.push(x):f.Sd.push(JSON.parse(x)),r=t)}
for(var f=this,h=f.V,l=f.ea,m=qJa,n=a.length,p=0,r=-1,t=0;t<n;)switch(f.B){case 3:return Hk(f,a,t),null;case 2:return b()&&Hk(f,a,t),null;case 0:if(b()){var u=a[t++];f.l++;if("["===u){f.B=1;p=t;f.Oa=m.Os;continue}else Hk(f,a,t)}return null;case 1:return c(),0===f.i&&f.Oa==m.Ns?(f.B=2,f.u=a.substring(t)):f.u=-1===r?f.u+a.substring(p):a.substring(r),0<f.Sd.length?(u=f.Sd,f.Sd=[],u):null}return null};Ik.prototype.isInputValid=function(){return null===this.u};
Ik.prototype.pe=function(){return this.u};
Ik.prototype.Jw=function(){return!1};
Ik.prototype.parse=function(a){function b(m){f.Oa=6;f.u="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.u);}
function c(){f.l=new Gk({V8:!0,NP:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.Sd.push(p)}}
function e(m){if(m){(f.B||1<m.length)&&b("extra status: "+m);f.B=!0;var n={};n[2]=m[0];f.Sd.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.Oa){a:{for(;h<a.length;){if(!Fk(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.Oa){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.Oa=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.Oa=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.Oa=3:"]"===a[h]?(f.Oa=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.l.parse(a.substring(h));d(l);f.l.done()?(f.Oa=3,l=f.l.u,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=
a.length-h,h=a.length);break;case 3:","===a[h]||"null,"==a.substr(h,5)?(f.Oa=4,c(),f.l.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.Oa=5,h++,f.i++);break;case 4:l=f.l.parse(a.substring(h));e(l);f.l.done()?(f.Oa=5,l=f.l.u,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.Sd.length?(a=f.Sd,f.Sd=[],a):null};Jk.prototype.getStatus=function(){return this.B};
Jk.prototype.ea=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Hi(this.i),c=this.i.l,d=this.i.getStatus(),e=g.Ri(this.i);a=[];if(Si(this.i)instanceof Array){var f=Si(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.V=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Kk(this,7):7==c?Kk(this,8):d||Kk(this,3)),this.l||(this.l=mea(this.i),null==this.l&&Kk(this,5)),2<this.B)Lk(this);else{if(a.length>this.u){var h=a.length;c=[];try{if(this.l.Jw())for(var l=0;l<h;l++){var m=
this.l.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.l.parse(m)}a.splice(0,h);c&&this.C(c)}catch(p){Kk(this,5);Lk(this);break a}}else if(e.length>this.u){l=e.substr(this.u);this.u=e.length;try{var n=this.l.parse(l);null!=n&&this.C&&this.C(n)}catch(p){Kk(this,5);Lk(this);break a}}4==b?(0!=e.length||
this.V?Kk(this,2):Kk(this,4),Lk(this)):Kk(this,1)}}}catch(p){Kk(this,6),Lk(this)}};g.k=Mk.prototype;g.k.Wl=function(a,b){var c=this.l[a];c||(c=[],this.l[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.Wl(a,b);return this};
g.k.removeListener=function(a,b){var c=this.l[a];c&&g.ob(c,b);(a=this.i[a])&&g.ob(a,b);return this};
g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this};
g.k.ES=function(a){var b=this.l.data;b&&Nk(a,b);(b=this.i.data)&&Nk(a,b);this.i.data=[]};
g.k.BU=function(){switch(this.u.getStatus()){case 1:Ok(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Ok(this,"error");break;case 8:Ok(this,"close");break;case 2:Ok(this,"end")}};Pk.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Qk(function(h){var l=h.yx(),m=h.getMetadata(),n=Sk(e,!1);m=Tk(e,m,n,f+l.getName());var p=Uk(n,l.l,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.B).call(this,Lj(d,b,c))};Wk.prototype.create=function(a,b){return Rk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},kJa)};g.v(Yk,g.E);g.v(Zk,Yk);Zk.prototype.Cy=function(a){this.i+=1;var b=new Fj(this.I(a.TH));a=b.l;b=g.xd(b.u);var c=new Te;a=He(c,1,a);a=He(a,2,b);b=new Ve;c=Ue[0];b.i||(b.i={});var d=a?Me(a):a;b.i[3]=a;a=Je(b,3,c,d);b=new ie;c=Ke(a,Re,1);null!=c&&oe(b,1,c,Raa);c=Ke(a,Se,2);null!=c&&oe(b,2,c,Saa);c=Ke(a,Te,3);null!=c&&oe(b,3,c,Taa);return je(b)};
Zk.prototype.u=function(){return this.i>=this.B};
Zk.prototype.dispose=function(){this.C.dispose()};
g.v($k,Yk);$k.prototype.Cy=function(){return this.i};
$k.prototype.u=function(){return!1};
Xk.prototype.isReady=function(){return!!this.Pt};
Xk.prototype.ready=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return g.w(d,c.VJ,0)})})};
Xk.prototype.Cy=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.Pt,c=Date.now();b.l&&this.logger.jy(6);try{var d=b.Cy(a)}catch(e){throw cl(this,5,e);}b.u()&&al(this);this.logger.ly("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof We?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Xa(a.substring(0,2048)))}};var Pn;Pn=["av.key","js","unreleased"].slice(-1)[0];var Ul=document,pm=window;g.gc("csi.gstatic.com");g.gc("googleads.g.doubleclick.net");g.gc("pagead2.googlesyndication.com");g.gc("partner.googleadservices.com");g.gc("pubads.g.doubleclick.net");g.gc("securepubads.g.doubleclick.net");g.gc("tpc.googlesyndication.com");var yea=bb(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 Bea=/https?:\/\/[^\/]+/,zea={TW:"allow-forms",UW:"allow-modals",VW:"allow-orientation-lock",WW:"allow-pointer-lock",XW:"allow-popups",YW:"allow-popups-to-escape-sandbox",ZW:"allow-presentation",aX:"allow-same-origin",bX:"allow-scripts",cX:"allow-top-navigation",dX:"allow-top-navigation-by-user-activation"},Eea=bb(function(){return Aea()});g.k=ol.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new ol(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof ol?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){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.rl.prototype;g.k.clone=function(){return new g.rl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Rf?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){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var vl=[ul("data"),ul("http"),ul("https"),ul("mailto"),ul("ftp"),new tl(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var xl=g.Ia;var Cl={};var Sl=!!window.google_async_iframe_id,Tl=Sl&&window.parent||window;var tfa={NONE:0,p_:1},Zea={SM:0,Y5:1,X5:2,Z5:3};cm.prototype.isVisible=function(){return this.Ap?.3<=this.Wc:.5<=this.Wc};var Km={bY:0,D_:1},Xea={NONE:0,F0:1,Z_:2};dm.prototype.getValue=function(){return this.l};
g.v(em,dm);em.prototype.setValue=function(a){if(null!==this.l||!g.Ob(this.u,a))return!1;this.l=a;return!0};
g.v(fm,dm);fm.prototype.setValue=function(a){if(null!==this.l||"number"!==typeof a)return!1;this.l=a;return!0};
g.v(gm,dm);gm.prototype.setValue=function(a){if(null!==this.l||"string"!==typeof a)return!1;this.l=a;return!0};hm.prototype.disable=function(){this.l=!1};
hm.prototype.enable=function(){this.l=!0};
hm.prototype.isEnabled=function(){return this.l};
hm.prototype.reset=function(){this.i={};this.l=!0;this.u={}};var ufa=!g.ce&&!Yc();mm.prototype.now=function(){return 0};
mm.prototype.l=function(){return 0};
mm.prototype.u=function(){return 0};
mm.prototype.i=function(){return 0};g.v(om,mm);om.prototype.now=function(){return nm()&&pm.performance.now?pm.performance.now():mm.prototype.now.call(this)};
om.prototype.l=function(){return nm()&&pm.performance.memory?pm.performance.memory.totalJSHeapSize||0:mm.prototype.l.call(this)};
om.prototype.u=function(){return nm()&&pm.performance.memory?pm.performance.memory.usedJSHeapSize||0:mm.prototype.u.call(this)};
om.prototype.i=function(){return nm()&&pm.performance.memory?pm.performance.memory.jsHeapSizeLimit||0:mm.prototype.i.call(this)};rm.prototype.isVisible=function(){return 1===qm(Ul)};var Mea=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;Dm.prototype.setInterval=function(a,b){return pm.setInterval(a,b)};
Dm.prototype.clearInterval=function(a){pm.clearInterval(a)};
Dm.prototype.setTimeout=function(a,b){return pm.setTimeout(a,b)};
Dm.prototype.clearTimeout=function(a){pm.clearTimeout(a)};Hm.prototype.getContext=function(){if(!this.i){if(!pm)throw Error("Context has not been set and window is undefined.");this.i=Cm(Dm)}return this.i};g.v(Im,xe);var Yea={C5:1,jP:2,X3:3};nc(fc(g.gc("https://pagead2.googlesyndication.com/pagead/osd.js")));Lm.prototype.eE=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)}}}};var $1=null;var Sm=g.A.performance,rJa=!!(Sm&&Sm.mark&&Sm.measure&&Sm.clearMarks),Qm=bb(function(){var a;if(a=rJa){var b;if(null===$1){$1="";try{a="";try{a=g.A.top.location.hash}catch(c){a=g.A.location.hash}a&&($1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=$1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Rm.prototype.disable=function(){this.i=!1;this.events!=this.l.google_js_reporting_queue&&(Qm()&&g.Cb(this.events,Tm),this.events.length=0)};
Rm.prototype.start=function(a,b){if(!this.i)return null;var c=Pm()||Om();a=new afa(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Sm&&Qm()&&Sm.mark(b);return a};
Rm.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=Pm()||Om();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Sm&&Qm()&&Sm.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Wm.prototype.oD=function(a,b,c,d,e){e=e||this.kI;try{var f=new vm;f.i.push(1);f.l[1]=wm("context",a);b.error&&b.meta&&b.id||(b=new Xm(Ym(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.l[2]=wm("msg",h)}var l=b.meta||{};if(this.qB)try{this.qB(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.l[3]=b;var m=um();if(m.l){var n=m.l.url||"";f.i.push(4);f.l[4]=wm("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?ki(m.i.url):""}];f.i.push(5);f.l[5]=p;Nm(this.i,e,f,!1,c)}catch(r){try{Nm(this.i,
e,{context:"ecmserr",rctx:a,msg:Ym(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.JE};
g.v(Xm,fl);var Vm,$m,Um=new Rm;(function(){Vm=new $ea;$m=new Wm;var a=$l();a&&a.document&&("complete"==a.document.readyState?bn():Um.i&&hl(a,"load",function(){bn()}))})();var cfa=Date.now(),jn=-1,gn=-1,So,kn=-1,hn=!1;var sJa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},No={eP:"start",VM:"firstquartile",ZO:"midpoint",gP:"thirdquartile",PM:"complete",YO:"metric",PAUSE:"pause",cP:"resume",dP:"skip",iP:"viewable_impression",aP:"mute",hP:"unmute",WM:"fullscreen",UM:"exitfullscreen",OM:"bufferstart",MM:"bufferfinish",XM:"fully_viewable_audible_half_duration_impression",XO:"measurable_impression",KM:"abandon",TM:"engagedview",YM:"impression",QM:"creativeview",WO:"loaded",I5:"progress",CLOSE:"close",
SX:"collapse",Y4:"overlay_resize",Z4:"overlay_unmeasurable_impression",a5:"overlay_unviewable_impression",c5:"overlay_viewable_immediate_impression",b5:"overlay_viewable_end_of_session_impression",RM:"custom_metric_viewable",T4:"verification_debug"},Ega="start firstquartile midpoint thirdquartile resume loaded".split(" "),Fga=["start","firstquartile","midpoint","thirdquartile"],Jfa=["abandon"],zp={UNKNOWN:-1,eP:0,VM:1,ZO:2,gP:3,PM:4,YO:5,PAUSE:6,cP:7,dP:8,iP:9,aP:10,hP:11,WM:12,UM:13,XM:14,XO:15,
KM:16,TM:17,YM:18,QM:19,WO:20,RM:21,OM:22,MM:23};var efa={HW:"addEventListener",d0:"getMaxSize",e0:"getScreenSize",f0:"getState",g0:"getVersion",T5:"removeEventListener",M0:"isViewable"};if(Ul&&Ul.URL){var tJa,nl=Ul.URL;tJa=!!nl&&0<Dea().length;$m.JE=!tJa};vn.prototype.update=function(a){a&&a.document&&(this.J=bm(!1,a,this.isMobileDevice),this.i=bm(!0,a,this.isMobileDevice),xn(this,a),wn(this,a))};An.prototype.cancel=function(){Em().clearTimeout(this.i);this.i=null};
An.prototype.schedule=function(){var a=this;this.i=Em().setTimeout(Jm(Mm().i.i,dn(143,function(){a.l++;a.u.sample()})),dfa())};g.k=Bn.prototype;g.k.Qs=function(){return!1};
g.k.initialize=function(){return this.ge=!0};
g.k.Ar=function(){return this.i.ya};
g.k.Gu=function(){return this.i.V};
g.k.getName=function(){return this.i.Ia};
g.k.Wm=function(){return this.i.HI()};
g.k.HI=function(){return{}};
g.k.Kl=function(){return this.i.J};
g.k.NF=function(){var a=yn();a.i=bm(!0,this.Yf,a.isMobileDevice)};
g.k.OF=function(){wn(yn(),this.Yf)};
g.k.OI=function(){return this.u.i};
g.k.sample=function(){};
g.k.isActive=function(){return this.i.C};
g.k.Gr=function(a){var b=this.i;this.i=a.Kl()>=this.J?a:this;b!==this.i?(this.C=this.i.C,Cn(this)):this.C!==this.i.C&&(this.C=this.i.C,Cn(this))};
g.k.pn=function(a){if(a.l===this.i){var b=this.u,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;this.u=a;!c&&Hn(this)}};
g.k.Ok=function(){return this.L};
g.k.dispose=function(){this.va=!0};
g.k.isDisposed=function(){return this.va};g.k=In.prototype;g.k.sA=function(){return!0};
g.k.Rs=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.l;g.ob(a.B,this);a.L&&this.Ok()&&Gn(a);this.Rs();this.ea=!0}};
g.k.isDisposed=function(){return this.ea};
g.k.Wm=function(){return this.l.Wm()};
g.k.Kl=function(){return this.l.Kl()};
g.k.Ar=function(){return this.l.Ar()};
g.k.Gu=function(){return this.l.Gu()};
g.k.Gr=function(){};
g.k.pn=function(){this.Em()};
g.k.Ok=function(){return this.Y};g.k=Jn.prototype;g.k.Kl=function(){return this.i.Kl()};
g.k.Ar=function(){return this.i.Ar()};
g.k.Gu=function(){return this.i.Gu()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.uw(a,b,c),En(this.i,d));return d};
g.k.PF=function(){return this.Ss()};
g.k.Ss=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(En(this.i,this),this.B=a,!0):!1};
g.k.Gr=function(a){0==a.Kl()&&this.B(a.Ar(),this)};
g.k.pn=function(){};
g.k.Ok=function(){return!1};
g.k.dispose=function(){this.C=!0};
g.k.isDisposed=function(){return this.C};
g.k.Wm=function(){return{}};Mn.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new Kn(a,b,c);d=new Kn(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};Qn.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=On(this.i);0<b.length&&(a+="?"+b);return a};Tn.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 nfa=[1,.75,.5,.3,0];Un.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)}};co.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Wc):b.Wc;this.Y=Math.max(this.Y,b.Wc);this.va=-1!=this.va?Math.min(this.va,b.nh):b.nh;this.Aa=Math.max(this.Aa,b.nh);this.Za.update(b.nh,c.nh,b.i,a,d);this.l.update(b.Wc,c.Wc,b.i,a,d);c=d||c.Ap!=b.Ap?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.Ga.update(c,a,b)};
co.prototype.Dp=function(){return this.Ga.u>=this.Ua};var uJa=new ol(0,0,0,0);var sfa=new ol(0,0,0,0);g.v(ho,g.E);g.k=ho.prototype;g.k.xa=function(){this.Qg.i&&(this.To.yD&&(il(this.Qg.i,"mouseover",this.To.yD),this.To.yD=null),this.To.wD&&(il(this.Qg.i,"mouseout",this.To.wD),this.To.wD=null));this.Xv&&this.Xv.dispose();this.Bd&&this.Bd.dispose();delete this.wy;delete this.qD;delete this.sM;delete this.Qg.Bn;delete this.Qg.i;delete this.To;delete this.Xv;delete this.Bd;delete this.featureSet;g.E.prototype.xa.call(this)};
g.k.Xm=function(){return this.Bd?this.Bd.i:this.position};
g.k.eE=function(a){Mm().eE(a)};
g.k.Ok=function(){return!1};
g.k.Bx=function(){return new co};
g.k.Wg=function(){return this.wy};
g.k.KI=function(a){return ko(this,a,1E4)};
g.k.Ma=function(a,b,c,d,e,f,h){this.Mr||(this.ex&&(a=this.wB(a,c,e,h),d=d&&this.rf.Wc>=(this.Ap()?.3:.5),this.pF(f,a,d),this.lastUpdateTime=b,0<a.Wc&&-1===this.cM&&(this.cM=b),-1==this.hM&&this.Dp()&&(this.hM=b),-2==this.mD&&(this.mD=fo(this.Xm())?a.Wc:-1),this.rf=a),this.qD(this))};
g.k.pF=function(a,b,c){this.Wg().update(a,b,this.rf,c)};
g.k.yC=function(){return new cm};
g.k.wB=function(a,b,c,d){c=this.yC();c.i=b;b=Em().l;b=0===qm(Ul)?-1:b.isVisible()?0:1;c.l=b;c.Wc=this.NB(a);c.Ap=this.Ap();c.nh=d;return c};
g.k.NB=function(a){return 0===this.opacity&&1===km(this.featureSet,"opac")?0:a};
g.k.Ap=function(){return!1};
g.k.Cz=function(){return this.bR||this.eR};
g.k.Fy=function(){fn()};
g.k.xD=function(){fn()};
g.k.rk=function(){return 0};
g.k.Dp=function(){return this.wy.Dp()};g.v(lo,cm);oo.prototype.getValue=function(){return this.l};
oo.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.v(po,co);
po.prototype.update=function(a,b,c,d){if(!b.paused){co.prototype.update.call(this,a,b,c,d);var e=mo(b)&&mo(c),f=.5<=(d?Math.min(b.Wc,c.Wc):c.Wc);tn(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.ya+=a,this.V+=e?a:0);this.i.update(b.Wc,c.Wc,b.i,a,d,e);this.u.update(!0,a);this.C.update(e,a);this.ea.update(c.fullscreen,a);this.Ya.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Da.update(a,b.isVisible());this.Ra.update(a,1<=b.Wc);this.La.update(a,
mo(b))}};g.v(ro,Dfa);ro.prototype.B=function(){return!0};
ro.prototype.C=function(){return!1};
ro.prototype.getId=function(){var a=this,b=Pb(No,function(c){return c==a.l});
return zp[b].toString()};
ro.prototype.toString=function(){var a="";this.C()&&(a+="c");this.i&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.v(uo,In);g.k=uo.prototype;g.k.zB=function(){if(this.element){var a=this.element,b=this.l.i.Yf;try{try{var c=rn(a.getBoundingClientRect())}catch(n){c=new ol(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ml(a,b),h=f.x,l=f.y;var m=new ol(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=uJa.clone()}this.i=m}};
g.k.EH=function(){this.B=this.l.u.i};
g.k.sJ=function(a){var b=1==km(this.featureSet,"od");return rfa(a,this.B,this.element,b)};
g.k.FH=function(){this.timestamp=fn()};
g.k.Em=function(){this.FH();this.zB();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Tf(a.videoWidth,a.videoHeight);a=this.i;var c=pl(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.EH();
a=this.i;c=this.B;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new ol(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 ol(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new ol(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.sJ(c)?c=new ol(0,0,0,0):(d=yn().B,b=new ol(0,d.height,d.width,0),d=go(c,this.i),e=go(c,yn().i),b=go(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ol(0,0,0,
0):ql(c,-this.i.left,-this.i.top);zn()||(e=d=0);this.J=new mn(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.l.getName()};var vJa=new ol(0,0,0,0);g.v(vo,uo);g.k=vo.prototype;g.k.sA=function(){this.u();return!0};
g.k.pn=function(){uo.prototype.Em.call(this)};
g.k.FH=function(){};
g.k.zB=function(){};
g.k.Em=function(){this.u();uo.prototype.Em.call(this)};
g.k.Gr=function(a){a=a.isActive();a!==this.I&&(a?this.u():(yn().i=new ol(0,0,0,0),this.i=new ol(0,0,0,0),this.B=new ol(0,0,0,0),this.timestamp=-1));this.I=a};var a2={},Ifa=(a2.firstquartile=0,a2.midpoint=1,a2.thirdquartile=2,a2.complete=3,a2);g.v(xo,ho);g.k=xo.prototype;g.k.Ok=function(){return!0};
g.k.Ql=function(){return 2==this.og};
g.k.KI=function(a){return ko(this,a,Math.max(1E4,this.u/3))};
g.k.Ma=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.V=m.isVpaid||this.V;this.Ia=m.isYouTube||this.Ia;e=Efa(this,b);1===Jo(this)&&(f=e);ho.prototype.Ma.call(this,a,b,c,d,m,f,h);this.Jp&&this.Jp.i&&g.Cb(this.I,function(n){n.i||(n.i=to(n,l))})};
g.k.pF=function(a,b,c){ho.prototype.pF.call(this,a,b,c);Io(this).update(a,b,this.rf,c);this.Za=mo(this.rf)&&mo(b);-1==this.Aa&&this.Ua&&(this.Aa=this.Wg().u.i);this.gf.u=0;a=this.Dp();b.isVisible()&&no(this.gf,"vs");a&&no(this.gf,"vw");tn(b.volume)&&no(this.gf,"am");mo(b)&&no(this.gf,"a");this.Hr&&no(this.gf,"f");-1!=b.l&&(no(this.gf,"bm"),1==b.l&&no(this.gf,"b"));mo(b)&&b.isVisible()&&no(this.gf,"avs");this.Za&&a&&no(this.gf,"avw");0<b.Wc&&no(this.gf,"pv");Ko(this,this.Wg().u.i,!0)&&no(this.gf,"gdr");
2E3<=$n(this.Wg().l,1)&&no(this.gf,"pmx")};
g.k.Bx=function(){return new po};
g.k.Wg=function(){return this.wy};
g.k.yC=function(){return new lo};
g.k.wB=function(a,b,c,d){a=ho.prototype.wB.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Hr;a.paused=this.Ql();a.volume=c.volume;tn(a.volume)||(this.Ya++,b=this.rf,tn(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.NB=function(a){return yn(),this.Hr?1:ho.prototype.NB.call(this,a)};
g.k.rk=function(){return 1};
g.k.getDuration=function(){return this.u};var wJa=g.Sa();Uo.prototype.reset=function(){this.i=[];this.l=[]};
var Xo=Cm(Uo);g.v(cp,Jn);g.k=cp.prototype;g.k.getName=function(){return(this.l?this.l:this.i).getName()};
g.k.Wm=function(){return(this.l?this.l:this.i).Wm()};
g.k.Kl=function(){return(this.l?this.l:this.i).Kl()};
g.k.init=function(a){var b=!1;(0,g.Cb)(this.u,function(c){c.initialize()&&(b=!0)});
b&&(this.B=a,En(this.i,this));return b};
g.k.dispose=function(){(0,g.Cb)(this.u,function(a){a.dispose()});
Jn.prototype.dispose.call(this)};
g.k.PF=function(){return un(this.u,function(a){return a.Qs()})};
g.k.Ss=function(){return un(this.u,function(a){return a.Qs()})};
g.k.uw=function(a,b,c){return new uo(a,this.i,b,c)};
g.k.pn=function(a){this.l=a.l};var Vfa={threshold:[0,.3,.5,.75,1]};g.v(dp,uo);g.k=dp.prototype;g.k.sA=function(){var a=this;this.V||(this.V=fn());if(cn(298,function(){return Wfa(a)}))return!0;
Dn(this.l,"msf");return!1};
g.k.Rs=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.Em=function(){var a=ep(this);0<a.length&&fp(this,a);uo.prototype.Em.call(this)};
g.k.zB=function(){};
g.k.sJ=function(){return!1};
g.k.EH=function(){};
g.k.Wm=function(){var a={};return Object.assign(this.l.Wm(),(a.niot_obs=this.V,a.niot_cbk=this.L,a))};
g.k.getName=function(){return"nio"};g.v(gp,Jn);gp.prototype.getName=function(){return"nio"};
gp.prototype.Ss=function(){return!yn().l&&null!=this.i.i.Yf.IntersectionObserver};
gp.prototype.uw=function(a,b,c){return new dp(a,this.i,b,c)};g.v(ip,Bn);ip.prototype.OI=function(){return yn().i};
ip.prototype.Qs=function(){var a=hp();this.J!==a&&(this.i!=this&&a>this.i.J&&(this.i=this,Cn(this)),this.J=a);return 2==a};kp.prototype.sample=function(){np(this,Yo(),!1)};
kp.prototype.B=function(){var a=zn(),b=fn();a?(hn||(jn=b,g.Cb(Xo.i,function(c){var d=c.Wg();d.Ia=qo(d,b,1!=c.og)})),hn=!0):(this.J=pp(this,b),hn=!1,So=b,g.Cb(Xo.i,function(c){c.ex&&(c.Wg().L=b)}));
np(this,Yo(),!a)};
var lp=Cm(kp);var qp=null,Zp="",Yp=!1;var b2=wp([void 0,1,2,3,4,8,16]),c2=wp([void 0,4,8,16]),xJa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:vp("p0",c2),p1:vp("p1",c2),p2:vp("p2",c2),p3:vp("p3",c2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:up("mtos1",[0,2,4],!1,c2),mtos2:up("mtos2",[0,2,4],!1,c2),mtos3:up("mtos3",[0,2,4],!1,c2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:vp("a0",c2),a1:vp("a1",c2),a2:vp("a2",c2),a3:vp("a3",c2),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:vp("c0",c2),c1:vp("c1",c2),c2:vp("c2",c2),c3:vp("c3",c2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:vp("qmtos",b2),qnc:vp("qnc",b2),qmv:vp("qmv",b2),qnv:vp("qnv",b2),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:vp("ss0",c2),ss1:vp("ss1",c2),ss2:vp("ss2",c2),ss3:vp("ss3",c2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},yJa={c:rp("c"),
at:"at",atos:up("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:tp(),j:"dom",mtos:up("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:rp("ss"),vsv:$a("w2"),t:"t"},zJa={atos:"atos",avt:up("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:rp("ss"),t:"t"},AJa={a:"a",tos:tp(),at:"at",c:rp("c"),mtos:up("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:$a("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},BJa={tos:tp(),at:"at",c:rp("c"),mtos:up("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:$a("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:up("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Qe(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var xp="goog.define.default".includes("outstream")?"out":"goog.define.default".includes("drx_rewarded_web")?"r":"goog.define.default".includes("gam_native_web_video")?"n":"goog.define.default".includes("admob_interstitial_video")?"int":"j";var ega={F_:"visible",kX:"audible",p7:"time",q7:"timetype"},Cp={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.v(Dp,ro);Dp.prototype.getId=function(){return this.I};
Dp.prototype.C=function(){return!0};
Dp.prototype.B=function(a){var b=a.Wg(),c=a.getDuration();return un(this.J,function(d){if(void 0!=d.i)var e=gga(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.v(Ep,ro);Ep.prototype.B=function(a){var b=Yn(a.Wg().i,1);return Ko(a,b)};g.v(Fp,ro);Fp.prototype.B=function(a){return a.Wg().Dp()};g.v(Ip,hga);Ip.prototype.i=function(a){var b=new Gp;b.i=Hp(a,xJa);b.u=Hp(a,zJa);return b};g.v(Jp,vo);Jp.prototype.u=function(){var a=g.Ha("ima.admob.getViewability"),b=km(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Jp.prototype.getName=function(){return"gsv"};g.v(Kp,Jn);Kp.prototype.getName=function(){return"gsv"};
Kp.prototype.Ss=function(){var a=yn();Mm();return a.l&&!1};
Kp.prototype.uw=function(a,b,c){return new Jp(this.i,b,c)};g.v(Lp,vo);Lp.prototype.u=function(){var a=this,b=g.Ha("ima.bridge.getNativeViewability"),c=km(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Rb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=sn(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?vJa.clone():sn(e);a.timestamp=d.opt_nativeTime||-1;yn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Lp.prototype.getName=function(){return"nis"};g.v(Mp,Jn);Mp.prototype.getName=function(){return"nis"};
Mp.prototype.Ss=function(){var a=yn();Mm();return a.l&&!1};
Mp.prototype.uw=function(a,b,c){return new Lp(this.i,b,c)};g.v(Np,Bn);g.k=Np.prototype;g.k.Qs=function(){return null!=this.l.rj};
g.k.HI=function(){var a={};this.Aa&&(a.mraid=this.Aa);this.Y&&(a.mlc=1);a.mtop=this.l.LV;this.I&&(a.mse=this.I);this.Da&&(a.msc=1);a.mcp=this.l.compatibility;return a};
g.k.Sn=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.l.rj[a].apply(this.l.rj,c)}catch(e){en(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.ge)return!this.Gu();this.ge=!0;if(2===this.l.compatibility)return this.I="ng",Dn(this,"w"),!1;if(1===this.l.compatibility)return this.I="mm",Dn(this,"w"),!1;yn().L=!0;this.Yf.document.readyState&&"complete"==this.Yf.document.readyState?Rp(this):pn(this.Yf,"load",function(){Em().setTimeout(dn(292,function(){return Rp(a)}),100)},292);
return!0};
g.k.NF=function(){var a=yn(),b=Up(this,"getMaxSize");a.i=new ol(0,b.width,b.height,0)};
g.k.OF=function(){yn().B=Up(this,"getScreenSize")};
g.k.dispose=function(){Sp(this);Bn.prototype.dispose.call(this)};g.k=Vp.prototype;g.k.Rt=function(a){io(a,!1);Sfa(a)};
g.k.Fx=function(){};
g.k.Iv=function(a,b,c,d){var e=this;this.l||(this.l=this.ZH());b=c?b:-1;a=null==this.l?new xo(pm,a,b,7):new xo(pm,a,b,7,new ro("measurable_impression",this.l),nga(this));a.If=d;Jea(a.featureSet);jm(a.featureSet,"queryid",a.If);a.eE("");xfa(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.VI.apply(e,g.la(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.IQ.apply(e,g.la(h))});
(d=Cm(ap).i)&&jo(a,d);a.Qg.Bn&&Cm(jp);return a};
g.k.Gr=function(a){switch(a.Kl()){case 0:if(a=Cm(ap).i)a=a.i,g.ob(a.B,this),a.L&&this.Ok()&&Gn(a);Xp();break;case 2:mp()}};
g.k.pn=function(){};
g.k.Ok=function(){return!1};
g.k.IQ=function(a,b){a.Mr=!0;switch(a.rk()){case 1:cq(this,a,b);break;case 2:this.oE(a)}this.zE()};
g.k.QQ=function(a){Mo(a,0);return Po(a,"start",zn())};
g.k.Fs=function(a,b,c){np(lp,[a],!zn());return this.cn(a,b,c)};
g.k.cn=function(a,b,c){return Po(a,c,zn())};
g.k.LQ=function(a){return dq(a,"firstquartile",1)};
g.k.NQ=function(a){a.Ua=!0;return dq(a,"midpoint",2)};
g.k.RQ=function(a){return dq(a,"thirdquartile",3)};
g.k.JQ=function(a){var b=dq(a,"complete",4);yo(a);return b};
g.k.DL=function(a,b,c){b=zn();if(a.Ql()&&!b){var d=fn();a.Wg().L=d}np(lp,[a],!b);a.Ql()&&(a.og=1);return Po(a,c,b)};
g.k.PQ=function(a,b){b=this.Fs(a,b||{},"skip");yo(a);return b};
g.k.MQ=function(a,b){io(a,!0);return this.Fs(a,b||{},"fullscreen")};
g.k.KQ=function(a,b){io(a,!1);return this.Fs(a,b||{},"exitfullscreen")};
g.k.XD=function(a,b,c){b=a.Wg();var d=fn();b.Ia=qo(b,d,1!=a.og);np(lp,[a],!zn());1==a.og&&(a.og=2);return Po(a,c,zn())};
g.k.OQ=function(a){np(lp,[a],!zn());return a.l()};
g.k.PC=function(a){np(lp,[a],!zn());this.zL(a);yo(a);return a.l()};
g.k.VI=function(){};
g.k.oE=function(){};
g.k.zL=function(){};
g.k.QF=function(){};
g.k.zE=function(){};
g.k.ZH=function(){};var hq=g.Sa(),jq=!1,kq=!1,lq=!1,tga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return iq(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 iq(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 iq(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 iq(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 iq(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return kq},
function(){return lq},
function(){return iq(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 iq(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]||gq(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 gq(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 iq(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 gq(a.CSS.supports)},
function(){return gq(Intl.Collator)},
function(a){return gq(a.document.createElement("dialog").show)},
function(){return iq(8)},
function(a){return gq(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 gq(a.document.createElement("div").animate)},
function(a){return gq(a.document.documentElement.webkitRequestFullScreen)},
function(a){return gq(a.navigator.getBattery)},
function(a){return gq(a.navigator.permissions.query)},
function(){return!1},
function(){return iq(9)},
function(){return gq(webkitRequestAnimationFrame)},
function(a){return gq(a.BroadcastChannel.call)},
function(a){return gq(a.FontFace)},
function(a){return gq(a.Gamepad)},
function(){return iq(10)},
function(a){return gq(a.MutationEvent)},
function(a){return gq(a.MutationObserver)},
function(a){return gq(a.crypto.getRandomValues)},
function(a){return gq(a.document.body.createShadowRoot)},
function(a){return gq(a.document.body.webkitCreateShadowRoot)},
function(a){return gq(a.fetch)},
function(){return iq(11)},
function(a){return gq(a.navigator.serviceWorker.register)},
function(a){return gq(a.navigator.webkitGetGamepads)},
function(a){return gq(a.speechSynthesis.speak)},
function(a){return gq(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return iq(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 iq(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 iq(14)},
function(a){return"undefined"==typeof a.navigator.K9},
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")}],uga=[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}],vga=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ta(mq,xga);mq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.u=this.l=0};
mq.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.B,e=this.l,f=0;f<b;){if(0==e)for(;f<=c;)nq(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){nq(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){nq(this,d);e=0;break}}this.l=e;this.u+=b};
mq.prototype.digest=function(){var a=Array((56>this.l?this.blockSize:2*this.blockSize)-this.l);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.u;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.v(oq,Ip);oq.prototype.i=function(a){var b=Ip.prototype.i.call(this,a);var c=hq=g.Sa();var d=iq(5);c=(kq?!d:d)?c|2:c&-3;d=iq(2);c=(lq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=wga());b.C=this.l;b.I=Hp(a,yJa,c,"h",pq("kArwaWEsTs"));b.B=Hp(a,AJa,{},"h",pq("b96YPMzfnx"));b.l=Hp(a,BJa,{},"h",pq("yb8Wev6QDg"));return b};qq.prototype.l=function(){return g.Ha(this.i)};g.v(rq,Vp);g.k=rq.prototype;g.k.Fx=function(a,b){var c=this,d=Cm(ap);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Bga(this,a,b);break;case "gsv":e=Aga(this,a,b);break;case "exc":e=Cga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=qga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.rk()&&(e.L==g.Ia&&(e.L=function(f){return c.QF(f)}),zga(this,e,b));
return e};
g.k.QF=function(a){a.l=0;a.ya=0;if("h"==a.B||"n"==a.B){Mm();a.Ra&&(Mm(),"h"!=aq(this)&&aq(this));var b=g.Ha("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.If)}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{c=b(a.If)}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{c=b(a.If)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===c?a.l|=8:null===
c?a.l|=16:g.Rb(c)?a.l|=32:null!=c.errorCode&&(a.ya=c.errorCode,a.l|=64));null==c&&(c={});b=c;a.J=0;for(var d in sJa)null==b[d]&&(a.J|=sJa[d]);fq(b,"currentTime");fq(b,"duration");tn(c.volume)&&tn(void 0)&&(c.volume*=NaN);return c};
g.k.ZH=function(){Mm();"h"!=aq(this)&&aq(this);var a=Dga(this);return null!=a?new qq(a,this.B):null};
g.k.oE=function(a){!a.i&&a.Mr&&bq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.zL=function(a){a.PL&&(a.Dp()?bq(this,a,"overlay_viewable_end_of_session_impression"):bq(this,a,"overlay_unviewable_impression"),a.PL=!1)};
g.k.VI=function(){};
g.k.zE=function(){};
g.k.Iv=function(a,b,c,d){a=Vp.prototype.Iv.call(this,a,b,c,d);this.C&&(b=this.I,null==a.C&&(a.C=new yfa),b.i[a.If]=a.C,a.C.C=wJa);return a};
g.k.Rt=function(a){a&&1==a.rk()&&this.C&&delete this.I.i[a.If];return Vp.prototype.Rt.call(this,a)};
var sq=new Gp;sq.C="stopped";sq.i="stopped";sq.u="stopped";sq.I="stopped";sq.B="stopped";sq.l="stopped";Object.freeze(sq);var CJa=an(193,vq,eq);g.Ga("Goog_AdSense_Lidar_sendVastEvent",CJa,void 0);var DJa=dn(194,function(a,b){b=void 0===b?{}:b;a=tq(Cm(rq),a,b);return uq(a)});
g.Ga("Goog_AdSense_Lidar_getViewability",DJa,void 0);var EJa=an(195,function(){return Gm()},void 0);
g.Ga("Goog_AdSense_Lidar_getUrlSignalsArray",EJa,void 0);var FJa=dn(196,function(){return JSON.stringify(Gm())});
g.Ga("Goog_AdSense_Lidar_getUrlSignalsList",FJa,void 0);var jha=(new Date).getTime();var xq="://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(" "),Gga=/\bocr\b/;var Hga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ala={N1:"LIVING_ROOM_APP_MODE_UNSPECIFIED",K1:"LIVING_ROOM_APP_MODE_MAIN",J1:"LIVING_ROOM_APP_MODE_KIDS",L1:"LIVING_ROOM_APP_MODE_MUSIC",M1:"LIVING_ROOM_APP_MODE_UNPLUGGED",I1:"LIVING_ROOM_APP_MODE_GAMING"};Aq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)};
Aq.prototype.get=function(a){return!!this.data_[a]};g.Ta(g.Bq,g.E);g.k=g.Bq.prototype;g.k.start=function(){this.stop();this.B=!1;var a=Dq(this),b=Eq(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=vf(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(ab(this.u),20)};
g.k.stop=function(){if(this.isActive()){var a=Dq(this),b=Eq(this);a&&!b&&this.l.mozRequestAnimationFrame?Gf(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null};
g.k.isActive=function(){return null!=this.i};
g.k.bN=function(){this.B&&this.i&&Gf(this.i);this.i=null;this.I.call(this.C,g.Sa())};
g.k.xa=function(){this.stop();g.Bq.Vd.xa.call(this)};g.Ta(g.J,g.E);g.k=g.J.prototype;g.k.Ts=0;g.k.xa=function(){g.J.Vd.xa.call(this);this.stop();delete this.i;delete this.l};
g.k.start=function(a){this.stop();this.Ts=g.kh(this.u,void 0!==a?a:this.Rf)};
g.k.stop=function(){this.isActive()&&g.A.clearTimeout(this.Ts);this.Ts=0};
g.k.isActive=function(){return 0!=this.Ts};
g.k.RF=function(){this.Ts=0;this.i&&this.i.call(this.l)};g.Ta(g.Qq,g.Jf);g.k=g.Qq.prototype;g.k.yc=function(){return 1==this.Oa};
g.k.Ly=function(){this.ci("begin")};
g.k.qv=function(){this.ci("end")};
g.k.onFinish=function(){this.ci("finish")};
g.k.ci=function(a){this.dispatchEvent(a)};var GJa=bb(function(){if(g.ce)return g.Wd("10.0");var a=g.og("DIV"),b=g.jg?"-webkit":Dl?"-moz":g.ce?"-ms":g.Vk?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!aJa.test("div"))throw Error("");if("DIV"in cJa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!aJa.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 Nc||(e=Rc(e));e=Oc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in bJa)if(e instanceof lc)e=mc(e).toString();else if(e instanceof g.Fc)e=g.Gc(e);else if("string"===typeof e)e=g.Kc(e).Hh();else throw Error("");}e.xk&&(e=e.Hh());f=f+'="'+zc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===YIa.div?h+=">":(c=Eaa(d),h+=">"+g.ad(c).toString()+"</div>",c=c.zr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=bd(h,c);g.jd(a,
b);return""!=g.El(a.firstChild,"transition")});g.Ta(Rq,g.Qq);g.k=Rq.prototype;g.k.play=function(){if(this.yc())return!1;this.Ly();this.ci("play");this.startTime=g.Sa();this.Oa=1;if(GJa())return g.Bl(this.i,this.I),this.l=g.kh(this.fV,void 0,this),!0;this.tA(!1);return!1};
g.k.fV=function(){g.Ql(this.i);Jga(this.i,this.J);g.Bl(this.i,this.u);this.l=g.kh((0,g.C)(this.tA,this,!1),1E3*this.C)};
g.k.stop=function(){this.yc()&&this.tA(!0)};
g.k.tA=function(a){g.Bl(this.i,"transition","");g.A.clearTimeout(this.l);g.Bl(this.i,this.u);this.endTime=g.Sa();this.Oa=0;if(a)this.ci("stop");else this.onFinish();this.qv()};
g.k.xa=function(){this.stop();Rq.Vd.xa.call(this)};
g.k.pause=function(){};var Kga={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 Oga=Tq("getPropertyValue"),Pga=Tq("setProperty");var Nga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Xq.prototype.clone=function(){return new g.Xq(this.i,this.C,this.u,this.I,this.B,this.J,this.l,this.L)};Zq.prototype.clone=function(){return new Zq(this.start,this.end)};var HJa=new WeakMap;(function(){if(ZEa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Uc))?a[1]:"0"}return cU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Uc))?a[0].replace(/_/g,"."):"10"):g.Gt?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Uc))?a[1]:""):eJa||fJa||gJa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Uc))?a[1].replace(/_/g,"."):""):""})();var Wga=function(){if(g.cj)return $q(/Firefox\/([0-9.]+)/);if(g.ce||g.Ew||g.Vk)return Vd;if(g.bj)return Pd()?$q(/CriOS\/([0-9.]+)/):$q(/Chrome\/([0-9.]+)/);if(g.dj&&!Pd())return $q(/Version\/([0-9.]+)/);if(XF||gI){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Uc);if(a)return a[1]+"."+a[2]}else if(g.PF)return(a=$q(/Android\s+([0-9.]+)/))?a:$q(/Version\/([0-9.]+)/);return""}();g.Ta(g.cr,g.E);g.k=g.cr.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=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Wf(a)}return!1};
g.k.Wf=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.ob(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.X=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];Xga(this.i[h+1],this.i[h+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();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.Wf(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.l[a];b&&(b.forEach(this.Wf,this),delete this.l[a])}else this.i.length=0,this.l={}};
g.k.xa=function(){g.cr.Vd.xa.call(this);this.clear();this.u.length=0};g.dr.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.Oh(b))};
g.dr.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.dr.prototype.remove=function(a){this.i.remove(a)};g.Ta(er,g.dr);er.prototype.set=function(a,b){er.Vd.set.call(this,a,gr(b))};
er.prototype.l=function(a){a=er.Vd.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
er.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(hr,er);hr.prototype.set=function(a,b,c){if(b=gr(b)){if(c){if(c<g.Sa()){hr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Sa()}hr.Vd.set.call(this,a,b)};
hr.prototype.l=function(a,b){var c=hr.Vd.l.call(this,a);if(c)if(!b&&g.ir(c))hr.prototype.remove.call(this,a);else return c};g.Ta(g.jr,hr);g.Ta(kr,Yga);kr.prototype[Symbol.iterator]=function(){return $h(this.Kg(!0)).l()};
kr.prototype.clear=function(){var a=Array.from(this);a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ta(lr,kr);g.k=lr.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.Kg=function(a){var b=0,c=this.i,d=new g.Vh;d.i=function(){if(b>=c.length)throw g.ai;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};
d.next=d.i.bind(d);return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ta(mr,lr);g.Ta(nr,lr);g.Ta(pr,kr);var Zga={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},or=null;g.k=pr.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(qr(a),b);rr(this)};
g.k.get=function(a){a=this.i.getAttribute(qr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(qr(a));rr(this)};
g.k.Kg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.Vh;d.i=function(){if(b>=c.length)throw g.ai;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};
d.next=d.i.bind(d);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);rr(this)};g.Ta(sr,kr);sr.prototype.set=function(a,b){this.l.set(this.i+a,b)};
sr.prototype.get=function(a){return this.l.get(this.i+a)};
sr.prototype.remove=function(a){this.l.remove(this.i+a)};
sr.prototype.Kg=function(a){var b=this.l.Kg(!0),c=this,d=new g.Vh;d.i=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)};
d.next=d.i.bind(d);return d};ur.prototype.getKey=function(){return this.i};
ur.prototype.getValue=function(){return this.l};
ur.prototype.clone=function(){return new ur(this.i,this.l)};g.k=vr.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(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.Xg=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.gi=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 vr(this)};
g.k.isEmpty=function(){return 0===this.i.length};
g.k.clear=function(){lb(this.i)};g.Ta(xr,vr);Ja(yr);yr.prototype.i=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Br="@@redux/INIT"+Ar(),bha="@@redux/REPLACE"+Ar();var Dr="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(Er,xe);Er.prototype.Ob=function(){return Fe(this,11,0)};
g.v(Fr,xe);Fr.prototype.getKey=function(){return Ee(this,3)};
var cha=[2,13,14];g.v(Hr,Gr);g.v(Ir,Hr);Ir.prototype.l=function(){return[]};g.v(Jr,Hr);Jr.prototype.l=function(){return[]};g.v(Kr,Hr);Kr.prototype.l=function(){var a=[];this.i.video&&a.push(this.i.video);this.i.playbackData&&a.push(this.i.playbackData);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.la(new Set(a)))};g.v(Lr,Hr);Lr.prototype.l=function(){return[]};g.v(Mr,Hr);Mr.prototype.l=function(){var a=[];this.i.channelOwner&&a.push(this.i.channelOwner);this.i.playbackPosition&&a.push(this.i.playbackPosition);this.i.downloadStatus&&a.push(this.i.downloadStatus);return[].concat(g.la(new Set(a)))};g.v(Nr,Hr);Nr.prototype.l=function(){return[]};g.v(Or,Hr);Or.prototype.l=function(){return[]};g.v(Pr,Hr);Pr.prototype.l=function(){return[]};g.v(Qr,Hr);Qr.prototype.l=function(){return[]};g.v(Rr,Hr);Rr.prototype.l=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.la(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.la(new Set(a)))};g.v(Sr,Hr);Sr.prototype.l=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.la(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.la(this.i.captionTrack));return[].concat(g.la(new Set(a)))};var d2,e2,f2=g.A.window,Vr=(null===(d2=null===f2||void 0===f2?void 0:f2.yt)||void 0===d2?void 0:d2.config_)||(null===(e2=null===f2||void 0===f2?void 0:f2.ytcfg)||void 0===e2?void 0:e2.data_)||{};g.Ga("yt.config_",Vr,void 0);var cs=[];var iha=/^[\w.]*$/,hha={q:!0,search_query:!0},gha=String(hs);var Os=new function(){var a=window.document;this.i=window;this.l=a};
g.Ga("yt.ads_.signals_.getAdSignalsString",function(a){return is(Qs(a))},void 0);g.Sa();var Rs="XMLHttpRequest"in g.A?function(){return new XMLHttpRequest}:null;var Xs={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"},
mha="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".split(" ").concat(g.la(["client_dev_root_url","client_dev_regex_map","expflag"])),bt=!1,qpa=Ys;g.v(dt,Va);gt.prototype.then=function(a,b,c){return 1===this.Oa&&a?(a=a.call(c,this.i),Mg(a)?a:it(a)):2===this.Oa&&b?(a=b.call(c,this.i),Mg(a)?a:ht(a)):this};
gt.prototype.getValue=function(){return this.i};
gt.prototype.$goog_Thenable=!0;var jt=!1;var Et=XF||gI;g.v(Lt,Va);Lt.prototype.name="BiscottiError";g.v(Kt,Va);Kt.prototype.name="BiscottiMissingError";var Nt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Mt=null;var IJa=0,St=g.jg?"webkit":Dl?"moz":g.ce?"ms":g.Vk?"o":"",JJa=g.Ha("ytDomDomGetNextId")||function(){return++IJa};
g.Ga("ytDomDomGetNextId",JJa,void 0);var uha={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};Vt.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Vt.prototype.rJ=function(){return this.event?!1===this.event.returnValue:!1};
Vt.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Vt.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Xt=g.A.ytEventsEventsListeners||{};g.Ga("ytEventsEventsListeners",Xt,void 0);var Yt=g.A.ytEventsEventsCounter||{count:0};g.Ga("ytEventsEventsCounter",Yt,void 0);var KJa=bb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Zt=bb(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var yF=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(ku,g.E);ku.prototype.V=function(a){void 0===a.i&&Wt(a);var b=a.i;void 0===a.l&&Wt(a);this.i=new g.Rf(b,a.l)};
ku.prototype.Xm=function(){return this.i||new g.Rf};
ku.prototype.ea=function(){if(this.i){var a=yF();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}};
ku.prototype.xa=function(){window.clearInterval(this.L);g.au(this.Y)};g.v(pu,lu);pu.prototype.start=function(){var a=g.Ha("yt.scheduler.instance.start");a&&a()};
pu.prototype.pause=function(){var a=g.Ha("yt.scheduler.instance.pause");a&&a()};qu();var yu={};var Du={},zha=0;var LJa,Fu,Hu;LJa=g.A.ytPubsubPubsubInstance||new g.cr;Fu=g.A.ytPubsubPubsubSubscribedKeys||{};Hu=g.A.ytPubsubPubsubTopicToKeys||{};g.Gu=g.A.ytPubsubPubsubIsSynchronous||{};g.cr.prototype.subscribe=g.cr.prototype.subscribe;g.cr.prototype.unsubscribeByKey=g.cr.prototype.Wf;g.cr.prototype.publish=g.cr.prototype.X;g.cr.prototype.clear=g.cr.prototype.clear;g.Ga("ytPubsubPubsubInstance",LJa,void 0);g.Ga("ytPubsubPubsubTopicToKeys",Hu,void 0);g.Ga("ytPubsubPubsubIsSynchronous",g.Gu,void 0);
g.Ga("ytPubsubPubsubSubscribedKeys",Fu,void 0);var g2;g2=window;g.P=g2.ytcsi&&g2.ytcsi.now?g2.ytcsi.now:g2.performance&&g2.performance.timing&&g2.performance.now&&g2.performance.timing.navigationStart?function(){return g2.performance.timing.navigationStart+g2.performance.now()}:function(){return(new Date).getTime()};var Cha=$r("initial_gel_batch_timeout",2E3),bv=Math.pow(2,16)-1,cv=null,av=0,Qu=void 0,Vu=0,Wu=0,Su=0,Xu=!0,Pu=g.A.ytLoggingTransportGELQueue_||new Map;g.Ga("ytLoggingTransportGELQueue_",Pu,void 0);var Nu=g.A.ytLoggingTransportTokensToCttTargetIds_||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",Nu,void 0);var dv=g.A.ytLoggingGelSequenceIdObj_||{};g.Ga("ytLoggingGelSequenceIdObj_",dv,void 0);var hv=g.Ha("ytglobal.prefsUserPrefsPrefs_")||{};g.Ga("ytglobal.prefsUserPrefsPrefs_",hv,void 0);g.k=g.iv.prototype;g.k.get=function(a,b){mv(a);lv(a);a=void 0!==hv[a]?hv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){mv(a);lv(a);if(null==b)throw Error("ExpectedNotNull");hv[a]=b.toString()};
g.k.remove=function(a){mv(a);lv(a);delete hv[a]};
g.k.save=function(){var a=!0;g.Zr("web_secure_pref_cookie_killswitch")&&(a=!1);g.lt(this.i,this.dump(),63072E3,this.l,a)};
g.k.clear=function(){g.Sb(hv)};
g.k.dump=function(){var a=[],b;for(b in hv)a.push(b+"="+encodeURIComponent(String(hv[b])));return a.join("&")};
Ja(g.iv);var ov={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"},qv={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};uv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Oh(b))}catch(f){return}else e=escape(b);g.lt(a,e,c,this.l)};
uv.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.mt(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
uv.prototype.remove=function(a){this.i&&this.i.remove(a);g.nt(a,"/",this.l)};wv.prototype.toString=function(){return this.topic};var MJa=g.Ha("ytPubsub2Pubsub2Instance")||new g.cr;g.cr.prototype.subscribe=g.cr.prototype.subscribe;g.cr.prototype.unsubscribeByKey=g.cr.prototype.Wf;g.cr.prototype.publish=g.cr.prototype.X;g.cr.prototype.clear=g.cr.prototype.clear;g.Ga("ytPubsub2Pubsub2Instance",MJa,void 0);var zv=g.Ha("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ga("ytPubsub2Pubsub2SubscribedKeys",zv,void 0);var Bv=g.Ha("ytPubsub2Pubsub2TopicToKeys")||{};g.Ga("ytPubsub2Pubsub2TopicToKeys",Bv,void 0);
var Av=g.Ha("ytPubsub2Pubsub2IsAsync")||{};g.Ga("ytPubsub2Pubsub2IsAsync",Av,void 0);g.Ga("ytPubsub2Pubsub2SkipSubKey",null,void 0);var Ev=function(){var a;return function(){a||(a=new uv("ytidb"));return a}}();
Gv.prototype.isSupported=function(){return this.i};var Lv=[],Hv,Mv=!1;g.v(g.Pv,Error);var h2={},Uv=(h2.AUTH_INVALID="No user identifier specified.",h2.EXPLICIT_ABORT="Transaction was explicitly aborted.",h2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",h2.MISSING_OBJECT_STORE="Object store not created.",h2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",h2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",h2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",h2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",
h2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",h2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",h2),i2={},Iha=(i2.AUTH_INVALID="ERROR",i2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",i2.EXPLICIT_ABORT="IGNORED",i2.IDB_NOT_SUPPORTED="ERROR",i2.MISSING_OBJECT_STORE="ERROR",i2.DB_DELETED_BY_MISSING_OBJECT_STORE="WARNING",i2.QUOTA_EXCEEDED="WARNING",i2.QUOTA_MAYBE_EXCEEDED="WARNING",i2.UNKNOWN_ABORT="WARNING",i2.INCOMPATIBLE_DB_VERSION=
"WARNING",i2),j2={},Jha=(j2.AUTH_INVALID=!1,j2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,j2.EXPLICIT_ABORT=!1,j2.IDB_NOT_SUPPORTED=!1,j2.MISSING_OBJECT_STORE=!1,j2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,j2.QUOTA_EXCEEDED=!1,j2.QUOTA_MAYBE_EXCEEDED=!0,j2.UNKNOWN_ABORT=!0,j2.INCOMPATIBLE_DB_VERSION=!1,j2);g.v(Vv,g.Pv);g.v(Wv,Vv);var Kha=["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"];Yv.all=function(a){return new Yv(new Xv(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Bq:0};f.Bq<a.length;f={Bq:f.Bq},++f.Bq)Yv.resolve(a[f.Bq]).then(function(h){return function(l){d[h.Bq]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
Yv.resolve=function(a){return new Yv(new Xv(function(b,c){a instanceof Yv?a.then(b,c):b(a)}))};
Yv.reject=function(a){return new Yv(new Xv(function(b,c){c(a)}))};
Yv.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Nha,e=null!==b&&void 0!==b?b:Mha;return new Yv(new Xv(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){$v(c,c,d,f,h)}),c.onRejected.push(function(){aw(c,c,e,f,h)})):"FULFILLED"===c.state.status?$v(c,c,d,f,h):"REJECTED"===c.state.status&&aw(c,c,e,f,h)}))};
Yv.prototype.catch=function(a){return this.then(void 0,a)};g.k=ew.prototype;g.k.advance=function(a){this.cursor.advance(a);return fw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return fw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return fw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.BC=function(){return this.cursor.primaryKey};g.k=gw.prototype;g.k.add=function(a,b,c){return jw(this,[a],{mode:"readwrite",Ch:!0},function(d){return lw(d,a).add(b,c)})};
g.k.clear=function(a){return jw(this,[a],{mode:"readwrite",Ch:!0},function(b){return lw(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 jw(this,[a],{mode:"readonly",Ch:!0},function(c){return lw(c,a).count(b)})};
g.k.delete=function(a,b){return jw(this,[a],{mode:"readwrite",Ch:!0},function(c){return lw(c,a).delete(b)})};
g.k.get=function(a,b){return jw(this,[a],{mode:"readonly",Ch:!0},function(c){return lw(c,a).get(b)})};
g.k.getAll=function(a,b,c){return jw(this,[a],{mode:"readonly",Ch:!0},function(d){return lw(d,a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.k.getName=function(){return this.i.name};
g.k=hw.prototype;g.k.add=function(a,b){return cw(this.i.add(a,b))};
g.k.autoIncrement=function(){return this.i.autoIncrement};
g.k.clear=function(){return cw(this.i.clear()).then(function(){})};
g.k.count=function(a){return cw(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Rha(this,a):cw(this.i.delete(a))};
g.k.get=function(a){return cw(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?cw(this.i.getAll(a,b)):Sha(this,a,b)};
g.k.index=function(a){return new uw(this.i.index(a))};
g.k.getName=function(){return this.i.name};
g.k.keyPath=function(){return this.i.keyPath};
mw.prototype.abort=function(){this.i.abort();this.l=!0;throw new Vv("EXPLICIT_ABORT");};
g.k=uw.prototype;g.k.count=function(a){return cw(this.i.count(a))};
g.k.delete=function(a){return vw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return cw(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?cw(this.i.getAll(a,b)):Tha(this,a,b)};
g.k.getKey=function(a){return cw(this.i.getKey(a))};
g.k.keyPath=function(){return this.i.keyPath};
g.k.unique=function(){return this.i.unique};
g.k=ww.prototype;g.k.advance=function(a){this.cursor.advance(a);return rw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return rw(this.request)};
g.k.delete=function(){return cw(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.BC=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return cw(this.cursor.update(a))};zw.prototype.l=function(a,b,c){c=void 0===c?{}:c;return xw(a,b,c)};
zw.prototype.delete=function(a){a=void 0===a?{}:a;return yw(this.name,a)};
zw.prototype.open=function(){function a(){return g.D(c,function h(){var l=this,m,n,p,r,t;return g.z(h,function(u){switch(u.i){case 1:return ta(u,2),g.w(u,l.l(l.name,l.options.version,e),4);case 4:m=u.l;a:{var x=l.options;for(var y=g.q(Object.keys(x.fv)),B=y.next();!B.done;B=y.next()){B=B.value;var G=x.fv[B],H=void 0===G.sV?Number.MAX_VALUE:G.sV;if(m.i.version>=G.xl&&!(m.i.version>=H)&&!m.i.objectStoreNames.contains(B)){x=B;break a}}x=void 0}n=x;if(void 0===n){u.wb(5);break}if(l.u){u.wb(6);break}l.u=
!0;return g.w(u,l.delete(),7);case 7:return Nv(new Vv("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:l.name,xR:n})),u.return(a());case 6:throw new Wv(n);case 5:return u.return(m);case 2:p=va(u);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){u.wb(8);break}return g.w(u,l.l(l.name,void 0,Object.assign(Object.assign({},
e),{upgrade:void 0})),9);case 9:r=u.l;t=r.i.version;if(void 0!==l.options.version&&t>l.options.version+1)throw r.close(),l.B=!1,Aw(l,t);return u.return(r);case 8:throw b(),p;}})})}
function b(){c.i===d&&(c.i=void 0)}
var c=this;if(!this.B)throw Aw(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
closed:b,VV:b,upgrade:this.options.upgrade};return this.i=d=a()};var Bw=new zw("YtIdbMeta",{fv:{databases:{xl:1}},upgrade:function(a,b){b(1)&&iw(a,"databases",{keyPath:"actualName"})}});var Fw;new br;g.v(Jw,zw);Jw.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.Az?$ha:Zha)(a,b,Object.assign({},c))};
Jw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Az?bia:aia)(this.name,a)};var Lw;var Qw;var jia=$r("network_polling_interval",3E4);g.v(Sw,g.Jf);g.k=Sw.prototype;g.k.nj=function(){return this.i};
g.k.yR=function(a){this.l=!0;if(void 0===a?0:a)this.L||Vw(this)};
g.k.GC=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.TP=function(){this.V=!0};
g.k.Pa=function(a,b){return g.Jf.prototype.Pa.call(this,a,b)};
g.k.cq=function(a){var b=this;return this.u?this.u:this.u=new Promise(function(c){return g.D(b,function e(){var f,h,l,m=this;return g.z(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ta(n,2,3),f&&(m.I=g.ou(function(){f.abort()},a||2E4)),g.w(n,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:l=!0;case 3:wa(n);m.u=void 0;m.I&&g.tu(m.I);l!==m.i&&(m.i=l,m.i&&m.l?m.dispatchEvent("ytnetworkstatus-online"):m.l&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);xa(n,0);break;case 2:va(n),l=!1,n.wb(3)}})})})};
Sw.prototype.sendNetworkCheckRequest=Sw.prototype.cq;Sw.prototype.listen=Sw.prototype.Pa;Sw.prototype.enableErrorFlushing=Sw.prototype.TP;Sw.prototype.getWindowStatus=Sw.prototype.GC;Sw.prototype.monitorNetworkStatusChange=Sw.prototype.yR;Sw.prototype.isNetworkAvailable=Sw.prototype.nj;Sw.getInstance=Tw;g.v(Xw,g.Jf);Xw.prototype.nj=function(){var a=g.Ha("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
Xw.prototype.cq=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){return(e=g.Ha("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var gx=0,jx=0,kx,ix=g.A.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,isIdbSupported:!1,potentialEsfErrorCounter:jx};g.Zr("export_networkless_options")&&g.Ga("ytNetworklessLoggingInitializationOptions",ix,void 0);g.lx.prototype.isReady=function(){!this.config_&&tv()&&(this.config_=g.Zu());return!!this.config_};var mia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),oia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var px={};g.v(vx,g.E);vx.prototype.N=function(a,b,c,d,e){c=es((0,g.C)(c,d||this.Ra));c={target:a,name:b,callback:c};var f;e&&KJa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
vx.prototype.lc=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}};
vx.prototype.xa=function(){g.xx(this);g.E.prototype.xa.call(this)};g.Ta(g.Q,g.E);g.Q.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Gd.subscribe(a,b,c)};
g.Q.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Gd.unsubscribe(a,b,c)};
g.Q.prototype.Wf=function(a){return this.isDisposed()?!1:this.Gd.Wf(a)};
g.Q.prototype.X=function(a,b){return this.isDisposed()?!1:this.Gd.X.apply(this.Gd,arguments)};g.v(g.Bx,g.Q);g.k=g.Bx.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.X("dragend",0,0,null));this.l&&(this.l=!1,this.X("hoverend",0,0,null),g.xx(this.i),Ax(this))};
g.k.aK=function(a){g.xx(this.i);Cx(this,Dx("move"),this.YJ);Cx(this,Dx("out"),this.ZJ);Cx(this,"touchstart",this.eF);this.u&&Cx(this,Dx("down"),this.vD);var b=g.bu(a);a=eu(a);this.l=!0;this.X("hoverstart",a.x,a.y,b);this.X("hovermove",a.x,a.y,b)};
g.k.YJ=function(a){var b=g.bu(a);a=eu(a);if(this.C){var c=this.C;this.C=null;if(du(c)==b&&Sf(eu(c),a))return}this.X("hovermove",a.x,a.y,b)};
g.k.ZJ=function(a){var b=eu(a),c=du(a);try{if(c&&g.ug(this.I,c)){this.C=a;this.X("hovermove",b.x,b.y,c);return}}catch(d){}g.xx(this.i);Ax(this);this.l=!1;this.X("hoverend",b.x,b.y,c)};
g.k.AR=function(a){this.aK(a);this.vD(a)};
g.k.vD=function(a){if("number"!==typeof a.button||0==a.button){g.xx(this.i);this.i.N(document,Dx("move"),this.zR);this.i.N(document,Dx("up"),this.ER);var b=g.bu(a);if(g.jg)Cx(this,"dragstart",this.QP);else if(g.fu(a),(g.MG||Dl)&&b)a:{for(var c=b;c;){if(yg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=eu(a);this.X("dragstart",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)}};
g.k.QP=function(a){g.fu(a)};
g.k.zR=function(a){var b=g.bu(a);b==document&&(b=null);a=eu(a);this.X("hovermove",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)};
g.k.ER=function(a){g.xx(this.i);this.B=!1;var b=cu(a),c=g.bu(a);a=eu(a);b&&g.ug(this.I,b)?(Cx(this,Dx("move"),this.YJ),Cx(this,Dx("out"),this.ZJ),Cx(this,Dx("down"),this.vD),Cx(this,"touchstart",this.eF),this.X("dragend",a.x,a.y,c)):(Ax(this),this.l=!1,this.X("dragend",a.x,a.y,c),this.X("hoverend",a.x,a.y,c))};
g.k.eF=function(a){var b=a.changedTouches[0];b&&(g.xx(this.i),Cx(this,"touchmove",this.bW),Cx(this,"touchend",this.jM),Cx(this,"touchcancel",this.jM),this.J=b.identifier,a=g.bu(a),this.l||(this.l=!0,this.X("hoverstart",b.pageX,b.pageY,a)),this.X("hovermove",b.pageX,b.pageY,a),this.u&&(this.B=!0,this.X("dragstart",b.pageX,b.pageY,a),this.X("dragmove",b.pageX,b.pageY,a)))};
g.k.bW=function(a){var b=Ex(this,a);b&&(this.u&&g.fu(a),a=g.bu(a),this.X("hovermove",b.pageX,b.pageY,a),this.u&&this.X("dragmove",b.pageX,b.pageY,a))};
g.k.jM=function(a){var b=Ex(this,a);if(b){g.xx(this.i);Ax(this);this.l=!1;var c=g.bu(a);this.u&&(this.L||g.fu(a),this.B=!1,this.X("dragend",b.pageX,b.pageY,c));this.X("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.u&&(g.jg&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.xx(this.i);g.Q.prototype.xa.call(this)};Fx.prototype.clone=function(){var a=new Fx,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 ysa=["embedded_player"],NJa=["share/get_web_player_share_panel"],OJa=["feedback"],PJa=["notification/modify_channel_preference"],Pva=["offline"],Lva=["offline/get_playback_data_entity"],LDa=["player"],QJa=["browse/edit_playlist"],RJa=["subscription/subscribe"],SJa=["subscription/unsubscribe"],NDa=["next","unplugged/watch_next"];var Gx=Date.now().toString();var Tx,k2=g.A.ytLoggingDocDocumentNonce_;k2||(k2=Ix(),g.Ga("ytLoggingDocDocumentNonce_",k2,void 0));Tx=k2;var fpa={SM:0,MX:1,cY:2,G3:3,b_:4,u8:5,A4:6,u6:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var ria=1;Kx.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};
Kx.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Kx.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Ga("yt_logging_screen.getRootVeType",Ox,void 0);g.Ga("yt_logging_screen.getCurrentCsn",g.Rx,void 0);g.Ga("yt_logging_screen.getCttAuthInfo",Sx,void 0);g.Ga("yt_logging_screen.setCurrentScreen",Ux,void 0);var zia=[{sD:function(a){return"Cannot read property '"+a.key+"'"},
Wy:{Error:[{yg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{yg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{yg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{yg:/\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"]},{yg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{yg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{yg:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{sD:function(a){return"Cannot call '"+a.key+"'"},
Wy:{TypeError:[{yg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{yg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{yg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{yg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{yg:/\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"]},
{yg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{sD:function(a){return a.key+" is not defined"},
Wy:{ReferenceError:[{yg:/(.*) is not defined/,groups:["key"]},{yg:/Can't find variable: (.*)/,groups:["key"]}]}}];var wia={Vl:[],Gm:[{callback:uia,weight:500}]};var Vx;var Oy=new g.cr;var ey=new Set,dy=0,Aia=0,Py=0,yia=[],Bia=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.v(Qy,vv);var Yy=new wv("screen-created",Qy),Wy=[],epa=Dia,Xy=0;var TJa={LX:3611,xW:27686,zW:85013,BW:23462,EW:42016,FW:62407,GW:26926,DW:43781,IW:51236,JW:79148,KW:50160,LW:77504,fX:87907,gX:18630,iX:54445,jX:80935,oX:105675,pX:37521,qX:47786,sX:98349,tX:123695,xX:6827,yX:29434,JX:7282,KX:124448,UX:32276,TX:76278,VX:93911,XX:106531,YX:27259,ZX:27262,aY:27263,dY:21759,eY:27107,fY:62936,gY:49568,iY:38408,jY:80637,kY:68727,lY:68728,mY:80353,nY:80356,oY:74610,pY:45707,qY:83962,rY:83970,sY:46713,tY:89711,uY:74612,vY:93265,wY:74611,xY:128979,yY:128978,AY:113533,BY:93252,
CY:99357,EY:94521,FY:114252,GY:113532,HY:94522,DY:94583,IY:88E3,JY:93253,KY:93254,LY:94387,MY:94388,OY:93255,PY:97424,zY:72502,QY:110111,RY:76019,TY:117092,UY:117093,SY:89431,VY:110466,WY:77240,XY:60508,YY:105350,ZY:73393,aZ:113534,bZ:92098,cZ:84517,dZ:83759,eZ:80357,fZ:86113,gZ:72598,hZ:72733,iZ:107349,jZ:124275,kZ:118203,lZ:117431,mZ:117429,nZ:117430,oZ:117432,pZ:120080,qZ:117259,rZ:121692,sZ:97615,tZ:31402,uZ:84774,vZ:95117,wZ:98930,xZ:98931,yZ:98932,zZ:43347,AZ:129889,BZ:45474,CZ:100352,DZ:84758,
EZ:98443,FZ:117985,GZ:74613,HZ:74614,IZ:64502,JZ:74615,KZ:74616,LZ:122224,MZ:74617,NZ:77820,OZ:74618,PZ:93278,QZ:93274,RZ:93275,SZ:93276,TZ:22110,UZ:29433,YZ:120541,c_:82047,d_:113550,e_:75836,f_:75837,h_:42352,l_:84512,m_:76065,o_:75989,s_:16623,t_:32594,u_:27240,w_:32633,E_:74858,H_:3945,G_:16989,I_:45520,J_:25488,K_:25492,L_:25494,N_:55760,O_:14057,P_:18451,Q_:57204,R_:57203,S_:17897,T_:57205,U_:18198,V_:17898,W_:17909,X_:43980,Y_:46220,j0:11721,l0:49954,r0:96369,s0:3854,z0:56251,A0:25624,G0:16906,
H0:99999,J0:68172,K0:27068,N0:47973,O0:72773,P0:26970,Q0:26971,R0:96805,S0:17752,T0:73233,U0:109512,V0:22256,W0:14115,X0:22696,Y0:89278,Z0:89277,b1:109513,d1:43278,e1:43459,f1:43464,g1:89279,h1:43717,j1:55764,k1:22255,l1:89281,m1:40963,n1:43277,o1:43442,r1:91824,u1:120137,w1:96367,x1:36850,y1:72694,z1:37414,A1:36851,C1:124863,B1:121343,D1:73491,E1:54473,F1:43375,G1:46674,T1:32473,X1:72901,Y1:72906,Z1:50947,b2:50612,d2:50613,e2:50942,f2:84938,g2:84943,h2:84939,j2:84941,k2:84944,l2:84940,m2:84942,n2:35585,
o2:51926,q2:79983,r2:63238,s2:18921,t2:63241,u2:57893,v2:41182,w2:33424,x2:22207,y2:42993,z2:36229,A2:22206,B2:22205,C2:18993,D2:19001,E2:18990,F2:18991,G2:18997,H2:18725,I2:19003,J2:36874,K2:44763,L2:33427,M2:67793,N2:22182,O2:37091,P2:34650,Q2:50617,R2:47261,S2:22287,T2:25144,U2:97917,W2:62397,X2:125598,Y2:36961,Z2:108035,b3:27426,d3:27857,e3:27846,f3:27854,g3:69692,h3:61411,j3:39299,k3:38696,l3:62520,m3:36382,n3:108701,o3:50663,q3:36387,r3:14908,s3:37533,t3:105443,u3:61635,v3:62274,w3:65702,x3:65703,
y3:65701,z3:76256,B3:37671,C3:49953,J3:36216,K3:28237,L3:39553,M3:29222,N3:26107,O3:38050,P3:26108,R3:120745,Q3:26109,S3:26110,T3:66881,U3:28236,V3:14586,Z3:57929,b4:74723,d4:44098,e4:44099,f4:23528,g4:61699,h4:59149,i4:101951,j4:97346,k4:118051,l4:95102,m4:64882,n4:119505,o4:63595,p4:63349,q4:95101,r4:75240,s4:27039,t4:68823,u4:21537,v4:83464,w4:75707,x4:83113,y4:101952,z4:101953,B4:79610,E4:125755,F4:24402,G4:24400,H4:32925,I4:57173,K4:122502,L4:64423,M4:64424,N4:33986,O4:100828,P4:129089,Q4:21409,
d5:11070,e5:11074,f5:17880,g5:14001,i5:30709,j5:30707,k5:30711,l5:30710,m5:30708,h5:26984,n5:63648,o5:63649,r5:51879,w5:111059,y5:5754,z5:20445,D5:110386,F5:113746,G5:66557,M5:17310,N5:28631,P5:21589,Q5:68012,R5:60480,S5:31571,W5:76980,a6:41577,b6:45469,f6:38669,g6:13768,h6:13777,k6:62985,l6:4724,m6:59369,n6:43927,o6:43928,r6:12924,t6:100355,w6:56219,x6:27669,y6:10337,v6:47896,z6:122629,A6:121258,B6:107598,C6:127991,D6:96639,E6:107536,F6:130169,G6:96661,H6:96658,I6:116646,J6:121122,K6:96660,L6:127738,
M6:127083,N6:104443,O6:96659,P6:106442,T6:63667,U6:63668,V6:63669,W6:130686,b7:78314,e7:55761,f7:127098,j7:96368,k7:67374,l7:48992,o7:49956,s7:31961,t7:26388,y7:23811,z7:5E4,A7:126250,C7:96370,D7:47355,E7:47356,F7:37935,G7:45521,H7:21760,I7:83769,J7:49977,K7:49974,L7:93497,M7:93498,N7:34325,P7:115803,Q7:123707,R7:100081,S7:35309,T7:68314,U7:25602,V7:100339,X7:59018,Y7:18248,Z7:50625,a8:9729,b8:37168,c8:37169,d8:21667,e8:16749,f8:18635,g8:39305,h8:18046,j8:53969,k8:8213,m8:93926,p8:102852,q8:110099,
r8:22678,s8:69076,v8:100856,x8:17736,y8:3832,A8:55759,B8:64031,C8:93044,E8:93045,G8:34388,H8:17657,I8:17655,J8:39579,K8:39578,L8:77448,M8:8196,N8:11357,O8:69877,P8:8197,S8:82039};cz.prototype.clear=function(){this.l.clear();this.i.clear();this.u.clear()};
Ja(cz);var ez;g.dz=bb(function(){var a=new mr;return a.isAvailable()?new g.jr(a):null});
ez=bb(function(){var a=new nr;return a.isAvailable()?new g.jr(a):null});var Fia=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Gia=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,mz={};g.v(sz,g.E);g.v(zz,g.E);zz.prototype.RC=function(){var a=this.B().CC("SLOT_TYPE_PLAYER_BYTES",1),b=vz(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.q(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.rb&&d.Wb instanceof yz?d.Wb.Xn:void 0;e&&e===b&&(c&&R("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
zz.prototype.Bi=function(a,b,c,d,e,f){var h=this,l=vz(this.i.get(),1);l.No?this.Fa.get().Yo():(tz(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return wz(h.l.get(),d,e,a,b,f,l)}),NIa(this.oB))};
zz.prototype.Dk=function(){};var l2={},Nz=(l2.AD_MARKER="ytp-ad-progress",l2.CHAPTER_MARKER="ytp-chapter-marker",l2.TIME_MARKER="ytp-time-marker",l2);var OEa=/^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\/)/,Fz=/^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\/)/,
PEa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,Via=/^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|proxy\.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)|$))/,
Wia=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Tia=/^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|proxy\.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)|$))/,Oia=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)|(sandbox\.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|proxy\.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\/)/,
Pia=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,QEa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Sia=/^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)/,Mia=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)|(sandbox\.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|proxy\.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\/.*$)/,
Nia=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Qia=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.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)/,
Ska=/^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|proxy\.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|yt\-web\-embedded\-player\.appspot\.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)/,
Tka=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?(\/|$)/,UJa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/yt\-web\-embedded\-player\.appspot\.com|http\:\/\/yt\-web\-embedded\-player\.appspot\.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]+)?$|([A-Za-z0-9-]{1,63}\.)*proxy\.googlers\.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$)/,
VJa=/^(https\:\/\/plus\.google\.com)$/;var Dz=!1;g.Oz.prototype.getId=function(){return this.id};
g.Oz.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Pz(this.start)+", "+Pz(this.end)+"]"};
g.Oz.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 Xia=1;g.Oz.prototype.getId=g.Oz.prototype.getId;g.v(Tz,g.Oz);Tz.prototype.deactivate=function(){this.l=!0};
Tz.prototype.nu=function(){return this.end-this.start};var m2;var WJa=g.Uc,XJa=WJa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!XJa||2>XJa.length)m2=void 0;else{var n2=WJa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);m2=n2&&6==n2.length?Number(n2[5].replace("_",".")):0}var hI=m2,wO=0<=hI;wO&&0<=g.Uc.search("Safari")&&g.Uc.search("Version");g.v($z,vv);g.v(aA,vv);var $ia=new wv("aft-recorded",$z),VA=new wv("timing-sent",aA);var o2=window,dA=o2.performance||o2.mozPerformance||o2.msPerformance||o2.webkitPerformance||new Zia;var oA=!1,p2={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3/mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj"},dja=(0,g.C)(dA.clearResourceTimings||dA.webkitClearResourceTimings||dA.mozClearResourceTimings||dA.msClearResourceTimings||dA.oClearResourceTimings||g.Ia,dA);var wA=g.A.ytLoggingLatencyUsageStats_||{};g.Ga("ytLoggingLatencyUsageStats_",wA,void 0);uA.prototype.tick=function(a,b,c){xA(this,"tick_"+a+"_"+b)||g.Kv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
uA.prototype.info=function(a,b){var c=Object.keys(a).join("");xA(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Kv("latencyActionInfo",a))};
uA.prototype.span=function(a,b){var c=Object.keys(a).join("");xA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Kv("latencyActionSpan",a))};var q2={},FA=(q2.auto_search="LATENCY_ACTION_AUTO_SEARCH",q2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",q2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",q2.app_startup="LATENCY_ACTION_APP_STARTUP",q2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",q2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",q2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",q2.browse="LATENCY_ACTION_BROWSE",q2.channels="LATENCY_ACTION_CHANNELS",q2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",
q2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",q2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",q2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",q2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",q2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",q2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",q2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",q2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
q2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",q2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",q2.chips="LATENCY_ACTION_CHIPS",q2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",q2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",q2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",q2.embed="LATENCY_ACTION_EMBED",q2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",q2.entity_key_deserialization_perf=
"LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",q2.home="LATENCY_ACTION_HOME",q2.library="LATENCY_ACTION_LIBRARY",q2.live="LATENCY_ACTION_LIVE",q2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",q2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",q2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",q2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",q2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",q2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
q2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",q2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",q2.prebuffer="LATENCY_ACTION_PREBUFFER",q2.prefetch="LATENCY_ACTION_PREFETCH",q2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",q2.profile_switcher="LATENCY_ACTION_LOGIN",q2.reel_watch="LATENCY_ACTION_REEL_WATCH",q2.results="LATENCY_ACTION_RESULTS",q2.search_ui="LATENCY_ACTION_SEARCH_UI",q2.search_suggest="LATENCY_ACTION_SUGGEST",q2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",
q2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",q2.seek="LATENCY_ACTION_PLAYER_SEEK",q2.settings="LATENCY_ACTION_SETTINGS",q2.tenx="LATENCY_ACTION_TENX",q2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",q2.watch="LATENCY_ACTION_WATCH",q2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",q2["watch,watch7"]="LATENCY_ACTION_WATCH",q2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",q2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
q2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",q2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",q2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",q2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",q2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",q2["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",q2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",q2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
q2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",q2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",q2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",q2),r2={},BA=(r2.ad_allowed="adTypesAllowed",r2.yt_abt="adBreakType",r2.ad_cpn="adClientPlaybackNonce",r2.ad_docid="adVideoId",r2.yt_ad_an="adNetworks",r2.ad_at="adType",r2.aida="appInstallDataAgeMs",r2.browse_id="browseId",r2.p="httpProtocol",r2.t="transportProtocol",r2.cpn="clientPlaybackNonce",r2.ccs=
"creatorInfo.creatorCanaryState",r2.csn="clientScreenNonce",r2.docid="videoId",r2.GetHome_rid="requestIds",r2.GetSearch_rid="requestIds",r2.GetPlayer_rid="requestIds",r2.GetWatchNext_rid="requestIds",r2.GetBrowse_rid="requestIds",r2.GetLibrary_rid="requestIds",r2.is_continuation="isContinuation",r2.is_nav="isNavigation",r2.b_p="kabukiInfo.browseParams",r2.is_prefetch="kabukiInfo.isPrefetch",r2.is_secondary_nav="kabukiInfo.isSecondaryNav",r2.prev_browse_id="kabukiInfo.prevBrowseId",r2.query_source=
"kabukiInfo.querySource",r2.voz_type="kabukiInfo.vozType",r2.yt_lt="loadType",r2.mver="creatorInfo.measurementVersion",r2.yt_ad="isMonetized",r2.nr="webInfo.navigationReason",r2.nrsu="navigationRequestedSameUrl",r2.ncnp="webInfo.nonPreloadedNodeCount",r2.pnt="performanceNavigationTiming",r2.prt="playbackRequiresTap",r2.plt="playerInfo.playbackType",r2.pis="playerInfo.playerInitializedState",r2.paused="playerInfo.isPausedOnLoad",r2.yt_pt="playerType",r2.fmt="playerInfo.itag",r2.yt_pl="watchInfo.isPlaylist",
r2.yt_pre="playerInfo.preloadType",r2.yt_ad_pr="prerollAllowed",r2.pa="previousAction",r2.yt_red="isRedSubscriber",r2.rce="mwebInfo.responseContentEncoding",r2.scrh="screenHeight",r2.scrw="screenWidth",r2.st="serverTimeMs",r2.ssdm="shellStartupDurationMs",r2.br_trs="tvInfo.bedrockTriggerState",r2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",r2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",r2.label="tvInfo.label",r2.is_mdx="tvInfo.isMdx",r2.preloaded="tvInfo.isPreloaded",r2.upg_player_vis=
"playerInfo.visibilityState",r2.query="unpluggedInfo.query",r2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",r2.yt_vst="videoStreamType",r2.vph="viewportHeight",r2.vpw="viewportWidth",r2.yt_vis="isVisible",r2.rcl="mwebInfo.responseContentLength",r2.GetSettings_rid="requestIds",r2.GetTrending_rid="requestIds",r2.GetMusicSearchSuggestions_rid="requestIds",r2.REQUEST_ID="requestIds",r2),bja="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(" "),
s2={},CA=(s2.ccs="CANARY_STATE_",s2.mver="MEASUREMENT_VERSION_",s2.pis="PLAYER_INITIALIZED_STATE_",s2.yt_pt="LATENCY_PLAYER_",s2.pa="LATENCY_ACTION_",s2.yt_vst="VIDEO_STREAM_TYPE_",s2),cja="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 t2=window;t2.ytcsi&&(t2.ytcsi.info=g.MA,t2.ytcsi.tick=NA);var wma={g_:1,v_:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var bU=16/9,YJa=[.25,.5,.75,1,1.25,1.5,1.75,2],ZJa=YJa.concat([3,4,5,6,7,8,9,10,15]);YA.prototype.getLanguageInfo=function(){return this.Nc};
YA.prototype.toString=function(){return this.Nc.name};
YA.prototype.getLanguageInfo=YA.prototype.getLanguageInfo;var u2,dB;u2={};g.aB=(u2.auto=0,u2.tiny=144,u2.light=144,u2.small=240,u2.medium=360,u2.large=480,u2.hd720=720,u2.hd1080=1080,u2.hd1440=1440,u2.hd2160=2160,u2.hd2880=2880,u2.highres=4320,u2);dB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};ZA.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i};
ZA.prototype.compose=function(a){if(a.u&&cB(a))return uH;if(a.u||cB(this))return a;if(this.u||cB(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 ZA(b,c,!1,c===this.i?this.reason:a.reason)};
ZA.prototype.B=function(a){return a.video?fB(this,a.video.quality):!1};
var $Ja=bB("auto","hd1080",!1,"l"),XAa=bB("auto","large",!1,"l"),uH=bB("auto","auto",!1,"p");bB("small","auto",!1,"p");gB.prototype.Tm=function(a){a=a||uH;for(var b=g.Ro(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].ib();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
gB.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var wB={p0:function(a){a.reverse()},
Qq:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
dk:function(a,b){a.splice(0,b)}};g.yB.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.yB.prototype.get=function(a){AB(this);return this.i[a]||null};
g.yB.prototype.clone=function(){var a=new g.yB(this.l,this.C);a.u=this.u;a.path=this.path;a.B=this.B;a.i=g.Vb(this.i);a.url=this.url;return a};g.k=JB.prototype;g.k.uA=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.ej(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ka:-1};
g.k.getIngestionTime=function(a){return(a=this.ej(a))?a.ingestionTime:NaN};
g.k.getStitchedVideoInfo=function(a){return(a=this.ej(a))?a.i:null};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ka:-1};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.wr(a))?a.Ka:-1};
g.k.getSegmentURL=function(a){return(a=this.ej(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.ej(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.ej(a))?a.l:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.ej=function(a){a=g.xb(this.segments,new IB(a,0,0,0,""),function(b,c){return b.Ka-c.Ka});
return 0<=a?this.segments[a]:null};
g.k.wr=function(a){a=g.xb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.rb(a),this.segments.length){var b=this.segments.length?g.db(this.segments).endTime:0,c=a[0].Ka-this.getLastSegmentNumber();1<c&&lb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};var tR=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}();g.k=OB.prototype;g.k.xg=function(){var a=this.data.getUint8(this.offset+this.Zb);this.Zb+=1;return a};
g.k.Mk=function(){var a=this.data.getUint16(this.offset+this.Zb);this.Zb+=2;return a};
g.k.Ze=function(){var a=this.data.getInt32(this.offset+this.Zb);this.Zb+=4;return a};
g.k.Jc=function(){var a=this.data.getUint32(this.offset+this.Zb);this.Zb+=4;return a};
g.k.gs=function(){var a=this.data;var b=this.offset+this.Zb;a=4294967296*a.getUint32(b)+a.getUint32(b+4);this.Zb+=8;return a};
g.k.bf=function(a){a=void 0===a?NaN:a;if(isNaN(a))var b=this.size;else for(b=this.Zb;b<this.size&&this.data.getUint8(this.offset+b)!==a;)++b;a=new Uint8Array(this.data.buffer,this.offset+this.Zb+this.data.byteOffset,b-this.Zb);this.Zb=Math.min(b+1,this.size);return NB(a)};
g.k.skip=function(a){this.Zb+=a};
g.k.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};
g.k.setUint32=function(a,b){this.data.setUint32(this.offset+a,b)};var v2={},aKa=(v2.predictStart="predictStart",v2.start="start",v2["continue"]="continue",v2.stop="stop",v2),nja={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var iC=!1;jC.prototype.bf=function(){var a=oC(this,!0);return NB(vC(this,a))};AC.prototype.set=function(a,b){this.Ah.get(a);this.i[a]=b;this.url=""};
AC.prototype.get=function(a){return this.i[a]||this.Ah.get(a)};GC.prototype.lj=function(a,b){a.Ah===this.i&&(this.i=DC(a,b));a.Ah===this.u&&(this.u=DC(a,b))};KC.prototype.Me=function(){return!!this.i&&this.index.isLoaded()};
KC.prototype.Vs=function(){return!1};
KC.prototype.SF=function(a){return[a]};
KC.prototype.Mv=function(a){return[a]};MC.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};SC.prototype.Ak=function(){return this.i.info.Ak()};
SC.prototype.isVideo=function(){return!!this.i.info.video};aD.prototype.yr=function(){return this.u?zB(this.u):""};
aD.prototype.ai=function(){return TC(this.i[0])};
aD.prototype.lj=function(a,b){this.l.lj(a,b);if(this.u){this.u=DC(a,b);b=g.q(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.v(gD,KC);g.k=gD.prototype;g.k.Ng=function(){return!1};
g.k.Ou=function(){return!1};
g.k.Vs=function(){return!this.V};
g.k.np=function(){var a=new SC(1,this,this.initRange,"getMetadataRequestInfo");return new aD([a],this.V)};
g.k.Fq=function(){return null};
g.k.Us=function(a){this.wm(a);return this.xm(a.Rd?a.Ka+1:a.Ka,!1)};
g.k.Ym=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.tc()||this.info.tc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.xm(a,!0)};
g.k.MC=function(a){this.i=new Uint8Array(GD(a).buffer)};
g.k.wm=function(a){return 0===a.l?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.update=function(a,b,c){this.index.append(a);KB(this.index,c);this.J=b};
g.k.Me=function(){return this.Vs()?!0:KC.prototype.Me.call(this)};
g.k.xm=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Ib?this.info.Ib*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.J&&0<f;a=new SC(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new aD([a],c)};
g.k.xC=function(){return this.Vs()?0:this.initRange.length};
g.k.ZD=function(){return!1};lD.prototype.update=function(a,b){var c=void 0;this.l&&(c=this.l);var d=new lD,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+hD(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+hD(a,"startNumber")||0;d.B=h;var m=h,n=+hD(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(kD(hD(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.J=hD(a,"media"));a=c?l-c.Ka:1;d.I=0<a?0:-a+1;a=g.q(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,r=+e.getAttribute("r")||0,t=0;t<=r;t++)if(c&&l<=c.Ka)l++;else{var u=new Aja(l,b,n,m+p,h);d.i.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=-u/f+x;y=Number(y)/f;var B=e.getAttribute("yt:cuepointContext")||null,G=e.getAttribute("yt:cuepointIdentifier")||"";var H=e.getAttribute("yt:cuepointEvent")||"";H=aKa[H]||"unknown";u=new Az(x,y,B,G,
H,u)}else u=null;u&&d.u.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.l=g.db(d.i))}this.I=d.I;this.l=d.l||this.l;sb(this.i,d.i);sb(this.u,d.u);this.C=d.C;this.J=d.J;-1===this.B&&(this.B=d.getStreamTimeOffset())};
lD.prototype.getStreamTimeOffset=function(){return-1===this.B?0:this.B};g.v(mD,JB);g.k=mD.prototype;g.k.getFirstSegmentNumber=function(){return this.fk?this.segments.length?this.wr(this.getMinSeekableTime()).Ka:-1:JB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.Xe)return 0;if(!this.fk)return JB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.db(this.segments).endTime-this.Fl,0);return 0<this.je&&this.wr(a).Ka<this.je?this.ej(this.je).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return JB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.fk||a<=this.segments[this.segments.length-1].Ka)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new IB(a,Math.max(0,b.startTime-(b.Ka-a)*this.Cg),this.Cg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.l&&a.pending&&3===this.l?this.Xe?Math.min(this.Fl,a.startTime):a.startTime:this.Xe?Math.min(this.Fl,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.fk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:JB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.jg,Math.max(JB.prototype.getLastSegmentNumber.call(this),this.Ws)),b=1E3*this.Fl;b=0<this.i&&this.i<b;this.Xe&&0<this.Fl&&0<this.Ws&&!b&&(b=this.wr(this.Fl))&&(a=Math.min(b.Ka-1,a));return a};
g.k.Br=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.uA=function(a){var b=nD(this,a.Ka);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Uu&&0===a.Ka%(300/this.Cg)){var c=this.segments[0].Ka,d=Math.floor(this.Uu/this.Cg);a=a.Ka-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.wr=function(a){if(!this.fk)return JB.prototype.wr.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].Ka-Math.ceil((this.segments[0].startTime-a)/this.Cg));else if(a>=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.Cg+1);else{b=yb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ka-b.Ka-1))+1)+b.Ka}return this.ej(b)};
g.k.ej=function(a){if(!this.fk)return JB.prototype.ej.call(this,a);if(!this.segments.length)return null;var b=nD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Cg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ka-d.Ka-1),d=d.endTime+(a-d.Ka-1)*b);return new IB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(pD,gD);g.k=pD.prototype;g.k.Ou=function(){return!0};
g.k.Me=function(){return!0};
g.k.wm=function(a){return!a.u};
g.k.np=function(){};
g.k.Ym=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?gD.prototype.Ym.call(this,a,b):(a=new SC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Oi,void 0,this.Oi*this.info.Ib),new aD([a],""))};
g.k.xm=function(a,b){var c=void 0===c?!1:c;if(oD(this.index,a))return gD.prototype.xm.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Oi*this.info.Ib;b=!b;c=new SC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.J&&0<e,b);return new aD([c],0<=a?"sq/"+a:"")};g.v(qD,KC);g.k=qD.prototype;g.k.Ng=function(){return!1};
g.k.Ou=function(){return!1};
g.k.np=function(){var a=new SC(1,this,void 0,"otfInit");return new aD([a],this.J)};
g.k.Fq=function(){return null};
g.k.Us=function(a){this.wm(a);return rD(this,a.Ka+(a.Rd?1:0),!1)};
g.k.Ym=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return rD(this,a,!0)};
g.k.MC=function(a){1===a.info.type&&(this.i||(this.i=CD(a.i)),a.l&&"http://youtube.com/streaming/otf/durations/112015"===a.l.uri&&Ija(this,a.l))};
g.k.wm=function(a){return 0===a.l?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.xC=function(){return 0};
g.k.ZD=function(){return!1};g.k=sD.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.i[a]/this.u};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getStitchedVideoInfo=function(){return null};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.u:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.l?this.i[a+1]-this.i[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.l?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.getMaxKnownEndTime=function(){return this.l?this.i[this.count]/this.u:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.l?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.xb(this.i.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));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.setTimebase=function(a){this.u=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.l=!0};
g.k.addSegmentBySize=function(a,b){this.count++;tD(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){tD(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.k.cap=function(a,b){tD(this);this.l=!0;this.i[this.count]=b;this.offsets[this.count]=a};uD.prototype.append=function(a){if(vD(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);xD(this)}else this.i.push(a);this.totalLength+=a.length};
uD.prototype.split=function(a){for(var b=new uD,c=new uD,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{Lx:b,oq:c}};
uD.prototype.isFocused=function(a){return a>=this.u&&a<this.u+this.i[this.l].length};
uD.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.u&&xD(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}};FD.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=GD(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.zb)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=GD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.zb)return 524531317===c||440786851===c}return!0};g.v(RD,KC);g.k=RD.prototype;g.k.np=function(a){var b=new SC(1,this,this.initRange,"initInfo"),c=new SC(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=OC(c,a),b.push(new SC(4,this,a,"tbdRange"))));return new aD(b)};
g.k.MC=function(a){if(1===a.info.type){if(this.i)return;this.i=CD(a.i)}else if(2===a.info.type){if(this.J||0<=this.index.getLastSegmentNumber())return;if(g.KD(this.info)){var b=this.index,c=GD(a);a=a.info.range.start;var d=g.WB(c,0,1936286840);c=eC(d);b.setTimebase(c.WE);b.setFirstSegmentStart(c.dQ+a+d.size,c.SP);a=c.RE.length;for(d=0;d<a;d++)b.addSegmentBySize(c.nV[d],c.RE[d])}else this.J=GD(a)}if(this.info.Oe()&&this.i&&this.J){a=new DataView(this.i.buffer);b=this.index;d=this.J;c=this.indexRange.end;
var e=new jC(a);a=e;e=a.i;var f={fM:1E6,gM:1E9,duration:0,HL:0,wE:0};if(nC(a,408125543))if(f.HL=oC(a,!0),f.wE=a.start+a.i,nC(a,357149030)){for(var h=mC(a);!kC(h);){var l=oC(h,!1);2807729===l?f.fM=sC(h):2807730===l?f.gM=sC(h):17545===l?f.duration=uC(h):tC(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.gM/a.fM);e=new jC(d);d=e;h=a.wE;e=d.i;f=[];if(nC(d,475249515)){for(l=mC(d);nC(l,187);){var m=mC(l);if(nC(m,179)){var n=sC(m);if(nC(m,183)){m=mC(m);for(var p=h;nC(m,241);)p=
sC(m)+h;f.push({Ww:p,JP:n})}}}if(0<f.length&&c===f[0].Ww)for(c=0;c<f.length;c++)f[c].Ww+=1;d.i=e;c=f}else d.i=e,c=null;if(null!==c){c=g.q(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.Ww,d.JP);b.cap(a.HL+a.wE,a.duration)}}this.J=null}};
g.k.SF=function(a){for(var b=this.Mv(a.info),c=a.info.range.start+a.info.zb,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].zb-c).oq.split(h).Lx;e.push(new FD(b[f],h,d));d=!1}return e};
g.k.Mv=function(a){for(var b=a.range.start+a.zb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return SD(this,c,b,a.l).i};
g.k.wm=function(a){return this.Me()?!0:a.range.end+1<this.info.contentLength};
g.k.Fq=function(a,b){this.wm(a);if(!this.Me())return b=OC(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new MC(b.start,this.info.contentLength-1)),a=[new SC(4,a.i,b,"getNextRequestInfoByLength")],new aD(a);4===a.type&&(a=this.Mv(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.l;3===a.type&&(c=a.Ka,d===a.range.end+1&&(c+=1));return SD(this,c,d,b)};
g.k.Us=function(){return null};
g.k.Ym=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return SD(this,a,this.index.getOffset(a),0)};
g.k.Ng=function(){return!0};
g.k.Ou=function(){return!1};
g.k.xC=function(){return this.indexRange.length+this.initRange.length};
g.k.ZD=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var w2={},nB=(w2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},w2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},w2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},w2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},w2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},w2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},w2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},w2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},w2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},w2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},w2);var Z={},YD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]=
"o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]=
"(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var WD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");VD.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=ZD.prototype;g.k.ib=function(){return this.video};
g.k.tc=function(){return this.id.split(";",1)[0]};
g.k.Oe=function(){return 2===this.containerType};
g.k.Ak=function(){return!!this.Yd};
g.k.xn=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};fE.prototype.getName=function(){return this.name};
fE.prototype.getId=function(){return this.id};
fE.prototype.getIsDefault=function(){return this.isDefault};
fE.prototype.toString=function(){return this.name};
fE.prototype.getName=fE.prototype.getName;fE.prototype.getId=fE.prototype.getId;fE.prototype.getIsDefault=fE.prototype.getIsDefault;g.v(uE,g.Q);g.k=uE.prototype;g.k.appendBuffer=function(a,b,c){if(this.md.sx()!==this.appendWindowStart+this.start||this.md.nC()!==this.appendWindowEnd+this.start||this.md.Qc()!==this.timestampOffset+this.start)this.md.supports(1),this.md.AE(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.md.ys(this.timestampOffset+this.start);this.md.appendBuffer(a,b,c)};
g.k.abort=function(){this.md.abort()};
g.k.remove=function(a,b){this.md.remove(a+this.start,b+this.start)};
g.k.AE=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.DC=function(){return this.timestampOffset+this.start};
g.k.sx=function(){return this.appendWindowStart};
g.k.nC=function(){return this.appendWindowEnd};
g.k.ys=function(a){this.timestampOffset=a};
g.k.Qc=function(){return this.timestampOffset};
g.k.jf=function(a){a=this.md.jf(void 0===a?!1:a);return tE(a,this.start,this.end)};
g.k.hg=function(){return this.md.hg()};
g.k.jp=function(){return this.md.jp()};
g.k.wx=function(){return this.md.wx()};
g.k.nF=function(a,b){this.md.nF(a,b)};
g.k.supports=function(a){return this.md.supports(a)};
g.k.xx=function(){return this.md.xx()};
g.k.isView=function(){return!0};
g.k.jw=function(a,b,c){return this.isActive?this.md.jw(a,b,c):!1};
g.k.AB=function(){return this.md.AB()?this.isActive:!1};
g.k.isLocked=function(){return this.ow&&!this.isActive};
g.k.Eb=function(a){return this.md.Eb(a)+(";vw."+this.start+"-"+this.end)};
g.k.pu=function(){return this.md.pu()};
g.k.xa=function(){zx(this.md,this.YI);g.Q.prototype.xa.call(this)};var ZU=!1;g.v(yE,g.Q);g.k=yE.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Nw=!1;c&&(this.by=c);b&&(b.Ak()&&(this.BJ=this.by),3===b.type&&(this.Pe=b));(null===(d=this.Qb)||void 0===d?0:d.appendBuffer)?this.Qb.appendBuffer(a):this.Qb?this.Qb.append(a):this.Ee&&this.Ee.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Qb?this.Qb.abort():this.Ee&&this.Ee.webkitSourceAbort(this.id)}catch(a){}this.by=this.Pe=null};
g.k.remove=function(a,b){var c;this.Nw=!1;(null===(c=this.Qb)||void 0===c?0:c.remove)&&this.Qb.remove(a,b)};
g.k.sx=function(){var a;return ZU&&this.isVideo?this.appendWindowStart:(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.nC=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.AE=function(a,b){this.Qb&&(ZU&&this.isVideo?(this.appendWindowStart=a,this.Qb.appendWindowEnd=b):a>this.sx()?(this.Qb.appendWindowEnd=b,this.Qb.appendWindowStart=a):(this.Qb.appendWindowStart=a,this.Qb.appendWindowEnd=b))};
g.k.DC=function(){return this.timestampOffset};
g.k.ys=function(a){ZU?this.timestampOffset=a:this.supports(1)&&(this.Qb.timestampOffset=a)};
g.k.Qc=function(){return ZU?this.timestampOffset:this.supports(1)?this.Qb.timestampOffset:0};
g.k.jf=function(a){if(void 0===a?0:a)return this.Nw||this.hg()||(this.DH=this.jf(!1),this.Nw=!0),this.DH;try{return this.Qb?this.Qb.buffered:this.Ee?this.Ee.webkitSourceBuffered(this.id):mE([0],[Infinity])}catch(b){return mE([],[])}};
g.k.hg=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.updating)||!1};
g.k.jp=function(){return this.by};
g.k.wx=function(){return this.BJ};
g.k.nF=function(a,b){this.containerType!==a&&(this.supports(4),zE()&&this.Qb.changeType(b));this.containerType=a};
g.k.xx=function(){return this.Pe};
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.Qb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Qb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Qb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Qb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Qb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Qb||!this.Qb.changeType);default:return!1}};
g.k.AB=function(){return!this.hg()};
g.k.isLocked=function(){return!1};
g.k.Eb=function(a){var b,c;a.to=""+this.Qc();a.up=""+ +this.hg();var d=(null===(b=this.Qb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Qb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=nE(this.jf())}catch(f){}return g.wE(a)};
g.k.xa=function(){this.supports(3)&&(this.Qb.removeEventListener("updateend",this.qe),this.Qb.removeEventListener("error",this.qe));g.Q.prototype.xa.call(this)};
g.k.jw=function(a,b,c){if(!this.supports(2)||this.hg())return!1;var d=this.jf(),e=oE(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.ma();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.ma(),this.remove(0,l),!0}catch(m){}return!1};
g.k.ma=function(){};
g.k.pu=function(){return this.containerType};AE.prototype.dispose=function(){if(!this.isDisposed){if(this.l)try{URL.revokeObjectURL(this.i)}catch(a){}this.u=!0}};
AE.prototype.isDisposed=function(){return this.u};
AE.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.v(BE,g.E);g.k=BE.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.u};
g.k.Bj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.u=a,this.Ee.webkitSourceSetDuration(a))}catch(b){}};
g.k.mf=function(){try{return"closed"===EE(this)}catch(a){return!0}};
g.k.hg=function(){return!!(this.i&&this.i.hg()||this.l&&this.l.hg())};
g.k.zU=function(){!this.isDisposed()&&CE(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.yU=function(){this.dispose()};var Oja=/action_display_post/;var JE;g.v(KE,g.Q);g.k=KE.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.eV=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.ji=this.u=!0;this.timeline||(this.timeline=new Cja);Gja(this.timeline,a,this.Ua);this.X("refresh");for(a=0;a<c.length;a++){var d=aka(this,c[a]),e=this.isLive&&g.KD(d)&&this.Ya;if(!this.i[d.id]){var f=QE(iD(c[a],"BaseURL").textContent),h=iD(c[a],"Initialization"),l=hD(h,"sourceURL");h=NC(hD(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new gD(f,d,l,h)}d=this.i[d.id];f=hD(c[a],"id","AdaptationSet");f=""!==f?f:hD(c[a],"mimetype","AdaptationSet");l=this.timeline;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.Ib,p=h.Ka,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 IB(h.Ka,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.l))}else{l=tb(iD(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 u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var x=u.split("-");x[1]&&0<=Number(x[1])?t=NC(u):b=b+"?range="+u}p.call(n,new IB(r.Ka,r.startSecs,r.durationSecs,r.i,b,t,r.l))}e=h}d.update(e,this.isLive,this.Ga)}Hja(this.timeline);
return!0}this.duration=jD(hD(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=aka(this,f);e=QE(iD(f,"BaseURL").textContent);l=iD(f,"SegmentBase");f=NC(l.attributes.getNamedItem("indexRange").value);l=NC(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new RD(e,d,l,f);if(!d){c=!1;break a}OE(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.ui(this.sourceUrl,{start_seq:eka(this).toString()});g.bh(cka(this,a),function(){})}};
g.k.resume=function(){bka(this)};
g.k.cd=function(){if(this.isManifestless&&this.L&&VE(this))return VE(this);var a=this.i,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.I&&(b=!0),h=h.getMaxKnownEndTime(),f.info.xn()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(WE(this))return WE(this);if(this.J){var a=this.getIngestionTime(this.cd());if(a&&(a-=this.J,0<a))return this.cd()-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.l};
g.k.getIngestionTime=function(a){for(var b in this.i){var c=this.i[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var RE=null,SE=!1,$ja={commentary:1,alternate:2,dub:3,main:4};$E.prototype.Nk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.u+=a;var d=a/b;ZE.forEach(function(e,f){d<e||(c.l[f]+=b)})};
$E.prototype.toString=function(){return""};
var ZE=[20,100,500,2E3];g.k=lka.prototype;g.k.isActive=function(){return!0};
g.k.Qx=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.fA=a.prototype[e],d.hA=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.P)();l=f.fA.apply(this,l);aF(c,f.hA,(0,g.P)()-m);return l}}(d)),d={fA:d.fA,
hA:d.hA}}};
g.k.Yc=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.P)();e=b.apply(null,e);aF(c,a,(0,g.P)()-f);return e}};
g.k.Wv=function(a){return new kka(a)};
g.k.au=function(a,b){b=void 0===b?1:b;a instanceof kka&&(aF(this,a.name,(0,g.P)()-a.startTimeMs,b),a.i=!0)};
g.k.jE=function(a,b){var c=void 0===c?1:c;var d=(0,g.P)();b();aF(this,a,(0,g.P)()-d,c)};
g.k.sI=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<ZE.length;++e)if(0<c.l[e])d+="."+ZE[e].toString()+"_"+Math.round(c.l[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}this.profiles=new jka;return a};
g.k.toString=function(){return""};g.k=bF.prototype;g.k.isActive=function(){return!1};
g.k.Qx=function(){};
g.k.Yc=function(a,b){return b};
g.k.Wv=function(){};
g.k.au=function(){};
g.k.jE=function(a,b){b()};
g.k.sI=function(){return""};
g.k.toString=function(){return""};var bKa,x2,qX;bKa=new bF;x2=Xr("html5_enable_profiler")||Xr("html5_onesie_enable_profiler")?new lka:new bF;g.jT=Xr("html5_enable_profiler")?x2:bKa;qX=Xr("html5_onesie_enable_profiler")?x2:bKa;var XEa,oEa,Gka,Dka,Oka,YDa,EF,Mza,Nka,yBa,cF,rW,ZDa,cKa,yEa,Uua,Tua,aFa,dKa,eKa,Nza,Rza,fKa,JEa,IEa,pka;XEa=g.jT.Yc("plssv",function(a){a.unstorable||(g.fz("yt-player-volume",a),g.fz("yt-player-volume",a,2592E3))});
oEa=g.jT.Yc("plsgv",function(){var a=g.gz("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Nf(Math.floor(b),0,100),muted:!!a.muted}});
Gka=g.jT.Yc("plssbs",function(a){g.fz("yt-player-bandwidth",a,2592E3)});
Dka=g.jT.Yc("plsgbs",function(){return g.gz("yt-player-bandwidth")||{}});
Oka=g.jT.Yc("plswm",function(a,b){var c={};c.values=a;c.halfLives=b;g.fz("yt-player-memory",c,2592E3)});
YDa=g.jT.Yc("plssq",function(a,b){g.fz("yt-player-quality",{quality:a,previousQuality:b},31104E3)});
EF=g.jT.Yc("plsgq",function(a){a=void 0===a?2592E3:a;if(0<a&&!(hz()>(0,g.P)()-1E3*a))return 0;a=g.gz("yt-player-quality");if("string"===typeof a){if(a=g.aB[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0});
Mza=g.jT.Yc("plshsq",function(){return 0<EF()});
Nka=g.jT.Yc("plslm",function(){var a={values:{},Ll:{}};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});
yBa=g.jT.Yc("plsspc",function(a,b,c){var d=rW();a=nka(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!==c&&(d[a]=c,g.fz("yt-player-performance-cap",d,604800))});
cF=g.jT.Yc("plsgpc",function(a,b){return+rW()[nka(a,b)]||8192});
rW=g.jT.Yc("plsgrpd",function(){return g.gz("yt-player-performance-cap")||{}});
ZDa=g.jT.Yc("plscpc",function(a){if(a){a=rW();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.fz("yt-player-performance-cap",a,604800)}else g.iz("yt-player-performance-cap")});
cKa=g.jT.Yc("plsspr",function(a){g.fz("yt-player-playback-rate",a)});
yEa=g.jT.Yc("plsgpr",function(){return Number(g.gz("yt-player-playback-rate"))||1});
Uua=g.jT.Yc("plsswlp",function(a){g.fz("yt-player-watch-later-pending",a)});
Tua=g.jT.Yc("plsgwlp",function(){return g.gz("yt-player-watch-later-pending")});
aFa=g.jT.Yc("plssas",function(a){g.fz("yt-player-autonavstate",a)});
dKa=g.jT.Yc("plsgas",function(){return g.gz("yt-player-autonavstate")});
eKa=g.jT.Yc("plsshr",function(a){g.fz("yt-player-headers-readable",a,2592E3)});
Nza=g.jT.Yc("plsghr",function(){return!!g.gz("yt-player-headers-readable")});
Rza=g.jT.Yc("plssrbh",function(a){g.fz("yt-player-bandaid-host",a,864E3)});
fKa=g.jT.Yc("plsgrbh",function(){return g.gz("yt-player-bandaid-host")});
JEa=g.jT.Yc("plsspor",function(a){g.fz("yt-player-playback-on-reload",a)});
IEa=g.jT.Yc("plsgpor",function(){return g.gz("yt-player-playback-on-reload")});
pka=g.jT.Yc("plsgaup",function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}});
g.gKa=g.jT.Yc("plssscp",function(a){g.fz("yt-player-sticky-caption",a,2592E3)});
g.vsa=g.jT.Yc("plssscp",function(){return g.gz("yt-player-sticky-caption")});
g.hKa=g.jT.Yc("plssclp",function(a){g.fz("yt-player-caption-language-preferences",a)});
g.usa=g.jT.Yc("plsgclp",function(){var a=g.gz("yt-player-caption-language-preferences");return a?a:[]});fF.prototype.clone=function(a){return new fF(this.flavor,a,this.B,this.experiments)};
fF.prototype.Eb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
fF.prototype.kf=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 y2={},nF=(y2.playready=["com.youtube.playready","com.microsoft.playready"],y2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],y2),z2={},LAa=(z2.widevine="DRM_SYSTEM_WIDEVINE",z2.fairplay="DRM_SYSTEM_FAIRPLAY",z2.playready="DRM_SYSTEM_PLAYREADY",z2),A2={},iKa=(A2.widevine=1,A2.fairplay=2,A2.playready=3,A2);g.v(oF,g.E);
oF.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.Yd)for(var h=g.q(Object.keys(f.Yd)),l=h.next();!l.done;l=h.next())if(l=l.value,nF[l])for(var m=g.q(nF[l]),n=m.next();!n.done;n=m.next())n=n.value,this.l[n]=this.l[n]||new fF(l,n,f.Yd[l],this.experiments),this.B[l]=this.B[l]||{},this.B[l][f.mimeType]=!0}wt()&&(this.l["com.youtube.fairplay"]=new fF("fairplay","com.youtube.fairplay","",
this.experiments),this.B.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=qka(b,this.useCobaltWidevine,g.S(this.experiments,"html5_enable_safari_fairplay"),g.eF(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.l[p]})};
oF.prototype.ma=function(){};
oF.prototype.Z=function(a){return g.S(this.experiments,a)};var jKa={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},B2;a:{var C2=g.Uc;C2=C2.toLowerCase();if(-1!=C2.indexOf("android")){var kKa=C2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(kKa){var lKa=parseFloat(kKa[1]);if(100>lKa){B2=lKa;break a}}var mKa=C2.match("("+g.Mb(jKa).join("|")+")");B2=mKa?jKa[mKa[0]]:0}else B2=void 0}var UF=B2,TF=0<=UF;var Xka={RED:"red",D8:"white"};var dla={RW:"adunit",ZZ:"detailpage",n_:"editpage",q_:"embedded",r_:"embedded_unbranded",v1:"leanback",E5:"previewpage",H5:"profilepage",O7:"unplugged",x5:"playlistoverview",c7:"sponsorshipsoffer",Q6:"shortspage"};qF.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Et?a=a||nKa[b]:2.2===UF?a=a||oKa[b]:tt()&&(a=a||pKa[b]);return!!a};
qF.prototype.isTypeSupported=function(a){this.ma();return this.I?window.cast.receiver.platform.canDisplayType(a):iE(a)};
qF.prototype.disableAv1=function(){this.L=!0};
qF.prototype.ma=function(){};
var oKa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},pKa={"application/x-mpegURL":"maybe"},nKa={"application/x-mpegURL":"maybe"};g.v(tF,g.Q);tF.prototype.add=function(a,b){!this.items[a]&&(b.Jt||b.Sw||b.hw)&&(this.items[a]=Zb(b),this.X("vast_info_card_add",a))};
tF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
tF.prototype.get=function(a){return this.items[a]||null};
tF.prototype.isEmpty=function(){return g.Rb(this.items)};var sG={O1:1,P1:2,Q1:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};vF.prototype.Lg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a};
vF.prototype.cg=function(){return this.i/(1-Math.pow(this.alpha,this.l))};wF.prototype.Lg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.l=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0};
wF.prototype.cg=function(){return this.C?(xF(this,this.u-this.C)+xF(this,this.u)+xF(this,this.u+this.C))/3:xF(this,this.u)};g.v(Lka,g.E);var Qka=/^([0-9\.]+):([0-9\.]+)$/;var Vka="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),bla={uX:"cbrand",vX:"cbr",wX:"cbrver",B0:"c",E0:"cver",D0:"ctheme",C0:"cplayer",W3:"cmodel",C4:"cnetwork",W4:"cos",X4:"cosver",p5:"cplatform"};g.v(yG,g.E);g.k=yG.prototype;g.k.Z=function(a){return g.S(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.BG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.YF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Et&&(a=Tr())&&(b.ebc=a));return g.ui(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.BG(this)+"/embed/"+a;c&&(a=g.ui(a,{list:c}));c=b.width;b=b.height;a=g.qd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.bj&&!Et&&74<=pt()||g.cj&&g.Wd(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
g.k.xa=function(){this.Ij&&window.clearInterval(this.Ij);g.E.prototype.xa.call(this)};
var ila=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=RG.prototype;g.k.kf=function(){return this.i};
g.k.Xs=function(){return null};
g.k.CI=function(){var a=this.Xs();return a?(a=g.ls(a.i),Number(a.expire)):NaN};
g.k.xE=function(){};
g.k.tc=function(){return this.i.tc()};
g.k.getHeight=function(){return this.i.ib().height};jla.prototype.Te=function(){mla(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.Nc){if(e.Nc.getIsDefault()){c=e.Nc.getId();break a}c||(c=e.Nc.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.Nc&&e.Nc.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.i]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.Nc){n=
e.Nc;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=kla(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(lla(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.i])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(lla(e,d)+'",CLOSED-CAPTIONS=NONE'),
1<d.fps&&(e+=",FRAME-RATE="+d.fps),d.l&&(e+=",VIDEO-RANGE="+d.l),a.push(e),a.push(kla(this,d.url,""));return a.join("\n")};g.v(TG,RG);TG.prototype.CI=function(){return this.expiration};
TG.prototype.Xs=function(){if(!this.l||this.l.isDisposed()){var a=this.u.Te();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.l=new AE(a)}return this.l};g.v(UG,RG);UG.prototype.Xs=function(){return new AE(zB(this.l))};
UG.prototype.xE=function(){this.l=EB(this.l)};g.v(VG,RG);VG.prototype.Xs=function(){return new AE(this.l)};var D2={},Cla=Kw("yt-player-local-media",{fv:(D2.index={xl:2},D2.media={xl:2},D2.captions={xl:5},D2),Az:!1,upgrade:function(a,b){b(2)&&(iw(a,"index"),iw(a,"media"));b(5)&&iw(a,"captions");b(6)&&(a.i.objectStoreNames.contains("metadata")&&a.i.deleteObjectStore("metadata"),a.i.objectStoreNames.contains("playerdata")&&a.i.deleteObjectStore("playerdata"))},
version:5});var WG=void 0;yla().LMS=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(YG())})})};var Fla=/^([\w\-_]+)\|(\d+)\|(\d+)\|(\d+)$/;yla().LMDB=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,(0,g.aH)(),2);c=d.l;return d.return(jw(c,["index","media","captions"],"readonly",function(e){var f={},h=[],l=[];e=[qw(lw(e,"index"),{},function(m){f[m.getKey()]=m.getValue();return m.continue()}),
tw(lw(e,"media"),function(m){h.push(m.getKey());return m.continue()}),
tw(lw(e,"captions"),function(m){l.push(m.getKey());return m.continue()})];
return Yv.all(e).then(function(){return{index:f,media:Ola(h),captions:l}})}))})})};g.k=g.cH.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.dH(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Qla={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Rla={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Sla=/^(\d*)_((\d*)_?(\d*))$/;var gH={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Vla={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var E2={},zma=(E2.ALWAYS=1,E2.BY_REQUEST=3,E2.UNKNOWN=void 0,E2),F2={},ima=(F2.COLOR_PRIMARIES_BT709="bt709",F2.COLOR_PRIMARIES_BT2020="bt2020",F2.COLOR_PRIMARIES_UNKNOWN=null,F2.COLOR_PRIMARIES_UNSPECIFIED=null,F2),G2={},Xla=(G2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",G2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",G2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",G2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",G2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,G2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,G2),H2={},lH=(H2.FAIRPLAY="fairplay",H2.PLAYREADY="playready",H2.WIDEVINE="widevine",H2.CLEARKEY=null,H2.FLASHACCESS=null,H2.UNKNOWN=null,H2.WIDEVINE_CLASSIC=null,H2),I2={},Ama=(I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",I2),J2={},fma=(J2.UNKNOWN=0,J2.RECTANGULAR=1,J2.EQUIRECTANGULAR=2,J2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,J2.MESH=4,J2),K2={},hma=(K2.SPATIAL_AUDIO_TYPE_NONE=0,K2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,K2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,K2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,K2),L2={},gma=(L2.STEREO_LAYOUT_UNKNOWN=0,L2.STEREO_LAYOUT_LEFT_RIGHT=1,L2.STEREO_LAYOUT_TOP_BOTTOM=2,L2),M2={},ema=(M2.FORMAT_STREAM_TYPE_UNKNOWN=0,M2.FORMAT_STREAM_TYPE_OTF=3,M2);g.v(mH,g.Q);mH.prototype.xa=function(){this.i&&(this.i=this.i.onload=null);g.Q.prototype.xa.call(this)};g.k=g.pH.prototype;g.k.getHeight=function(){return this.height};
g.k.II=ba(0);g.k.uC=function(){return this.u};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.ww=function(a){var b=this.uC()-1;return g.Nf(0===this.i?Math.round(a*this.u/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.Ys=function(){return this.u-1};
g.k.vA=function(){return this.u?0:-1};
g.k.TF=function(){};g.v(qH,mH);qH.prototype.l=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.L||180>f.getHeight())&&c.push(f)}return c};
qH.prototype.I=function(a,b,c,d){return new g.pH(a,b,c,d)};g.v(rH,g.pH);g.k=rH.prototype;g.k.uC=function(){return this.l.getNumberOfSegments()};
g.k.ww=function(a){var b=this.rows*this.columns*this.I,c=this.l,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.Ys=function(){return this.l.getLastSegmentNumber()};
g.k.vA=function(){return this.l.getFirstSegmentNumber()};
g.k.TF=function(a){this.l=a};g.v(sH,qH);sH.prototype.l=function(a,b){return qH.prototype.l.call(this,"$N|"+a,b)};
sH.prototype.I=function(a,b,c){return new rH(a,b,c,this.isLive)};g.v(g.vH,g.Q);g.k=g.vH.prototype;g.k.T=function(){return this.B};
g.k.Z=function(a){return g.S(this.B.experiments,a)};
g.k.nf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.wK=function(){this.isDisposed()||(this.i.u||this.i.unsubscribe("refresh",this.wK,this),this.PH(-1))};
g.k.PH=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=Xja(this.i,this.gE);if(0<b.length&&(this.X("cuepointupdated",b,a),this.gE+=b.length,KH(this)&&g.GH(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ha("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs),"start"===c.event&&(c=c.startSecs,this.dB.start=this.Eq,this.dB.end=c+3)}}};
g.k.Ve=function(){var a={};this.l&&(a.fmt=this.l.tc(),this.J&&this.J.tc()!=this.l.tc()&&(a.afmt=this.J.tc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Ig&&(a.infringe=1);this.He&&(a.splay=1);var b=PH(this);b&&(a.live=b);this.Jk&&(a.autoplay=1);this.WG&&(a.sdetail=this.WG);this.va&&(a.partnerid=this.va);this.osid&&(a.osid=this.osid);return a};
g.k.Gh=function(){if(this.cotn)return null;var a=g.IG(this.B)||this.Z("web_l3_storyboard");if(!this.Hg)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Hg=new qH(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Kb(this.i.i).index)&&(this.Hg=new sH(b.spec,this.i.isLive,c,a))}else this.qq?this.Hg=new qH(this.qq,this.lengthSeconds,void 0,!1,a):this.wp&&this.i&&
(b=Kb(this.i.i).index)&&(this.Hg=new sH(this.wp,this.i.isLive,b,a));return this.Hg};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.qq||this.wp};
g.k.cd=function(){return this.i&&!isNaN(this.i.cd())?this.i.cd():KH(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():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.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Nh)};
g.k.isLoaded=function(){return wH(this)&&!this.Lc&&!this.Vi};
g.k.We=function(a){if(30==this.va)return(a=this.Lb["default.jpg"])?a:this.videoId?g.ui("//docs.google.com/vt",{id:this.videoId,authuser:this.HG,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Lb[a];return b||this.B.L||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:CG(this.B,this.videoId,a)};
g.k.ji=function(){return this.isLivePlayback||this.Xe||this.Ui||!(!this.liveUtcStartSeconds||!this.Vg)};
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.bp||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.J&&!cE(this.J))return g.fb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.Mj;
if(this.bp){if(!this.Qj)for(var b=g.q(this.bp),c=b.next();!c.done;c=b.next())if(c=c.value,c.Nc.getIsDefault()){this.Qj=c;break}return this.Qj||this.Mj}return this.Mj};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.ib=function(){return this};
g.k.dn=function(){return this.B.getVideoUrl(this.videoId)};
g.k.kC=function(){this.u=this.u.l};
g.k.isAd=function(){return!!this.adFormat};
g.k.lf=function(){return this.oauthToken||this.B.Ce};
g.k.GE=function(){return this.Pi||this.wc};
g.k.Rv=function(){return this.Ce||this.wc};
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.Ha=function(a,b,c){this.X("ctmp",a,b,c)};
g.k.xa=function(){g.Q.prototype.xa.call(this);delete this.al;this.dl=null;delete this.wR;delete this.accountLinkingConfig;delete this.i;this.u=this.playerResponse=this.watchNextResponse=null;this.Fi=this.adaptiveFormats="";delete this.botguardData;this.Gp={};this.suggestions=null};iI.prototype.Nu=function(){return!1};
iI.prototype.Ia=function(){return function(){return null}};var qI=null;g.v(pI,g.Q);pI.prototype.ou=function(a){return this.i.hasOwnProperty(a)?this.i[a].ou():{}};
g.Ga("ytads.bulleit.getVideoMetadata",function(a){return rI().ou(a)},void 0);
g.Ga("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=rI();c=hna(c);null!==c&&d.X(c,{queryId:a,viewabilityString:b})},void 0);g.v(uI,iI);g.k=uI.prototype;g.k.Jr=function(){return!0};
g.k.Ao=function(){return!1};
g.k.isSkippable=function(){return null!=this.Aa};
g.k.getVideoUrl=function(){return this.va};
g.k.Nu=function(){return!0};g.v(CI,iI);CI.prototype.Jr=function(){return!0};
CI.prototype.Ao=function(){return!1};
CI.prototype.Nu=function(){return!0};
CI.prototype.Ia=function(){return function(){return g.dg("video-ads")}};pna.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var aHa={yW:"FINAL",MW:"AD_BREAK_LENGTH",NW:"AD_CPN",OW:"AH",PW:"AD_MT",QW:"ASR",SW:"AW",PX:"NM",QX:"NX",RX:"NY",WX:"CONN",hY:"CPN",k_:"DV_VIEWABILITY",x_:"ERRORCODE",A_:"ERROR_MSG",C_:"EI",h0:"GOOGLE_VIEWABILITY",y0:"IAS_VIEWABILITY",t1:"LACT",H1:"LIVE_TARGETING_CONTEXT",R1:"I_X",S1:"I_Y",A3:"MT",E3:"MIDROLL_POS",F3:"MIDROLL_POS_MS",H3:"MOAT_INIT",I3:"MOAT_VIEWABILITY",s5:"P_H",t5:"PV_H",u5:"PV_W",v5:"P_W",A5:"TRIGGER_TYPE",j6:"SDKV",Z6:"SLOT_POS",n7:"SURVEY_LOCAL_TIME_EPOCH_S",m7:"SURVEY_ELAPSED_MS",
jP:"VIS",n8:"VIEWABILITY",o8:"VED",t8:"VOL",w8:"WT",Q8:"YT_ERROR_CODE"};var yna=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];II.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.zq(a.baseUrl,tna(b,d,c)),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.lf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.Bu(e,void 0,d,f)}catch(p){}};g.v(JI,II);JI.prototype.lf=function(){return this.So?this.So.lf():""};
JI.prototype.i=function(){return this.So?this.So.T().pageId:""};KI.prototype.send=function(a,b,c){try{var d=a.match(hi);if("https"===d[1])var e=a;else d[1]="https",e=fi("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=yq(a);e=[];Ns(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Ho.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.v(zna,g.E);g.v(ZI,g.Q);g.k=ZI.prototype;g.k.ou=function(){return{}};
g.k.rz=function(){};
g.k.jd=function(a){this.dj();this.X(a)};
g.k.dj=function(){Fna(this,this.va,3);this.va=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.fn=function(){var a=this.l;LI(a)||!UI(a,"impression")&&!UI(a,"start")||UI(a,"abandon")||UI(a,"complete")||UI(a,"skip")||(NI(a)?TI(a,"pause"):OI(a,"pause"))};
g.k.hn=function(){this.Aa||this.I||this.Bf()};
g.k.qh=function(){PI(this.l,this.getDuration())};
g.k.eg=function(){var a=this.l;!UI(a,"impression")||UI(a,"skip")||UI(a,"complete")||TI(a,"abandon")};
g.k.jn=function(){var a=this.l;NI(a)?OI(a,"skip"):!UI(a,"impression")||UI(a,"abandon")||UI(a,"complete")||OI(a,"skip")};
g.k.Bf=function(){if(!this.I){var a=this.qx();this.l.macros.AD_CPN=a;a=this.l;if(NI(a)){var b=a.i.getCurrentTime(2,!1);SI(a,"impression",b,0)}else OI(a,"impression");OI(a,"start");LI(a)||a.i.isFullscreen()&&TI(a,"fullscreen");this.I=!0}};
g.k.Yg=function(a){a=a||"";var b="",c="",d="";jI(this.G)&&(b=this.G.ub(2).state,this.G.qd()&&(c=this.G.qd().rh(),null!=this.G.qd().Zi()&&(d=this.G.qd().Zi())));var e=this.l;e.macros=HI(e.macros,xna(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));OI(e,"error")};
g.k.Cf=function(){};
g.k.kL=function(){this.X("adactiveviewmeasurable")};
g.k.lL=function(){this.X("adfullyviewableaudiblehalfdurationimpression")};
g.k.mL=function(){this.X("adoverlaymeasurableimpression")};
g.k.nL=function(){this.X("adoverlayunviewableimpression")};
g.k.oL=function(){this.X("adoverlayviewableendofsessionimpression")};
g.k.pL=function(){this.X("adoverlayviewableimmediateimpression")};
g.k.qL=function(){this.X("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.dj(),this.u.unsubscribe("adactiveviewmeasurable",this.kL,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.lL,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.mL,this),this.u.unsubscribe("adoverlayunviewableimpression",this.nL,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.oL,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.pL,this),this.u.unsubscribe("adviewableimpression",
this.qL,this),delete this.u.i[this.ad.L],g.Q.prototype.dispose.call(this))};
g.k.qx=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.iI=function(){return""};g.v(aJ,iI);aJ.prototype.Jr=function(){return!0};
aJ.prototype.Ao=function(){return!1};g.v(bJ,nI);g.v(cJ,ZI);g.k=cJ.prototype;g.k.Gq=function(){0<this.i&&this.Bf()};
g.k.Bf=function(){var a=this;this.Hb=new g.J(function(){a.qh();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.jd("adended")},this.i,this);
g.F(this,this.Hb);this.Hb.start();$I(this,[new bJ(this.B.i,this.macros)]);ZI.prototype.Bf.call(this)};
g.k.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandoned")};
g.k.qh=function(){ZI.prototype.qh.call(this)};
g.k.jd=function(a){this.Hb&&this.Hb.stop();ZI.prototype.jd.call(this,a)};g.v(dJ,iI);dJ.prototype.Jr=function(){return!0};
dJ.prototype.Ao=function(){return!1};g.v(eJ,iI);eJ.prototype.Jr=function(){return!0};
eJ.prototype.Ao=function(){return!1};g.v(fJ,iI);fJ.prototype.Jr=function(){return!0};
fJ.prototype.Ao=function(){return!1};Hna.prototype.create=function(a,b){return a instanceof uI?this.I.create(a,b):a instanceof CI?this.B.create(a,b):a instanceof aJ?this.i.create(a,b):a instanceof fJ?this.C.create(a,b):a instanceof eJ?this.u.create(a,b):a instanceof dJ?this.l.create(a,b):null};g.v(gJ,ZI);g.k=gJ.prototype;g.k.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandoned")};
g.k.fn=function(){ZI.prototype.fn.call(this);this.X("adpause",2)};
g.k.hn=function(){ZI.prototype.hn.call(this);this.X("adplay",1)};
g.k.Bf=function(){ZI.prototype.Bf.call(this);this.i.stop();this.B.N(this.G,g.Rz("bltplayback"),this.cN);var a=new g.Oz(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.Id([a],2);this.X("adplay",1)};
g.k.qh=function(){ZI.prototype.qh.call(this);this.jd("adended")};
g.k.Yg=function(a){ZI.prototype.Yg.call(this,a);this.jd("aderror")};
g.k.Gq=function(){lI(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.Na("onAdIntroStateChange",1)};
g.k.jd=function(a){this.i.stop();lI(this.G,!0);"adabandoned"!=a&&this.G.Na("onAdComplete");this.G.Na("onAdEnd");this.X(a);this.G.Na("onAdIntroStateChange",0)};
g.k.cN=function(a){"bltcompletion"==a.getId()&&(this.G.uf("bltplayback",2),PI(this.l,this.getDuration()))};g.v(Ina,nI);g.v(hJ,ZI);g.k=hJ.prototype;
g.k.Gq=function(){if(this.C)for(var a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.l={slotId:QZ(b.C.get(),"SLOT_TYPE_IN_PLAYER"),rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:void 0,Ac:[],zc:[],gb:"surface",Ja:new SY([])};soa(b.u(),b.l);var c=b.u();b=b.l;c=g.q(c.Jd);for(var d=c.next();!d.done;d=c.next())d.value.yj(b)}0>=this.L&&(g.ds(Error("durationMs was specified incorrectly with a value of: "+this.L)),this.qh());this.Bf();this.G.addEventListener("progresssync",this.ea)};
g.k.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandonedreset")};
g.k.Bf=function(){var a=this.G.T();ZI.prototype.Bf.call(this);this.i=g.S(this.G.T().experiments,"disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.B=this.i+this.L/1E3;g.vG(a)?this.G.Na("onAdMessageChange",{renderer:this.J.i,startTimeSecs:this.i}):$I(this,[new Ina(this.J.i)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Rx(),c=this.J.i.videoAdBreakOffsetMsInt64;b&&g.Kv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.B),
timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.C)for(this.V=!0,a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?R("Received AdNotify started event before another one exited"):(b.i=b.l,toa(b.u(),b.i)):R("Received AdNotify started event without start requested event");g.V(this.G.ub(1),512)&&(a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Rx(),c=this.J.i.videoAdBreakOffsetMsInt64,b&&g.Kv("adNotifyFailure",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.B),timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.qh())};
g.k.qh=function(){ZI.prototype.qh.call(this);this.jd("adended")};
g.k.Yg=function(a){ZI.prototype.Yg.call(this,a);this.jd("aderror")};
g.k.jd=function(a){this.G.removeEventListener("progresssync",this.ea);this.dj();this.X(a);Kna(this)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.ea);Kna(this);ZI.prototype.dispose.call(this)};
g.k.dj=function(){g.vG(this.G.T())?this.G.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.i}):ZI.prototype.dj.call(this)};g.v(Lna,nI);kJ.prototype.sendAdsPing=function(a){this.I.send(a,Wna(this),{})};
kJ.prototype.pd=function(a){var b=this;if(a){var c=Wna(this);Array.isArray(a)?a.forEach(function(d){return b.l.executeCommand(d,c)}):this.l.executeCommand(a,c)}};lJ.prototype.get=function(){return this.value};
g.v(mJ,lJ);mJ.prototype.Ob=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(nJ,lJ);nJ.prototype.Ob=function(){return"metadata_type_ad_next_params"};
g.v(oJ,lJ);oJ.prototype.Ob=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(pJ,lJ);pJ.prototype.Ob=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(qJ,lJ);qJ.prototype.Ob=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(rJ,lJ);rJ.prototype.Ob=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(sJ,lJ);sJ.prototype.Ob=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(tJ,lJ);tJ.prototype.Ob=function(){return"metadata_ad_video_is_listed"};
g.v(uJ,lJ);uJ.prototype.Ob=function(){return"metadata_type_ad_placement_config"};
g.v(vJ,lJ);vJ.prototype.Ob=function(){return"metadata_type_ad_pod_info"};
g.v(wJ,lJ);wJ.prototype.Ob=function(){return"metadata_type_ad_video_id"};
g.v(xJ,lJ);xJ.prototype.Ob=function(){return"metadata_type_ad_video_url"};
g.v(yJ,lJ);yJ.prototype.Ob=function(){return"metadata_type_content_cpn"};
g.v(zJ,lJ);zJ.prototype.Ob=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(AJ,lJ);AJ.prototype.Ob=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(BJ,lJ);BJ.prototype.Ob=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(CJ,lJ);CJ.prototype.Ob=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(DJ,lJ);DJ.prototype.Ob=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(EJ,lJ);EJ.prototype.Ob=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(FJ,lJ);FJ.prototype.Ob=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(GJ,lJ);GJ.prototype.Ob=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(HJ,lJ);HJ.prototype.Ob=function(){return"metadata_type_linked_in_player_layout_type"};
g.v(IJ,lJ);IJ.prototype.Ob=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(JJ,lJ);JJ.prototype.Ob=function(){return"metadata_type_player_bytes_callback"};
g.v(KJ,lJ);KJ.prototype.Ob=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(LJ,lJ);LJ.prototype.Ob=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(MJ,lJ);MJ.prototype.Ob=function(){return"metadata_type_sub_layouts"};
g.v(NJ,lJ);NJ.prototype.Ob=function(){return"metadata_type_cue_point"};
g.v(OJ,lJ);OJ.prototype.Ob=function(){return"metadata_type_video_length_seconds"};
g.v(PJ,lJ);PJ.prototype.Ob=function(){return"metadata_type_player_vars"};
g.v(QJ,lJ);QJ.prototype.Ob=function(){return"metadata_type_sodar_extension_data"};
g.v(RJ,lJ);RJ.prototype.Ob=function(){return"metadata_type_layout_enter_ms"};
g.v(SJ,lJ);SJ.prototype.Ob=function(){return"metadata_type_layout_exit_ms"};
g.v(TJ,lJ);TJ.prototype.Ob=function(){return"metadata_type_media_sub_layout_index"};
g.v(UJ,lJ);UJ.prototype.Ob=function(){return"metadata_type_dai"};
g.v(VJ,lJ);VJ.prototype.Ob=function(){return"metadata_type_ad_intro"};
g.v(WJ,lJ);WJ.prototype.Ob=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(XJ,lJ);XJ.prototype.Ob=function(){return"metadata_type_drift_recovery_ms"};
g.v(YJ,lJ);YJ.prototype.Ob=function(){return"metadata_type_fulfilled_layout"};
g.v(ZJ,lJ);ZJ.prototype.Ob=function(){return"metadata_type_ad_break_request_data"};
g.v($J,lJ);$J.prototype.Ob=function(){return"metadata_type_ad_break_response_data"};
g.v(aK,lJ);aK.prototype.Ob=function(){return"metadata_type_remote_slots_data"};
g.v(bK,lJ);bK.prototype.Ob=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(cK,lJ);cK.prototype.Ob=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(dK,lJ);dK.prototype.Ob=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(eK,lJ);eK.prototype.Ob=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(fK,lJ);fK.prototype.Ob=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};coa.prototype.pd=function(a){this.i.pd(a)};g.v(hK,g.Q);hK.prototype.getProgressState=function(){return this.u};
hK.prototype.start=function(){this.B=Date.now();eoa(this,{current:this.i/1E3,duration:this.l/1E3});this.Hb.start()};
hK.prototype.stop=function(){this.Hb.stop()};g.v(iK,nI);g.v(jK,ZI);g.k=jK.prototype;g.k.Gq=function(){this.Bf()};
g.k.Bf=function(){var a=this.C.i;g.vG(this.G.T())?(g.S(this.G.T().experiments,"validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!gK(a)?(g.by(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),this.jd("aderror")):(a=doa(this.J,a),this.G.Na("onAdInfoChange",a)),this.L=Date.now(),this.i&&this.i.start()):$I(this,[new iK(a)]);ZI.prototype.Bf.call(this)};
g.k.getDuration=function(){return this.C.l};
g.k.fn=function(){ZI.prototype.fn.call(this);this.i&&this.i.stop()};
g.k.hn=function(){ZI.prototype.hn.call(this);this.i&&this.i.start()};
g.k.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandoned")};
g.k.jn=function(){ZI.prototype.jn.call(this);this.jd("adended")};
g.k.Yg=function(a){ZI.prototype.Yg.call(this,a);this.jd("aderror")};
g.k.jd=function(a){this.dj();this.X(a)};
g.k.Cf=function(a){switch(a){case "skip-button":this.jn();break;case "survey-submit":this.jd("adended")}};
g.k.dj=function(){g.vG(this.G.T())?(this.i&&this.i.stop(),this.G.Na("onAdInfoChange",null)):ZI.prototype.dj.call(this)};g.v(kK,nI);g.v(lK,ZI);lK.prototype.Gq=function(){this.Bf()};
lK.prototype.Bf=function(){$I(this,[new kK(this.i.i,this.macros)]);ZI.prototype.Bf.call(this)};
lK.prototype.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandoned")};
lK.prototype.Yg=function(a){ZI.prototype.Yg.call(this,a);this.jd("aderror")};g.v(koa,nI);g.v(loa,nI);g.v(moa,nI);g.v(oK,nI);g.v(noa,nI);g.v(ooa,nI);g.v(pK,ZI);g.k=pK.prototype;g.k.ou=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.i.l,isPlaying:fna(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.Gq=function(){if(this.i.ea)Gna(this),this.jd("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.G.T().V.add(b,{Jt:a});try{var c=this.i.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{el(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.gc("//tpc.googlesyndication.com/sodar/%{path}");g.cy(new g.Pv("Load Sodar Error.",d instanceof ec,d.constructor===ec,{Message:e.message,"Escaped injector basename":g.qd(c.siub),"BG vm basename":c.bgub}));if(d.constructor===ec)throw e;
}}catch(e){g.by(e)}lI(this.G,!1);a=nna(this.i);b=this.G.T();g.S(this.G.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.vG(b)||g.IG(b)?3:1);c=this.G.getVideoData(1);c.zg&&(a.ctrl=c.zg);c.Jf&&(a.ytr=c.Jf);c.Bl&&(a.ytrcc=c.Bl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Sh&&(a.vss_credentials_token_type=c.Sh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.X("adunstarted",-1);!x_(this.L)&&g.vG(b)&&(b=uK(this),b=Zna(this.Da,b,
this.i.i.adNextParams||""),b.attributionInfo=Tna(this.i.u,this.i.B||""),this.G.Na("onAdInfoChange",b));this.J?this.C.start():(this.G.cueVideoByPlayerVars(a,2),this.C.start(),this.G.playVideo(2))}};
g.k.fn=function(){ZI.prototype.fn.call(this);this.X("adpause",2)};
g.k.hn=function(){ZI.prototype.hn.call(this);this.X("adplay",1)};
g.k.Bf=function(){ZI.prototype.Bf.call(this);this.C.stop();this.ya.N(this.G,g.Rz("bltplayback"),this.dN);var a=new g.Oz(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.G.Id([a],2);a=tK(this);this.B.Ia=a;if(!x_(this.L)){a=[];var b=this.G.T(),c=this.G.getVideoData(2);if(g.ZF(b)||g.vG(b)){var d;(d=c&&c.isListed?{channelId:c.Rh,channelThumbnailUrl:c.wg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.G.Na("onAdMetadataAvailable",d)}g.vG(b)||(g.IG(b)&&!this.J&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.wg,b&&d&&c?c=[new loa(b),new koa(c),new moa(d)]:(g.cy(new g.Pv("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),$I(this,c)),a.push(Tna(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 ooa({navigationEndpoint:{urlEndpoint:b}})),
c&&a.push(c),this.i.isSkippable()&&!vI(this.i)&&(c=uK(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=uoa(this)),a.push(new noa(c)))),c=uK(this),a.push(new oK(c)),$I(this,a))}this.G.isMuted()&&(a=this.l,c=this.G.isMuted(),NI(a)||OI(a,c?"mute":"unmute"));this.X("adplay",1);if(null!==this.Y){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=qoa(this);b=this.i;d=poa(this);for(var e=g.q(this.Y.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 wJ(p));r&&n.push(new xJ(r));(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new zJ(p)),(p=p.elementId)&&n.push(new GJ(p))):R("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new nJ(l.i.adNextParams||""));(p=l.I)&&n.push(new oJ(p));(p=vz(f.J.get(),2))?(n.push(new sJ({channelId:p.Rh,channelThumbnailUrl:p.wg,channelTitle:p.author,videoTitle:p.title})),n.push(new tJ(p.isListed))):
R("Expected meaningful PlaybackData on ad started.");n.push(new vJ(l.u));n.push(new OJ(l.l));n.push(new yJ(a));n.push(new KJ({current:this}));p=l.Ra;null!=p.kind&&n.push(new uJ(p));(p=l.Y)&&n.push(new aK(p));void 0!==m&&n.push(new bK(m));f.i?R(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):roa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.V.Do=this;this.G.Na("onAdStart",tK(this));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.dN=function(a){"bltcompletion"==a.getId()&&(this.G.uf("bltplayback",2),PI(this.l,this.getDuration()),sK(this,"adended"),P1(this.V,this))};
g.k.qh=function(){ZI.prototype.qh.call(this);this.jd("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.eg=function(){ZI.prototype.eg.call(this);this.jd("adabandoned")};
g.k.mE=function(){var a=this.l;LI(a)||TI(a,"clickthrough")};
g.k.xv=function(){this.jn()};
g.k.jn=function(){ZI.prototype.jn.call(this);this.jd("adended")};
g.k.Yg=function(a){ZI.prototype.Yg.call(this,a);this.jd("aderror")};
g.k.jd=function(a){this.C.stop();x_(this.L)||this.dj();lI(this.G,!0);"adabandoned"!=a&&this.G.Na("onAdComplete");sK(this,a);P1(this.V,this);this.G.Na("onAdEnd",tK(this));this.X(a)};
g.k.dj=function(){var a=this.G.T();g.vG(a)&&(g.IG(a)||g.S(a.experiments,"enable_topsoil_wta_for_halftime")||g.S(a.experiments,"enable_topsoil_wta_for_halftime_live_infra")||g.vG(a))?this.G.Na("onAdInfoChange",null):ZI.prototype.dj.call(this)};
g.k.Xl=function(){this.ea||this.rz()};
g.k.rz=function(){this.xJ&&this.G.playVideo()};
g.k.xJ=function(){return 2==this.G.getPlayerState(2)};
g.k.Cf=function(a){if(!x_(this.L)){var b=this.l;if(jI(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.ea||this.rz();break;case "ad-info-icon-button":(this.ea=this.xJ())||this.G.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.G.T().protocol+"://"+g.AG(this.G.T())+"/channel/"+this.i.Da;g.nK(a);break;case "ad-title":this.G.pauseVideo();g.nK(this.G.getVideoUrl());break;case "visit-advertiser":this.G.pauseVideo();if(g.IG(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&&RI(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.nK(a.urlEndpoint.url)}a=this.l;LI(a)||
TI(a,"clickthrough");break;case "skip-button":this.jn()}}};
g.k.iI=function(a,b){if(this.i.ea)return Gna(this),this.jd("aderror"),"";if(!Number.isFinite(a))return g.by(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.by(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=nna(this.i);d=this.G.Tq(d,2,c,a,b);a+c>b&&this.G.Gs(d,b-a);return d};
g.k.dispose=function(){fna(this.G)&&!this.J&&this.G.stopVideo(2);sK(this,"adabandoned");P1(this.V,this);ZI.prototype.dispose.call(this)};vK.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={Qt:null,IJ:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.IJ))if(b.IJ=c,b.Qt){if(c<b.Qt.end){a:{c=b.Qt;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.Qt.end=a,this.l.vK(a))}}else if(a=
xoa(a,this.u))c=a.ZQ,b.Qt=a.IP,this.l.QD(c)};
vK.prototype.updateTime=function(){};yK.prototype.Uf=function(a){var b=this.i;g.Jg(function(){return b.Uf(a,1)})};BK.prototype.Ht=function(a,b,c,d,e){Foa(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)Foa(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.fg=!0,
a={adBreakType:Koa(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},"ad_to_video"===this.actionType?(this.contentCpn&&(a.targetCpn=this.contentCpn),this.videoId&&(a.targetVideoId=this.videoId)):(this.adCpn&&(a.targetCpn=this.adCpn),this.adVideoId&&(a.targetVideoId=this.adVideoId)),this.adFormat&&(a.adType=this.adFormat),this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn),this.videoId&&(a.videoId=this.videoId),
this.adCpn&&(a.adClientPlaybackNonce=this.adCpn),this.adVideoId&&(a.adVideoId=this.adVideoId),OA(a,this.actionType)};
BK.prototype.reset=function(){return new BK(this.G)};var N2={},O2=(N2.BUFFERING="buffering-mode",N2.CUED="cued-mode",N2.ENDED="ended-mode",N2.PAUSED="paused-mode",N2.PLAYING="playing-mode",N2.SEEKING="seeking-mode",N2.UNSTARTED="unstarted-mode",N2);var qKa,P2,Loa;
qKa={eX:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",lX:"AUTHENTICATION_MALFORMED",mX:"AUTHENTICATION_MISSING",rX:"BAD_REQUEST",CX:"CAST_SESSION_DEVICE_MISMATCHED",DX:"CAST_SESSION_VIDEO_MISMATCHED",EX:"CAST_TOKEN_EXPIRED",FX:"CAST_TOKEN_FAILED",GX:"CAST_TOKEN_MALFORMED",HX:"CGI_PARAMS_MALFORMED",IX:"CGI_PARAMS_MISSING",a_:"DEVICE_FALLBACK",y_:"GENERIC_WITH_LINK_AND_CPN",z_:"LICENSE",B_:"VIDEO_UNAVAILABLE",M_:"FORMAT_UNAVAILABLE",b0:"GEO_FAILURE",t0:"HTML5_AUDIO_RENDERER_ERROR",u0:"GENERIC_WITHOUT_LINK",
v0:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",w0:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",x0:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",I0:"INVALID_DRM_MESSAGE",K5:"PURCHASE_NOT_FOUND",L5:"PURCHASE_REFUNDED",U5:"RENTAL_EXPIRED",c6:"RETRYABLE_ERROR",p6:"SERVER_ERROR",d7:"STOPPED_BY_ANOTHER_PLAYBACK",g7:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",h7:"STREAMING_NOT_ALLOWED",i7:"STREAM_LICENSE_NOT_FOUND",u7:"TOO_MANY_REQUESTS",v7:"TOO_MANY_REQUESTS_WITH_LINK",w7:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
x7:"TOO_MANY_STREAMS_PER_USER",W7:"UNSUPPORTED_DEVICE",i8:"VIDEO_FORBIDDEN",l8:"VIDEO_NOT_FOUND"};P2={};
g.kO=(P2.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.",P2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",P2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",P2.LICENSE="Sorry, there was an error licensing this video.",P2.VIDEO_UNAVAILABLE=
"Video unavailable",P2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",P2.GEO_FAILURE="This video isn't available in your country.",P2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",P2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",P2.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",
P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",P2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",P2.PURCHASE_NOT_FOUND="This video requires payment.",P2.PURCHASE_REFUNDED="This video's purchase has been refunded.",P2.RENTAL_EXPIRED="This video's rental has expired.",P2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",P2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
P2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",P2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",P2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",P2.SERVER_ERROR="There was an internal server error. Please try again later.",P2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",P2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
P2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",P2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",P2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",P2.TOO_MANY_REQUESTS="Please log in to watch this video.",P2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",P2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
P2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",P2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",P2.VIDEO_FORBIDDEN="Access to this video is forbidden.",P2.VIDEO_NOT_FOUND="This video can not be found.",P2);
Loa={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.v(CK,g.E);g.k=CK.prototype;g.k.xw=function(){return this.l};
g.k.Rq=function(a){var b="";a&&(Ooa(this,a),b=a.i);if(!this.Af()||b)b&&this.Af()!==b&&this.Aw(b),rKa||a&&a.l||this.load(),this.I||(this.addEventListener("volumechange",this.RH),this.I=!0)};
g.k.mp=function(){var a=this.Ge();a=window.MediaSource?new BE(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new BE(new window.WebKitMediaSource,void 0,!1):new BE(void 0,a,!1);this.Rq(a.Vu);return a};
g.k.playVideo=function(){var a=this;this.Bk()&&this.seekTo(0);!this.Af()&&this.l&&(g.ds(Error("playVideo without src")),this.Aw(this.l.i),this.l.l||this.load());var b=this.play();!b&&sKa&&wO&&7<=(hI||0)&&g.iu(this,"playing",function(){g.Us(function(){Noa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.rh()&&(tKa&&wO&&4>hI&&(a=Math.max(.1,a)),this.wz(a))};
g.k.stopVideo=function(){this.Af()&&(uKa&&Et&&0<this.getCurrentTime()&&this.seekTo(0),this.nz(),this.load(),Ooa(this,null))};
g.k.Er=function(){var a=this.Qf();return 0<rE(a)&&this.getDuration()?qE(a,this.getCurrentTime()):0};
g.k.kp=function(){var a=this.getDuration();return Infinity===a?1:a?this.Er()/a:0};
g.k.Eb=function(){try{var a=this.Hq();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:nE(this.qp(),",",3),vbu:nE(this.Qf()),vpa:""+ +this.ym(),vsk:""+ +this.Zs(),ven:""+ +this.Bk(),vpr:""+this.getPlaybackRate(),vrs:""+this.rh(),vns:""+this.Ax(),vec:""+this.Zi(),vemsg:this.pe(),vvol:""+this.getVolume(),vdom:""+ +this.aD(),vsrc:""+ +!!this.Af(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.u.Pa(a,b,!1,this);this.bC(a)};
g.k.removeEventListener=function(a,b){this.u.lc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.u.dispatchEvent(a)};
g.k.YB=function(){this.C=!1};
g.k.XB=function(){this.C=!0;this.us(!0)};
g.k.RH=function(){this.C&&!this.zx()&&this.us(!0)};
g.k.xa=function(){this.I&&this.removeEventListener("volumechange",this.RH);g.E.prototype.xa.call(this)};
var rKa=!1,uKa=!0,sKa=!0,tKa=!0;g.k=g.GK.prototype;g.k.getData=function(){return this.stateData};
g.k.yc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.k.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.k.isError=function(){return g.V(this,128)};
g.k.isSuspended=function(){return g.V(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.v(QK,g.Q);g.k=QK.prototype;g.k.yp=function(){var a=this.i;return a.l instanceof uI||a.l instanceof CI||a.l instanceof wI};
g.k.OA=function(){return this.i.l.Ao()};
g.k.uG=function(){return this.i.i};
g.k.PA=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.vG=function(){return DI(this.i)};
g.k.QI=function(a){if(!Uz(a)){this.V&&(this.ya=this.G.isAtLiveHead(),this.va=Math.ceil(g.Sa()/1E3));var b=new yK(this.Of);a=zoa(a);b.Uf(a)}this.wG()};
g.k.uJ=function(){return!0};
g.k.yn=function(){return this.J instanceof CI};
g.k.Qu=function(){return this.J instanceof uI};
g.k.wG=function(){var a=this.Of;this.uJ()&&(a.l&&TK(a,!1),a.l=this,this.yp()&&yqa(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())Toa(b.value);this.i.C.ad_placement_start=!0}Goa(this.C);this.dL()};
g.k.dL=function(){this.J?this.ct(this.J):UK(this)};
g.k.Lp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Ei(0);UK(this,a,b)};
g.k.jK=function(){this.Lp()};
g.k.NR=function(){OI(this.l.l,"active_view_measurable")};
g.k.OR=function(){var a=this.l.l;LI(a)||Ena(a)||OI(a,"active_view_fully_viewable_audible_half_duration")};
g.k.RR=function(){};
g.k.SR=function(){};
g.k.TR=function(){};
g.k.UR=function(){};
g.k.XR=function(){var a=this.l.l;LI(a)||Ena(a)||OI(a,"active_view_viewable")};
g.k.zI=function(){return this.Qu()?[this.Cx()]:[]};
g.k.Hc=function(a){if(null!==this.l){this.Y||(a=new g.WI(a.state,new g.GK),this.Y=!0);var b=a.state;if(g.YI(a,2))this.l.qh();else{var c=a;(g.S(this.G.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.yc()&&!c.Gn.yc():c.state.yc())?(Joa(this.C),this.l.hn()):b.isError()?this.l.Yg(b.getData().errorCode):g.YI(a,4)&&(this.ea||this.l.fn())}if(null!==this.l){if(g.YI(a,16)&&(b=this.l.l,!(LI(b)||.5>b.i.getCurrentTime(2,!1)&&!g.S(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=
b.ad;if(c.Nu()){var d=g.S(b.u.G.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");wq(c.L,d)}b.ad.J.seek=!0}0>XI(a,4)&&!(0>XI(a,2))&&(b=this.l.l,LI(b)||(NI(b)?TI(b,"resume"):OI(b,"resume")));!g.S(this.G.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.YI(a,512)&&!g.OK(a.state)&&Hoa(this.C)}}};
g.k.ob=function(){return this.daiEnabled?Soa(this):!1};
g.k.resume=function(){this.l&&this.l.rz()};
g.k.Om=function(){this.l&&this.l.jd("adended")};
g.k.lk=function(){this.Om()};
g.k.Ei=function(a){this.Of.Ei(a)};
g.k.eN=function(a){this.Of.i.Na("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.l.Cf(a)};
g.k.wI=function(){return 0};
g.k.yI=function(){return 1};
g.k.gF=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a<SK(this)&&this.G.Qo(a,this.i.i.end)};
g.k.ct=function(a){g.ff(this.l);this.l=a=this.Fo.create(a,GI(vna(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Qa(this.Lp,!0),this);a.subscribe("adabandonedreset",g.Qa(this.Lp,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.NR,this);a.subscribe("adended",this.Lp,this);a.subscribe("aderror",this.jK,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.OR,this);a.subscribe("adoverlaymeasurableimpression",this.RR,this);a.subscribe("adoverlayunviewableimpression",this.SR,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.TR,this);a.subscribe("adoverlayviewableimmediateimpression",this.UR,this);a.subscribe("adpause",this.OC,this);a.subscribe("adplay",this.OC,this);a.subscribe("adunstarted",this.OC,this);a.subscribe("onAdUxUpdate",this.eN,this);a.subscribe("adviewableimpression",this.XR,this);a.Aa?a.Yg("ui_unstable"):a.Gq();Uoa(this,!1)};
g.k.OC=function(a){this.Ei(a)};
g.k.Cx=function(){return this.J};
g.k.isLiveStream=function(){return this.V};
g.k.reset=function(){return new QK(this.Of,this.G,this.C.reset(),this.i,this.Cl,this.lr,this.Fo,this.daiEnabled)};
g.k.xa=function(){g.ff(this.l);this.l=null;g.Q.prototype.xa.call(this)};$oa.prototype.create=function(a){return(a.l instanceof wI?this.u:""===a.I?this.i:this.l)(a)};VK.prototype.clickCommand=function(a,b,c){c=g.Rx(void 0===c?0:c);if(!a.clickTrackingParams||!c)return!1;Vy(this.client,c,g.Lx(a.clickTrackingParams),b);return!0};YK.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Ju.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
YK.prototype.replace=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];gpa(this,b)};var Q2;ZK.getInstance=function(){Q2=g.Ha("yt.clientLocationService.instance");Q2||(Q2=new ZK,g.Ga("yt.clientLocationService.instance",Q2,void 0));return Q2};
ZK.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.i?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.i.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.i.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=this.i.coords.accuracy,a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
ZK.prototype.handleResponse=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")?(this.localStorage=hpa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.lt("YT_CL",JSON.stringify({n9:a}),15552E3,void 0,!0))};
ZK.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Zr("web_enable_browser_geolocation_api")&&!g.Zr("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Zr("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.i=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
ZK.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null===a||void 0===a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null===a||void 0===a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null===a||void 0===a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};aL.prototype.tx=function(a,b){a={};var c=Gh([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in Vr||(a["X-Origin"]=window.location.origin),g.Zr("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in Vr&&(a["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return a};var cL;g.v(bL,aL);bL.prototype.tx=function(a,b){a=aL.prototype.tx.call(this,a,b);return Object.assign(Object.assign({},a),this.Zp)};var xpa=/[&\?]action_proxy=1/,wpa=/[&\?]token=([\w-]*)/,ypa=/[&\?]video_id=([\w-]*)/,zpa=/[&\?]index=([\d-]*)/,Apa=/[&\?]m_pos_ms=([\d-]*)/,Dpa=/[&\?]vvt=([\w-]*)/,rpa="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(" "),Bpa="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(" "),tpa={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"},upa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Cpa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};dL.prototype.Qr=function(a){this.player.hp().tick(a)};
dL.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return fL(this,a,b);var d=1===this.i;d&&this.Qr("a_bid_s");var e=mpa();if(null!==e)return d&&this.Qr("a_bid_f"),fL(this,a,b,e);e=npa();d&&$g(e,function(){c.Qr("a_bid_f")});
return e.then(function(f){return fL(c,a,b,f)})};
dL.prototype.reset=function(){this.l=this.i=1};g.v(gL,g.Q);g.k=gL.prototype;g.k.uG=function(){return this.i.i};
g.k.PA=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.vG=function(){return DI(this.i)};
g.k.yp=function(){return!1};
g.k.OA=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.QI=function(a){var b=this;g.S(this.u.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")&&R("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.u&&2!==this.i.u){var c=[];this.PA()||(c=zoa(a));this.i.u=1;$g(this.C.fetch(this.i.I,{Ot:this.i.B||void 0,Zd:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.u.isFullscreen();d=Fpa(b,d);var f=b.B;f.l&&d.isEmpty&&AK("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.vJ||(b.i.u=2,(new yK(b.l)).Uf(e),d.isEmpty||uz(b.I,
d.wl))}},function(){(new yK(b.l)).Uf(c);
var d=b.B;d.l&&AK("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.u&&(b.i.u=0);
b.PA()&&tL(b.l)})}};
g.k.wG=function(){};
g.k.gF=function(){};var Ipa=Object.freeze([aJ,dJ,CI,fJ,uI]);g.v(hL,QK);g.k=hL.prototype;g.k.zI=function(){for(var a=this.u.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.uJ=function(){return(0>=this.B?this.u.i:this.u.i.slice(this.B)).some(function(a){return a.Jr()})};
g.k.yn=function(){return this.I instanceof CI||this.I instanceof fJ};
g.k.Qu=function(){return this.I instanceof uI||this.I instanceof dJ};
g.k.dL=function(){this.daiEnabled?jI(this.G)&&Soa(this):Hpa(this)};
g.k.ct=function(a){var b=Gpa(a);this.I&&b&&this.L!==b&&(b?yqa(this.Of):Aqa(this.Of),this.L=b);this.I=a;this.daiEnabled&&(this.B=this.u.i.findIndex(function(c){return c===a}));
QK.prototype.ct.call(this,a)};
g.k.lk=function(){this.B=this.u.i.length;this.l&&this.l.jd("adended");UK(this)};
g.k.Om=function(){this.Lp()};
g.k.Lp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ei(0),a?UK(this,a,b):Hpa(this))};
g.k.jK=function(){1==this.u.l?UK(this):this.Lp()};
g.k.Cx=function(){var a=0>=this.B?this.u.i:this.u.i.slice(this.B);return 0<a.length?a[0]:null};
g.k.yp=function(){return this.L};
g.k.OA=function(){return this.u.i.every(function(a){return a.Ao()})};
g.k.reset=function(){return new hL(this.Of,this.G,this.C.reset(),this.i,this.Cl,this.lr,this.Fo,this.daiEnabled)};
g.k.wI=function(){return this.B};
g.k.yI=function(){return this.u.i.length};Jpa.prototype.uI=function(){return this.i};g.v(Kpa,wI);g.v(Mpa,wI);Npa.prototype.create=function(a,b){function c(l){return new uI(l,d.u,b,d.i,d.l)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,h=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new CI(f):null!=h?new Mpa(h,c,this.i):null!=a?new Kpa(a,c):null};Opa.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 Bz(h.u,h.l,h.daiEnabled,h.B),m=h.Kd;m&&(l.Kd=new Az(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.Kd=f;e.push(Ppa(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Ppa(this,d.value,c,b)),c++;return e};g.v(iL,g.E);iL.prototype.addEventListener=function(a,b){this.i=b};
iL.prototype.removeEventListener=function(){this.i=null};
g.v(jL,g.E);jL.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
jL.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.v(Spa,g.E);var kL=null,Upa=null,lL=null,mL=null,nL=null;g.Ga("yt.www.ads.eventcache.getLastCompanionData",function(){return kL},void 0);
g.Ga("yt.www.ads.eventcache.getLastPlaShelfData",function(){return Upa},void 0);
g.Ga("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return lL},void 0);
g.Ga("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return mL},void 0);
g.Ga("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return nL},void 0);var fqa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(qL,g.E);qL.prototype.xa=function(){this.Dd.clear();g.E.prototype.xa.call(this)};
qL.prototype.pd=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.q(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
qL.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&gqa(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?cqa(this,e):"confirmDialogEndpoint"===d?dqa(this,e):fqa.hasOwnProperty(d)||gqa(this,d,e,b,c)}};g.v(lqa,g.E);g.v(sL,g.Q);g.k=sL.prototype;g.k.RC=function(){return!tqa(this,wqa(this))};
g.k.qx=function(){return this.Ia};
g.k.xa=function(){this.va=!0;g.xx(this.B);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.uK,this);if(kI(this.i)){var a=oqa(this.i);a.removeEventListener("updateKevlarOrC3Companion",Tpa);a.removeEventListener("onPlaShelfInfoCardsReady",Vpa);a.removeEventListener("updateEngagementPanelAction",Wpa);a.removeEventListener("changeEngagementPanelVisibility",Xpa);a.removeEventListener("scrollToEngagementPanel",Ypa);window.removeEventListener("yt-navigate-start",Zpa);nL=mL=lL=kL=null}a=
g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())zqa(this,b.value);TK(this,!1);this.Go.clear();this.ea=[];this.L.clear();g.ff(this.Y);this.Y=new Map;g.ff(this.J);this.J=new Map;this.u.clear();g.Q.prototype.xa.call(this)};
g.k.ID=function(a){if(a instanceof Tz&&!a.l&&(!Vz(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.V(this.i.ub(1),32))this.L.add(a);else{var b=this.u.get(a);b&&((g.S(this.i.T().experiments,"enable_eviction_protection_for_bulleit")?this.l?this.l.OA():1:1)?b.QI(a):a.deactivate())}};
g.k.DS=function(a){a instanceof Tz&&(a.l&&(a.l=!1),this.L.delete(a))};
g.k.uK=function(a){Coa(this.Da,a);null==this.I?g.ds(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}),uL(this,[this.I],a))};
g.k.QD=function(a){uL(this,[this.I],[a])};
g.k.vK=function(a){var b=1E3*a;this.l&&this.l.gF(b);for(var c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d.value.gF(b);g.Bb(this.La.i,1E3*a)};
g.k.Ek=function(a){switch(a){case "control_play":this.l&&(a=this.l,a.Qu()?a.G.Gc().playVideo():a.yn()&&a.l.hn());break;case "control_pause":this.l&&(a=this.l,a.Qu()?a.G.Gc().pauseVideo():a.yn()&&a.l.fn())}};
g.k.gN=function(a){this.l&&this.l.Hc(a)};
g.k.jS=function(a){0>XI(a,16)&&(this.L.forEach(this.ID,this),this.L.clear())};
g.k.TU=function(){this.l&&this.l.ob()};
g.k.WU=function(){if(jI(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.I&&Cna(b.l,a,b.getDuration()))}};
g.k.LR=function(){this.Ua=!0;if(this.l){var a=this.l;a.l&&a.l.eg()}};
g.k.VR=function(a){if(this.l)this.l.onAdUxClicked(a)};
g.k.XU=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.G.isMuted();NI(b)||OI(b,a?"mute":"unmute")}};
g.k.PS=function(a){if(this.l){var b=this.l.l.l;LI(b)||TI(b,a?"fullscreen":"end_fullscreen")}};
g.k.Uf=function(a,b){this.i.Uf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Go.delete(b),this.u.delete(b)};
g.k.pW=function(){for(var a=[],b=g.q(this.Go),c=b.next();!c.done;c=b.next())c=c.value,Uz(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||gY(b,"cuerangemarkersupdated",a)};
g.k.Ei=function(a){this.i.Ei(a);switch(a){case 1:this.Ox=1;break;case 0:this.Ox=0}};
g.k.IE=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.V:!1};
g.k.Om=function(){this.l&&this.l.yp()&&this.l.Om()};
g.k.lk=function(){this.l&&this.l.yp()&&this.l.lk()};
g.k.gx=function(){};
g.k.Uw=function(){};
g.k.Rb=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.I&&Cna(b.l,a,b.getDuration()))}};
g.k.yn=function(){return jI(this.i)&&!!this.l&&this.l.yn()};
g.k.executeCommand=function(a,b,c){var d=this.fb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.Nu()?QI(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.uI=function(){return this.Aa};
g.k.vI=function(){return this.Ga};g.v(vL,g.E);vL.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.v(wL,vL);g.v(Dqa,g.E);var Fqa=1;g.v(g.yL,g.E);g.k=g.yL.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.K,d=a.Ea;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.MG&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.og(a.D);if(c){if(c=zL(this,e,"class",c))AL(this,e,"class",c),this.Za[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Za[f.value]=e;AL(this,e,"class",d.join(" "))}d=a.ra;c=a.S;if(d)b=zL(this,e,"child",d),void 0!==b&&e.appendChild(g.pg(b));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=zL(this,e,"child",f),null!=f&&e.appendChild(g.pg(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Kb&&(h=xL(),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.rg(e,f,d++))}if(a=a.U)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],AL(this,b,c,"string"===typeof f?
zL(this,b,c,f):f);return e};
g.k.Ca=function(a){return this.Za[a]};
g.k.Ba=function(a,b){"number"===typeof b?g.rg(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.sg(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.Ta(c,a[c])};
g.k.Ta=function(a,b){(a=this.Tb["{{"+a+"}}"])&&AL(this,a[0],a[1],b)};
g.k.xa=function(){this.Za={};this.Tb={};this.detach();g.E.prototype.xa.call(this)};g.v(g.W,g.yL);g.k=g.W.prototype;g.k.dd=function(a,b){this.Ta(b||"content",a)};
g.k.show=function(){this.vb||(g.Bl(this.element,"display",""),this.vb=!0)};
g.k.hide=function(){this.vb&&(g.Bl(this.element,"display","none"),this.vb=!1)};
g.k.Sb=function(a){this.ea=a};
g.k.Pa=function(a,b,c){return this.N(this.element,a,b,c)};
g.k.N=function(a,b,c,d){c=(0,g.C)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.lc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;yg(a);a.focus()};
g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.yL.prototype.xa.call(this)};g.v(g.CL,g.W);g.CL.prototype.subscribe=function(a,b,c){return this.Ia.subscribe(a,b,c)};
g.CL.prototype.unsubscribe=function(a,b,c){return this.Ia.unsubscribe(a,b,c)};
g.CL.prototype.Wf=function(a){return this.Ia.Wf(a)};
g.CL.prototype.X=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Ia.X.apply(this.Ia,[a].concat(g.la(c)))};var vKa=new WeakSet;g.v(DL,g.CL);g.k=DL.prototype;g.k.bind=function(a){if(!this.Ra&&a.renderer){var b=Object.assign({},Cqa(this.api,this.Va),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ra=a;this.element.setAttribute("id",this.Ra);this.fb&&g.K(this.element,this.fb);this.V=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Pg(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.CL.prototype.hide.call(this);null!=this.J&&this.kb(this.element,!1)};
g.k.show=function(){g.CL.prototype.show.call(this);if(!this.jb){this.jb=!0;var a=this.V&&this.V.impressionCommand;a&&Hqa(this,a,null)}null!=this.J&&this.kb(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!vKa.has(a)){var b=this.element;this.api.Hu(b)&&this.vb&&this.api.Gb(b,this.i);vKa.add(a)}if(a=this.V&&this.V.clickCommand)a=this.jL(a),Hqa(this,a,this.AI())};
g.k.jL=function(a){return a};
g.k.AI=function(){return null};
g.k.jN=function(a){var b=this.va;b.J=!0;b.l=a.touches.length;b.i.isActive()&&(b.i.stop(),b.C=!0);a=a.touches;b.I=Eqa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.L=Infinity,b.V=Infinity):(b.L=c.clientX,b.V=c.clientY);for(c=b.u.length=0;c<a.length;c++){var d=a.item(c);b.u.push(d.identifier)}};
g.k.iN=function(a){var b=this.va;a=a.changedTouches.item(0);if(Pd()&&!(0<=g.Dc(Qd(),8))||a&&Math.pow(a.clientX-b.L,2)+Math.pow(a.clientY-b.V,2)>Math.pow(5,2))b.B=!0};
g.k.hN=function(a){if(this.va){var b=this.va,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.I&&Eqa(b,c)&&(b.ea=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.Pg=function(a,b){this.api.Pg(a,this);this.api.im(a,b)};
g.k.kb=function(a,b){this.api.Hu(a)&&this.api.kb(a,b,this.i)};
g.k.xa=function(){this.clear(null);this.lc(this.eb);for(var a=g.q(this.ya),b=a.next();!b.done;b=a.next())this.lc(b.value);g.CL.prototype.xa.call(this)};g.v(RL,DL);
RL.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)fs(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.K(this.element,a);null!=b.text&&(a=g.Yz(b.text),g.sc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.CL({D:"span",K:"ytp-ad-button-text",ra:a}),g.F(this,this.B),this.B.Ba(this.element)));null!=b.icon&&(b=QL(b.icon),null!=
b&&(this.u=new g.CL({D:"span",K:"ytp-ad-button-icon",S:[b]}),g.F(this,this.u)),this.C?g.rg(this.element,this.u.element,0):this.u.Ba(this.element))}};
RL.prototype.clear=function(){this.hide()};
RL.prototype.onClick=function(a){var b=this;DL.prototype.onClick.call(this,a);Zqa(this).forEach(function(c){return b.Va.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(SL,g.E);SL.prototype.xa=function(){this.l&&g.au(this.l);this.i.clear();TL=null;g.E.prototype.xa.call(this)};
SL.prototype.register=function(a,b){b&&this.i.set(a,b)};
var TL=null;g.v(VL,DL);
VL.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.ds(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new RL(this.api,this.Va,this.layoutId,this.i),g.F(this,this.button),this.button.init(mI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Yz(a)),this.button.Ba(this.element),this.I&&!g.Lq(this.button.element,"ytp-ad-clickable")&&g.K(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.CL({D:"div",K:"ytp-ad-hover-text-container"}),this.C&&(b=new g.CL({D:"div",K:"ytp-ad-hover-text-callout"}),b.Ba(this.u.element),g.F(this,b)),g.F(this,this.u),this.u.Ba(this.element),b=UL(a),g.rg(this.u.element,b,0)),this.show())};
VL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();DL.prototype.hide.call(this)};
VL.prototype.show=function(){this.button&&this.button.show();DL.prototype.show.call(this)};g.v(XL,DL);XL.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&WL(a)||"";g.sc(b)?(g.S(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&fs(Error("Found AdImage without valid image URL")):(this.l?g.Bl(this.element,"backgroundImage","url("+b+")"):fg(this.element,{src:b}),fg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
XL.prototype.clear=function(){this.hide()};g.v(YL,DL);g.k=YL.prototype;g.k.hide=function(){DL.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;DL.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.ds(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.ds(Error("ConfirmDialogRenderer.cancelLabel was not set.")):cra(this,b):g.ds(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.xx(this.l);this.hide()};
g.k.FD=function(){this.hide()};
g.k.wA=function(){var a=this.u.cancelEndpoint;a&&this.Va.executeCommand(a,this.macros);this.hide()};
g.k.GD=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Va.executeCommand(a,this.macros);this.hide()};g.v(ZL,DL);g.k=ZL.prototype;
g.k.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.ds(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.ds(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.K(this.B,a)}a={};b.defaultText?
(c=g.Yz(b.defaultText),g.sc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Rl(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=QL(b.defaultIcon),this.Ta("untoggledIconTemplateSpec",c),b.toggledIcon?(this.L=!0,c=QL(b.toggledIcon),this.Ta("toggledIconTemplateSpec",c)):(g.Rl(this.I,!0),g.Rl(this.C,!1)),g.Rl(this.l,!1)):g.Rl(this.Y,!1);g.Rb(a)||this.update(a);b.isToggled&&
(g.K(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));$L(this);this.N(this.element,"change",this.UF);this.show()}};
g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.UF());DL.prototype.onClick.call(this,a)};
g.k.UF=function(){var a=this;g.M(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());dra(this,this.isToggled()).forEach(function(b){return a.Va.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);$L(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.M(this.B,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;$L(this)};
g.k.isToggled=function(){return this.l.checked};g.v(aM,vx);aM.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 Xz&&this.u(b)}};g.v(bM,DL);g.k=bM.prototype;g.k.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.ds(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&fs(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&fs(Error("AdFeedbackRenderer.title was not set.")),hra(this,b)):g.ds(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){ju(this.I);ju(this.L);this.C.length=0;this.hide()};
g.k.hide=function(){this.l&&this.l.hide();this.u&&this.u.hide();DL.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;DL.prototype.show.call(this);this.I.focus()};
g.k.pK=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.X("a");this.hide()};
g.k.RU=function(){this.hide()};
ira.prototype.isChecked=function(){return this.u.checked};g.v(cM,YL);cM.prototype.FD=function(a){YL.prototype.FD.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
cM.prototype.wA=function(a){YL.prototype.wA.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
cM.prototype.GD=function(a){YL.prototype.GD.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.X("b")};g.v(dM,DL);g.k=dM.prototype;
g.k.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.ds(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&fs(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.F(this,this.l),
this.l.init(mI("button"),a,this.macros),this.l.Ba(this.element);b.title&&(a=g.Yz(b.title),this.Ta("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=UL(a[c]);if(!g.sc(d.textContent)){var e=ng("LI");e.appendChild(d);this.Da.appendChild(e)}}else g.Rl(this.Da,!1);b.dialogMessage&&(a=UL(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.Yz(b.confirmLabel),this.Ta("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?fs(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?kra(this,a):c&&lra(this,c),this.B=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.F(this,this.B),this.B.init(mI("button"),b,this.macros),this.B.Pa("click",this.pT,this),this.B.Ba(this.Ua)));
mra(this)}};
g.k.clear=function(){ju(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();DL.prototype.hide.call(this);this.Y&&this.Y.focus()};
g.k.show=function(){this.l&&this.l.show();this.B&&this.B.show();this.Ga||(jra(this),this.Ga=!0);this.Y=document.activeElement;DL.prototype.show.call(this);this.L.focus()};
g.k.VF=function(){this.I&&this.I.confirmServiceEndpoint&&this.Va.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.X("d");this.hide()};
g.k.pT=function(){var a=this.u?this.u:this.C;a&&!a.vb&&(this.hide(),a.show())};g.v(eM,VL);eM.prototype.init=function(a,b,c){VL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(pra(this,a,c),this.show())};
eM.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();VL.prototype.hide.call(this)};
eM.prototype.show=function(){this.button&&this.button.show();VL.prototype.show.call(this)};
eM.prototype.clear=function(){this.hide()};g.v(fM,DL);fM.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.vg(this.element,EL(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?WL(a):"",c=(c=this.api.getVideoData(1))&&c.Rj,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()};
fM.prototype.isTemplated=function(){return this.l.isTemplated||!1};
fM.prototype.clear=function(){this.hide()};var tra={seekableStart:0,seekableEnd:1,current:0};g.v(hM,DL);hM.prototype.clear=function(){this.dispose()};(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?Vga: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=HJa.get(l);m||(m={},HJa.set(l,m));return Td(m,[this].concat(g.la(h)),c,d)}})(function(a){var b=g.og("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.og("DIV");g.Pl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.sg(b);return a});g.v(g.kM,g.E);g.k=g.kM.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Sz(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.vb||(lM(this,!0),this.state=1,a?this.delay.start(a):this.Sz()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.vb&&(lM(this,!0),this.state=4,this.delay.start(this.B)))};
g.k.Sz=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:lM(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();lM(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.Sz()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.xa.call(this)};g.v(mM,hM);g.k=mM.prototype;
g.k.init=function(a,b,c){hM.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.ds(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ua&&g.K(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.l.nu():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(mI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Rj&&b.thumbnail?this.I.init(mI("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.I.hide();jM(this);hM.prototype.hide.call(this)};
g.k.show=function(){iM(this);this.u.show();this.B.show();this.I.show();hM.prototype.show.call(this)};
g.k.Wp=function(){this.hide()};
g.k.On=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ga&&a>=this.Aa?(g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.Y.hide(),this.Ga=!0,this.X("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(gM(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.v(oM,hM);g.k=oM.prototype;
g.k.init=function(a,b,c){hM.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.sc(g.rd(d[0].url))&&(d[0].url=a.wg)}else g.cy(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(mI("ad-image"),b.image,c);this.I.init(mI("ad-text"),
b.headline,c);this.B.init(mI("ad-text"),b.description,c);this.u.init(mI("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.Aa=b.startMs||0;iM(this)}else g.by(Error("FlyoutCtaRenderer has no valid action button."));else g.by(Error("FlyoutCtaRenderer has no description AdText."));else g.by(Error("FlyoutCtaRenderer has no headline AdText."));else g.cy(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){hM.prototype.onClick.call(this,a);this.api.pauseVideo();!g.ug(this.u.element,a.target)&&this.Y&&this.Va.executeCommand(this.Y,this.macros)};
g.k.On=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(jM(this),g.Nq(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Wp=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.u&&this.u.show();hM.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();hM.prototype.hide.call(this)};g.v(pM,DL);g.k=pM.prototype;g.k.init=function(a,b,c){var d=this;DL.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(qra(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Va.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();DL.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();DL.prototype.show.call(this)};
g.k.WF=function(){Pq(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.Na("onYtShowToast",this.l.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.ya.length&&this.WF();DL.prototype.onClick.call(this,a)};g.v(qM,g.E);g.k=qM.prototype;g.k.xa=function(){this.reset();g.E.prototype.xa.call(this)};
g.k.reset=function(){g.xx(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.lN,this);this.B.N(this.u,"mouseout",this.kN,this);this.i?this.i.start():(this.I=this.l=!0,g.Bl(this.u,{opacity:this.V}))};
g.k.lN=function(){this.l&&(this.l=!1,this.J.play());this.C.stop();this.i&&this.i.stop()};
g.k.kN=function(){this.I?this.C.start():this.i&&this.i.start()};
g.k.uH=function(){this.l||(this.l=!0,this.L.play(),this.I=!0)};g.v(rM,hM);g.k=rM.prototype;
g.k.init=function(a,b,c){hM.prototype.init.call(this,a,b,c);this.L=b;this.Aa=sra(this);if(!b||g.Rb(b))g.ds(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Rb(b.message))g.ds(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=QL(a);null==b?g.ds(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.CL({D:"button",Ea:["ytp-ad-skip-button","ytp-button"],S:[{D:"span",
K:"ytp-ad-skip-button-icon",S:[b]}]}),g.F(this,this.I),this.I.Ba(this.B.element),this.u=new fM(this.api,this.Va,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.u.init(mI("ad-text"),this.L.message,c),g.F(this,this.u),g.rg(this.I.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.ya.length)&&c.i&&(OF?0:"ontouchstart"in document.documentElement&&(kl()||jl()))&&(this.lc(this.eb),d&&this.lc(d),this.ya=[this.N(this.element,"touchstart",this.jN,this),this.N(this.element,"touchmove",
this.iN,this),this.N(this.element,"touchend",this.hN,this)])}};
g.k.clear=function(){this.Y.reset();this.hide()};
g.k.hide=function(){this.B.hide();this.u&&this.u.hide();jM(this);hM.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.fu(a),hM.prototype.onClick.call(this,a),this.X("j"),this.Ga||!this.Aa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.jL=function(a){if(!g.S(this.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")||!this.Ga)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&&rra(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.AI=function(){return"skip"};
g.k.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();iM(this);hM.prototype.show.call(this)};
g.k.Wp=function(){this.X("k")};
g.k.On=function(){};g.v(sM,hM);g.k=sM.prototype;
g.k.init=function(a,b,c){hM.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Rb(a)?null:a){this.I=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.eF(this.api.T().experiments,"preskip_button_style_ads_backend")&&uG(this.api.T());this.u=new mM(this.api,this.Va,this.layoutId,this.i,this.l,d);this.u.init(mI("preskip-component"),a,c);nM(this.u);g.F(this,this.u);this.u.Ba(this.element);
g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.u.subscribe("i",this.GT,this)}else b.skipOffsetMilliseconds&&(this.I=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Rb(b)?null:b;null==b?g.ds(Error("SkipButtonRenderer was not set in player response.")):(this.B=new rM(this.api,this.Va,this.layoutId,this.i,this.l,this.Y),this.B.init(mI("skip-button"),b,c),g.F(this,this.B),this.B.Ba(this.element),this.show())};
g.k.show=function(){this.L&&this.B?this.B.show():this.u&&this.u.show();iM(this);hM.prototype.show.call(this)};
g.k.Wp=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();jM(this);hM.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();jM(this);hM.prototype.hide.call(this)};
g.k.GT=function(){tM(this,!0)};
g.k.On=function(){g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.u||1E3*this.l.getProgressState().current>=this.I&&tM(this,!0):1E3*this.l.getProgressState().current>=this.I&&tM(this,!0)};g.v(uM,RL);uM.prototype.init=function(a,b,c){RL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Yz(b.text),a=!g.sc(a));a?null==b.navigationEndpoint?fs(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?fs(Error("Button style was not a link-style type in renderer,")):this.show():fs(Error("No visit advertiser text was present in the renderer."))};g.v(vM,DL);vM.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);a=b.text;g.sc(EL(a))?fs(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 fM(this.api,this.Va,this.layoutId,this.i),a.init(mI("simple-ad-badge"),b,c),a.Ba(this.element),g.F(this,a)),this.show())};
vM.prototype.clear=function(){this.hide()};g.v(wM,g.Q);g.k=wM.prototype;g.k.nu=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.qe.lc(this.i)};
g.k.Rb=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.X("h")};
g.k.getProgressState=function(){return this.l};
g.k.Hc=function(a){g.YI(a,2)&&this.X("g")};g.v(xM,g.Q);g.k=xM.prototype;g.k.nu=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.i.start(),this.B=Date.now())};
g.k.stop=function(){this.u&&(this.u=!1,this.i.stop())};
g.k.Rb=function(){var a=Date.now(),b=a-this.B;this.I?(this.B=a,this.l+=b):this.l+=100;a=!1;this.l>this.durationMs&&(this.l=this.durationMs,this.i.stop(),a=!0,this.I&&this.J&&500<b&&R("Survey TimerProgressProvider completed with an elapsedTimeMs greater than TimerUpdateInterval",void 0,void 0,{elapsedTimeMs:b}));this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.l/1E3};this.Va&&this.Va.Rb(this.C.current);this.X("h");a&&this.X("g")};
g.k.getProgressState=function(){return this.C};g.v(AM,hM);g.k=AM.prototype;g.k.init=function(a,b,c){var d;hM.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){fs(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new fM(this.api,this.Va,this.layoutId,this.i);this.u.init(mI("ad-text"),a,{});this.u.Ba(this.element);g.F(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){jM(this);hM.prototype.hide.call(this)};
g.k.Wp=function(){this.hide()};
g.k.On=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.l instanceof wM?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.l instanceof xM?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.yM(a);gM(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){iM(this);hM.prototype.show.call(this)};g.v(BM,fM);BM.prototype.onClick=function(a){fM.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(GM,g.CL);GM.prototype.Rb=function(){var a=this.l.getProgressState();this.Ic.style.width=100*FM(new CM(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
GM.prototype.u=function(){g.YF(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("h",this.Rb,this),this.Rb()):-1!==this.i&&(this.hide(),this.l.Wf(this.i),this.i=-1))};g.v(HM,DL);
HM.prototype.init=function(a,b,c,d){DL.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new sM(this.api,this.Va,this.layoutId,this.i,this.l,this.I),c.Ba(this.C),c.init(mI("skip-button"),a.skipAdRenderer,this.macros),g.F(this,c)):a.adPreviewRenderer&&(c=new mM(this.api,this.Va,this.layoutId,this.i,this.l,!1),c.Ba(this.C),c.init(mI("ad-preview"),a.adPreviewRenderer,this.macros),nM(c),g.F(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new pM(this.api,this.Va,this.layoutId,this.i),c.Ba(this.Y),c.init(mI("instream-user-sentiment"),a,this.macros),g.F(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new oM(this.api,this.Va,this.layoutId,this.i,this.l),g.F(this,c),c.Ba(this.L),c.init(mI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new vM(this.api,this.Va,this.layoutId,
this.i,!0),g.F(this,c),c.Ba(this.u),c.init(mI("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 AM(this.api,this.Va,this.layoutId,this.i,this.l,d),g.F(this,d),d.Ba(this.u),d.init(mI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new eM(this.api,this.Va,this.layoutId,
this.i,this.element),g.F(this,a),a.Ba(this.u),a.init(mI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=ura(this)&&this.B?this.B:this.u))&&(a=new uM(this.api,this.Va,this.layoutId,this.i),g.F(this,a),a.Ba(d),a.init(mI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!VF(b)&&"3"==b.controlsType&&(b=new GM(this.api,this.l),b.Ba(this.Aa),g.F(this,b));g.S(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.K(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
HM.prototype.clear=function(){this.hide()};g.Ga("yt.pubsub.publish",g.Ku,void 0);var PM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var R2={},xra=(R2.WEB_UNPLUGGED="^unplugged/",R2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",R2.WEB_UNPLUGGED_OPS="^unplugged/",R2.WEB_UNPLUGGED_PUBLIC="^unplugged/",R2.WEB_CREATOR="^creator/",R2.WEB_KIDS="^kids/",R2.WEB_EXPERIMENTS="^experiments/",R2.WEB_MUSIC="^music/",R2.WEB_REMIX="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",R2);MM.prototype.C=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?PM:c;var d={context:$K(a.clickTrackingParams,!1,this.B)};var e=this.i(a);if(e){this.l(d,e,b);var f,h;b=g.JM(this.u());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=zra(KM(b),void 0);d={input:f,aq:LM(f),Ju:d,config:Object.assign({},void 0)};d.config.Ko?d.config.Ko.identity=c:d.config.Ko={identity:c};return d}g.by(new g.Pv("Error: Failed to create Request from Command.",
a))};
ea.Object.defineProperties(MM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(NM,MM);NM.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",aq:LM("/getDatasyncIdsEndpoint","GET"),Ju:{}}};
NM.prototype.u=function(){return[]};
NM.prototype.i=function(){};
NM.prototype.l=function(){};var wKa={},Ara=(wKa.GET_DATASYNC_IDS=NM,wKa);g.v(RM,MM);RM.prototype.u=function(){return RJa};
RM.prototype.i=function(a){return a.subscribeEndpoint};
RM.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)};
ea.Object.defineProperties(RM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(SM,MM);SM.prototype.u=function(){return SJa};
SM.prototype.i=function(a){return a.unsubscribeEndpoint};
SM.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
ea.Object.defineProperties(SM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(TM,MM);TM.prototype.u=function(){return OJa};
TM.prototype.i=function(a){return a.feedbackEndpoint};
TM.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))};
ea.Object.defineProperties(TM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(UM,MM);UM.prototype.u=function(){return PJa};
UM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
UM.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(VM,MM);VM.prototype.u=function(){return QJa};
VM.prototype.i=function(a){return a.playlistEditEndpoint};
VM.prototype.l=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(WM,MM);WM.prototype.u=function(){return NJa};
WM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
WM.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};XM.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.cy(f)}));
if(this.i){var e=gi(g.ii(5,zi(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new window.Request(a,b);return Promise.resolve(fetch(e).then(function(f){return c.handleResponse(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.cy(f)}))};
XM.prototype.handleResponse=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.cy(new g.Pv("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var YM;var Hra=[],$M=!1;Iv.prototype.Ad=function(a){this.handleError(a)};
Iv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Zr("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Zr("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Nra(this,b);break;case "TRANSACTION_ENDED":this.u&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},
b),{hasWindowUnloaded:this.l}),this.i("idbTransactionAborted",a)}};aN.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){var m=a.interpreterSafeScript;h=g.gc("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";fc(h);fc(h);h=(h=ac())?h.createScript(m):m;h=(new ic(h,hc)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=fd(g.gc("From proto message. b/166824318"),
l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Pra(this,h,l,a.program,b,c,d)}else g.cy(Error("Cannot initialize botguard without program"))};
aN.prototype.ge=function(){return!!this.i};
aN.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null};
aN.prototype.dispose=function(){this.i=null};var bN=new aN,cN=0;var S2={},xKa=(S2["api.invalidparam"]=2,S2.auth=150,S2["drm.auth"]=150,S2["heartbeat.net"]=150,S2["heartbeat.servererror"]=150,S2["heartbeat.stop"]=150,S2["html5.unsupportedads"]=5,S2["fmt.noneavailable"]=5,S2["fmt.decode"]=5,S2["fmt.unplayable"]=5,S2["html5.missingapi"]=5,S2["html5.unsupportedlive"]=5,S2["drm.unavailable"]=5,S2);g.v(gN,g.E);g.k=gN.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&Ez(c,UJa,VJa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Xj&&!this.V.has(a)&&(this.V.add(a),g.Kv("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.cy(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&&Ez(b,UJa,VJa))};
g.k.getBandwidthEstimate=function(){return BF(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.X(this.app);b&&(a={gpu:(0,g.BW)(),d:a},b.handleError(new g.vE("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.L.slice()};
g.k.getInternalApiInterface=function(){return g.Mb(this.l)};
g.k.tP=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.Gl.subscribe(a,c)};
g.k.pV=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.Gl.unsubscribe(a,b)};
g.k.getPlayerState=function(){return MEa(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&&CY(this.app,!0,this.playerType);FY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.Z("h5_csi_seek_latency_action")&&(this.app.hp().u.i=(0,g.P)())};
g.k.seekToStreamTime=function(a,b,c){this.i&&CY(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.X(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Qc()&&(l=h.getStreamTimeOffset());FY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.X(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.X(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&FY(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.getIngestionTime(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.Xf.volume};
g.k.setVolume=function(a){bsa(this,a)};
g.k.isMuted=function(){return this.app.Xf.muted};
g.k.mute=function(){csa(this)};
g.k.unMute=function(){dsa(this)};
g.k.playVideo=function(){this.i&&CY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ld()){var b=TN(this.app.sb());if(!OIa(b)){b.Ek("control_play");return}if(PIa(b))return}3===a?g.qN(this.app.sb()).Ek("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Ld()){var b=TN(this.app.sb());if(!OIa(b)){b.Ek("control_pause");return}}3===a?g.qN(this.app.sb()).Ek("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.W.eb&&a.Wa.X("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.X(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.Xb){var b=a.l||a.Z("web_player_admin_origin_killswitch")?a.Zc[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Zj?ZJa:YJa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.X(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.X(this.app,this.playerType);return a?(a=g.Qe(a.Tm(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.X(this.app,this.playerType);return a?g.Qe(a.Tm(),function(b){return b.qualityLabel}):[]};
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.bb().resize()};
g.k.channelSubscribed=function(){this.Na("SUBSCRIBE",nY(this.app).Rh)};
g.k.channelUnsubscribed=function(){this.Na("UNSUBSCRIBE",nY(this.app).Rh)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.X(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.X(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=eFa(this.app);b&&(b.u=a,b.Ma())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=eFa(this.app);b&&(g.M(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.hf(b,g.FO(b.B.jc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.X(this.app,this.playerType);a&&a.Ed("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Yj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=HF("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,ala)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return nY(this.app).fB};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.NN(this.app.sb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.NN(this.app.sb()))&&a.loaded&&a.lW()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(dN(a,b,c),this.playerType),this.i&&CY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(dN(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Zra(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&CY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Zra(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.L)return"";var b=nY(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.L?"":a.getVideoEmbedCode(nY(this.app).videoId,this.app.bb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return VEa(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=b.i.Um(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.i.removeCueRange(e);gY(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&&CY(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&&CY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&CY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&CY(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.mQ=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=a.ib(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.sb();return"captions"===a?(a=g.NN(d))&&a.hf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.X(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.sb();if("captions"===a)return(b=g.NN(b))&&b.getOptions();if(!a)return a=[],g.NN(b)&&a.push("captions"),a};
g.k.Gx=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.X(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(){CEa(this.app,!0)};
g.k.hideVideoInfo=function(){CEa(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.X(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===xKa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.sN(this.app.sb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.sN(this.app.sb());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.X(this.app);a&&a.sendAbandonmentPing()};
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.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){bFa(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().V.add(a,{Sw:b,hw:c})};
g.k.updateLastActiveTime=function(){vu()};
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().Hi!==a&&(this.app.T().Hi=a,(a=g.X(this.app,this.playerType))&&PX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.NN(this.app.sb()).AM(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.NN(this.app.sb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.NN(this.app.sb());a&&a.iM()};
g.k.setFauxFullscreen=function(a){rx();this.app.Ii(a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.bb().setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Ld()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.X(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Gh();if(!c)return null;b=c.levels[b];return b?(a=g.oH(b,a))?{column:a.column,columns:a.columns,height:a.Dy,row:a.row,rows:a.rows,url:a.url,width:a.Ey}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Gh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Qc();return b.ww(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Gh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Ys(),minFrameIndex:b.vA()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Gh();return a?a.levels.length:0};
g.k.bQ=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.X(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Mj};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.qN(this.app.sb()).Ek("control_set_audio_track",a);var b=g.X(this.app,this.playerType);if(b){var c;if(!b.isDisposed()&&!g.V(b.playerState,128))if(null===(c=b.videoData.u)||void 0===c?0:c.i)b.Qa.setAudioTrack(a);else{a:if(c=b.videoData,c.J&&!cE(c.J)||a==c.Qj||!c.xb||0>=c.xb.length)c=!1;else{for(var d=g.q(c.xb),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof TG)){c=!1;break a}var f=a.Nc.getId();e.u&&(e.u.i=f,e.l=null)}c.Qj=
a;c=!0}c&&(b.X("internalaudioformatchange",b.videoData,!0),HX(b)&&b.Ha("hlsaudio",a.id))}}};
g.k.cQ=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.X(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.X(this.app,this.playerType);return a&&a.getVideoData().l?eB(a.ke?lBa(a.rg,a.ke,a.Dr()):uH):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.X(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.NN(this.app.sb());return a?a.pQ():null};
g.k.resetSubtitlesUserSettings=function(){g.NN(this.app.sb()).wV()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Ne();return this.app.getVisibilityState(this.Df(),this.isFullscreen()||VF(this.app.T()),a,this.isInline(),this.app.Kr(),this.app.Ir())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Xu};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.Tf(a,b))};
g.k.Qc=function(){var a=g.X(this.app,void 0);return a?a.Qc():0};
g.k.Ne=function(){return this.app.Ne()};
g.k.Df=function(){var a=g.X(this.app,this.playerType);return!!a&&a.Df()};
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.ib().videoId||(a.index=b.index)):pY(this.app,{list:a.list,index:a.index,playlist_length:d.length});CN(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.X(this.app,this.playerType||1);c&&g.yH(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){tG(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.WN(this.app.sb());d&&d.yh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("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.bb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.X(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.X(this.app,this.playerType);c&&(a=bB(a,b||a,!0,"m"),Hwa(c,a,!0))};
g.k.onAdUxClicked=function(a,b){this.X("aduxclicked",a,b)};
g.k.X=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.Gl.X.apply(this.app.Gl,[a].concat(g.la(c)));this.app.dm.X.apply(this.app.dm,[a].concat(g.la(c)))};
g.k.Na=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.Gl.X.apply(this.app.Gl,[a].concat(g.la(c)));this.app.dm.X.apply(this.app.dm,[a].concat(g.la(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Z=function(a){return g.S(this.app.T().experiments,a)};
g.k.ma=function(){};
g.k.xa=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.xa.call(this)};g.v(mN,gN);g.k=mN.prototype;g.k.addCueRange=function(a,b,c,d,e){return VEa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return MEa(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){FY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){FY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Gx=function(a){a=void 0===a?this.playerType:a;var b=gN.prototype.Gx.call(this,a)||{};if(a=g.X(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.Ui,b.isManifestless=KH(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.La,b.ypcOriginalItct=a.yV,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=Yma(a),b.paidContentOverlayDurationMs=OH(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.i&&hB(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):gN.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=g.qN(this.app.sb()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):gN.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.qN(this.app.sb()).getProgressState();var b=this.app.getVideoData(),c=(g.X(this.app,a)||g.X(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.getIngestionTime(c),f=this.app.isAtLiveHead(c),h=this.app.Er(),l=this.app.getMinSeekableTime(c);var m=this.app;(c=g.X(m,c))?(c=lY(m,c),m=xY(m,mT(c),c)):m=0;return{allowSeeking:this.app.nf(),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.kN(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.kN(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.kN(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.kN(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.cy(c)}
var b=this.app.T();if(b.externalFullscreen)return this.isFullscreen()?tx(window.document.documentElement):qx(window.document.documentElement).catch(a);if(rx()||b.J)return this.isFullscreen()?tx(sx()):"3"!==b.controlsType&&rx()?qx(this.app.bb().element).catch(a):(b=this.app.qd().Ge())?qx(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=TN(this.app.sb());a&&a.created&&a.destroy();(a=g.X(this.app))&&a.stopVideo();(a=this.app.sb().ud.get("endscreen"))&&a.aR()&&g.pN(this.app.Wa,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.S(a.experiments,"disable_new_pause_state3")&&DG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():gN.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.X(this.app,this.playerType).Eb(!0)};
g.k.toggleSubtitles=function(){var a=g.NN(this.app.sb());a&&a.ZV()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.sN(this.app.sb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.sN(this.app.sb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){bsa(this,a,b)};
g.k.mute=function(a){csa(this,a)};
g.k.unMute=function(a){dsa(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.WN(this.app.sb());b&&!b.loaded&&b.load()}gN.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.WN(this.app.sb());b&&b.loaded&&b.unload()}gN.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.sb();switch(a){case "ad":return(a=TN(d))&&a.hf&&a.hf(b,c);case "kids":return(a=UN(d))&&a.hf(b,c);case "remote":return(a=g.qN(d))&&a.hf(b,c);case "unplugged":return(a=VN(d))&&a.hf(b,c);case "annotations_module":return(a=g.WN(d))&&a.hf(b,c);case "creatorendscreen":return(a=XN(d))&&a.hf(b,c)}return gN.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.sb();switch(a){case "ad":return(b=TN(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.qN(b))&&b.getOptions();case "annotations_module":return(b=g.WN(b))&&b.getOptions();case "creatorendscreen":return(b=XN(b))&&b.getOptions();case "unplugged":return(b=VN(b))&&b.getOptions();case "kids":return(b=UN(b))&&b.getOptions()}if(!a){a=gN.prototype.getOptions.call(this);if(!a)return a;TN(b)&&a.push("ad");g.qN(b)&&a.push("remote");g.WN(b)&&a.push("annotations_module");
XN(b)&&a.push("creatorendscreen");VN(b)&&a.push("unplugged");UN(b)&&a.push("kids");return a}return gN.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.kN(this);a&&a.Rk()};
g.k.setCenterCrop=function(a){this.app.bb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var esa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el 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 show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
fsa="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 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.v(g.nN,mN);g.k=g.nN.prototype;g.k.Kj=function(a,b,c,d,e,f){return this.app.Kj(a,b,c,d,e,f)};
g.k.fu=function(){return this.app.fu()};
g.k.gp=ba(2);g.k.sb=function(){return this.app.sb()};
g.k.Qd=function(){var a=this.sb().ud.get("endscreen");return!!a&&a.Qd()};
g.k.getRootNode=function(){return this.bb().element};
g.k.T=function(){return this.app.T()};
g.k.wu=ba(4);g.k.Jl=function(a){return this.app.Jl(a)};
g.k.Zm=function(){return this.xA};
g.k.ub=function(a){return this.app.ub(a)};
g.k.bb=function(){return this.app.bb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.X(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.u)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=xT(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.Gh=function(a){return this.app.Gh(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.X(this.app);return a?a.isHdr():!1};
g.k.cD=function(){return this.app.cD()};
g.k.eq=function(a){this.app.eq(a)};
g.k.wf=function(a,b,c,d){this.app.Fe(a,b,c,d)};
g.k.Qk=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.qN(this.app.sb()).Ek("control_play");return}if(2===this.getPresentingPlayerType()){var b=TN(this.app.sb());if(b&&(b.yn()||PIa(b)))return}}catch(c){g.by(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.X(this.app,a).stopVideo()};
g.k.em=function(a){g.X(this.app,a).em()};
g.k.addEventListener=function(a,b){this.app.dm.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.dm.unsubscribe(a,b)};
g.k.Ei=function(a){this.app.Ei(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Tm=function(){var a={},b=g.X(this.app).Tm();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.xu=ba(10);g.k.pz=function(a){this.app.pz(a);a&&bFa(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)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.yu=ba(12);g.k.vj=ba(16);g.k.Qr=function(a,b){this.sb().Qr(a,b)};
g.k.yh=function(){var a=g.WN(this.sb());return!!a&&a.yh()};
g.k.gk=function(){var a=g.WN(this.sb());return!!a&&a.gk()};
g.k.setCardsVisible=function(a,b,c){var d=g.WN(this.sb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.X("changeProductsInVideoVisibility",a)};
g.k.rs=ba(17);g.k.uq=function(){var a=g.X(this.app);a&&a.uq()};
g.k.Pv=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")};
g.k.ij=function(a,b){var c=g.kN(this);if(c)return c.ij(a,b);a=this.app.bb().dg();return new g.rl(0,0,a.width,a.height)};
g.k.Pu=function(){var a=this.sb().ud.get("heartbeat");return!!a&&a.Pu()};
g.k.nf=function(){if(this.T().va)return!1;var a=g.X(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.SH(b)||2===this.getPresentingPlayerType()&&!this.app.Ld()||a.Ol()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Sx=function(){var a;return(null===(a=g.X(this.app))||void 0===a?void 0:a.Sx)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.iq=function(){var a=g.X(this.app);a&&a.iq()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Id=function(a,b){this.app.xt(a,b)};
g.k.Uf=function(a,b){this.app.lE(a,b)};
g.k.uf=function(a,b){var c=this.app,d=g.X(c,b);d&&(a=d.Bh.uf(a),b&&c.getPresentingPlayerType()!==b||gY(c,"cuerangesremoved",a))};
g.k.Ed=function(a,b){(b=g.X(this.app,b))&&b.Ed(a)};
g.k.Ol=function(){var a=g.X(this.app,void 0);return a?a.Ol():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Nf(a,0,100);iN(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){iN(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){iN(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.qd=function(){return this.app.qd()};
g.k.hp=function(){return this.app.hp()};
g.k.Eh=function(a){return this.app.Eh(a)};
g.k.getBandwidthEstimate=function(){return BF(this.T().schedule)};
g.k.Yb=function(a,b,c,d){this.T().Ga&&this.app.vn.Yb(a,b,c,void 0===d?!1:d)};
g.k.Pg=function(a,b,c){this.T().Ga&&this.app.vn.Pg(a,b,void 0===c?!1:c)};
g.k.im=function(a,b){this.T().Ga&&this.app.vn.im(a,b)};
g.k.Gb=function(a,b){this.T().Ga&&this.app.vn.click(a,b)};
g.k.kb=function(a,b,c){if(this.T().Ga){var d=this.app.vn;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Rx(),f=a.visualElement;d.l.has(a)?e&&f&&(b?g.$y(e,[f]):g.az(e,[f])):b&&!d.u.has(a)&&(e&&f&&g.Ty(e,f,c),d.u.add(a))}};
g.k.Hu=function(a){return this.T().Ga?this.app.vn.Hu(a):!1};
g.k.Gc=function(){return g.X(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Cj=function(a){this.app.Cj(a)};
g.k.Tw=function(a){this.app.Tw(a)};
g.k.Qn=function(a){this.app.getPresentingPlayerType()===a&&this.app.Qn(a)};
g.k.zC=function(a){return this.app.zC(a)};
g.k.Pk=function(a){this.app.Pk(a)};
g.k.nD=function(){this.app.nD()};
g.k.Tq=function(a,b,c,d,e,f){return this.app.Tq(a,b,c,d,e,f)};
g.k.Ku=function(a,b,c,d,e,f){return this.app.Ku(a,b,c,d,e,f)};
g.k.Op=function(a){this.app.Op(a)};
g.k.Qo=function(a,b){b=void 0===b?Infinity:b;this.app.Qo(void 0===a?-1:a,b)};
g.k.Gs=function(a,b,c){this.app.Gs(a,b,c)};
g.k.Vm=function(){return this.app.Vm()};
g.k.fx=function(a,b,c){this.app.fx(a,b,void 0===c?0:c)};
g.k.Lr=function(){return this.app.Lr()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Ld=function(){return this.app.Ld()};
g.k.An=function(a,b,c){return this.app.An(a,b,c)};
g.k.Ha=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.X(this.app,d))||void 0===e?void 0:e.Ha(a,b,c)};
g.k.Bz=function(){return this.app.Bz()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.BD=function(a,b){this.X("aduxmouseover",a,b)};
g.k.AD=function(a,b){this.X("aduxmouseout",a,b)};
g.k.PD=function(a,b){this.X("muteadaccepted",a,b)};g.v(g.wN,vx);g.wN.prototype.N=function(a,b,c,d,e){return vx.prototype.N.call(this,a,b,c,d,e)};jsa.prototype.reset=function(){this.i=this.l=NaN};xN.prototype.reset=function(){HA(this.timerName)};
xN.prototype.tick=function(a,b){NA(a,b,this.timerName)};
xN.prototype.info=function(a,b){g.MA(a,b,this.timerName)};g.yN.prototype.toString=function(){return this.type+this.id};g.v(g.zN,g.Q);g.k=g.zN.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.vk=function(a){return this.loop||!!a||0<=this.index-1};
g.k.ib=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.vH(this.l,a),g.F(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.X("shuffle")};
g.k.We=function(a){a=a||"hqdefault.jpg";var b=this.B[a];if(b||this.l.L||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return CG(this.l,this.C[0],a)};
g.k.onReady=function(a){this.i=a;this.loaded&&g.Us(this.i,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.dn=function(){return this.l.getVideoUrl(this.ib().videoId,this.getPlaylistId())};
g.k.xa=function(){this.i=null;g.gf(this.items);g.Q.prototype.xa.call(this)};var rsa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ssa={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"},tsa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},qsa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},osa={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"},psa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(g.FN,g.Q);g.k=g.FN.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.hf=function(){};
g.k.Li=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.Q.prototype.xa.call(this)};
g.k.Eb=function(){return{}};
g.k.getOptions=function(){return[]};g.v(g.IN,g.E);g.k=g.IN.prototype;g.k.zn=ba(20);g.k.Pr=function(){};
g.k.nm=function(){};
g.k.tp=function(){return""};
g.k.dE=ba(21);g.k.xa=function(){this.nm();g.E.prototype.xa.call(this)};g.v(g.JN,g.IN);g.JN.prototype.zn=ba(19);g.JN.prototype.Pr=function(a){if(this.audioTrack)for(var b=g.q(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.HN(this.l,c.value);a()};
g.JN.prototype.tp=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.vt()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.fH(a));return ns(c,d)};
g.JN.prototype.nm=function(){this.i&&this.i.abort()};g.yKa=new Map;g.v(g.LN,g.IN);g.LN.prototype.zn=ba(18);
g.LN.prototype.Pr=function(a){var b=this,c=this.u,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.gJ&&(d.asrs=1);c=ns(c,d);this.nm();this.i=g.at(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),r=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.HN(b.l,new g.cH({languageCode:m,languageName:n,name:p,kind:r,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.C[m.languageCode]=m.languageName,b.B.push(m)}a()},
withCredentials:!0})};
g.LN.prototype.tp=function(a,b){var c=this.u;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.fH(a));return c=ns(c,b)};
g.LN.prototype.nm=function(){this.i&&this.i.abort()};g.QN={};g.v(MN,g.E);g.k=MN.prototype;g.k.Rv=function(){return this.G.getVideoData().Rv()};
g.k.GE=function(){return this.G.getVideoData().GE()};
g.k.XH=function(){var a=this.ud.get("heartbeat");PN(this,"heartbeat",this.XH,!1,!0);!a&&this.ud.has("heartbeat")&&this.G.X("offlineslatestatechange")};
g.k.SB=function(){PN(this,"annotations_module",this.SB,!0);var a=this.ud.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.WH=function(){if(!this.ud.get("ad"))try{ON(this)?PN(this,"ad",this.WH,!1,!0):this.G.Ed("ad")}catch(a){this.G.Ed("ad"),g.by(a)}};
g.k.hp=function(){return this.i};
g.k.FC=function(){var a={},b=g.NN(this);b&&g.Ra(a,b.FC());return a};
g.k.Qr=function(a,b){g.Ra(this.i,a||null);g.Ra(this.Nt,b||null)};
g.k.xa=function(){g.E.prototype.xa.call(this);SN(this,1,!0)};g.v(YN,g.jf);YN.prototype.preventDefault=function(){g.jf.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
YN.prototype.stopPropagation=function(){g.jf.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.v(g.ZN,CK);g.k=g.ZN.prototype;g.k.Bo=function(){return!0};
g.k.isView=function(){return!1};
g.k.rE=function(){return!1};
g.k.Ge=function(){return this.i};
g.k.Af=function(){return this.i.src};
g.k.Aw=function(a){this.ma();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.nz=function(){this.ma();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.ma();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.lp=function(){return this.i.loop};
g.k.setLoop=function(a){this.ma();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.ym=function(){return this.i.paused};
g.k.Zs=function(){return this.i.seeking};
g.k.Bk=function(){return this.i.ended};
g.k.zx=function(){return this.i.muted};
g.k.us=function(a){lE();this.ma();this.i.muted=a};
g.k.qp=function(){return this.i.played||mE([],[])};
g.k.Qf=function(){try{var a=this.i.buffered}catch(b){}return a||mE([],[])};
g.k.Bu=function(){return this.i.seekable||mE([],[])};
g.k.yw=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.wz=function(a){this.ma();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.ma();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.ma();this.i.pause()};
g.k.play=function(){this.ma();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.rh=function(){return this.i.readyState};
g.k.Ax=function(){return this.i.networkState};
g.k.Zi=function(){return this.i.error?this.i.error.code:null};
g.k.pe=function(){return this.i.error?this.i.error.message:""};
g.k.zw=function(){if(window.HTMLVideoElement&&this.i instanceof window.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.Df=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.iq=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;jE()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():kE()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Xm=function(){var a=this.i;return new g.Rf(a.offsetLeft,a.offsetTop)};
g.k.Hq=function(){return g.Ql(this.i)};
g.k.setSize=function(a){g.Pl(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){lE();this.ma();this.i.volume=a};
g.k.bC=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.zt=ba(23);g.k.Zv=ba(25);g.k.bw=ba(27);g.k.Kt=ba(29);g.k.Vt=function(){return tx(this.i)};
g.k.Bm=function(a){g.K(this.i,a)};
g.k.getStyle=function(a){return g.El(this.i,a)};
g.k.aD=function(){return g.ug(document.body,this.i)};
g.k.xa=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]);CK.prototype.xa.call(this)};
g.k.ma=function(){};g.v(aO,g.Q);g.k=aO.prototype;g.k.BR=function(a){a=eu(a);if(!Sf(a,this.B)){var b=2;this.I&&(b|=8);this.B=a;$N(this,b,!0)}};
g.k.CR=function(){this.I&&$N(this,8,!0);$N(this,2,!1)};
g.k.Fy=function(a){var b=eu(a);Sf(b,this.B)||(this.B=b,(a=g.bu(a))&&this.Rw(a)&&($N(this,4,!0),this.i.lc(this.u),this.u=this.i.N(this.target,"mouseover",this.xD),this.J=this.i.N(this.target,"mouseout",this.xD)))};
g.k.xD=function(a){a=du(a);a&&this.Rw(a)||(this.B=new g.Rf(NaN,NaN),Psa(this))};
g.k.iR=function(){$N(this,1,!0)};
g.k.eQ=function(a){a=g.bu(a);a instanceof Element&&!(0<a.tabIndex)||$N(this,1,!0)};
g.k.XJ=function(){this.I=!0;this.i.lc(this.C);this.C=this.i.N(document,"mouseup",this.DR)};
g.k.DR=function(){this.I=!1;$N(this,8,!1);this.i.lc(this.C);this.C=this.i.N(this.target,"mousedown",this.XJ)};
g.k.kM=function(a){if(a=(a=a.changedTouches)&&a[0])this.ya=a.identifier,this.i.lc(this.L),this.L=this.i.N(this.target,"touchend",this.aW,void 0,!0),$N(this,1024,!0)};
g.k.aW=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ya){var d=c;break}}d&&(this.i.lc(this.L),this.L=this.i.N(this.target,"touchstart",this.kM,void 0,!0),$N(this,1024,!1))};
g.k.Rk=function(){$N(this,2,!0)};
g.k.resize=function(){g.bj&&Psa(this)};
g.k.toString=function(){return g.Q.prototype.toString.call(this)};g.v(g.bO,g.W);
g.bO.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.C&&(a.Ga||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.C?(g.M(this.element,"ytp-touch-device",b.i),c=[b.C?{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.Ta("largePlayButtonChildren",c);a.C&&(a.Ga||b.pfpChazalUi)&&(a=a.Ga?a.Ga:"#1f1f1f",this.Ca("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.v(cO,g.W);g.k=cO.prototype;g.k.show=function(){var a=this;this.vb||(this.u.N(this.api,"videodatachange",function(){g.Fq(a.i)}),this.u.N(this.api,"videoplayerreset",function(){g.Fq(a.i)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.u&&g.xx(this.u);g.W.prototype.hide.call(this)};
g.k.tb=function(){g.Fq(this.i)};
g.k.nN=function(a){var b=this.api.T();g.S(b.experiments,"disable_new_pause_state3")&&DG(b)&&(a=a.state.isCued()&&!a.Gn.isCued()||g.rN(this.api)&&g.V(a.state,2),g.Bl(this.element,"transition-delay",a?"2s":""));g.Fq(this.i)};
g.k.cV=function(){g.Fq(this.i)};
g.k.mN=function(){this.l.stop();this.hide();g.Fq(this.i)};
g.k.Ma=function(){var a=this.api.ub();if(3===this.api.getPresentingPlayerType()&&(a.yc()||g.V(a,4)))var b=!0;else(b=this.api.sb().ud.get("ypc"))&&b.Uy?b=!0:(b=this.api.T(),b=g.V(a,2)&&oN(this.api)&&b.Ec?!0:!1);b?(b=!0,this.B.hide()):(this.B.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.S(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.V(a,2)||oN(this.api)||b&&this.api.fu())||g.V(a,1024)?!0:!1));b?(this.l.show(),a=this.api.getVideoData(),this.qW(this.api.getPlaylist(),
a)):(this.l.hide(),g.V(a,1)||this.l.stop())};
g.k.qW=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.vH&&!c.videoId)){var d=this.api.bb().getPlayerSize();var e=g.EG(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.We("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.We("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.We("sddefault.jpg")||c.We("hqdefault.jpg")||c.We("mqdefault.jpg"))break;if(d=c.We("default.jpg"))break}this.C.style.backgroundImage=
d?"url("+d+")":""};g.v(g.iO,g.W);g.iO.prototype.resize=function(){};
g.iO.prototype.l=function(a){var b=this;Tsa(this);var c=a.eC,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.C?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.dd(lO(this,"TOO_MANY_REQUESTS_WITH_LINK",d.dn(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.C?this.dd(g.jO(a.errorMessage)):this.dd(lO(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.ui(c,{hl:a})),this.dd(lO(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.eb&&!d.l&&Ssa(this,function(e){if(g.dO(e,b.api,!DG(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var Rsa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(nO,g.wN);
nO.prototype.ob=function(){var a=this;this.hh();var b=this.G.getVideoData();if(b.isValid()){var c=this.G.T(),d=[],e="";if(!c.L){var f=Usa(this);g.S(c.experiments,"enable_web_media_session_metadata_fix")&&g.ZF(c)&&f?(d=Vsa(f.thumbnailDetails),f.album&&(e=g.Yz(f.album))):d=[{src:b.We("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.rN(this.G)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),b=
function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
mO(this,"nexttrack",b);mO(this,"previoustrack",c)}};
nO.prototype.hh=function(){var a=this.G.ub();a=a.isError()?"none":g.MK(a)?"playing":"paused";this.mediaSession.playbackState=a};
nO.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())mO(this,b.value,null);g.wN.prototype.xa.call(this)};g.v(oO,g.W);g.k=oO.prototype;g.k.onClick=function(a){g.dO(a,this.G,!0);this.G.Gb(this.element)};
g.k.ob=function(a,b){Wsa(this,b);this.ld&&Xsa(this,this.ld)};
g.k.Hc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&Wsa(this,b);this.i&&Xsa(this,a.state);this.ld=a.state};
g.k.bd=function(){this.u.show();this.G.X("paidcontentoverlayvisibilitychange",!0);this.G.kb(this.element,!0)};
g.k.Ab=function(){this.u.hide();this.G.X("paidcontentoverlayvisibilitychange",!1);this.G.kb(this.element,!1)};g.v(pO,g.W);pO.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
pO.prototype.l=function(a){Ysa(a.state)?this.i.start():this.hide()};
pO.prototype.u=function(){this.message.style.display="block"};g.v(g.qO,g.CL);g.k=g.qO.prototype;g.k.show=function(){var a=this.Sf();g.CL.prototype.show.call(this);this.Aa&&(this.J.N(window,"blur",this.Ab),this.J.N(document,"click",this.oN));a||this.X("show",!0)};
g.k.hide=function(){var a=this.Sf();g.CL.prototype.hide.call(this);Zsa(this);a&&this.X("show",!1)};
g.k.bd=function(a,b){this.l=a;this.V.show();b?(this.L||(this.L=this.J.N(this.G,"appresize",this.rH)),this.rH()):this.L&&(this.J.lc(this.L),this.L=void 0)};
g.k.rH=function(){var a=g.kN(this.G);this.l&&a.Up(this.element,this.l)};
g.k.Ab=function(){var a=this.Sf();Zsa(this);this.V.hide();a&&this.X("show",!1)};
g.k.oN=function(a){var b=cu(a);b&&(g.ug(this.element,b)||this.l&&g.ug(this.l,b)||!g.zM(a))||this.Ab()};
g.k.Sf=function(){return this.vb&&4!==this.V.state};g.v(sO,g.qO);sO.prototype.vv=function(a){this.B&&(a?($sa(this),this.bd()):(this.i&&this.Gb(),this.Ab()))};
sO.prototype.hh=function(a){this.api.isMutedByMutedAutoplay()&&g.YI(a,2)&&this.Ab()};
sO.prototype.onClick=function(){this.api.unMute();this.Gb()};
sO.prototype.Gb=function(){this.u||(this.u=!0,this.api.Gb(this.element))};g.v(g.uO,g.wN);g.k=g.uO.prototype;g.k.init=function(){var a=this.api.ub();this.Jb(a);this.pm();this.tb()};
g.k.ob=function(a,b){this.iD!==b.videoId&&(this.iD=b.videoId,a=this.kd,a.va=b&&0<b.Ec.length?5E3:3E3,$N(a,512,!0),this.pm())};
g.k.DT=function(){this.ob("newdata",this.api.getVideoData())};
g.k.Un=function(){var a=this.api.yh()&&this.api.gk();return this.Zw||a||this.TC};
g.k.Ti=function(){var a=!this.Un();g.M(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Rw=function(a){try{if(!g.ug(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!yg(a);)a=a===this.api.getRootNode()?null:g.tg(a);return!!a};
g.k.uj=function(a){var b=this.api.getRootNode();g.M(b,"ytp-autohide",a);g.M(b,"ytp-autohide-active",!0);this.vH.start(a?250:100);a&&(this.Lz=!1,g.Nq(b,"ytp-touch-mode"));this.RB=!a;this.api.Pv(!a)};
g.k.CD=function(){var a=this.api.getRootNode();g.M(a,"ytp-autohide-active",!1)};
g.k.lU=function(){this.cF=!0};
g.k.kU=function(a){if(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)this.cF=!1,this.dF&&this.lc(this.dF),0===this.ev&&xO(this,a)?(this.Nx(),this.api.T().Z("embeds_enable_mobile_dtts")&&this.api.T().J&&wO&&12>=hI&&this.api.ub().isCued()?tO(this):this.dx.start(),this.dF=this.N(this.api.bb(),"touchmove",this.lU,void 0,!0)):this.dx.stop();!bta(this)||!xO(this,a)||this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")||
tO(this);var b=this.Qz.Sf();if(NF&&cta(this,a))b&&g.fu(a);else if(this.kd.l||vO(this,cu(a))||this.Qz.Sf()||(this.api.ub().isCued(),g.fu(a)),this.Lz=!0,g.K(this.api.getRootNode(),"ytp-touch-mode"),this.kd.Rk(),g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)if(b=this.api.ub(),!(!this.api.nf()||g.V(b,2)&&oN(this.api)||g.V(b,64))){b=Date.now()-this.GJ;this.ev+=1;if(350>=b){this.St=!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.ev-1);0<d&&d<b?(this.Kv(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Kv(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.fu(a)}else this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")&&wO&&xO(this,a)&&g.fu(a);this.GJ=Date.now();this.BL.start()}};
g.k.gU=function(a){if(!cta(this,a)){if(!bta(this)&&xO(this,a)&&!this.dx.isActive()){if(g.JG(this.api.T())&&this.api.ub().isCued()){IA("warm");tA();HA();hA(!1);Wr("TIMING_AFT_KEYS",[]);g.MA("yt_lt","warm");Wr("TIMING_ACTION","");Wr("TIMING_WAIT",[]);delete g.O("TIMING_INFO",{}).yt_lt;JA("warm",void 0);var b=["pbs","pbu"];sA("").info.actionType="watch";b&&Wr("TIMING_AFT_KEYS",b);Wr("TIMING_ACTION","watch");b=g.O("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.MA(c,b[c]);g.MA("is_nav",1);(c=
g.Rx())&&g.MA("csn",c);(c=g.O("PREVIOUS_ACTION",void 0))&&!yA()&&g.MA("pa",c);c=mA();b=g.O("CLIENT_PROTOCOL");var d=g.O("CLIENT_TRANSPORT");b&&g.MA("p",b);d&&g.MA("t",d);g.MA("yt_vis",UA());if("cold"===c.yt_lt){g.MA("yt_lt","cold");b=fA();if(d=gA())NA("srt",b.responseStart),1!==c.prerender&&JA("n",d);c=aja();0<c&&NA("fpt",c);if(!g.Zr("log_deltas_killswitch")){var e,f,h,l;dA&&dA.timing&&(dA.timeOrigin&&dA.timing.navigationStart&&PA("startTimeDelta",Math.floor(dA.timeOrigin)-dA.timing.navigationStart),
(c=null===(l=null===(h=null===(f=null===(e=dA.getEntriesByType)||void 0===e?void 0:e.call(dA,"navigation"))||void 0===f?void 0:f[0])||void 0===h?void 0:h.toJSON)||void 0===l?void 0:l.call(h))&&c.responseEnd&&dA.timing.responseEnd&&PA("responseEndDelta",eA(c.responseEnd)-dA.timing.responseEnd))}e=fA();e.isPerformanceNavigationTiming&&g.MA("pnt",1,void 0);NA("nreqs",e.requestStart,void 0);NA("nress",e.responseStart,void 0);NA("nrese",e.responseEnd,void 0);0<e.redirectEnd-e.redirectStart&&(NA("nrs",
e.redirectStart,void 0),NA("nre",e.redirectEnd,void 0));0<e.domainLookupEnd-e.domainLookupStart&&(NA("ndnss",e.domainLookupStart,void 0),NA("ndnse",e.domainLookupEnd,void 0));0<e.connectEnd-e.connectStart&&(NA("ntcps",e.connectStart,void 0),NA("ntcpe",e.connectEnd,void 0));e.secureConnectionStart>=gA()&&0<e.connectEnd-e.secureConnectionStart&&(NA("nstcps",e.secureConnectionStart,void 0),NA("ntcpe",e.connectEnd,void 0));dA&&dA.getEntriesByType&&fja();e=[];if(document.querySelector&&dA&&dA.getEntriesByName)for(var m in p2)p2.hasOwnProperty(m)&&
(f=p2[m],eja(m,f)&&e.push(f));e.length&&g.MA("rc",e.join(","))}GA();m=mA();f=bA();if("cold"===m.yt_lt&&(e=zA(),h=e.gelTicks?e.gelTicks:e.gelTicks={},e=e.gelInfos?e.gelInfos:e.gelInfos={},yA())){for(var n in f)"tick_"+n in h||AA(n,f[n]);n=EA();f=nA();h={};for(var p in m)"info_"+p in e||!(l=DA(p,m[p]))||(pz(n,l),pz(h,l));vA().info(h,f)}hA(!0);KA()}tO(this);g.fu(a)}this.St&&(this.St=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Kv("embedsRequestStorageAccessResult",{resolved:!0});JEa(!0);Ru();window.location.reload()},function(){g.Kv("embedsRequestStorageAccessResult",{resolved:!1});
a.Ds()})};
g.k.Nx=function(){};
g.k.jq=function(){};
g.k.Kv=function(){};
g.k.yL=function(){};
g.k.Ds=function(){var a=this.api.ub();g.V(a,2)&&oN(this.api)||(g.MK(a)?this.api.pauseVideo():(this.api.nD(),this.api.playVideo(),this.jr&&document.activeElement===this.jr.B.element&&this.api.getRootNode().focus()))};
g.k.hU=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!vO(this,cu(a)))if(a=this.api.T(),(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)&&this.St)this.St=!1;else if(a.Ua&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Fu(d)})}catch(d){this.Fu(d)}};
g.k.Fu=function(a){String(a).includes("fullscreen error")?g.cy(a):g.by(a)};
g.k.iU=function(a){dta(this,.3,a.scale);g.fu(a)};
g.k.jU=function(a){dta(this,.1,a.scale)};
g.k.tb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.kd.resize();g.M(b,"ytp-fullscreen",this.api.isFullscreen());g.M(b,"ytp-large-width-mode",c);g.M(b,"ytp-small-mode",this.qf());g.M(b,"ytp-tiny-mode",this.Wx());g.M(b,"ytp-big-mode",this.Le());this.oe&&this.oe.resize(a)};
g.k.hh=function(a){this.Jb(a.state);this.pm()};
g.k.vC=function(){var a=!!this.iD&&!this.api.Qd(),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(fJa&&g.S(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=TN(this.api.sb());return a&&b.IE()}return a&&(c.Nj||this.api.isFullscreen()||c.Ig)};
g.k.pm=function(){var a=this.vC();this.yk!==a&&(this.yk=a,g.M(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Jb=function(a){var b=a.isCued()||this.api.Ol()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.fF&&this.lc(this.fF),this.fF=this.N(this.api.bb(),"touchstart",this.kU,void 0,b));var c=a.yc()&&!g.V(a,32)||this.api.Pu();$N(this.kd,128,!c);c=3===this.api.getPresentingPlayerType();$N(this.kd,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[O2.ENDED];else d=[],g.V(a,8)?d.push(O2.PLAYING):g.V(a,4)&&d.push(O2.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(O2.BUFFERING),g.V(a,32)&&
d.push(O2.SEEKING),g.V(a,64)&&d.push(O2.UNSTARTED);g.Ab(this.mB,d)||(g.Oq(c,this.mB),this.mB=d,g.Mq(c,d));d=this.api.T();var e=g.V(a,2);g.M(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.M(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.TC);g.V(a,128)&&!g.QF(d)?(this.oe||(this.oe=new g.iO(this.api),g.F(this,this.oe),g.uN(this.api,this.oe.element,4)),this.oe.l(a.getData()),this.oe.show()):this.oe&&(this.oe.dispose(),this.oe=null)};
g.k.pk=function(){return this.api.yh()&&this.api.gk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Qd()?(g.pN(this.api,!0),!0):!1};
g.k.vv=function(a){this.TC=a;this.Ti()};
g.k.Le=function(){return!1};
g.k.qf=function(){return!this.Le()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Wx=function(){return this.qf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.ni=function(){return this.Lz};
g.k.Zm=function(){return null};
g.k.ij=function(){var a=this.api.bb().getPlayerSize();return new g.rl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Up=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.bb().Pv(a)};
g.k.Rk=function(){};
g.k.NI=function(){return null};g.v(yO,g.Q);g.k=yO.prototype;g.k.nu=function(){return 1E3*this.api.getDuration(this.Jj,!1)};
g.k.stop=function(){this.i&&this.qe.lc(this.i)};
g.k.Rb=function(){var a=this.api.getProgressState(this.Jj);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Jj,!1)};this.X("h")};
g.k.getProgressState=function(){return this.l};
g.k.Hc=function(a){g.YI(a,2)&&this.X("g")};g.v(zO,g.W);zO.prototype.onClick=function(){this.G.Na("BACK_CLICKED")};g.v(g.AO,g.W);g.AO.prototype.show=function(){g.W.prototype.show.call(this);g.Fq(this.i)};
g.AO.prototype.hide=function(){this.l.stop();g.W.prototype.hide.call(this)};
g.AO.prototype.jq=function(a){a?g.V(this.G.ub(),64)||BO(this,Wqa(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?BO(this,Yqa(),"Stop live playback"):BO(this,Uqa(),"Pause"))};g.v(EO,g.W);g.k=EO.prototype;g.k.bd=function(){this.G.T().Z("player_new_info_card_format")&&g.Lq(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.QF(this.G.T())||(this.l.show(),g.Ku("iv-button-shown"))};
g.k.Ab=function(){g.Ku("iv-button-hidden");this.l.hide()};
g.k.Sf=function(){return this.vb&&4!==this.l.state};
g.k.xa=function(){this.i&&this.i();g.W.prototype.xa.call(this)};
g.k.WS=function(){g.Ku("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.yh();var b=g.Lq(this.G.getRootNode(),"ytp-cards-teaser-shown");g.Ku("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.gk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(GO,g.W);g.k=GO.prototype;g.k.tM=function(){this.G.yh()&&this.G.gk()&&this.Sf()&&this.Ab()};
g.k.TE=function(){this.Ab();g.Ku("iv-teaser-clicked",null!=this.i);this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.pN=function(){g.Ku("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.GU=function(a){g.S(this.G.T().experiments,"player_new_info_card_format")&&!g.QF(this.G.T())&&this.Zh.Ab();this.i||!a||this.G.gk()||this.l&&this.l.isActive()||(this.bd(a),g.Ku("iv-teaser-shown"))};
g.k.bd=function(a){this.Ta("text",a.teaserText);this.element.setAttribute("dir",g.Wq(a.teaserText));this.B.show();this.l=new g.J(function(){g.K(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.Z("player_new_info_card_format")&&!g.QF(this.G.T())&&this.Zh.Ab();this.qF()},0,this);
this.l.start();DO(this.Zh,!1);this.i=new g.J(this.Ab,580+a.durationMs,this);this.i.start();this.C.push(this.Pa("mouseover",this.ZF,this));this.C.push(this.Pa("mouseout",this.YF,this))};
g.k.qF=function(){if(!g.S(this.G.T().experiments,"player_new_info_card_format")&&g.QF(this.G.T())&&this.vb){var a=this.Zh.element.offsetLeft,b=g.dg("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Zh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.DP=function(){g.QF(this.G.T())&&this.V.qf()&&this.vb&&this.L.start()};
g.k.ZF=function(){this.I.stop();this.i&&this.i.isActive()&&this.J.start()};
g.k.YF=function(){this.J.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.k.nT=function(){this.i&&this.i.stop()};
g.k.mT=function(){this.Ab()};
g.k.Ai=function(){this.Ab()};
g.k.Ab=function(){!this.i||this.u&&this.u.isActive()||(g.Ku("iv-teaser-hidden"),this.B.hide(),g.Nq(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.J(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.lc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);DO(this.Zh,!0)},330,this),this.u.start())};
g.k.Sf=function(){return this.vb&&4!==this.B.state};
g.k.xa=function(){var a=this.G.getRootNode();a&&g.Nq(a,"ytp-cards-teaser-shown");g.gf(this.l,this.u,this.i);g.W.prototype.xa.call(this)};var fta=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var T2={},JO=(T2.BUTTON="ytp-button",T2.TITLE_NOTIFICATIONS="ytp-title-notifications",T2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",T2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",T2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",T2);g.v(KO,g.W);KO.prototype.onClick=function(){this.api.Gb(this.element);var a=!this.i;this.Ta("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ta("pressed",a);ita(this,a)};g.v(g.MO,g.W);g.MO.prototype.l=function(){g.K(this.element,"ytp-sb-subscribed")};
g.MO.prototype.u=function(){g.Nq(this.element,"ytp-sb-subscribed")};g.v(NO,g.W);g.k=NO.prototype;g.k.sE=function(){mta(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.jC=function(){if(kta(this)&&!this.isExpanded()){this.Ta("flyoutUnfocusable","false");this.Ta("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.kb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.Kh&&a.subscribed&&(this.l.show(),this.api.kb(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.LB=function(){this.Ta("flyoutUnfocusable","true");this.Ta("channelTitleFocusable","-1");this.u&&this.u.start()};
g.k.Ma=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Tb&&!!a.wg:g.QF(b)&&(c=!!a.videoId&&!!a.Tb&&!!a.wg&&!(a.C&&b.pfpChazalUi));var d=g.QG(this.api.T())+a.Tb;g.QF(this.api.T())&&(d=g.ui(d,g.IO("emb_ch_name_ex")));var e=a.Tb,f=a.wg;b=g.QF(b)?a.vl:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.QG(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Ta("channelLink",
e),this.Ta("channelLogoLabel",g.iJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.K(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Nq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.kb(this.i,c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=a.Rh);this.Ta("expandedTitle",a.vl);this.Ta("channelTitleLink",d);this.Ta("expandedSubtitle",a.expandedSubtitle)};g.v(g.PO,g.CL);g.PO.prototype.Ta=function(a,b){g.CL.prototype.Ta.call(this,a,b);this.X("size-change")};g.v(SO,g.CL);SO.prototype.rK=function(){this.X("size-change")};
SO.prototype.focus=function(){this.content.focus()};
SO.prototype.mS=function(){this.X("back")};g.v(g.TO,SO);g.TO.prototype.Cc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.xb(this.items,a,nta);if(0<=b)return;b=~b;g.ub(this.items,b,0,a);g.rg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.OD,this);this.menuItems.X("size-change")};
g.TO.prototype.Kf=function(a){a.unsubscribe("size-change",this.OD,this);this.isDisposed()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.X("size-change"))};
g.TO.prototype.OD=function(){this.menuItems.X("size-change")};
g.TO.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.v(VO,g.PO);VO.prototype.i=function(a){g.gu(a)||39!==g.hu(a)||(this.element.click(),g.fu(a))};g.v(XO,g.PO);XO.prototype.onClick=function(){this.setValue(!this.checked);this.X("select",this.checked)};
XO.prototype.getValue=function(){return this.checked};
XO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(YO,g.TO);g.k=YO.prototype;g.k.CS=function(){gO(this.gr.element)};
g.k.QS=function(){$O(this,this.G.getDebugText(!0))&&BO(this.qc,FL())};
g.k.RS=function(){$O(this,this.G.getVideoEmbedCode())&&BO(this.qc,Pqa());this.G.Gb(this.gj.element);IM("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.SS=function(){$O(this,this.G.getVideoUrl(!0,!0))&&BO(this.qc,KL());this.G.Gb(this.getVideoUrl.element);IM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.US=function(){$O(this,this.G.getVideoUrl(!1,!0))&&BO(this.qc,KL());this.G.Gb(this.jj.element);IM("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.CK=function(a){var b;null===(b=this.wi)||void 0===b?void 0:b.setValue(a)};
g.k.hT=function(){this.G.setLoopVideo(this.wi.getValue());this.yb.Ab();this.G.Gb(this.wi.element)};
g.k.bU=function(a){this.G.reportPlaybackIssue();if(g.dO(a,this.G,!DG(this.G.T()))){a=this.G;var b=a.app.getFeedbackProductData();a.Na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.yb.Ab()};
g.k.tU=function(){this.G.showVideoInfo();this.yb.Ab()};
g.k.ob=function(a,b){this.Ji(b)};
g.k.Ji=function(a){var b,c=this.G.T(),d=2===this.G.getPresentingPlayerType(),e=!d||a.isListed;e=!c.L&&!!a.videoId&&e;"play"!==c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.l&&(c.fmt=a.l.tc()),a.clientPlaybackNonce&&(c.cpn=a.clientPlaybackNonce),a.va&&(c.partnerid=a.va),c=g.ui("//support.google.com/googleplay/",c));g.BL(this.gj,e&&a.allowEmbed);g.BL(this.getVideoUrl,e);g.BL(this.jj,e&&
!a.isLivePlayback);this.Lv.dd(c,"href");null===(b=this.wi)||void 0===b?void 0:g.BL(b,!a.isLivePlayback&&!d)};
g.k.Sb=function(a){g.TO.prototype.Sb.call(this,a);this.G.kb(this.gj.element,a);this.G.kb(this.getVideoUrl.element,a);this.G.kb(this.jj.element,a);this.wi&&this.G.kb(this.wi.element,a)};g.v(g.aP,g.qO);g.k=g.aP.prototype;g.k.show=function(){g.qO.prototype.show.call(this);this.Is()};
g.k.hide=function(){g.qO.prototype.hide.call(this);1<this.i.length&&g.cP(this)};
g.k.Is=function(){qta(this);this.vb&&(pta(this),g.Pl(this.element,this.size))};
g.k.kh=function(){var a=this.i.pop();bP(this,a,this.i[this.i.length-1],!0)};
g.k.qN=function(a){if(!g.gu(a))switch(g.hu(a)){case 27:this.Ab();g.fu(a);break;case 37:1<this.i.length&&this.kh();g.fu(a);break;case 39:g.fu(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.xa=function(){g.qO.prototype.xa.call(this);this.B&&this.B.dispose();this.I&&this.I.dispose()};g.v(g.dP,g.aP);g.k=g.dP.prototype;g.k.sN=function(a){var b,c=cu(a);c&&(Ag(c,"a")||Ag(c,null,"ytp-no-contextmenu",void 0))||this.vb||(this.va=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.Rf(a.clientX,a.clientY):new g.Rf(0,0),this.Y.start())};
g.k.YK=function(){this.Y.stop()};
g.k.LU=function(){this.open(this.va)};
g.k.show=function(){this.C||(this.C=new YO(this.G,this.ya,this,this.qc),g.F(this,this.C),g.ZO(this,this.C));this.C.CK(this.G.getLoopVideo());g.aP.prototype.show.call(this);this.G.kb(this.element,!0);this.C.Sb(!0)};
g.k.hide=function(){sta(this);g.aP.prototype.hide.call(this);this.G.kb(this.element,!1);this.C&&this.C.Sb(!1)};
g.k.zS=function(a){var b=cu(a);this.vb||b&&(Ag(b,"a")||Ag(b,null,"ytp-no-contextmenu",void 0))||(g.fu(a),this.open(eu(a)))};
g.k.open=function(a){tta(this);var b=this.G.getVideoData();g.M(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.bd();var c=document.body;b=new ol(0,Infinity,Infinity,0);var d=Zf(c);for(var e=d.i.body,f=d.i.documentElement,h=hg(d.i);c=Gea(c);)if(!(g.ce&&0==c.clientWidth||g.jg&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Gl(c,"overflow")){var l=g.Kl(c),m=new g.Rf(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=gg(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.rl(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Il(this.element,new g.Rf(d.left,d.top));g.xx(this.u);this.u.N(document,"contextmenu",this.JS);this.u.N(this.G,"fullscreentoggled",this.Ye);this.u.N(this.G,"pageTransition",this.rN)};
g.k.JS=function(a){if(!g.gu(a)){var b=cu(a);g.ug(this.element,b)||this.Ab();this.G.T().disableNativeContextMenu&&g.fu(a)}};
g.k.Ye=function(){this.Ab();tta(this)};
g.k.rN=function(){this.Ab()};g.v(g.eP,g.W);g.eP.prototype.onClick=function(){return g.D(this,function b(){var c=this,d,e,f,h;return g.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),g.w(l,vta(c,h),2);l.l&&uta(c);c.api.Gb(c.element);g.sa(l)})})};
g.eP.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData();this.Ta("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.Ta("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.l&&b.Sj&&!(b.C&&a.pfpChazalUi);g.M(this.element,"ytp-copylink-button-visible",this.visible);g.BL(this,this.visible);gP(this.tooltip);this.api.kb(this.element,this.visible&&this.ea)};
g.eP.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.api.kb(this.element,this.visible&&a)};
g.eP.prototype.xa=function(){g.W.prototype.xa.call(this);g.Nq(this.element,"ytp-copylink-button-visible")};g.v(hP,g.W);hP.prototype.show=function(){g.W.prototype.show.call(this);g.Fq(this.l)};
hP.prototype.hide=function(){this.u.stop();g.Nq(this.element,"ytp-chapter-seek");g.Nq(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
hP.prototype.Kv=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.G.Gb(e);g.Hq(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.bb().getPlayerSize().height;e=this.G.bb().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.Ca("ytp-doubletap-ripple");l.style.width=h+
"px";l.style.height=h+"px";1===a?(a=this.G.bb().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.Ca("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");wta(this,d)};var zKa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(zKa).reduce(function(a,b){a[zKa[b]]=b;return a},{});
var AKa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(AKa).reduce(function(a,b){a[AKa[b]]=b;return a},{});
var BKa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(BKa).reduce(function(a,b){a[BKa[b]]=b;return a},{});var U2,CKa;U2=[{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"}];CKa=[{option:0,text:kP(0)},{option:.25,text:kP(.25)},{option:.5,text:kP(.5)},{option:.75,text:kP(.75)},{option:1,text:kP(1)}];
g.nP=[{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:U2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:kP(.5)},{option:-1,text:kP(.75)},{option:0,text:kP(1)},{option:1,text:kP(1.5)},{option:2,text:kP(2)},
{option:3,text:kP(3)},{option:4,text:kP(4)}]},{option:"background",text:"Background color",options:U2},{option:"backgroundOpacity",text:"Background opacity",options:CKa},{option:"windowColor",text:"Window color",options:U2},{option:"windowOpacity",text:"Window opacity",options:CKa},{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:kP(.25)},{option:.5,text:kP(.5)},{option:.75,text:kP(.75)},{option:1,text:kP(1)}]}];g.v(g.mP,g.wN);g.k=g.mP.prototype;
g.k.WI=function(a){var b=!1,c=g.hu(a),d=cu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.gu(a)?(e=!1,h=!0):l.He&&(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);CO(this.qc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);CO(this.qc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.nf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.nf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&this.DE(!0);(b||h)&&this.kd.Rk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.fu(a);l.u&&(a={keyCode:g.hu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.gu(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))};
g.k.XI=function(a){this.handleGlobalKeyUp(g.hu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.sN(this.api.sb());c&&(c=c.Vn)&&c.vb&&(c.SI(a),b=!0);9===a&&(this.DE(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.He)return h;var l=g.sN(this.api.sb());if(l&&(l=l.Vn)&&l.vb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.RI(a)}e.C||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&Pq(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.bl:[];l=cU?d:c;switch(a){case 80:b&&
!e.va&&(BO(this.qc,Xqa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.va&&(BO(this.qc,LL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.nf()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?iP(this.i,-1,10):BO(this.qc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.nf()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?iP(this.i,1,10):BO(this.qc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.nf()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=yta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(jP(this.i,-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?iP(this.i,-1,5):BO(this.qc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.nf()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=xta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(jP(this.i,1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&null!=this.i?iP(this.i,1,5):BO(this.qc,{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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(),CO(this.qc,this.api.getVolume(),!1)):(this.api.mute(),CO(this.qc,0,!0));h=!0;break;case 32:case 75:e.va||(h=!g.MK(this.api.ub()),this.qc.jq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Xb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),eta(this.qc,!1),h=!0):this.api.nf()&&(Ata(this,1),h=!0);break;case 188:b?e.Xb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),eta(this.qc,!0),h=!0):this.api.nf()&&(Ata(this,-1),h=!0);break;case 70:Qsa(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.NN(this.api.sb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),BO(this.qc,Oqa(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:oP(this,"textOpacity");break;case 87:oP(this,"windowOpacity");break;case 187:case 61:oP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:oP(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:
96<=a&&105>=a&&(m=a-96));null!=m&&this.api.nf()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.kd.Rk()}return h};
g.k.DE=function(a){g.M(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.M(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.xa=function(){g.Hq(this.u);g.wN.prototype.xa.call(this)};g.v(pP,g.W);pP.prototype.Ma=function(){var a=g.QF(this.G.T())&&g.rN(this.G)&&g.V(this.G.ub(),128),b=this.G.getPlayerSize();this.visible=this.i.qf()&&!a&&240<=b.width&&!(this.G.getVideoData().C&&this.G.T().pfpChazalUi);g.M(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&gP(this.tooltip);this.G.kb(this.element,this.visible&&this.ea)};
pP.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.G.kb(this.element,this.visible&&a)};
pP.prototype.xa=function(){g.W.prototype.xa.call(this);g.Nq(this.element,"ytp-overflow-button-visible")};g.v(qP,g.qO);g.k=qP.prototype;g.k.tN=function(a){a=cu(a);g.ug(this.element,a)&&(g.ug(this.i,a)||g.ug(this.closeButton,a)||rO(this))};
g.k.Ab=function(){g.qO.prototype.Ab.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){this.vb&&this.G.X("OVERFLOW_PANEL_OPENED");g.qO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Bta(this,!0)};
g.k.hide=function(){g.qO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Bta(this,!1)};
g.k.Ye=function(a){!a&&this.Sf()&&rO(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.vb){b.focus();break}};g.v(sP,g.W);sP.prototype.onClick=function(a){g.dO(a,this.api)&&this.api.playVideoAt(this.index)};g.v(tP,g.qO);g.k=tP.prototype;g.k.show=function(){g.qO.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.yA);this.u.N(this.api,"onPlaylistUpdate",this.yA);this.yA()};
g.k.hide=function(){g.qO.prototype.hide.call(this);g.xx(this.u);this.updatePlaylist(null)};
g.k.yA=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.qz=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 sP(this.api,a,d);this.i.push(e);e.Ba(this.items)}this.selected=this.i[a.index];this.B=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.KU=function(a){var b=this.api.getVideoUrl(!0);g.eO(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.qz,this),this.playlist=a,this.B=null,a){a.subscribe("shuffle",this.qz,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.iJ(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.qz()}else this.vb&&this.hide();
else this.playlist&&this.qz()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.qO.prototype.xa.call(this)};g.v(uP,g.W);
uP.prototype.Ma=function(){var a=g.QF(this.api.T());g.M(this.element,"ytp-playlist-menu-button-tiny",400>this.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.iJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.iJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.vb||(this.show(),gP(this.tooltip)),this.visible=!0,this.Sb(!0)):
this.vb&&(this.hide(),this.Sb(!1),gP(this.tooltip))};
uP.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.api.kb(this.element,this.visible&&a)};
uP.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ma,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ma,this);this.Ma()};g.v(vP,g.W);g.k=vP.prototype;
g.k.zA=function(a,b){if(!this.B){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.Rl(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
[];p=p.split("$TARGET_ICON");var r=new g.yL({D:"span",K:"ytp-promotooltip-details-icon",S:[DKa[this.tooltipRenderer.targetId]]});g.F(this,r);for(var t=[],u=g.q(p),x=u.next();!x.done;x=u.next())x=new g.yL({D:"span",K:"ytp-promotooltip-details-component",ra:x.value}),g.F(this,x),t.push(x);2===p.length?(a.push(t[0].element),a.push(r.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(r.element),a.push(t[0].element)):(a.push(t[0].element),a.push(r.element)));d=a.length?a:null}else d=null;else d=
p;if(d){if("string"!==typeof d)for(g.qg(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.Rl(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.Rl(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.Rl(this.dismissButton,f)}b&&(this.u=b);this.i=Cta(this);this.C=!1;this.G.T().Z("web_player_hide_nitrate_promo_tooltip")||g.BL(this,!0);(b=!this.i)||(b=this.i,
l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.G.Ne()?g.BL(this,!1):(b=g.Ql(this.i),b.width&&b.height?(this.J.Up(this.element,this.i),l=this.G.bb().getPlayerSize().height-g.Ql(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Ca("ytp-promotooltip-pointer"),m=g.Ol(this.i,this.G.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.G.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.BL(this,!1));this.I||(this.I=!0,xP(this,0));this.l&&this.G.kb(this.element,this.vb)}};
g.k.BS=function(){wP(this);this.C=!0};
g.k.MR=function(){this.B=!0;xP(this,1);this.G.X("promotooltipacceptbuttonclicked",this.acceptButton);wP(this);this.l&&this.G.Gb(this.acceptButton)};
g.k.IS=function(){this.B=!0;xP(this,2);wP(this);this.l&&this.G.Gb(this.dismissButton)};
g.k.uN=function(a){var b,c;if(1===this.G.getPresentingPlayerType()){var d=!0,e=g.dg("ytp-ad-overlay-ad-info-dialog-container"),f=cu(a);if(this.u&&f&&g.ug(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=Dta(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.ug(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.ug(this.element,f));this.i&&this.vb&&!e&&(!f||d&&g.zM(a))&&(this.B=!0,wP(this))}}};
g.k.tb=function(){this.C||(this.i||(this.i=Cta(this)),this.zA())};
var DKa={"ytp-settings-button":g.OL()};g.v(yP,g.W);yP.prototype.i=function(a){g.BL(this,g.V(a.state,2))};
yP.prototype.onClick=function(){this.G.ub();this.G.playVideo()};g.v(g.zP,g.W);g.zP.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(Eta)}catch(e){e instanceof Error&&Eta(e)}else this.i.pk(),rO(this.u,this.element,!1);this.api.Gb(this.element)};
g.zP.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData(),c=g.QF(a)&&g.rN(this.api)&&g.V(this.api.ub(),128);this.Ta("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.bb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.l&&!a;g.M(this.element,"ytp-share-button-visible",this.visible);g.BL(this,this.visible);gP(this.tooltip);this.api.kb(this.element,this.visible&&this.ea)};
g.zP.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.api.kb(this.element,this.visible&&a)};
g.zP.prototype.xa=function(){g.W.prototype.xa.call(this);g.Nq(this.element,"ytp-share-button-visible")};g.v(g.AP,g.qO);g.k=g.AP.prototype;g.k.vN=function(a){a=cu(a);g.ug(this.C,a)||g.ug(this.closeButton,a)||rO(this)};
g.k.Ab=function(){g.qO.prototype.Ab.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){var a=this.vb;g.qO.prototype.show.call(this);this.Ma();a||this.api.Na("onSharePanelOpened")};
g.k.rR=function(){this.vb&&this.Ma()};
g.k.Ma=function(){var a=this;g.K(this.element,"ytp-share-panel-loading");g.Nq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&QM(this.api.Jl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Nq(a.element,"ytp-share-panel-loading"),Gta(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.aG(this.api.T())&&(b=g.ui(b,g.IO("emb_share")));this.Ta("link",b);this.Ta("linkText",b);this.Ta("shareLinkWithUrl",g.iJ("Share link $URL",{URL:b}));gO(this.u)};
g.k.Ye=function(a){!a&&this.Sf()&&rO(this)};
g.k.focus=function(){this.u.focus()};
g.k.xa=function(){g.qO.prototype.xa.call(this);Fta(this)};g.v(DP,g.W);g.k=DP.prototype;g.k.DD=function(){};
g.k.ED=function(){};
g.k.Sv=function(){return!0};
g.k.MV=function(){if(this.expanded){this.ya.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.ya.hide();this.Ua=34+a;g.M(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ua)+"px";this.va.start()};
g.k.XP=function(){this.badge.element.style.width=(this.expanded?this.Ua:34)+"px";this.Ia.start()};
g.k.nW=function(){g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Qh=function(){this.Sv()?this.L.show():this.L.hide();Hta(this)};
g.k.wN=function(){this.enabled=!1;this.Qh()};
g.k.mW=function(a){this.Ya=a;this.Qh()};
g.k.pS=function(a){this.La=1===a;this.Qh();g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.OS=function(){g.M(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Qh()};g.v(EP,DP);g.k=EP.prototype;g.k.xa=function(){FP(this);DP.prototype.xa.call(this)};
g.k.DD=function(a){a.target!==this.dismissButton.element&&(Jta(this,!1),this.G.Na("innertubeCommand",this.onClickCommand))};
g.k.ED=function(){this.u=!0;Jta(this,!0);this.Qh()};
g.k.HT=function(a){this.Da=a;this.Qh()};
g.k.yT=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Aa&&(this.V=a,a||(a=3+this.G.getCurrentTime(),this.Id(a)))};
g.k.ob=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.V=this.Aa=this.l=this.J=!1,FP(this);if(a||!b.videoId)this.C=this.B=!1;a=b.shoppingOverlayRenderer;this.Da=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.B){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.B=!!h)&&this.G.im(this.badge.element,h||null)}this.C||(this.C=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&this.G.im(this.dismissButton.element,
(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.Yz(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ra=g.Yz(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;OH(b)?this.V=this.Aa=!0:this.Id()}Ita(this);CP(this);this.Qh()};
g.k.Sv=function(){return this.Ya&&!this.Da&&this.enabled&&!this.u&&!this.eb.qf()&&!this.La&&!this.V&&(this.l||this.i)};
g.k.Re=function(a){(this.l=a)?(BP(this),CP(this,!1)):(FP(this),this.Y.start());this.Qh()};
g.k.Id=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Oz(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Oz(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.G.Id(b)};g.v(GP,g.qO);GP.prototype.show=function(){g.qO.prototype.show.call(this);this.B.start()};
GP.prototype.hide=function(){g.qO.prototype.hide.call(this);this.B.stop()};
GP.prototype.Fr=function(a,b){"dataloaded"===a&&((this.u=b.LG,this.i=b.JG,isNaN(this.u)||isNaN(this.i))?this.C&&(this.G.uf("intro"),this.G.removeEventListener(g.Rz("intro"),this.va),this.G.removeEventListener(g.Sz("intro"),this.Y),this.G.removeEventListener("onShowControls",this.I),this.hide(),this.C=!1):(this.G.addEventListener(g.Rz("intro"),this.va),this.G.addEventListener(g.Sz("intro"),this.Y),this.G.addEventListener("onShowControls",this.I),a=new g.Oz(this.u,this.i,{priority:7,namespace:"intro"}),
this.G.Id([a]),this.C=!0))};g.v(HP,g.W);HP.prototype.onClick=function(){this.G.iq()};
HP.prototype.Ma=function(){var a=!0,b=this.G.T();(b.Z("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.Z("embeds_use_native_controls_killswitch")&&b.i)&&g.QF(b)&&(a=a&&480<=this.G.bb().getPlayerSize().width);g.BL(this,a);this.Ta("icon",this.G.Df()?{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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",Kb:!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 uv("yt.autonav");g.v(IP,g.W);g.k=IP.prototype;
g.k.gt=function(){if(3!==this.G.getPresentingPlayerType()&&g.vN(this.G)&&400<=this.G.bb().getPlayerSize().width&&!1!==this.G.getVideoData().hR){if(!this.i){this.i=!0;g.BL(this,this.i);this.l.push(this.N(this.G,"videodatachange",this.gt));this.l.push(this.N(this.G,"videoplayerreset",this.gt));this.l.push(this.N(this.G,"onPlaylistUpdate",this.gt));this.l.push(this.N(this.G,"autonavchange",this.aG));var a=this.G.getVideoData();this.aG(a.autonavState);this.G.kb(this.element,this.i)}}else{this.i=!1;g.BL(this,
this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.lc(b.value)}};
g.k.aG=function(a){(a=1!==a)||(g.iv.getInstance(),a=g.Zr("web_autonav_allow_off_by_default")&&!g.kv(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.kv(0,140));this.isChecked=a;Kta(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.pz(this.isChecked?2:1);Kta(this);this.G.Gb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Ca("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.KP,g.W);g.KP.prototype.xa=function(){this.ctx=null;g.W.prototype.xa.call(this)};g.v(LP,g.W);LP.prototype.onClick=function(){this.G.Na("innertubeCommand",this.u)};
LP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()};
LP.prototype.updateVideoData=function(a,b){a=b.mV;this.u=null===a||void 0===a?void 0:a.command;this.l.disabled=null==this.u;g.M(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Rb()};
LP.prototype.Rb=function(){var a="",b=this.I.i;if(1<b.length){a=1E3*this.G.getProgressState().current;var c=lP(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.G.Na("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.v(g.MP,g.W);g.MP.prototype.Hc=function(a){g.V(a.state,32)?NP(this,this.api.Gh()):this.vb&&(g.V(a.state,16)||g.V(a.state,1))||this.i.hide()};
g.MP.prototype.hd=function(){var a=this.api.ub();(g.V(a,32)||g.V(a,16))&&OP(this)};
g.MP.prototype.C=function(){this.u=NaN;OP(this)};
g.MP.prototype.hide=function(){this.l&&NP(this,null);g.W.prototype.hide.call(this)};g.v(PP,g.W);PP.prototype.onClick=function(){this.i.Gb(this.element);this.i.Na("onFullerscreenEduClicked")};
PP.prototype.Ma=function(){this.i.isFullscreen()?this.u?this.l.hide():this.l.show():this.hide();this.i.kb(this.element,this.i.isFullscreen()&&!this.u)};g.v(g.QP,g.W);g.k=g.QP.prototype;g.k.onClick=function(){var a=this;if(this.G.T().Ua||this.G.T().J)try{this.G.toggleFullscreen().catch(function(b){a.Fu(b)})}catch(b){this.Fu(b)}else rO(this.message,this.element,!0)};
g.k.Fu=function(a){String(a).includes("fullscreen error")?g.cy(a):g.by(a);this.KD()};
g.k.KD=function(){this.disable();this.message.bd(this.element,!0)};
g.k.Yl=function(){sx()===this.G.getRootNode()?this.u.start():(this.u.stop(),this.message&&this.message.hide())};
g.k.zP=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.KD()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Ut(["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.qO(this.G,{D:"div",Ea:["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().I},ra:b[2]},b[4]]},100,!0);this.message.hide();g.F(this,this.message);this.message.subscribe("show",function(c){a.l.rr(a.message,c)});
g.uN(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.Ma=function(){g.BL(this,Qsa(this.G))};
g.k.Ii=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",Kb:!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",Kb:!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",Kb:!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",Kb:!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=hO(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",Kb:!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",
Kb:!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",Kb:!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",Kb:!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=hO(this.G,"Full screen","f");this.Ta("icon",b);this.Ta("title",this.message?null:a);gP(this.l.jc())};
g.k.xa=function(){this.message||((0,this.i)(),this.i=null);g.W.prototype.xa.call(this)};g.v(RP,g.W);RP.prototype.onClick=function(){this.G.Na("onCollapseMiniplayer");this.G.Gb(this.element)};
RP.prototype.Ma=function(){this.visible=!this.G.isFullscreen();g.BL(this,this.visible);this.G.kb(this.element,this.visible&&this.ea)};
RP.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.G.kb(this.element,this.visible&&a)};g.v(SP,g.W);SP.prototype.ob=function(a){this.Ma("newdata"===a)};
SP.prototype.Ma=function(a){var b=this.G.getVideoData(),c=b.Ec,d=this.G.ub();d=(g.MK(d)||g.V(d,4))&&0<c.length;g.BL(this,d);a&&(this.i=!0);if(d){this.i&&g.Fq(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.iJ("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.We("default.jpg")});gP(this.tooltip)}else this.l.stop()};
SP.prototype.u=function(){fP(this.tooltip,this.element,"More cameras available");this.i=!1};g.v(TP,g.qO);g.k=TP.prototype;g.k.show=function(){var a=this.vb;g.qO.prototype.show.call(this);a||(this.u.N(this.api,"presentingplayerstatechange",this.Ma),this.u.N(this.api,"videodatachange",this.Ma),this.Ma())};
g.k.hide=function(){this.u&&(g.xx(this.u),g.qO.prototype.hide.call(this))};
g.k.Ma=function(){var a=this,b=this.api.getVideoData(),c=b.Ec,d,e={};for(d=0;d<c.length;e={bA:e.bA},d++){var f=this.i[d];f||(f=new g.W({D:"button",Ea:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{D:"div",K:"ytp-multicam-menu-item-title",ra:"{{cameraName}}"}]}),e.bA=d,f.Pa("click",function(n){return function(){var p=n.bA,r=a.api.getVideoData(),t=a.api,u=r.Ec[p];p=g.X(t.app,1).getVideoData();r=t.getCurrentTime();u.id===p.videoId?(u=g.X(t.app,1),
g.X(t.app)!==u&&(t.app.Cj(1),p.isLivePlayback||t.seekTo(r))):(t.app.Cj(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.yF}}}},4))}}(e)),f.Ba(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=CG(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.ub();b=c.length||!b.isLoaded();g.MK(d)||g.V(d,4)||b||!this.Sf()||rO(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Ec,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.xa=function(){g.gf(this.i);g.qO.prototype.xa.call(this)};g.v(UP,g.E);UP.prototype.i=function(){var a=(0,g.P)()-this.startTime;a=a<this.duration?a/this.duration:1;this.l(g.Yq(EKa,a));1>a&&this.delay.start()};
var EKa=new g.Xq(0,0,.4,0,.2,1,1,1),Qta=/[0-9.-]+|[^0-9.-]+/g;g.v(g.WP,g.W);g.k=g.WP.prototype;g.k.bG=function(a){this.visible=300<=a.width;g.BL(this,this.visible);this.G.kb(this.element,this.visible&&this.ea)};
g.k.oT=function(){this.G.T().Y?this.G.isMuted()?this.G.unMute():this.G.mute():rO(this.message,this.element,!0);this.G.Gb(this.element)};
g.k.Hf=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();a=0===d?1:50<a?1:0;if(this.C!==a){var f=this.Y;isNaN(f)?Tta(this,a):VP(this.ya,function(l){Tta(c,f+(c.C-f)*l)},250);
this.C=a}d=0===d?1:0;if(this.B!==d){var h=this.L;isNaN(h)?Uta(this,d):VP(this.V,function(l){Uta(c,h+(c.B-h)*l)},250);
this.B=d}e.Y&&(e=hO(this.G,"Mute","m"),d=hO(this.G,"Unmute","m"),b=b?d:e,this.Ta("title",b),this.Ta("label",b),gP(this.tooltip))};
g.k.Sb=function(a){g.W.prototype.Sb.call(this,a);this.G.kb(this.element,this.visible&&a)};
var Rta=["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"],Sta=["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.v(XP,g.W);XP.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.YP,g.W);g.YP.prototype.u=function(a){Vta(this,a.state);a=g.V(a.state,2);LG(this.G.T())&&(!this.l&&!a||this.l&&a?this.hide():this.show())};
g.YP.prototype.ob=function(){g.M(this.element,"ytp-play-button-playlist",g.rN(this.G))};
g.YP.prototype.Ds=function(){g.MK(this.G.ub())?this.G.pauseVideo():(this.G.Ne()&&this.G.ub().isCued()&&LA("direct_playback",["pbs","pbu","pbp"]),this.G.hp().timerName="direct_playback",this.G.playVideo())};g.v(g.aQ,g.W);g.k=g.aQ.prototype;g.k.ob=function(){Xta(this);this.B&&(this.lc(this.B),this.B=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.ob,this),this.B=this.N(this.G,"progresssync",this.xN);this.u=Yta(this);$P(this);this.AA(this.G.bb().getPlayerSize())};
g.k.AA=function(a){a=void 0===a?this.G.bb().getPlayerSize():a;var b=g.rN(this.G)||this.i&&g.vN(this.G)||Zta(this);g.BL(this,b&&(this.i||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.dO(a,this.G):g.fu(a);b&&(this.i&&5===this.G.getPresentingPlayerType()?this.G.X("ytoprerollinternstitialnext"):this.i?this.G.nextVideo(!0):this.u?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.xN=function(){var a=Yta(this);a!==this.u&&(this.u=a,$P(this))};
g.k.xa=function(){this.l&&(this.l(),this.l=null);Xta(this);g.W.prototype.xa.call(this)};g.v(aua,g.W);g.v(bQ,g.W);fua.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.C=d;this.i=b-c-d;this.position=g.Nf(a,c,c+this.i);this.B=this.position-c;this.u=this.B/this.i};g.v(gua,g.W);g.v(g.fQ,g.CL);g.k=g.fQ.prototype;g.k.tb=function(){g.hQ(this);iQ(this);mua(this,this.ya)};
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().Jg=b,nua(this,b))}};
g.k.Cd=function(a){this.api.Na("innertubeCommand",this.Gd[a.id])};
g.k.Rb=function(){iQ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.mz()};
g.k.zN=function(a){if(!g.gu(a)){var b=!1;switch(g.hu(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.fu(a)}};
g.k.Fr=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.AQ=function(){this.Fr("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Ub=c&&a.allowLiveDvr;yua(this,this.api.nf());b&&(c?(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,nQ(this),jQ(this,this.V,this.Ra)):this.mz(),g.eR(this.tooltip));if(a){b=a.watchNextResponse;if(a=!a.isLivePlayback&&b)a=this.api.getVideoData(),b=a.jB,a=null!=a.multiMarkersPlayerBarRenderer||null!=b&&0<b.length;if(!a||this.B||this.B)hua(this),kua(this),iua(this);else if(a=this.api.getVideoData(),b=a.multiMarkersPlayerBarRenderer){var d;
a=this.api.getVideoData();a.Jg=(null===(d=b.visibleOnLoad)||void 0===d?void 0:d.key)||a.Jg;d=g.q(b.markersMap);for(b=d.next();!b.done;b=d.next())b=b.value,b.key&&b.value&&(this.qb[b.key]=b.value);null!=a.Jg&&nua(this,a.Jg)}else if(d=a.jB)lua(this,d),a.bl=this.i}iQ(this)};
g.k.yN=function(a){this.L&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.L.cancel()};
g.k.vM=function(a){var b=!!this.B!==!!a;(this.B=a)?(this.Ta("clipstarticon",Tqa()),this.Ta("clipendicon",Tqa()),this.Ta("clipstarttitle",null),this.Ta("clipendtitle",null)):(this.Ta("clipstarticon",Nqa()),this.Ta("clipendicon",Mqa()),this.Ta("clipstarttitle","Watch entire video"),this.Ta("clipendtitle","Watch entire video"));nQ(this);jQ(this,this.V,this.Ra);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.hQ(this))};
g.k.KT=function(a,b,c){var d=g.Kl(this.element),e=gQ(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=FM(this.l,Number(c.getAttribute("data-position")),0)*e+g.Kl(this.Ic).x);this.fb.x=a-d.x;this.fb.y=b-d.y;a=gQ(this);d=mQ(this,a);b=f||g.yM(this.Ub?d-this.l.i:d);c=a.position+this.Lc;d-=this.api.Qc();if(this.api.Gh()){if(1<this.i.length){h=lQ(this,this.fb.x,!0);for(e=0;e<this.i.length;)g.M(this.i[e].i,
"ytp-exp-chapter-hover-effect",e===h),e++;e=this.i[h].startTime;h=h===this.i.length-1?Infinity:this.i[h+1].startTime;for(var m=g.q(this.ya),n=m.next();!n.done;n=m.next())n=n.value,g.M(n.element,"ytp-timed-marker-hover",n.timeRangeStartMillis>=e&&n.timeRangeStartMillis<h)}h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=lP(this.i,1E3*d);(e=this.i[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=lP(this.i,1E3*d);this.La=sua(this,d,h)?h:sua(this,d,h+1)?h+1:-1;g.M(this.api.getRootNode(),"ytp-progress-bar-snap",
-1!==this.La&&1<this.i.length);h=320*this.tooltip.scale;m=e.length*(this.u?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Rua(this.tooltip,c,d,b,!!f,l,e,n)}else Rua(this.tooltip,c,d,b,!!f,l);g.M(this.api.getRootNode(),"ytp-progress-bar-hover",!g.V(this.api.ub(),64));rua(this)};
g.k.JT=function(){g.eR(this.tooltip);g.Nq(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.IT=function(a,b){this.I&&(this.I.dispose(),this.I=null);this.Pc=b;1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3,!1):this.api.seekTo(mQ(this,gQ(this)),!1);g.K(this.element,"ytp-drag");(this.Xb=g.MK(this.api.ub()))&&this.api.pauseVideo()};
g.k.LT=function(){var a=this;this.xb=0;g.Nq(this.element,"ytp-pull-ui");g.Nq(this.element,"ytp-pulling");this.I&&(this.I.dispose(),this.I=null);if(0<this.Y){var b=(0,g.P)();this.I=new g.Bq(function(){var c=a.Y,d=gQ(a).position,e=1-Math.pow(1-((0,g.P)()-b)/200,3);d+=e*(a.V*a.C-d);if(0>e||1<e)e=1;tua(a,(1-e)*c,d,a.V);1>e&&a.I.start()});
this.I.start()}if(g.V(this.api.ub(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3):this.api.seekTo(mQ(this,gQ(this))),g.Nq(this.element,"ytp-drag"),this.Xb&&!g.V(this.api.ub(),2)&&this.api.playVideo()};
g.k.NT=function(a,b){var c=this,d=!1,e=!1;a=gQ(this);3600<=DM(this.l)&&1===this.i.length&&(tua(this,this.Pc-b-10,a.position,a.u),e=!0,d=this.Y>.1*(this.u?60:40),a=gQ(this));g.M(this.element,"ytp-pull-ui",e);d&&g.K(this.element,"ytp-pulling");b=0;a.l&&0>=a.position&&1===this.i.length?b=-1:a.C&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.xb!==b&&1===this.i.length&&(this.xb=b,this.I&&(this.I.dispose(),this.I=null),b)){var f=(0,g.P)();this.I=new g.Bq(function(){var h=c.C*(c.Ga-1);c.va=g.Nf(c.va+
c.xb*((0,g.P)()-f)*.3,0,h);kQ(c);c.api.seekTo(mQ(c,gQ(c)),!1);0<c.va&&c.va<h&&c.I.start()});
this.I.start()}this.api.seekTo(mQ(this,a),!1)};
g.k.oK=function(){this.B||(this.Ta("clipstarticon",Lqa()),this.Ta("clipendicon",Lqa()),g.K(this.element,"ytp-clip-hover"))};
g.k.nK=function(){this.B||(this.Ta("clipstarticon",Nqa()),this.Ta("clipendicon",Mqa()),g.Nq(this.element,"ytp-clip-hover"))};
g.k.mz=function(){this.clipStart=0;this.clipEnd=Infinity;nQ(this);jQ(this,this.V,this.Ra)};
g.k.xM=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.Da[c]){var d=g.og("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Da[c]=b;this.jb[c]=d;g.Kq(d,b.style);uua(this,c);g.S(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.i[0].u.appendChild(d)}}else xua(this,b)};
g.k.qV=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())xua(this,b.value)};
g.k.xa=function(){yua(this,!1);g.CL.prototype.xa.call(this)};g.v(rQ,g.W);rQ.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
rQ.prototype.Ma=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.BL(this,a&&400<=this.G.bb().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Ta("icon",{D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Kb:!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.Ta("icon",g.Kqa())}g.M(this.element,"ytp-remote-button-active",this.isActive())}};
rQ.prototype.l=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var a=this.yb,b=this.element;if(a.Sf())a.Ab();else{a.initialize();a:{var c=g.q(a.Od.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.bd(b));a.bd(b)}}};g.v(sQ,g.W);sQ.prototype.i=function(a){var b=400;this.G.T().J&&(b=200);a=this.l&&a.width>=b;g.BL(this,a);this.G.kb(this.element,a)};
sQ.prototype.u=function(){if(this.yb.vb)this.yb.Ab();else{var a=g.NN(this.G.sb());a&&!a.loaded&&(a.hf("tracklist",{includeAsr:!0}).length||a.load());this.G.Gb(this.element);this.yb.bd(this.element)}};
sQ.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.tN(this.G),e=c&&!!g.sN(this.G.sb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.M(this.element,"ytp-hdr-quality-badge",a);g.M(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.M(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.M(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.M(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.M(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.M(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(uQ,XO);uQ.prototype.isLoaded=function(){var a=g.WN(this.G.sb());return void 0!==a&&a.loaded};
uQ.prototype.Ma=function(){void 0!==g.WN(this.G.sb())&&3!==this.G.getPresentingPlayerType()?this.i||(this.yb.Cc(this),this.i=!0):this.i&&(this.yb.Kf(this),this.i=!1);this.setValue(this.isLoaded())};
uQ.prototype.l=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.X("annotationvisibility",a)};
uQ.prototype.xa=function(){this.i&&this.yb.Kf(this);XO.prototype.xa.call(this)};g.v(g.vQ,g.PO);g.k=g.vQ.prototype;g.k.open=function(){g.ZO(this.yb,this.u)};
g.k.Th=function(a){Aua(this);this.options[a].element.setAttribute("aria-checked","true");this.dd(this.aj(a));this.l=a};
g.k.xB=function(a,b,c){var d=this;b=new g.PO({D:"div",Ea:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",Ea:["ytp-menuitem-label"],ra:"{{label}}"}]},b,this.aj(a,!0));b.Pa("click",function(){d.zf(a)});
return b};
g.k.enable=function(a){this.B?a||(this.B=!1,this.Iq(!1)):a&&(this.B=!0,this.Iq(!0))};
g.k.Iq=function(a){a?this.yb.Cc(this):this.yb.Kf(this)};
g.k.zf=function(a){this.X("select",a)};
g.k.aj=function(a){return a.toString()};
g.k.AN=function(a){g.gu(a)||39!==g.hu(a)||(this.open(),g.fu(a))};
g.k.xa=function(){this.B&&this.yb.Kf(this);g.PO.prototype.xa.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.v(xQ,g.vQ);xQ.prototype.Ma=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.wQ(this,g.Qe(a,this.C)),this.tracks=g.Db(a,this.C,this),this.i.dd(a.length?" ("+a.length+")":""),this.X("size-change"),this.Th(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
xQ.prototype.zf=function(a){g.vQ.prototype.zf.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.yb.kh()};
xQ.prototype.C=function(a){return a.toString()};g.v(yQ,XO);
yQ.prototype.l=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.vN(this.G))this.i||(this.yb.Cc(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.kb(this.element,this.i));else if(this.i){this.yb.Kf(this);this.i=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.lc(b.value)}};
yQ.prototype.B=function(a){this.setValue(1!==a)};
yQ.prototype.C=function(a){this.G.pz(a?2:1);this.i&&(this.G.kb(this.element,this.i),this.G.Gb(this.element))};
yQ.prototype.xa=function(){this.i&&this.yb.Kf(this);XO.prototype.xa.call(this)};g.v(zQ,g.qO);zQ.prototype.bd=function(){g.qO.prototype.bd.call(this);this.dialog.focus()};g.v(AQ,g.PO);AQ.prototype.Sb=function(a){this.l&&this.G.kb(this.element,this.i&&a)};
AQ.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.OO(this,BQ(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.u=new zQ(this.G,BQ(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),BQ(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),BQ(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.F(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.Pg(this.element,this,!0),this.G.im(this.element,d);this.yb.Cc(this);this.i=!0}else!c&&this.i&&(this.yb.Kf(this),this.i=!1)};
AQ.prototype.onClick=function(){this.l&&this.G.Gb(this.element);this.yb.Ab();this.u&&this.u.bd()};g.v(CQ,g.vQ);g.k=CQ.prototype;g.k.jt=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=this.G.Tm(),a=this.G.getAvailableQualityLevels(),g.gsa(this.G)&&g.hsa(this.G)&&a.unshift("missing-qualities"),isa(this.G)&&a.unshift("inline-survey"),g.wQ(this,a),a.length)){this.cG();this.enable(!0);return}this.enable(!1)};
g.k.cG=function(){var a=this.G.getPreferredQuality();this.options[a]&&(this.i=this.G.getPlaybackQuality(),this.Th(a),"auto"===a&&this.dd(this.aj(a)))};
g.k.zf=function(a){"missing-qualities"!==a&&(g.vQ.prototype.zf.call(this,a),this.G.setPlaybackQuality(a),this.yb.Ab(),this.jt())};
g.k.xB=function(a,b,c){var d=this;if("inline-survey"!==a)return g.vQ.prototype.xB.call(this,a,b,c);a=[{D:"span",ra:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={qw:c.qw},f=e.next())c.qw=f.value,f=new g.W({D:"span",K:"ytp-menuitem-inline-survey-response",S:[c.qw?g.JL():Qqa()],U:{tabindex:"0",role:"button"}}),f.Pa("click",function(h){return function(){var l=h.qw,m=g.X(d.G.app);m&&(m.Ha("iqsr",l?"0":"1"),m.getVideoData().wL=!0);d.yb.Ab();d.jt()}}(c)),a.push(f);
return new g.PO({D:"div",K:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{D:"div",Ea:["ytp-menuitem-label"],S:a}]},b)};
g.k.aj=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().I},ra:"Missing options?"};if("inline-survey"===a)return"";var c=[Bua(this,a)],d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(Bua(this,this.i,["ytp-menu-label-secondary"])));return{D:"div",S:c}};g.v(DQ,g.W);g.k=DQ.prototype;g.k.init=function(){this.gq(this.i);this.Ta("minvalue",this.minimumValue);this.Ta("maxvalue",this.maximumValue)};
g.k.DN=function(a){if(!g.gu(a)){switch(g.hu(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.gq(this.i+b);g.fu(a)}};
g.k.BN=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.C:this.C;this.gq(b);g.fu(a)};
g.k.CN=function(a){a=(a-g.Kl(this.l).x)/this.J*this.range+this.minimumValue;this.gq(a)};
g.k.gq=function(a,b){b=void 0===b?"":b;a=g.Nf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ta("valuenow",a);this.Ta("valuetext",b);this.L.style.left=(a-this.minimumValue)/this.range*(this.J-this.Y)+"px";this.i=a};
g.k.focus=function(){this.va.focus()};g.v(FQ,DQ);FQ.prototype.V=function(){this.G.setPlaybackRate(this.i,!0)};
FQ.prototype.gq=function(a){DQ.prototype.gq.call(this,a,GQ(this,a).toString());this.u&&(EQ(this),this.ya())};
FQ.prototype.Aa=function(){var a=this.G.getPlaybackRate();GQ(this,this.i)!==a&&(this.gq(a),EQ(this))};g.v(HQ,g.CL);HQ.prototype.focus=function(){this.i.focus()};g.v(Cua,SO);g.v(IQ,g.vQ);g.k=IQ.prototype;g.k.aj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ma=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);Fua(this)};
g.k.Iq=function(a){g.vQ.prototype.Iq.call(this,a);a?(this.J=this.N(this.G,"onPlaybackRateChange",this.EN),Fua(this),Dua(this,this.G.getPlaybackRate())):(this.lc(this.J),this.J=null)};
g.k.EN=function(a){var b=this.G.getPlaybackRate();this.I.includes(b)||Eua(this,b);Dua(this,a)};
g.k.zf=function(a){g.vQ.prototype.zf.call(this,a);a===this.i?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.yb.kh()};g.v(KQ,g.vQ);g.k=KQ.prototype;g.k.Th=function(a){g.vQ.prototype.Th.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.aj=function(a){return this.getOption(a).text||""};
g.k.zf=function(a){g.vQ.prototype.zf.call(this,a);this.X("settingChange",this.setting,this.settings[a].option)};g.v(LQ,g.TO);LQ.prototype.xf=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.Cn[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Th(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
LQ.prototype.ih=function(a,b){this.X("settingChange",a,b)};g.v(MQ,g.vQ);MQ.prototype.getKey=function(a){return a.languageCode};
MQ.prototype.aj=function(a){return this.languages[a].languageName||""};
MQ.prototype.zf=function(a){this.X("select",a);this.G.Gb(this.element);g.cP(this.yb)};g.v(NQ,g.vQ);g.k=NQ.prototype;g.k.getKey=function(a){return g.Rb(a)?"__off__":a.displayName};
g.k.aj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.zf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.HO(this.G.T(),this.G.getVideoData()),g.nK(a)):(this.G.Gb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.vQ.prototype.zf.call(this,a),this.yb.kh())};
g.k.Ma=function(){var a,b=this.G.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.G.getVideoData();c=c&&c.jl;var d=!(null===(a=this.G.getVideoData())||void 0===a||!g.fI(a)),e={};if(b||c){if(b){var f=this.G.getOption("captions","track");e=this.G.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.Db(e,this.getKey,this);d=g.Qe(e,this.getKey);if(h.length&&!g.Rb(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
l.languageName;l=h.findIndex(function(n){return n.languageName===m});
qaa(h,l)}Hua(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.wQ(this,d);this.Th(h);f&&f.translationLanguage?this.i.Th(this.i.getKey(f.translationLanguage)):Aua(this.i);b&&this.C.xf(this.G.getSubtitlesUserSettings());this.J.dd(e&&e.length?" ("+e.length+")":"");this.X("size-change");this.G.kb(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.FN=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.ih=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}Iua(this,!0);this.I.start();this.C.xf(this.G.getSubtitlesUserSettings())};
g.k.sU=function(a){a||g.Hq(this.I)};
g.k.xa=function(){g.Hq(this.I);g.vQ.prototype.xa.call(this)};g.v(OQ,g.aP);g.k=OQ.prototype;g.k.initialize=function(){if(!this.ge){this.ge=!0;this.lD=new AQ(this.G,this);g.F(this,this.lD);var a=new CQ(this.G,this);g.F(this,a);a=new NQ(this.G,this);g.F(this,a);a=new uQ(this.G,this);g.F(this,a);this.G.T().Xb&&(a=new IQ(this.G,this),g.F(this,a));this.G.T().Lb&&!g.S(this.G.T().experiments,"web_player_move_autonav_toggle")&&(a=new yQ(this.G,this),g.F(this,a));a=new xQ(this.G,this);g.F(this,a);tQ(this.settingsButton,this.Od.items.length)}};
g.k.Cc=function(a){this.initialize();this.Od.Cc(a);tQ(this.settingsButton,this.Od.items.length)};
g.k.Kf=function(a){this.vb&&1>=this.Od.items.length&&this.hide();this.Od.Kf(a);tQ(this.settingsButton,this.Od.items.length)};
g.k.bd=function(a){this.initialize();0<this.Od.items.length&&g.aP.prototype.bd.call(this,a)};
g.k.show=function(){g.aP.prototype.show.call(this);g.K(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.aP.prototype.hide.call(this);g.Nq(this.G.getRootNode(),"ytp-settings-shown")};
g.k.Re=function(a){var b;this.G.kb(this.element,a);null===(b=this.lD)||void 0===b?void 0:b.Sb(a)};g.v(PQ,g.W);PQ.prototype.onClick=function(){var a=this.G.app;a.Wa.Na("SIZE_CLICKED",!a.xb)};
PQ.prototype.Ma=function(){g.BL(this,this.G.cD()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.vb){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",Kb:!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",Kb:!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.Ta("icon",b):Pta(this.transition,this.element,b);this.isWidescreen=a;b=hO(this.G,"Default view","t");var c=hO(this.G,"Theater mode","t");this.Ta("title",a?b:c);gP(this.tooltip)}}};g.v(g.QQ,g.W);g.QQ.prototype.onClick=function(){this.G.toggleSubtitles();this.G.Gb(this.element);if(!this.isEnabled()){var a=!1,b=g.kv(g.iv.getInstance(),65);g.KG(this.G.T())&&null!=b&&(a=!b);a&&g.S(this.G.T().experiments,"web_player_nitrate_promo_tooltip")&&this.G.X("showpromotooltip",this.element)}};
g.QQ.prototype.i=function(a){var b,c;null===(c=null===(b=g.kN(this.G))||void 0===b?void 0:b.Zm())||void 0===c?void 0:c.bd(a)};
g.QQ.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.QQ.prototype.Ma=function(){var a=null!=g.NN(this.G.sb()),b=300;this.G.T().J&&(b=480);b=a&&this.G.bb().getPlayerSize().width>=b;g.BL(this,b);this.G.kb(this.element,b);a&&this.Ta("pressed",this.isEnabled())};g.v(g.RQ,g.W);g.k=g.RQ.prototype;
g.k.Rb=function(){var a=this.api.bb().getPlayerSize().width,b=this.J;this.api.T().J&&(b=300);b=a>=b&&(!this.l||!g.V(this.api.ub(),64));g.BL(this,b);g.M(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.yM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Ta("currenttime",c),this.u=c);b=g.yM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:
this.api.getDuration(b,!1));this.B!==b&&(this.Ta("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.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.dd(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.FO(this.tooltip,this.liveBadge.element)))};
g.k.ob=function(a,b,c){this.updateVideoData((g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime")||g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rb()};
g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.Cb;this.isPremiere=a.isPremiere;g.M(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.xa=function(){this.i&&this.i();g.W.prototype.xa.call(this)};g.v(UQ,g.W);g.k=UQ.prototype;g.k.Yl=function(){var a=this.i.Le();this.u!==a&&(this.u=a,TQ(this,this.api.getVolume(),this.api.isMuted()))};
g.k.dG=function(a){g.BL(this,350<=a.width)};
g.k.IN=function(a){if(!g.gu(a)){var b=g.hu(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.Nf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.fu(a))}};
g.k.GN=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.Nf(b/10,-10,10));g.fu(a)};
g.k.wU=function(){SQ(this,this.l,!0,this.hasFocus,this.i.ni());this.L=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.HN=function(a){var b=this.u?78:52,c=this.u?18:12;a-=g.Kl(this.J).x;this.api.setVolume(100*g.Nf((a-c/2)/(b-c),0,1))};
g.k.vU=function(){SQ(this,this.l,!1,this.hasFocus,this.i.ni());0===this.volume&&(this.api.mute(),this.api.setVolume(this.L))};
g.k.Hf=function(a){TQ(this,a.volume,a.muted)};
g.k.QH=function(){SQ(this,this.l,this.isDragging,this.hasFocus,this.i.ni())};
g.k.xa=function(){g.W.prototype.xa.call(this);g.Nq(this.I,"ytp-volume-slider-active")};g.v(g.VQ,g.W);g.VQ.prototype.ob=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.BL(this,this.visible);this.api.kb(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ta("url",a))};
g.VQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.zM(a),!1,!0,!0);if(g.QF(this.api.T())||g.aG(this.api.T()))b=g.ui(b,g.IO("emb_logo"));g.eO(b,this.api,a);this.api.Gb(this.element)};
g.VQ.prototype.tb=function(){var a={D:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",Kb:!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.aG(this.api.T())){var b=this.Ca("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.M(b,"ytp-youtube-music-logo-icon-only",c)}this.Ta("logoSvg",a)};
g.VQ.prototype.Sb=function(a){g.W.prototype.Sb.call(this,a);this.api.kb(this.element,this.visible&&a)};g.v(XQ,g.wN);g.k=XQ.prototype;g.k.hd=function(){this.Ic.Rb();this.Dg.Rb()};
g.k.uj=function(){var a,b;this.BA();this.kd.l?(this.hd(),null===(b=this.L)||void 0===b?void 0:b.show()):(g.eR(this.Ic.tooltip),null===(a=this.L)||void 0===a?void 0:a.hide())};
g.k.Mp=function(){this.hd();this.zd.start()};
g.k.BA=function(){var a=!this.G.T().i&&300>g.zua(this.Ic)&&this.G.ub().yc()&&!!window.requestAnimationFrame,b=!a;this.kd.l||(a=b=!1);b?this.J||(this.J=this.N(this.G,"progresssync",this.hd)):this.J&&(this.lc(this.J),this.J=null);a?this.zd.isActive()||this.zd.start():this.zd.stop()};
g.k.tb=function(){var a=this.u.Le(),b=this.G.bb().getPlayerSize(),c=YQ(this),d=Math.max(b.width-2*c,100);if(this.Ga!==b.width||this.Ia!==a){this.Ga=b.width;this.Ia=a;var e=Mua(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.qQ(this.Ic,c,e,a);this.u.jc().CA=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-ZQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Bw=e;c.Is();this.BA();!this.G.T().Z("html5_player_bottom_linear_gradient")&&g.S(this.G.T().experiments,"html5_player_dynamic_bottom_gradient")&&
g.JP(this.La,b.height)};
g.k.ob=function(){var a=this.G.getVideoData();this.ya.style.background=a.C?a.Ga:"";g.BL(this.ea,a.mA)};g.v($Q,DP);g.k=$Q.prototype;g.k.DD=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Na("innertubeCommand",this.onClickCommand),this.u=!0,this.L.hide())};
g.k.ED=function(){this.u=!0;this.L.hide()};
g.k.ob=function(a,b){var c;"newdata"===a&&(this.l=this.u=!1,aR(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=$ta(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.Oz(e,d,{priority:7,WZ:"suggested_action_button_visible"}));this.G.Id(b)}this.onClickCommand=a.tapCommand;Ita(this);CP(this);this.Qh()}};
g.k.Sv=function(){return!this.u&&this.enabled&&(this.l||this.i)};
g.k.Re=function(a){this.u||((this.l=a)?BP(this):(aR(this),this.Y.start()),this.Qh())};
g.k.xa=function(){aR(this);DP.prototype.xa.call(this)};var V2={},bR=(V2.CHANNEL_NAME="ytp-title-channel-name",V2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",V2.LINK="ytp-title-link",V2.SESSIONLINK="yt-uix-sessionlink",V2.SUBTEXT="ytp-title-subtext",V2.TEXT="ytp-title-text",V2.TITLE="ytp-title",V2);g.v(cR,g.W);cR.prototype.onClick=function(a){this.api.Gb(this.element);var b=this.api.getVideoUrl(!g.zM(a),!1,!0);g.QF(this.api.T())&&(b=g.ui(b,g.IO("emb_title")));g.eO(b,this.api,a)};
cR.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();this.Ta("title",a.title);Nua(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Tb&&c.wg?(this.Ta("channelLink",c.Tb),this.Ta("channelName",c.author),this.Ta("channelTitleFocusable","0")):Nua(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Ig;g.M(this.link,bR.FULLERSCREEN_LINK,c);b.L||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Ta("url",null),this.lc(this.i),
this.i=null):(this.Ta("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.v(g.dR,g.W);g.k=g.dR.prototype;g.k.yK=function(a,b){a<=this.l&&this.l<=b&&(a=this.l,this.l=NaN,Pua(this,a))};
g.k.lR=function(){mma(this.i,this.l,160*this.scale)};
g.k.Tj=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);Sua(this);break;case 3:Sua(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.yK,this),this.i=null),this.api.removeEventListener("videoready",this.V),this.Y.stop()}this.type=null;this.I&&this.B.hide()};
g.k.cj=function(a){for(var b=0;b<arguments.length;++b);if(this.activeElement)for(b=0;b<arguments.length;b++)g.ug(arguments[b],this.activeElement)&&this.Tj()};
g.k.xa=function(){null!=this.type&&this.Tj();this.i&&this.i.dispose();g.W.prototype.xa.call(this)};g.v(g.fR,g.W);g.k=g.fR.prototype;g.k.Cw=function(){var a=this.G.getPlayerSize(),b=this.G.T(),c=this.G.getVideoData(),d=g.QF(b)&&g.rN(this.G)&&g.V(this.G.ub(),128);this.visible=b.Rj&&240<=a.width&&!c.isAd()&&c.Gg&&!d&&!(c.C&&b.pfpChazalUi);g.BL(this,this.visible);this.icon&&Yua(this,this.icon);this.G.kb(this.element,this.visible&&this.ea)};
g.k.eG=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.Gb(this.element);var b=this.G.T(),c=this.eG();b.ea?Vua(this):this.G.Bz()?this.G.requestStorageAccess(function(){g.Kv("embedsItpWatchLaterResult",{accepted:!0});Ru();Wua(a,c)},function(){g.Kv("embedsItpWatchLaterResult",{accepted:!1});
Xua(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Wua(this,c)};
g.k.JN=function(){this.isRequestPending=this.i=!1;this.Ma(2)};
g.k.Ma=function(a,b){var c=this.G.T();Yua(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.iJ("Added as $USER_NAME",a):g.iJ("Watch later as $USER_NAME",a),image:PG(c)})):this.update({title:"Watch later",image:null});gP(this.tooltip)};
g.k.Sb=function(a){g.W.prototype.Sb.call(this,a);this.G.kb(this.element,this.visible&&a)};g.v(gR,g.uO);g.k=gR.prototype;g.k.jc=function(){return this.tooltip};
g.k.NI=function(){return this.Vf};
g.k.Nm=function(a,b){b?this.hk=a:this.hk=null;this.Ti()};
g.k.rr=function(a,b){if(b)this.Fn.push(a);else for(b=this.Fn.length;0<=b;b--)if(this.Fn[b]===a){this.Fn.splice(b,1);break}$N(this.kd,64,0<this.Fn.length)};
g.k.Un=function(){this.api.yh()&&this.api.gk();return!!this.hk||Zua(this)||g.uO.prototype.Un.call(this)};
g.k.Ti=function(){var a=!this.Un(),b=a&&this.api.yh()&&!g.V(this.api.ub(),2)&&!(this.api.getVideoData().C&&this.api.T().pfpChazalUi),c=this.zp&&g.rN(this.api)&&g.V(this.api.ub(),128);a||c?(this.aF.show(),this.bF.show()):(this.aF.hide(),this.bF.hide(),this.tooltip.cj(this.Oh.element));b?this.Zh.bd():this.Zh.Ab();this.Vf&&Lua(this.Vf,!a);g.uO.prototype.Ti.call(this)};
g.k.Up=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ql(a),h=d||this.Vf&&g.ug(this.Vf.l.element,b),l=d=null;null!=c&&h||(d=g.Ql(b),l=g.Ol(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Vf,d=YQ(b),l=Mua(b),h=this.api.bb().getPlayerSize().height,c=g.Nf(c,d,d+l-f.width),f=h-ZQ(b)-f.height):g.ug(this.Oh.element,b)?(b=this.api.bb().getPlayerSize().width,c=g.Nf(c,12,b-f.width-12),f=this.Le()?this.KB:this.JB,"gvn"===this.api.T().playerStyle&&(f+=
20),this.zp&&(f-=this.Le()?26:18)):(b=this.api.bb().getPlayerSize(),c=g.Nf(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.uj=function(a){a&&(this.tooltip.cj(this.Oh.element),this.Vf&&this.tooltip.cj(this.Vf.l.element));this.api.Z("embeds_enable_player_overlays_autohide")&&this.Tx&&(g.M(this.contextMenu.element,"ytp-autohide",a),g.M(this.contextMenu.element,"ytp-autohide-active",!0));g.uO.prototype.uj.call(this,a)};
g.k.CD=function(){g.uO.prototype.CD.call(this);this.api.Z("embeds_enable_player_overlays_autohide")&&this.Tx&&(g.M(this.contextMenu.element,"ytp-autohide-active",!1),this.api.Z("embeds_enable_player_overlays_autohide")&&this.Tx&&(this.contextMenu.hide(),this.Tf&&this.Tf.hide()))};
g.k.ij=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.rl(0,0,c.width,c.height);if(a||this.kd.l&&!this.Un()){if(this.api.T().Nj||b)a=this.Le()?this.KB:this.JB,c.top+=a,c.height-=a;this.Vf&&(c.height-=ZQ(this.Vf))}return c};
g.k.Yl=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.kx.element,b),b.parentElement.insertBefore(this.jx.element,b.nextSibling))):g.ds(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.kx.detach(),this.jx.detach());this.tb();this.pm()};
g.k.Le=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.J||!1};
g.k.showControls=function(a){this.Zw=!a;this.Ti()};
g.k.tb=function(){var a=this.Le();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.M(this.contextMenu.element,"ytp-big-mode",a);this.Ti();if(this.qf()&&this.Tf)this.ph&&rP(this.Tf,this.ph),this.shareButton&&rP(this.Tf,this.shareButton),this.Og&&rP(this.Tf,this.Og);else{if(this.Tf){a=this.Tf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.ph&&!g.ug(this.Eg.element,this.ph.element)&&this.ph.Ba(this.Eg.element);this.shareButton&&!g.ug(this.Eg.element,
this.shareButton.element)&&this.shareButton.Ba(this.Eg.element);this.Og&&!g.ug(this.Eg.element,this.Og.element)&&this.Og.Ba(this.Eg.element)}this.pm();g.uO.prototype.tb.call(this)};
g.k.vC=function(){if(Zua(this)&&!g.rN(this.api))return!1;var a=this.api.getVideoData();return!g.QF(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Sg||((a=this.Sg||a.Sg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.uO.prototype.vC.call(this):!1};
g.k.pm=function(){g.uO.prototype.pm.call(this);this.api.kb(this.title.element,!!this.yk);this.Wr&&this.Wr.Sb(!!this.yk);this.channelAvatar.Sb(!!this.yk);this.overflowButton&&this.overflowButton.Sb(this.qf()&&!!this.yk);this.shareButton&&this.shareButton.Sb(!this.qf()&&!!this.yk);this.ph&&this.ph.Sb(!this.qf()&&!!this.yk);this.Og&&this.Og.Sb(!this.qf()&&!!this.yk);if(!this.yk){this.tooltip.cj(this.Oh.element);for(var a=0;a<this.gw.length;a++){var b=this.gw[a];b.Sf()&&b.Ab()}}};
g.k.Jb=function(a){this.Vf&&Lua(this.Vf,this.Un());this.Ti();g.uO.prototype.Jb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Rl?this.Rl.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Rl?this.Rl.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.pk=function(){return this.contextMenu.vb?(this.contextMenu.Ab(),!0):this.Fn.length?(this.Fn[this.Fn.length-1].Ab(),!0):this.hk?(this.hk.Ab(),!0):g.uO.prototype.pk.call(this)};
g.k.yz=function(a,b){this.FE=b;this.rr(a,b);this.CM()};
g.k.CM=function(){var a=this.FE||this.contextMenu.Sf();this.uB!==a&&(this.uB=a,this.api.Na("onAutonavPauseRequest",this.uB))};
g.k.fQ=function(){hR(this,this.api.getRootNode(),!0).focus()};
g.k.gQ=function(){hR(this,this.api.getRootNode(),!1).focus()};
g.k.Zm=function(){return this.Vf&&this.Vf.i};
g.k.Rk=function(){this.kd.Rk()};
g.k.Nx=function(){this.qc.hide()};
g.k.jq=function(a){this.qc.jq(!g.MK(a))};
g.k.Kv=function(a,b,c,d){this.Tt.Kv(a,b,c,d)};
g.k.yL=function(a,b){jP(this.Tt,a,b)};
g.k.AS=function(){$ua(this,!0)};
g.k.iT=function(a){$ua(this,!1,a)};g.v(g.iR,g.FN);g.iR.prototype.Li=function(){return!1};
g.iR.prototype.create=function(){var a=this.player.T();g.ZF(a)&&a.i?this.chrome=new g.uO(this.player):this.chrome=new gR(this.player);g.F(this,this.chrome);this.chrome.init();this.player.Ed("ux")};
g.iR.prototype.ju=function(){return this.chrome};jR.prototype.getState=function(){return this.store.getState()};
jR.prototype.dispatch=function(a){return this.store.dispatch(a)};
jR.prototype.subscribe=function(a){return this.store.subscribe(a)};
jR.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
jR.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};kR.prototype.bf=function(a){var b=void 0===b?"":b;if(!mR(this,a))return b;a=lR(this);if(!a)return"";b=BD(this.l,this.i,a);this.i+=a;return g.A.TextDecoder?(new TextDecoder).decode(b):g.Za(b)};for(var fva={captionTrack:225,logoEntity:245,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,playbackData:119,transfer:120,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},eva={},FKa=g.q(Object.entries(fva)),W2=FKa.next();!W2.done;W2=FKa.next()){var GKa=g.q(W2.value),HKa=GKa.next().value,IKa=GKa.next().value;IKa&&(eva[IKa]=HKa)};var X2={},mva=Kw("PersistentEntityStoreDb",{fv:(X2.EntityStore={xl:1},X2.EntityAssociationStore={xl:2},X2),Az:!1,upgrade:function(a,b){b(1)&&pw(iw(a,"EntityStore",{keyPath:"key"}),"entityType","entityType");b(2)&&(a=iw(a,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),pw(a,"byParentEntityKey","parentEntityKey"),pw(a,"byChildEntityKey","childEntityKey"))},
version:2});var gva={captionTrack:Nr,offlineOrchestrationActionWrapperEntity:Or,offlineVideoPolicy:Pr,offlineVideoStreams:Qr,offlineabilityEntity:Ir,orchestrationWebSamplingEntity:Jr,playbackData:Rr,transfer:Sr,ytMainChannelEntity:Lr,ytMainDownloadedVideoEntity:Kr,ytMainVideoEntity:Mr};g.v(GR,g.E);GR.prototype.l=function(a){nva(this,a.data)};
GR.prototype.xa=function(){this.channel&&this.channel.close()};
var MR,qva=void 0;var TR=g.A.caches,SR,UR;PR.prototype.open=function(a){return TR.open(RR(a))};
PR.prototype.has=function(a){return TR.has(RR(a))};
PR.prototype.delete=function(a){return TR.delete(RR(a))};
PR.prototype.match=function(a,b){return g.D(this,function d(){var e=this,f,h,l,m,n,p;return g.z(d,function(r){switch(r.i){case 1:return g.w(r,e.keys(),2);case 2:f=r.l,h=g.q(f),l=h.next();case 3:if(l.done){r.wb(5);break}m=l.value;return g.w(r,e.open(m),6);case 6:return n=r.l,g.w(r,n.match(a,b),7);case 7:if(p=r.l)return r.return(p);l=h.next();r.wb(3);break;case 5:return r.return()}})})};
g.v(QR,PR);QR.prototype.keys=function(){return g.D(this,function b(){var c,d,e,f,h,l,m,n,p;return g.z(b,function(r){if(1==r.i)return c=[],d=Qv("CacheStorage keys"),g.w(r,TR.keys(),2);e=r.l;f=g.q(e);for(h=f.next();!h.done;h=f.next()){l=h.value;var t=l.indexOf(":");m=-1===t?{VD:l}:{VD:l.substring(0,t),datasyncId:l.substring(t+1)};n=m.VD;p=m.datasyncId;p===d&&c.push(n)}return r.return(c)})})};var JKa={zX:"captionTrack",U1:"ytMainChannelEntity",V1:"ytMainDownloadedVideoEntity",W1:"ytMainVideoEntity",J4:"offlineOrchestrationActionWrapperEntity",R4:"offlineVideoPolicy",S4:"offlineVideoStreams",q5:"playbackData",B7:"transfer"},Ywa=Object.keys(JKa).map(function(a){return JKa[a]}),Fva="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var ava=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{aha(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},r=0;r<f.length;r++){var t=f[r],u=l[t],x=(0,c[t])(u,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" 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.');
p[t]=x;n=n||x!==u}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null===(f=e.options)||void 0===f?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.by(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.by(new g.Pv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=Jb(e.payload);return yR(d,l,e.entityKey,
e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=vR(e).entityType;l=yR(d,m,e,void 0)}catch(n){if(n instanceof Error)g.by(new g.Pv("Failed to deserialize entity key",{entityKey:e,originalMessage:n.message})),l=d;else throw n;}}else l=d;return l},a);
case "REPLACE_ENTITY":var c=b.payload;return yR(a,c.entityType,c.key,c.c9);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return yR(h,e,l,f[l])},d)},a);
default:return a}}}),rva=new jR;g.v(dS,bS);dS.prototype.l=function(a){return ZR(a)?Jva(this,a):$R(a)?Kva(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.v(fS,bS);fS.prototype.l=function(a){return ZR(a)?Nva(this,a):$R(a)?Ova(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
fS.prototype.handleUpdate=function(a){return g.D(this,function c(){var d,e=this,f;return g.z(c,function(h){switch(h.i){case 1:return d=YR(a),g.w(h,KR(e.i,a.entityKey,"transfer"),2);case 2:f=h.l;if(!f||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==f.transferState)return h.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d));ta(h,3);f.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.w(h,JR(e.i,f,"transfer"),5);case 5:ua(h,4);break;case 3:return va(h),h.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",
d));case 4:return h.return(new cS("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d))}})})};g.v(gS,bS);gS.prototype.l=function(a){return ZR(a)?Tva(this,a):$R(a)?Uva(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?Vva(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var Xva=[10];var pwa=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"],KKa=Zva(),Yva=[1,2,4];var GS;fwa.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.v(SS,g.E);SS.prototype.xa=function(){this.I&&this.I();g.E.prototype.xa.call(this)};
SS.prototype.createAction=function(a,b){var c=vR(a.entityKey).entityType,d=Ix();return new hS(c,d,a,b.actionId,b.rootActionId)};
SS.prototype.L=function(a){var b;return g.D(this,function d(){var e=this,f,h,l,m,n,p,r,t;return g.z(d,function(u){if(1==u.i){if(e.isDisposed())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.q(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=vR(n),r=p.entityId,hwa(e.l,r)||h.push(n);return g.w(u,rwa(e,h),2)}t=u.l;return g.w(u,US(e,t),0)})})};wwa.prototype.info=function(){};VS.prototype.C=function(a){var b;return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(!g.V(a.state,128))return h.wb(0);var l=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode;f=(null===l||void 0===l?0:l.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.w(h,e.yv(e.player.getVideoData().videoId,f),0)})})};
VS.prototype.yv=function(a,b){return g.D(this,function d(){var e=this;return g.z(d,function(f){if(1==f.i){if(e.l)return f.return();e.l=!0;return g.w(f,WS(e,a),2)}$G(a,4);return g.w(f,e.i.yv(b),0)})})};
VS.prototype.I=function(a){2===a.status?(a.status!==this.u&&(aT(this.i),$G(a.videoId,2)),a.Dv&&Lwa(this.i,a.videoId,a.Dv)):4===a.status?this.yv(a.videoId,"TRANSFER_FAILURE_REASON_INTERNAL"):1===a.status&&Kwa(this.i);this.u=a.status;this.api.Na("localmediachange",{videoId:a.videoId,status:a.status})};
VS.prototype.MD=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){if(1==e.i){if(c.l)return e.return();c.l=!0;d=c.player.getVideoData().videoId;return g.w(e,WS(c,d),2)}return g.w(e,c.i.MD(),0)})})};g.v(XS,g.E);XS.prototype.xa=function(){this.l&&this.l();g.E.prototype.xa.call(this)};
XS.prototype.u=function(a){var b;return g.D(this,function d(){var e,f,h,l,m,n,p,r=this;return g.z(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=vR(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.w(t,zwa(r,f),0)})})};g.v(YS,g.E);YS.prototype.xa=function(){this.B&&this.B();this.C.dispose();g.E.prototype.xa.call(this)};
YS.prototype.L=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){switch(e.i){case 1:if(!d.i){e.wb(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.wb(3);break}return g.w(e,KR(d.l,d.i.key,"transfer"),4);case 4:d.i=e.l;if(d.i){e.wb(3);break}return g.w(e,Fwa(d),3);case 3:if(d.i)return e.return();case 2:return g.w(e,ZS(d),0)}})})};
YS.prototype.yv=function(a,b){return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var l=!1;break a;default:l=!0}return l?Mwa(e)?g.w(h,cT(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.w(h,dT(e,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3):g.w(h,dT(e,a),3)}$S(e);f=ZS(e,!0);
b&&b(f);g.sa(h)})})};
YS.prototype.MD=function(a){return g.D(this,function c(){var d=this,e,f,h,l,m,n;return g.z(c,function(p){if(1==p.i)return Mwa(d)?g.w(p,cT(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.w(p,dT(d,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3);if(3!=p.i)return e=vR(d.i.key).entityId,WR({encryptedVideoId:e,cotn:d.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"}),f=Zva(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},
h=wR(e,"playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=iS(new hS("playbackData",e,l)),g.w(p,JR(d.l,m,"offlineOrchestrationActionWrapperEntity"),3);$S(d);n=ZS(d,!0);a&&a(n);g.sa(p)})})};
var Y2={},eT=(Y2.TRANSFER_STATE_TRANSFERRING=1,Y2.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,Y2);g.k=Pwa.prototype;g.k.isOrchestrationLeader=function(){return this.B};
g.k.refreshAllVideos=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){switch(e.i){case 1:if(c.u.nj()){e.wb(2);break}return g.w(e,Xwa(c),3);case 3:return e.return([]);case 2:return d=c.Fv,g.w(e,Wwa(c),4);case 4:return e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))}})})};
g.k.deleteVideos=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){return e.return(d.Fv(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.deleteAllVideos=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return d.return(c.Fv(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.Fv=function(a,b){return g.D(this,function d(){var e,f;return g.z(d,function(h){if(1==h.i)return g.w(h,NR(),2);e=h.l;if(!e)return h.return([]);f=a.map(function(l){var m=wR(l,"ytMainDownloadedVideoEntity");m={actionType:b,entityKey:m,actionMetadata:KKa};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(m.actionMetadata.priority=0);l=new hS("ytMainDownloadedVideoEntity",l,m);return iS(l)});
return h.return(ova(e,f))})})};var fT=[],nEa=!1;g.BW=bb(function(){var a="";try{var b=g.og("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.gT,CK);g.k=g.gT.prototype;g.k.isView=function(){return!0};
g.k.rE=function(){var a=this.oa.getCurrentTime();if(a<this.start)try{var b=this.oa.Qf(),c=qE(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.qp=function(){return tE(this.oa.qp(),this.start,this.end)};
g.k.Qf=function(){return tE(this.oa.Qf(),this.start,this.end)};
g.k.Bu=function(){return tE(this.oa.Bu(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.oa.getCurrentTime()-this.start};
g.k.wz=function(a){this.oa.wz(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.oa.getDuration()-this.start};
g.k.play=function(){if(this.rE()){this.oa.getCurrentTime();try{this.oa.wz(this.start)}catch(a){}}return this.oa.play()};
g.k.Eb=function(){var a=CK.prototype.Eb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.oa.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.oa.removeEventListener(a,b)};
g.k.xw=function(){return this.oa.xw()};
g.k.Rq=function(a){this.oa.Rq(a)};
g.k.mp=function(){return this.oa.mp()};
g.k.playVideo=function(){return this.oa.playVideo()};
g.k.YB=function(){this.oa.YB()};
g.k.XB=function(){this.oa.XB()};
g.k.Bo=function(){return this.oa.Bo()};
g.k.Ge=function(){return this.oa.Ge()};
g.k.Af=function(){return this.oa.Af()};
g.k.Aw=function(a){this.oa.Aw(a)};
g.k.nz=function(){this.oa.nz()};
g.k.getPlaybackRate=function(){return this.oa.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.oa.setPlaybackRate(a)};
g.k.lp=function(){return this.oa.lp()};
g.k.setLoop=function(a){this.oa.setLoop(a)};
g.k.canPlayType=function(a,b){return this.oa.canPlayType(a,b)};
g.k.ym=function(){return this.oa.ym()};
g.k.Zs=function(){return this.oa.Zs()};
g.k.Bk=function(){return this.oa.Bk()};
g.k.zx=function(){return this.oa.zx()};
g.k.us=function(a){this.oa.us(a)};
g.k.yw=function(){return this.oa.yw()};
g.k.load=function(){this.oa.load()};
g.k.pause=function(){this.oa.pause()};
g.k.rh=function(){return this.oa.rh()};
g.k.Ax=function(){return this.oa.Ax()};
g.k.Zi=function(){return this.oa.Zi()};
g.k.pe=function(){return this.oa.pe()};
g.k.zw=function(){return this.oa.zw()};
g.k.Df=function(){return this.oa.Df()};
g.k.iq=function(){return this.oa.iq()};
g.k.togglePictureInPicture=function(){this.oa.togglePictureInPicture()};
g.k.Xm=function(){return this.oa.Xm()};
g.k.Hq=function(){return this.oa.Hq()};
g.k.setSize=function(a){this.oa.setSize(a)};
g.k.getVolume=function(){return this.oa.getVolume()};
g.k.setVolume=function(a){this.oa.setVolume(a)};
g.k.setAttribute=function(a,b){this.oa.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.oa.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.oa.hasAttribute(a)};
g.k.zt=ba(22);g.k.Zv=ba(24);g.k.bw=ba(26);g.k.Kt=ba(28);g.k.Vt=function(){return this.oa.Vt()};
g.k.Bm=function(a){this.oa.Bm(a)};
g.k.getStyle=function(a){return this.oa.getStyle(a)};
g.k.aD=function(){return this.oa.aD()};
g.k.stopVideo=function(){this.oa.stopVideo()};
g.k.bC=function(a){this.oa.bC(a)};hT.prototype.then=function(a,b){return this.promise.then(a,b)};
hT.prototype.resolve=function(a){this.l(a)};
hT.prototype.reject=function(a){this.i(a)};g.v(iT,g.E);g.k=iT.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Jo=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.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.ma();else if(this.i.qd()){h=cxa(this.policy,this.i,this.l,this.Gj);f=dxa(this);c=f.KP;e=f.fK;d=f.dI;f=f.eK;if(!this.J){var l=1E3*this.l.Il(),m=this.i.Il();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=
a.isAd();this.l.Hv(l,m,a);this.J=!0}h?this.Fe("cannot_apply"+h+";transitionTimeMs."+this.Gj):2===this.status.status?kxa(this):(a=this.i.mp())?DE(a)?!CE(a)&&g.vt()?this.Fe("mse_closed"):b.i&&oB(b.i)&&a.l&&!a.l.wx()?this.Fe("encr_upgrade"):(b=this.i.qd(),b.Bk()?this.Fe("elem_ended"):0>e?this.Fe("next_player_future"):(this.I=d,this.u=GE(a,c,d,!0),this.B=GE(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce,this.i.Ha("gaplessPrep","cpn."+a),lT(this.i,this.u),this.i.setMediaElement(exa(b,c,d,!this.i.getVideoData().isAd())),
kT(this,2),kxa(this))):this.ma():this.ma()}else this.Fe("no-elem")}else this.ma()};
g.k.Jq=function(a){var b=jxa(this).ML,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;pE(a.jf(),d-.01)&&(kT(this,4),b.isActive=!1,b.ow=b.ow||b.isActive,this.l.Ha("sbh","1"),c.isActive=!0,c.ow=c.ow||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&kT(this,5)}};
g.k.EK=function(){4<=this.status.status&&6>this.status.status&&this.Fe("player-reload-after-handoff")};
g.k.Fe=function(a){if(!this.isDisposed()&&!this.isFinished()){this.ma();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.Ha("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Za=!1;b&&kW(a);a.Qa&&(b=a.Qa,b.policy.ya=!1,b.mediaSource&&OV(b))}this.C.reject(void 0);this.dispose()}};
g.k.xa=function(){ixa(this);this.i.unsubscribe("newelementrequired",this.EK,this);if(this.u){var a=this.u.l;this.u.i.md.unsubscribe("updateend",this.Jq,this);a.md.unsubscribe("updateend",this.Jq,this)}g.E.prototype.xa.call(this)};
g.k.Hc=function(a){g.YI(a,128)&&this.Fe("player-error-event")};
g.k.ma=function(){};g.v(nT,g.E);nT.prototype.clearQueue=function(){this.ma();this.B&&this.B.reject("Queue cleared");oT(this)};
nT.prototype.Lr=function(){return!this.l};
nT.prototype.xa=function(){oT(this);g.E.prototype.xa.call(this)};
nT.prototype.ma=function(){};g.v(rT,g.Q);g.k=rT.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:oxa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Ii=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Re())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Re())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Re())};
g.k.ws=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Re())};
g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.Re())};
g.k.Df=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Ne=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return oxa()};
g.k.Kr=function(){return this.pictureInPicture};
g.k.Ir=function(){return this.l};
g.k.Re=function(){this.X("visibilitychange");var a=this.getVisibilityState(this.Df(),this.isFullscreen(),this.Ne(),this.isInline(),this.Kr(),this.Ir());a!==this.C&&this.X("visibilitystatechange");this.C=a};
g.k.xa=function(){rxa(this.B);g.Q.prototype.xa.call(this)};g.v(g.tT,g.E);g.k=g.tT.prototype;g.k.Cd=function(a){this.Ia.push(a);var b=this.B.get(a),c=null==b;c||this.i.Ha("sdai","enterAdCueRange");if(this.Ga)this.Ga=!1,c||(a=this.u.find(function(d){return d.cpn===b}))&&this.api.X("serverstitchedvideochange",a.Vc),this.L=!1;
else if(this.l){if(this.l.Mu)this.i.Ha("sdai","a_pair_of_same_transition_occurs_enter");else{if(this.l.Zd===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.Ha("sdai","dchtsc");this.l=void 0;return}a={Zd:a,isAd:!c,Mu:!0,mm:this.i.getCurrentTime(),adCpn:b};yxa(this,a,this.l)}this.l=void 0;this.L=!1}else this.l={Zd:a,isAd:!c,Mu:!0,mm:this.i.getCurrentTime(),adCpn:b}};
g.k.sf=function(a){this.Ia=this.Ia.filter(function(d){return d!==a});
this.Ga&&(this.L=this.Ga=!1,this.i.Ha("sdai","cref"));var b=this.B.get(a),c=null==b;if(this.l){if(this.l.Mu){if(this.l.Zd===a){this.l=void 0;return}if(this.l.adCpn===b){this.i.Ha("sdai","dchtsc");this.l=void 0;return}c={Zd:a,isAd:!c,Mu:!1,mm:this.i.getCurrentTime(),adCpn:b};yxa(this,this.l,c)}else this.i.Ha("sdai","a_pair_of_same_transition_occurs_exit");this.l=void 0;this.L=!1}else this.l={Zd:a,isAd:!c,Mu:!1,mm:this.i.getCurrentTime(),adCpn:b};g.S(this.W.experiments,"web_player_halftime_dai")&&(c=
this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.i.getCurrentTime()<this.i.hj()&&sT(this,Infinity))};
g.k.isAdPlaying=function(a){return!!xT(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.L=!0;if(void 0===b?0:b)sT(this,a);else{b=this.api.Gc();var d=b===this.Y?this.Aa:null;yT(this,!1);this.Za=a;null!=c&&this.Ua.start(c);b&&(this.Aa=d||b.getPlayerState(),WX(b),this.Y=b)}};
g.k.xa=function(){yT(this,!1);AT(this);g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.lj=function(a,b,c){if(c&&b){var d=this.va.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.yB(c);this.W.Z("html5_high_res_logging")&&this.i.Ha("sdai","hdlredir."+b+"."+a+"."+BB(c));d.locations.set(e,c)}}};
g.k.yr=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.Exa(this,b))return this.W.Z("html5_high_res_logging")&&this.i.Ha("sdai","gdu.undec.seg."+b+".itag."+l),null;a=Bxa(this,a,b);this.W.Z("html5_high_res_logging")&&this.i.Ha("sdai","gdu.seg."+b+".itag."+l+".pb."+!!a);if(!a)return DT(this,b,m),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)||void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.i.Ha("sdai",
"gdu.noadpfmts.seg."+b+".itag."+l),DT(this,b,m),null;n=n.find(function(p){return p.itag===l});
if(!n||!n.url)return this.i.Ha("sdai","gdu.nofmt.seg."+b+".itag."+l),DT(this,b,m),null;a.locations.set(l,new g.yB(n.url))}n=a.locations.get(l);if(!n)return this.i.Ha("sdai","gdu.nourl.seg."+b+".itag."+l),DT(this,b,m),null;n=new AC(n);(c=Cxa(this,b-1,c,d))&&n.set("daistate",c);a.LE&&b>=a.LE&&n.set("skipsq",""+a.LE);(c=this.i.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);d=[];a.bj&&(d=Fxa(this,a.bj),0<d.length&&n.set("acpns",d.join(",")));g.S(this.W.experiments,"html5_high_res_logging")&&this.i.Ha("sdai",
"ast."+a.Mc.toFixed(3)+".alen."+a.durationMs.toFixed(3)+".acpn."+a.cpn);m||this.va.set(b,a);this.ya&&!g.S(this.W.experiments,"web_player_ssdai_acpns_aids_logging_killswitch")&&(b=n.get("aids"),((null===(h=null===b||void 0===b?void 0:b.split(","))||void 0===h?void 0:h.length)||0)!==d.length&&(a.bj?this.i.Ha("sdai","acpns_aids_nm.ids."+Gxa(this,a.bj).join(",")+".aids."+b+".cpn."+c):this.i.Ha("sdai","acpns_aids_nm.noAdBreakId.cpn."+c)),this.ya=!1);return g.CC(n)};
g.k.KE=function(a,b){if(a=Bxa(this,a,b)){a=a.bj;this.i.Ha("sdai","skip_adbreakid_"+a);for(var c=g.q(this.u),d=c.next();!d.done;d=c.next())d=d.value,d.bj===a&&(d.LE=b)}};
g.k.SD=function(a,b,c,d,e,f,h){h&&(f?this.Ra.set(a,h):this.Da.set(a,h));if(f)if(d.length&&e.length)for(a=1E3*(b+BT(this)),d=g.q(d.entries()),b=d.next();!b.done;b=d.next())if(b=g.q(b.value),c=b.next().value,b=b.next().value,c=1E3*e[c],b===this.i.getVideoData().clientPlaybackNonce)CT(this,a,a+c,!1),a+=c;else{this.jb.has(b)||(this.i.Ha("sdai","adCpnFromEmsg"),this.jb.add(b));f=void 0;h=g.q(this.B);for(var l=h.next();!l.done;l=h.next()){l=g.q(l.value);var m=l.next().value;l.next().value===b&&(f=m)}f&&
f.start<=a&&f.end>=a+c||(h=!1,f?a<f.start?f.start=a:f.end<a+c&&(f.end=a+c):(f=xxa(a,a+c),this.B.set(f,b),this.i.Ha("sdai","newAdCR"),h=!0),a=f.end,CT(this,f.start,f.end,!0),h&&this.i.addCueRange(f))}else 5!==c&&4!==c||CT(this,1E3*(b+BT(this)),1E3*(b+BT(this))+5E3,!1)};
g.k.mu=ba(31);g.k.Ad=function(a){this.i.Ha("timelineerror",a)};
g.k.Eu=function(a){g.S(this.W.experiments,"html5_high_res_logging")&&this.i.Ha("sdai","adf.0");this.J&&this.V&&this.ea.push(this.V);this.V=null;this.i.Eu(a)};
g.k.JC=function(a){var b;un(this.ea,function(c){return c.identifier===a.identifier})?(this.i.Ha("sdai","timedoutcp.1"),this.I.start(0)):this.I.isActive()?this.i.Ha("sdai","racingcp_"+(null===(b=this.V)||void 0===b?void 0:b.identifier)+"_"+a.identifier):(g.S(this.W.experiments,"html5_high_res_logging")&&this.i.Ha("sdai","adf.1"),this.J=!1,this.I.start(),this.ya=!0,this.V=a,this.Da.clear(),this.Ra.clear(),this.va.clear(),this.La=[])};
g.k.Op=function(a){var b;(null===(b=this.V)||void 0===b?void 0:b.identifier)===a&&this.I.isActive()&&(this.J=!1,this.I.stop(),this.ya=!1,this.Eu(!1))};
var vxa=0;g.v(ET,g.E);g.k=ET.prototype;g.k.Cd=function(a){if(this.l===this.api.Gc()){var b=this.I.get(a);if(b){var c=b.target;this.ma();Nxa(this,c,b.Gj,a)}else this.Ad("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.Pm.Zd===a})){var d=b.Pm;
this.ma();c=d.target;d=d.Gj;c?Nxa(this,c,d,a):Mxa(this,b.wd,d,a)}};
g.k.RT=function(){var a=this.J;HT(this);if(a){GT(this,a)||this.Ad("e.unexpectedPresentingPlayer");var b=this.api.Gc();a=a.Pm;this.ma();b.addCueRange(a.Zd)}};
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)Hxa(this,a);else{b=this.api.Gc();var d=b===this.B?this.C:null;JT(this,!1);this.V=a;null!=c&&this.L.start(c);b&&(this.C=d||b.getPlayerState(),WX(b),this.B=b)}};
g.k.hh=function(a){g.YI(a,128)&&Qxa(this)};
g.k.isManifestless=function(){return KH(this.l.getVideoData())};
g.k.xa=function(){JT(this,!1);LT(this);g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.Ad=function(a){this.l.Ha("timelineerror",a)};
var Ixa=0;var Sxa="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.v(OT,g.E);OT.prototype.get=function(a){MT(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
OT.prototype.set=function(a,b,c){this.remove(a,!0);MT(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.P)()+c);for(this.data.push(a);this.data.length>this.u;)(c=this.data.shift())&&PT(this,c,!0);NT(this)};
OT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(PT(this,c,b),g.pb(this.data,function(d){return d.key===a}),NT(this))};
OT.prototype.xa=function(){var a=this;g.E.prototype.xa.call(this);this.data.forEach(function(b){PT(a,b,!0)});
this.data=[]};QT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
QT.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)};
QT.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.v(RT,g.E);RT.prototype.start=function(){this.l.start()};
RT.prototype.stop=function(){this.l.stop()};
RT.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
RT.prototype.sample=function(){for(var a=g.q(this.u),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 UT(LKa.has(b)));this.i.get(b).update(c())}this.l.start()};
var LKa=new Set(["networkactivity"]);UT.prototype.update=function(a){this.l?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
UT.prototype.clear=function(){this.buffer.clear();this.i=0};g.v(VT,g.E);VT.prototype.xa=function(){g.E.prototype.xa.call(this);this.i=null;this.l&&this.l.disconnect()};g.MKa=bb(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var Z2;Z2={};g.WT=(Z2.STOP_EVENT_PROPAGATION="html5-stop-propagation",Z2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Z2.IV_DRAWER_OPEN="ytp-iv-drawer-open",Z2.MAIN_VIDEO="html5-main-video",Z2.VIDEO_CONTAINER="html5-video-container",Z2.HOUSE_BRAND="house-brand",Z2);g.v(XT,g.W);g.k=XT.prototype;g.k.Bm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.Mq(this.element,b)};
g.k.Ag=function(){this.Fb&&(this.Fb.removeEventListener("focus",this.JD),g.sg(this.Fb),this.Fb=null)};
g.k.VB=function(){this.isDisposed();var a=this.app.T();a.Vi||this.Bm("tag-pool-enabled");a.C&&this.Bm(g.WT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Bm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.eb&&(this.OB=g.Iu("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)};
g.k.Pv=function(a){VF(this.app.T());this.Mx=!a;ZT(this)};
g.k.resize=function(){if(this.Fb){var a=this.dg();if(!a.isEmpty()){var b=this.Zr;b=!g.Uf(a,new g.Tf(b.width,b.height));var c=aya(this);b&&(this.Zr.width=a.width,this.Zr.height=a.height);a=this.app.T();(c||b||a.eb)&&this.app.Wa.X("resize",this.getPlayerSize())}}};
g.k.Fr=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Fb){var b=this.app.T();Et&&(this.Fb.setAttribute("x-webkit-airplay","allow"),a.title?this.Fb.setAttribute("title",a.title):this.Fb.removeAttribute("title"));Pma(a)?this.Fb.setAttribute("disableremoteplayback",""):this.Fb.removeAttribute("disableremoteplayback");this.Fb.setAttribute("controlslist","nodownload");b.vl&&a.videoId&&(this.Fb.poster=a.We("default.jpg"))}b=g.QH(a,"yt:bgcolor");this.Mt.style.backgroundColor=b?b:"";this.tD=KF(g.QH(a,"yt:stretch"));this.uD=
KF(g.QH(a,"yt:crop"),!0);g.M(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.HC=KF(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.LH=a;this.resize()};
g.k.Ii=function(){};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.Wa.isFullscreen();if(b&&tt())return new g.Tf(window.outerWidth,window.outerHeight);if(b||a.ck){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Tu&&this.Tu.media===a||(this.Tu=window.matchMedia(a));var c=this.Tu&&this.Tu.matches}if(c)return new g.Tf(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.du.width)&&!isNaN(this.du.height))return this.du.clone();if(this.Xz&&this.sF&&!this.app.isWidescreen())for(a=
0;a<this.Xz.length;a++)if(b=this.Xz[a],b.query.matches)return new g.Tf(b.size.width,b.size.height)}return new g.Tf(this.element.clientWidth,this.element.clientHeight)};
g.k.dg=function(){return this.getPlayerSize()};
g.k.getVideoAspectRatio=function(){return isNaN(this.tD)?Zxa(this):this.tD};
g.k.getVideoContentRect=function(a){var b=this.dg();a=$xa(this,b,this.getVideoAspectRatio(),a);return new g.rl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.vv=function(){ZT(this)};
g.k.setUseFastSizingOnWatch=function(a){this.sF!==a&&(this.sF=a,this.resize())};
g.k.setInternalSize=function(a){g.Uf(this.du,a)||(this.du=a,this.resize())};
g.k.xa=function(){this.OB&&g.Ju(this.OB);this.Ag();g.W.prototype.xa.call(this)};g.k=bya.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Rx();c&&a.visualElement&&g.bz(c,a.visualElement,b)};
g.k.Yb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=sia(c);a.visualElement=c;var f=g.Rx(),h=g.Px();f&&h&&g.Zy(f,h,c);g.hf(b,function(){cya(e,a)});
d&&this.l.add(a)};
g.k.Pg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.hf(b,function(){cya(d,a)});
c&&this.l.add(a)};
g.k.im=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Lx(b))};
g.k.Hu=function(a){return this.elements.has(a)};g.v(dU,g.W);
dU.prototype.setValue=function(a,b){for(var c=0;c+2<this.u.length&&this.u[c+1]<b;)c++;b=Math.min(1,(b-this.u[c])/(this.u[c+1]-this.u[c]));if(this.ctx)this.ctx.fillStyle=this.B[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.B[c+1],this.ctx.fillRect(a*this.i,this.heightPx*(1-b),this.i,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.B[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.B[c]}};g.v(fU,g.W);g.k=fU.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Ma()};
g.k.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Ma()};
g.k.Ma=function(){var a=(0,g.P)(),b=this.C.getStatsForNerds();eU(this.i,b.bandwidth_samples);eU(this.B,b.network_activity_samples);eU(this.u,b.live_latency_samples);eU(this.l,b.buffer_health_samples);this.update(b);a=25<(0,g.P)()-a?5E3:500;this.delay.start(a)};gU.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};
gU.prototype.now=function(){return(0,g.P)()};oU.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
oU.prototype.getPlaybackRate=function(){return this.playbackRate};g.v(sU,g.Q);sU.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.l,c=this.audioTrack.l,d=this.audioTrack.Qb,e=rya(this,this.videoTrack,a,this.videoTrack.Qb);d=rya(this,this.audioTrack,this.policy.Ra?a:e,d);a=Math.max(a,e,d);this.i=!0;this.l.isManifestless&&(pya(this,this.videoTrack,b),pya(this,this.audioTrack,c));b=this.I;b.u=null;b.I=!1;return a};
sU.prototype.ma=function(){};
var qya=2/24;yU.prototype.ib=function(){this.tick("gv")};
yU.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.P)()};g.v(zU,g.Q);
zU.prototype.ND=function(a,b){if(this.ea){var c=[],d=[],e=void 0;a.i&&(e=a.i,c=e.l,d=e.u,e=e.i);this.ea.SD(a.Ka,a.startTime,this.l,c,d,b,e)}if(b)if(this.policy.Aa){b=this.Y&&a.Ka===this.Y.Ka+1;this.Y=a;c=this.i&&a.Ka===this.i.Ka+1;c=this.i&&b&&c&&"stop"!==this.i.Kd.event&&"predictStart"!==this.i.Kd.event;d=a.Kd||null;e=this.J.i.index.getLastSegmentNumber()<=a.Ka;var f=this.V.isManifestless&&this.policy.Bb;d?(this.i={Kd:d,Ka:a.Ka},e?AU(this,d,a.Ka):f&&(b?c?AU(this,d,a.Ka):"continue"===d.event||"stop"===
d.event?CU(this,a):AU(this,d,a.Ka):AU(this,d,a.Ka))):c&&CU(this,a)}else b=this.i&&this.u&&this.i.Ka===this.u.Ka-1,b=this.i&&b&&"stop"!==this.i.Kd.event&&"predictStart"!==this.i.Kd.event,this.u&&this.u.Ka<a.Ka&&(b?CU(this,this.u):this.I=!0),this.u=a};
zU.prototype.Ny=function(a,b){var c=this.J.i.index.getLastSegmentNumber()<=b,d=this.V.isManifestless&&this.policy.Bb;this.i={Kd:a,Ka:b};this.policy.Bb&&this.I&&this.u&&(this.I=!1,"continue"!==a.event&&"stop"!==a.event||CU(this,this.u));this.u&&this.u.Ka===b&&(this.u=null);(c||d)&&AU(this,a,b)};
zU.prototype.Vv=function(a,b){var c=this.J.i.index.getSegmentNumberForTime(a);return 0<=c&&this.J.i.index.getStitchedVideoInfo(c)?(BU(this,"sdai","skipad_on"+c+"_t"+a.toFixed(3)),b.KE(a,c),xya(this,a,a,c),!0):!1};zya.prototype.ma=function(){};RU.prototype.xg=function(){if(this.offset>=this.i.totalLength)throw Error();return DD(this.i,this.offset++)};
RU.prototype.skip=function(a){this.offset+=a};
RU.prototype.getOffset=function(){return this.offset};g.k=Yya.prototype;g.k.Hm=function(){this.B=null};
g.k.Ki=function(){this.l.shift()};
g.k.xn=function(){return!!this.C.info.audio};
g.k.getDuration=function(){return this.C.index.getMaxKnownEndTime()};
g.k.ma=function(){};g.k=aV.prototype;g.k.qC=function(){return 0};
g.k.fG=function(){return null};
g.k.GI=function(){return null};
g.k.isFailed=function(){return 5===this.state};
g.k.DA=function(){};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.ai()&&4!==this.state&&(this.info.i[0].i.B=!1);bV(this,-1)};g.v(dV,aV);g.k=dV.prototype;g.k.DA=function(){if(this.isDisposed()){var a=this.u,b=this.l;a.Ae[b].Md=new uD;tX(a,b)}};
g.k.kt=function(){return{}};
g.k.BI=function(){return 0};
g.k.Kq=function(){return!0};
g.k.EA=function(){sza(this);this.L=!0;return pza(this.i)};
g.k.gG=function(){sza(this);return this.i.Md};
g.k.Yr=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.Md)||void 0===b||!b.length)||this.u.gg(this.l)};g.k=eV.prototype;g.k.vg=function(){return Zya(this.B)};
g.k.Ki=function(a){this.B.Ki(a);a=a.info;a.i.info.Ib>=this.Ib&&(this.Ib=a.i.info.Ib)};
g.k.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
g.k.Hm=function(){this.B.Hm()};
g.k.isRequestPending=function(a){return this.u.length?a===this.u[this.u.length-1].info.i[0].Ka:!1};sV.prototype.send=function(){g.at(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.P)()};
sV.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.P)()-this.i)/1E3).toFixed(3),shost:g.ji(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.wE(c)):this.u(new g.vE("pathprobe.net",!1,c))};g.k=Eza.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
g.k.abort=function(){};
g.k.qn=function(){return!0};
g.k.vx=function(){return this.range.length};
g.k.pp=function(){return this.loaded};
g.k.lz=function(){return!!this.loaded};
g.k.gg=function(){return!!this.l.totalLength};
g.k.Ki=function(){var a=this.l;this.l=new uD;return a};
g.k.vg=function(){return this.l};
g.k.Bs=function(){return!0};
g.k.iE=function(){return!!this.error};
g.k.pe=function(){return this.error};var Hza=0;g.k=tV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.ya);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Da,this.onError).then(void 0,Jv)};
g.k.onDone=function(){if(!this.isDisposed()){this.ma();this.ea=!0;if(Gza(this)&&!this.i.totalLength&&!this.I&&this.l){XA(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.C.zv()}};
g.k.getResponseHeader=function(a){return this.L?this.L.get(a):null};
g.k.qn=function(){return!!this.L};
g.k.pp=function(){return this.l};
g.k.vx=function(){return+this.getResponseHeader("content-length")};
g.k.lz=function(){return 200<=this.status&&300>this.status&&!!this.l};
g.k.ma=function(){};
g.k.gg=function(){if(this.ea)return!!this.i.totalLength;if(!this.qn())return!1;var a=this.policy.l;if(a&&this.Y+a>Date.now())return!1;a=16384;this.va||(a=Math.max(a,16384));this.policy.Mf&&XA(this)&&(a=1);return this.i.totalLength>=a};
g.k.Ki=function(){this.gg();this.Y=Date.now();this.va=!0;var a=this.i;this.i=new uD;return a};
g.k.vg=function(){this.gg();return this.i};
g.k.isDisposed=function(){return this.V};
g.k.abort=function(){this.ma();this.u&&this.u.cancel().catch(function(){});
this.B&&this.B.abort();this.V=!0};
g.k.Bs=function(){return!0};
g.k.iE=function(){return this.I};
g.k.pe=function(){return this.errorMessage};g.k=uV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.l=this.response.byteLength}catch(a){}this.i=!0;this.u.zv()}};
g.k.hd=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.l=a.loaded),this.u.Ty((0,g.P)(),a.loaded))};
g.k.qn=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return fs(Error("Could not read XHR header "+a)),""}};
g.k.vx=function(){return+this.getResponseHeader("content-length")};
g.k.pp=function(){return this.l};
g.k.lz=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.l};
g.k.gg=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Ki=function(){this.gg();var a=this.response;this.response=void 0;return new uD([new Uint8Array(a)])};
g.k.vg=function(){this.gg();return new uD([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Bs=function(){return!1};
g.k.iE=function(){return!1};
g.k.pe=function(){return""};g.v(xV,aV);g.k=xV.prototype;
g.k.kt=function(){var a=iya(this.timing);a.shost=BB(this.l.Ah);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=this.info.i[0].i.info.tc();a.ml=""+ +this.info.i[0].i.Me();a.sq=""+this.info.i[0].Ka;if(this.l){var b=this.l.Ah;AB(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.pe()&&(a.msg=this.xhr.pe());this.Yv&&(a.smb="1");this.i&&(b=this.i.Md,
b.length&&HD(b[0],a));return a};
g.k.BI=function(){var a=this.timing;return(a.B-a.i)/1E3};
g.k.pe=function(){return this.xhr.pe()||""};
g.k.Kq=function(){var a;(a=3<=this.state)||(a=this.timing,a=a.l>a.Za&&iU(a,a.l));return a};
g.k.Ty=function(a,b){if(!this.isDisposed()&&this.xhr){this.u=this.xhr.status;var c=this.Kq(),d=this.timing;lU(d,a,b);50>a-d.B&&mU(d)&&3!==hU(d)||nya(d,a,b);this.Yr()?cV(this,2):!c&&this.Kq()&&cV(this)}};
g.k.UD=function(){if(!this.isDisposed()&&this.xhr){if(!this.ea&&this.xhr.qn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.ea=((0,g.P)()-a)/1E3}this.xhr.qn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.po&&!Nza()&&eKa(!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.zv=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.V.stop(),this.u=a.status,a=Sza(this,a),5===a?wV(this):bV(this,a))};
g.k.canRetry=function(){this.isDisposed();var a=vV(this);return 100>a.timedOut&&a.i<this.policy.bk};
g.k.DA=function(){3<=this.state&&(this.policy.Zc?yV(this):this.timing.deactivate())};
g.k.tV=function(){if(!this.isDisposed()){var a=(0,g.P)(),b=!1;mU(this.timing)?(a=this.timing.V,kya(this.timing),this.timing.V-a>=.8*this.va?(this.B++,this.ma(),b=5<=this.B):this.B=0):(b=this.timing,b.fh&&nU(b,b.now()),a-=b.Y,this.policy.xb&&0<a&&(this.B+=1),b=EC(vV(this),this.policy,!1)*this.policy.il,(b=a>1E3*b)&&this.ma());this.B&&this.callback&&this.callback(this,this.state);b?Tza(this,!1):this.V.start()}};
g.k.dispose=function(){aV.prototype.dispose.call(this);this.V.dispose();this.policy.Zc||yV(this)};
g.k.EA=function(){if(!this.gG().length)return[];this.L=!0;return pza(this.i)};
g.k.Yr=function(){return 1>this.state?!1:this.i&&this.i.Md.length||this.xhr.gg()?!0:!1};
g.k.gG=function(){Pza(this,!1);return this.i?this.i.Md:[]};
g.k.pp=function(){return this.xhr.pp()};
g.k.qC=function(){return this.ea};
g.k.ma=function(){};
g.k.fG=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.GI=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};
var Jza=0,Qza=-1;zV.prototype.clear=function(){this.l=this.J=this.B=null;this.i=this.C=this.I=this.startTimeSecs=NaN;this.u=!1};
zV.prototype.ma=function(){};g.v(g.BV,g.Q);g.k=g.BV.prototype;
g.k.initialize=function(a,b,c){this.ma();a=a||0;this.X("videoformatchange",Hya(this.l));if(this.i.isManifestless){if(this.policy.Hi){b=vB(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}dAa(this)}this.C&&Vza(this.C,this.videoTrack.i);this.policy.Da&&WA()&&this.Ha("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.Y&&(cAa(this,this.videoTrack),cAa(this,this.audioTrack),aDa(this.Y),
delete this.Y);c?(this.policy.wc?(this.fb=c,GV(this,c)):GV(this,!1),g.Fq(this.Ya)):(a=0===this.currentTime,CV(this,this.videoTrack,this.videoTrack.i,a),CV(this,this.audioTrack,this.audioTrack.i,a),g.bh(this.seek(this.currentTime),function(){}),this.timing.ib());
(this.i.je||this.i.jg||this.i.I||this.i.C||this.i.J)&&this.Ha("minMaxSq","minSq."+this.i.je+";maxSq."+this.i.jg+";minDvrTime."+this.i.I+";maxDvrTime."+this.i.C+";startWalltime."+this.i.J)};
g.k.resume=function(){if(this.isSuspended||this.ya)this.ma(),this.Ra=this.ya=this.isSuspended=!1,this.uh()};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.l;b.l=b.C.i[a.id];b.J=b.l;a=new DU(b.J,b.i,"m");this.ma();this.X("audioformatchange",a);this.X("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.k.uh=function(){JV(this);if(this.mediaSource&&CE(this.mediaSource)&&!this.mediaSource.hg()){var a=gV(this.videoTrack);a=this.policy.bl&&a&&a.u;this.i.isManifestless&&this.i.L&&VE(this.i)?(this.J=VE(this.i),this.mediaSource.Bj(this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,this.mediaSource.Bj(this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),this.mediaSource.Bj(this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0<a&&(this.mediaSource.Bj(a),this.J=a))}if(!this.isDisposed())if(UE(this.i)&&this.i.isFailed())XU(this,!0,"manifest.net.retryexhausted",{rc:this.i.Y.toString()});else if(!this.i.u||!Aza(this.videoTrack)&&!Aza(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.La?a=!1:(HV(this),this.X("seekplayerrequired",Infinity),a=!0),!a&&(JV(this),iV(this.videoTrack),!this.isDisposed()&&(iV(this.audioTrack),!this.isDisposed()))){this.i.isManifestless&&
(Bza(this.videoTrack),Bza(this.audioTrack),uya(this.B),(a=this.videoTrack.vg())&&a.l&&(a=a.l.C&&!this.policy.Dl,this.Ha(a===this.policy.B.Mf?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.B.Mf?"1":"0")+";dfs."+(this.policy.Dl?"1":"0"),!0)));if(this.mediaSource)OV(this);else if(this.policy.i){(a=this.videoTrack.vg())&&this.videoTrack.Ki(a);var b=this.audioTrack.vg();b&&this.audioTrack.Ki(b);kV(this.videoTrack)&&kV(this.audioTrack)?this.ma():(a||b)&&g.Fq(this.ea)}FV(this);CV(this,this.videoTrack,
this.videoTrack.i,!1);CV(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";XU(this,!0,c,{metadata:"1",video:this.videoTrack.i.C||"",audio:this.audioTrack.i.C||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||CE(this.mediaSource)&&!this.policy.Ua)&&!this.B.i&&qV(a)&&a.i.Me()&&this.l.L)a:{if(b=this.currentTime,c=this.I,d=pU(c,a.i.info.Ib,
d.i.info.Ib,0),c=zF(c.schedule)+d/BF(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Ib),this.ma(),a.u.length){if(a.u[0].info.i[0].startTime<=b)break a;tU(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.db(g.db(a.u).info.i):a.B.l.length?a.l=TU(a.B).info:a.l=gV(a);a.l&&b<a.l.startTime&&(a.ea=0,a.i.Me()?a.l=a.i.Ym(b,!0).i[0]:a.l=null)}hAa(this,this.videoTrack,this.audioTrack);hAa(this,this.audioTrack,this.videoTrack);this.policy.ul&&this.Ga&&!this.isSuspended&&Hka(this.schedule)&&
(pAa(this,this.Ga),this.Ga="");this.C&&(a=this.C,a.B?(b=a.I+a.policy.Kh,a.u||(b=Math.min(b,a.startTimeSecs+a.policy.ac)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.Fq(this.qb,a));g.Fq(this.jb)}}};
g.k.KN=function(a){if(this.policy.Gd&&this.mediaSource){var b=a===this.mediaSource.i,c=a.xx();c&&(!c.zb||c.Rd)&&this.Ha("sbu",a.Eb({a:""+ +b}))}this.uh()};
g.k.fS=function(a){if(this.mediaSource){a=gV(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=XC(a));XU(this,!0,"fmt.unplayable",b)}};
g.k.Np=function(a){this.Ia.Np(a)};
g.k.ND=function(a,b){this.i.isManifestless&&iza(this,b,!!a.info.video)};
g.k.Ny=function(a,b,c){a.info.video&&this.u.Ny(b,c)};
g.k.Cu=ba(6);g.k.seek=function(a){if(this.isDisposed())return Vg();if(this.videoTrack.J||this.audioTrack.J)return this.policy.Gp?Ug():Vg("seeking to head");JV(this);this.Za=(0,g.P)();FV(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.l&&(this.mediaSource.i.isLocked()||this.mediaSource.l.isLocked())&&this.X("reattachrequired");var b=this.currentTime;this.currentTime=this.B.seek(a);var c=this.u;c.u=null;c.I=!1;yya(this.u,a,b);g.Fq(this.ea);return Ug(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.rC=function(){return this.audioTrack.i.info.i};
g.k.sC=function(){return this.videoTrack.i.info.i};
g.k.xa=function(){this.u.unsubscribe("ctmp",this.Ha,this);IV(this);tU(this.audioTrack);tU(this.videoTrack);g.Q.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.Eb=function(){var a=gV(this.audioTrack),b=gV(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.i,lmf:KU(this.l),lbw:AF(this.schedule).toFixed(3),lhd:zF(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.cg()||0)).toFixed(3),laa:a?RC(a):"",lva:b?RC(b):"",lar:this.audioTrack.l?RC(this.audioTrack.l):"",lvr:this.videoTrack.l?RC(this.videoTrack.l):"",laq:""+lV(this.audioTrack),lvq:""+lV(this.videoTrack)};this.mediaSource&&!this.mediaSource.mf()&&this.mediaSource.i&&this.mediaSource.l&&
(a.lab=nE(this.mediaSource.i.jf()),a.lvb=nE(this.mediaSource.l.jf()));this.va&&(a.lapt=((0,g.P)()-this.va).toFixed(0),a.lapr=lAa(this));return a};
g.k.Hm=function(){this.audioTrack.Hm();this.videoTrack.Hm();this.policy.i=""};
g.k.oC=function(){return qU(this.I)};
g.k.Ha=function(a,b,c){this.Ia.Ha(a,b,void 0===c?!1:c)};
g.k.Vv=function(a,b){return this.L&&this.u.Vv(a,this.L)?(gza(this,this.timestampOffset-b),!0):!1};
var gAa=2/24;g.k=g.PV.prototype;g.k.yr=function(a,b,c,d){return this.le.yr(a,b,c,d)};
g.k.JC=function(a){this.le.JC(a)};
g.k.KE=function(a,b){this.le.KE(a,b)};
g.k.mu=ba(30);g.k.lj=function(a,b,c){this.le.lj(a,b,c)};
g.k.SD=function(a,b,c,d,e,f,h){this.le.SD(a,b,c,d,e,f,h)};g.v(QV,g.Q);g.v(RV,QV);RV.prototype.I=function(a,b){if(a&&b){var c=1*Number(yi(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.Rb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.Fq(this.l))}};
RV.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.X;for(var d=this.u,e=this.i[c].match(hi),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="+od(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 PU(d,"fairplay",!0))}this.i={}};
RV.prototype.xa=function(){this.i={};QV.prototype.xa.call(this)};var $2={},AAa=($2.DRM_TRACK_TYPE_AUDIO="AUDIO",$2.DRM_TRACK_TYPE_SD="SD",$2.DRM_TRACK_TYPE_HD="HD",$2.DRM_TRACK_TYPE_UHD1="UHD1",$2);g.v(SV,g.E);SV.prototype.ma=function(){};g.v(UV,g.Q);g.k=UV.prototype;g.k.Kn=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=iF(b.l)?d:c;d=new Uint8Array(iF(b.l)?c:d);iF(b.l)&&PAa(d);c=g.$d(d,4);PAa(d);d=g.$d(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.ma("Key statuses changed: "+MAa(this,",")),TV(this,"onkeystatuschange"),this.status="kc",this.X("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.X("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.X("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.ya&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.i={};g.Q.prototype.xa.call(this)};
g.k.Eb=function(){var a={requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.u&&(a.keyStatuses=this.i);return a};
g.k.kf=function(){var a=this.C.join();if(VV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.ma=function(){};g.v(XV,g.E);g.k=XV.prototype;g.k.LN=function(a){if(this.C){var b=a.messageType||"license-request";this.C(new Uint8Array(a.message),b)}};
g.k.Kn=function(){this.J&&this.J(this.i.keyStatuses)};
g.k.MK=function(a){this.C&&this.C(a.message,"license-request")};
g.k.LK=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.KK=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,es(function(c){SAa(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 it()};
g.k.xa=function(){this.i&&this.i.close();this.element=null;g.E.prototype.xa.call(this)};g.v(YV,g.E);g.k=YV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.u&&this.l.setServerCertificate?this.l.setServerCertificate(this.i.u):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.l.createSession();kF(this.i)&&(c=UAa(c,this.i.l));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new XV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},es(function(f){SAa(e,"t.generateRequest",f)}));
return e}if(hF(this.i))return WAa(this,c);if(jF(this.i))return VAa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.B=new XV(this.element,this.i,c,null,null)};
g.k.ON=function(a){var b=$V(this,a);b&&b.MK(a)};
g.k.NN=function(a){var b=$V(this,a);b&&b.LK(a)};
g.k.MN=function(a){var b=$V(this,a);b&&b.KK(a)};
g.k.getMetrics=function(){if(this.l&&this.l.getMetrics)try{var a=this.l.getMetrics()}catch(b){}return a};
g.k.xa=function(){var a;this.u=this.l=null;null===(a=this.B)||void 0===a?void 0:a.dispose();for(var b=g.q(Object.values(this.I)),c=b.next();!c.done;c=b.next())c.value.dispose();this.I={};g.E.prototype.xa.call(this);delete this.element};g.v(aW,g.E);
aW.prototype.init=function(){return g.D(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i)return g.Bl(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"'}]}],g.w(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.l;c.u.keySystemAccess=
e;c.l=new YV(c.i,c.u);g.F(c,c.l);ZV(c.l);g.sa(f)})})};
aW.prototype.I=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new PU(c,a.initDataType);var d=sAa(c).replace("skd://","https://"),e={},f=this.l.createSession(a,function(){b.ma()});
f&&(g.F(this,f),this.C.push(f),DAa(f,function(h){QAa(h,f.i,d,e)},function(){b.ma()},function(){},function(){}))}};
aW.prototype.ma=function(){};
aW.prototype.xa=function(){this.C=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.E.prototype.xa.call(this)};g.v(bW,QV);bW.prototype.C=function(a){var b=(0,g.P)(),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.Fq(this.l,c)};
bW.prototype.xa=function(){this.i=[];QV.prototype.xa.call(this)};cW.prototype.get=function(a){a=eW(this,a);return-1!==a?this.values[a]:null};
cW.prototype.remove=function(a){a=eW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
cW.prototype.set=function(a,b){var c=eW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(gW,g.Q);g.k=gW.prototype;g.k.PN=function(a){fW(this,"onecpt");a.initData&&$Aa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.rT=function(a){fW(this,"onndky");$Aa(this,a.initData,a.contentType)};
g.k.Np=function(a){fW(this,"onneedkeyinfo");g.S(this.W.experiments,"html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));hW(this,a)};
g.k.pH=function(a){this.u.push(a);iW(this)};
g.k.createSession=function(a){this.l.get(a.initData);this.va=!0;var b=new UV(this.videoData,this.W,a,this.drmSessionId);this.l.set(a.initData,b);b.subscribe("ctmp",this.mK,this);b.subscribe("keystatuseschange",this.Kn,this);b.subscribe("licenseerror",this.My,this);b.subscribe("newlicense",this.GK,this);b.subscribe("newsession",this.HK,this);b.subscribe("sessionready",this.UK,this);b.subscribe("fairplay_next_need_key_info",this.xK,this);FAa(b,this.B)};
g.k.GK=function(a){this.isDisposed()||(this.ma(),fW(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.X("heartbeatparams",a)))};
g.k.HK=function(){this.isDisposed()||(this.ma(),fW(this,"newlcssn"),this.u.shift(),this.va=!1,iW(this))};
g.k.UK=function(){if(hF(this.i)&&(this.ma(),fW(this,"onsnrdy"),this.Da--,0===this.Da)){var a=this.ea;a.element.msSetMediaKeys(a.u)}};
g.k.Kn=function(a){if(!this.isDisposed()){!this.Aa&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(aBa(this),this.Aa=!0);this.ma();fW(this,"onksch");if(!VV(a)&&g.Ew&&"com.microsoft.playready"===a.l.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(VV(a))for(var d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!VV(a)||c)b=a.C;b=g.jb(b,"UHD2")||g.jb(b,"UHD2HDR")?
"highres":g.jb(b,"UHD1")||g.jb(b,"UHD1HDR")?"hd2160":g.jb(b,"HD")||g.jb(b,"HDHDR")?"hd1080":g.jb(b,"HD720")||g.jb(b,"HD720HDR")?"hd720":"large"}a:{c=bB("auto",b,!1,"l");if(this.videoData.Mg){if($A(this.L,c))break a}else if(fB(this.L,b))break a;this.L=c;this.X("qualitychange");this.ma();fW(this,"updtlq"+b)}this.X("keystatuseschange",a)}};
g.k.mK=function(a,b){this.isDisposed()||this.X("ctmp",a,b)};
g.k.xK=function(a,b){this.isDisposed()||this.X("fairplay_next_need_key_info",a,b)};
g.k.My=function(a,b,c,d){this.isDisposed()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&aBa(this),this.X("licenseerror",a,b,c,d))};
g.k.Dr=function(){return this.L};
g.k.xa=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.u=[];for(var a=g.q(this.l.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.mK,this),b.unsubscribe("keystatuseschange",this.Kn,this),b.unsubscribe("licenseerror",this.My,this),b.unsubscribe("newlicense",this.GK,this),b.unsubscribe("newsession",this.HK,this),b.unsubscribe("sessionready",this.UK,this),b.unsubscribe("fairplay_next_need_key_info",this.xK,this),b.dispose();
dW(this.l);dW(this.C);dW(this.J);this.heartbeatParams=null;g.Q.prototype.xa.call(this)};
g.k.Eb=function(){for(var a={systemInfo:this.i.Eb(),sessions:[]},b=g.q(this.l.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Eb());return a};
g.k.kf=function(){return 0>=this.l.values.length?"no session":this.l.values[0].kf()+(this.I?"/KR":"")};
g.k.ma=function(){};g.v(lW,g.Q);g.k=lW.prototype;g.k.Vx=function(){return this.B};
g.k.handleError=function(a,b){var c=this;eBa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!nW(this,a.errorCode,a.details))&&!hBa(this,a,b))if(!this.i.Z("html5_disable_high_rep_fallback")&&fBa(a)&&this.videoData.u&&this.videoData.u.l)this.ue(a.errorCode,a.details),this.Ha("highrepfallback","1"),!this.videoData.Z("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&this.Ha("afmts",btoa(this.videoData.adaptiveFormats)),
this.l.kC();else if(a.i){b=this.Qa?this.Qa.l.u:null;if(fBa(a)&&b&&b.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.i.C&&"auth"===a.errorCode&&"429"===a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}this.l.wf(a.errorCode,d,g.wE(a.details),e)}else this.X("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.ue(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.P)(),(new sV(a,
"manifest",function(f){c.ea=!0;c.Ha("pathprobe",f)},function(f){c.ue(f.errorCode,f.details)})).send())};
g.k.Ha=function(a,b){this.l.Vb.Ha(a,b)};
g.k.ue=function(a,b){b=g.wE(b);this.l.Vb.ue(a,b)};
g.k.xa=function(){this.Qa=null;this.setMediaElement(null);g.Q.prototype.xa.call(this)};
g.k.setMediaElement=function(a){this.oa=a};
g.k.ma=function(){};qW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
qW.prototype.Z=function(a){return g.S(this.W.experiments,a)};g.v(sW,g.E);sW.prototype.Hc=function(a){EBa(this);this.playerState=a.state;0<=this.u&&g.YI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
sW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(NKa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
sW.prototype.send=function(){if(!(this.B||0>this.l)){EBa(this);var a=g.pT(this.i)-this.l,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.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=PH(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=FBa(this.i);var e=0>this.u?a:this.u-this.l;a=this.i.W.fb+36E5<(0,g.P)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.NH(this.i.videoData),isGapless:this.i.videoData.Za};!a&&this.i.Z("html5_health_to_gel")&&g.Kv("html5PlayerHealthEvent",b);this.i.Z("html5_health_to_qoe")&&(b.muted=a,this.J(g.wE(b)));this.B=!0;this.dispose()}};
sW.prototype.xa=function(){this.B||this.send();g.E.prototype.xa.call(this)};
var NKa=/\bnet\b/;var HBa=window;g.v(g.wW,g.E);g.k=g.wW.prototype;g.k.CQ=function(){var a=g.pT(this.i);xW(this,a)};
g.k.tu=function(){return this.La};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.pT(this.i),-1<["PL","B","S"].indexOf(this.ld)&&(!g.Rb(this.l)||a>=this.B+30)&&(g.vW(this,a,"vps",[this.ld]),this.B=a),!g.Rb(this.l))){7E3===this.sequenceNumber&&g.cy(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){yW(this,a);var b=a,c=this.i.i.Du(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ya,h=e&&!this.jb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames);else(0<f||h)&&g.vW(this,b,"df",[f]);this.Ya=d;this.jb=e;!g.S(this.i.W.experiments,"disable_webgl_reporting")&&0<this.L&&(g.vW(this,a,"glf",[this.L]),this.L=0);a={event:"streamingstats"};this.i.videoData.l&&(a.fmt=this.i.videoData.l.tc(),(b=this.i.videoData.J)&&b.tc()!==a.fmt&&(a.afmt=b.tc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.V&&(a.addocid=this.V);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;
a.el=$H(this.i.videoData);a.docid=this.i.videoData.videoId;a.content_v=aI(this.i.videoData);a.ns=this.i.W.ya;a.fexp=this.i.W.experiments.experimentIds.toString();a.cl=(382180333).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=PH(this.i.videoData))&&(a.live=b);EH(this.i.videoData)&&(a.drm=1,this.i.videoData.I&&(a.drm_system=iKa[this.i.videoData.I.flavor]||0),this.i.videoData.kB&&(a.drm_product=this.i.videoData.kB));Ms()&&this.i.videoData.Ya&&(a.ctt=this.i.videoData.Ya,a.cttype=
this.i.videoData.Sh,this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.Yb(a,this.i.W.deviceParams);a=g.ui("//"+this.i.W.Xi+"/api/stats/qoe",a);b=c="";d=g.q(Object.keys(this.l));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.l[e]?g.cy(new g.Pv("Stats report key has invalid value",e)):(e="&"+e+"="+this.l[e].join(","),100<e.length?b+=e:c+=e);a+=c;b=b.replace(/ /g,"%20");f=this.i.videoData.lf();e=g.S(this.i.W.experiments,"qoe_with_networkless");
c=g.S(this.i.W.experiments,"qoe_send_then_write");d=g.S(this.i.W.experiments,"qoe_send_and_write");h=this.i.Z("web_player_vss_pageid_header")?this.i.W.pageId:void 0;(f=tW(a,h,this.i.W.sendVisitorIdHeader?this.i.videoData.visitorData:void 0,f))?(f.method="POST",f.postBody=b,uW(a,f,{token:this.i.videoData.Ya,YE:this.i.videoData.Sh,mdxEnvironment:this.i.videoData.mdxEnvironment},void 0,e,c,d&&this.ya)):e?(e=g.S(this.i.W.experiments,"networkless_ajax"),f={method:"POST",postBody:b},d&&this.ya?fx(a,f):
e?g.at(a,{method:"POST",postBody:b}):c?ex(a,f):dx(a,f)):Cu(a,void 0,b)}this.l={}}};
g.k.Gv=function(a){0<a&&(this.l.aft=[a.toString()])};
g.k.KL=function(){if(this.i.videoData.I){var a=this.i.videoData.I;AW(this,"eme-"+(a.keySystemAccess?"final":hF(a)?"ms":kF(a)?"ytfp":jF(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.pT(this.i);this.ue(c,a,b);yW(this,c);zW(this)};
g.k.ue=function(a,b,c){var d=this.i.i.getCurrentTime();b=[b,d.toFixed(3)];c&&b.push(c);g.vW(this,a,"error",b);this.C=!0};
g.k.Hc=function(a){var b=a.state,c=g.pT(this.i);a=this.getPlayerState(a.state);if(a!==this.ld){if(!(c<this.B)){if("PL"===this.ld)this.playTimeSecs+=c-this.B;else if("B"===this.ld&&this.va){this.va=!1;var d=g.U(this.i.W.experiments,"html5_disable_last_state_change")?this.B:this.Ra;this.rebufferTimeSecs+=c-d;!this.Ga&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.i.ov(),this.l.qoealert=["1"],this.Ga=!0)}"B"!==a||"PL"!==this.ld&&"PB"!==this.ld||(this.va=!0);this.B=c}"PL"===this.ld&&("B"===
a||"S"===a)||this.i.videoData.ya?yW(this,c):xW(this,c);"PL"===a&&g.Fq(this.Bb);g.vW(this,c,"vps",[a]);this.ld=a;this.B=this.Ra=c;this.C=!0}a=b.getData();g.V(b,128)&&a&&this.ue(c,a.errorCode,a.sL);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.yc()&&!this.I&&(0<=this.u&&(this.l.user_intent=[this.u.toString()]),this.I=!0);zW(this)};
g.k.Jn=ba(34);g.k.In=ba(37);g.k.vj=ba(15);g.k.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";var b=OKa[PK(a)];g.vG(this.i.W)&&"B"===b&&3===this.i.i.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.k.xa=function(){g.E.prototype.xa.call(this);window.clearInterval(this.Ua)};
g.k.Ha=function(a,b,c){var d=this.l.ctmp||[],e=-1!==this.Cb.indexOf(a);e||this.Cb.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.pT(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ma();this.l.ctmp=d;zW(this);return f}};
g.k.Hv=function(a,b,c){this.J={zV:Number(this.Ha("glrem","nst."+a.toFixed()+";rem."+b.toFixed()+";ca."+ +c)),gK:a,oV:b,isAd:c}};
g.k.hs=function(a,b,c){g.vW(this,g.pT(this.i),"ad_playback",[a,b,c])};
g.k.ma=function(){};
var a3={},OKa=(a3[5]="N",a3[-1]="N",a3[3]="B",a3[0]="EN",a3[2]="PA",a3[1]="PL",a3);OBa.prototype.update=function(){if(this.L){var a=this.l.i.getCurrentTime()||0,b=g.pT(this.l);if(a!==this.i||SBa(this,a,b)){var c;if(!(c=a<this.i||a-this.i>b-this.lastUpdateTime+2||SBa(this,a,b))){var d=this.l.Ve();c=d.volume;var e=c!==this.ea;d=d.muted;d!==this.V?(this.V=d,c=!0):(!e||0<=this.C||(this.ea=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(DW(this),this.u=a);this.lastUpdateTime=b;this.i=a}}};EW.prototype.send=function(a){if(!this.Da){var b=GW(this);b=g.ui(this.uri,b);if(this.eb)this.attestationResponse&&(a=FW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.V?this.ea?ex(b,a):dx(b,a):g.at(b,a));else{var c=FW(this,a);uW(b,c,{token:this.J,YE:this.Za,mdxEnvironment:this.mdxEnvironment},a,this.V,this.ea,this.isFinal&&this.Gd)}this.Da=!0}};
EW.prototype.l=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var b3={},UBa=(b3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,b3.LIVING_ROOM_APP_MODE_MAIN=1,b3.LIVING_ROOM_APP_MODE_KIDS=2,b3.LIVING_ROOM_APP_MODE_MUSIC=3,b3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,b3.LIVING_ROOM_APP_MODE_GAMING=5,b3);g.v(IW,g.E);g.k=IW.prototype;g.k.hd=function(){this.l.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Bb&&this.B&&!this.ea)a=this.l,a=a.I+a.l.i.getCurrentTime()-a.u>=this.i.videoData.Bb;a&&(this.B&&this.i.videoData.Bb&&(a=JW(this,"delayplay"),a.Pc=!0,a.send(),this.ea=!0),VBa(this))};
g.k.Hc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.YI(a,2)&&this.B&&MW(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.u)&&KW(this,!1)):this.currentPlayerState="paused")};
g.k.xa=function(){g.E.prototype.xa.call(this);g.Ws(this.u);this.u=NaN;QBa(this.l)};
g.k.Eb=function(){return GW(JW(this,"playback"))};
g.k.Hs=function(){this.i.videoData.L.eventLabel=$H(this.i.videoData);this.i.videoData.L.playerStyle=this.i.W.playerStyle;this.i.videoData.bh&&(this.i.videoData.L.feature="pyv");this.i.videoData.L.vid=this.i.videoData.videoId;var a=this.i.videoData.L;var b=this.i.videoData;b=b.isAd()||!!b.bh;a.isAd=b};
g.k.Eh=function(a){var b=JW(this,"engage");b.L=a;return TBa(b,aCa(this.i))};$Ba.prototype.isEmpty=function(){return this.endTime===this.startTime};NW.prototype.Z=function(a){return g.S(this.W.experiments,a)};
var bCa={other:1,none:2,wifi:3,cellular:7};g.v(g.OW,g.E);g.k=g.OW.prototype;g.k.Hc=function(a){var b;if(g.YI(a,1024)||g.YI(a,512)||g.YI(a,4)){if(this.u){var c=this.u;0<=c.u||(c.l=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.I||(c.u=-1))}this.l.videoData.enableServerStitchedDai&&this.Pf?null===(b=this.B.get(this.Pf))||void 0===b?void 0:b.Hc(a):this.i&&this.i.Hc(a);this.qoe&&this.qoe.Hc(a);this.u&&this.u.Hc(a)};
g.k.hd=function(){var a;this.l.videoData.enableServerStitchedDai&&this.Pf?null===(a=this.B.get(this.Pf))||void 0===a?void 0:a.hd():this.i&&this.i.hd()};
g.k.ue=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.u)this.u.onError(a)};
g.k.Jn=ba(33);g.k.Ha=function(a,b,c){this.qoe&&this.qoe.Ha(a,b,c)};
g.k.Hv=function(a,b,c){this.qoe&&this.qoe.Hv(a,b,c)};
g.k.Gv=function(a){this.qoe&&this.qoe.Gv(a)};
g.k.hs=function(a,b,c){this.qoe&&this.qoe.hs(a,b,c)};
g.k.In=ba(36);g.k.vj=ba(14);g.k.tu=function(){if(this.qoe)return this.qoe.tu()};
g.k.Eb=function(){var a;if(this.l.videoData.enableServerStitchedDai&&this.Pf)null===(a=this.B.get(this.Pf))||void 0===a?void 0:a.Eb();else if(this.i)return this.i.Eb();return{}};
g.k.Eh=function(a){return this.i?this.i.Eh(a):function(){}};
g.k.Hs=function(){this.i&&this.i.Hs()};g.v(PW,g.E);g.k=PW.prototype;g.k.Id=function(a){this.Wk();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.Bb(b.i,c,b.l)}this.u=NaN;this.Wk()};
g.k.Uf=function(a){1E4<a.length&&g.cy(new g.Pv("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.l=this.l.filter(function(c){return!b.has(c)});
nCa(this.i,b);this.Wk()}};
g.k.Um=function(){return this.isDisposed()?[]:this.i.i};
g.k.reset=function(){this.started=!1;this.B.stop();this.i.i=[];this.l=[];this.Wk()};
g.k.uf=function(a){var b=this.Um().filter(function(c){return c.namespace===a});
this.Uf(b);return b};
g.k.Hc=function(a){this.started&&(this.Wk(),g.V(a.Gn,16)&&(a=mCa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.B.start()))};
g.k.dC=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.iC=function(a){var b=[];if(!a.length)return b;a.sort(g.Qz);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.Wk=function(){this.C=!0;if(!this.I){for(var a=3;this.C&&a;)this.C=!1,this.I=!0,this.pJ(),this.I=!1,a--;this.J().yc()&&(a=mCa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.Y(),this.B.start(a)))}};
g.k.pJ=function(){if(this.started&&!this.isDisposed()){this.B.stop();var a=this.J();g.V(a,32)&&this.V.start();for(var b=g.V(this.J(),2)?0x8000000000000:1E3*this.ea(),c=g.V(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.iC(e));f=e=null;c?(a=kCa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=lCa(this.i)):a=this.u<=b&&NK(a)?jCa(this.i,this.u,b):kCa(this.i,b);
d=d.concat(this.dC(a));e&&(d=d.concat(this.iC(e)));f&&(d=d.concat(this.dC(f)));this.u=b;oCa(this,d)}};
g.k.xa=function(){this.l=[];this.i.i=[];g.E.prototype.xa.call(this)};
g.jT.Qx(PW,{Id:"crmacr",dC:"crmncr",iC:"crmxcr",pJ:"crmis",Uf:"crmrcr"});g.v(TW,g.Q);TW.prototype.Pl=function(){return this.J};
TW.prototype.hj=function(){return Math.max(this.L()-vCa(this,!0),this.videoData.getMinSeekableTime())};
TW.prototype.ma=function(){};g.v(YW,g.E);g.k=YW.prototype;g.k.setMediaElement=function(a){(this.oa=a)&&g.Fq(this.u)};
g.k.Hc=function(a){this.playerState=a.state};
g.k.QN=function(){var a=this;if(this.oa&&!this.playerState.isError()){var b=this.oa,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.i,e=Roa(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();ZW(this,this.ya,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.i)&&0<this.i&&Poa(b,this.i);var h=!c||10<Math.abs(c-this.i);ZW(this,this.Aa,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
e=e&&pE(b.Qf(),this.i);var l=!this.Qa||!this.Qa.policy.ya;h=function(){b.seekTo(a.i+.001)};
ZW(this,this.ea,e&&l&&!f,d,"qoe.slowseek",h,"jiggle_cmt");l=function(){return a.X("newmediaelementrequired")};
ZW(this,this.Y,e&&!f,d,"qoe.slowseek",l,"new_elem");e=NK(this.playerState);d=g.OK(this.playerState);var m=b.Qf(),n=oE(m,c);yCa(this,b,m,c,f,e,d);m=0<=n&&m.end(n)>c+5;m=e&&d&&m;ZW(this,this.J,m&&!f,e&&!d,"qoe.longrebuffer",h,"jiggle_cmt");ZW(this,this.L,m&&!f,e&&!d,"qoe.longrebuffer",l,"new_elem_nnr");if(this.Qa){var p=this.Qa.getCurrentTime();h=b.qp();h=Lja(h,p);h=!this.Qa.B.i&&c===h;ZW(this,this.Ga,e&&d&&h&&!f,e&&!d&&!h,"qoe.longrebuffer",function(){b.seekTo(p)},"seek_to_loader")}ZW(this,this.V,
e&&d&&!f,e&&!d,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.C()&&!f;ZW(this,this.I,f,!f,"qoe.start15s",function(){return a.X("releaseadsprerolllock")},"ads_preroll_timeout");
f=.5>c-this.B;h=this.videoData.isAd()&&e&&!d&&f;e=function(){return a.X("skipslowad")};
ZW(this,this.Da,h,!h,"ad.rebuftimeout",e,"skip_slow_ad");f=this.videoData.isAd()&&d&&pE(b.Qf(),c+5)&&f;ZW(this,this.Ia,f,!f,"ad.rebuftimeout",e,"skip_slow_ad_buf");this.B=c;this.u.start()}};
g.k.Ad=function(a,b,c){b=this.Eb(b);b.wn=c;b.wdup=this.l[a]?"1":"0";this.X("qoeerror",a,b);this.l[a]=!0};
g.k.Eb=function(a){a=a.Eb();this.i&&(a.stt=this.i.toFixed(3));this.Qa&&Object.assign(a,this.Qa.Eb());this.oa&&Object.assign(a,this.oa.Eb());return a};
WW.prototype.reset=function(){this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1};
WW.prototype.Eb=function(){var a={},b=(0,g.P)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.v(aX,g.Q);g.k=aX.prototype;g.k.Ji=function(a){cX(this);this.videoData=a;this.J=this.l=null;this.u=this.Ga=this.timestampOffset=0;this.Da=!0;this.I.dispose();this.I=new YW(this.W,this.videoData,(0,g.C)(this.X,this),this.visibility,this.Ua);this.I.setMediaElement(this.oa);this.I.Qa=this.Qa};
g.k.setMediaElement=function(a){g.xx(this.Ra);(this.oa=a)?(LCa(this),$W(this)):cX(this);this.I.setMediaElement(a)};
g.k.Hc=function(a){this.I.Hc(a);this.Z("html5_exponential_memory_for_sticky")&&(a.state.yc()?g.Fq(this.Y):this.Y.stop());var b;if(b=this.oa)b=8===a.Gn.state&&NK(a.state)&&g.OK(a.state)&&this.policy.u;if(b){a=this.oa.getCurrentTime();b=this.oa.Qf();var c=this.Z("manifestless_post_live_ufph")||this.Z("manifestless_post_live")?oE(b,Math.max(a-3.5,0)):oE(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.Za-c)||(this.X("ctmp","seekover","b."+nE(b,
"_")+";cmt."+a),this.Za=c,this.seekTo(c,{Iu:!0,ye:"playbacktimeline_postLiveDisc"})))}};
g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.oa&&ICa(this)?this.oa.getCurrentTime()+this.timestampOffset:this.u||0};
g.k.Il=function(){return this.getCurrentTime()-this.Qc()};
g.k.hj=function(){return this.l?this.l.hj():Infinity};
g.k.isAtLiveHead=function(a){if(!this.l)return!1;void 0===a&&(a=this.getCurrentTime());return VW(this.l,a)};
g.k.Pl=function(){return!!this.l&&this.l.Pl()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.qM?!1:c.qM;var d=void 0===c.rM?0:c.rM,e=void 0===c.Iu?!1:c.Iu,f=void 0===c.ZE?0:c.ZE;c=void 0===c.ye?null:c.ye;var h=a,l=!isFinite(h)||(this.l?VW(this.l,h):h>=this.cd())||!g.SH(this.videoData);l||this.X("ctmp","seeknotallowed",h+";"+this.cd());if(!l)return this.B&&(this.B=null,fX(this)),Ug(this.getCurrentTime());this.ma();if(.005>Math.abs(a-this.i)&&this.V)return this.ma(),this.C;c&&(h=a,(g.GH(this.videoData)||this.Z("html5_log_seek_reasons"))&&
this.X("ctmp","seekreason","reason."+c+";tgt."+h));this.V&&cX(this);this.C||(this.C=new hT);a&&!isFinite(a)&&bX(this,!1);c=a;(eX(this)&&!(this.oa&&0<this.oa.rh()&&0<DK(this.oa))||KH(this.videoData)&&this.getMinSeekableTime()===this.cd(!1)?0:isFinite(c)||!KH(this.videoData))&&(a=HCa(this,a,e));a&&!isFinite(a)&&bX(this,!1);this.u=a;this.Ia=f;this.i=a;this.l&&(e=this.l,f=a,wCa(e,f,!1),xCa(e,f));this.X("seekto",a,!b);this.C&&(b?d&&this.La.start(d):(this.ma(),this.V=!0,CCa(this)));return this.C};
g.k.cd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.cd();if(KH(this.videoData)&&this.videoData.Ui&&this.videoData.i)return this.videoData.i.cd()+this.timestampOffset;if(this.videoData.u&&this.videoData.u.i){if(!a&&this.l)return this.l.hj();a=this.videoData.cd();this.policy.i&&this.oa&&(a=Math.max(a,Qoa(this.oa)));return a+this.timestampOffset}this.oa?wt()?(a=this.oa.yw().getTime(),a=isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)):a=DK(this.oa)+this.timestampOffset||this.timestampOffset:
a=this.timestampOffset;return a};
g.k.getMinSeekableTime=function(){return this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset};
g.k.xa=function(){dX(this,null);this.I.dispose();g.Q.prototype.xa.call(this)};
g.k.EV=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Qc(),{Iu:b,ye:"playbacktimeline_seekPlayerHandler"})};
g.k.Eb=function(){var a={};this.Qa&&Object.assign(a,this.Qa.Eb());this.oa&&Object.assign(a,this.oa.Eb());return a};
g.k.ys=function(a){this.timestampOffset=a};
g.k.RN=function(a){this.Ga=a};
g.k.getStreamTimeOffset=function(){return KH(this.videoData)?this.Ga:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.Qc=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.k.kp=function(){if(!this.oa)return 0;if(TH(this.videoData)){var a=Qoa(this.oa)+this.timestampOffset-this.getMinSeekableTime(),b=this.cd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.oa.kp()};
g.k.LD=function(a){this.J&&(this.J.i=a.audio.index)};
g.k.Z=function(a){return this.W&&g.S(this.W.experiments,a)};
g.k.ma=function(){};gX.prototype.isFinished=function(){return this.i};
gX.prototype.start=function(){this.started=!0};
gX.prototype.reset=function(){this.i=this.started=!1};hX.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.cy(f)}));
if(this.i){var e=gi(g.ii(5,zi(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}return new Promise(function(f){var h,l,m=new XMLHttpRequest;m.onerror=function(){var t,u;if(null===(t=c.l)||void 0===t?0:t.i(a,b)){var x=c.l.l(a,b);null===(u=c.i)||void 0===u?void 0:u.success();f(x)}else f(c.handleResponse(a,m.status,m.response))};
m.onload=function(){f(c.handleResponse(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)})};
hX.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.cy(new g.Pv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200===b?this.i&&this.i.success():(this.i&&this.i.failure(),g.cy(new g.Pv("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var NCa=!1,iX,jX,kX,lX,mX;
nX.prototype.encrypt=function(a){var b=qX.Wv("oap"),c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.l,e=0;e<c&&16>this.i;)a[e++]^=d[this.i++];for(var f=c-(c-e)%16;e<f;)PCa(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(PCa(this),this.i=0;e<c;)a[e++]^=d[this.i++];qX.au(b,Math.ceil(c/
16));return a};oX.prototype.reset=function(){SCa(this);this.update(this.u)};
oX.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,RCa(this,this.I,0));for(;b+64<=c;b+=64)RCa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.l),this.l+=a.length)};
var QCa=[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];rX.prototype.encrypt=function(a){return UCa(this.i.i,a,this.iv)};
rX.prototype.decrypt=function(a,b){return UCa(this.i.i,a,b)};sX.prototype.gg=function(a){return!!this.Ae[a].Md.totalLength};
sX.prototype.Ki=function(a){var b=this.Ae[a].Md;this.Ae[a].yB+=b.totalLength;this.Ae[a].Md=new uD;return b};
sX.prototype.mf=function(a){return this.Ae[a].mf};
sX.prototype.ma=function(){};var c3={},gDa=(c3.f="video",c3["1"]="video",c3["1h"]="video",c3.h="video",c3.H="video",c3["9"]="video",c3["("]="video",c3["9h"]="video",c3["(h"]="video",c3.o="audio",c3.O="audio",c3.a="audio",c3.ah="audio",c3.A="audio",c3.m="audio",c3.M="audio",c3.mac3="audio",c3.MAC3="audio",c3.meac3="audio",c3.MEAC3="audio",c3.so="audio",c3.sa="audio",c3["8"]="unknown",c3["*"]="unknown",c3.w="unknown",c3["3"]="unknown",c3["6"]="unknown",c3[""]="unknown",c3);lDa.prototype.decrypt=function(a){return g.D(this,function c(){var d=this,e,f,h,l,m,n,p;return g.z(c,function(r){switch(r.i){case 1:if(d.i.length&&!d.i[0].Ak)return r.return();d.l=!0;e=new Uint8Array(16);if(!ZCa()){f=null;r.wb(2);break}return g.w(r,YCa(a),3);case 3:f=r.l;case 2:l=(h=f)?null:XCa(a);case 4:if(!d.i.length||!d.i[0].Ak){r.wb(5);break}m=d.i.shift();if(!h){n=l(m.buffer,e);r.wb(6);break}return g.w(r,h(m.buffer,e),7);case 7:n=r.l;case 6:p=n;for(var t=0;t<e.length;t++)if(255===e[t])e[t]=0;
else{e[t]+=1;break}mDa(d.u.Fd,m.PE,p);r.wb(4);break;case 5:uX(d),d.l=!1,g.sa(r)}})})};vX.prototype.feed=function(a,b){var c=b.totalLength;this.ma();switch(a){case 10:var d=nR(new kR(b),1);this.ma();a=!1;switch(d){case 5:c=this.Fd;c.yf("orfb");c.J=!0;break;case 0:this.iv=(new eDa(b)).i.iv;break;case 16:this.Ry(b);break;case 2:break;default:a=!0}this.Fd.Nl&&this.Fd.Ha("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.l=d;break;case 11:pDa(this,b);break;case 20:a=new hDa(b);var e=a.u;c=a.l;var f=a.xn,h=void 0!==this.i[c];this.Fd.Nl&&this.Fd.Ha("ombup","id.20;len."+
b.totalLength+";hid."+e);this.ma();this.u[e]=c;h?(b=this.i[c].headers,b.push(a),a.i&&2===b.length&&this.Fd.Ry(c,b[0].i+b[1].i)):(this.i[c]={ZI:!1,xn:f,headers:[a]},null===(d=this.Fd.Lq)||void 0===d?void 0:bDa(d,c));break;case 21:qDa(this,b,!1);break;case 12:qDa(this,b,!0);break;case 22:d=DD(b,0);this.Fd.Nl&&this.Fd.Ha("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.u[d]||null;this.ma();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||nDa(this.queue,b));break;case 37:b=new fDa(b);b.i&&(this.Fd.SN=
b);break;default:this.Fd.Nl&&this.Fd.Ha("ombup","id."+a+";len."+c+";ignored.1"),this.ma()}};
vX.prototype.Ry=function(a){a=new kDa(a);this.Fd.Ry(a.i,a.l);this.ma()};
vX.prototype.ma=function(){};g.v(zX,xX);zX.prototype.l=function(a){uR(a,1,this.name);uR(a,2,this.value)};g.v(AX,xX);AX.prototype.l=function(a){uR(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,cva(a),c.l(a),dva(a);uR(a,3,this.postBody)};g.v(BX,xX);BX.prototype.l=function(a){this.i.eM&&rR(a,13,this.i.eM);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;qR(a,112);qR(a,b<<1^b>>31)}this.i.DJ&&rR(a,16,this.i.DJ);this.i.viewportHeight&&this.i.viewportWidth&&(rR(a,18,this.i.viewportWidth),rR(a,19,this.i.viewportHeight));this.i.WL&&rR(a,21,this.i.WL);this.i.zH&&rR(a,23,this.i.zH);void 0!==this.i.visibilityState&&rR(a,34,this.i.visibilityState);void 0!==this.i.dM&&rR(a,39,this.i.dM)};g.v(CX,xX);CX.prototype.l=function(a){sR(a,2,this.i);sR(a,5,this.encryptedClientKey);sR(a,6,this.iv);sR(a,7,this.hmac);rR(a,10,this.serializeResponseAsJson?1:0)};g.v(DX,xX);DX.prototype.l=function(a){cva(a);this.i.l(a);dva(a);sR(a,3,yX(this.u));this.onesieUstreamerConfig&&sR(a,4,this.onesieUstreamerConfig)};sDa.prototype.feed=function(a){wD(this.i,a);tDa(this)};var d3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},ADa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},d3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},d3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
d3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},d3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},d3)],e3={},yDa=(e3["137"]=["136","135","134","133","160"],e3["248"]=["247","244","243","242","278"],e3["399"]=["398","397","396","395","394"],e3["299"]="298 137 136 135 134 133 160".split(" "),e3["303"]="302 248 247 244 243 242 278".split(" "),
e3["140"]=[],e3["251"]=["250"],e3),f3={},uDa=(f3["160"]=0,f3["133"]=22639,f3["134"]=45778,f3["135"]=73749,f3["136"]=153645,f3["137"]=332697,f3["278"]=0,f3["242"]=22702,f3["243"]=42954,f3["244"]=73575,f3["247"]=139201,f3["248"]=259369,f3["298"]=260272,f3["299"]=589187,f3["302"]=295858,f3["303"]=528496,f3["394"]=0,f3["395"]=18457,f3["396"]=37231,f3["397"]=65872,f3["398"]=133087,f3["399"]=236318,f3),g3={},vDa=(g3["133"]=240,g3["134"]=360,g3["135"]=480,g3["136"]=720,g3["137"]=1080,g3["242"]=240,g3["243"]=
360,g3["244"]=480,g3["247"]=720,g3["248"]=1080,g3["298"]=720,g3["299"]=1080,g3["302"]=720,g3["303"]=1080,g3["395"]=240,g3["396"]=360,g3["397"]=480,g3["398"]=720,g3["399"]=1080,g3),wDa=["1","9","h"];g.k=CDa.prototype;g.k.yf=function(a){this.i.yf(a)};
g.k.Ry=function(a,b){var c;null===(c=this.Lq)||void 0===c?void 0:(c.Ae[a].Wt=b,c.ma())};
g.k.Ha=function(a,b){this.i.Ha(a,b)};
g.k.fetch=function(){return g.D(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t;return g.z(b,function(u){c.ma();c.B.start();c.yf("ogpd");var x=c.playerRequest,y=c.W,B=c.videoData,G=y.Jg;G="https://youtubei.googleapis.com/youtubei/"+G.innertubeApiVersion+"/player?key="+G.innertubeApiKey;var H=[new zX({name:"Content-Type",value:"application/json"})],I=B.lf();I&&H.push(new zX({name:"Authorization",value:"Bearer "+I}));H.push(new zX({name:"User-Agent",value:g.Uc}));(B=B.visitorData||g.O("VISITOR_DATA",
void 0))&&H.push(new zX({name:"X-Goog-Visitor-Id",value:B}));(y=g.eF(y.experiments,"debug_sherlog_username"))&&H.push(new zX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new AX({url:G,httpHeaders:H,postBody:x});try{var L=c.W;var T=c.i.getPlayerSize();var N=c.i.getVisibilityState();var oa=c.I.onesieUstreamerConfig,za=c.u;var pc=za.encrypt(yX(e));var te=za.i.encryptedClientKey,bc=za.iv,ee=za.iv,Jd=new oX(za.i.l);Jd.update(pc);Jd.update(ee);var Jh=TCa(Jd);Jd.update(Jd.C);Jd.update(Jh);
var Qg=TCa(Jd);Jd.reset();var jc=new CX(pc,te,bc,Qg);za={};var Vl=EF(0);if(Vl){za.DJ=Vl;za.lastManualDirection=mka();var Wl=hz()||0;0<Wl&&(za.eM=(0,g.P)()-Wl)}za.WL=EF();za.zH=BF(L.schedule,!0);var Xl=g.EG();za.viewportHeight=T.height*Xl;za.viewportWidth=T.width*Xl;za.visibilityState=N;za.dM=zu();d=new DX(jc,new BX(za),oa)}catch(fe){return c.ma(),fe instanceof g.vE?wX(c,fe):(f=new g.vE("onesie.request",!1),wX(c,f)),u.return(c.l)}c.yf("osor");h=Dsa(c.W);l=yX(d);g.vt()&&(l=new Uint8Array(l.buffer.slice(0,
l.length)));m={method:"POST",body:l,headers:{"Content-Type":"text/plain"}};a:{if(c.Lq){L=BF(c.W.schedule,!0);T=c.i.getVideoData();N=BDa(T);T=N.video.map(zDa).flat();N=N.audio.map(zDa).flat();T=xDa(c.i,T,L);if(T.length){L={video:T,audio:N};break a}c.Ha("ombspf","limit."+L)}L=void 0}n=L;var zf;L=c.videoData;var Ka;b:{var Af;if((T=L.T().Mg)&&T.baseUrl&&(N=g.eF(L.T().experiments,"debug_bandaid_hostname")||(null===(Af=fKa())||void 0===Af?void 0:Af.primary))){Af=new g.yB("https://"+N+T.baseUrl);if(T=null===
(Ka=L.Ep)||void 0===Ka?void 0:Ka.urlQueryOverride)for(Ka=GB(T),Ka=g.q(Object.entries(Ka)),T=Ka.next();!T.done;T=Ka.next())N=g.q(T.value),T=N.next().value,N=N.next().value,Af.set(T,N);if(!Af.get("id")){T=uF(L.videoId);Ka=[];if(T)for(T=g.q(T),N=T.next();!N.done;N=T.next())Ka.push(N.value.toString(16).padStart(2,"0"));Ka=Ka.join("");if(!Ka){Ka=void 0;break b}Af.set("id",Ka)}Ka=Af;break b}Ka=void 0}!Ka&&(null===(zf=L.Ep)||void 0===zf?0:zf.url)&&(Ka=new g.yB(L.Ep.url));Ka?(Ka.set("ack","1"),Ka.set("cpn",
L.clientPlaybackNonce),Ka.set("opr","1"),Ka.set("oaad","0"),Ka.set("oavd","0"),n?(zf=n.audio,Ka.set("pvi",n.video.join(",")),Ka.set("pai",zf.join(",")),WA()||Ka.set("osh","1")):(Ka.set("pvi","135"),Ka.set("pai","140"),Ka.set("oad","0"),Ka.set("ovd","0")),zf=zB(Ka)):zf="";p=zf;if(!p)return c.ma(),r={url:"0"},t=new g.vE("onesie.unavailable.hotconfig",!1,r),wX(c,t),u.return(c.l);c.yf("ocs");c.ma();c.Nl&&c.Ha("ombrs","1");WA()?c.xhr=new tV(p,h,c,m):c.xhr=new uV(p,c,m);return u.return(c.l)})})};
g.k.UD=function(){};
g.k.Ty=function(){DDa(this)};
g.k.zv=function(){this.ma();DDa(this);var a=this.xhr;if(a.pe()){var b={msg:a.pe()};b=new g.vE("onesie.net",!1,b)}else 400<=a.status?b=new g.vE("onesie.net.badstatus",!1):a.lz()?this.J||(b=new g.vE("onesie.response.noplayerresponse",!1)):b=new g.vE(204===a.status?"onesie.net.nocontent":"onesie.net.connect",!1);b?wX(this,b):this.yf("orf");this.Nl&&this.Ha("ombre","ok."+ +!b);b=this.C;a=b.queue;a.i.length&&a.i[0].Ak&&!a.l&&(a.i.length=0);a=g.q(Object.keys(b.i));for(var c=a.next();!c.done;c=a.next())c=
c.value,b.i[c].ZI||nDa(b.queue,c)};
g.k.HQ=function(){this.ma();wX(this,new g.vE("onesie.request",!1,{timeout:"1"}))};
g.k.ma=function(){};g.v(g.IX,g.Q);g.k=g.IX.prototype;g.k.xa=function(){this.ma();this.AL();this.fz.stop();window.clearInterval(this.Xy);rxa(this.Re);this.visibility.unsubscribe("visibilitystatechange",this.Re);JX(this);oW(this);g.tu(this.Nn);this.Ag();this.ke=null;g.ff(this.videoData);g.ff(this.Pd);g.gf(this.KR);this.nk=null;this.Vq=!1;this.At=0;g.Q.prototype.xa.call(this)};
g.k.Gv=function(a){this.Vb.Gv(a)};
g.k.hs=function(a,b,c){this.Vb.hs(a,b,c)};
g.k.rC=function(){var a;return null===(a=this.Qa)||void 0===a?void 0:a.rC()};
g.k.sC=function(){var a;return null===(a=this.Qa)||void 0===a?void 0:a.sC()};
g.k.Ji=function(a,b,c){c=void 0===c?!0:c;this.ma();this.Di.length=0;this.Ur=null;this.Aj.reset();this.Kk.reset();this.Zu=!1;this.Ru=0;this.QC=!0;this.Bv=null;this.oa&&this.oa.stopVideo();aY(this);JX(this);oW(this);g.tu(this.Nn);this.Gz.clear();g.ff(this.videoData);g.ff(this.Pd);if(2===this.playerType||this.W.dl)a.IM=!0;var d=Tla(a.Xd,a.zq,this.W.l,this.W.u);d&&(a.adFormat=d);2===this.playerType&&(a.Jk=!0);if(this.isFullscreen()||this.W.l)d=dKa(),a.autonavState=d||(this.W.l?2:this.videoData.autonavState);
this.BB=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.VU,this);this.videoData.subscribe("dataloaded",this.IB,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ha,this);TDa(this,a);PDa(this,b);QDa(this);this.Vq=!1;this.At=0;MX(this,"newdata");this.Jb(new g.GK);this.fc.Ji(this.videoData);if(Zma(a)||this.Z("embeds_enable_playability_on_web_preview")&&a.Tp&&!["OK","LIVE_STREAM_OFFLINE"].includes(a.Tp.status))a=this.videoData.errorDetail,
this.Z("embeds_enable_playability_on_web_preview")?this.wf("auth",unescape(this.videoData.errorReason),a,a,this.videoData.di||void 0):(b=this.videoData.Nj,this.wf("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&x2.isActive()&&this.fz.start()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.W};
g.k.qd=function(){return this.oa};
g.k.IB=function(){if(this.videoData.isLoaded()){var a=this.Pd;0<g.U(a.i.experiments,"html5_player_min_build_cl")&&382180333<g.U(a.i.experiments,"html5_player_min_build_cl")&&gBa(a,"oldplayer");UDa(this)}else this.videoData.Lc||this.videoData.Vi?this.Cp&&g.vG(this.W)&&this.videoData.isLivePlayback||(this.videoData.Lc?Oma(this.videoData):(a=this.Vb,a.qoe&&(a=a.qoe,AW(a,"protected"),a.i.videoData.I?a.KL():a.i.videoData.subscribe("dataloaded",a.KL,a)),Ima(this.videoData))):!this.videoData.Y&&this.BB&&
SDa(this)};
g.k.wu=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.X("internalAbandon"),this.yE(!0),JX(this),g.tu(this.Nn))};
g.k.uq=function(){cCa(this.Vb)};
g.k.wf=function(a,b,c,d,e){this.ma();var f,h;g.Ob(qKa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Jra());(b=h)||(b=g.kO[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,eC:f,di:e||"",sL:c};MX(this,"dataloaderror");this.Jb(HK(this.playerState,128,a));g.tu(this.Nn);oW(this);this.em()};
g.k.Ed=function(a){this.Di=this.Di.filter(function(b){return a!==b});
this.ma();this.Kk.started&&NX(this)};
g.k.Ol=function(){var a;(a=!!this.Di.length)||(a=this.Bh.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Pl=function(){return this.fc.Pl()};
g.k.yc=function(){return this.playerState.yc()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.ke){var a=this.ke;a=a.videoData.xq.compose(a.videoData.tI);a=eB(a)}else a="auto";return a};
g.k.xu=ba(9);g.k.isGapless=function(){return!!this.oa&&this.oa.isView()};
g.k.setMediaElement=function(a){this.ma();if(this.oa&&a.Ge()===this.oa.Ge()&&(a.isView()||this.oa.isView())){if(a.isView()||!this.oa.isView())g.xx(this.Ks),this.oa=a,cEa(this),this.fc.setMediaElement(this.oa),this.Pd.setMediaElement(this.oa)}else{this.oa&&this.Ag();if(!this.playerState.isError()){var b=JK(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=IK(b,1));a.isView()&&(b=JK(b,64));this.Jb(b)}this.oa=a;this.oa.setLoop(this.loop);this.oa.setPlaybackRate(this.playbackRate);cEa(this);this.fc.setMediaElement(this.oa);
this.Pd.setMediaElement(this.oa)}};
g.k.Ag=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ma();if(this.oa){var c=this.getCurrentTime();0<c&&(this.fc.u=c);this.fc.setMediaElement(null);this.Pd.setMediaElement(null);XX(this);this.Qa&&(g.Fq(this.Qa.ea),VX(this,b));this.Hp.stop();if(this.oa){!this.Kk.started||this.playerState.isError()||g.V(this.playerState,2)||this.Jb(IK(this.playerState,512));g.xx(this.Ks);if(a||!this.oa.isView())this.oa.stopVideo(),aY(this);this.oa=null}}};
g.k.playVideo=function(){return g.D(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i){c.ma();if(g.V(c.playerState,128))return l.return();if(c.Pd.Vx())return c.X("signatureexpired"),l.return();var m=c.Pd;m.I?(m.I=!1,mW(m),m=!0):m=!1;if(m)return l.return();c.oa&&(m=c.Vb,m.u&&DBa(m.u),m.qoe&&MBa(m.qoe));QX(c);g.V(c.playerState,64)&&c.Jb(IK(c.playerState,8));return c.Kk.isFinished()&&c.oa?c.ke||!c.Ur?l.wb(2):g.w(l,c.Ur,2):l.return()}if(!c.videoData.u)return d=c.videoData.isLivePlayback&&
!g.sF(c.W.B,!0)?"html5.unsupportedlive":EH(c.videoData)?"fmt.unplayable":"fmt.noneavailable",g.cy(Error("selectableFormats")),c.wf(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(c.Df()&&c.videoData.u.i)return c.ma(),l.return(LX(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.getMinSeekableTime()-15;f=g.SH(c.videoData)&&g.V(c.playerState,4);h=!c.Z("html5_dompaused_unpause_killswitch")&&g.V(c.playerState,1024);h||!e&&!f||(f?(c.ma(),c.seekTo(Infinity,{ye:"videoplayer_unpauseLiveOnly"})):
(c.ma(),c.seekTo(c.getMinSeekableTime(),{ye:"videoplayer_outOfWindow"})));!c.isAtLiveHead(void 0,!0)&&c.Pl()&&(c.ma(),c.seekTo(Infinity,{ye:"videoplayer_peggedToLive"}));if(m=g.V(c.playerState,256)&&c.videoData.eb)m=c.fc,m=m.V&&!isFinite(m.i);if(m)return c.Jb(KK(c.playerState,8,4)),l.return()}g.V(c.playerState,4)&&g.V(c.playerState,16)&&c.Jb(KK(c.playerState,9,4));if(HX(c))return iEa(c),l.return();$X(c);g.sa(l)})})};
g.k.lP=function(){var a=this.videoData;a.i.dispose();a.i=void 0;Dma(a,a.adaptiveFormats);kW(this,!0);a=new QU(this.videoData.videoId,4,{cE:!0});this.X("localmediachange",a)};
g.k.vV=function(){this.ma();XX(this);var a=this.videoData.i&&oB(this.videoData.i),b=this.oa&&this.oa.isView();a||b?(this.Qa&&(a=this.Qa,a.policy.ya=!1,a.mediaSource&&OV(a)),kW(this)):(this.Jb(IK(this.playerState,16)),HX(this),g.MK(this.playerState)&&this.playVideo())};
g.k.kC=function(){this.ma();aY(this);oW(this);this.videoData.kC();YX(this);this.playVideo()};
g.k.Tm=function(){if(!this.ke)return[];var a=lBa(this.rg,this.ke,this.Dr());return this.ke.i.Tm(a)};
g.k.Dr=function(){var a=this.yd?this.yd.Dr():BH(this.videoData)&&this.videoData.i&&oB(this.videoData.i)?this.videoData.Mg?uH:XAa:uH;this.uE&&(a=a.compose($Ja));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.u&&!this.videoData.u.i?eB(this.videoData.xq):dB[EF()]};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.videoData.getAudioTrack()};
g.k.mp=function(){return this.mediaSource};
g.k.sT=function(a,b){this.Np(new PU(b,a))};
g.k.Np=function(a){this.ma();this.Vr.set(a.initData,a);this.yd&&(this.yd.Np(a),this.Z("html5_eme_loader_sync")||this.Vr.remove(a.initData))};
g.k.SU=function(a){this.videoData.yq=bB("auto",a,!1,"u");GX(this)};
g.k.LD=function(a){var b=this;SX(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&&bE(a.video.info)&&sBa(this.rg,this.ke).then(function(c){c&&b.Qa&&Lya(b.Qa.l,b.W)})};
g.k.eT=function(a){XDa(this,a.reason,a.audio.info)};
g.k.fT=function(a){this.X("localmediachange",a)};
g.k.Vx=function(){return this.Pd.Vx()};
g.k.handleError=function(a){this.Pd.handleError(a,g.V(this.playerState,4)||g.V(this.playerState,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.Jb(KK(this.playerState,4,8));else return;this.Z("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.Vv()||(g.V(this.playerState,128)||(a?this.Jb(IK(this.playerState,256)):this.Jb(KK(this.playerState,4,8))),this.oa&&this.oa.pause(),g.SH(this.videoData)&&this.Qa&&VX(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.Qa&&(VX(this,!1),HV(this.Qa))};
g.k.em=function(a){a=void 0===a?!1:a;var b;if(this.Z("html5_signature_reload_refactor"))null===(b=this.oa)||void 0===b?void 0:b.stopVideo();else{if(!this.oa)return;this.oa.stopVideo()}aY(this);oW(this);g.V(this.playerState,128)||(a?this.Jb(JK(JK(IK(this.playerState,4),8),16)):this.Jb(HK(this.playerState)));this.videoData.videoId&&this.W.V.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.ma("SeekTo "+a+", "+JSON.stringify(b));g.V(this.playerState,2)&&HX(this);if(this.le){var c=this.le;isFinite(a)&&a<c.i.hj()?c.isLiveNow=!1:c.isLiveNow=!0}this.fc.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.fc.getCurrentTime()};
g.k.Il=function(){return this.fc.Il()};
g.k.hj=function(){return this.fc.hj()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Qc())};
g.k.Er=function(){var a=NaN;this.oa&&(a=this.oa.Er());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){if(this.videoData.i)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.Qc());if((!this.Z("html5_disable_limit_ingestion_tvos")||wt())&&this.oa){var a=this.oa.yw();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.Qc():this.cd()?this.cd():0};
g.k.Ex=function(){var a=new gCa;if(this.Qa){var b=this.W.schedule;a.l=b.V;a.B=b.Y;a.bandwidthEstimate=BF(b);a.i="d."+zF(b).toFixed(2)+";st."+(1E9*(b.i.cg()||0)).toFixed(2)+";bw."+b.u.cg().toFixed(0)+";abw."+b.I.cg().toFixed(0)+";v50."+xF(b.l,.5).toFixed(2)+";v92."+xF(b.l,.92).toFixed(2)+";v96."+xF(b.l,.96).toFixed(2)+";v98."+xF(b.l,.98).toFixed(2);b=this.Qa;if(b.mediaSource&&!b.mediaSource.mf()&&(a.Mo=mV(b.videoTrack,b.currentTime),a.u=mV(b.audioTrack,b.currentTime),b.policy.Ya)){var c=lV(b.videoTrack),
d=lV(b.audioTrack),e=nE(b.mediaSource.l.jf(),"_",5),f=nE(b.mediaSource.i.jf(),"_",5);a.i=(a.i||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=qU(b.I);b.ma()}else this.oa&&(a.Mo=EK(this.oa));a.C=this.isAtLiveHead()&&this.yc()?FX(this):NaN;return a};
g.k.kp=function(){return this.oa?g.SH(this.videoData)?1:TH(this.videoData)?this.isAtLiveHead()||this.Pl()?1:this.fc.kp():this.oa.kp():0};
g.k.Eb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Vb.Eb());this.oa&&(Object.assign(b,this.oa.Eb()),Object.assign(b,this.Du()));this.Qa&&Object.assign(b,this.Qa.Eb());this.yd&&(b.drm=this.yd.Eb());b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=this.playerState.getData());this.Ol()&&(b.prerolls=this.Di.join(","));this.videoData.Ij&&(b.ismb=this.videoData.Ij);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=this.videoData.latencyClass);
this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.sH.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&XE(this.videoData.i)&&(b.segduration=XE(this.videoData.i)),a=this.fc,b.lat=a.J?Uxa(a.J.B):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Yi.toFixed(3);if(a=g.RX(this))b.optimal_format=a.ib().qualityLabel;b.user_qual=EF();b.release_version="youtube.player.web_20210629_1_RC0"}b.debug_videoId=
this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.xt([a])};
g.k.removeCueRange=function(a){this.Bh.Uf([a])};
g.k.xt=function(a){this.Bh.Id(a)};
g.k.lE=function(a){this.Bh.Uf(a)};
g.k.Um=function(){return this.Bh.Um()||[]};
g.k.Df=function(){return this.visibility.Df()};
g.k.iq=function(){this.oa&&this.oa.iq()};
g.k.VU=function(){MX(this)};
g.k.togglePictureInPicture=function(){this.oa&&this.oa.togglePictureInPicture()};
g.k.TD=function(a){this.Jz.stop();var b=a.target.Af();if(this.oa&&this.oa.Af()&&this.oa.Af()===b){kEa(this,a.type);switch(a.type){case "error":var c=FK(this.oa)||"";if("capability.changed"===c){LX(this);return}if(0<this.oa.Zi()&&nW(this.Pd,c,{msg:this.oa.pe()}))return;if(this.isBackground()&&4===this.oa.Zi()){this.em();OX(this,"unplayable");return}break;case "durationchange":c=this.oa.getDuration();(!this.mediaSource||isFinite(c)&&0<c)&&1!==c&&this.Bj(c);break;case "ratechange":this.Qa&&this.Qa.setPlaybackRate(this.oa.getPlaybackRate());
c=this.Bh;c.started=!0;c.Wk();var d=this.Vb;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.pT(d.i);c&&c!==d.fb&&(g.vW(d,e,"rate",[c]),d.fb=c);d.reportStats(e)}break;case "loadedmetadata":mEa(this);this.X("onLoadedMetadata");fEa(this);break;case "loadstart":fEa(this);break;case "progress":case "suspend":this.Rb();this.X("onLoadProgress",this,this.kp());break;case "playing":if(this.Z("html5_force_manifestless_seeking_state")&&KH(this.videoData)&&this.Qa&&this.Qa.B.i){this.Ha("mflForceSeek","reason.play");
return}this.Mb.tick("plev");eEa(this);SA("plev","video_to_ad");this.vE&&(this.vE=!1,this.isAtLiveHead()||(this.ma(),this.seekTo(Infinity,{ye:"videoplayer_onPlaying"})));break;case "timeupdate":eEa(this);c=this.oa&&!this.oa.getCurrentTime();d=this.oa&&0===this.oa.rh();if(c&&(!this.Zu||d))return;this.Zu=this.Zu||!!this.oa.getCurrentTime();ZX(this);this.Rb();if(!this.oa||this.oa.Af()!==b)return;this.X("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.oa.qp().length&&0===this.oa.Qf().length&&
0<this.oa.getCurrentTime()&&5>this.oa.getCurrentTime()&&this.Qa)return;break;case "resize":mEa(this);this.videoData.l&&"auto"===this.videoData.l.ib().quality&&this.X("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.xH&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.dj){OX(this,"safari_autoplay_disabled");return}}if(this.oa&&this.oa.Af()===b){this.X("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.Gt;e=this.oa;var f=this.W.experiments;
d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Bk()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!QW(c,h);if("pause"===a.type&&e.Bk()||l&&h)0<e.Ax()&&e.Af()&&(d=14);else switch(a.type){case "error":FK(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&g.S(f,"html5_playing_clears_unstarted_killswitch")||
(d&=-65);QW(c,e.getCurrentTime())&&(d&=-2);g.V(b,1)&&RW(c,e.getCurrentTime(),(0,g.P)(),EK(e))&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);RW(c,e.getCurrentTime(),(0,g.P)(),EK(e));break;case "timeupdate":f=g.V(b,16),l=g.V(b,4),(g.V(b,8)||f)&&!l&&QW(c,e.getCurrentTime())&&(d=8),RW(c,e.getCurrentTime(),(0,g.P)(),EK(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=FK(d))?(f="GENERIC_WITHOUT_LINK",l=d.Eb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.pe())&&
(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.kO[f]||"",eC:f,sL:g.wE(l)}):d=null);b=HK(b,c,d)}!g.V(this.playerState,1)&&g.V(b,1)&&bY(this,"evt"+a.type);this.Jb(b)}}};
g.k.JU=function(){this.Ha("misstimeupdate","");dEa(this)&&!g.V(this.playerState,2)&&qT(this,!0,!1)};
g.k.aS=function(a){a="available"===a.i.availability;a!==this.Sx&&(this.Sx=a,this.X("airplayavailabilitychange"))};
g.k.bS=function(){var a=(0,g.P)(),b=this.oa.Df();this.Ha("airplay",b?"on":"off");if(!this.Z("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.Zx)||!(2E3>a-this.Zx))this.Zx=a,b!==this.Df()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Re()),this.Ha("airplay","rbld_"+b),pW(this)),this.X("airplayactivechange")};
g.k.Eu=function(a){if(this.Qa){var b=this.Qa,c=b.u,d=b.currentTime;BU(c,"sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&xya(c,d,c.C,c.B);c.l=4;g.Fq(b.ea)}};
g.k.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.oa&&this.videoData){ECa(this.fc,this.yc());var c=this.getCurrentTime();this.Qa&&(g.V(this.playerState,4)&&g.SH(this.videoData)||qAa(this.Qa,c));5<c&&(this.fc.u=c);var d=g.ru();d?g.tu(this.Nn):g.Ws(this.Nn);if((g.OK(this.playerState)||!this.oa.ym())&&!g.V(this.playerState,128)){var e=function(){if(b.oa&&!g.V(b.playerState,128)){b.videoData.ya&&g.U(b.W.experiments,"html5_log_rebuffer_events")&&kEa(b,"pfx");var f=b.getCurrentTime(),h=EK(b.oa),l=
g.V(b.playerState,8),m=QW(b.Gt,f),n=RW(b.Gt,f,(0,g.P)(),h);l&&m?b.Jb(JK(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.Ha("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.Z("html5_set_ended_in_pfx_live_cfl")||(b.oa.lp()?(b.ma(),b.seekTo(0,{ye:"videoplayer_loop"})):qT(b))):(g.OK(b.playerState)||bY(b,"progress_fix"),b.Jb(IK(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.Ru)/1E3,m=b.getDuration(),
f>m-1&&b.Ha("misspg","t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.V(b.playerState,4)&&g.OK(b.playerState)&&5<EK(b.oa)&&b.Jb(JK(b.playerState,1)));b.Rb()}};
0===this.oa.qp().length?this.Nn=d?g.ou(e,100):g.Us(e,100):this.Nn=d?g.ou(e,500):g.Us(e,500)}this.videoData.Eq=c;!a&&this.yc()&&hEa(this);wBa(this.rg,this.ke,this.qd(),this.isBackground())&&GX(this);xBa(this.rg,this.videoData.l)&&(this.Vb.ue("qoe.restart","droprate."+this.rg.J),this.W.B.J=!1,pW(this));this.X("progresssync",this,a)}};
g.k.rQ=function(){this.wf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.tu=function(){return this.Vb.tu()};
g.k.oC=function(){return this.Qa?this.Qa.oC():BF(this.W.schedule,!0)};
g.k.AP=function(){g.OK(this.playerState)&&uBa(this.rg,this.ke)&&GX(this)};
g.k.Jb=function(a){if(!g.LK(this.playerState,a)){this.ma();var b=new g.WI(a,this.playerState);this.playerState=a;lEa(this);var c=!this.Zy.length;this.Zy.push(b);var d=this.oa&&this.oa.Zs();g.YI(b,1)&&!g.V(b.Gn,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Qa&&(d=this.Qa,d.ma(),d.ya=!0,this.oa&&5<=EK(this.oa)&&((d=g.U(this.W.experiments,"html5_non_network_rebuffer_duration_ms"))?this.hK.start(d):uBa(this.rg,this.ke)&&GX(this)));(d=g.U(this.W.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.nB.start(d):this.nB.stop();(0>XI(b,8)||g.YI(b,1024))&&this.Hp.stop();!g.YI(b,8)||this.videoData.eb||g.V(b.state,1024)||this.Hp.start();g.V(b.state,8)&&0>XI(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&TH(this.videoData)&&(this.Bj(this.getCurrentTime()),this.Rb(!0));g.YI(b,2)&&this.yE(!0);g.YI(b,128)&&this.em();this.videoData.i&&this.videoData.isLivePlayback&&!this.wM&&(0>XI(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):
g.YI(b,8)&&this.videoData.i.resume());this.fc.Hc(b);this.Vb.Hc(b);if(c&&!this.isDisposed())try{for(var e=g.q(this.Zy),f=e.next();!f.done;f=e.next()){var h=f.value;this.Bh.Hc(h);this.X("statechange",h)}}finally{this.Zy.length=0}}};
g.k.ov=function(){this.videoData.isLivePlayback||this.X("connectionissue")};
g.k.RD=function(){this.Mb.tick("qoes")};
g.k.My=function(a,b,c,d){a:{var e=this.Pd;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.yd&&1<this.yd.l.keys.length&&96>e.L)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.Z("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.V&&(e.V++,aY(e.l),1<e.videoData.Zg.length&&(e.ma(),e.videoData.I=e.videoData.Zg[1]),nW(e,a,{detail:c})))break a;if(b)if(e.videoData.l&&e.videoData.l.ib().isHdr())iBa(e,a);else{if(e.l.wf(a,d,c),e.videoData.Z("html5_exile_on_drm_fatal")&&
bBa(e,{detail:c}))break a}else e.ue(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ha("retrydrm","s"),e.L++,jEa(e.l))}};
g.k.YS=function(){var a=this,b=g.U(this.W.experiments,"html5_license_constraint_delay"),c=It();b&&c?(b=new g.J(function(){PX(a);MX(a)},b),g.F(this,b),b.start()):(PX(this),MX(this))};
g.k.tv=function(a){this.X("heartbeatparams",a)};
g.k.Kn=function(a){this.Ha("keystatuses",NAa(a));var b="auto",c=!1;this.videoData.l&&(b=this.videoData.l.ib().quality,c=this.videoData.l.ib().isHdr());if(this.Z("html5_drm_check_all_key_error_states")){var d=OAa(b,c);d=VV(a)?WV(a,d):a.C.includes(d)}else{a:{b=OAa(b,c);for(d in a.i)if("output-restricted"===a.i[d].status){var e=a.i[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.ea&&d;c&&!b?iBa(this.Pd):d||WV(a,"AUDIO")&&WV(a,"SD")||(this.ma(),this.uE?(this.ma(),this.X("drmoutputrestricted")):
(this.uE=!0,this.Ha("retrydrm","o"),UX(this),jEa(this)))};
g.k.cT=function(){var a,b;if(!this.videoData.eb&&this.oa&&!this.isBackground()){var c="0";0<this.oa.rh()&&5<=EK(this.oa)&&this.videoData.u&&this.videoData.u.i&&(this.Jb(IK(this.playerState,1)),bY(this,"load_soft_timeout"),this.X("playbackstalledatstart"),c="1");lEa(this);if(this.Z("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Ol()&&(c.prerolls=this.Di.join(",")),this.Qa&&Object.assign(c,this.Qa.Eb()),this.oa&&Object.assign(c,this.oa.Eb());else{var d=this.videoData.u;c={restartmsg:c,
mfmt:BH(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Yd&&!this.yd?"1":"0",mfmtinfo:this.videoData.l?"0":"1",prerolls:this.Ol()?this.Di.join(","):"0"};if(this.yd){d=c;var e=this.yd;if(0>=e.l.values.length){var f="ns;";e.V||(f+="nr;");e=f+="ql."+e.u.length}else e=NAa(e.l.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.Qa)||void 0===a?void 0:a.Eb())||{});Object.assign(c,(null===(b=this.oa)||void 0===b?void 0:b.Eb())||{})}this.Vb.ue("qoe.start15s",g.wE(c));this.X("loadsofttimeout")}};
g.k.xU=function(){g.V(this.playerState,128)||this.mediaSource&&DE(this.mediaSource)||(this.Vb.ue("qoe.restart",g.wE({detail:"bufferattach"})),this.RL++,kW(this))};
g.k.Bj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,MX(this))};
g.k.yE=function(a){var b=this;a=void 0===a?!1:a;if(!this.Vq){RA("att_s","player_att")||SA("att_s","player_att");var c=new g.Vra(this.videoData);if("c1a"in c.i&&!bN.ge()&&(SA("att_wb","player_att"),2===this.At&&.01>Math.random()&&g.cy(Error("Botguard not available after 2 attempts")),!a&&5>this.At)){g.Fq(this.tB);this.At++;return}if("c1b"in c.i){var d=eCa(this.Vb);d&&g.Yra(c).then(function(e){e&&!b.Vq&&d?(SA("att_f","player_att"),d(e),b.Vq=!0):SA("att_e","player_att")},function(){SA("att_e","player_att")})}else(a=
Wra(c))?(SA("att_f","player_att"),dCa(this.Vb,a),this.Vq=!0):SA("att_e","player_att")}};
g.k.cd=function(a){return this.fc.cd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.fc.getMinSeekableTime()};
g.k.Qc=function(){return this.fc?this.fc.Qc():0};
g.k.getStreamTimeOffset=function(){return this.fc?this.fc.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.u&&this.videoData.u.videoInfos&&32<this.videoData.u.videoInfos[0].ib().fps&&g.vG(this.W);this.playbackRate!==a&&b&&(this.rg.setPlaybackRate(a),UX(this));this.playbackRate=a;this.oa&&this.oa.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.l&&(a=this.videoData.l.ib().quality,"auto"===a&&this.oa)){var b=VI(this);b&&0<b.videoHeight&&(a=UD(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.Hs=function(){this.Vb.Hs()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Vb;c.i?(c=JW(c.i,"engage"),c.L=a,c.send(b)):b&&b()};
g.k.Eh=function(a){return this.Vb.Eh(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.QC||(void 0===b?0:b))?this.fc.isAtLiveHead(a):!1};
g.k.Vm=function(){var a=this.cd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.fc,c=!(c.l&&c.l.u));return c||this.Pl()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.vj=ba(13);g.k.Jn=ba(32);g.k.In=ba(35);g.k.Du=function(){return this.oa?this.oa.zw():{}};
g.k.setLoop=function(a){this.loop=a;this.oa&&this.oa.setLoop(a)};
g.k.lp=function(){return this.oa?this.oa.lp():this.loop};
g.k.qR=function(a){var b=this.Z("html5_unrewrite_timestamps");this.Ha("timestamp","enabled."+b+";t."+a.toString())};
g.k.yf=function(a){this.Mb.tick(a)};
g.k.Ha=function(a,b,c){this.Vb.Ha(a,b,void 0===c?!1:c)};
g.k.ue=function(a,b){this.Vb.ue(a,g.wE(b))};
g.k.Hv=function(a,b,c){this.Vb.Hv(a,b,c)};
g.k.getPlayerSize=function(){return this.Uv.getPlayerSize()};
g.k.dg=function(){return this.Uv.dg()};
g.k.Hm=function(){this.Qa&&this.Qa.Hm()};
g.k.ma=function(){};
g.k.Z=function(a){return g.S(this.W.experiments,a)};
g.k.sB=function(){if(DH(this.videoData,"html5_set_debugging_opt_in")){var a=g.iv.getInstance();if(!g.kv(0,183)){var b="f"+(Math.floor(183/31)+1),c=jv(b)||0;c|=268435456;0==c?delete hv[b]:(c=c.toString(16),hv[b]=c.toString());a.save()}}};
g.k.AL=function(){if(g.MK(this.playerState)){var a=x2.sI();a&&this.Vb.Ha("profile",a)}this.fz.start()};
g.k.Vv=function(){var a,b=this.getCurrentTime();return(null===(a=this.Qa)||void 0===a?0:a.Vv(b,100))?(MCa(this.fc,b+100+5),!0):!1};g.v(g.cY,g.E);g.cY.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Pa(a),e=h3[d];if(e){try{e.dispose()}catch(h){g.by(h)}h3[d]=null}var f=new g.cY(a,b,c);g.hf(f,function(){h3[d]=null;f.Zc&&f.Zc()});
return h3[d]=f}catch(h){throw g.by(h),h.stack;}};
g.k=g.cY.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Jl=function(a){this.qb||(this.qb=g.ZM(a));return this.qb};
g.k.isVideoInfoVisible=function(){return!(!this.I||!this.I.vb)};
g.k.Ag=function(){if(this.oa){this.Aa&&(this.events.lc(this.Aa),this.Aa=null);g.xx(this.ea);this.l&&this.l.Ag(!0);this.template.Ag();if(!this.Z("html5_unset_src_on_remove_killswitch"))try{this.oa.nz()}catch(a){}this.oa=null}};
g.k.Cj=function(a){a=this.zC(a);jY(this,a)};
g.k.Gc=function(){return this.l};
g.k.Qn=function(a){if(a=g.X(this,a))this.ma("release presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId),a!==this.i?jY(this,this.i):EEa(this)};
g.k.zC=function(a){var b=g.X(this,a);b||(b=dY(this,a),hY(this,b));return b};
g.k.setIsExternalPlaylist=function(a){this.ag=GF(!1,a)};
g.k.gS=function(){eY(this)||(this.ma(),this.Pk(5))};
g.k.CT=function(a){eY(this)||(this.ma(),YEa(this),g.MK(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return hE(a)};
g.k.T=function(){return this.W};
g.k.getVideoData=function(){return this.l.getVideoData()};
g.k.Cu=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.X(this,a);return a?g.fI(a.getVideoData())?1:(a=a.qd())?a.kp():0:0};
g.k.bb=function(){return this.template};
g.k.sb=function(){return this.B};
g.k.hp=function(){return this.Mb};
g.k.eq=function(a){var b=g.X(this,1);b&&qT(b,a)};
g.k.Ve=function(){var a=this.B.FC();a.fs=this.Wa.isFullscreen();a.volume=Math.round(this.Wa.getVolume());a.muted=this.Wa.isMuted()?1:0;a.mos=a.muted;if(g.S(this.W.experiments,"html5_enable_embedded_player_visibility_signals")&&g.QF(this.W)){if(this.Ub){var b=this.Ub;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.EG();1<c&&b.push(c);a.size=b.join(":")}}this.l===this.i&&this.C&&
(a.clipid=this.C.postId);return a};
g.k.Ei=function(a){1===a&&(this.Mb.tick("vr"),this.Y||(this.Y=Dv(VA,this.sK,this)),gEa(this.l),ksa(this.Mb,this.l.getVideoData(),WEa(this)));var b=this.W;(OG(b)&&b.u||g.YF(b))&&(this.Ld()||this.Wa.Na("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.l===this.i&&this.l.lp()!==a&&(this.l.setLoop(a),this.Wa.X("loopchange",a))};
g.k.getLoopVideo=function(){return this.l.lp()};
g.k.setLoopRange=function(a){var b=!1;!!this.C!==!!a?b=!0:this.C&&a&&(b=this.C.startTimeMs!==a.startTimeMs||this.C.endTimeMs!==a.endTimeMs||this.C.postId!==a.postId);b&&(this.i.Bh.uf("applooprange"),a?(b=new g.Oz(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.i.addCueRange(b)):nY(this).clipConfig=void 0,this.C=a,this.Wa.Na("onLoopRangeChange",a),this.l===this.i&&(this.vz(),this.l.uq()))};
g.k.getLoopRange=function(){return this.C};
g.k.vz=function(){this.C&&this.l===this.i&&!LEa(this,this.i.getCurrentTime())&&(g.V(this.i.getPlayerState(),64)&&nY(this).isLivePlayback&&5E3>this.C.startTimeMs||this.i.seekTo(.001*this.C.startTimeMs,{ye:"application_loopRangeStart"}))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=xEa(this,a),this.i.getPlaybackRate()!==a&&(this.i.setPlaybackRate(a),b&&!this.W.l&&cKa(a),this.Wa.Na("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.qN(this.B).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.X(this):g.X(this,a);if(!a)return 0;if(b){if(c&&this.u&&(b=this.u.Ya/1E3,0!==b))return b;b=mY(this,a);return xY(this,b.getCurrentTime(),b)}c&&this.u?(b=a.getCurrentTime(),b=(c=zxa(this.u,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b};
g.k.Er=function(){var a=g.X(this,void 0);if(!a)return 0;a=mY(this,a);return xY(this,a.Er(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.X(this):g.X(this,a);if(!a)return 0;if(b)return b=lY(this,a),xY(this,b.getDuration(),b);c&&this.u?(b=a.getCurrentTime(),b=(b=xT(this.u,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.X(this,a);if(!a)return 0;a=lY(this,a);return xY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.X(this,a);return b?this.Ld(b)?(b=lY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.VB=function(){this.template.VB();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=ux(this.template.element))&&this.events.N(this.template,a,this.NS);this.events.N(window,"resize",this.eU)};
g.k.getDebugText=function(a){var b=this.i.Eb(a);if(this.l&&this.l!==this.i){for(var c=this.l.Eb(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=$f("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.dg("video-ads");f?(dFa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.dg("videoAdUiSkipContainer"),l=g.dg("ytp-ad-skip-button-container"),m=h||l;m?(dFa(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.oa&&(b["0sz"]=0===Vf(this.oa.Hq()),b.op=this.oa.getStyle("opacity"),c=this.oa.Xm().y+this.oa.Hq().height,b.yof=0>=c,b.dis=this.oa.getStyle("display"));(a=a?(0,g.BW)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Wa.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.ub().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.J?1:eY(this)?3:a&&(null===(b=this.u)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.X(this).getPlayerType()};
g.k.ub=function(a){return 3===this.getPresentingPlayerType()?g.qN(this.B).ld:g.X(this,a).getPlayerState()};
g.k.getAppState=function(){return this.J};
g.k.TD=function(a){switch(a.type){case "loadedmetadata":RA("fvb",this.Mb.timerName)||this.Mb.tick("fvb");SA("fvb","video_to_ad");this.La.start();break;case "loadstart":RA("gv",this.Mb.timerName)||this.Mb.tick("gv");SA("gv","video_to_ad");break;case "progress":case "timeupdate":!RA("l2s",this.Mb.timerName)&&2<=rE(a.target.Qf())&&this.Mb.tick("l2s");break;case "playing":g.MG&&this.La.start();if(g.vG(this.W))a=!1;else{var b=g.sN(this.sb());a="none"===this.oa.getStyle("display")||0===Vf(this.oa.Hq());
var c=$T(this.template),d=this.l.getVideoData(),e=g.ZF(this.W)||g.aG(this.W);d=CH(d);b=!c||b||e||d||this.W.Cb;a=a&&!b}a&&(this.l.Ha("hidden","1",!0),this.getVideoData().qb||(this.Z("html5_new_elem_on_hidden")?(this.getVideoData().qb=1,this.FK(null),this.l.playVideo()):iY(this,"hidden",!0)))}};
g.k.bT=function(a,b){this.Wa.Na("onLoadProgress",b)};
g.k.AU=function(){this.Wa.X("playbackstalledatstart")};
g.k.ZN=function(a,b){a=mY(this,a);b=xY(this,a.getCurrentTime(),a);this.Wa.Na("onVideoProgress",b)};
g.k.KS=function(){this.Wa.Na("onDompaused")};
g.k.OT=function(){this.Wa.X("progresssync")};
g.k.iS=function(a){if(1===this.getPresentingPlayerType()){g.YI(a,1)&&!g.V(a.state,64)&&nY(this).isLivePlayback&&this.i.isAtLiveHead()&&1<this.Wa.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.YI(a,2)&&FEa(this);if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Wa.Na("onError",xKa[b.errorCode]||5);this.Wa.Na("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.eC});
6048E5<(0,g.P)()-this.W.fb&&this.Wa.Na("onReloadRequired")}b={};if(a.state.yc()&&!g.OK(a.state)&&!RA("pbresume","ad_to_video")&&RA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);OA(b,"ad_to_video");NA("pbresume",void 0,"ad_to_video")}this.Wa.X("applicationplayerstatechange",a)}};
g.k.bL=function(a){3!==this.getPresentingPlayerType()&&this.Wa.X("presentingplayerstatechange",a)};
g.k.hh=function(a){kY(this,PK(a.state));g.V(a.state,1024)&&this.Wa.isMutedByMutedAutoplay()&&(iN(this,{muted:!1,volume:this.Xf.volume},!1),vY(this,!1))};
g.k.ET=function(a){a.state.yc()&&!g.OK(a.state)&&(Lsa(this.B),g.xx(this.Cb))};
g.k.eS=function(a,b,c){"newdata"===a&&zEa(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.TN=function(){this.Wa.Na("onPlaybackAudioChange",this.Wa.getAudioTrack().Nc.name)};
g.k.YN=function(a){var b=this.l.getVideoData();a===b&&this.Wa.Na("onPlaybackQualityChange",a.l.ib().quality)};
g.k.ob=function(a,b,c){this.ma("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.i&&(this.W.Ce=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.u?this.u=new g.tT(this.Wa,this.W,this.i):!this.getVideoData().enableServerStitchedDai&&this.u&&(this.u=null);if("newdata"===a)this.ma(),SN(this.B,2),this.Wa.X("videoplayerreset",b);else{if(!this.oa)return;if("dataloaded"===a)if(this.l===this.i)if(tG(c.B,c.IF),this.ma(),this.i.getPlayerState().isError())this.ma();
else{var d=eY(this);nY(this).isLoaded();d&&this.Pk(6);HEa(this);d||(d=TN(this.B))&&!d.created&&ON(this.B)&&d.create()}else HEa(this);1===b.getPlayerType()&&(this.W.Y&&cFa(this),this.getVideoData().isLivePlayback&&!this.W.rl&&this.Fe("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded()&&(c.bh||c.vF||c.Xp||c.L.focEnabled||c.L.rmktEnabled||this.getVideoData().dl)&&(d=this.getVideoData(),AY(this,"part2viewed",1,0x8000000000000),AY(this,"engagedview",Math.max(1,1E3*d.Bb),0x8000000000000),d.isLivePlayback||
(d=1E3*d.lengthSeconds,AY(this,"videoplaytime25",.25*d,d),AY(this,"videoplaytime50",.5*d,d),AY(this,"videoplaytime75",.75*d,d),AY(this,"videoplaytime100",d,0x8000000000000),AY(this,"conversionview",d,0x8000000000000))));this.Wa.X("videodatachange",a,c,b.getPlayerType())}this.Wa.Na("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.vz();if(b=c.Ov){if(a=this.vn,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=WK();var e=void 0===e?{}:e;Object.values(TJa).includes(c)||
(g.cy(new g.Pv("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.eI?dpa(b,c,e):cpa(b,c,e);dya(a)}}else dya(this.vn)};
g.k.Dw=function(){pY(this,null);this.Wa.Na("onPlaylistUpdate")};
g.k.kK=function(a){var b=a.getId(),c=nY(this);"part2viewed"===b?(c.AG&&g.Bu(c.AG),c.vF&&GY(this,c.vF),c.Xp&&HY(this,c.Xp)):"conversionview"===b?this.i.Hs():"engagedview"===b&&g.Bu(c.bh);if(c.BG){var d=a.getId();d=ns(c.BG,{label:d});g.Bu(d)}switch(b){case "videoplaytime25":c.LF&&GY(this,c.LF);c.xF&&HY(this,c.xF);c.IG&&g.Bu(c.IG);break;case "videoplaytime50":c.xG&&GY(this,c.xG);c.jA&&HY(this,c.jA);c.KG&&g.Bu(c.KG);break;case "videoplaytime75":c.zG&&GY(this,c.zG);c.kA&&HY(this,c.kA);c.MG&&g.Bu(c.MG);
break;case "videoplaytime100":c.KF&&GY(this,c.KF),c.wF&&HY(this,c.wF),c.GG&&g.Bu(c.GG)}(b=this.getVideoData().dl)&&REa(b,a.getId())&&REa(b,a.getId()+"gaia");this.i.removeCueRange(a)};
g.k.Pk=function(a){a!==this.J&&(this.ma(),2===a&&1===this.getPresentingPlayerType()&&(kY(this,-1),kY(this,5)),this.J=a,this.Wa.X("appstatechange",a))};
g.k.Fe=function(a,b,c,d){this.i.wf(a,b,c,d)};
g.k.Qk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.X(this,a);if(!c)return!1;a=lY(this,c);c=mY(this,c);return a!==c?a.isAtLiveHead(xY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Vm=function(){var a=g.X(this,void 0);return a?lY(this,a).Vm():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.X(this,d))2===this.J&&tY(this),this.Ld(d)?this.u?this.u.seekTo(a,b,c):this.le.seekTo(a,b,c):d.seekTo(a,{qM:!b,rM:c,ye:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.XN=function(){this.Wa.Na("SEEK_COMPLETE")};
g.k.pU=function(a,b){var c=a.getVideoData();if(1===this.J||2===this.J)c.startSeconds=b;2===this.J?this.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&g.V(a.getPlayerState(),512)||tY(this):this.Wa.Na("SEEK_TO",b)};
g.k.YR=function(){this.Wa.X("airplayactivechange")};
g.k.ZR=function(){this.Wa.X("airplayavailabilitychange")};
g.k.UN=function(){this.Wa.X("beginseeking")};
g.k.VN=function(){this.Wa.X("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.X(this,a))?lY(this,a).getVideoData().getStoryboardFormat():null};
g.k.Gh=function(a){return(a=g.X(this,a))?lY(this,a).getVideoData().Gh():null};
g.k.Ld=function(a){if(a=a||this.l){a=a.getVideoData();if(this.u)a=a===this.u.i.getVideoData();else a:{var b=this.le;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.Vc===c.value.Vc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.Tq=function(a,b,c,d,e,f){this.ma();a=this.u?wxa(this.u,a,b,c,d,e,f):Lxa(this.le,a,b,c,d,e);this.ma();return a};
g.k.Ku=function(a,b,c,d,e,f){this.u&&(wxa(this.u,a,b,c,d,e,f),this.ma());return""};
g.k.Op=function(a){var b;null===(b=this.u)||void 0===b?void 0:b.Op(a)};
g.k.Qo=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.u?g.S(this.W.experiments,"web_player_ssdai_prevent_clearing_timeline_killswitch")&&AT(this.u,a,b):LT(this.le,a,b)};
g.k.Gs=function(a,b,c){if(this.u){var d=this.u,e=c;c=null;for(var f=g.q(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Vc===a){c=h;break}c?(d.ma(),void 0===e&&(e=c.wd),a=c,d.ma(),a.durationMs=b,a.wd=e,g.S(d.W.experiments,"web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&Axa(d,c)):d.Ad("Invalid timelinePlaybackId="+a+" specified")}else{d=this.le;e=null;f=g.q(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Vc===a){e=h;break}e?(d.ma(),void 0===c&&(c=e.wd),Rxa(d,e,b,c)):d.Ad("e.InvalidTimelinePlaybackId timelinePlaybackId="+
a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Ld();a=new g.vH(this.W,a);d&&(a.Vc=d);!g.S(this.W.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.i&&this.i.hs(a.clientPlaybackNonce,a.Xd||"",a.breakType||0);SEa(this,a,b,c)};
g.k.fx=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.X(this);e&&(lY(this,e).wM=!0);mxa(this.ya,a,b,c).then(function(){d.Wa.Na("onQueuedVideoLoaded")},function(){})};
g.k.Lr=function(){return this.ya.Lr()};
g.k.clearQueue=function(){this.ma();this.ya.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f,h=!1;this.Z("html5_onesie_early_loadVideo")&&(b=b||1);var l=new g.vH(this.W,a),m=null!==(f=l.fb)&&void 0!==f?f:"";this.Mb.timerName=m;if(!this.Z("web_player_load_video_context_killswitch")&&e){for(;l.ri.length&&l.ri[0].isExpired();)l.ri.shift();h=l.ri.length-1;h=0<h&&e.l(l.ri[h])&&e.l(l.ri[h-1]);l.ri.push(e)}c||(a&&AN(a)?(DG(this.W)&&!this.ag&&(a.fetch=0),pY(this,a)):this.playlist&&pY(this,null),a&&this.setIsExternalPlaylist(a.external_list),DG(this.W)&&
!this.ag&&qY(this));a=this.An(l,b,d);h&&this.Fe("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.ri.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=LF(a);d=BY(b,d,e);this.Ia.get(d)?this.ma():this.l&&this.l.Aj.started&&d===BY(this.l.getPlayerType(),this.l.getVideoData().videoId,this.l.getVideoData().Vc)?this.ma():(a=new g.vH(this.W,a),e&&(a.Vc=e),TEa(this,a,b,c))};
g.k.Tw=function(a){var b=a.getPlayerType();a!==g.X(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.i.getVideoData().autonavState,AEa(this,a)):(b=g.X(this,b))&&b.dispose(),this.l.getPlayerType()===a.getPlayerType()?jY(this,a):hY(this,a))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.B;a=a.G.T().showMiniplayerUiWhenMinimized?a.ud.get("miniplayer"):void 0;a&&(this.Ne()?a.load():a.unload());this.Wa.X("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.B;a=a.G.T().showInlinePreviewUi?a.ud.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Wa.Na("onInlinePreviewModeChange"))};
g.k.ws=function(a){var b=g.S(this.W.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.W.Kh&&g.S(this.W.experiments,"html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.jb&&b?this.jb.start():this.GH():this.visibility.ws(a)};
g.k.GH=function(){var a,b=null===(a=this.oa)||void 0===a?void 0:a.Ge();b&&tx(b).catch(function(c){return g.cy(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.mU=function(){"picture-in-picture"===this.oa.Ge().webkitPresentationMode?this.ws(!0):this.ws(!1)};
g.k.togglePictureInPicture=function(){var a=g.X(this);a&&a.togglePictureInPicture()};
g.k.An=function(a,b,c){var d=this;this.ma();RA("_start",this.Mb.timerName)||(JA("p",void 0,this.Mb.timerName),this.Mb.info("srt",0));b=b||this.l.getPlayerType();var e=wY(this,b,a,!1);!e&&this.Z("html5_onesie_early_loadVideo")&&(e=dY(this,b),e.Ji(a,function(){return d.Ve()},c),this.Z("html5_onesie")&&KX(e)&&bT(e),this.La.stop(),this.cancelPlayback(4,b),1===b&&AEa(this,e),jY(this,e));
if(!e){e=g.X(this,b);if(!e)return!1;this.La.stop();this.cancelPlayback(4,b);e.Ji(a,function(){return d.Ve()},c)}e===this.i&&(this.W.Ce=a.oauthToken);
if(!KX(e))return!1;this.Za&&(this.Za=e.Pd.C=!1);if(e===this.i)return this.Pk(1),tY(this);QX(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&AN(a))if(this.va=!0,pY(this,a),(a=this.playlist.ib())&&a.isValid())DY(this,a,b);else this.playlist.onReady(function(){sY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Dw();var d=new g.vH(this.W,a);g.QF(this.W)&&!this.W.L&&g.S(this.W.experiments,"embeds_enable_iframe_apis_through_oneplatform")?zsa(d,a?a:{}).then(function(e){DY(c,e,b)}):DY(this,d,b)}};
g.k.Kj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(SF(this.W)||g.IG(this.W))return b=b||{},b.lact=zu(),b.vis=this.Wa.getVisibilityState(),this.Wa.Na("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.Mb;b.i&&(e=b.i,e.i={},e.Nt={});b.l=!1;this.Mb.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.va=!0;UEa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.va=!1;UEa(this,a,b,c,d)};
g.k.fu=function(){if(this.Wa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;DG(this.W)&&!this.ag&&qY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.gp=ba(1);
g.k.nextVideo=function(a,b){var c=this,d=this.i.getVideoData().suggestions;g.vN(this.Wa)&&d?(a=d.map(function(e){return g.ZP(c.W,e)})[0],d=b?a.ZB:a.Ud,this.Kj(a.ib().videoId,d,a.getPlaylistId(),b,void 0,a.wH||void 0)):this.ag?this.Wa.Na("onPlaylistNext"):3===this.getPresentingPlayerType()?g.qN(this.B).nextVideo():this.playlist&&(DG(this.W)&&!this.Wa.isFullscreen()?zY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&BN(this.playlist,lsa(this.playlist)),this.playlist.loaded?(a=b&&g.S(this.W.experiments,
"html5_player_autonav_logging"),this.An(this.playlist.ib(void 0,b,a),1)):this.va=!1))};
g.k.previousVideo=function(a){this.ag?this.Wa.Na("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.qN(this.B).bz():this.playlist&&(DG(this.W)&&!this.Wa.isFullscreen()?zY(this,"yt.www.watch.lists.prev"):(this.playlist.vk(a)&&BN(this.playlist,msa(this.playlist)),this.playlist.loaded?this.An(this.playlist.ib(),1):this.va=!1))};
g.k.playVideoAt=function(a){this.ag?this.Wa.Na("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.An(this.playlist.ib(a),1):this.va=!1,BN(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.yu=ba(11);g.k.cS=function(a){this.Wa.Na("onCueRangeEnter",a.getId())};
g.k.dS=function(a){this.Wa.Na("onCueRangeExit",a.getId())};
g.k.xt=function(a,b){var c=g.X(this,b);c&&(c.xt(a),b&&this.getPresentingPlayerType()!==b||gY(this,"cuerangesadded",a))};
g.k.lE=function(a,b){var c=g.X(this,b);c&&(c.lE(a),b&&this.getPresentingPlayerType()!==b||gY(this,"cuerangesremoved",a))};
g.k.hS=function(){var a=this;this.getPresentingPlayerType();this.Y||(this.Y=Dv(VA,this.sK,this));ksa(this.Mb,this.l.getVideoData(),WEa(this));oY(this)&&this.W.l&&"embedded"===$H(nY(this))&&this.wc&&.01>Math.random()&&g.Kv("autoplayTriggered",{intentional:this.ac});this.wc=!1;this.Wa.Na("onPlaybackStartExternal");g.S(this.W.experiments,"mweb_client_log_screen_associated");(function(){var c=g.Rx(a.Lc||(a.Ne()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.S(a.W.experiments,
"web_playback_associated_ve")&&a.getVideoData().La){var e=g.Lx(a.getVideoData().La);g.Ty(c,e,void 0);d.playbackVe=e.getAsJson()}g.S(a.W.experiments,"kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.Z("web_playback_associated_log_ctt")&&a.getVideoData().Ya&&(c.Ue={token:a.getVideoData().Ya,videoId:a.getVideoData().videoId});g.Kv("playbackAssociated",d,c)}})();
LA("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")&&(Wr("BG_I",b.interpreterScript),Wr("BG_IU",b.interpreterUrl),Wr("BG_P",b.program)),g.FG(this.W)?nu(qu(),function(){uY(a)}):uY(this))}this.vz()};
g.k.WN=function(){this.Wa.X("internalAbandon");this.Z("html5_ad_module_cleanup_killswitch")||yY(this)};
g.k.sK=function(a){a=a.i;!isNaN(a)&&0<a&&this.i&&this.i.Gv(a)};
g.k.lT=function(){var a=this.oa;a={volume:g.Nf(Math.floor(100*a.getVolume()),0,100),muted:a.zx()};a.muted||vY(this,!1);this.Xf=g.Vb(a);this.Wa.Na("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Wa.Na("onMutedAutoplayStarts"))};
g.k.NS=function(){var a=EY(this);this.Ii(a?1:0);$Ea(this,!!a)};
g.k.Ii=function(a){var b=!!a,c=!!this.visibility.fullscreen!==b;this.visibility.Ii(a);this.template.Ii(b);this.Z("html5_media_fullscreen")&&!b&&this.oa&&EY(this)===this.oa.Ge()&&this.oa.Vt();this.template.resize();c&&this.Mb.tick("fsc");c&&(this.Wa.X("fullscreentoggled",b),a=nY(this),b={fullscreen:b,videoId:a.WA||a.videoId,time:this.getCurrentTime()},this.Wa.getPlaylistId()&&(b.listId=this.Wa.getPlaylistId()),this.Wa.Na("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.eU=function(){this.l&&(0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||this.Ii(EY(this)?1:0),this.W.Kh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.oa&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.oa.Vt())};
g.k.aT=function(a){3!==this.getPresentingPlayerType()&&this.Wa.X("liveviewshift",a)};
g.k.playVideo=function(a){this.ma();if(a=g.X(this,a))2===this.J?tY(this):(null!=this.I&&this.I.vb&&this.I.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.X(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.ma();var a=this.i.getVideoData(),b=new g.vH(this.W,{video_id:a.WA||a.videoId,oauth_token:a.oauthToken});b.Lb=g.Vb(a.Lb);this.cancelPlayback(6);DY(this,b,1);null!=this.I&&this.I.stop()};
g.k.cancelPlayback=function(a,b){this.ma();Cv(this.Y);this.Y=0;var c=g.X(this,b);c?1===this.J||2===this.J?this.ma():(c===this.l&&(this.ma(),SN(this.B,a)),1===b&&(g.S(this.W.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),yY(this)),c.em(),gY(this,"cuerangesremoved",c.Um()),c.Bh.reset(),this.ya&&c.isGapless()&&(c.Ag(!0),c.setMediaElement(this.oa))):this.ma()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.X(this,b))&&this.W.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Eh=function(a){var b=g.X(this,void 0);return b&&this.W.enabledEngageTypes.has(a.toString())?b.Eh(a):null};
g.k.updatePlaylist=function(){DG(this.W)?qY(this):g.QF(this.W)&&rY(this);this.Wa.Na("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Pc=a;this.xb=b;this.Wa.X("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.xb};
g.k.Ne=function(){return this.visibility.Ne()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Kr=function(){return this.visibility.Kr()};
g.k.Ir=function(){return this.visibility.Ir()};
g.k.cD=function(){return this.Pc};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.qN(this.B).getAdState();if(!this.Ld()){var a=TN(this.sb());if(a)return a.getAdState()}return-1};
g.k.dU=function(a){var b=this.template.getVideoContentRect();sl(this.hc,b)||(this.hc=b,this.l&&PX(this.l),this.i&&this.i!==this.l&&PX(this.i),1===this.visibility.fullscreen&&this.Da&&$Ea(this,!0));this.Bb&&g.Uf(this.Bb,a)||(this.Wa.X("appresize",a),this.Bb=a)};
g.k.nf=function(){return this.Wa.nf()};
g.k.uU=function(){2===this.getPresentingPlayerType()&&this.le.isManifestless()&&!this.Z("web_player_manifestless_ad_signature_expiration_killswitch")?Qxa(this.le):(this.u&&AT(this.u),iY(this,"signature",void 0,!0))};
g.k.FK=function(){this.Ag();fY(this)};
g.k.cU=function(a){lT(a,this.oa.mp())};
g.k.tT=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Wa.Na("onPlayerRequestAuthFailed")};
g.k.ov=function(){this.Wa.Na("CONNECTION_ISSUE")};
g.k.tv=function(a){this.Wa.X("heartbeatparams",a)};
g.k.pz=function(a){this.Wa.Na("onAutonavChangeRequest",1!==a)};
g.k.qd=function(){return this.oa};
g.k.setBlackout=function(a){this.W.Cb=a;this.l&&(this.l.uq(),this.W.Y&&cFa(this))};
g.k.setAccountLinkState=function(a){var b=g.X(this);b&&(b.getVideoData().FG=a,b.uq())};
g.k.updateAccountLinkingConfig=function(a){var b=g.X(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Wa.X("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.vT=function(){var a=g.X(this);if(a){var b=!this.Wa.Pu();(a.QC=b)||a.Hp.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}g.S(a.W.experiments,"html5_suspend_loader")&&a.Qa&&(b?a.Qa.resume():VX(a,!0));g.S(a.W.experiments,"html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Jb(JK(a.playerState,512)):a.Jb(IK(a.playerState,512)));a=a.Vb;a.qoe&&(a=a.qoe,g.vW(a,g.pT(a.i),"stream",[b?"A":"I"]))}};
g.k.dT=function(){this.Wa.Na("onLoadedMetadata")};
g.k.LS=function(){this.Wa.Na("onDrmOutputRestricted")};
g.k.sB=function(){void 0!==navigator.mediaCapabilities&&(SE=!0);this.Z("html5_skip_empty_load")&&(rKa=!0);uKa=this.Z("html5_ios_force_seek_to_zero_on_stop");sKa=this.Z("html5_ios7_force_play_on_stall");tKa=this.Z("html5_ios4_seek_above_zero");this.Z("html5_mediastream_applies_timestamp_offset")&&(ZU=!0);this.Z("html5_dont_override_default_sample_desc_index")&&(iC=!0)};
g.k.nD=function(){this.ac=!0};
g.k.xa=function(){this.B.dispose();this.le.dispose();this.u&&this.u.dispose();this.i.dispose();this.Ag();g.gf(Lb(this.Tb),this.playlist);Cv(this.Y);this.Y=0;g.E.prototype.xa.call(this)};
g.k.ma=function(){};
g.k.Z=function(a){return g.S(this.W.experiments,a)};
g.k.Bz=function(){return this.Ra};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Lc=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=jN(this.sb()))||void 0===b?void 0:b.ju(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.bl;if(this.Z("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.uO&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;d.yL(f,e[a].title);FY(this,e[a].startTime/1E3)}};
g.k.downloadVideo=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return d.V&&d.Z("woffle_orchestration")?g.w(f,Uwa(d.V,[a]),2):f.return(Promise.reject());e=f.l;return f.return(e[0])})})};
g.k.refreshAllVideos=function(){return this.V&&this.Z("woffle_orchestration")?this.V.refreshAllVideos():Promise.reject()};
g.k.deleteVideos=function(a){return this.V&&this.Z("woffle_orchestration")?this.V.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.V&&this.Z("woffle_orchestration")?this.V.deleteAllVideos():Promise.reject()};
g.k.isOrchestrationLeader=function(){return this.V&&this.Z("woffle_orchestration")?this.V.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Wa,b=g.X(this),c=a.getVideoData(),d=a.qd(),e=d.Ge(),f=b.Du(),h=b.Gz,l=8*TT(h,"bandwidth")/1024,m=TT(h,"networkactivity")/1024,n=TT(h,"bufferhealth");if(b.yd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.yd.i.kf()+"/"+eB(b.Dr());p+="/"+b.yd.kf()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=nE(d.Qf(),",",3),x="";cna(c)&&(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+", "}x+="s:"+r+" t:"+t+" b:"+u+" ";d.Zs()&&(x+="S");d.ym()&&(x+="P");d.Bk()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.tu())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.dB;d&&d>r.start&&d<r.end&&(x+=" as");d=x;x=g.EG();r=g.tN(a).XQ;t=c.u&&!c.u.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var B="",G=0;10>G;G++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(G)),
4==G%5){for(var H="",I=0;6>I;I++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+H,y>>=5;B+=H}u=B.substr(0,4)+" "+B.substr(4,4)+" "+B.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,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=bna(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Yi.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.RX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,
1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=Vxa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+Vxa(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"+(KH(c)?" Manifestless":
"");else if(e){a=TT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=KH(c)?"Manifestless, ":"";c.Ui&&(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=ST(h,"bandwidth");l.network_activity_samples=ST(h,"networkactivity");l.live_latency_samples=ST(h,"livelatency");l.buffer_health_samples=ST(h,"bufferhealth");c.Z("woffle_orchestration")&&(b=g.fI(c),c.cotn||b)&&(l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b);
l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";DH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210629_1_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.C&&this.C.postId?(a=this.W.getVideoUrl(a),a=zi(a,"v"),a.replace("/watch","/clip/"+this.C.postId)):this.W.getVideoUrl(a,b,c,d,e)};
var h3={};g.Ga("yt.player.Application.create",g.cY.create,void 0);g.Ga("yt.player.Application.createAlternate",g.cY.create,void 0);Wx(Xx(),{Vl:[{Wu:/Unable to load player module/,weight:5},{Wu:/Failed to fetch/,weight:500},{Wu:/XHR API fetch failed/,weight:10},{Wu:/JSON parsing failed after XHR fetch/,weight:10},{Wu:/Retrying OnePlatform request/,weight:10}]});var PKa=g.Ha("ytcsi.tick");PKa&&PKa("pe");var QKa={V5:"replaceUrlMacros",L0:"isExternalShelfAllowedFor",U4:"onAboutThisAdPopupClosed"};IY.prototype.qk=function(){return"adLifecycleCommand"};
IY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Jg(function(){b.controller.Om()});
break;case "END_LINEAR_AD_PLACEMENT":g.Jg(function(){b.controller.lk()});
break;case "FILL_ABOVE_FEED_SLOT":g.Jg(function(){a.elementId&&b.controller.gx(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Jg(function(){b.controller.Uw()})}};
IY.prototype.Ml=function(a){this.handle(a)};JY.prototype.qk=function(){return"clearCueRangesCommand"};
JY.prototype.handle=function(){var a=this.QB();g.Jg(function(){a.Uf(Array.from(a.Go))})};
JY.prototype.Ml=function(a){this.handle(a)};KY.prototype.qk=function(){return"muteAdEndpoint"};
KY.prototype.handle=function(a){fFa(this,a)};
KY.prototype.Ml=function(a,b){fFa(this,a,b)};LY.prototype.qk=function(){return"openPopupAction"};
LY.prototype.handle=function(){};
LY.prototype.Ml=function(a){this.handle(a)};MY.prototype.qk=function(){return"pingingEndpoint"};
MY.prototype.handle=function(){};
MY.prototype.Ml=function(a){this.handle(a)};NY.prototype.qk=function(){return"urlEndpoint"};
NY.prototype.handle=function(a,b){b=g.zq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,
attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.nK(b,void 0,void 0,a)};
NY.prototype.Ml=function(){R("Trying to handle UrlEndpoint with no macro in controlflow")};OY.prototype.qk=function(){return"adPingingEndpoint"};
OY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ho.send(a,b,c)};
OY.prototype.Ml=function(a,b){XGa(this.Xa.get(),a,b,void 0)};PY.prototype.qk=function(){return"changeEngagementPanelVisibilityAction"};
PY.prototype.handle=function(a){this.G.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
PY.prototype.Ml=function(a){this.handle(a)};QY.prototype.qk=function(){return"loggingUrls"};
QY.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.Mh.send(d.baseUrl,b,c,d.headers)};
QY.prototype.Ml=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,XGa(this.Xa.get(),c.baseUrl,b,c.headers)};g.v(hFa,g.E);var tFa=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"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var CFa=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"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var lFa=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"]]),jFa=new Map([["normal",{ls:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{ls:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{ls:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{ls:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{ls:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{ls:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",As:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.v($Y,g.E);g.k=$Y.prototype;g.k.CC=function(a,b){return this.i.CC(a,b)};
g.k.Ci=function(a,b){VZ(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Jd),d=c.next();!d.done;d=c.next())d.value.Ci(a,b)};
g.k.Ff=function(a){if(dZ(this.i,a)){rK(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.Ff(a);for(var b=g.q(this.Jd),c=b.next();!c.done;c=b.next())c.value.Ff(a);qFa(this,a)}};
g.k.Gf=function(a){if(dZ(this.i,a)){rK(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.Gf(a);for(var b=g.q(this.Jd),c=b.next();!c.done;c=b.next())c.value.Gf(a);dZ(this.i,a)&&eZ(this.i,a).C&&bZ(this,a,!1)}};
g.k.Qy=function(a){rK(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);dZ(this.i,a)&&(this.i.Qy(a),bZ(this,a,!1))};
g.k.Kc=function(a,b){if(dZ(this.i,a)){fZ(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Jd),d=c.next();!d.done;d=c.next())d.value.Kc(a,b)}};
g.k.Uc=function(a,b,c){if(dZ(this.i,a)){fZ(this.dc,kFa(c),a,b);this.i.Uc(a,b);for(var d=g.q(this.Jd),e=d.next();!e.done;e=d.next())e.value.Uc(a,b,c);(c=rZ(this.i,a))&&b.layoutId===c.layoutId&&zFa(this,a,!1)}};
g.k.tf=function(a,b,c){R(c,a,b,void 0,c.Io);bZ(this,a,!0)};
g.k.xa=function(){var a=BFa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())bZ(this,b.value,!1);g.E.prototype.xa.call(this)};AFa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(gZ,Va);g.v(oZ,Va);g.v(uZ,g.E);g.k=uZ.prototype;g.k.CC=function(a,b){b=qZ(this,a+"_"+b);a=[];b=g.q(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Lh=function(a){a=eZ(this,a);"not_scheduled"!==a.i&&sZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.Yt=function(a){a=eZ(this,a);a.B="fill_requested";a.J.Yt()};
g.k.Ff=function(a){a=eZ(this,a);"enter_requested"!==a.i&&sZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.Qy=function(a){eZ(this,a).B="fill_canceled"};
g.k.Gf=function(a){a=eZ(this,a);"exit_requested"!==a.i&&sZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Uc=function(a,b){a=eZ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&sZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(xZ,g.E);xZ.prototype.u=function(){return this.l};g.v(yZ,g.E);yZ.prototype.get=function(){this.isDisposed()&&R("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.l());return this.i};g.v(UZ,g.E);g.v(XZ,g.E);XZ.prototype.Cd=function(){};
XZ.prototype.sf=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.l.get().removeCueRange(a),tz(this.u.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.B.get();d=QZ(d.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Wb:c.Wb?LGa(c.slotId,d,c.Wb):void 0,Ac:MGa(c.slotId,d,c.Ac),zc:MGa(c.slotId,d,c.zc)})]},c.slotId))};
XZ.prototype.Bi=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.l.get().removeCueRange(b);this.i.clear()};
XZ.prototype.Dk=function(){};g.v(YZ,g.E);g.k=YZ.prototype;g.k.Lh=function(){};
g.k.zj=function(){};
g.k.Ff=function(){};
g.k.yj=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.Fk=function(a,b){this.Ni.has(a)&&this.Ni.get(a)===b&&R("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)):R("Trying to unscheduled a Layout that was not scheduled.",a,b)}else R("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Kc=function(a,b){this.Ni.set(a,b)};
g.k.Uc=function(a){this.Ni.delete(a)};
g.k.Ci=function(){};k_.prototype.clone=function(a){var b=this;return new k_(function(){return b.triggerId},a)};l_.prototype.clone=function(a){var b=this;return new l_(function(){return b.triggerId},a)};m_.prototype.clone=function(a){var b=this;return new m_(function(){return b.triggerId},a)};n_.prototype.clone=function(a){var b=this;return new n_(function(){return b.triggerId},a)};o_.prototype.clone=function(a){var b=this;return new o_(function(){return b.triggerId},a)};g.v(r_,g.E);r_.prototype.logEvent=function(a){VZ(this,a)};g.v(t_,g.E);g.k=t_.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.Bi=function(a,b,c,d,e,f,h){var l;if(""===a)R("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!g.S(this.G.T().experiments,"html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Fa.get().Bi(a,b,c,d,e,f,h);null===(l=this.l)||void 0===l?void 0:l.get().Bi(a,b,c,d,e,f,h);this.u.Bi(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.Bi(a,b,c,d,e,f,h)}};
g.k.bO=function(){this.i&&this.Dk(this.i)};
g.k.Dk=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dk(a)};g.v(u_,g.E);u_.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)?R("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new RGa(a,b,c,d,f),this.i.set(a.id,{Zd:a,listener:e,Jj:h}),this.G.Id([a],h))};
u_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.G.Uf([b.Zd],b.Jj),this.i.delete(a)):R("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
u_.prototype.Cd=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.Cd(a.id)};
u_.prototype.sf=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.sf(a.id)};
g.v(RGa,g.Oz);v_.prototype.Ei=function(a){this.G.Ei(a)};
v_.prototype.Na=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.G.Na.apply(this.G,[a].concat(g.la(c)))};A_.prototype.Se=function(a,b){if(!this.i.has(a))return{};if("seek"===b){var c=g.S(this.G.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");wq(a,c);return{}}c=Dna(b);if(null===c)return{};if(g.S(this.G.T().experiments,"enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return R("Unexpected call to Lidar API when the player is not playing ads",void 0,void 0,{layoutId:a,trackingType:b}),{};b=(b=this.G.Gc())&&(g.S(this.G.T().experiments,"enable_server_stitched_dai")||
2===b.getPlayerType())&&VI(b);if(!b)return{};b={opt_adElement:b,opt_fullscreen:this.Fa.get().isFullscreen()};return vq(c,a,b)};
A_.prototype.Jy=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Jy()};
A_.prototype.Iy=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Iy()};
A_.prototype.Ky=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Ky()};g.v(C_,II);C_.prototype.lf=function(){return this.l()};
C_.prototype.i=function(){return this.u()};D_.prototype.Eh=function(){var a=this.G.Gc();return a&&(a=a.Eh(1))?a:null};g.v(I_,g.E);g.k=I_.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.UU=function(a,b,c){y_(this.Sa.get())&&"dataloaded"!==a||(g.S(this.G.T().experiments,"html5_server_stitched_dai_group")&&R("VIDEO_DATA_CHANGE event received",void 0,void 0,{playerType:c,cpn:this.G.getVideoData(1).clientPlaybackNonce,experimentId:g.U(this.G.T().experiments,"html5_experiment_id_label_live_infra")}),cHa(this,b,c))};
g.k.qU=function(a){var b=this.G.getPresentingPlayerType(!0),c=this.G.getVideoData(b);c?(R("SS_VIDEO_CHANGE event received",void 0,void 0,{playerType:b,timelinePlaybackId:a,cpn:this.G.getVideoData(1).clientPlaybackNonce,experimentId:g.U(this.G.T().experiments,"html5_experiment_id_label_live_infra")}),cHa(this,c,b)):R("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.Vo=null;g.E.prototype.xa.call(this)};g.v(J_,g.E);g.k=J_.prototype;g.k.Bi=function(){var a=this;this.Yo=cb(function(){a.G.isDisposed()||a.G.Ed("ad",1)})};
g.k.Dk=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.resumeVideo=function(a){this.Ql(a)&&this.G.playVideo()};
g.k.Ql=function(a){return 2===this.G.getPlayerState(a)};
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.PT=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.zi(a)};
g.k.FT=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Gk(a,this.getPresentingPlayerType())};
g.k.Ye=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ye(a)};
g.k.Hf=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.Hf()};
g.k.pg=function(){for(var a=this.G.Ne(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.pg(a)};
g.k.tb=function(){for(var a=this.G.bb().dg(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.tj(a)};g.v(fHa,g.E);K_.prototype.executeCommand=function(a,b){rL(this.i(),a,b)};
K_.prototype.pd=function(a,b){$pa(this.i(),a,b)};M_.prototype.Yt=function(){var a=this;iHa(this.i,function(){var b=TY(a.slot.Ja,"metadata_type_ad_break_request_data");return a.l.get().fetch({DM:b.getAdBreakUrl,cI:new g.Oz(b.uL,b.tL),Ot:TY(a.slot.Ja,"metadata_type_cue_point")})},function(b){var c;
b=b.wl;2<=b.length&&R("Unexpected ad placement renderers length",a.slot,null,{length:b.length});var d=TY(a.slot.Ja,"metadata_type_cue_point");b.some(function(e){var f,h,l,m;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||!l.length)||DGa(a.Sa.get())&&!(null===(m=e.renderer)||void 0===m||!m.instreamVideoAdRenderer)})||(null===(c=a.u)||void 0===c?void 0:c.get().Op(d.identifier))})};
M_.prototype.CB=function(){jHa(this.i)};N_.prototype.Yt=function(){var a=this;iHa(this.i,function(){var b=TY(a.slot.Ja,"metadata_type_ad_break_request_data");return a.l.get().fetch({DM:b.getAdBreakUrl,cI:new g.Oz(b.uL,b.tL)})})};
N_.prototype.CB=function(){jHa(this.i)};O_.prototype.Yt=function(){rFa(this.callback,this.slot,TY(this.slot.Ja,"metadata_type_fulfilled_layout"))};
O_.prototype.CB=function(){cZ(this.callback,this.slot,new oZ("Got CancelSlotFulfilling request for "+this.slot.rb+" in DirectFulfillmentAdapter."))};Q_.prototype.Te=function(a,b){return P_(b,{me:["metadata_type_fulfilled_layout"]})?new O_(a,b):this.B(a,b)};g.v(R_,Q_);R_.prototype.B=function(a,b){if(P_(b,{me:["metadata_type_ad_break_request_data","metadata_type_cue_point"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new M_(a,b,this.i,this.Sa,this.u,this.l,this.C);if(P_(b,{me:["metadata_type_ad_break_request_data"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new N_(a,b,this.i,this.u,this.l);throw new oZ("Unsupported slot with type: "+b.rb+" and client metadata: "+UY(b.Ja)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(S_,Q_);S_.prototype.B=function(a,b){throw new oZ("Unsupported slot with type: "+b.rb+" and client metadata: "+UY(b.Ja)+" in DefaultFulfillmentAdapterFactory.");};g.k=kHa.prototype;g.k.rd=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.tf(this.slot,a,new gZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=TY(a.Ja,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.rb?(this.callback.Kc(this.slot,a),Kia(this.i,this.slot,b)):R("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.cf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.tf(this.slot,a,new gZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Uc(this.slot,a,b)};U_.prototype.Te=function(a,b,c,d){if(T_(d,{me:["metadata_type_ad_break_response_data"],Ef:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new kHa(a,c,d,this.i);throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};V_.prototype.Se=function(a){var b=this.B.get(a)||[];YGa(this.Xa.get(),this.layoutId,a,b);this.i.add(a)};g.k=mHa.prototype;g.k.rd=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.tf(this.slot,a,new gZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Kc(this.slot,a),Y_(this.l,"impression"),l0(this.i,a.layoutId))};
g.k.cf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.tf(this.slot,a,new gZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Uc(this.slot,a,b)};Z_.prototype.Te=function(a,b,c,d){if(T_(d,nHa()))return new mHa(a,c,d,this.Xa,this.i);throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v($_,g.Q);g.k=$_.prototype;g.k.rd=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.NC=function(){};
g.k.LC=function(){};
g.k.KC=function(){};
g.k.Jx=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.tf(this.slot,a,new gZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.l.get(),MHa(a,this.i,1))};
g.k.cf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.tf(this.slot,a,new gZ("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();MHa(c,this.i,3);this.i=[];this.callback.Uc(this.slot,a,b)}};
g.k.xa=function(){this.l.get().removeListener(this);g.Q.prototype.xa.call(this)};g.v(oHa,nI);g.v(c0,$_);g.k=c0.prototype;g.k.Cf=function(a,b){b0("action-companion",a,this.I.get().Ni,this.Xa.get(),this.u,this.B,this.rd(),this.Nb(),b)};
g.k.startRendering=function(a){a0(this.C,this.rd(),this.Nb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new oHa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?Y_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().Eh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Uc=function(){};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.xa=function(){this.Ie().Jd.delete(this);$_.prototype.xa.call(this)};g.v(d0,$_);d0.prototype.init=function(){$_.prototype.init.call(this);var a=TY(this.layout.Ja,"metadata_type_ad_action_interstitial_renderer"),b=X_(this.u);this.i.push(new bJ(a,b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0))};
d0.prototype.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
d0.prototype.Cf=function(){};
d0.prototype.xa=function(){$_.prototype.xa.call(this)};g.v(e0,$_);g.k=e0.prototype;g.k.init=function(){$_.prototype.init.call(this);var a=TY(this.layout.Ja,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Dc},c=!TY(this.layout.Ja,"metadata_type_player_bytes_callback").Ux;this.i.push(new oK(a,this.layout.layoutId,TY(this.layout.Ja,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Xl=function(){this.u||this.Fa.get().resumeVideo(2)};
g.k.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Hd.Do=this};
g.k.cf=function(a,b){$_.prototype.cf.call(this,a,b);P1(this.Hd,this)};
g.k.Cf=function(a){if(EGa(this.B.get(),this.C))switch(a){case "visit-advertiser":this.Xa.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||this.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":(this.u=this.Fa.get().Ql(2))||this.Fa.get().pauseVideo();break;case "visit-advertiser":this.Fa.get().pauseVideo();TY(this.layout.Ja,"metadata_type_player_bytes_callback").mE();
break;case "skip-button":a=TY(this.layout.Ja,"metadata_type_player_bytes_callback"),a.Ux&&a.xv(this.rd(),this.layout)}};
g.k.xa=function(){$_.prototype.xa.call(this)};g0.prototype.Te=function(a,b,c,d){if(a=f0(a,c,d,this.i,this.Fa,this.Xa,this.l,this.Hd))return a;throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(h0,g.E);g.k=h0.prototype;g.k.init=function(){var a=TY(this.Nb().Ja,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.xp()};
g.k.release=function(){var a=TY(this.Nb().Ja,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Yp()};
g.k.startRendering=function(a){a.layoutId!==this.Nb().layoutId?this.callback.tf(this.rd(),a,new gZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Nb().layoutId+("and LayoutType: "+this.Nb().layoutType))):(this.Fa.get().addListener(this),aZ(this.Ie(),this),this.Fa.get().G.Cj(2),Goa(this.od.get()),this.lq(a))};
g.k.cf=function(a,b){this.VC=!0;this.mq(a,b);this.Fa.get().G.Qn(2);this.xd.get().G.cueVideoByPlayerVars({},2);a=B_(this.Fa.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.VC&&this.QJ();TGa(this.Sa.get())||this.Ie().Jd.delete(this)};
g.k.Uc=function(a,b){b.layoutId===this.Nb().layoutId&&(this.VC=!1,TGa(this.Sa.get())&&this.Ie().Jd.delete(this))};
g.k.Gk=function(a,b){var c,d;if(a.state.isError()){if(g.S(this.Sa.get().G.T().experiments,"html5_ignore_organic_playback_error_when_ads_presenting")&&(R("Presenting player state error caught in PlayerBytes layout.",this.rd(),this.Nb(),{playerType:String(b)}),1===b))return;this.tf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new gZ("There was a player error during this media layout.",{playerErrorCode:null===(d=a.state.getData())||void 0===d?void 0:d.errorCode}),b)}else this.NK(a)};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};g.v(i0,h0);g.k=i0.prototype;g.k.rd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.xp=function(){if(1>=this.l.length)throw new oZ("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(),kZ(this.B,this.slot,b.Nb())};
g.k.Yp=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()};
g.k.Sp=function(a,b){var c=this.l[this.i];b.layoutId!==j0(c,a,b)?R("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Sp()};
g.k.bq=function(a,b){var c=this.l[this.i];b.layoutId!==j0(c,a,b)?R("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.bq()};
g.k.xv=function(a,b){var c=this.l[this.i];b.layoutId!==j0(c,a,b)?R("onSkipRequested for a PlayerBytes layout that is not currently active",c.rd(),c.Nb(),{requestingSlot:a,requestingLayout:b}):k0(this,c.rd(),c.Nb(),"skipped")};
g.k.lq=function(){-1===this.i&&sHa(this)};
g.k.CU=function(a,b){lZ(this.B,a,b)};
g.k.mq=function(a,b){var c=this;this.i!==this.l.length?(a=this.l[this.i],a.cf(a.Nb(),b),this.C=function(){c.callback.Uc(c.slot,c.layout,b)}):this.callback.Uc(this.slot,this.layout,b)};
g.k.Kc=function(a,b){var c=this.l[this.i];c&&c.Kc(a,b)};
g.k.Uc=function(a,b,c){h0.prototype.Uc.call(this,a,b,c);var d=this.l[this.i];d&&d.Uc(a,b,c)};
g.k.QJ=function(){var a=this.l[this.i];a&&a.Ix()};
g.k.zi=function(a){var b=this.l[this.i];b&&b.zi(a)};
g.k.NK=function(a){var b=this.l[this.i];b&&b.Gk(a)};
g.k.tf=function(a,b){-1===this.i&&(this.callback.Kc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.bv(a,b):R("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Nb().layoutId})};
g.k.Ye=function(a){var b=this.l[this.i];b&&b.Ye(a)};
g.k.pg=function(a){var b=this.l[this.i];b&&b.pg(a)};
g.k.tj=function(a){var b=this.l[this.i];b&&b.tj(a)};
g.k.Hf=function(){var a=this.l[this.i];a&&a.Hf()};
g.k.EU=function(a,b,c){k0(this,a,b,c)};
g.k.DU=function(a,b){k0(this,a,b,"error")};g.v(p0,g.E);g.k=p0.prototype;g.k.rd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){var a=TY(this.layout.Ja,"metadata_type_video_length_seconds");UGa(this.ea.get(),this.layout.layoutId,a,this);G_(this.Xa.get(),this);this.xp()};
g.k.release=function(){VGa(this.ea.get(),this.layout.layoutId);H_(this.Xa.get(),this);this.Yp()};
g.k.Sp=function(){};
g.k.bq=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.tf(this.slot,a,new gZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",gna(this.Da.get(),1)?(this.Ht(!1),this.C(-1),this.lq(a)):this.bv("ui_unstable",new gZ("Failed to render media layout because ad ui unstable.")))};
g.k.Kc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.l="rendering",Y_(this.i,"impression"),Y_(this.i,"start"),this.Fa.get().isMuted()&&(this.i.Se("mute"),a=(null===(c=o0(this))||void 0===c?void 0:c.muteCommands)||[],this.u.get().pd(a,this.layout.layoutId)),this.Fa.get().isFullscreen()&&(this.i.Se("fullscreen"),a=(null===(d=o0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.u.get().pd(a,this.layout.layoutId)),Joa(this.od.get()),this.C(1),this.AK(),a=(null===(e=o0(this))||
void 0===e?void 0:e.impressionCommands)||[],this.u.get().pd(a,this.layout.layoutId))};
g.k.bv=function(a,b,c){this.Aa={Zz:3,lw:"load_timeout"===a?402:400,errorMessage:b.message};var d;TY(this.layout.Ja,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&R("There is a player error in this survey ads",this.rd(),this.Nb(),{playerType:String(c)});Y_(this.i,"error");a=(null===(d=o0(this))||void 0===d?void 0:d.errorCommands)||[];this.u.get().pd(a,this.layout.layoutId);this.callback.tf(this.slot,this.layout,b)};
g.k.Ix=function(){this.V()};
g.k.TI=function(){var a;if("rendering"===this.l){this.i.Se("pause");var b=(null===(a=o0(this))||void 0===a?void 0:a.pauseCommands)||[];this.u.get().pd(b,this.layout.layoutId);this.C(2)}};
g.k.UI=function(){var a;if("rendering"===this.l){this.i.Se("resume");var b=(null===(a=o0(this))||void 0===a?void 0:a.resumeCommands)||[];this.u.get().pd(b,this.layout.layoutId)}};
g.k.cf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.tf(this.slot,a,new gZ("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.mq(a,b))};
g.k.Uc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.l="not_rendering",this.J=void 0,Ioa(this.od.get()),this.Ht(!0),this.BK(c),this.C(0),c){case "abandoned":var d;if(this.i.i.has("impression")){Y_(this.i,"abandon");var e=(null===(d=o0(this))||void 0===d?void 0:d.abandonCommands)||[];this.u.get().pd(e,this.layout.layoutId)}break;case "normal":Y_(this.i,"complete");d=(null===(e=o0(this))||void 0===e?void 0:e.completeCommands)||[];this.u.get().pd(d,this.layout.layoutId);break;case "skipped":var f;
Y_(this.i,"skip");d=(null===(f=o0(this))||void 0===f?void 0:f.skipCommands)||[];this.u.get().pd(d,this.layout.layoutId)}};
g.k.uu=function(){return this.layout.layoutId};
g.k.mC=function(){return this.Aa};
g.k.Gk=function(a){if("not_rendering"!==this.l){this.ya||(a=new g.WI(a.state,new g.GK),this.ya=!0);var b=2===this.Fa.get().getPresentingPlayerType();"rendering_start_requested"===this.l?b&&m0(a)&&this.va():b?g.YI(a,2)?this.hG():(m0(a)?this.C(1):g.YI(a,4)&&!g.YI(a,2)&&this.TI(),0>XI(a,4)&&!(0>XI(a,2))&&this.UI()):this.Ix()}};
g.k.Jy=function(){var a;if("rendering"===this.l){Y_(this.i,"active_view_measurable");var b=(null===(a=o0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.u.get().pd(b,this.layout.layoutId)}};
g.k.Iy=function(){var a;if("rendering"===this.l){Y_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=o0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.u.get().pd(b,this.layout.layoutId)}};
g.k.Ky=function(){var a;if("rendering"===this.l){Y_(this.i,"active_view_viewable");var b=(null===(a=o0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.u.get().pd(b,this.layout.layoutId)}};
g.k.Ht=function(a){this.od.get().Ht(TY(this.layout.Ja,"metadata_type_ad_placement_config").kind,a,this.position,this.Ra,!1)};
g.k.Ye=function(a){var b,c;"rendering"===this.l&&(a?(this.i.Se("fullscreen"),a=(null===(b=o0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.u.get().pd(a,this.layout.layoutId)):(this.i.Se("end_fullscreen"),a=(null===(c=o0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.u.get().pd(a,this.layout.layoutId)))};
g.k.Hf=function(){var a,b;if("rendering"===this.l)if(this.Fa.get().isMuted()){this.i.Se("mute");var c=(null===(a=o0(this))||void 0===a?void 0:a.muteCommands)||[];this.u.get().pd(c,this.layout.layoutId)}else this.i.Se("unmute"),c=(null===(b=o0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.u.get().pd(c,this.layout.layoutId)};
g.k.pg=function(){};
g.k.tj=function(){};g.v(r0,p0);g.k=r0.prototype;g.k.xp=function(){};
g.k.Yp=function(){var a=this.Xa.get();a.Hz===this&&(a.Hz=null)};
g.k.lq=function(){this.Xa.get().Hz=this;this.va()};
g.k.AK=function(){xHa(this)};
g.k.hG=function(){};
g.k.Sp=function(){this.B.stop();p0.prototype.TI.call(this)};
g.k.bq=function(){xHa(this);p0.prototype.UI.call(this)};
g.k.Cr=function(){return TY(this.Nb().Ja,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.mq=function(){this.B.stop()};
g.k.Rb=function(){var a=Date.now(),b=a-this.I;this.I=a;this.Uj+=b;this.Uj>=this.Cr()?("LAYOUT_TYPE_SURVEY"===TY(this.Nb().Ja,"metadata_type_linked_in_player_layout_type")&&500<b&&R("Survey MediaBreak completed with an elapsedTimeMs greater than TimerUpdateInterval",this.rd(),this.Nb(),{elapsedTimeMs:b}),this.Uj=this.Cr(),q0(this,this.Uj/1E3,!0),s0(this,this.Uj),this.V()):(q0(this,this.Uj/1E3),s0(this,this.Uj))};
g.k.BK=function(){};
g.k.zi=function(){};g.v(t0,p0);g.k=t0.prototype;g.k.xp=function(){TY(this.Nb().Ja,"metadata_type_player_bytes_callback_ref").current=this};
g.k.Yp=function(){TY(this.Nb().Ja,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.L.get().removeCueRange(this.B);this.B=void 0;this.I.dispose()};
g.k.lq=function(a){var b=TY(a.Ja,"metadata_type_ad_video_id"),c=TY(a.Ja,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ia.get().G.T().V.add(b,{Jt:c});(b=TY(a.Ja,"metadata_type_sodar_extension_data"))&&gHa(this.Ga.get(),b);eHa(this.Fa.get(),!1);b=this.xd.get();a=TY(a.Ja,"metadata_type_player_vars");b.G.cueVideoByPlayerVars(a,2);this.I.start();this.xd.get().G.playVideo(2)};
g.k.AK=function(){var a;this.I.stop();this.B="adcompletioncuerange:"+this.Nb().layoutId;this.L.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=vz(this.Y.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||R("Media layout confirmed started, but ad CPN not set.");this.Fc.get().Na("onAdStart",this.adCpn)};
g.k.hG=function(){this.V()};
g.k.Cr=function(){var a;return null===(a=vz(this.Y.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.mE=function(){this.i.Se("clickthrough")};
g.k.mq=function(){this.I.stop();eHa(this.Fa.get(),!0)};
g.k.Cd=function(a){a!==this.B?R("Received CueRangeEnter signal for unknown layout.",this.rd(),this.Nb(),{cueRangeId:a}):(this.L.get().removeCueRange(this.B),this.B=void 0,a=TY(this.Nb().Ja,"metadata_type_video_length_seconds"),q0(this,a,!0),Y_(this.i,"complete"))};
g.k.BK=function(a){"abandoned"!==a&&this.Fc.get().Na("onAdComplete");this.Fc.get().Na("onAdEnd",this.adCpn)};
g.k.sf=function(){};
g.k.zi=function(a){"rendering"===this.l&&q0(this,a)};g.v(u0,h0);g.k=u0.prototype;g.k.rd=function(){return this.i.rd()};
g.k.Nb=function(){return this.i.Nb()};
g.k.xp=function(){this.i.init()};
g.k.Yp=function(){this.i.release()};
g.k.Sp=function(){this.i.Sp()};
g.k.bq=function(){this.i.bq()};
g.k.xv=function(a,b){R("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.rd(),this.Nb(),{requestingSlot:a,requestingLayout:b})};
g.k.lq=function(a){this.i.startRendering(a)};
g.k.mq=function(a,b){this.i.cf(a,b)};
g.k.Kc=function(a,b){this.i.Kc(a,b)};
g.k.Uc=function(a,b,c){h0.prototype.Uc.call(this,a,b,c);this.i.Uc(a,b,c)};
g.k.QJ=function(){this.i.Ix()};
g.k.zi=function(a){this.i.zi(a)};
g.k.NK=function(a){this.i.Gk(a)};
g.k.tf=function(a,b,c){this.i.bv(a,b,c)};
g.k.Ye=function(a){this.i.Ye(a)};
g.k.pg=function(a){this.i.pg(a)};
g.k.tj=function(a){this.i.tj(a)};
g.k.Hf=function(){this.i.Hf()};v0.prototype.Te=function(a,b,c,d){if(a=AHa(a,b,c,d,this.Ie,this.I,this.Xa,this.C,this.L,this.xd,this.J,this.Fa,this.u,this.od,this.Fc,this.i,this.l,this.B,this.Sa))return a;throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(w0,g.E);g.k=w0.prototype;g.k.Kc=function(a,b){var c=this;if(BHa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&RY(b,this.J)){var d=vz(this.i.get(),2),e=this.C(b,d);e?tz(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[OGa(c.B.get(),e.contentCpn,e.Oz,function(f){return c.I(f.slotId,"core",e,YY(c.l.get(),f))},e.fJ)]}):R("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.Ff=function(){};
g.k.yj=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.Uc=function(){};var p1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=FHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.cC=function(){this.callback.Ff(this.slot)};
g.k.hC=function(){this.callback.Gf(this.slot)};
g.k.release=function(){};y0.prototype.Te=function(a,b){return new FHa(a,b)};g.k=GHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.cC=function(){var a=this.Fa.get();g.K(a.G.getRootNode(),"ad-showing");this.callback.Ff(this.slot)};
g.k.hC=function(){this.callback.Gf(this.slot);var a=this.Fa.get();g.Nq(a.G.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=HHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.cC=function(){var a=this.Fa.get();g.K(a.G.getRootNode(),"ad-showing");a=this.Fa.get();g.K(a.G.getRootNode(),"ad-interrupting");this.callback.Ff(this.slot)};
g.k.hC=function(){this.Fa.get().Yo();var a=this.Fa.get();g.Nq(a.G.getRootNode(),"ad-showing");a=this.Fa.get();g.Nq(a.G.getRootNode(),"ad-interrupting");this.callback.Gf(this.slot)};
g.k.release=function(){this.Fa.get().Yo()};z0.prototype.Te=function(a,b){if(xz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new GHa(a,b,this.Fa);if(xz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new HHa(a,b,this.Fa);throw new oZ("Unsupported slot with type "+b.rb+" and client metadata: "+(UY(b.Ja)+" in PlayerBytesSlotAdapterFactory."));};g.v(B0,g.E);B0.prototype.i=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof GZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.ze===a&&b.push(d)}b.length?mZ(this.FA(),b):R("Mute requested but no registered triggers can be activated.")};g.v(C0,B0);g.k=C0.prototype;g.k.Cf=function(a,b){if(b)if("survey-submit"===a)IHa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof GZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.ze===b&&a.push(d)}a.length&&mZ(this.FA(),a)}else"survey-single-select-answer-button"===a&&IHa(this,b)};
g.k.NC=function(a){B0.prototype.i.call(this,a)};
g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof HZ||b instanceof GZ))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Db.set(b.triggerId,new A0(a,b,c,d))};
g.k.Si=function(a){this.Db.delete(a.triggerId)};
g.k.LC=function(){};
g.k.KC=function(){};
g.k.Jx=function(){};g.v(D0,g.E);g.k=D0.prototype;
g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof k_||b instanceof l_||b instanceof m_||b instanceof n_||b instanceof o_||b instanceof b_||b instanceof g_||b instanceof FZ||b instanceof NZ||b instanceof a_||b instanceof f_))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new A0(a,b,c,d);this.Db.set(b.triggerId,a);b instanceof o_&&this.C.has(b.Fg)&&
mZ(this.i(),[a]);b instanceof k_&&this.u.has(b.Fg)&&mZ(this.i(),[a]);b instanceof g_&&this.l.has(b.ze)&&mZ(this.i(),[a])};
g.k.Si=function(a){this.Db.delete(a.triggerId)};
g.k.Lh=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof o_&&a.slotId===d.trigger.Fg&&b.push(d);0<b.length&&mZ(this.i(),b)};
g.k.zj=function(a){this.C.delete(a.slotId);a=[];for(var b=g.q(this.Db.values()),c=b.next();!c.done;c=b.next());0<a.length&&mZ(this.i(),a)};
g.k.yj=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof b_&&e.rb===a.rb&&e.i!==a.slotId&&b.push(d)}0<b.length&&mZ(this.i(),b)};
g.k.Ff=function(a){this.u.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof k_&&a.slotId===d.trigger.Fg&&b.push(d);0<b.length&&mZ(this.i(),b)};
g.k.Gf=function(a){this.u.delete(a.slotId);this.B.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof l_)a.slotId===d.trigger.Fg&&b.push(d);else if(d.trigger instanceof f_){var e=d.trigger;a.slotId===e.slotId&&this.l.has(e.ze)&&b.push(d)}0<b.length&&mZ(this.i(),b)};
g.k.Hk=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof m_&&a.slotId===d.trigger.Fg&&b.push(d);0<b.length&&mZ(this.i(),b)};
g.k.Ik=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof n_&&a.slotId===d.trigger.Fg&&b.push(d);0<b.length&&mZ(this.i(),b)};
g.k.wj=function(a,b){this.I.add(b.layoutId)};
g.k.Fk=function(a,b){this.I.delete(b.layoutId)};
g.k.Kc=function(a,b){this.l.add(b.layoutId);for(var c=[],d=g.q(this.Db.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof g_)b.layoutId===e.trigger.ze&&c.push(e);else if(e.trigger instanceof a_){var f=e.trigger;a.rb===f.rb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof f_&&(f=e.trigger,b.layoutId===f.ze&&this.B.has(f.slotId)&&c.push(e));0<c.length&&mZ(this.i(),c)};
g.k.Uc=function(a,b,c){this.l.delete(b.layoutId);a=[];for(var d=g.q(this.Db.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof FZ&&b.layoutId===e.trigger.ze&&a.push(e),e.trigger instanceof NZ&&b.layoutId===e.trigger.ze&&"error"===c&&a.push(e);0<a.length&&mZ(this.i(),a)};
g.k.Ci=function(){};
g.k.Bi=function(){this.B.clear()};
g.k.Dk=function(){};g.v(E0,g.E);E0.prototype.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof yz||b instanceof i_))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Db.set(b.triggerId,new A0(a,b,c,d))};
E0.prototype.Si=function(a){this.Db.delete(a.triggerId)};
E0.prototype.Bi=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.q(this.Db.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof yz&&l.trigger.Xn===a&&f.push(l);e.call(d,b,g.la(f));b.push.apply(b,g.la(JHa(this.Db,a,!1,c)));b.length&&mZ(this.i(),b)};
E0.prototype.Dk=function(a){var b=[];b.push.apply(b,g.la(JHa(this.Db,a,!0,!1)));b.length&&mZ(this.i(),b)};g.v(F0,g.E);g.k=F0.prototype;
g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof WZ)G0(this,a,b,c,d,e,b.i.start,b.i.end,b.Xn,b.visible);else if(b instanceof h_)G0(this,a,b,c,d,e,b.i.start,b.i.end,b.Xn,!1);else if(b instanceof e_)G0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Xn,b.visible);else throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Si=function(a){var b=this.Db.get(a.triggerId);b&&this.u.get().removeCueRange(b.ax);this.Db.delete(a.triggerId)};
g.k.Cd=function(a){if(a=KHa(this,a))if(a=this.Db.get(a))if(g.V(B_(this.Fa.get()),32))this.i.add(a.ax);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof WZ||b instanceof e_)&&mZ(this.l(),[a.bundle])}};
g.k.sf=function(a){if(a=KHa(this,a))if(a=this.Db.get(a))this.i.delete(a.ax),a.bundle.trigger instanceof h_&&mZ(this.l(),[a.bundle])};
g.k.Gk=function(a){if(0>XI(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.Cd(b.value);this.i.clear()}};
g.k.zi=function(){};
g.k.Ye=function(){};
g.k.pg=function(){};
g.k.tj=function(){};
g.k.Hf=function(){};g.v(H0,g.E);g.k=H0.prototype;g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof JZ||b instanceof j_))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Db.set(b.triggerId,new A0(a,b,c,d))};
g.k.Si=function(a){this.Db.delete(a.triggerId)};
g.k.Om=function(){};
g.k.lk=function(){};
g.k.Kc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.i?R("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Uc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(this.i=null)};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.l?R("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.l=a.slotId)};
g.k.Gf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null===this.l?R("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.Uw=function(){null!=this.i&&l0(this,this.i)};
g.k.gx=function(a){if(null===this.l){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof j_&&d.trigger.slotId===a&&b.push(d);b.length&&mZ(this.u(),b)}};g.v(I0,g.E);g.k=I0.prototype;g.k.Ci=function(a,b){for(var c=[],d=g.q(this.Db.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&&mZ(this.i(),c)};
g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof GGa))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Db.set(b.triggerId,new A0(a,b,c,d))};
g.k.Si=function(a){this.Db.delete(a.triggerId)};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Kc=function(){};
g.k.Uc=function(){};g.v(J0,g.E);J0.prototype.xa=function(){this.B.get().removeListener(this);g.E.prototype.xa.call(this)};K0.prototype.fetch=function(a){var b=a.cI;return this.Eo.fetch(a.DM,{Ot:void 0===a.Ot?void 0:a.Ot,Zd:b}).then(function(c){return LHa(c,b)})};g.v(L0,g.E);g.k=L0.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){M0(this,function(c){c.Cf(a,b)})};
g.k.BD=function(a){M0(this,function(b){b.LC(a)})};
g.k.AD=function(a){M0(this,function(b){b.KC(a)})};
g.k.WR=function(a){M0(this,function(b){b.Jx(a)})};P0.prototype.addListener=function(a){this.listeners.push(a)};
P0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=Q0.prototype;g.k.rd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){var a;this.u.get().addListener(this);this.Fa.get().addListener(this);this.xp();var b=TY(this.layout.Ja,"metadata_type_layout_enter_ms"),c=TY(this.layout.Ja,"metadata_type_layout_exit_ms"),d=null===(a=this.l.get().Vo)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Dc.adClientDataEntry;F_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.u.get();f=xK(f.i,b,c);null!==f&&(F_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:f-
b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.C.get().Qo(f,c))};
g.k.release=function(){this.Yp();this.u.get().removeListener(this);this.Fa.get().removeListener(this)};
g.k.startRendering=function(){this.lq();this.callback.Kc(this.slot,this.layout);Y_(this.I,"ad_placement_start")};
g.k.cf=function(a,b){this.mq(b);null!==this.driftRecoveryMs&&(R0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(OHa(this)-TY(this.layout.Ja,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().G.Vm()).toString()}),this.driftRecoveryMs=null);this.callback.Uc(this.slot,this.layout,b);"normal"!==b?a=!1:(a=this.Fa.get().getCurrentTimeSec(2,!0),b=TY(this.layout.Ja,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&Y_(this.I,
"ad_placement_end")};
g.k.DK=function(){};
g.k.tK=function(a){var b,c=TY(this.layout.Ja,"metadata_type_layout_enter_ms"),d=TY(this.layout.Ja,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(F_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.l.get().Vo)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Dc.adClientDataEntry}}),this.C.get().Qo(a,d))};
g.k.zi=function(){var a=this.Fa.get().getCurrentTimeSec(2,!0);if(EGa(this.J.get(),this.layout.layoutId)){var b=TY(this.layout.Ja,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=OHa(this),e=this.Fa.get().G.Vm(),f=Math.min(a+e,d/1E3);f<=a?R0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(R0(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.Fa.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.Gk=function(){};
g.k.Ye=function(){};
g.k.pg=function(){};
g.k.tj=function(){};
g.k.Hf=function(){};g.v(S0,Q0);g.k=S0.prototype;g.k.xp=function(){this.l.get().addListener(this);this.B.forEach(function(a){a.init()})};
g.k.Yp=function(){this.l.get().removeListener(this);this.i=null;this.B.forEach(function(a){a.release()})};
g.k.lq=function(){var a;if(this.i)R("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.l.get().Vo)||void 0===a?void 0:a.layoutId;QHa(this,b)}};
g.k.mq=function(a){var b,c,d,e;null===(c=null===(b=this.i)||void 0===b?void 0:b.Wh)||void 0===c?void 0:c.cf(null===(e=null===(d=this.i)||void 0===d?void 0:d.Wh)||void 0===e?void 0:e.Nb(),a);this.i=null};
g.k.JK=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.Wh)||void 0===b?void 0:b.Nb().layoutId)!==a&&(null===(c=this.i.Wh)||void 0===c?void 0:c.cf(null===(d=this.i.Wh)||void 0===d?void 0:d.Nb(),"normal"),QHa(this,a))};g.k=RHa.prototype;g.k.rd=function(){return this.slot};
g.k.Nb=function(){return this.layout};
g.k.init=function(){TY(this.layout.Ja,"metadata_type_player_bytes_callback_ref").current=this;var a=TY(this.layout.Ja,"metadata_type_video_length_seconds"),b=TY(this.layout.Ja,"metadata_type_player_vars"),c=TY(this.layout.Ja,"metadata_type_layout_enter_ms"),d=TY(this.layout.Ja,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c)if(b=this.u.get().Tq(b,2,e,c,d,this.slot.slotId)){var f=this.I.get(),h=this.slot.slotId,l=this.layout.layoutId;b?(f.i.has(b)&&R("Unexpected remap of timeline playback"),f.i.set(b,
{slotId:h,layoutId:l})):R("Invalid timeline playback ID");c+e>d&&(c=d-c,this.u.get().Gs(b,c))}else c=this.slot,d=this.layout,e=Object,b=e.assign,f=Object.assign({},T0(this.layout)),h=TY(this.slot.Ja,"metadata_type_fulfilled_layout"),h=Object.assign(Object.assign({},T0(h)),{adPlacementConfig:TY(h.Ja,"metadata_type_ad_placement_config"),subLayouts:TY(h.Ja,"metadata_type_sub_layouts").map(T0)}),R("Unexpected failure to add to playback timeline",c,d,b.call(e,f,{compositeLayout:h}));else this.u.get().Ku(b,
2,e,c,d,this.slot.slotId);this.Fa.get().addListener(this);UGa(this.B.get(),this.layout.layoutId,a,this);kZ(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Fa.get().removeListener(this);VGa(this.B.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.l)R("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={ey:null,GL:!1};var a=TY(this.layout.Ja,"metadata_type_sodar_extension_data");if(a)try{gHa(this.C.get(),a)}catch(b){R("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}Y_(this.i,"start");y_(this.Sa.get())&&(a=B_(this.Fa.get()),a=new g.WI(a,new g.GK),THa(this,this.l,a));lZ(this.callback,this.slot,this.layout)}};
g.k.cf=function(a,b){this.l?(y_(this.Sa.get())&&SHa(this,null,this.l),this.l=null,qK(this.callback,this.slot,this.layout,b)):R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.bv=function(){};
g.k.Ix=function(){};
g.k.zi=function(a){if(this.l){if(this.i.i.has("impression")){var b=B_(this.Fa.get());UHa(this,b,a,this.l.ey)}this.l.ey=a}};
g.k.Gk=function(a){this.l&&(y_(this.Sa.get())||this.l.GL||(this.l.GL=!0,a=new g.WI(a.state,new g.GK)),THa(this,this.l,a))};
g.k.Ye=function(a){this.i.i.has("impression")&&this.i.Se(a?"fullscreen":"end_fullscreen")};
g.k.pg=function(){};
g.k.tj=function(){};
g.k.xv=function(){};
g.k.Hf=function(){};
g.k.Kc=function(){};
g.k.Uc=function(){};
g.k.Sp=function(){};
g.k.bq=function(){};
g.k.mE=function(){this.i.i.has("impression")&&this.i.Se("clickthrough")};
g.k.Jy=function(){this.i.Se("active_view_measurable")};
g.k.Iy=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Se("active_view_fully_viewable_audible_half_duration")};
g.k.Ky=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Se("active_view_viewable")};U0.prototype.Te=function(a,b,c,d){if(c.Ja.i.has("metadata_type_dai")){a:{var e=TY(d.Ja,"metadata_type_sub_layouts"),f=TY(d.Ja,"metadata_type_ad_placement_config");if(T_(d,{me:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ef:["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=TY(l.Ja,"metadata_type_media_sub_layout_index");if(!T_(l,{me:["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"],Ef:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new V_(l.Bc,this.Xa,f,l.layoutId,m);h.push(new RHa(b,c,l,this.u,m,this.Fa,this.va,this.i,this.B,this.Sa))}b=new V_(d.Bc,this.Xa,f,d.layoutId);a=new S0(a,c,d,this.l,this.u,this.J,this.Fa,b,this.Xa,this.V,h)}else a=null}if(a)return a}else if(a=AHa(a,b,c,d,this.Ie,this.Y,this.Xa,this.i,this.B,this.xd,this.l,this.Fa,
this.L,this.od,this.Fc,this.C,this.I,this.ea,this.Sa))return a;throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(V0,g.E);g.k=V0.prototype;g.k.DK=function(a){this.i&&VHa(this,this.i,a)};
g.k.tK=function(){};
g.k.Bi=function(a){this.i&&this.i.contentCpn!==a&&(R("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.k.Dk=function(a){this.i&&this.i.contentCpn!==a&&R("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.xa=function(){g.E.prototype.xa.call(this);this.i=null};g.v(W0,g.E);W0.prototype.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof RZ))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Db.set(b.triggerId,new A0(a,b,c,d))};
W0.prototype.Si=function(a){this.Db.delete(a.triggerId)};g.v(Y0,g.E);
Y0.prototype.Gi=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new oZ("Tried to re-register the trigger.");a=new A0(a,b,c,d);if(a.trigger instanceof KGa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof IZ)this.u.set(a.trigger.triggerId,a);else throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&mZ(this.B(),[a])};
Y0.prototype.Si=function(a){this.l.delete(a.triggerId);this.u.delete(a.triggerId)};
Y0.prototype.JK=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.la(WHa(this.u,this.i)));null!=a&&b.push.apply(b,g.la(WHa(this.l,a)));this.i=a;b.length&&mZ(this.B(),b)}};g.v(Z0,g.E);g.k=Z0.prototype;g.k.Bi=function(){this.u=new vK(this,SGa(this.Sa.get()));this.i=new wK;XHa(this)};
g.k.Dk=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.QD=function(a){this.Nz.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.DK(a)};
g.k.vK=function(a){g.Bb(this.i.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.tK(a)};
g.k.HD=function(a){var b=vz(this.B.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||z_(this.Sa.get()))&&F_(this.Xa.get(),{cuepointTrigger:{event:YHa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.l.add(e),b?this.u.reduce(e):z_(this.Sa.get())&&0!==this.G.getCurrentTime(1)&&"start"===e.event&&this.QD(e)};
g.k.xa=function(){this.G.getVideoData(1).unsubscribe("cuepointupdated",this.HD,this);this.listeners.length=0;this.l.clear();this.Nz.length=0;g.E.prototype.xa.call(this)};g.k=$0.prototype;g.k.Tq=function(a,b,c,d,e,f){return this.G.Tq(a,b,c,d,e,f)};
g.k.Qo=function(a,b){this.G.Qo(a,b)};
g.k.Gs=function(a,b,c){this.G.Gs(a,b,c)};
g.k.Op=function(a){this.G.Op(a)};
g.k.Ku=function(a,b,c,d,e,f){this.G.Ku(a,b,c,d,e,f)};a1.prototype.addListener=function(a){this.listeners.add(a)};
a1.prototype.removeListener=function(a){this.listeners.delete(a)};g.v(ZHa,nI);g.v(b1,$_);g.k=b1.prototype;g.k.Cf=function(a,b){b0("image-companion",a,this.I.get().Ni,this.Xa.get(),this.u,this.B,this.rd(),this.Nb(),b)};
g.k.startRendering=function(a){a0(this.C,this.rd(),this.Nb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new ZHa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?Y_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().Eh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Uc=function(){};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.xa=function(){this.Ie().Jd.delete(this);$_.prototype.xa.call(this)};g.v(aIa,nI);g.v(c1,$_);g.k=c1.prototype;g.k.Cf=function(a,b){b0("shopping-companion",a,this.I.get().Ni,this.Xa.get(),this.u,this.B,this.rd(),this.Nb(),b)};
g.k.startRendering=function(a){a0(this.C,this.rd(),this.Nb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new aIa(b,c,d,e,f)},this.i);
$_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?Y_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().Eh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Uc=function(){};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.xa=function(){this.Ie().Jd.delete(this);$_.prototype.xa.call(this)};cIa.prototype.Te=function(a,b,c,d){if(T_(d,pHa()))return new c0(a,c,d,this.i,this.Xa,this.Ie,this.u,this.l);if(T_(d,$Ha()))return new b1(a,c,d,this.i,this.Xa,this.Ie,this.u,this.l);if(T_(d,bIa()))return new c1(a,c,d,this.i,this.Xa,this.Ie,this.u,this.l);throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(d1,$_);d1.prototype.startRendering=function(a){var b=X_(this.u),c={adsClientData:this.layout.Dc};this.i.push(new kK(TY(this.layout.Ja,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Nb().layoutId,c,!0,!0));$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
d1.prototype.Cf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=TY(this.layout.Ja,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.xv(this.slot,this.layout):R("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
d1.prototype.xa=function(){$_.prototype.xa.call(this)};var f1=new g.Tf(320,63);g.v(i1,nI);g.v(j1,$_);g.k=j1.prototype;g.k.zi=function(){};
g.k.Gk=function(){};
g.k.Ye=function(){};
g.k.pg=function(a){a&&X0(this.u,this.layout)};
g.k.tj=function(a){var b=h1(this.layout);if(this.C=g1(a,dHa(this.Fa.get())))b.onErrorCommand&&this.I.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)};
g.k.Hf=function(){};
g.k.uu=function(){return this.Nb().layoutId};
g.k.mC=function(){return this.C};
g.k.Cf=function(a){this.B.Cf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)};
g.k.Jx=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)};
g.k.Xl=function(){this.B.Xl()};
g.k.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Hd.Do=this};
g.k.cf=function(a,b){$_.prototype.cf.call(this,a,b);P1(this.Hd,this)};
g.k.init=function(){$_.prototype.init.call(this);G_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),X_(this.J),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this);H_(this.Xa.get(),this)};g.v(k1,$_);g.k=k1.prototype;g.k.init=function(){$_.prototype.init.call(this);G_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),X_(this.L),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.Xl=function(){this.B.Xl()};
g.k.startRendering=function(a){$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Hd.Do=this};
g.k.cf=function(a,b){$_.prototype.cf.call(this,a,b);P1(this.Hd,this)};
g.k.Cf=function(a){this.B.Cf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)};
g.k.LC=function(a){if("invideo-overlay"===a){a=hIa(this.I,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Jx=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)};
g.k.KC=function(a){if("invideo-overlay"===a){a=hIa(this.I,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.zi=function(){};
g.k.Gk=function(){};
g.k.Ye=function(){};
g.k.pg=function(a){a&&X0(this.u,this.layout)};
g.k.tj=function(a){var b=h1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=dHa(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.kb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Tf(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Tf(0,0)}if(this.C=g1(a,d,c))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)};
g.k.Hf=function(){};
g.k.uu=function(){return this.Nb().layoutId};
g.k.mC=function(){return this.C};
g.k.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this);H_(this.Xa.get(),this)};l1.prototype.Cf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Fa.get().Ql(1))||this.Fa.get().pauseVideo())};
l1.prototype.Xl=function(){this.i||this.Fa.get().resumeVideo(1)};g.v(m1,$_);g.k=m1.prototype;g.k.init=function(){$_.prototype.init.call(this);this.Fa.get().addListener(this)};
g.k.startRendering=function(a){var b=TY(this.layout.Ja,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new iK(b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0));$_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
g.k.Kc=function(){};
g.k.Cf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=TY(this.layout.Ja,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Sp(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.bq(this.slot,this.layout):R("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.tj=function(a){450>a.width&&X0(this.u,this.layout)};
g.k.Hf=function(){};
g.k.zi=function(){};
g.k.Ye=function(){};
g.k.pg=function(){};
g.k.Gk=function(){};
g.k.xa=function(){$_.prototype.xa.call(this)};
g.k.release=function(){$_.prototype.release.call(this);this.Fa.get().removeListener(this)};gIa.prototype.Te=function(a,b,c,d){if(b=f0(a,c,d,this.i,this.Fa,this.Xa,this.I,this.Hd))return b;if(T_(d,fIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Sa,this.Hd,new l1(this.Fa));if(T_(d,eIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Sa,this.Hd,new l1(this.Fa));if(T_(d,{me:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ef:["LAYOUT_TYPE_SURVEY"]}))return new m1(c,d,a,this.i,this.l,this.Fa);if(T_(d,{me:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ef:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new d1(c,d,a,this.i,this.Xa);throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(n1,g.E);g.k=n1.prototype;g.k.Gi=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new oZ("Tried to register duplicate trigger for slot.");if(!(b instanceof MZ))throw new oZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Db.set(b.triggerId,new A0(a,b,c,d));a=this.i.has(b.ze)?this.i.get(b.ze):new Set;a.add(b);this.i.set(b.ze,a)};
g.k.Si=function(a){this.Db.delete(a.triggerId);if(!(a instanceof MZ))throw new oZ("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.ze))b.delete(a),0===b.size&&this.i.delete(a.ze)};
g.k.Lh=function(){};
g.k.zj=function(){};
g.k.yj=function(){};
g.k.Ff=function(){};
g.k.Gf=function(){};
g.k.Hk=function(){};
g.k.Ik=function(){};
g.k.wj=function(){};
g.k.Fk=function(){};
g.k.Ci=function(){};
g.k.Kc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.q(b);for(var d=b.next();!d.done;a={Ms:a.Ms},d=b.next())a.Ms=d.value,d=new g.J(function(e){return function(){var f=c.Db.get(e.Ms.triggerId);mZ(c.u(),[f])}}(a),a.Ms.durationMs),d.start(),this.l.set(a.Ms.triggerId,d)}};
g.k.Uc=function(){};g.v(o1,g.E);o1.prototype.xa=function(){this.B.get().removeListener(this);g.E.prototype.xa.call(this)};g.v(iIa,g.E);jIa.prototype.Te=function(a,b,c,d){if(b=f0(a,c,d,this.i,this.Fa,this.Xa,this.I,this.Hd))return b;if(T_(d,fIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Sa,this.Hd,new l1(this.Fa));if(T_(d,eIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Sa,this.Hd,new l1(this.Fa));throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(kIa,g.E);g.v(lIa,g.E);g.v(mIa,g.E);g.v(q1,e0);q1.prototype.startRendering=function(a){e0.prototype.startRendering.call(this,a);TY(this.layout.Ja,"metadata_ad_video_is_listed")&&(a=TY(this.layout.Ja,"metadata_type_ad_info_ad_metadata"),this.I.get().G.Na("onAdMetadataAvailable",a))};oIa.prototype.Te=function(a,b,c,d){if(T_(d,nIa()))return new q1(a,c,d,this.l,this.Fa,this.Xa,this.u,this.i,this.Hd);throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(pIa,g.E);qIa.prototype.Te=function(a,b,c,d){if(x_(this.Sa.get())&&T_(d,nIa()))return new q1(a,c,d,this.i,this.Fa,this.Xa,this.l,this.u,this.Hd);if(a=f0(a,c,d,this.i,this.Fa,this.Xa,this.l,this.Hd))return a;throw new gZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UY(d.Ja)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(rIa,g.E);g.v(r1,g.E);r1.prototype.u=function(){return this.l};s1.prototype.gx=function(a){this.ek.gx(a)};
s1.prototype.Uw=function(){try{this.ek.Uw()}catch(a){}};
s1.prototype.Om=function(){this.i().Om()};
s1.prototype.lk=function(){this.i().lk()};g.v(t1,aM);
t1.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.Na("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.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Na("updateEngagementPanelAction",b.addAction);this.i.Na("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.Na("changeEngagementPanelVisibility",b.hideAction),this.i.Na("updateEngagementPanelAction",b.removeAction)}};g.v(u1,hM);g.k=u1.prototype;g.k.init=function(a,b,c){hM.prototype.init.call(this,a,b,c);g.Bl(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){jM(this);hM.prototype.hide.call(this)};
g.k.show=function(){iM(this);hM.prototype.show.call(this)};
g.k.Wp=function(){this.hide()};
g.k.On=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.Bl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(v1,DL);g.k=v1.prototype;
g.k.init=function(a,b,c){DL.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.by(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.sc(g.rd(e[0].url))&&(e[0].url=d.wg);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.sc(g.rd(e[0].url))&&(e[0].url=d.We());e=b.headline;null!=e&&g.sc(g.rd(e.text))&&(e.text=d.author)}this.C.init(mI("ad-image"),b.image,c);this.Y.init(mI("ad-text"),b.headline,c);this.L.init(mI("ad-text"),b.description,c);this.I.init(mI("ad-image"),b.backgroundImage,c);this.actionButton=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.F(this,
this.actionButton);this.actionButton.Ba(this.La);this.actionButton.init(mI("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.T().i||(this.B.N(this.Ga,"click",this.fC,this),this.B.N(this.Da,"click",this.fC,this),this.B.N(this.Aa,"click",this.fC,this));this.l=this.oh?new wM(this.api,a):new xM(a);g.F(this,this.l);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.l&&(this.skipButton=new rM(this.api,this.Va,this.layoutId,this.i,this.l,this.Mi),g.F(this,
this.skipButton),this.skipButton.Ba(this.element),this.skipButton.init(mI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.l&&(this.u=new mM(this.api,this.Va,this.layoutId,this.i,this.l,!1),g.F(this,this.u),this.u.Ba(this.element),this.u.init(mI("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.l&&(c=new u1(this.api,this.Va,this.layoutId,this.i,this.l),g.F(this,c),c.Ba(this.element),c.init(mI("timed-pie-countdown"),
b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.by(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.by(Error("AdActionInterstitialRenderer has no button."));else g.by(Error("AdActionInterstitialRenderer has no background AdImage."));else g.by(Error("AdActionInterstitialRenderer has no description AdText."));else g.by(Error("AdActionInterstitialRenderer has no headline AdText."));else g.by(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.xx(this.B);this.hide()};
g.k.show=function(){tIa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();DL.prototype.show.call(this)};
g.k.hide=function(){tIa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();DL.prototype.hide.call(this)};
g.k.fC=function(){this.navigationEndpoint&&this.Va.executeCommand(this.navigationEndpoint,this.macros)};var x1={iconType:"CLOSE"},B1=new g.Tf(320,63);g.v(w1,DL);g.k=w1.prototype;
g.k.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);this.C=b;this.L=g.rb(this.C.onClickCommands||[]);this.Ga=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.dg("ytp-ad-overlay-ad-info-button-container",this.B.element),z1(this,b),a=yIa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.dg("ytp-ad-overlay-ad-info-button-container",this.u.element),
z1(this,b),a=zIa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.dg("ytp-ad-overlay-ad-info-button-container",this.l.element),z1(this,b),a=AIa(this,a.imageOverlayAdContentRenderer)):(g.by(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),BIa(this,!0))};
g.k.clear=function(){BIa(this,!1);this.Da.reset();this.Y=0;this.B.hide();this.kb(this.B.element,!1);this.u.hide();this.kb(this.u.element,!1);this.l.hide();this.kb(this.l.element,!1);this.hide();this.dispose()};
g.k.HU=function(){this.Ua&&this.Va.executeCommand(this.Ua,this.macros);this.api.pauseVideo()};
g.k.Ai=function(){var a=this;xIa(this).forEach(function(b){return a.Va.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.PR=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.PD=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.PD("invideo-overlay")};
g.k.QR=function(a){a.target===this.I&&g.dg("ytp-ad-button",this.Ya.element).click()};g.v(C1,hM);g.k=C1.prototype;g.k.init=function(a,b,c){hM.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=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.messageText.init(mI("ad-text"),d,c);this.messageText.Ba(this.u.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){CIa(this,!1);hM.prototype.hide.call(this);this.u.hide();this.messageText.hide();jM(this)};
g.k.show=function(){CIa(this,!0);hM.prototype.show.call(this);iM(this);this.u.show();this.messageText.show()};
g.k.Wp=function(){this.hide()};
g.k.On=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.L&&a>=this.B?(this.I.hide(),this.L=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Y&&(gM(this.messageText,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.v(D1,DL);
D1.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ba(this.answer),a.init(mI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new ZL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.Ba(this.answer),
g.F(this,this.l),this.l.init(mI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
D1.prototype.clear=function(){this.hide()};g.v(E1,DL);E1.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new ZL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ba(this.l),this.button.init(mI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(F1,RL);F1.prototype.init=function(a,b,c){RL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Yz(b.text),a=!g.sc(b));a||g.cy(Error("No submit text was present in the renderer."))};
F1.prototype.onClick=function(a){this.X("l");RL.prototype.onClick.call(this,a)};g.v(G1,DL);
G1.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new sM(this.api,this.Va,this.layoutId,this.i,this.B,this.Mi),c.Ba(this.I),c.init(mI("skip-button"),a,this.macros),g.F(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new mM(this.api,this.Va,this.layoutId,this.i,this.B,!1),c.Ba(this.I),c.init(mI("ad-preview"),a,this.macros),nM(c),g.F(this,c),this.l=c);null==this.l&&g.by(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new F1(this.api,this.Va,this.layoutId,this.i),c.Ba(this.submitButton),c.init(mI("survey-submit"),a,this.macros),g.F(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new vM(this.api,this.Va,this.layoutId,this.i,!0),c.Ba(this.C),c.init(mI("simple-ad-badge"),a,this.macros),g.F(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new AM(this.api,this.Va,this.layoutId,this.i,this.B,void 0),c.Ba(this.C),
c.init(mI("ad-duration-remaining"),a,this.macros),g.F(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new eM(this.api,this.Va,this.layoutId,this.i,this.element),g.F(this,a),a.Ba(this.C),a.init(mI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
G1.prototype.clear=function(){this.hide()};g.v(H1,DL);H1.prototype.init=function(a,b,c){DL.prototype.init.call(this,a,b,c);GIa(this)};
H1.prototype.show=function(){this.B=g.Sa();DL.prototype.show.call(this)};
H1.prototype.xL=function(){};g.v(I1,H1);g.k=I1.prototype;g.k.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.vg(this.questionText,g.Yz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&DIa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&HIa(this,a,c);b.surveyAdQuestionCommon&&FIa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()};
g.k.xL=function(){J1(this,!1);this.C.u.subscribe("l",this.FU,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?IIa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),J1(this,!0))};
g.k.FU=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=vi(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Va.executeCommand(d,a.macros)})};
g.k.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(K1,H1);K1.prototype.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.vg(this.questionText,g.Yz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&DIa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?FIa(this,b.surveyAdQuestionCommon):g.by(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
K1.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(L1,DL);
L1.prototype.init=function(a,b,c){var d=this;DL.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new K1(d.api,d.Va,d.layoutId,d.i,d.oh,d.Mi);f.Ba(d.l);f.init(mI("survey-question-single-select"),e,c);d.questions.push(f);g.F(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new I1(d.api,d.Va,d.layoutId,d.i,d.oh,d.Mi),
f.Ba(d.l),f.init(mI("survey-question-multi-select"),e,c),d.questions.push(f),g.F(d,f))});
this.show()};
L1.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(M1,DL);
M1.prototype.init=function(a,b,c){var d=this;DL.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.by(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){KIa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
KIa(this.logoImage,b.brandImage);g.vg(this.text,g.Yz(b.text));this.actionButton=new RL(this.api,this.Va,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.F(this,this.actionButton);this.actionButton.Ba(this.u);this.actionButton.init(mI("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=g.S(this.api.T().experiments,"html5_use_normal_timer_for_survey");this.l=this.oh?new wM(this.api,1E3*a):new xM(1E3*a,void 0,f);this.l.subscribe("g",function(){d.transition.hide();
if(!d.oh){for(var h=g.q(e),l=h.next();!l.done;l=h.next())d.Va.executeCommand(l.value,c);d.Va.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.F(this,this.l);this.N(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.HE)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())d.Va.executeCommand(m.value,d.macros)});
this.transition.show(100);if(!this.oh&&b.impressionCommands)for(a=g.q(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Va.executeCommand(f.value,c)}else g.by(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.by(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.by(Error("SurveyTextInterstitialRenderer has no button."));else g.by(Error("SurveyTextInterstitialRenderer has no text."));else g.by(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
M1.prototype.clear=function(){this.hide()};
M1.prototype.show=function(){LIa(!0);DL.prototype.show.call(this)};
M1.prototype.hide=function(){LIa(!1);DL.prototype.hide.call(this)};var RKa="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.v(N1,aM);
N1.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!RKa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof bJ||c instanceof iK||c instanceof kK?c.oh:!1,m=c instanceof bJ||c instanceof oK||c instanceof iK?c.Mi:!1,n=c instanceof kK?c.HE:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new w1(e,a,f,h);break;case "player-overlay":a=new HM(e,a,f,h,new yO(e),m);break;case "survey":a=
new L1(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new v1(e,a,f,h,l,m);break;case "survey-interstitial":a=new M1(e,a,f,h,l,n);break;case "ad-message":a=new C1(e,a,f,h,new yO(e,1));break;default:a=null}if(!a){g.cy(Error("No UI component returned from ComponentFactory for type: "+d));break}Nb(this.l,b)?g.cy(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.FL);break;case 2:b=MIa(this,a);if(null==b)break;b.bind(c);break;case 3:c=MIa(this,a),null!=c&&(g.ff(c),
Nb(this.l,b)?(c=this.l,b in c&&delete c[b]):g.cy(Error("Ad UI component does not exist: "+b)))}};
N1.prototype.xa=function(){g.gf(Object.values(this.l));this.l={};aM.prototype.xa.call(this)};g.v(O1,g.FN);g.k=O1.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.FN.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.i.i.Qe.Dh,b=this.u(),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;var h=c&&c.ji()||!1;a=QIa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.No||!1;h=1E3*this.player.getDuration(1);this.Va=new sL(this,this,this.player,this.Eo,b,this.i.i.Qe);sqa(this.Va,a.It);this.i.i.Hn.Bi(f,h,c,a.Vy,a.Vy.concat(a.It),e,d);tL(this.Va)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Hn.Dk(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.FN.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Va){var a=this.Va;this.Va=null;a.dispose()}null!=this.l&&(a=this.l,this.l=null,a.dispose());this.Eo.reset()};
g.k.Li=function(){return!1};
g.k.IE=function(){return null===this.Va?!1:this.Va.IE()};
g.k.Ek=function(a){null!==this.Va&&this.Va.Ek(a)};
g.k.getAdState=function(){return this.Va?this.Va.Ox:-1};
g.k.getOptions=function(){return Object.values(QKa)};
g.k.hf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=FI(this.player),Object.assign(b,a.U8),this.Va&&!b.AD_CPN&&(b.AD_CPN=this.Va.qx()),a=g.zq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.Xl(b);
break;default:return null}};
g.k.Xl=function(a){a.isMuted&&iqa(this.Va,this.i.i.Qe.dh,this.i.i.Qe.xi,a.layoutId);this.Do&&this.Do.Xl()};
g.k.yn=function(){return null===this.Va?!1:this.Va.yn()};g.QN.ad=O1;var SIa=g.ce&&RIa();g.v(g.R1,g.W);g.R1.prototype.onClick=function(){this.G.Na("onExpandMiniplayer")};})(_yt_player);
