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,na,qa,ra,sa,ua,va,wa,xa,ya,baa,caa,za,Aa,daa,eaa,Ca,Da,Fa,Ga,Ha,La,Ma,gaa,haa,Va,Wa,Xa,iaa,Ya,Za,$a,ab,bb,cb,db,jaa,gb,jb,tb,ub,wb,Bb,Cb,Db,Eb,Fb,Gb,Ib,Hb,Jb,Lb,Mb,Nb,Ob,Pb,Qb,laa,Sb,Yb,maa,gc,hc,naa,oc,jc,oaa,kc,paa,qaa,raa,uc,vc,wc,xc,Ic,Kc,Hc,Cc,Nc,Mc,Pc,Sc,Tc,Vc,Uc,Wc,Xc,Zc,$c,ad,bd,cd,dd,ed,vaa,fd,gd,jd,kd,ld,nd,qd,rd,sd,ud,td,vd,waa,xd,Ad,zd,Bd,Dd,Ed,Cd,Fd,Gd,Jd,Id,Kd,Ld,Md,Nd,Od,xaa,Td,Ud,Vd,Wd,Xd,Zd,be,yaa,zaa,Aaa,ae,ce,ee,Caa,fe,ge,he,ie,je,Daa,ke,Eaa,
le,Faa,me,Gaa,ne,oe,pe,qe,Haa,ve,xe,ye,Ae,Jaa,Ce,Fe,He,Ie,Le,Me,Oe,Qe,Re,Ue,$e,af,bf,cf,ff,hf,Kaa,ef,nf,of,lf,Maa,jf,gf,sf,tf,uf,vf,wf,xf,yf,Bf,Naa,Df,Gf,Hf,Kf,Mf,Nf,Qaa,Of,Sf,$f,ag,dg,Taa,bg,Uaa,Xaa,Yaa,hg,kg,Zaa,$aa,jg,aba,ng,qg,rg,dba,vg,xg,Ag,Bg,Cg,Gg,Hg,Ig,Jg,eba,fba,Ng,Og,Ug,Vg,Xg,Wg,Zg,bh,ah,$g,gba,Lg,qh,ph,sh,rh,Kg,uh,iba,vh,wh,jba,Bh,Dh,Fh,Gh,Ih,Jh,Kh,Mh,kba,lba,Oh,Ph,Nh,Uh,Eh,Lh,nba,Sh,Qh,Rh,Vh,mba,Th,Zh,$h,ai,bi,oba,ci,di,pba,ei,fi,gi,hi,ii,ji,tba,ki,uba,li,mi,pi,qi,ri,si,ti,ui,vi,xba,
yi,Ai,zba,Ci,Di,Ei,Fi,Gi,Ki,Li,Mi,Ni,Oi,Pi,Qi,Ri,Ti,Vi,Wi,Yi,Zi,$i,Bba,Cba,Dba,ej,cj,jj,dj,kj,ij,mj,Fba,Gba,hj,nj,Hba,oj,xj,yj,zj,Aj,Bj,Cj,Dj,Ij,Hj,Jj,Kj,Mba,Lba,Lj,Nba,Mj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Oba,Pba,Qba,Zj,ak,bk,ck,fk,gk,hk,ik,jk,lk,mk,nk,Sba,Rba,ok,Tba,Uba,pk,qk,rk,sk,Vba,Xba,uk,vk,wk,xk,yk,zk,Ak,Bk,Ck,Dk,Ek,$ba,Zba,Hk,Jk,Kk,Ik,Gk,Fk,Lk,Mk,Nk,Pk,Ok,aca,bca,cca,dl,el,gl,fca,fl,jl,ll,kl,dca,gca,ol,ql,rl,sl,tl,ul,vl,wl,xl,yl,zl,hca,Al,Bl,Cl,Dl,El,Fl,Gl,tk,jca,Il,Jl,Kl,Hl,Ll,kca,Nl,lca,
Ml,mca,nca,Pl,Ql,Sl,Tl,Ul,Vl,Rl,Wl,Ol,pca,qca,oca,rca,Xl,sca,Yl,Zl,$l,am,bm,cm,dm,tca,em,fm,gm,uca,vca,hm,jm,im,lm,mm,nm,om,xca,qm,rm,tm,sm,um,vm,zca,Bca,Cca,Eca,xm,ym,zm,Am,Bm,Cm,Em,Fm,Gca,Fca,Gm,Lm,Mm,Pm,Hca,Sm,Rm,Tm,Ica,fn,jn,gn,Kca,hn,kn,ln,nn,mn,Mca,Lca,on,Oca,Nca,Pca,sn,Qca,un,vn,wn,tn,xn,Rca,Sca,yn,Tca,Uca,An,Bn,Zca,Cn,Dn,En,Fn,$ca,Hn,Jn,Mn,Pn,Rn,On,Nn,Sn,ada,Tn,Un,Vn,Wn,cda,ao,bo,co,eda,eo,fo,go,ho,io,jo,ko,fda,mo,no,oo,qo,po,ro,so,to,uo,vo,wo,xo,yo,zo,Ao,gda,Bo,Co,hda,Do,Eo,ida,Go,jda,Ho,
Io,kda,lda,Jo,Ko,Mo,Oo,Po,Qo,Ro,So,Lo,No,nda,To,Uo,Wo,Vo,oda,pda,qda,Xo,Yo,Zo,$o,uda,vda,wda,xda,yda,ep,fp,zda,gp,Ada,Bda,hp,ip,jp,kp,lp,mp,np,op,pp,qp,rp,sp,tp,up,Cda,Dda,vp,Eda,xp,wp,Ap,Bp,zp,Fda,Jda,Ida,Ep,Kda,Lda,Mda,Oda,Nda,Fp,Gp,Hp,Pda,Jp,Kp,Qda,Rda,Lp,Mp,Np,Wp,Sda,Xp,Yp,Uda,Zp,Vda,$p,bq,aq,cq,dq,fq,Xda,gq,Wda,hq,Yda,iq,Zda,$da,kq,mq,nq,oq,pq,lq,qq,rq,wq,xq,uq,aea,cea,dea,zq,Aq,Bq,Cq,eea,Dq,Eq,Fq,Gq,Hq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Pq,Sq,Rq,gea,hea,Tq,Vq,Qq,Uq,fea,Wq,Xq,jea,kea,lea,ar,br,dr,Yq,er,fr,
iea,mea,nea,hr,gr,ir,kr,sea,oea,tea,or,pr,qr,rr,sr,cr,uea,tr,vea,wea,xea,yea,zea,vr,wr,xr,yr,Eea,Br,Gea,Ar,Cr,Hea,Iea,Jea,Ir,Kea,Lea,Jr,Mea,Sr,Nea,Pr,Qr,Rr,Oea,Vr,Ur,Pea,Xr,Qea,Sea,Uea,Zr,Vea,Wea,afa,Xea,ds,ffa,es,fs,hfa,is,ifa,jfa,js,lfa,ls,ms,ns,mfa,ps,qs,rs,ts,vs,ws,ofa,pfa,xs,qfa,rfa,ys,sfa,tfa,As,yfa,Bs,xfa,zfa,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Cfa,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Ffa,Vs,Gfa,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,jt,kt,Vha,Wha,lt,mt,ot,pt,qt,rt,dia,tt,eia,wt,xt,zt,At,Bt,Ct,Et,Ft,iia,Gt,
Ht,It,fia,Jt,lia,oia,Kt,Nt,Pt,qia,sia,Qt,tia,uia,via,zia,xia,yia,gu,ju,iu,Aia,lu,mu,nu,Cia,tu,vu,Dia,wu,xu,uu,zu,Eia,Fia,Bu,Gia,Du,Eu,Hia,Fu,Gu,Hu,Ju,Lu,Mu,Au,Nu,Pu,Ou,Mia,Kia,Lia,Nia,Oia,Pia,Su,Tu,Ria,Sia,Via,Yu,Zu,$u,Wia,dv,ev,Yia,gv,fv,jv,lv,Zia,$ia,cja,bja,dja,gja,hja,eja,zv,fja,Av,ija,mja,nja,lja,qja,rja,kja,pja,Jv,wja,Kv,yja,Ov,Pv,zja,Aja,Cja,Eja,Fja,oja,Gja,Hja,Ija,Jja,Kja,Nja,Qv,Sv,Oja,Zv,$v,cw,bw,dw,ew,fw,gw,hw,iw,Tja,Uja,kw,lw,Vja,Wja,mw,Xja,Yja,nw,ow,Zja,pw,$ja,rw,tw,bka,cka,uw,eka,fka,
qw,xw,gka,aka,hka,jka,ika,vw,yw,kka,ww,dka,lka,Aw,mka,Bw,nka,zw,oka,pka,Cw,qka,Dw,rka,Ew,ska,Gw,tka,uka,vka,wka,Kw,xka,yka,zka,Aka,Bka,Cka,Dka,Eka,Mw,Fka,Nw,Ika,Hka,Gka,Ow,Jka,Pw,Qw,Sw,Lka,Ww,Vw,Rw,Xw,Mka,Yw,Nka,$w,ax,Pka,Qka,bx,cx,Rka,Ska,Oka,Uka,Vka,Wka,ex,Xka,fx,gx,$ka,Zka,Yka,ala,hx,dla,ix,jx,gla,fla,ela,hla,qx,rx,ila,ox,jla,lx,px,nx,mx,kla,nla,lla,qla,rla,pla,xx,Ax,Bx,tla,zx,Cx,Dx,Fx,Gx,Jx,Kx,Hx,vla,Lx,Mx,wla,Ox,Px,Qx,zla,Sx,Tx,Ala,Bla,Cla,Wx,Ela,Fla,Gla,Yx,Hla,Jla,Zx,Kla,$x,ay,Vv,Sla,ey,Tla,
Ula,Vla,fy,Xla,ny,Yla,ama,dma,bma,yy,wy,ema,vy,zy,Ay,hma,jma,Ey,Fy,lma,R,Gy,Hy,Iy,Jy,Ky,Ly,mma,My,Ny,Oy,Py,rma,tma,vma,xma,yma,Ry,Ama,Bma,Xy,Yy,Cma,Dma,Zy,bz,cz,Ema,ez,Fma,hz,gz,iz,Gma,jz,kz,dz,lz,Hma,Kma,Lma,mz,nz,oz,Mma,pz,qz,sz,tz,Nma,Sma,uz,vz,Uma,wz,zz,yz,Cz,Bz,Xma,Dz,Ez,Wma,Yma,gA,xz,Zma,$ma,iA,jA,kA,lA,mA,oA,pA,rA,ana,sA,wA,uA,dna,xA,vA,fna,jna,BA,cna,bna,CA,kna,lna,mna,FA,HA,IA,ona,pna,JA,GA,nna,qna,KA,rna,LA,MA,sna,NA,OA,QA,tna,SA,TA,UA,VA,WA,XA,YA,una,ZA,aB,wna,xna,$A,zna,Ana,bB,Bna,eB,
Cna,fB,hB,Dna,gB,iB,Ena,kB,Hna,mB,nB,sB,Jna,pB,uB,wB,Kna,yB,rB,vB,tB,Lna,zB,Mna,AB,Nna,oB,qB,Ina,xB,BB,Ona,Pna,DB,Qna,Rna,Sna,EB,Tna,GB,Una,FB,HB,IB,Vna,JB,KB,LB,MB,NB,Wna,PB,Xna,Yna,QB,RB,SB,TB,Zna,OB,UB,$na,aoa,VB,WB,XB,YB,boa,coa,$B,doa,aC,bC,eoa,foa,cC,goa,hoa,loa,moa,ioa,joa,koa,dC,fC,eC,gC,hC,noa,ooa,iC,jC,kC,poa,lC,mC,nC,qoa,roa,oC,soa,pC,toa,qC,rC,uoa,voa,woa,xoa,zoa,yoa,tC,Aoa,Boa,Coa,uC,vC,wC,Doa,yC,xC,CC,DC,EC,FC,GC,Eoa,HC,AC,Foa,IC,KC,LC,Goa,MC,NC,OC,PC,QC,RC,SC,TC,Hoa,UC,VC,Ioa,WC,XC,
$C,aD,bD,cD,dD,Joa,eD,fD,gD,Koa,Loa,hD,iD,hna,AA,Poa,Qoa,Roa,Soa,Toa,Uoa,tA,Voa,jD,Zoa,Yoa,Xoa,kD,Woa,apa,lD,epa,bpa,cpa,gpa,hpa,oD,fpa,ipa,pD,qD,rD,jpa,kpa,lpa,sD,nD,mpa,npa,opa,tD,ppa,qpa,rpa,vD,uD,spa,tpa,upa,vpa,wpa,ypa,ina,gna,wD,yD,AD,BD,CD,DD,zD,FD,Apa,HD,Cpa,ID,Epa,Dpa,Bpa,Fpa,Gpa,Hpa,JD,ena,KD,Ipa,yA,Jpa,MD,ND,OD,Kpa,Lpa,Mpa,Npa,Opa,Ppa,Qpa,PD,Rpa,QD,RD,Spa,SD,Tpa,UD,Upa,VD,WD,XD,YD,Vpa,Wpa,Xpa,Zpa,ZD,$pa,Ypa,$D,aE,bE,cE,aqa,dE,eE,CE,xE,eqa,jqa,DE,GE,HE,pE,rqa,fE,kqa,yE,AE,KE,OE,sqa,gqa,
tqa,mE,RE,lE,lqa,iqa,SE,cqa,BE,qqa,UE,VE,vqa,wqa,WE,xqa,yqa,zqa,Aqa,XE,Bqa,Gqa,Fqa,Cqa,Eqa,Dqa,YE,Hqa,ZE,Iqa,Jqa,$E,bF,cF,Mqa,Oqa,fF,Pqa,Rqa,hF,Sqa,iF,jF,Tqa,Vqa,Yqa,Zqa,$qa,mF,dra,fra,gra,Wqa,bra,cra,hra,ira,mra,ora,rF,sF,pra,rra,sra,tra,ura,tF,Ara,vF,yF,Cra,Bra,Dra,Era,AF,BF,wF,CF,DF,Fra,FF,Jra,Gra,Ira,NF,QF,Xra,Rra,KF,UF,Wra,Yra,MF,Zra,$ra,VF,Pra,bsa,asa,HF,LF,PF,hsa,dsa,isa,esa,fsa,gsa,jsa,WF,ksa,lsa,YF,ZF,aG,GF,TF,Tra,Hra,Sra,Vra,Ura,cG,nsa,csa,jG,kG,lG,mG,qsa,nG,rsa,pG,oG,Qra,ssa,msa,SF,tsa,
Mra,JF,Lra,qra,tG,uG,vsa,vG,wG,xG,zG,yG,AG,wsa,xsa,BG,DG,ysa,zsa,Bsa,Asa,EG,Csa,FG,Dsa,GG,Esa,HG,IG,JG,KG,LG,MG,Fsa,NG,Gsa,OG,QG,Jsa,PG,Ksa,Hsa,Isa,Lsa,Msa,RG,SG,TG,UG,VG,WG,Osa,Psa,aH,$G,Ssa,Rsa,Tsa,dH,Qsa,eH,XG,fH,cH,bH,ZG,YG,hH,iH,kH,mH,nH,Wsa,oH,Vsa,pH,qH,rH,sH,tH,uH,Xsa,vH,wH,Dy,V,xH,Ysa,Zsa,yH,$sa,BH,ata,bta,cta,fta,dta,eta,gta,CH,hta,ita,jta,kta,lta,DH,EH,FH,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,SH,TH,UH,VH,WH,XH,YH,ZH,oI,pI,qI,rI,sI,tI,uI,vI,wI,xI,yI,zI,AI,BI,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,
NI,OI,PI,QI,RI,SI,nta,mta,pta,qta,ota,TI,rta,UI,VI,WI,XI,tta,sta,YI,ZI,$I,uta,fJ,gJ,vta,xta,hJ,yta,iJ,jJ,zta,kJ,Ata,Bta,Dta,Eta,Fta,mJ,lJ,Cta,nJ,Ita,Gta,Hta,Kta,Lta,oJ,Mta,Jta,pJ,qJ,Pta,Qta,rJ,Rta,Sta,sJ,uJ,vJ,wJ,xJ,AJ,CJ,DJ,Tta,Uta,EJ,Wta,Xta,FJ,Yta,HJ,Zta,$ta,IJ,JJ,aua,bua,KJ,dua,cua,LJ,gua,MJ,hua,NJ,OJ,PJ,RJ,iua,jua,kua,lua,mua,SJ,UJ,qua,tua,nua,VJ,Dua,Cua,WJ,Fua,Eua,Hua,Iua,Kua,Jua,Lua,Mua,Nua,Oua,XJ,YJ,Pua,Qua,Rua,Tua,Uua,Vua,Wua,Xua,eK,Zua,$ua,cK,dK,Yua,ava,bva,fK,eva,cva,gva,fva,hva,Usa,iva,
jva,kva,lva,gK,qva,nva,ova,pva,rva,hK,sva,uva,vva,tva,iK,wva,GJ,yva,zva,Vta,xva,jK,kK,Ava,Bva,Cva,lK,nK,Eva,oK,rK,Fva,sK,Gva,Hva,tK,Jva,Kva,Lva,Mva,Nva,Ova,Pva,yK,Qva,zK,Rva,Sva,Tva,Uva,Vva,Wva,DK,EK,FK,Xva,GK,Yva,IK,$va,Zva,JK,KK,LK,MK,awa,NK,OK,bwa,PK,QK,fwa,cwa,ewa,dwa,gwa,RK,SK,hwa,iwa,jwa,kwa,TK,lwa,nwa,mwa,UK,VK,WK,XK,YK,$K,aL,bL,cL,dL,owa,eL,fL,qwa,pwa,gL,rwa,hL,iL,jL,kL,lL,oL,pL,qL,rL,sL,tL,uL,vL,twa,vwa,uwa,wL,ywa,zwa,Awa,Bwa,AL,Dwa,CL,Ewa,DL,EL,FL,GL,Gwa,IL,Iwa,Hwa,Kwa,Jwa,JL,KL,LL,ML,NL,
OL,PL,SL,Lwa,Nwa,Owa,UL,Pwa,Uv,Rwa,Qwa,VL,Twa,Swa,Vwa,Uwa,Wwa,Xwa,Ywa,$wa,axa,exa,fxa,dxa,gxa,bM,hxa,eM,cM,fM,dM,mva,ixa,jxa,kxa,lxa,kM,jM,oxa,mM,rxa,vM,wM,sxa,xM,yM,txa,uxa,AM,BM,vxa,Cxa,Dxa,Gxa,Exa,Hxa,Ixa,Jxa,Kxa,Mxa,MM,Qxa,PM,Sxa,Pxa,Txa,Uxa,OM,Rxa,QM,RM,SM,oM,hM,VM,Xxa,Vxa,Wxa,WM,ZM,Zxa,YM,aN,$xa,aya,dN,eN,fN,jN,cya,dya,kN,lN,eya,fya,gya,hya,mN,jya,iya,kya,nN,lya,mya,pN,qN,nya,tN,pya,vN,rN,qya,rya,oya,wN,xN,AN,sya,tya,zN,CN,BN,EN,GN,uya,JN,vya,yya,wya,NN,ON,zya,RN,SN,TN,UN,VN,XN,Bya,Aya,Cya,
ZN,Eya,Dya,Fya,Gya,Hya,Iya,eO,fO,Jya,gO,hO,Kya,Lya,iO,lO,Nya,Mya,mO,nO,oO,Oya,pO,qO,rO,sO,Pya,tO,uO,Qya,vO,Rya,Tya,Sya,AO,yO,zO,Uya,Vya,Wya,BO,CO,DO,EO,FO,Xya,IO,JO,LO,MO,NO,PO,QO,RO,SO,Yya,aza,TO,Zya,$ya,eza,fza,VO,hza,gza,iza,jza,kza,XO,ZO,lza,mza,nza,pza,oza,$O,aP,bP,cP,qza,rza,sza,tza,uza,gP,wza,vza,yza,iP,zza,nP,Bza,Cza,kP,hP,jP,pP,Fza,qP,mP,xza,Eza,oP,Aza,Dza,Gza,dP,Hza,lP,sP,tP,uP,vP,Jza,yP,zP,AP,BP,CP,DP,Kza,EP,GP,FP,HP,IP,Lza,JP,Mza,Oza,Nza,KP,LP,Pza,MP,NP,Qza,OP,Rza,PP,Sza,QP,Tza,UP,TP,
XP,WP,Uza,VP,$P,Vza,Wza,aQ,bQ,cQ,dQ,fQ,Xza,HN,aAa,cO,Yza,ZP,$za,dO,Zza,bAa,dAa,cAa,eAa,fAa,jQ,gAa,kQ,hAa,mQ,nQ,oQ,pQ,qQ,rQ,sQ,tQ,jAa,uQ,vQ,wQ,xQ,AQ,yQ,zQ,BQ,CQ,DQ,EQ,mAa,FQ,LQ,oAa,pAa,MQ,NQ,OQ,PQ,sAa,uAa,tAa,QQ,wAa,xAa,yAa,zAa,AAa,BAa,CAa,RQ,SQ,TQ,DAa,UQ,FAa,GAa,HAa,IAa,JAa,KAa,WQ,XQ,ZQ,$Q,aR,NAa,OAa,YQ,PAa,bR,LAa,MAa,QAa,cR,dR,eR,fR,SAa,TAa,gR,hR,RAa,jR,VAa,YAa,XAa,ZAa,$Aa,aBa,bBa,kR,cBa,dBa,fBa,gBa,hBa,iBa,jBa,lR,eBa,mR,nR,oR,pR,qR,kBa,uR,lBa,mBa,nBa,vR,oBa,wR,xR,yR,AR,tBa,qBa,rBa,zR,pBa,BR,uBa,
CR,DR,xBa,yBa,vBa,wBa,ER,FR,BBa,CBa,ABa,EBa,GR,HBa,IBa,JBa,FBa,KBa,GBa,MBa,NBa,HR,IR,OBa,PBa,QBa,RBa,SBa,KR,LR,TBa,UBa,VBa,MR,XBa,NR,YBa,OR,dCa,$Ba,ZBa,WBa,bCa,cCa,eCa,fCa,hCa,gCa,iCa,jCa,kCa,lCa,mCa,PR,QR,nCa,qCa,RR,rCa,tCa,uCa,sCa,SR,vCa,TR,yCa,zCa,xCa,wCa,VR,oCa,pCa,ECa,FCa,GCa,HCa,ZR,ICa,UR,ACa,YR,CCa,DCa,LCa,JCa,MCa,NCa,KCa,OCa,PCa,QCa,aS,RCa,SCa,TCa,UCa,VCa,WCa,eS,XCa,YCa,ZCa,fS,gS,hS,iS,dDa,gDa,eDa,aDa,kS,$Ca,fDa,nS,iDa,hDa,oS,kDa,mDa,nDa,lDa,rS,oDa,sDa,tDa,xS,zS,AS,BS,uDa,sS,CS,ES,wDa,vDa,
wS,HS,IS,xDa,JS,GS,zDa,ADa,BDa,CDa,DDa,tS,qDa,KS,uS,LS,IDa,NS,JDa,KDa,GDa,PS,LDa,QS,EDa,SS,HDa,MDa,RS,OS,NDa,TS,ODa,MS,QDa,WS,US,XS,VS,YS,ZS,RDa,$S,aT,bT,cT,SDa,dT,TDa,fT,VDa,WDa,XDa,iT,hT,gT,YDa,ZDa,$Da,aEa,kT,lT,mT,bEa,cEa,dEa,nT,eEa,pT,fEa,oT,qT,rT,gEa,iEa,mEa,jEa,kEa,lEa,nEa,wT,xT,oEa,qEa,rEa,sEa,yT,zT,xEa,yEa,zEa,ET,FT,AEa,GT,wEa,BEa,AT,tEa,CEa,BT,CT,uEa,vEa,DT,DEa,EEa,FEa,ara,era,IT,JT,HEa,GEa,KT,LT,MT,IEa,JEa,KEa,NT,LEa,MEa,PT,NEa,QT,RT,OEa,ST,QEa,TT,UEa,WT,uT,PEa,WEa,ZT,SEa,TEa,REa,XT,VT,
UT,VEa,$Ea,YEa,XEa,aU,aFa,bU,bFa,cU,dU,cFa,dFa,eFa,fFa,gFa,fU,gU,hU,iU,jU,kU,jFa,kFa,tT,vT,nFa,nU,oU,pEa,rU,mU,oFa,lU,lFa,mFa,sU,tU,pFa,qU,sT,pU,qFa,rFa,sFa,uU,uFa,tFa,vU,yFa,wU,AFa,zFa,yU,xU,CFa,AU,zU,DFa,wFa,CU,BFa,xFa,BU,DU,EFa,FFa,EU,HU,HFa,FU,LFa,GU,MFa,IU,JFa,IFa,NFa,JU,OFa,PFa,SFa,RFa,QFa,KU,TFa,WFa,XFa,QU,RU,ZFa,$Fa,SU,TU,VU,cGa,WU,dGa,NU,YFa,fGa,gGa,iGa,ZEa,ZU,hGa,UU,aGa,jGa,kGa,lGa,mGa,UFa,PU,MU,OU,nGa,bV,cV,oGa,pGa,qGa,sGa,rGa,dV,tGa,vGa,uGa,xGa,fV,BGa,yGa,AGa,CGa,gV,GGa,EGa,FGa,IGa,JGa,
KGa,hV,eV,LGa,DGa,NGa,EV,OGa,zGa,PGa,OV,RGa,SGa,QV,QGa,RV,SV,TGa,TV,UV,VV,WV,VGa,YGa,XGa,WGa,YV,ZGa,XV,$Ga,$V,bW,aHa,dHa,bHa,cHa,eHa,gHa,fHa,hHa,iHa,cW,kHa,mHa,lHa,nHa,oHa,jHa,pHa,rHa,tHa,uHa,qHa,vHa,dW,eW,wHa,xHa,sHa,fW,yHa,zHa,AHa,BHa,DHa,gW,hW,FHa,kW,lW,IHa,mW,JHa,KHa,nW,GHa,LHa,MHa,NHa,qW,OHa,QHa,PHa,RHa,rW,sW,SHa,tW,UHa,uW,vW,WHa,xW,wW,XHa,zW,VHa,AW,YHa,yW,ZHa,BW,$Ha,HHa,pW,bIa,cIa,dIa,eIa,fIa,gIa,hIa,iIa,kIa,lIa,mIa,jIa,nIa,oIa,DW,pIa,qIa,EW,FW,rIa,sIa,tIa,HW,vIa,JW,wIa,xIa,IW,GW,uIa,MW,LW,
yIa,NW,KW,zIa,PW,DIa,SW,EIa,BIa,QW,FIa,TW,CIa,GIa,UW,IIa,OW,JIa,KIa,HIa,LIa,RW,MIa,NIa,AIa,VW,WW,XW,YW,OIa,ZW,eU,iFa,PIa,QIa,VFa,hFa,$W,RIa,SIa,TIa,VIa,WIa,XIa,YIa,ZIa,$Ia,aX,bJa,cJa,dJa,eJa,fJa,cX,gJa,dX,eX,fX,gX,kJa,iJa,hJa,iX,jX,kX,lX,nJa,mX,oJa,rJa,qJa,pJa,nX,aJa,bX,sJa,xJa,vJa,yJa,wJa,tJa,zJa,uJa,BJa,oX,DJa,EJa,FJa,gH,uX,GJa,WR,IJa,pDa,JJa,vX,aW,KJa,CX,xX,qS,tX,DX,FX,YU,$U,GX,BCa,AX,BX,XU,OJa,NJa,LJa,yX,HX,QJa,lS,RJa,ZV,jDa,JX,DS,HJa,wX,SJa,UJa,TJa,VJa,KX,cDa,WJa,XJa,MJa,pX,YJa,LX,zX,qX,ZJa,
MX,mS,$Ja,NX,yS,aKa,bKa,cKa,bDa,IX,PJa,eGa,jKa,fKa,mKa,eKa,nKa,oKa,TX,WX,sKa,pKa,rKa,YX,qKa,ZX,$X,uKa,vKa,OX,QX,iKa,fY,wKa,eY,SX,xKa,yKa,lKa,iY,zKa,AKa,PX,bY,cY,aY,lY,FKa,XX,hY,mY,nY,GKa,dY,tKa,kY,BKa,oY,HKa,IKa,JKa,gM,KKa,gY,pY,MKa,UX,qY,VX,NKa,OKa,hKa,jY,PKa,gKa,rY,sY,UDa,QKa,tY,uY,vY,RKa,wY,xY,yY,zY,AY,BY,TKa,SKa,CY,UKa,WKa,EY,YKa,DY,ZKa,GY,$Ka,HY,FY,IY,JY,aJ,aLa,bJ,zH,LY,cLa,UY,eJ,VY,cJ,SY,WY,gLa,hLa,iLa,jLa,bLa,kLa,KY,lLa,mLa,ZY,PY,YY,dZ,$Y,NY,nLa,MY,dLa,XY,aZ,fZ,QY,RY,cZ,bZ,pLa,gZ,hZ,qLa,iZ,
Y,rLa,sLa,vLa,wLa,ALa,jZ,BLa,xLa,CLa,kZ,lZ,mZ,ELa,HLa,FLa,KLa,SLa,RLa,LLa,TLa,NLa,OLa,MLa,WLa,YLa,aMa,bMa,dMa,eMa,iMa,yZ,fMa,lMa,jMa,nMa,AZ,ima,oMa,DZ,By,FZ,GZ,fma,HZ,qMa,rMa,zZ,wZ,oZ,rZ,IZ,JZ,sZ,KZ,sMa,JLa,pZ,qZ,vZ,tMa,uMa,LZ,vMa,MZ,wMa,BZ,uZ,tZ,nZ,ZLa,cMa,xZ,gMa,ULa,PLa,NZ,OZ,PZ,xMa,QZ,RZ,SZ,TZ,UZ,VZ,WZ,tLa,XZ,uLa,zMa,yMa,DLa,$La,AMa,mMa,BMa,CMa,XLa,ILa,GLa,zLa,yLa,QLa,hMa,kMa,VLa,EMa,YZ,DMa,ZZ,dJ,OY,eLa,EZ,$Z,a_,b_,c_,FMa,d_,e_,f_,eZ,TY,GMa,CZ,g_,HMa,h_,j_,k_,l_,m_,JMa,o_,p_,q_,IMa,n_,KMa,LMa,
r_,Cy,PMa,OMa,s_,t_,i_,QMa,RMa,u_,v_,SMa,w_,x_,y_,TMa,UMa,VMa,WMa,z_,XMa,A_,B_,C_,D_,E_,F_,YMa,G_,H_,I_,J_,K_,L_,M_,N_,ZMa,$Ma,aNa,O_,P_,Q_,R_,bNa,S_,cNa,T_,dNa,U_,eNa,V_,W_,X_,Y_,Z_,$_,fNa,b0,c0,gNa,hNa,iNa,e0,d0,g0,h0,f0,j0,jNa,kNa,NMa,i0,k0,lNa,l0,nNa,mNa,m0,n0,pMa,oNa,o0,pNa,p0,rNa,sNa,qNa,tNa,q0,uNa,vNa,wNa,r0,s0,t0,xNa,u0,v0,w0,yNa,x0,y0,zNa,z0,a0,A0,B0,C0,wta,D0,ANa,E0,BNa,F0,G0,CNa,DNa,H0,I0,J0,ENa,K0,FNa,L0,M0,HNa,GNa,INa,JNa,KNa,N0,O0,P0,LNa,MNa,NNa,ONa,PNa,QNa,RNa,SNa,TNa,UNa,Q0,R0,VNa,
WNa,S0,T0,U0,V0,XNa,W0,YNa,X0,ZNa,$Na,Y0,aOa,bOa,Z0,cOa,dOa,$0,a1,eOa,b1,c1,e1,fOa,f1,g1,h1,gOa,i1,hOa,j1,k1,iOa,l1,jOa,kOa,lOa,mOa,nOa,oOa,n1,pOa,qOa,rOa,sOa,tOa,o1,p1,uOa,q1,r1,s1,t1,vOa,u1,wOa,xOa,yOa,x1,zOa,AOa,BOa,COa,y1,w1,DOa,A1,EOa,B1,FOa,C1,D1,E1,F1,G1,GOa,IOa,HOa,JOa,H1,KOa,LOa,I1,MOa,J1,K1,L1,NOa,OOa,M1,POa,N1,QOa,O1,ROa,SOa,TOa,gma,UOa,VOa,aa,fa,ea,fj,Pa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{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.ma=function(a){return a instanceof Array?a:ka(g.q(a))};
na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(pa)pa(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.je=b.prototype};
qa=function(){this.K=!1;this.C=null;this.u=void 0;this.i=1;this.D=this.I=0;this.X=this.B=null};
ra=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
sa=function(a,b){a.B={kK:b,qL:!0};a.i=a.I||a.D};
g.x=function(a,b,c){a.i=c;return{value:b}};
g.ta=function(a){a.i=0};
ua=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
va=function(a,b){a.i=b;a.I=0};
wa=function(a){a.I=0;var b=a.B.kK;a.B=null;return b};
xa=function(a){a.X=[a.B];a.I=0;a.D=0};
ya=function(a,b){var c=a.X.splice(0)[0];(c=a.B=a.B||c)?c.qL?a.i=a.I||a.D:void 0!=c.fb&&a.D<c.fb?(a.i=c.fb,a.B=null):a.i=a.D:a.i=b};
baa=function(a){this.i=new qa;this.u=a};
caa=function(a,b){ra(a.i);var c=a.i.C;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Aa(a)};
za=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.K=!1,e;var f=e.value}catch(h){return a.i.C=null,sa(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.u(a.i);if(b)return a.i.K=!1,{value:b.value,done:!1}}catch(c){a.i.u=void 0,sa(a.i,c)}a.i.K=!1;if(a.i.B){b=a.i.B;a.i.B=null;if(b.qL)throw b.kK;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){ra(a.i);a.i.C?b=za(a,a.i.C.next,b,a.i.S):(a.i.S(b),b=Aa(a));return b};
this.throw=function(b){ra(a.i);a.i.C?b=za(a,a.i.C["throw"],b,a.i.S):(sa(a.i,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
eaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.A=function(a){return eaa(new daa(new baa(a)))};
g.Ba=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ca=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{cL:e,PO:f}}return{cL:-1,PO:void 0}};
Da=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,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ga=function(a){return a?a:Array.prototype.fill};
Ha=function(a){return a?a:Array.prototype.copyWithin};
g.Ia=function(a,b,c){a=a.split(".");c=c||g.B;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.Ja=function(a,b){a=a.split(".");b=b||g.B;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ka=function(){};
La=function(a){a.Se=void 0;a.getInstance=function(){return a.Se?a.Se:a.Se=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Na=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Qa=function(a){return Object.prototype.hasOwnProperty.call(a,Pa)&&a[Pa]||(a[Pa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.D=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.D=gaa:g.D=haa;return g.D.apply(null,arguments)};
g.Ra=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ta=function(){return Date.now()};
g.Ua=function(a,b){function c(){}
c.prototype=b.prototype;a.je=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Cf=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Va=function(a){return a};
Wa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Wa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.vR=b)};
Xa=function(a,b){var c=Wa.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(Wa,this,d+a[e])};
iaa=function(){};
Ya=function(a){g.B.setTimeout(function(){throw a;},0)};
Za=function(a){throw a;throw Error("invalid error level: 2");};
$a=function(a,b){Za(Error("Invalid wire type: "+a+" (at position "+b+")"))};
ab=function(){Za(Error("Failed to read varint, encoding is invalid."))};
bb=function(a,b){Za(Error("Tried to read past the end of the data "+b+" > "+a))};
cb=function(a){a.push(65533)};
db=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
jaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.eb=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.fb=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("")};
gb=function(a,b){return 0==a.lastIndexOf(b,0)};
jb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.kb=function(a){return/^[\s\xa0]*$/.test(a)};
tb=function(a,b){if(b)a=a.replace(lb,"&amp;").replace(nb,"&lt;").replace(ob,"&gt;").replace(pb,"&quot;").replace(rb,"&#39;").replace(sb,"&#0;");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(lb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(nb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ob,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(pb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(rb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(sb,"&#0;"))}return a};
ub=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.xb=function(a,b){var c=0;a=vb(String(a)).split(".");b=vb(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=wb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||wb(0==f[2].length,0==h[2].length)||wb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
wb=function(a,b){return a<b?-1:a>b?1:0};
g.yb=function(){var a=g.B.navigator;return a&&(a=a.userAgent)?a:""};
Bb=function(a){var b=zb;return b?b.brands.some(function(c){return(c=c.brand)&&-1!=c.indexOf(a)}):!1};
Cb=function(a){return-1!=g.yb().indexOf(a)};
Db=function(){var a=zb;return!!a&&0<a.brands.length};
Eb=function(){return Db()?!1:Cb("Opera")};
Fb=function(){return Db()?!1:Cb("Trident")||Cb("MSIE")};
Gb=function(){return Cb("Firefox")||Cb("FxiOS")};
Ib=function(){return Cb("Safari")&&!(Hb()||(Db()?0:Cb("Coast"))||Eb()||(Db()?0:Cb("Edge"))||(Db()?Bb("Microsoft Edge"):Cb("Edg/"))||(Db()?Bb("Opera"):Cb("OPR"))||Gb()||Cb("Silk")||Cb("Android"))};
Hb=function(){return Db()?Bb("Chromium"):(Cb("Chrome")||Cb("CriOS"))&&!(Db()?0:Cb("Edge"))||Cb("Silk")};
Jb=function(){var a=zb;return!!a&&!!a.platform};
Lb=function(){return Jb()?"Android"===zb.platform:Cb("Android")};
Mb=function(){return Cb("iPhone")&&!Cb("iPod")&&!Cb("iPad")};
Nb=function(){return Mb()||Cb("iPad")||Cb("iPod")};
Ob=function(){return Jb()?"macOS"===zb.platform:Cb("Macintosh")};
Pb=function(){return Jb()?"Windows"===zb.platform:Cb("Windows")};
Qb=function(){var a=g.yb(),b="";if(Pb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Nb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Ob())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(ub(g.yb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Lb())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Jb()?"Chrome OS"===zb.platform:Cb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Rb=function(a){return a[a.length-1]};
laa=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.Tb=function(a,b,c){b=Sb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Sb=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.Ub=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.Wb=function(a,b){return 0<=Vb(a,b)};
g.Xb=function(a){return 0==a.length};
Yb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.$b=function(a,b){b=Vb(a,b);var c;(c=0<=b)&&g.Zb(a,b);return c};
g.Zb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.ac=function(a,b){b=Sb(a,b,void 0);0<=b&&g.Zb(a,b)};
maa=function(a,b){var c=0;laa(a,function(d,e){b.call(void 0,d,e,a)&&g.Zb(a,e)&&c++})};
g.bc=function(a){return Array.prototype.concat.apply([],arguments)};
g.fc=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[]};
gc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ic=function(a,b,c,d){Array.prototype.splice.apply(a,hc(arguments,1))};
hc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
naa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Oa(e)?"o"+g.Qa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.nc=function(a,b,c){return jc(a,c||kc,!1,b)};
oc=function(a,b){return jc(a,b,!0,void 0,void 0)};
jc=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.pc=function(a,b){a.sort(b||kc)};
oaa=function(a,b){var c=kc;g.pc(a,function(d,e){return c(b(d),b(e))})};
g.qc=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=paa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
kc=function(a,b){return a>b?1:a<b?-1:0};
paa=function(a,b){return a===b};
g.rc=function(a,b,c){c=g.nc(a,b,c);0>c&&g.ic(a,-(c+1),0,b)};
g.tc=function(a,b,c){var d={};(0,g.sc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
qaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
raa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
uc=function(a){uc[" "](a);return a};
vc=function(a,b){try{return uc(a[b]),!0}catch(c){}return!1};
wc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
xc=function(){var a=g.B.document;return a?a.documentMode:void 0};
g.zc=function(a){return wc(saa,a,function(){return 0<=g.xb(yc,a)})};
g.Bc=function(a){return Number(taa)>=a};
g.Ec=function(a,b){void 0===b&&(b=0);Cc();b=Dc[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("")};
g.Fc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.Ec(b,3)};
Ic=function(a){var b=[];Hc(a,function(c){b.push(c)});
return b};
Kc=function(a){!g.Jc||g.zc("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;Hc(a,function(f){d[e++]=f});
return d.subarray(0,e)};
Hc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Lc[n];if(null!=p)return p;if(!g.kb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Cc();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))}};
Cc=function(){if(!Lc){Lc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Dc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Lc[f]&&(Lc[f]=e)}}}};
Nc=function(a){return null==a||Mc(a)?a:"string"===typeof a?Kc(a):null};
Mc=function(a){return Oc&&null!=a&&a instanceof Uint8Array};
Pc=function(a){this.i=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Sc=function(a,b,c){return b===c?Qc||(Qc=new Uint8Array(0)):uaa?a.slice(b,c):new Uint8Array(a.subarray(b,c))};
Tc=function(a){if(a.constructor===Uint8Array)return a;if(a.constructor===ArrayBuffer)return new Uint8Array(a);if(a.constructor===Array)return new Uint8Array(a);if(a.constructor===String)return Kc(a);if(a.constructor===Pc)return a.isEmpty()?Qc||(Qc=new Uint8Array(0)):new Uint8Array(a.i=Nc(a.i));if(a instanceof Uint8Array)return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, or Array of numbers");
};
Vc=function(a,b){b=void 0===b?{}:b;b=void 0===b.Ll?!1:b.Ll;this.u=null;this.i=this.B=this.D=0;this.C=!1;this.Ll=b;a&&Uc(this,a)};
Uc=function(a,b){a.u=Tc(b);a.D=0;a.B=a.u.length;a.i=a.D};
Wc=function(a){a.i>a.B&&(a.C=!0,bb(a.B,a.i))};
Xc=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,Wc(a),d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,Wc(a),d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,Wc(a),d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,Wc(a),d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,Wc(a),d>>>0;a.i+=5;if(128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++])return a.C=!0,ab(),d;Wc(a);return d};
Zc=function(a){var b={},c=void 0===b.CD?!1:b.CD;this.I={Ll:void 0===b.Ll?!1:b.Ll};this.CD=c;b=this.I;Yc.length?(c=Yc.pop(),b&&(c.Ll=b.Ll),a&&Uc(c,a),a=c):a=new Vc(a,b);this.i=a;this.D=this.i.i;this.u=this.B=-1;this.C=!1};
$c=function(a){var b=a.i;(b=b.i==b.B)||(b=a.C)||(b=a.i,b=b.C||0>b.i||b.i>b.B);if(b)return!1;a.D=a.i.i;var c=Xc(a.i);b=c>>>3;c&=7;if(!(0<=c&&5>=c))return a.C=!0,$a(c,a.D),!1;a.B=b;a.u=c;return!0};
ad=function(a){switch(a.u){case 0:if(0!=a.u)ad(a);else a:{a=a.i;for(var b=a.i,c=0;10>c;c++){if(0===(a.u[b]&128)){a.i=b+1;Wc(a);break a}b++}a.C=!0;ab()}break;case 1:a.i.advance(8);break;case 2:2!=a.u?ad(a):(b=Xc(a.i),a.i.advance(b));break;case 5:a.i.advance(4);break;case 3:b=a.B;do{if(!$c(a)){a.C=!0;Za(Error("Unmatched start-group tag: stream EOF"));break}if(4==a.u){a.B!=b&&(a.C=!0,Za(Error("Unmatched end-group tag")));break}ad(a)}while(1);break;default:a.C=!0,$a(a.u,a.D)}};
bd=function(a){var b=Xc(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.C=!0,0>b?Za(Error("Tried to read a negative byte length: "+b)):bb(b,a.u.length-a.i),b=new Uint8Array(0);else{var c=a.Ll?a.u.subarray(a.i,a.i+b):Sc(a.u,a.i,a.i+b);a.i+=b;b=c}return b};
cd=function(){this.i=new Uint8Array(64);this.u=0};
dd=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
ed=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
vaa=function(){this.B=[];this.u=0;this.i=new cd};
fd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
gd=function(a){fd(a,a.i.end())};
jd=function(a,b,c){if(null!=c&&null!=c){dd(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)));hd=b;id=d;c=hd;for(b=id;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
kd=function(a,b,c){null!=c&&(c=Tc(c),dd(a.i,8*b+2),dd(a.i,c.length),gd(a),fd(a,c))};
ld=function(a,b,c,d){if(null!=c){dd(a.i,8*b+2);gd(a);var e=a.u;b=a.B.length-1;d(c,a);gd(a);dd(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}};
nd=function(a){Object.isFrozen(a)||(md?a[md]|=1:void 0!==a.i?a.i|=1:Object.defineProperties(a,{i:{value:1,configurable:!0,writable:!0,enumerable:!1}}));return a};
qd=function(a){return null!==a&&"object"===typeof a&&a.constructor===Object};
rd=function(a){return Nc(a instanceof Pc?a.i||"":a)};
sd=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(Mc(a))return g.Ec(a);if(a instanceof Pc){if(a.isEmpty())a="";else{var b=a.i;b=null==b||"string"===typeof b?b:Oc&&b instanceof Uint8Array?g.Ec(b):null;a=a.i=b}return a}}return a};
ud=function(a,b){if(null!=a)return Array.isArray(a)||qd(a)?td(a,b):b(a)};
td=function(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]=ud(a[d],b);if(b=Array.isArray(a)){var e;md?e=a[md]:e=a.i;b=(null==e?0:e)&1}b&&nd(c);return c}e={};for(c in a)e[c]=ud(a[c],b);return e};
vd=function(a){a=sd(a);return Array.isArray(a)?td(a,vd):a};
waa=function(a){return Mc(a)?new Uint8Array(a):a};
xd=function(a,b){wd=b;a=new a(b);wd=null;return a};
Ad=function(a,b,c){var d=wd;wd=null;a||(a=d);d=this.constructor.oT;a||(a=d?[d]:[]);this.B=(d?0:-1)-(this.constructor.qda||0);this.i=null;this.Vf=a;a:{d=this.Vf.length;a=d-1;if(d&&(d=this.Vf[a],qd(d))){this.C=a-this.B;this.u=d;break a}void 0!==b&&-1<b?(this.C=Math.max(b,a+1-this.B),this.u=null):this.C=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)a=c[b],a<this.C?(a+=this.B,(d=this.Vf[a])?Array.isArray(d)&&nd(d):this.Vf[a]=yd):(zd(this),(d=this.u[a])?Array.isArray(d)&&nd(d):this.u[a]=yd)};
zd=function(a){var b=a.C+a.B;a.Vf[b]||(a.u=a.Vf[b]={})};
Bd=function(a,b,c){return-1===b?null:b>=a.C?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&a.u[b]?a.u[b]:a.Vf[b+a.B]};
Dd=function(a,b,c){c=void 0===c?!1:c;var d=Bd(a,b,c);null==d&&(d=yd);d===yd&&(d=nd(d.slice()),Cd(a,b,d,c));return d};
Ed=function(a,b,c){a=Bd(a,b);return null==a?c:a};
Cd=function(a,b,c,d){(void 0===d?0:d)||b>=a.C?(zd(a),a.u[b]=c):a.Vf[b+a.B]=c;return a};
Fd=function(a,b,c){var d=void 0===d?!1:d;return Cd(a,b,null==c?nd([]):Array.isArray(c)?nd(c):c,d)};
Gd=function(a,b,c,d){c!==d?Cd(a,b,c):Cd(a,b,void 0,!1);return a};
Jd=function(a,b,c,d){(c=Id(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),Cd(a,c,void 0));return Cd(a,b,d)};
Id=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=Bd(a,e)&&(0!==c&&Cd(a,c,void 0,!1),c=e)}return c};
Kd=function(a,b,c,d,e){if(-1===c)return null;a.i||(a.i={});var f=a.i[c];if(f)return f;e=Bd(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);return a.i[c]=b};
Ld=function(a,b,c,d){a.i||(a.i={});var e=a.i[c];if(!e){d=Dd(a,c,void 0===d?!1:d);e=[];for(var f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}return e};
Md=function(a,b,c){var d;a.i||(a.i={});var e=c?c.Vf:c;a.i[b]=c;return Cd(a,b,e,void 0===d?!1:d)};
Nd=function(a,b,c){var d=void 0===d?!1:d;if(c){var e=nd([]);for(var f=0;f<c.length;f++)e[f]=c[f].Vf;a.i||(a.i={});a.i[b]=c}else a.i&&(a.i[b]=void 0),e=yd;return Cd(a,b,e,d)};
Od=function(a,b,c,d,e){var f=Ld(a,d,b);c=c?c:new d;a=Dd(a,b);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.Vf)):(f.push(c),a.push(c.Vf))};
xaa=function(a,b){return sd(b)};
Td=function(a){Pd=!0;try{return JSON.stringify(a.toJSON(),xaa)}finally{Pd=!1}};
Ud=function(a,b){return xd(a,b?JSON.parse(b):null)};
Vd=function(a,b){b.D&&(a.D=b.D.slice());var c=b.i;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Ld(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Vd(f[h],e[h])}else(f=Kd(a,e.constructor,h,void 0,f))&&Vd(f,e)}}}};
Wd=function(a,b,c){return Ed(a,b,void 0===c?0:c)};
Xd=function(a,b){if(a=a.D){gd(b);for(var c=0;c<a.length;c++)fd(b,a[c])}};
Zd=function(a,b,c){return a[Yd]||(a[Yd]=function(d,e){return b(d,e,c)})};
be=function(a){var b=a[Yd];if(!b){var c=a[$d]||(a[$d]=a());b=function(d,e){return ae(d,e,c)};
a[Yd]=b}return b};
yaa=function(a){var b=a.Zca;if(b)return be(b);if(b=a.yda){var c=a.pT;delete a.pT;return Zd(a.cS.i,b,c)}};
zaa=function(a){var b=yaa(a),c=a.cS,d=a.bda;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Aaa=function(a){var b=a[0];switch(a.length){case 2:var c=a[1];return function(u,v,y){return b(u,v,y,c)};
case 3:var d=a[1],e=be(a[2]);return function(u,v,y){return b(u,v,y,d,e)};
case 4:var f=a[1],h=a[3],l=be(a[2]);return function(u,v,y){return b(u,v,y,f,l,h)};
case 5:var m=a[1],n=Zd(m,a[3],a[4]);return function(u,v,y){return b(u,v,y,m,n)};
case 6:var p=a[1],r=a[5],t=Zd(p,a[3],a[4]);return function(u,v,y){return b(u,v,y,p,t,r)};
default:throw Error("Unsupported number of parameters, expected [2-6], got "+a.length);}};
ae=function(a,b,c){for(;$c(b)&&4!=b.u;){var d=b.B,e=c[d];if(e)Array.isArray(e)&&(e=c[d]=Aaa(e));else{var f=c[0];f&&(f=f[d])&&(e=c[d]=zaa(f))}e&&e(b,a,d)||(e=b,d=a,f=e.D,ad(e),e.CD||(e=Sc(e.i.u,f,e.i.i),(f=d.D)?f.push(e):d.D=[e]))}return a};
ce=function(a,b){var c=new vaa;b(a,c);a=c.u+c.i.length();if(0===a)c=new Uint8Array(0);else{a=new Uint8Array(a);for(var d=c.B,e=d.length,f=b=0;f<e;f++){var h=d[f];0!==h.length&&(a.set(h,b),b+=h.length)}d=c.i;e=d.u;0!==e&&(a.set(d.i.subarray(0,e),b),d.u=0);c.B=[a];c=a}return c};
ee=function(a,b,c){if(2!==a.u)return!1;var d=Xc(a.i);a=a.i;var e=a.i;a.i+=d;Wc(a);a=a.u;var f;if(Baa)(f=de)||(f=de=new TextDecoder("utf-8",{fatal:!1})),f=f.decode(a.subarray(e,e+d));else{d=e+d;for(var h=[],l=null,m,n,p;e<d;)m=a[e++],128>m?h.push(m):224>m?e>=d?cb(h):(n=a[e++],194>m||128!==(n&192)?(e--,cb(h)):h.push((m&31)<<6|n&63)):240>m?e>=d-1?cb(h):(n=a[e++],128!==(n&192)||224===m&&160>n||237===m&&160<=n||128!==((f=a[e++])&192)?(e--,cb(h)):h.push((m&15)<<12|(n&63)<<6|f&63)):244>=m?e>=d-2?cb(h):(n=
a[e++],128!==(n&192)||0!==(m<<28)+(n-144)>>30||128!==((f=a[e++])&192)||128!==((p=a[e++])&192)?(e--,cb(h)):(m=(m&7)<<18|(n&63)<<12|(f&63)<<6|p&63,m-=65536,h.push((m>>10&1023)+55296,(m&1023)+56320))):cb(h),8192<=h.length&&(l=db(l,h),h.length=0);f=db(l,h)}Cd(b,c,f);return!0};
Caa=function(a,b,c,d,e){if(2!==a.u)return!1;var f=new d,h=a.i.B,l=Xc(a.i),m=a.i.i+l;a.i.B=m;e(f,a);e=m-a.i.i;if(0!==e)throw Error("Message parsing ended unexpectedly. Expected to read "+(l+" bytes, instead read "+(l-e)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.i.i=m;a.i.B=h;Od(b,c,f,d);return!0};
fe=function(a,b,c){if(2!==a.u)return!1;Cd(b,c,bd(a));return!0};
ge=function(a,b,c){if(2!==a.u)return!1;a=bd(a);Dd(b,c).push(a);return!0};
he=function(a,b,c){if(0!==a.u)return!1;a=Xc(a.i);Cd(b,c,a);return!0};
ie=function(a,b,c){if(0!==a.u)return!1;for(var d=a.i,e=128,f=0,h=a=0;4>h&&128<=e;h++)e=d.u[d.i++],f|=(e&127)<<7*h;128<=e&&(e=d.u[d.i++],f|=(e&127)<<28,a|=(e&127)>>4);if(128<=e)for(h=0;5>h&&128<=e;h++)e=d.u[d.i++],a|=(e&127)<<7*h+3;if(128>e){d=f>>>0;e=a>>>0;if(a=e&2147483648)d=~d+1>>>0,e=~e>>>0,0==d&&(e=e+1>>>0);d=4294967296*e+(d>>>0);a=a?-d:d}else d.C=!0,ab(),a=void 0;Cd(b,c,a);return!0};
je=function(a){Ad.call(this,a)};
Daa=function(a,b){kd(b,1,Bd(a,1));kd(b,2,Bd(a,2));Xd(a,b)};
ke=function(a){Ad.call(this,a)};
Eaa=function(a,b){kd(b,1,Bd(a,1));kd(b,2,Bd(a,2));Xd(a,b)};
le=function(a){Ad.call(this,a)};
Faa=function(a,b){kd(b,1,Bd(a,1));kd(b,2,Bd(a,2));Xd(a,b)};
me=function(a){Ad.call(this,a)};
Gaa=function(a,b){ld(b,1,Kd(a,je,1),Daa);ld(b,2,Kd(a,ke,2),Eaa);ld(b,3,Kd(a,le,3),Faa);Xd(a,b)};
ne=function(a){this.EJ=a};
oe=function(a,b,c){this.u=a;this.C=b;this.i=c||[];this.Ur=new Map};
pe=function(a,b){oe.call(this,a,3,b)};
qe=function(a,b){oe.call(this,a,2,b)};
g.re=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.se=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.se.apply(null,d):g.re(d)}};
g.E=function(){this.ai=this.ai;this.Eh=this.Eh};
g.H=function(a,b){g.te(a,g.Ra(g.re,b))};
g.te=function(a,b){a.ai?b():(a.Eh||(a.Eh=[]),a.Eh.push(b))};
g.ue=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Haa=function(a){var b=g.Ja("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.B.$googDebugFname||b}catch(h){e="Not available",c=!0}b=ve(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,we[c])c=we[c];else{c=String(c);if(!we[c]){var f=/function\s+([^\(]+)/m.exec(c);we[c]=f?f[1]:"[Anonymous]"}c=we[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}};
ve=function(a,b){b||(b={});b[xe(a)]=!0;var c=a.stack||"";(a=a.vR)&&!b[xe(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=ve(a,b));return c};
xe=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
ye=function(a,b){g.ue.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)};
Ae=function(a){return!(!a||!a[ze])};
Jaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ce=e;this.key=++Iaa;this.ex=this.Ay=!1};
Ce=function(a){a.ex=!0;a.listener=null;a.proxy=null;a.src=null;a.Ce=null};
g.De=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Ee=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Fe=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Ge=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
He=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ie=function(a){for(var b in a)return b};
Le=function(a){for(var b in a)return a[b]};
Me=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Ne=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Oe=function(a,b){return null!==a&&b in a};
g.Pe=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Qe=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Re=function(a,b){return(b=Qe(a,b,void 0))&&a[b]};
g.Se=function(a){for(var b in a)return!1;return!0};
g.Te=function(a){for(var b in a)delete a[b]};
Ue=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ve=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.We=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Xe=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.Xe(a[c]);return b};
g.Ze=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<Ye.length;f++)c=Ye[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
$e=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
af=function(a){this.src=a;this.listeners={};this.i=0};
bf=function(a,b){var c=b.type;c in a.listeners&&g.$b(a.listeners[c],b)&&(Ce(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
cf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ex&&f.listener==b&&f.capture==!!c&&f.Ce==d)return e}return-1};
ff=function(a,b,c,d,e){if(d&&d.once)return ef(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)ff(a,b[f],c,d,e);return null}c=gf(c);return Ae(a)?a.Ra(b,c,g.Oa(d)?!!d.capture:!!d,e):hf(a,b,c,!1,d,e)};
hf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Oa(e)?!!e.capture:!!e,l=jf(a);l||(a[kf]=l=new af(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Kaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Laa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(lf(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");mf++;return c};
Kaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Maa;return a};
ef=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ef(a,b[f],c,d,e);return null}c=gf(c);return Ae(a)?a.Wz(b,c,g.Oa(d)?!!d.capture:!!d,e):hf(a,b,c,!0,d,e)};
nf=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)nf(a,b[f],c,d,e);else d=g.Oa(d)?!!d.capture:!!d,c=gf(c),Ae(a)?a.qc(b,c,d,e):a&&(a=jf(a))&&(b=a.Nv(b,c,d,e))&&of(b)};
of=function(a){if("number"!==typeof a&&a&&!a.ex){var b=a.src;if(Ae(b))bf(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(lf(c),d):b.addListener&&b.removeListener&&b.removeListener(d);mf--;(c=jf(b))?(bf(c,a),0==c.i&&(c.src=null,b[kf]=null)):Ce(a)}}};
lf=function(a){return a in pf?pf[a]:pf[a]="on"+a};
Maa=function(a,b){if(a.ex)a=!0;else{b=new ye(b,this);var c=a.listener,d=a.Ce||a.src;a.Ay&&of(a);a=c.call(d,b)}return a};
jf=function(a){a=a[kf];return a instanceof af?a:null};
gf=function(a){if("function"===typeof a)return a;a[qf]||(a[qf]=function(b){return a.handleEvent(b)});
return a[qf]};
g.rf=function(){g.E.call(this);this.B=new af(this);this.rb=this;this.La=null};
sf=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.ex&&h.capture==c){var l=h.listener,m=h.Ce||h.src;h.Ay&&bf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
tf=function(a,b){this.B=a;this.C=b;this.u=0;this.i=null};
uf=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.i,a.i=b)};
vf=function(a){return function(){return a}};
wf=function(){};
xf=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
yf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Bf=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Naa=function(a,b){var c=0;return function(d){g.B.clearTimeout(c);var e=arguments;c=g.B.setTimeout(function(){a.apply(b,e)},50)}};
Df=function(){if(void 0===Cf){var a=null,b=g.B.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Va,createScript:Va,createScriptURL:Va})}catch(c){g.B.console&&g.B.console.error(c.message)}Cf=a}else Cf=a}return Cf};
Gf=function(a,b){this.i=a===Ef&&b||"";this.u=Ff};
Hf=function(a){return a instanceof Gf&&a.constructor===Gf&&a.u===Ff?a.i:"type_error:Const"};
g.If=function(a){return new Gf(Ef,a)};
Kf=function(a,b){this.i=b===Jf?a:"";this.Nk=!0};
Mf=function(a,b){this.i=b===Lf?a:""};
Nf=function(a){return a instanceof Mf&&a.constructor===Mf?a.i:"type_error:TrustedResourceUrl"};
Qaa=function(a,b){var c=Hf(a);if(!Oaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Paa,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 Gf?Hf(d):encodeURIComponent(String(d))});
return Of(a)};
Of=function(a){var b=Df();a=b?b.createScriptURL(a):a;return new Mf(a,Lf)};
g.Qf=function(a,b){this.i=b===Pf?a:""};
g.Rf=function(a){return a instanceof g.Qf&&a.constructor===g.Qf?a.i:"type_error:SafeUrl"};
Sf=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Raa);return b&&Saa.test(b[1])?new g.Qf(a,Pf):null};
g.Xf=function(a){a instanceof g.Qf||(a="object"==typeof a&&a.Nk?a.Jh():String(a),a=Vf.test(a)?new g.Qf(a,Pf):Sf(a));return a||Wf};
g.Yf=function(a,b){if(a instanceof g.Qf)return a;a="object"==typeof a&&a.Nk?a.Jh():String(a);if(b&&/^data:/i.test(a)&&(b=Sf(a)||Wf,b.Jh()==a))return b;Vf.test(a)||(a="about:invalid#zClosurez");return new g.Qf(a,Pf)};
$f=function(a,b){this.i=b===Zf?a:"";this.Nk=!0};
ag=function(a){return a instanceof $f&&a.constructor===$f?a.i:"type_error:SafeStyle"};
dg=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(bg).join(" "):bg(d),b+=c+":"+d+";")}return b?new $f(b,Zf):cg};
Taa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=ag(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new $f(c,Zf):cg};
bg=function(a){if(a instanceof g.Qf)return'url("'+g.Rf(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Gf?Hf(a):Uaa(String(a));if(/[{;}]/.test(a))throw new Xa("Value does not allow [{;}], got: %s.",[a]);return a};
Uaa=function(a){var b=a.replace(eg,"$1").replace(eg,"$1").replace(fg,"url");if(Vaa.test(b)){if(Waa.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||!Xaa(a))return"zClosurez"}else return"zClosurez";return Yaa(a)};
Xaa=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};
Yaa=function(a){return a.replace(fg,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Xf(d).Jh();return c+f+b+f+e})};
hg=function(a,b,c){this.i=c===gg?a:"";this.u=b;this.Nk=this.wE=!0};
g.ig=function(a){return a instanceof hg&&a.constructor===hg?a.i:"type_error:SafeHtml"};
kg=function(a){if(a instanceof hg)return a;var b="object"==typeof a,c=null;b&&a.wE&&(c=a.xr());return jg(tb(b&&a.Nk?a.Jh():String(a)),c)};
Zaa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=kg(f),e.push(g.ig(f).toString()),f=f.xr(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=kg(lg),d=c.xr(),e=[];a.forEach(b);return jg(e.join(g.ig(c).toString()),d)};
$aa=function(a){return Zaa(Array.prototype.slice.call(arguments))};
jg=function(a,b){var c=Df();a=c?c.createHTML(a):a;return new hg(a,b,gg)};
g.mg=function(a,b){Hf(a);Hf(a);return jg(b,null)};
aba=function(a,b){Hf(a);Hf(a);return new $f(b,Zf)};
ng=function(a,b){Hf(a);Hf(a);return Of(b)};
g.og=function(a,b){if(bba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ig(b)};
g.pg=function(a,b){b=b instanceof g.Qf?b:g.Yf(b);a.href=g.Rf(b)};
qg=function(a,b,c,d){a=a instanceof g.Qf?a:g.Yf(a);b=b||g.B;c=c instanceof Gf?Hf(c):c||"";return void 0!==d?b.open(g.Rf(a),c,d):b.open(g.Rf(a),c)};
rg=function(){a:{var a=g.B.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&cba.test(a))break a;a=""}return a};
dba=function(a,b){return a+Math.random()*(b-a)};
g.sg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.tg=function(a,b){a%=b;return 0>a*b?a+b:a};
g.ug=function(a,b,c){return a+c*(b-a)};
vg=function(a,b){return 1E-6>=Math.abs(a-b)};
g.wg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
xg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.yg=function(a,b){this.width=a;this.height=b};
g.zg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Ag=function(a){return a.width*a.height};
Bg=function(a){return encodeURIComponent(String(a))};
Cg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Dg=function(a){return a=tb(a,void 0)};
g.Eg=function(a){return null==a?"":String(a)};
Gg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Hg=function(a){var b=Number(a);return 0==b&&g.kb(a)?NaN:b};
Ig=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Jg=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
eba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
fba=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};
Ng=function(a){return a?new Kg(Lg(a)):Mg||(Mg=new Kg)};
Og=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.Pg=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Rg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Qg(document,"*",a,b)};
g.Sg=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.Qg(c,"*",a,b)[0]||null}return a||null};
g.Qg=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.Wb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Ug=function(a,b){g.De(b,function(c,d){c&&"object"==typeof c&&c.Nk&&(c=c.Jh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Tg.hasOwnProperty(d)?a.setAttribute(Tg[d],c):gb(d,"aria-")||gb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Vg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.yg(a.clientWidth,a.clientHeight)};
Xg=function(a){var b=Wg(a);a=a.parentWindow||a.defaultView;return g.Jc&&g.zc("10")&&a.pageYOffset!=b.scrollTop?new g.wg(b.scrollLeft,b.scrollTop):new g.wg(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Wg=function(a){return a.scrollingElement?a.scrollingElement:g.Yg||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Zg=function(a){return a?a.parentWindow||a.defaultView:window};
bh=function(a,b,c){var d=arguments,e=document,f=d[1],h=$g(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Ug(h,f));2<d.length&&ah(e,h,d,2);return h};
ah=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Na(f)||g.Oa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Oa(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.sc(h?g.fc(f):f,e)}}};
g.ch=function(a){return $g(document,a)};
$g=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.dh=function(a){return document.createTextNode(String(a))};
g.eh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.fh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.gh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
gba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.hh=function(a){var b;if(hba&&!(g.Jc&&g.zc("9")&&!g.zc("10")&&g.B.SVGElement&&a instanceof g.B.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Oa(b)&&1==b.nodeType?b:null};
g.ih=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};
Lg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.oh=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.eh(a);var c=Lg(a);a.appendChild(c.createTextNode(String(b)))}};
qh=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||ph(a)):a.hasAttribute("tabindex")&&ph(a))&&g.Jc){var c;"function"!==typeof a.getBoundingClientRect||g.Jc&&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};
ph=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
sh=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return rh(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.Wb(f.className.split(/\s+/),c))},!0,d)};
rh=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};
Kg=function(a){this.i=a||g.B.document||document};
uh=function(a,b,c){var d=a;b&&(d=(0,g.D)(a,b));"function"!==typeof g.B.setImmediate||!c&&g.B.Window&&g.B.Window.prototype&&(Db()||!Cb("Edge"))&&g.B.Window.prototype.setImmediate==g.B.setImmediate?(th||(th=iba()),th(d)):g.B.setImmediate(d)};
iba=function(){var a=g.B.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Cb("Presto")&&(a=function(){var e=g.ch("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.D)(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&&!Fb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.BJ;c.BJ=null;e()}};
return function(e){d.next={BJ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.B.setTimeout(e,0)}};
vh=function(){this.u=this.i=null};
wh=function(){this.next=this.scope=this.i=null};
g.Ah=function(a,b){xh||jba();yh||(xh(),yh=!0);zh.add(a,b)};
jba=function(){if(g.B.Promise&&g.B.Promise.resolve){var a=g.B.Promise.resolve(void 0);xh=function(){a.then(Bh)}}else xh=function(){uh(Bh)}};
Bh=function(){for(var a;a=zh.remove();){try{a.i.call(a.scope)}catch(b){Ya(b)}uf(Ch,a)}yh=!1};
Dh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Fh=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){Eh(b,2,c)},function(c){Eh(b,3,c)})}catch(c){Eh(this,3,c)}};
Gh=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1};
Ih=function(a,b,c){var d=Hh.get();d.u=a;d.onRejected=b;d.context=c;return d};
Jh=function(a){if(a instanceof Fh)return a;var b=new Fh(g.Ka);Eh(b,2,a);return b};
Kh=function(a){return new Fh(function(b,c){c(a)})};
Mh=function(a,b,c){Lh(a,b,c,null)||g.Ah(g.Ra(b,a))};
kba=function(a){return new Fh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Mh(e,b,c)})};
lba=function(a){return new Fh(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],Mh(m,g.Ra(f,l),h);
else b(e)})};
Oh=function(a,b){b=Ih(b,b,void 0);b.B=!0;Nh(a,b);return a};
Ph=function(a,b){if(0==a.i)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.i&&1==d?Ph(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Qh(c),Rh(c,e,3,b)))}a.B=null}else Eh(a,3,b)};
Nh=function(a,b){a.u||2!=a.i&&3!=a.i||Sh(a);a.C?a.C.next=b:a.u=b;a.C=b};
Uh=function(a,b,c,d){var e=Ih(null,null,null);e.i=new Fh(function(f,h){e.u=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 Th?h(l):f(m)}catch(n){h(n)}}:h});
e.i.B=a;Nh(a,e);return e.i};
Eh=function(a,b,c){0==a.i&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.i=1,Lh(c,a.aY,a.bY,a)||(a.K=c,a.i=b,a.B=null,Sh(a),3!=b||c instanceof Th||mba(a,c)))};
Lh=function(a,b,c,d){if(a instanceof Fh)return Nh(a,Ih(b||g.Ka,c||null,d)),!0;if(Dh(a))return a.then(b,c,d),!0;if(g.Oa(a))try{var e=a.then;if("function"===typeof e)return nba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
nba=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)}};
Sh=function(a){a.I||(a.I=!0,g.Ah(a.ZR,a))};
Qh=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Rh=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.i)b.i.B=null,Vh(b,c,d);else try{b.B?b.u.call(b.context):Vh(b,c,d)}catch(e){Wh.call(null,e)}uf(Hh,b)};
Vh=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
mba=function(a,b){a.D=!0;g.Ah(function(){a.D&&Wh.call(null,b)})};
Th=function(a){Wa.call(this,a)};
g.Xh=function(a,b){g.rf.call(this);this.Wf=a||1;this.Fx=b||g.B;this.uJ=(0,g.D)(this.OX,this);this.GL=g.Ta()};
g.Yh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.D)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.D)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.B.setTimeout(a,b||0)};
Zh=function(a,b){var c=null;return(new Fh(function(d,e){c=g.Yh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).yh(function(d){g.B.clearTimeout(c);
throw d;})};
$h=function(a){this.K=a;this.i=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Xh(this.flushInterval);this.u.Ra("tick",this.aO,!1,this);this.D=!1};
ai=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.aO()};
bi=function(a,b){return a.I.has(b)?void 0:a.i.get(b)};
oba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
ci=function(a){this.i=a;this.i.iJ("/client_streamz/po/w/rl",{Bn:3,An:"mn"},{Bn:2,An:"ac"},{Bn:2,An:"sc"},{Bn:3,An:"rk"})};
di=function(a){this.i=a;this.i.iJ("/client_streamz/po/w/el",{Bn:3,An:"en"},{Bn:3,An:"rk"})};
pba=function(a){this.i=a;this.i.qR("/client_streamz/po/w/cec",{Bn:2,An:"ec"},{Bn:3,An:"rk"})};
ei=function(a){Ad.call(this,a,-1,qba)};
fi=function(a){Ad.call(this,a,-1,rba)};
gi=function(a){Ad.call(this,a)};
hi=function(a){Ad.call(this,a)};
ii=function(a){Ad.call(this,a,-1,sba)};
ji=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";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};
tba=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 v=e[1],y=e[2],z=e[3],C=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var F=z^v&(y^z);var G=1518500249}else F=v^y^z,G=1859775393;else 60>u?(F=v&y|z&(v|y),G=2400959708):(F=v^y^z,G=3395469782);F=((r<<5|r>>>27)&4294967295)+F+C+G+t[u]&4294967295;C=z;z=y;y=(v<<30|v>>>2)&4294967295;v=r;r=F}e[0]=e[0]+r&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+C&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],v=0,y=r.length;v<y;++v)u.push(r.charCodeAt(v));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 v=24;0<=v;v-=8)r[t++]=e[u]>>v&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,NR: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}}};
ki=function(a,b,c){var d=String(g.B.location.href);return d&&a&&b?[b,uba(ji(d),a,c||null)].join(" "):null};
uba=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.sc(d,function(l){e.push(l)}),li(e.join(" "));
var f=[],h=[];g.sc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Xb(f)?[c,b,a]:[f.join(":"),c,b,a];g.sc(d,function(l){e.push(l)});
a=li(e.join(" "));a=[c,a];g.Xb(h)||a.push(h.join(""));return a.join("_")};
li=function(a){var b=tba();b.update(a);return b.NR().toLowerCase()};
mi=function(a){this.i=a||{cookie:""}};
pi=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=vb(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}};
qi=function(a){return!!vba.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
ri=function(a){a=void 0===a?!1:a;var b=g.B.__SAPISID||g.B.__APISID||g.B.__3PSAPISID||g.B.__OVERRIDE_SID;qi(a)&&(b=b||g.B.__1PSAPISID);if(b)return!0;var c=new mi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");qi(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
si=function(a,b,c,d){(a=g.B[a])||(a=(new mi(document)).get(b));return a?ki(a,c,d):null};
ti=function(a,b){b=void 0===b?!1:b;var c=ji(String(g.B.location.href)),d=[];if(ri(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.B.__SAPISID:g.B.__APISID;e||(e=new mi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?ki(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&qi(b)&&((b=si("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=si("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
ui=function(a){Ad.call(this,a,-1,wba)};
vi=function(){};
g.wi=function(a,b,c,d){this.C=a;this.D=b;this.i=this.B=a;this.I=c||0;this.K=d||2};
g.xi=function(a){a.i=Math.min(a.D,a.i*a.K);a.B=Math.min(a.D,a.i+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.i):0));a.u++};
g.zi=function(a){var b=[];yi(new xba,a,b);return b.join("")};
xba=function(){};
yi=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),yi(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),Ai(d,c),c.push(":"),yi(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ai(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);}}};
Ai=function(a,b){b.push('"',a.replace(yba,function(c){var d=Bi[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Bi[c]=d);return d}),'"')};
zba=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"}};
Ci=function(){};
Di=function(){};
Ei=function(a){if(!a.B&&"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.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
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?Cg(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?"":"="+Bg(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?"="+Bg(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 Cg(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(Aba,"$1")};
$i=function(a,b,c){return Vi(Zi(a,b),b,c)};
Bba=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.aj=function(a){g.rf.call(this);this.headers=new Map;this.Ba=a||null;this.D=!1;this.Aa=this.i=null;this.Va=this.X="";this.u=0;this.C="";this.I=this.Ka=this.Z=this.Ja=!1;this.K=0;this.oa=null;this.Sa="";this.xa=this.S=!1};
Cba=function(a,b,c,d,e,f,h){var l=new g.aj;bj.push(l);b&&l.Ra("complete",b);l.Wz("ready",l.AR);f&&(l.K=Math.max(0,f));h&&(l.S=h);l.send(a,c,d,e)};
Dba=function(a){return g.Jc&&g.zc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
ej=function(a,b){a.D=!1;a.i&&(a.I=!0,a.i.abort(),a.I=!1);a.C=b;a.u=5;cj(a);dj(a)};
cj=function(a){a.Ja||(a.Ja=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
jj=function(a){if(a.D&&"undefined"!=typeof fj)if(a.Aa[1]&&4==g.gj(a)&&2==a.getStatus())hj(a,"Local request error detected and ignored");else if(a.Z&&4==g.gj(a))g.Yh(a.SM,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){hj(a,"Request complete");a.D=!1;try{if(ij(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.gj(a)?a.i.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";cj(a)}}finally{dj(a)}}};
dj=function(a,b){if(a.i){kj(a);var c=a.i,d=a.Aa[0]?g.Ka:null;a.i=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
kj=function(a){a.i&&a.xa&&(a.i.ontimeout=null);a.oa&&(g.B.clearTimeout(a.oa),a.oa=null)};
ij=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.X)),!a&&g.B.self&&g.B.self.location&&(a=g.B.self.location.protocol,a=a.substr(0,a.length-1)),b=!Eba.test(a?a.toLowerCase():"");c=b}return c};
g.gj=function(a){return a.i?a.i.readyState:0};
g.lj=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
mj=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Sa){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Fba=function(a){return a.i&&a.isComplete()?a.i.getAllResponseHeaders()||"":""};
Gba=function(a){var b={};a=Fba(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.kb(a[c])){var d=fba(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 Fe(b,function(h){return h.join(", ")})};
hj=function(a,b){return b+" ["+a.Va+" "+a.X+" "+a.getStatus()+"]"};
nj=function(a){Ad.call(this,a)};
Hba=function(){var a=new nj,b=document.documentElement.getAttribute("lang");return Cd(a,5,b)};
oj=function(a){Ad.call(this,a)};
xj=function(a){Ad.call(this,a,31,Iba)};
yj=function(a){Ad.call(this,a,17,Jba)};
zj=function(a){var b=Date.now().toString();return Cd(a,4,b)};
Aj=function(a,b){return Nd(a,3,b)};
Bj=function(a,b){return Cd(a,14,b)};
Cj=function(a){Ad.call(this,a,6,Kba)};
Dj=function(a){Ad.call(this,a)};
Ij=function(a,b,c,d,e,f,h,l,m,n,p){g.rf.call(this);var r=this;this.Z="";this.u=[];this.Za="";this.bb=this.Ja=-1;this.Sa=!1;this.S=this.C=null;this.K=0;this.ub=1;this.timeoutMillis=0;this.Ba=!1;g.rf.call(this);this.ob=a;this.Va=b||g.Ka;this.D=new yj;this.jb=d;this.Ka=p;this.wb=g.Ra(dba,0,1);this.xa=e||null;this.X=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Wa=f||!1;!this.Wa&&(g.Ej&&g.zc(65)||g.Fj&&g.zc(45)||g.Gj&&g.zc(12)||Nb()&&g.xb(Qb(),12));a=Cd(new oj,
1,1);f||(f=Hba(),Md(a,11,f));Md(this.D,1,a);Cd(this.D,2,this.ob);this.I=new g.wi(1E4,3E5,.1);this.i=new g.Xh(this.I.getValue());g.H(this,this.i);ff(this.i,"tick",xf(Hj(this,n)),!1,this);this.oa=new g.Xh(6E5);g.H(this,this.oa);ff(this.oa,"tick",xf(Hj(this,n)),!1,this);this.Aa||this.oa.start();this.Wa||(ff(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ND()}),ff(document,"pagehide",this.ND,!1,this))};
Hj=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
Jj=function(a){a.xa||(a.xa=.01>a.wb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.xa};
Kj=function(a,b){a.I=new g.wi(1>b?1:b,3E5,.1);a.i.setInterval(a.I.getValue())};
Mba=function(a){Lba(a,function(b,c){b=Vi(b,"format","json");b=Zg().navigator.sendBeacon(b,Td(c));a.Ba&&!b&&(a.Ba=!1);return b})};
Lba=function(a,b){if(0!==a.u.length){var c=Zi(Jj(a),"format");c=Ti(c,"auth",a.Va(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=Aj(zj(a.D.clone()),e);0===d&&Bj(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}};
Lj=function(){g.ue.call(this,"event-logged",void 0)};
Nba=function(a,b,c){Cba(a.url,function(d){d=d.target;ij(d)?b(g.lj(d)):c(d.getStatus())},a.requestType,a.body,a.Eq,a.timeoutMillis,a.withCredentials)};
Mj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.I=Nba;this.i=""};
Nj=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new Mj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Qe()};
Oj=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}};
Pj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Qj=function(a,b){this.logger=a;this.i=b;this.startMillis=Date.now()};
Rj=function(){};
Sj=function(a){this.Yk=a;this.C=new Nj;this.i=new $h(this.C);this.clientError=new pba(this.i);this.u=new di(this.i);this.B=new ci(this.i)};
Tj=function(a){Ad.call(this,a)};
Uj=function(a){Ad.call(this,a)};
Vj=function(a){Ad.call(this,a)};
Wj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Xj=function(a){this.i=!1;if(a.challenge instanceof Vj){var b=Ed(a.challenge,4,"");a=Ed(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new Wj;this.u=c.promise;g.q((0,g.B[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({sR:d,zX:e})})},!0)).next();
c.promise.then(function(){})};
Oba=function(a){return ng(g.If("From proto message. b/12014412"),Bd(a,4)||"")};
Pba=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
Qba=function(){var a,b;if(void 0===Yj)try{Yj=null!==(b=null===(a=Pba())||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}catch(c){Yj=null}return Yj};
Zj=function(){};
ak=function(a){this.i=a};
bk=function(a){this.isValid=a};
ck=function(a){return new bk(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
fk=function(a,b){b=void 0===b?dk:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof bk&&d.isValid(a))return new ak(a,ek)}};
gk=function(){};
hk=function(a){this.i=a};
ik=function(a){if(a instanceof Zj)if(a instanceof ak)a=a.i;else throw Error("");else a=g.Rf(a);return a};
jk=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document,d=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.kk=function(a,b){a.src=Nf(b);jk(a)};
lk=function(a,b){return a.parseFromString(g.ig(b),"text/xml")};
mk=function(){this.i={};this.u=null};
nk=function(){mk.i||(mk.i=new mk);return mk.i};
Sba=function(a){var b=nk();return Rba(b,Kd(a,Tj,1),Kd(a,Uj,2),Ed(a,3,""))};
Rba=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return ok(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){ok(b,c).then(function(){a.u=d;f()},function(l){delete a.i[d];
h(l)})}));
return a.i[d]};
ok=function(a,b){return b?Tba(b):a?Uba(a):Promise.resolve()};
Tba=function(a){return new Promise(function(b,c){var d=g.ch("SCRIPT"),e=Oba(a);g.kk(d,e);d.onload=function(){g.gh(d);b()};
d.onerror=function(){g.gh(d);c(Error("EWLS"))};
(g.Pg("HEAD")[0]||document.documentElement).appendChild(d)})};
Uba=function(a){return new Promise(function(b){var c=g.ch("SCRIPT");if(a){var d=Bd(a,6);if(null===d||void 0===d)var e=null;else{var f=null===(e=Qba())||void 0===e?void 0:e.createScript(d);e=new hk(null!==f&&void 0!==f?f:d,ek)}}else e=null;if(e instanceof gk)if(e instanceof hk)e=e.i;else throw Error("");else e=e instanceof Kf&&e.constructor===Kf?e.i:"type_error:SafeScript";c.textContent=e;jk(c);(g.Pg("HEAD")[0]||document.documentElement).appendChild(c);g.gh(c);b()})};
pk=function(a){Ad.call(this,a)};
qk=function(a){Ad.call(this,a)};
rk=function(a){Ad.call(this,a)};
sk=function(a,b,c){this.client=a;this.Yk=b;this.i=c};
Vba=function(a){var b=nk().u,c,d,e,f,h;return g.A(function(l){if(1==l.i)return c=new pk,Gd(c,1,a.Yk,""),b&&Gd(c,2,b,""),d=a.i(),g.x(l,a.client.create(c,d),2);e=l.u;f=rd(Ed(e,2,""));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p<f.length;p++)n[p]=f[p]+97;if(g.B.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var r=0;r<n.length;r+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,r,r+8192));
n=p}n=Ud(Vj,n);return m.call(l,n)}h=Kd(e,Vj,1);if(!h)throw Error("Missing field");return l.return(h)})};
Xba=function(a,b){var c,d;return g.A(function(e){c=a.i();var f=new qk;f=Gd(f,1,a.Yk,"");d=Gd(f,2,b,"");f=e.return;var h=tk(a.client.i,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Wba);return f.call(e,h)})};
uk=function(a){this.i=a};
vk=function(a){Ad.call(this,a)};
wk=function(a,b,c){this.i=a;this.B=b;this.u=c};
xk=function(a,b,c){c=void 0===c?{}:c;this.kX=a;this.i=c;this.u=b};
yk=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e};
zk=function(a,b,c){c=void 0===c?{}:c;return new wk(b,a,c)};
Ak=function(a){Ad.call(this,a)};
Bk=function(a){Ad.call(this,a)};
Ck=function(a){Ad.call(this,a)};
Dk=function(a){Ad.call(this,a,-1,Yba)};
Ek=function(a,b){this.K=a.CT;this.S=b;this.i=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.K&&Zba(this)};
$ba=function(a,b){ff(a.i,"complete",function(){if(ij(a.i)){var c=g.lj(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){Fk(a,new Pj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Oj(a.i.getStatus());Gk(a,Hk(a));0==c?Ik(a,d):Fk(a,new Pj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.lj(a.i);var e={};d?(e=Jk(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.i.u+", error: "+a.i.getLastError());Gk(a,Hk(a));Fk(a,new Pj(d,c,e))}})};
Zba=function(a){a.K.tm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c)}catch(e){Fk(a,new Pj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Ik(a,d)}if("2"in b)for(b=Jk(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.K.tm("end",function(){Gk(a,Hk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.tm("error",function(){if(0!=a.u.length){var b=a.i.u;0!==b||ij(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=Oj(a.i.getStatus());break;default:c=14}Gk(a,Hk(a));Fk(a,new Pj(c,zba(b)+", error: "+a.i.getLastError()))}})};
Hk=function(a){var b={},c=Gba(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Jk=function(a,b){var c=2,d={};try{var e=Ud(Dk,b);c=Wd(e,1);var f=e.getMessage();Ld(e,Ck,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(c=5,f="Not Found: "+String(a.i.X)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
Kk=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Ik=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
Gk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
Fk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
Lk=function(a){this.D=a.qY||null;this.B=a.DX||!1};
Mk=function(a,b){g.rf.call(this);this.xa=a;this.K=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.X=new Headers;this.u=null;this.oa="GET";this.Z="";this.i=!1;this.S=this.C=this.D=null};
Nk=function(a){a.C.read().then(a.tS.bind(a)).catch(a.Bz.bind(a))};
Pk=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;Ok(a)};
Ok=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
aca=function(a){if(a.zi&&"function"==typeof a.zi)return a.zi();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.Na(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Me(a)};
bca=function(a){if(a.Yl&&"function"==typeof a.Yl)return a.Yl();if(!a.zi||"function"!=typeof a.zi){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Na(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Ne(a)}}};
cca=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Na(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=bca(a),e=aca(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Qk=function(a,b){this.i=this.S=this.C="";this.B=null;this.D=this.K="";this.I=!1;var c;a instanceof g.Qk?(this.I=void 0!==b?b:a.I,g.Rk(this,a.C),this.S=a.S,g.Sk(this,a.i),g.Tk(this,a.B),this.K=a.getPath(),dl(this,a.u.clone()),this.D=a.D):a&&(c=String(a).match(Hi))?(this.I=!!b,g.Rk(this,c[1]||"",!0),this.S=el(c[2]||""),g.Sk(this,c[3]||"",!0),g.Tk(this,c[4]),this.K=el(c[5]||"",!0),dl(this,c[6]||"",!0),this.D=el(c[7]||"")):(this.I=!!b,this.u=new fl(null,this.I))};
g.Rk=function(a,b,c){a.C=c?el(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Sk=function(a,b,c){a.i=c?el(b,!0):b};
g.Tk=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
dl=function(a,b,c){b instanceof fl?(a.u=b,dca(a.u,a.I)):(c||(b=gl(b,eca)),a.u=new fl(b,a.I))};
g.hl=function(a,b,c){a.u.set(b,c)};
g.il=function(a){return a instanceof g.Qk?a.clone():new g.Qk(a,void 0)};
el=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
gl=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,fca),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
fca=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
fl=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b};
jl=function(a){a.i||(a.i=new Map,a.u=0,a.B&&Mi(a.B,function(b,c){a.add(Cg(b),c)}))};
ll=function(a,b){jl(a);b=kl(a,b);return a.i.has(b)};
g.ml=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.i.set(kl(a,b),g.fc(c)),a.u=a.u+c.length)};
kl=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
dca=function(a,b){b&&!a.C&&(jl(a),a.B=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.ml(this,e,c))},a));
a.C=b};
gca=function(a){var b="";g.De(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.nl=function(a){g.E.call(this);this.u=a;this.i={}};
ol=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)ol(a,b,c[h],d,e,f);else{b=ef(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.i[b.key]=b}return a};
g.pl=function(a){g.De(a.i,function(b,c){this.i.hasOwnProperty(c)&&of(b)},a);
a.i={}};
ql=function(){this.B=!0;this.u=0;this.i=""};
rl=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
sl=function(){this.I=null;this.K=[];this.C=this.i=this.B=this.u=this.X=0;this.D=null;this.S=0};
tl=function(a,b,c,d){a.u=3;a.I="The stream is broken @"+a.X+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
ul=function(){this.i=null;this.u=0;this.B=new ql;this.C=new sl};
vl=function(a,b,c){a.i="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
wl=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
xl=function(a){this.X=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.K=!1;this.S=0;this.xa=/[\\"]/g;this.i=this.D=0;this.Z=!(!a||!a.MR)};
yl=function(a,b,c){a.D=3;a.X="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.X);};
zl=function(){this.D=this.B=null;this.u=this.i=0;this.C=[];this.I=!1};
hca=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 zl:new xl:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new ul:null:new sl:null};
Al=function(a){this.i=a;this.u=null;this.C=this.B=0;this.X=!1;this.D=this.K=this.I=null;this.S=new g.nl(this);this.S.Ra(this.i,"readystatechange",this.Z)};
Bl=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
Cl=function(a){g.pl(a.S);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
Dl=function(a){this.B=a;a=(0,g.D)(this.AU,this);this.B.D=a;a=(0,g.D)(this.lW,this);this.B.K=a;this.u={};this.i={}};
El=function(a,b){for(var c={},d=0;d<a.length;c={IB:c.IB},d++)c.IB=a[d],b.forEach(function(e){return function(f){try{f(e.IB)}catch(h){}}}(c))};
Fl=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
Gl=function(a){a=void 0===a?{}:a;this.D=a.Rda||g.Ja("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ja("withCredentials",a)||!1;this.C=a.Qda||[];this.I=a.Sda||[];this.i=a.Vda;this.B=a.Tda||!1};
tk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Hl(function(h){return new ica(function(l,m){var n={},p=jca(a,h,f);p.tm("error",function(r){return m(r)});
p.tm("metadata",function(r){n=r});
p.tm("data",function(r){var t=n;t=void 0===t?{}:t;l(new xk(r,h.nz(),t))})})},a.I).call(a,zk(e,c,d)).then(function(h){return h.kX})};
jca=function(a,b,c){var d=b.nz(),e=b.getMetadata(),f=Il(a,!0);a=Jl(a,e,f,c+d.getName());c=Kl(f,d.u,!1);$ba(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
Il=function(a,b){b=a.B&&!b;return a.i||b?new g.aj(new Lk({qY:a.i,DX:b})):new g.aj};
Jl=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.u)c.S=!0;if(a.D)a=d,g.Se(b)?d=a:(b=gca(b),"string"===typeof a?d=Vi(a,Bg("$httpHeaders"),b):(g.hl(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d};
Kl=function(a,b,c){if(c)if(a.isActive(),!g.Jc||g.Bc(10)){c=new Al(a);var d=new Dl(c)}else d=null;return new Ek({xhr:a,CT:d},b)};
Hl=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
Ll=function(){var a={format:"jspb"};this.i=new Gl(a)};
kca=function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")};
Nl=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=lca(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Ml(a,l),d+=Ml(a,l+4),e+=Ml(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return kca(e)};
lca=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Ml=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
mca=function(a){var b=new Ll,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new sk(b,a,function(){return c})};
nca=function(a){var b=mca(a.Yk);return new Ol(Object.assign({Uy:b},a))};
Pl=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,Pl.prototype)};
Ql=function(){g.E.apply(this,arguments);this.u=new Wj};
Sl=function(a,b){Rl(b).then(function(){a.u.resolve()})};
Tl=function(a,b,c,d,e){Ql.call(this);this.logger=a;this.B=c;this.D=d;this.C=0;g.H(this,b);Sl(this,e);this.i=new me};
Ul=function(a,b){Ql.call(this);this.i=a;Sl(this,b)};
Vl=function(a){Ql.call(this);if(a instanceof Pl){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+Nl(a.message)+":_"+Nl(a.stack)}else b=a.message+":"+a.stack,a="_"+Nl(a.message)+":_"+Nl(a.stack||"");this.i=new Uint8Array(g.eb(("WE:"+b).substring(0,2048)));this.B=new Uint8Array(g.eb(("WE:"+a).substring(0,2048)))};
Rl=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
Wl=function(a,b){return Promise.race([a,Rl(12E4).then(b)])};
Ol=function(a){this.i=void 0;this.u=new Wj;this.Uy=a.Uy;this.BM=a.BM;this.onError=a.onError;this.logger=a.Ida?new Rj:new Sj(a.Yk);var b=new Qj(this.logger,"r");this.ready().finally(function(){return void b.done()});
oca(this)};
pca=function(a,b,c){var d=window.webpocb;if(!d)throw new Pl(4,Error("PMD:Undefined"));d=d(rd(Ed(b,1,"")));return new Tl(a.logger,c,d,Wd(b,3),1E3*Wd(b,2))};
qca=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,v;return g.A(function(y){switch(y.i){case 1:d=void 0,e=a.i?6E4:1E3,f=new g.wi(e,6E5,.25,2),h=1;case 2:if(!(10>=h)){y.fb(4);break}ua(y,5);return g.x(y,Wl(a.logger.VE("c",h,Vba(a.Uy)),function(){return Promise.reject(new Pl(10,"JVZ:Timeout"))}),7);
case 7:return l=y.u,m=new Qj(a.logger,"b"),g.x(y,Sba(l),8);case 8:return n=new Xj({challenge:l}),g.x(y,Wl(n.snapshot({}),function(){return Promise.reject(new Pl(15,"MDA:Timeout"))}),9);
case 9:return p=y.u,m.done(),g.x(y,Wl(a.logger.VE("g",h,Xba(a.Uy,p)),function(){return Promise.reject(new Pl(10,"BWB:Timeout"))}),10);
case 10:r=y.u;t=new Qj(a.logger,"i");if(Wd(r,3))var z=pca(a,r,n);else n.dispose(),z=new Ul(rd(Ed(r,1,"")),1E3*Wd(r,2));u=z;t.done();null===(b=a.BM)||void 0===b?void 0:b.call(a,rd(Ed(r,1,"")));return y.return(u);case 5:v=wa(y);d=v instanceof Pl?v:v instanceof Pj?new Pl(11,v):new Pl(12,v);a.logger.nw(d.code);null===(c=a.onError)||void 0===c?void 0:c.call(a,d,"RE");a:{if(v instanceof Pj)switch(v.code){case 2:case 13:case 14:case 4:break;default:z=!1;break a}z=!0}if(!z)throw d;return g.x(y,Rl(f.getValue()),
11);case 11:g.xi(f);case 3:h++;y.fb(2);break;case 4:throw d;}})};
oca=function(a){var b,c,d,e;g.A(function(f){switch(f.i){case 1:return c=void 0,ua(f,4),g.x(f,qca(a),6);case 6:c=f.u;va(f,5);break;case 4:if(d=wa(f),e=d instanceof Error?d:Error(String(d)),a.i){a.logger.nw(13);f.fb(0);break}else a.logger.nw(14),c=new Vl(e);case 5:return null===(b=a.i)||void 0===b?void 0:b.dispose(),a.i=c,a.u.resolve(),g.x(f,a.i.u.promise,1)}})};
rca=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!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.u=c}};
Xl=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.Dg(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=Ng(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Qaa(g.If("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Dg(a)+".js"});g.kk(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
sca=function(a){var b={};g.sc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
maa(a,function(c){return null===b[c.event]})};
Yl=function(){this.bd=0;this.i=!1;this.u=-1;this.Zp=!1;this.wh=0};
Zl=function(){this.u=null;this.i=!1};
$l=function(a){Zl.call(this);this.B=a};
am=function(){Zl.call(this)};
bm=function(){Zl.call(this)};
cm=function(){this.i={};this.u=!0;this.B={}};
dm=function(a,b,c){a.i[b]||(a.i[b]=new $l(c));return a.i[b]};
tca=function(a){a.i.queryid||(a.i.queryid=new bm)};
em=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
fm=function(a,b){if(Oe(a.B,b))return a.B[b];if(a=a.i[b])return a.getValue()};
gm=function(a){var b={},c=g.Ee(a.i,function(d){return d.i});
g.De(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.i&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
return b};
uca=function(a){a=gm(a);var b=[];g.De(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
vca=function(){this.i=this.Yn=null};
hm=function(){};
jm=function(){if(!im())throw Error();};
im=function(){return!(!km||!km.performance)};
lm=function(a){return a?a.passive&&wca()?a:a.capture||!1:!1};
mm=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,lm(d)),!0):!1};
nm=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,lm(void 0))};
om=function(a){var b="Se";if(a.Se&&a.hasOwnProperty(b))return a.Se;var c=new a;a.Se=c;a.hasOwnProperty(b);return c};
xca=function(){var a={};this.kb=function(b,c){return null!=a[b]?a[b]:c}};
qm=function(a){return om(xca).kb(pm.flag,pm.defaultValue)&&a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
rm=function(){};
tm=function(){return zb?zb.mobile:!sm()&&(Cb("iPod")||Cb("iPhone")||Cb("Android")||Cb("IEMobile"))};
sm=function(){return zb?!zb.mobile&&(Cb("iPad")||Cb("Android")||Cb("Silk")):Cb("iPad")||Cb("Android")&&!Cb("Mobile")||Cb("Silk")};
um=function(a){try{return!!a&&null!=a.location.href&&vc(a,"foo")}catch(b){return!1}};
vm=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
zca=function(){var a=[];vm(yca,function(b){a.push(b)});
return a};
Bca=function(a){return(a=Aca.exec(a))&&a[0]||""};
Cca=function(){var a=wm;if(!a)return"";var b=RegExp(".*[&#?]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""};
Eca=function(){var a=xm("IFRAME"),b={};g.sc(Dca(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
xm=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
ym=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,um(a)&&(b=a);return b};
zm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Am=function(a){return a.right-a.left};
Bm=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
Cm=function(a,b,c){b instanceof g.wg?(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.Dm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Em=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};
Fm=function(a,b){a.google_image_requests||(a.google_image_requests=[]);var c=xm("IMG",a.document);c.src=b;a.google_image_requests.push(c)};
Gca=function(){var a="https://pagead2.googlesyndication.com/pagead/gen_204?id=badpubwin";vm({stack:Error().stack,aswift:window.google_async_iframe_id},function(b,c){b&&(a+="&"+c+"="+encodeURIComponent(b))});
Fca(a)};
Fca=function(a){var b=window;b.fetch?b.fetch(a,{keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"}):Fm(b,a)};
g.Hm=function(a,b,c){if("string"===typeof b)(b=Gm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Gm(c,d);f&&(c.style[f]=e)}};
Gm=function(a,b){var c=Im[b];if(!c){var d=Ig(b);c=d;void 0===a.style[d]&&(d=(g.Yg?"Webkit":Jm?"Moz":g.Jc?"ms":null)+eba(d),void 0!==a.style[d]&&(c=d));Im[b]=c}return c};
g.Km=function(a,b){var c=a.style[Ig(b)];return"undefined"!==typeof c?c:a.style[Gm(a,b)]||""};
Lm=function(a,b){var c=Lg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Mm=function(a,b){return Lm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Om=function(a,b,c){if(b instanceof g.wg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Nm(d,!1);a.style.top=g.Nm(b,!1)};
Pm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Hca=function(a){if(g.Jc&&!g.Bc(8))return a.offsetParent;var b=Lg(a),c=Mm(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=Mm(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.Qm=function(a){var b=Lg(a),c=new g.wg(0,0);var d=b?Lg(b):document;d=!g.Jc||g.Bc(9)||"CSS1Compat"==Ng(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Pm(a);b=Xg(Ng(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Sm=function(a,b){var c=new g.wg(0,0),d=Zg(Lg(a));if(!vc(d,"parent"))return c;do{var e=d==b?g.Qm(a):Rm(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.Zm=function(a,b){a=Tm(a);b=Tm(b);return new g.wg(a.x-b.x,a.y-b.y)};
Rm=function(a){a=Pm(a);return new g.wg(a.left,a.top)};
Tm=function(a){if(1==a.nodeType)return Rm(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.wg(a.clientX,a.clientY)};
g.$m=function(a,b,c){if(b instanceof g.yg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Nm(b,!0);a.style.height=g.Nm(c,!0)};
g.Nm=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.an=function(a){var b=Ica;if("none"!=Mm(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};
Ica=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Yg&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Pm(a),new g.yg(a.right-a.left,a.bottom-a.top)):new g.yg(b,c)};
g.bn=function(a,b){a.style.display=b?"":"none"};
fn=function(){if(cn&&!um(dn)){var a="."+en.domain;try{for(;2<a.split(".").length&&!um(dn);)en.domain=a=a.substr(a.indexOf(".")+1),dn=window.parent}catch(b){}um(dn)||(dn=window)}dn!==window&&.01>Math.random()&&Gca();return dn};
jn=function(a){a=a||gn();for(var b=new hn(g.B.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Jca.test(f.url)&&(c=f);if(f.url&&!f.GE){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Kca(b,e,c)};
gn=function(){var a=g.B,b=[],c=null;do{var d=a;if(um(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new hn(e||""));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.B;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.GE=!0);return b};
Kca=function(a,b,c){this.i=a;this.u=b;this.B=c};
hn=function(a,b){this.url=a;this.GE=!!b;this.depth=null};
kn=function(){this.B="&";this.u={};this.C=0;this.i=[]};
ln=function(a,b){var c={};c[a]=b;return[c]};
nn=function(a,b,c,d,e){var f=[];vm(a,function(h,l){(h=mn(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
mn=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(mn(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(nn(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Mca=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Lca(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.u[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=nn(l[m],a.B,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
Lca=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
on=function(a,b){this.i=a;this.depth=b};
Oca=function(){function a(l,m){return null==l?m:l}
var b=gn(),c=Math.max(b.length-1,0),d=jn(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new on([f.url,f.GE?2:0],a(f.depth,1)));e&&e!=f&&h.push(new on([e.url,2],0));b.url&&b!=f&&h.push(new on([b.url,0],a(b.depth,c)));d=g.pn(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Bca(b.url))&&d.push([new on([e,1],a(b.depth,c))]);d.push([]);return g.pn(d,function(l){return Nca(c,l)})};
Nca=function(a,b){g.qn(b,function(e){return 0<=e.depth});
var c=rn(b,function(e,f){return Math.max(e,f.depth)},-1),d=qaa(c+2);
d[0]=a;g.sc(b,function(e){return d[e.depth+1]=e.i});
return d};
Pca=function(){var a=Oca();return g.pn(a,function(b){return mn(b)})};
sn=function(){this.u=new rm;this.i=im()?new jm:new hm};
Qca=function(){tn();var a=km.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof km.setInterval&&"function"===typeof km.clearInterval&&"function"===typeof km.setTimeout&&"function"===typeof km.clearTimeout)};
un=function(a){tn();var b=fn()||km;Fm(b,a)};
vn=function(){tn();return Pca()};
wn=function(){};
tn=function(){return om(wn).getContext()};
xn=function(a){Ad.call(this,a)};
Rca=function(a,b){var c=Bd(a,1);if(null!=c){dd(b.i,9);var d=b.i,e=c;e=(c=0>e?1:0)?-e:e;if(0===e)id=0<1/e?0:2147483648,hd=0;else if(isNaN(e))id=2147483647,hd=4294967295;else if(1.7976931348623157E308<e)id=(c<<31|2146435072)>>>0,hd=0;else if(2.2250738585072014E-308>e){var f=e/Math.pow(2,-1074);id=(c<<31|f/4294967296)>>>0;hd=f>>>0}else{var h=e;f=0;if(2<=h)for(;2<=h&&1023>f;)f++,h/=2;else for(;1>h&&-1022<f;)h*=2,f--;e*=Math.pow(2,-f);id=(c<<31|f+1023<<20|1048576*e&1048575)>>>0;hd=4503599627370496*e>>>
0}ed(d,hd);ed(d,id)}jd(b,2,Bd(a,2));jd(b,3,Bd(a,3));jd(b,4,Bd(a,4));c=Bd(a,5);if(null!=c&&null!=c)if(dd(b.i,40),d=b.i,0<=c)dd(d,c);else{for(f=0;9>f;f++)d.push(c&127|128),c>>=7;d.push(1)}Xd(a,b)};
Sca=function(a){this.B=a;this.i=-1;this.u=this.C=0};
yn=function(a,b){return function(){var c=g.Ba.apply(0,arguments);if(-1<a.i)return b.apply(null,g.ma(c));try{return a.i=a.B.i.now(),b.apply(null,g.ma(c))}finally{a.C+=a.B.i.now()-a.i,a.i=-1,a.u+=1}}};
Tca=function(a,b){this.u=a;this.B=b;this.i=new Sca(a)};
Uca=function(){};
An=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new cm;dm(this.featureSet,"mv",Vca).i=!0;dm(this.featureSet,"omid",zn);dm(this.featureSet,"epoh",zn).i=!0;dm(this.featureSet,"epph",zn).i=!0;dm(this.featureSet,"umt",zn).i=!0;dm(this.featureSet,"phel",zn).i=!0;dm(this.featureSet,"phell",zn).i=!0;dm(this.featureSet,"oseid",Wca).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new am);a.i.sloi.i=!0;dm(this.featureSet,"mm",Xca);dm(this.featureSet,"ovms",Yca).i=!0;dm(this.featureSet,
"xdi",zn).i=!0;dm(this.featureSet,"amp",zn).i=!0;dm(this.featureSet,"prf",zn).i=!0;dm(this.featureSet,"gtx",zn).i=!0;dm(this.featureSet,"mvp_lv",zn).i=!0;dm(this.featureSet,"ssmol",zn).i=!0;this.i=new Tca(tn(),this.featureSet);this.C=!1;this.flags=new Uca};
Bn=function(){return om(An)};
Zca=function(){var a="https:";km&&km.location&&"http:"===km.location.protocol&&(a="http:");this.u=a;this.i=.01;this.B=Math.random()};
Cn=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.i))try{if(c instanceof kn)var f=c;else f=new kn,vm(c,function(l,m){var n=f,p=n.C++;l=ln(m,l);n.i.push(p);n.u[p]=l});
var h=Mca(f,a.u,"/pagead/gen_204?id="+b+"&");h&&un(h)}catch(l){}};
Dn=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};
En=function(){var a=g.B.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ta()};
Fn=function(){var a=void 0===a?g.B:a;return(a=a.performance)&&a.now?a.now():null};
$ca=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Hn=function(){var a=fn();this.events=[];this.u=a||g.B;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=Gn()||(null!=b?b:1>Math.random())};
Jn=function(a){a&&In&&Gn()&&(In.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),In.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Mn=function(){var a=Kn;this.i=Ln;this.jK="jserror";this.CG=!0;this.TC=null;this.u=this.YE;this.Mb=void 0===a?null:a};
Pn=function(a,b,c,d){return yn(Bn().i.i,function(){try{if(a.Mb&&a.Mb.i){var e=a.Mb.start(b.toString(),3);var f=c();a.Mb.end(e)}else f=c()}catch(m){var h=a.CG;try{Jn(e);var l=new Nn(On(m));h=a.u(b,l,void 0,d)}catch(n){a.YE(217,n)}if(!h)throw m;}return f})()};
Rn=function(a,b,c){var d=Qn;return yn(Bn().i.i,function(){var e=g.Ba.apply(0,arguments);return Pn(d,a,function(){return b.apply(void 0,e)},c)})};
On=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};
Nn=function(a){Dn.call(this,Error(a),{message:a})};
Sn=function(){var a=fn();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Kn.disable())};
ada=function(a){Qn.TC=function(b){g.sc(a,function(c){c(b)})}};
Tn=function(a,b){return Pn(Qn,a,b,void 0)};
Un=function(a,b){return Rn(a,b,void 0)};
Vn=function(a,b,c,d){Qn.YE(a,b,c,d)};
Wn=function(){return Date.now()-bda};
cda=function(){var a=Bn().B,b=0<=Xn?Wn()-Xn:-1,c=Yn?Wn()-Zn:-1,d=0<=$n?Wn()-$n:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Vn(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};
ao=function(a,b,c){var d=new zm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c};
bo=function(a,b,c,d,e,f,h,l){this.C=a;this.S=b;this.B=c;this.I=d;this.i=e;this.D=f;this.u=h;this.K=l};
co=function(a){var b=a!==a.top,c=a.top===ym(a),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),He(dda,function(h){return"function"===typeof f[h]})||(e=1));
return{Cj:f,compatibility:e,AX:d}};
eda=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
eo=function(a,b,c,d){var e=void 0===e?!1:e;c=Rn(d,c,void 0);mm(a,b,c,{capture:e})};
fo=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.yg(b.innerWidth,b.innerHeight)).round():Vg(b||window).round()}catch(d){return new g.yg(-12245933,-12245933)}};
go=function(a,b,c){try{a&&(b=b.top);var d=fo(a,b,void 0===c?!1:c),e=Xg(Ng(b.document).i);if(-12245933==d.width){var f=d.width;var h=new zm(f,f,f,f)}else h=new zm(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new zm(-12245933,-12245933,-12245933,-12245933)}};
ho=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
io=function(a){return new zm(a.top,a.right,a.bottom,a.left)};
jo=function(a){var b=a.top||0,c=a.left||0;return new zm(b,c+(a.width||0),b+(a.height||0),c)};
ko=function(a){return null!=a&&0<=a&&1>=a};
fda=function(){var a=g.yb();return a?lo("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ub(a,b)})||ub(a,"OMI/")&&!ub(a,"XiaoMi/")?!0:ub(a,"Presto")&&ub(a,"Linux")&&!ub(a,"X11")&&!ub(a,"Android")&&!ub(a,"Mobi"):!1};
mo=function(){this.B=!um(km.top);this.isMobileDevice=sm()||tm();var a=gn();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 zm(0,0,0,0);this.C=new g.yg(0,0);this.D=new g.yg(0,0);this.K=new zm(0,0,0,0);this.I=0;this.S=!1;this.u=!(!km||!co(km).Cj);this.update(km)};
no=function(a,b){b&&b.screen&&(a.C=new g.yg(b.screen.width,b.screen.height))};
oo=function(a,b){var c=a.i?new g.yg(Am(a.i),a.i.getHeight()):new g.yg(0,0);b=void 0===b?km: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.yg(e,d)}catch(u){t=new g.yg(-12245933,-12245933)}a.D=t};
qo=function(){var a=po();if(0<a.I||a.S)return!0;a=tn().u.isVisible();var b=0===qm(en);return a||b};
po=function(){return om(mo)};
ro=function(a){this.B=a;this.u=0;this.i=null};
so=function(a,b,c){this.B=a;this.La=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new ao(-1,!0,this);this.i=this;this.S=b;this.Z=this.X=!1;this.Ba="uk";this.Aa=!1;this.I=!0};
to=function(a,b){g.Wb(a.D,b)||(a.D.push(b),b.Js(a.i),b.Pn(a.C),b.al()&&(a.X=!0))};
uo=function(a){a=a.i;a.MH();a.LH();var b=po();b.K=go(!1,a.B,b.isMobileDevice);oo(po(),a.B);a.C.i=a.JK()};
vo=function(a){a.X=a.D.length?lo(a.D,function(b){return b.al()}):!1};
wo=function(a){var b=g.fc(a.D);g.sc(b,function(c){c.Pn(a.C)})};
xo=function(a){var b=g.fc(a.D);g.sc(b,function(c){c.Js(a.i)});
a.i!=a||wo(a)};
yo=function(a,b,c,d){this.element=a;this.i=new zm(0,0,0,0);this.C=new zm(0,0,0,0);this.u=b;this.featureSet=c;this.oa=d;this.Z=!1;this.timestamp=-1;this.K=new bo(b.C,this.element,this.i,new zm(0,0,0,0),0,0,Wn(),0)};
zo=function(a){this.D=!1;this.i=a;this.C=g.Ka};
Ao=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.i=null==b?"":b};
gda=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Bo=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
Co=function(){this.B=0;this.i=[];this.u=!1};
hda=function(a,b){(0,g.sc)(b.i,function(c){a.add(c.u,c.i,gda(c))})};
Do=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;vm(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Eo=function(a){var b=ida;a.u&&(g.pc(a.i,function(c,d){return Bo(d,c)?1:Bo(c,d)?-1:0}),a.u=!1);
return rn(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
ida=function(a){var b=a.u;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Wb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Go=function(a){var b=void 0===b?!0:b;this.i=new Co;void 0!==a&&hda(this.i,a);b&&this.i.add("v",Fo,-16)};
jda=function(a){var b=[],c=[];g.De(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)};
Ho=function(){if(Fo&&"unreleased"!==Fo)return Fo};
Io=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ho();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);un(a)};
kda=function(){this.i=0};
lda=function(a,b,c){(0,g.sc)(a.B,function(d){var e=a.i;if(!d.i&&(d.B(b,c),d.C())){d.i=!0;var f=d.u(),h=new Co;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=om(kda);h.add("i",d.i++);h.add("adk",e);Do(h,f);e=new Go(h);Io(e)}})};
Jo=function(){this.u=this.B=this.C=this.i=0};
Ko=function(a){this.u=a=void 0===a?mda:a;this.i=g.pn(this.u,function(){return new Jo})};
Mo=function(a,b){return Lo(a,function(c){return c.i},void 0===b?!0:b)};
Oo=function(a,b){return No(a,b,function(c){return c.i})};
Po=function(a,b){return Lo(a,function(c){return c.B},void 0===b?!0:b)};
Qo=function(a,b){return No(a,b,function(c){return c.B})};
Ro=function(a,b){return No(a,b,function(c){return c.u})};
So=function(a){g.sc(a.i,function(b){b.u=0})};
Lo=function(a,b,c){a=g.pn(a.i,function(d){return b(d)});
return c?a:nda(a)};
No=function(a,b,c){var d=g.Ub(a.u,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
nda=function(a){return g.pn(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
To=function(){this.u=new Ko;this.La=new Jo;this.oa=this.K=-1;this.Wa=1E3;this.Za=new Ko([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ba=this.xa=-1};
Uo=function(a,b){return Po(a.u,void 0===b?!0:b)};
Wo=function(a,b){b=Vo(b);return 0===b?0:Vo(a)/b};
Vo=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
oda=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.hh(a)||a){var d=Lg(a),e=d&&Zg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
pda=function(a,b,c){if(!a||!b)return!1;b=Cm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=fn();um(d.top)&&d.top&&d.top.document&&(d=d.top);if(!eda(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Lg(c))&&b.defaultView&&b.defaultView.frameElement)&&oda(b,a);d=a===c;a=!d&&a&&rh(a,function(e){return e===c});
return!(b||d||a)};
qda=function(a,b,c,d){return po().B?!1:0>=Am(a)||0>=a.getHeight()?!0:c&&d?Tn(208,function(){return pda(a,b,c)}):!1};
Xo=function(a,b,c){g.E.call(this);this.position=rda.clone();this.dA=this.qz();this.UE=-2;this.PX=Date.now();this.rO=-1;this.lastUpdateTime=b;this.Uz=null;this.Oy=!1;this.nA=null;this.opacity=-1;this.requestSource=c;this.EO=this.aF=g.Ka;this.Qg=new vca;this.Qg.Yn=a;this.Qg.i=a;this.Rs=!1;this.Ap={kF:null,iF:null};this.YN=!0;this.yx=null;this.Ls=this.cT=!1;Bn().I++;this.wf=this.dE();this.mO=-1;this.Nd=null;this.ZS=!1;a=this.featureSet=new cm;dm(a,"od",sda);dm(a,"opac",zn).i=!0;dm(a,"sbeos",zn).i=!0;
dm(a,"prf",zn).i=!0;dm(a,"mwt",zn).i=!0;dm(a,"iogeo",zn);(a=this.Qg.Yn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(tda&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Jg()):a.getAttribute("data-"+Jg()))&&(po().u=!0);1==this.requestSource?em(this.featureSet,"od",1):em(this.featureSet,"od",0)};
Yo=function(a,b){b!=a.Ls&&(a.Ls=b,a=po(),b?a.I++:0<a.I&&a.I--)};
Zo=function(a,b){if(a.Nd){if(b.getName()===a.Nd.getName())return;a.Nd.dispose();a.Nd=null}b=b.create(a.Qg.i,a.featureSet,a.al());if(b=null!=b&&b.ZB()?b:null)a.Nd=b};
$o=function(a,b,c){if(!a.Uz||-1==a.lastUpdateTime||-1===b.u||-1===a.Uz.u)return 0;a=b.u-a.Uz.u;return a>c?0:a};
uda=function(a,b,c){if(a.Nd){a.Nd.dn();var d=a.Nd.K,e=d.C,f=e.i;if(null!=d.I){var h=d.B;a.nA=new g.wg(h.left-f.left,h.top-f.top)}f=a.jB()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.EK(d);a.Uz=d;a.Qa(f,b,c,!1,h,e,d.K)}};
vda=function(a){if(a.Oy&&a.yx){var b=1==fm(a.featureSet,"od"),c=po().i,d=a.yx,e=a.Nd?a.Nd.getName():"ns",f=new g.yg(Am(c),c.getHeight());c=a.jB();a={CX:e,nA:a.nA,oY:f,jB:c,bd:a.wf.bd,jY:b};if(b=d.u){b.dn();e=b.K;f=e.C.i;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.wg(h.left-f.left,h.top-f.top),l=new g.yg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={CX:b.getName(),nA:h,oY:l,jB:c,jY:!1,bd:e}}else c=null;c&&lda(d,a,c)}};
wda=function(a,b,c){b&&(a.aF=b);c&&(a.EO=c)};
g.ap=function(){};
g.bp=function(a){return{value:a,done:!1}};
g.dp=function(a){if(a.done)throw g.cp;return a.value};
xda=function(){this.C=this.i=this.B=this.u=this.D=0};
yda=function(a){var b={};var c=g.Ta()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
ep=function(){Yl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
fp=function(a){return ko(a.volume)&&0<a.volume};
zda=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.i={};for(var b in this.u)0<this.u[b][1]&&(this.i[b]=0);this.B=0};
gp=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
Ada=function(a){var b=g.Ne(a.u),c=0,d;for(d in a.i)g.Wb(b,d)&&1==a.i[d]&&(c+=a.u[d][1],a.i[d]=2);return c};
Bda=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.u[c][1]}return b};
hp=function(){this.i=this.u=0};
ip=function(){To.call(this);this.B=new Jo;this.Ka=this.X=this.Aa=0;this.S=-1;this.bb=new Jo;this.D=new Jo;this.i=new Ko;this.I=this.C=-1;this.Z=new Jo;this.Wa=2E3;this.Ja=new hp;this.Va=new hp;this.Sa=new hp};
jp=function(a,b,c){var d=a.Ka;Yn||c||-1==a.S||(d+=b-a.S);return d};
kp=function(){this.u=!1};
lp=function(a,b){this.u=!1;this.B=a;this.X=b;this.C=0};
mp=function(a,b){lp.call(this,a,b);this.K=[]};
np=function(a,b,c,d){yo.call(this,a,b,c,d)};
op=function(a,b,c){yo.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
pp=function(a){return[a.top,a.left,a.bottom,a.right]};
qp=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Xo.call(this,b,c,d);this.AD=0;this.yf={};this.jf=new zda;this.SO={};this.Ff="";this.Va=null;this.ob=!1;this.i=[];this.mq=e;this.I=f;this.C=null;this.B=-1;this.Ka=this.X=void 0;this.oa=this.Z=0;this.Ba=-1;this.Za=this.Wa=!1;this.Aa=this.K=this.u=this.Vt=this.bb=0;new Ko;this.Ja=this.La=0;this.Sa=-1;this.xg=0;this.S=wf;this.xa=[this.qz()];this.jb=2;this.Qq={};this.Qq.pause="p";this.Qq.resume="r";this.Qq.skip="s";this.Qq.mute="m";this.Qq.unmute=
"um";this.Qq.exitfullscreen="ef";this.D=null};
rp=function(a){0!=a.xg&&(a.xg=3)};
sp=function(a){return void 0===a?a:Number(a)?ho(a,3):0};
tp=function(a,b){return a.xa[null!=b&&b<a.xa.length?b:a.xa.length-1]};
up=function(a){var b=!!fm(Bn().featureSet,"umt");return a.X||!b&&!a.Ka?0:1};
Cda=function(a,b){a.jm()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.oa+=b,a.Ja+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.La+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Sa&&0<d&&(a.Sa=0<=$n?Wn()-$n:-1);a.Z=c;return e};
Dda=function(a,b){lo(a.I,function(c){return c.B==b.B})||a.I.push(b)};
vp=function(a,b,c){return 15E3<=b?!0:a.Wa?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ba?b>=a.Ba:!1:!1};
Eda=function(a){var b=ho(a.wf.bd,2),c=a.jf.B,d=a.wf,e=tp(a),f=sp(e.C),h=sp(e.I),l=sp(d.volume),m=ho(e.K,2),n=ho(e.oa,2),p=ho(d.bd,2),r=ho(e.xa,2),t=ho(e.Ba,2);d=ho(d.wh,2);a=a.Kn().clone();a.round();e=Uo(e,!1);return{nY:b,dw:c,eA:f,aA:h,Ru:l,fA:m,bA:n,bd:p,gA:r,cA:t,wh:d,position:a,lA:e}};
xp=function(a,b){wp(a.i,b,function(){return{nY:0,dw:void 0,eA:-1,aA:-1,Ru:-1,fA:-1,bA:-1,bd:-1,gA:-1,cA:-1,wh:-1,position:void 0,lA:[]}});
a.i[b]=Eda(a)};
wp=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Ap=function(a,b,c){var d=a.SO[b];if(null!=d)return d;d=Fda(a,b);var e=Qe(yp,function(f){return f==b});
a=zp(a,d,d,c,Gda[yp[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Bp=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
zp=function(a,b,c,d,e){if(a.Rs)return{"if":0};var f=a.Kn().clone();f.round();var h=po(),l=Bn(),m=a.Wg(),n=a.Nd?a.Nd.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.PX;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Mo(m.u,!1);p.mtos=Uo(m);p.mcvt=m.La.B;p.ps=void 0;f=jp(m,Wn(),a.jm());p.vht=f;p.mut=m.bb.B;p.a=sp(a.wf.volume);p.mv=sp(m.I);p.fs=a.Ls?1:0;p.ft=m.Z.i;p.at=m.D.i;p.as=0<m.C?1:0;p.atos=Mo(m.i);p.ssb=Mo(m.Za,!1);p.amtos=Po(m.i,!1);p.uac=a.bb;p.vpt=m.B.i;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=vp(a,m.B.i,!0)?1:0;p.efpf=a.jb;if("gsv"==n||"nis"==n)n=a.Nd,0<n.D&&(p.nnut=n.D);p.tcm=up(a);p.nmt=a.La;p.bt=a.Ja;p.pst=a.Sa;p.vpaid=a.X;p.dur=a.B;p.vmtime=a.Z;p.is=a.jf.B;1<=a.i.length&&(p.i0=a.i[0].dw,p.a0=[a.i[0].Ru],p.c0=[a.i[0].bd],p.ss0=[a.i[0].wh],n=a.i[0].position,p.p0=n?pp(n):void 0);2<=a.i.length&&(p.i1=a.i[1].dw,p.a1=Bp(a.i[1].eA,a.i[1].Ru,a.i[1].aA),p.c1=Bp(a.i[1].fA,a.i[1].bd,a.i[1].bA),p.ss1=Bp(a.i[1].gA,a.i[1].wh,a.i[1].cA),n=a.i[1].position,p.p1=n?pp(n):void 0,
p.mtos1=a.i[1].lA);3<=a.i.length&&(p.i2=a.i[2].dw,p.a2=Bp(a.i[2].eA,a.i[2].Ru,a.i[2].aA),p.c2=Bp(a.i[2].fA,a.i[2].bd,a.i[2].bA),p.ss2=Bp(a.i[2].gA,a.i[2].wh,a.i[2].cA),n=a.i[2].position,p.p2=n?pp(n):void 0,p.mtos2=a.i[2].lA);4<=a.i.length&&(p.i3=a.i[3].dw,p.a3=Bp(a.i[3].eA,a.i[3].Ru,a.i[3].aA),p.c3=Bp(a.i[3].fA,a.i[3].bd,a.i[3].bA),p.ss3=Bp(a.i[3].gA,a.i[3].wh,a.i[3].cA),n=a.i[3].position,p.p3=n?pp(n):void 0,p.mtos3=a.i[3].lA);p.cs=Bda(a.jf);b&&(p.ic=Ada(a.jf),p.dvpt=m.B.u,p.dvs=Ro(m.u,.5),p.dfvs=
Ro(m.u,1),p.davs=Ro(m.i,.5),p.dafvs=Ro(m.i,1),c&&(m.B.u=0,So(m.u),So(m.i)),a.cq()&&(p.dtos=m.Aa,p.dav=m.X,p.dtoss=a.AD+1,c&&(m.Aa=0,m.X=0,a.AD++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Am(h.i),h.i.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.Vt&&(p.vds=a.Vt);if(0<a.I.length||a.mq)b=g.fc(a.I),a.mq&&b.push(a.mq),p.pings=g.pn(b,function(r){return r.toString()});
b=g.pn(g.Cp(a.I,function(r){return r.I()}),function(r){return r.getId()});
naa(b);p.ces=b;a.u&&(p.vmer=a.u);a.K&&(p.vmmk=a.K);a.Aa&&(p.vmiec=a.Aa);p.avms=a.Nd?a.Nd.getName():"ns";a.Nd&&g.Ze(p,a.Nd.Jn());d?(p.c=ho(a.wf.bd,2),p.ss=ho(a.wf.wh,2)):p.tth=Wn()-Dp;p.mc=ho(m.oa,2);p.nc=ho(m.K,2);p.mv=sp(m.I);p.nv=sp(m.C);p.lte=ho(a.UE,2);d=tp(a,e);Uo(m);p.qmtos=Uo(d);p.qnc=ho(d.K,2);p.qmv=sp(d.I);p.qnv=sp(d.C);p.qas=0<d.C?1:0;p.qi=a.Ff;p.avms||(p.avms="geo");p.psm=m.Ja.i;p.psv=m.Ja.getValue();p.psfv=m.Va.getValue();p.psa=m.Sa.getValue();l=uca(l.featureSet);l.length&&(p.veid=l);
a.D&&g.Ze(p,yda(a.D));return p};
Fda=function(a,b){if(g.Wb(Hda,b))return!0;var c=a.yf[b];return void 0!==c?(a.yf[b]=!0,!c):!1};
Jda=function(){this.i={};var a=Zg();Ep(this,a,document);var b=Ida();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Ep(this,c,c.document);Ep(this,a.top,a.top.document)}}catch(d){}};
Ida=function(){var a=document.documentElement;try{if(!um(Zg().top))return"2";var b=[],c=Zg(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"}};
Ep=function(a,b,c){eo(c,"mousedown",function(){return Kda(a)},301);
eo(b,"scroll",function(){return Lda(a)},302);
eo(c,"touchmove",function(){return Mda(a)},303);
eo(c,"mousemove",function(){return Nda(a)},304);
eo(c,"keydown",function(){return Oda(a)},305)};
Kda=function(a){g.De(a.i,function(b){1E5<b.B||++b.B})};
Lda=function(a){g.De(a.i,function(b){1E5<b.i||++b.i})};
Mda=function(a){g.De(a.i,function(b){1E5<b.i||++b.i})};
Oda=function(a){g.De(a.i,function(b){1E5<b.u||++b.u})};
Nda=function(a){g.De(a.i,function(b){1E5<b.C||++b.C})};
Fp=function(){this.i=[];this.u=[]};
Gp=function(a,b){return g.Tb(a.i,function(c){return c.Ff==b})};
Hp=function(a,b){return b?g.Tb(a.i,function(c){return c.Qg.Yn==b}):null};
Pda=function(a,b){return g.Tb(a.u,function(c){return 2==c.Ik()&&c.Ff==b})};
Jp=function(){var a=Ip;return 0==a.i.length?a.u:0==a.u.length?a.i:g.bc(a.u,a.i)};
Kp=function(a,b){a=1==b.Ik()?a.i:a.u;var c=Sb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Nd&&b.Nd.uu(),b.dispose(),!0):!1};
Qda=function(a){var b=Ip;if(Kp(b,a)){switch(a.Ik()){case 0:var c=function(){return null};
case 2:c=function(){return Pda(b,a.Ff)};
break;case 1:c=function(){return Gp(b,a.Ff)}}for(var d=c();d;d=c())Kp(b,d)}};
Rda=function(a,b){var c=Ip;a=g.Cp(a,(void 0===b?0:b)?function(d){return!Gp(c,d.Ff)}:function(d){return!Hp(c,d.Qg.Yn)});
c.i.push.apply(c.i,g.ma(a))};
Lp=function(a){var b=Ip,c=[];g.sc(a,function(d){lo(b.i,function(e){return e.Qg.Yn===d.Qg.Yn&&e.Ff===d.Ff})||(b.i.push(d),c.push(d))})};
Mp=function(){this.i=this.u=null};
Np=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.i=g.Tb(a.u,function(d){return null!=d&&d.NH()});
a.i&&(a.i.init(c)?uo(a.i.i):b(a.i.i.ys(),a.i));return null!=a.i};
Wp=function(a){a=Sda(a);zo.call(this,a.length?a[a.length-1]:new so(km,0));this.B=a;this.u=null};
Sda=function(a){if(!a.length)return[];a=(0,g.Cp)(a,function(c){return null!=c&&c.tu()});
for(var b=1;b<a.length;b++)to(a[b-1],a[b]);return a};
Xp=function(a,b,c,d){yo.call(this,a,b,c,d);this.X=this.S=this.D=this.I=this.B=null};
Yp=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
Uda=function(a){if(!a.element)return!1;var b=a.element,c=a.u.i.B,d=Bn().i.i;a.B=new c.IntersectionObserver(yn(d,function(e){return Zp(a,e)}),Tda);
d=yn(d,function(){a.B.unobserve(b);a.B.observe(b);Zp(a,Yp(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.B.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Zp(a,Yp(a));return!0};
Zp=function(a,b){try{if(b.length){a.S||(a.S=Wn());var c=Vda(b),d=Sm(a.element,a.u.i.B),e=d.x,f=d.y;a.i=new zm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=io(c.intersectionRect);a.C=Cm(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.uu(),Vn(299,l)}};
Vda=function(a){return rn(a,function(b,c){return b.time>c.time?b:c},a[0])};
$p=function(a){a=void 0===a?km:a;zo.call(this,new so(a,2))};
bq=function(){var a=aq();so.call(this,km.top,a,"geo")};
aq=function(){Bn();var a=po();return a.B||a.u?0:2};
cq=function(){};
dq=function(){this.done=!1;this.i={iR:0,eJ:0,Kda:0,fK:0,AE:-1,FR:0,ER:0,GR:0};this.D=null;this.I=!1;this.B=null;this.K=0;this.u=new ro(this)};
fq=function(){var a=eq;a.I||(a.I=!0,Wda(a,function(){return a.C.apply(a,g.ma(g.Ba.apply(0,arguments)))}),a.C())};
Xda=function(){om(cq);var a=om(Mp);null!=a.i&&a.i.i?uo(a.i.i):po().update(km)};
gq=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Xda();var d=Wn(),e=Bn();e.D=d;if(null!=om(Mp).i)for(e=0;e<b.length;e++)uda(b[e],d,c);else Cn(Ln,"",{strategy_not_selected:1,bin:e.u},!0,void 0);for(d=0;d<b.length;d++)vda(b[d]);++a.i.fK;Yda()}finally{c?g.sc(b,function(f){f.wf.bd=0}):a.u.schedule()}}};
Wda=function(a,b){if(!a.D){b=Rn(142,b,void 0);tn();var c;en.visibilityState?c="visibilitychange":en.mozVisibilityState?c="mozvisibilitychange":en.webkitVisibilityState&&(c="webkitvisibilitychange");c&&mm(en,c,b,{capture:!1})&&(a.D=b)}};
hq=function(){var a=om(Mp);if(null!=a.i){var b=a.i;g.sc(Jp(),function(c){return Zo(c,b)})}};
Yda=function(){var a=Bn();fm(a.featureSet,"llp")};
iq=function(a,b){a=a.K;Yn&&(a+=b-Zn);return a};
Zda=function(a){var b=eq;a=void 0===a?function(){return{}}:a;
Qn.jK="av-js";Ln.i=.01;ada([function(c){var d=Bn(),e={};e=(e.bin=d.u,e.type="error",e);d=gm(d.featureSet);if(!b.B){var f=km.document,h=0<=Xn?Wn()-Xn:-1,l=Wn();-1==b.i.AE&&(h=l);var m=po(),n=Bn(),p=gm(n.featureSet),r=Jp();try{if(0<r.length){var t=m.i;t&&(p.bs=[Am(t),t.getHeight()]);var u=m.D;u&&(p.ps=[u.width,u.height]);km.screen&&(p.scs=[km.screen.width,km.screen.height])}else p.url=encodeURIComponent(km.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Xn;p.bin=n.u;void 0!==km.google_osd_load_pub_page_exp&&(p.olpp=km.google_osd_load_pub_page_exp);p.deb=[1,b.i.iR,b.i.eJ,b.i.fK,b.i.AE,0,b.u.u,b.i.FR,b.i.ER,b.i.GR].join("-");p.tvt=iq(b,l);m.u&&(p.inapp=1);if(null!==km&&km!=km.top){0<r.length&&(p.iframe_loc=encodeURIComponent(km.location.href.substring(0,512)));var v=m.K;p.is=[Am(v),v.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.We(b.B);u=Bn().i;1==fm(u.B,"prf")?(v=new xn,f=u.i,h=0,-1<f.i&&(h=f.B.i.now()-f.i),v=Gd(v,1,f.C+h,0),f=u.i,
v=Gd(v,5,-1<f.i?f.u+1:f.u,0),v=Gd(v,2,u.u.i.B(),0),v=Gd(v,3,u.u.i.u(),0),u=Gd(v,4,u.u.i.i(),0),v={},u=(v.pf=g.Ec(ce(u,Rca)),v)):u={};g.Ze(t,u);g.Ze(c,e,d,t,a());if(e=Ho())d={},g.Ze(c,(d.v=encodeURIComponent(e),d))}])};
$da=function(){var a=jq||km;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("&")};
kq=function(a){return function(b){return void 0===b[a]?0:b[a]}};
mq=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?lq(c,a):c}}};
nq=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 lq(f,b,c)}};
oq=function(a,b){return function(c){return b(c)?c[a]:void 0}};
pq=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}};
lq=function(a,b,c){return void 0===c||c?g.Cp(a,function(d,e){return g.Wb(b,e)}):g.pn(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)})};
qq=function(){var a="youtube.player.web_20211121_00_RC02".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20211121_00_RC02".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20211121_00_RC02".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20211121_00_RC02".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20211121_00_RC02".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:"909"};
rq=function(){return"av.default_js".includes("ima_html5_sdk")?{yk:"ima",version:"909"}:"av.default_js".includes("ima_native_sdk")?{yk:"nima",version:"909"}:"av.default_js".includes("admob-native-video-javascript")?{yk:"an",version:"909"}:"youtube.player.web_20211121_00_RC02".includes("cast_js_sdk")?{yk:"cast",version:qq()}:"youtube.player.web_20211121_00_RC02".includes("youtube.player.web")?{yk:"yw",version:qq()}:"youtube.player.web_20211121_00_RC02".includes("outstream_web_client")?{yk:"out",version:qq()}:
"youtube.player.web_20211121_00_RC02".includes("drx_rewarded_web")?{yk:"r",version:qq()}:"youtube.player.web_20211121_00_RC02".includes("gam_native_web_video")?{yk:"n",version:qq()}:"youtube.player.web_20211121_00_RC02".includes("admob_interstitial_video")?{yk:"int",version:qq()}:{yk:"j",version:"909"}};
wq=function(a,b){var c={sv:sq,cb:tq};c.nas=Ip.i.length;c.msg=a;void 0!==b&&(a=uq(b))&&(c.e=vq[a]);return c};
xq=function(a){return gb(a,"custom_metric_viewable")};
uq=function(a){var b=xq(a)?"custom_metric_viewable":a.toLowerCase();return Qe(yp,function(c){return c==b})};
aea=function(){this.i=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
cea=function(a){try{var b=a.split(",");return b.length>g.Ne(bea).length?null:rn(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===yq[d[0]]||!yq[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
dea=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?Qo(b.i,a.i):Qo(b.u,a.i);case "tos":return a.u?Oo(b.i,a.i):Oo(b.u,a.i)}return 0};
zq=function(a,b,c,d){lp.call(this,b,d);this.K=a;this.S=c};
Aq=function(){};
Bq=function(){};
Cq=function(){this.u=this.C=this.I=this.D=this.B=this.i=""};
eea=function(){};
Dq=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.Ze(f,a);void 0!==c&&g.Ze(f,c);a=Eo(Do(new Co,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Eq=function(){};
Fq=function(a){lp.call(this,"fully_viewable_audible_half_duration_impression",a)};
Gq=function(a){this.i=a};
Hq=function(a,b){lp.call(this,a,b)};
Iq=function(a){mp.call(this,"measurable_impression",a)};
Jq=function(){Gq.apply(this,arguments)};
Kq=function(a,b,c){op.call(this,a,b,c)};
Lq=function(a){a=void 0===a?km:a;zo.call(this,new so(a,2))};
Mq=function(a,b,c){op.call(this,a,b,c)};
Nq=function(a){a=void 0===a?km:a;zo.call(this,new so(a,2))};
Oq=function(){so.call(this,km,2,"mraid");this.Ja=0;this.oa=this.xa=!1;this.K=null;this.u=co(this.B);this.C.i=new zm(0,0,0,0);this.Ka=!1};
Pq=function(a,b,c){a.Lo("addEventListener",b,c)};
Sq=function(a){Bn().C=!!a.Lo("isViewable");Pq(a,"viewableChange",fea);"loading"===a.Lo("getState")?Pq(a,"ready",Qq):Rq(a)};
Rq=function(a){"string"===typeof a.u.Cj.AFMA_LIDAR?(a.xa=!0,gea(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))};
gea=function(a){a.oa=!1;var b=1==fm(Bn().featureSet,"rmmt"),c=!!a.Lo("isViewable");(b?!c:1)&&tn().setTimeout(Un(524,function(){a.oa||(Tq(a),Vn(540,Error()),a.K="mt",a.fail("w"))}),500);
hea(a);Pq(a,a.u.Cj.AFMA_LIDAR,Uq)};
hea=function(a){var b=1==fm(Bn().featureSet,"sneio"),c=void 0!==a.u.Cj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Cj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Cj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Cj.AFMA_LIDAR_EXP_1=!b)};
Tq=function(a){a.Lo("removeEventListener",a.u.Cj.AFMA_LIDAR,Uq);a.xa=!1};
Vq=function(a,b){if("loading"===a.Lo("getState"))return new g.yg(-1,-1);b=a.Lo(b);if(!b)return new g.yg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.yg(-1,-1):new g.yg(a,b)};
Qq=function(){try{var a=om(Oq);a.Lo("removeEventListener","ready",Qq);Rq(a)}catch(b){Vn(541,b)}};
Uq=function(a,b){try{var c=om(Oq);c.oa=!0;var d=a?new zm(a.y,a.x+a.width,a.y+a.height,a.x):new zm(0,0,0,0);var e=Wn(),f=qo();var h=new ao(e,f,c);h.i=d;h.volume=b;c.Pn(h)}catch(l){Vn(542,l)}};
fea=function(a){var b=Bn(),c=om(Oq);a&&!b.C&&(b.C=!0,c.Ka=!0,c.K&&c.fail("w",!0))};
Wq=function(){this.isInitialized=!1;this.i=null;this.C=new Eq;this.u=null;var a={};this.K=(a.start=this.OS,a.firstquartile=this.JS,a.midpoint=this.LS,a.thirdquartile=this.PS,a.complete=this.HS,a.pause=this.QF,a.resume=this.MN,a.skip=this.NS,a.viewable_impression=this.Jk,a.mute=this.Qt,a.unmute=this.Qt,a.fullscreen=this.KS,a.exitfullscreen=this.IS,a.fully_viewable_audible_half_duration_impression=this.Jk,a.measurable_impression=this.Jk,a.abandon=this.QF,a.engagedview=this.Jk,a.impression=this.Jk,a.creativeview=
this.Jk,a.progress=this.Qt,a.custom_metric_viewable=this.Jk,a.bufferstart=this.QF,a.bufferfinish=this.MN,a.audio_measurable=this.Jk,a.audio_audible=this.Jk,a);a={};this.S=(a.overlay_resize=this.MS,a.abandon=this.sE,a.close=this.sE,a.collapse=this.sE,a.overlay_unmeasurable_impression=function(b){return Ap(b,"overlay_unmeasurable_impression",qo())},a.overlay_viewable_immediate_impression=function(b){return Ap(b,"overlay_viewable_immediate_impression",qo())},a.overlay_unviewable_impression=function(b){return Ap(b,
"overlay_unviewable_impression",qo())},a.overlay_viewable_end_of_session_impression=function(b){return Ap(b,"overlay_viewable_end_of_session_impression",qo())},a);
Bn().u=3;iea(this);this.B=!1};
Xq=function(a,b,c,d){b=a.bx(null,d,!0,b);b.C=c;Rda([b],a.B);return b};
jea=function(a,b,c){sca(b);var d=a.u;g.sc(b,function(e){var f=g.pn(e.criteria,function(h){var l=cea(h);if(null==l)h=null;else if(h=new aea,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=jb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.B=l,h.C=-1):(h.B=-1,h.C=l);h.D=void 0===m?"tos":m}return h});
lo(f,function(h){return null==h})||Dda(c,new zq(e.id,e.event,f,d))})};
kea=function(){var a=[],b=Bn();a.push(om(bq));fm(b.featureSet,"mvp_lv")&&a.push(om(Oq));b=[new Lq,new Nq];b.push(new Wp(a));b.push(new $p(km));return b};
lea=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Wn(),c=Bn(),d=po();Xn=b;c.B=79463069;"o"!==a.i&&(jq=ym(km));if(Qca()){eq.i.eJ=0;eq.i.AE=Wn()-b;var e=kea(),f=om(Mp);f.u=e;Np(f,function(){Yq()})?eq.done||(hq(),to(f.i.i,a),fq()):d.B?Yq():fq()}else Zq=!0}catch(h){throw Ip.reset(),h;
}}};
ar=function(a){eq.u.cancel();$q=a;eq.done=!0};
br=function(a){if(a.i)return a.i;var b=om(Mp).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};
dr=function(a,b,c){if(null==a.u)return b.Vt|=4,!1;a=cr(a.u,c,b);b.Vt|=a;return 0==a};
Yq=function(){var a=[new $p(km)],b=om(Mp);b.u=a;Np(b,function(){ar("i")})?eq.done||(hq(),fq()):ar("i")};
er=function(a,b,c){if(!b.ob){var d=Ap(b,"start",qo());a=a.C.i(d).i;var e={id:"lidarv"};e.r=c;e.v=sq+"v";Mi(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=$da();Mi(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Eo(Do(new Co,e));Io(c);b.ob=!0}};
fr=function(a,b,c){gq(eq,[a],!qo());xp(a,c);4!=c&&wp(a.xa,c,a.qz);return Ap(a,b,qo())};
iea=function(a){Zda(function(){var b=gr();null!=a.i&&(b.sdk=a.i);var c=om(Mp);null!=c.i&&(b.avms=c.i.getName());return b})};
mea=function(a,b,c,d){if(a.B)var e=Gp(Ip,b);else e=Hp(Ip,c),null!==e&&e.Ff!==b&&(a.ov(e),e=null);e||(b=a.bx(c,Wn(),!1,b),0==Ip.u.length&&(Bn().B=79463069),Lp([b]),e=b,e.C=br(a),d&&(e.Va=d));return e};
nea=function(a){g.sc(Ip.i,function(b){3==b.xg&&a.ov(b)})};
hr=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
gr=function(){var a=po(),b={};return b.sv=sq,b["if"]=a.B?"1":"0",b.nas=String(Ip.i.length),b};
ir=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
kr=function(a){return!!(1<<a&jr)};
sea=function(){try{oea()}catch(d){}var a="a=1&b="+jr+"&",b=[],c=99;g.sc(pea,function(d,e){var f=!1;try{f=d(km)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.sc(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.sc(qea,function(d){var e="false";try{e=d(km)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.sc(rea,function(d){var e="";try{e=g.Fc(d(km))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
oea=function(){if(!lr){var a=function(){mr=!0;km.document.removeEventListener("webdriver-evaluate",a,!0)};
km.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){nr=!0;km.document.removeEventListener("webdriver-evaluate-response",b,!0)};
km.document.addEventListener("webdriver-evaluate-response",b,!0);lr=!0}};
tea=function(){this.blockSize=-1};
or=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()};
pr=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};
qr=function(){this.u=null};
rr=function(a){return function(b){var c=new or;c.update(b+a);return jaa(c.digest()).slice(-8)}};
sr=function(a,b){this.i=a;this.B=b};
cr=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=sq,e.cb=tq,e.e=uea(b),e);var f=Ap(c,b,qo());g.Ze(e,f);c.SO[b]=f;a=2==c.Ik()?jda(e).join("&"):a.B.i(e).i;try{return d(c.Ff,a,b),0}catch(h){return 2}}else return 1};
uea=function(a){var b=xq(a)?"custom_metric_viewable":a;a=Qe(yp,function(c){return c==b});
return vq[a]};
tr=function(){Wq.call(this);this.I=null;this.D=!1;this.C=new qr};
vea=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&jea(a,c,b)};
wea=function(a,b,c){var d=Gp(Ip,b);d||(d=c.opt_nativeTime||-1,d=Xq(a,b,br(a),d),c.opt_osdId&&(d.Va=c.opt_osdId));return d};
xea=function(a,b,c){var d=Gp(Ip,b);d||(d=Xq(a,b,"n",c.opt_nativeTime||-1));return d};
yea=function(a,b){var c=Gp(Ip,b);c||(c=Xq(a,b,"h",-1));return c};
zea=function(a){Bn();switch(br(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};
vr=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Ze(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(wq("ol",d));if(void 0!==d)if(void 0!==uq(d))if(Zq)b=wq("ue",d);else if(lea(a),"i"==$q)b=wq("i",d),b["if"]=0;else if(b=a.xz(b,e))if(a.B&&3==b.xg)b="stopped";else{b:{"i"==$q&&(b.Rs=!0,a.rG());c=e.opt_fullscreen;void 0!==c&&Yo(b,!!c);var f;if(c=!po().u)(c=ub(g.yb(),"CrKey")||ub(g.yb(),"PlayStation")||ub(g.yb(),"Roku")||fda()||ub(g.yb(),"Xbox"))||(c=g.yb(),c=ub(c,"AppleTV")||
ub(c,"Apple TV")||ub(c,"CFNetwork")||ub(c,"tvOS")),c||(c=g.yb(),c=ub(c,"sdk_google_atv_x86")||ub(c,"Android TV")),c=!c;c&&(tn(),c=0===qm(en));if(f=c){switch(b.Ik()){case 1:er(a,b,"pv");break;case 2:a.fG(b)}ar("pv")}c=d.toLowerCase();if(f=!f)f=fm(Bn().featureSet,"ssmol")&&"loaded"===c?!1:g.Wb(Aea,c);if(f&&0==b.xg){"i"!=$q&&(eq.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;$n=f="number"===typeof f?f:Wn();b.Oy=!0;var h=qo();b.xg=1;b.yf={};b.yf.start=!1;b.yf.firstquartile=!1;b.yf.midpoint=!1;b.yf.thirdquartile=
!1;b.yf.complete=!1;b.yf.resume=!1;b.yf.pause=!1;b.yf.skip=!1;b.yf.mute=!1;b.yf.unmute=!1;b.yf.viewable_impression=!1;b.yf.measurable_impression=!1;b.yf.fully_viewable_audible_half_duration_impression=!1;b.yf.fullscreen=!1;b.yf.exitfullscreen=!1;b.AD=0;h||(b.Wg().S=f);gq(eq,[b],!h)}(f=b.Qq[c])&&gp(b.jf,f);g.Wb(Bea,c)&&b.mq&&b.mq.D(b,null);switch(b.Ik()){case 1:var l=xq(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.S[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=wq(void 0,c);g.Ze(e,d);d=e;break b}d=
void 0}3==b.xg&&(a.B?b.Nd&&b.Nd.uu():a.ov(b));b=d}else b=wq("nf",d);else b=void 0;else Zq?b=wq("ue"):(b=a.xz(b,e))?(d=wq(),g.Ze(d,zp(b,!0,!1,!1)),b=d):b=wq("nf");return"string"===typeof b?a.B&&"stopped"===b?ur:a.C.i(void 0):a.C.i(b)};
wr=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.I,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b};
xr=function(a,b,c){c=void 0===c?{}:c;a=vr(om(tr),b,c,a);return wr(a)};
yr=function(a,b){b=void 0===b?!1:b;var c=om(tr).xz(a,{});c?rp(c):b&&(a=om(tr).bx(null,Wn(),!1,a),a.xg=3,Lp([a]))};
Eea=function(a){if(g.kb(g.Eg(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Qk(a)}catch(c){return null!=g.Tb(Cea,function(d){return 0<a.search(d)})}return b.D.match(Dea)?!0:null!=g.Tb(Cea,function(c){return null!=a.match(c)})};
g.zr=function(a,b){return a.replace(Fea,function(c,d){try{var e=Ue(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.kb(g.Eg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Br=function(a){var b,c;g.rf.call(this);var d=this;this.I=this.u=0;this.zj=null!==a&&void 0!==a?a:{Qf:function(e,f){return setTimeout(e,f)},
oi:clearTimeout};this.i=null!==(c=null===(b=window.navigator)||void 0===b?void 0:b.onLine)&&void 0!==c?c:!0;this.C=function(){return g.A(function(e){return g.x(e,Ar(d),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||Gea(this)};
Gea=function(a){a.I=a.zj.Qf(function(){var b;return g.A(function(c){if(1==c.i)return a.i?(null===(b=window.navigator)||void 0===b?0:b.onLine)?c.fb(3):g.x(c,Ar(a),3):g.x(c,Ar(a),3);Gea(a);g.ta(c)})},3E4)};
Ar=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f;return g.A(function(h){switch(h.i){case 1:return d=window.AbortController?new window.AbortController:void 0,e=null===d||void 0===d?void 0:d.signal,f=!1,ua(h,2,3),d&&(a.u=a.zj.Qf(function(){d.abort()},b||2E4)),g.x(h,fetch("/generate_204",{method:"HEAD",
signal:e}),5);case 5:f=!0;case 3:xa(h);a.D=void 0;a.u&&(a.zj.oi(a.u),a.u=0);f!==a.i&&(a.i=f,a.i?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(f);ya(h,0);break;case 2:wa(h),f=!1,h.fb(3)}})})};
Cr=function(){this.data_=[];this.i=-1};
Hea=function(a){-1==a.i&&(a.i=rn(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.Dr=function(a,b,c){g.E.call(this);this.i=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.D)(this.uP,this)};
g.Er=function(a){a.isActive()||a.start()};
Iea=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Jea=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.I=function(a,b,c){g.E.call(this);this.i=a;this.Wf=b||0;this.u=c;this.B=(0,g.D)(this.PH,this)};
g.Fr=function(a,b){a.isActive()||a.start(b)};
g.Gr=function(a){a.stop();a.PH()};
g.Hr=function(a){a.isActive()&&g.Gr(a)};
Ir=function(a,b){this.i=a[g.B.Symbol.iterator]();this.u=b;this.B=0};
Kea=function(a,b){return new Ir(a,b)};
Lea=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Jr=function(a){return a.classList?a.classList:Lea(a).match(/\S+/g)||[]};
g.Kr=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Lr=function(a,b){return a.classList?a.classList.contains(b):g.Wb(Jr(a),b)};
g.L=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Lr(a,b)){var c=Lea(a);g.Kr(a,c+(0<c.length?" "+b:b))}};
g.Mr=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.L(a,e)});
else{var c={};Array.prototype.forEach.call(Jr(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.Kr(a,b)}};
g.Nr=function(a,b){a.classList?a.classList.remove(b):g.Lr(a,b)&&g.Kr(a,Array.prototype.filter.call(Jr(a),function(c){return c!=b}).join(" "))};
g.Or=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Nr(a,c)}):g.Kr(a,Array.prototype.filter.call(Jr(a),function(c){return!g.Wb(b,c)}).join(" "))};
g.M=function(a,b,c){c?g.L(a,b):g.Nr(a,b)};
Mea=function(a,b){var c=!g.Lr(a,b);g.M(a,b,c)};
Sr=function(a){if(a instanceof Pr||a instanceof Qr||a instanceof Rr)return a;if("function"==typeof a.Dj)return new Pr(function(){return Nea(a)});
if("function"==typeof a[Symbol.iterator])return new Pr(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Kg)return new Pr(function(){return Nea(a.Kg())});
throw Error("Not an iterator or iterable.");};
Nea=function(a){if(!(a instanceof g.ap))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.Dj();break}catch(d){if(d!==g.cp)throw d;b=!0}return{value:c,done:b}}}};
Pr=function(a){this.i=a};
Qr=function(a){this.i=a};
Rr=function(a){Pr.call(this,function(){return a});
this.B=a};
g.Tr=function(a,b){this.u={};this.i=[];this.Uo=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 if(a)if(a instanceof g.Tr)for(c=a.Yl(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Oea=function(a,b){return a===b};
Vr=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Ur(a.u,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],Ur(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
Ur=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Wr=function(){g.rf.call(this);this.i=0;this.endTime=this.startTime=null};
Pea=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.Hm(a,"transition",b.join(","))};
Xr=function(a,b,c,d,e){g.Wr.call(this);this.u=a;this.I=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
Qea=function(a,b,c,d){return new Xr(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Sea=function(a){Rea();return jg(a,null)};
g.Yr=function(a){Rea();return Of(a)};
Uea=function(a){a=vb(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 Tea))return null}return a};
Zr=function(a,b){a=g.B[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Vea=function(a){var b=g.B.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Wea=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Jc&&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)};
afa=function(a){if(!a)return cg;var b=document.createElement("div").style;Xea(a).forEach(function(c){var d=g.Yg&&c in Yea?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");gb(d,"--")||gb(d,"var")||(c=Wea(Zea,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Uea(c),null!=c&&Wea($ea,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return aba(g.If("Output of CSS sanitizer"),b.cssText||"")};
Xea=function(a){g.Na(a)?a=g.fc(a):(a=g.Ne(a),g.$b(a,"cssText"));return a};
g.as=function(a){var b,c=b=0,d=!1;a=a.split(bfa);for(var e=0;e<a.length;e++){var f=a[e];g.$r.test(f)?(b++,c++):cfa.test(f)?d=!0:dfa.test(f)?c++:efa.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.bs=function(a,b,c,d,e,f,h,l){this.i=a;this.K=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.S=l};
g.cs=function(a,b){if(0==b)return a.i;if(1==b)return a.u;var c=g.ug(a.i,a.B,b),d=g.ug(a.B,a.C,b);a=g.ug(a.C,a.u,b);c=g.ug(c,d,b);d=g.ug(d,a,b);return g.ug(c,d,b)};
ds=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
ffa=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")};
es=function(a){return(a=a.exec(g.yb()))?a[1]:""};
fs=function(a){return 0<=g.xb(gfa,a)};
g.gs=function(a){g.E.call(this);this.I=1;this.B=[];this.C=0;this.i=[];this.u={};this.K=!!a};
hfa=function(a,b,c){g.Ah(function(){a.apply(b,c)})};
g.hs=function(a){this.i=a};
is=function(a){this.i=a};
ifa=function(a){this.data=a};
jfa=function(a){return void 0===a||a instanceof ifa?a:new ifa(a)};
js=function(a){this.i=a};
g.kfa=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ta()||!!b&&b>g.Ta()};
g.ks=function(a){this.i=a};
lfa=function(){};
ls=function(){};
ms=function(a){this.i=a};
ns=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
mfa=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
ps=function(a,b){this.u=a;this.i=null;if(g.Jc&&!g.Bc(9)){os||(os=new g.Tr);this.i=os.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)),os.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}};
qs=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return nfa[b]})};
rs=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
ts=function(a,b){this.u=a;this.i=b+"::"};
g.us=function(a){var b=new ns;return b.isAvailable()?a?new ts(b,a):b:null};
vs=function(a,b){this.i=a;this.u=b};
ws=function(a){this.i=[];if(a)a:{if(a instanceof ws){var b=a.Yl();a=a.zi();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new vs(b[d],a[d]));break a}}else b=g.Ne(a),a=Me(a);for(d=0;d<b.length;d++)ofa(this,b[d],a[d])}};
ofa=function(a,b,c){var d=a.i;d.push(new vs(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};
pfa=function(){ws.call(this)};
xs=function(){};
qfa=function(){var a=g.Ba.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.ma(g.Ba.apply(0,arguments))))}})};
rfa=function(){var a=g.Ba.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.ma(g.Ba.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=qfa.apply(null,g.ma(d))(c.dispatch);return Object.assign(Object.assign({},c),{dispatch:e})}}};
ys=function(){return Math.random().toString(36).substring(7).split("").join(".")};
sfa=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:zs}))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"+ys()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(zs+' 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.'));})};
tfa=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 v=!0;p===n&&(p=n.slice());p.push(u);return function(){if(v){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.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var v=!1;else{for(v=u;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(u)===v}if(!v)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}v=n=p;for(var y=0;y<v.length;y++)(0,v[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(tfa)(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:zs});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:ufa});return t},a[vfa]=function(){var u={};
return u.subscribe=function(v){function y(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[vfa]=function(){return this},u},a);
return t};
As=function(a){Ad.call(this,a,-1,wfa)};
yfa=function(){return{2:ge,4:fe,7:he,9:he,10:he,11:ie,12:he,13:ge,14:[Caa,Bs,xfa],15:ee,16:ee,17:he,1:ie,3:ee,5:ee,6:ee,8:fe}};
Bs=function(a){Ad.call(this,a)};
xfa=function(){return{1:fe,2:fe,3:fe,4:fe,5:he}};
zfa=function(a){var b=a.split(""),c=[640574884,"pn8D",657329795,705141136,-1003083082,-1091690444,-1967475110,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
null,1639439668,1637438200,-811959160,b,"continue",-1543056579,-2121343044,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
null,-917085093,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
151580575,1485530718,692632858,583670355,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
291129290,1413642464,1423385981,function(d,e){d.push(e)},
function(d){d.reverse()},
1660767210,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
-1953965754,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
42316044,b,null,1465405633,-2144423587,function(d,e,f){var h=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},e.split(""))},
-575298742,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
b,1880373968,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-830847745,-575298742];c[8]=c;c[17]=c;c[36]=c;try{c[42](c[8],c[2]),c[42](c[17],c[44]),c[33](c[43],c[30]),c[16](c[12],c[0]),c[45](c[43],c[21]),c[28](c[36],c[5]),c[45](c[8],c[25]),c[33](c[47]),c[23](c[47]),c[45](c[36],c[14]),c[46](c[47],c[31]),c[45](c[21],c[24]),c[0](c[22],c[11],c[17]()),c[2](c[4],c[24]),c[2](c[18],c[36]),c[44](c[3],c[33],c[2]()),c[13](c[32],c[38]),c[0](c[37]),c[32](c[11],c[22]),c[45](c[32]),c[22](c[21],c[12]),c[31](c[7],c[29]),c[22](c[32],c[27]),c[35](c[7]),c[25](c[45],c[18]),c[26](c[1],
c[37]),c[3](c[1]),c[19](c[32],c[42]),c[19](c[32],c[40]),c[19](c[3],c[16]),c[35](c[21]),c[14](c[21],c[18]),c[35](c[47]),c[26](c[41],c[42]),c[3](c[1]),c[31](c[7],c[26]),c[22](c[47],c[41]),c[35](c[48]),c[17](c[1],c[44]),c[29](c[1],c[31])}catch(d){return"enhanced_except_ipQB9ev-_w8_"+a}return b.join("")};
Cs=function(a){this.i=a};
Ds=function(){Cs.apply(this,arguments)};
Es=function(){Ds.apply(this,arguments)};
Fs=function(a){Ad.call(this,a)};
Gs=function(a){Ad.call(this,a)};
Hs=function(a){Ad.call(this,a)};
Is=function(a){Ad.call(this,a)};
Js=function(a){Ad.call(this,a,-1,Afa)};
Cfa=function(a){Ad.call(this,a,-1,Bfa)};
Ks=function(a){Ad.call(this,a)};
Ls=function(a){Ad.call(this,a,-1,Dfa)};
Ms=function(a){Ad.call(this,a,-1,Efa)};
Ns=function(){Ds.apply(this,arguments)};
Os=function(){Ds.apply(this,arguments)};
Ps=function(){Ds.apply(this,arguments)};
Qs=function(){Cs.apply(this,arguments)};
Rs=function(){Ds.apply(this,arguments)};
Ss=function(){Ds.apply(this,arguments)};
Ts=function(){Ds.apply(this,arguments)};
Us=function(){Ds.apply(this,arguments)};
Ffa=function(a){Ad.call(this,a)};
Vs=function(a){Ad.call(this,a)};
Gfa=function(a){Ad.call(this,a)};
Ws=function(a){Ad.call(this,a,-1,Uha)};
Xs=function(){Ds.apply(this,arguments)};
Ys=function(){Ds.apply(this,arguments)};
Zs=function(){Ds.apply(this,arguments)};
$s=function(){Ds.apply(this,arguments)};
at=function(){Ds.apply(this,arguments)};
bt=function(){Ds.apply(this,arguments)};
ct=function(){Ds.apply(this,arguments)};
dt=function(){Ds.apply(this,arguments)};
et=function(){Ds.apply(this,arguments)};
ft=function(){Ds.apply(this,arguments)};
gt=function(){Ds.apply(this,arguments)};
ht=function(){Ds.apply(this,arguments)};
jt=function(){Ds.apply(this,arguments)};
kt=function(){Ds.apply(this,arguments)};
Vha=function(){return g.Ja("yt.ads.biscotti.lastId_")||""};
Wha=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
lt=function(a){Ad.call(this,a,1)};
mt=function(){lt.apply(this,arguments)};
ot=function(){var a=arguments;1<a.length?nt[a[0]]=a[1]:1===a.length&&Object.assign(nt,a[0])};
g.N=function(a,b){return a in nt?nt[a]:b};
pt=function(a){var b=nt.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.O=function(a){a=dia(a);return"string"===typeof a&&"false"===a?!1:!!a};
qt=function(a,b){a=dia(a);return void 0===a&&void 0!==b?b:Number(a||0)};
rt=function(){return g.N("EXPERIMENTS_TOKEN","")};
dia=function(a){var b=g.N("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.N("EXPERIMENT_FLAGS",{})[a]};
tt=function(){var a=[],b=g.N("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.N("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
eia=function(a){ut.forEach(function(b){return b(a)})};
wt=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.vt(b)}}:a};
g.vt=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.N("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ot("ERRORS",e));eia(a)};
xt=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.N("ERRORS",[]),e.push([a,"WARNING",b,c,d]),ot("ERRORS",e))};
zt=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=fia(f[0]||""),l=fia(f[1]||"");h in c?Array.isArray(c[h])?gc(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(r){var m=r,n=f[0],p=String(zt);m.args=[{key:n,value:f[1],query:a,method:gia==p?"unchanged":p}];hia.hasOwnProperty(n)||xt(m)}}return c};
At=function(a){var b=[];g.De(a,function(c,d){var e=Bg(d),f;Array.isArray(c)?f=c:f=[c];g.sc(f,function(h){""==h?b.push(e):b.push(e+"="+Bg(h))})});
return b.join("&")};
Bt=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return zt(a,"&")};
Ct=function(a){a=a.split(",");return a=a.map(function(b){return Bt(b)})};
g.Dt=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Bt(1<a.length?a[1]:a[0])):{}};
Et=function(a,b){return iia(a,b||{},!0)};
Ft=function(a,b){return iia(a,b||{},!1)};
iia=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=Bt(e[1]||"");for(var f in b)if(c||!Oe(e,f))e[f]=b[f];return g.Ui(a,e)+d};
Gt=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};
Ht=function(a){a||(a=document.location.href);a=g.Ii(1,a);return null!==a&&"https"==a};
It=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};
fia=function(a){return a&&a.match(jia)?a:Cg(a)};
Jt=function(a){var b=kia;a=void 0===a?Vha():a;var c=Object,d=c.assign,e=lia(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(z){}try{var m=f.outerWidth;var n=f.outerHeight}catch(z){}try{var p=f.innerWidth;var r=f.innerHeight}catch(z){}try{var t=f.screenLeft;var u=f.screenTop}catch(z){}try{p=f.innerWidth,r=f.innerHeight}catch(z){}try{var v=f.screen.availWidth;var y=f.screen.availTop}catch(z){}f=[t,u,h,l,v,y,m,n,p,r];h=fo(!1,b.i.top);l={};m=new Cr;g.B.SVGElement&&g.B.document.createElementNS&&
m.set(0);n=Eca();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);g.B.crypto&&g.B.crypto.subtle&&m.set(3);g.B.TextDecoder&&g.B.TextEncoder&&m.set(4);m=Hea(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=qm(b.u),l.wgl=!!km.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
lia=function(a){var b={};b.dt=mia;b.flash="0";a:{try{var c=a.i.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?km:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=km.screen)?void 0:f.height;var h;b.u_w=null==(h=km.screen)?void 0:h.width;var l;b.u_ah=null==(l=km.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=km.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=km.screen)?void 0:
n.colorDepth}catch(p){}return b};
oia=function(){if(!nia)return null;var a=nia();return"open"in a?a:null};
g.Lt=function(a){switch(Kt(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Kt=function(a){return a&&"status"in a?a.status:-1};
g.Mt=function(a,b){"function"===typeof a&&(a=wt(a));return window.setTimeout(a,b)};
Nt=function(a,b){"function"===typeof a&&(a=wt(a));return window.setInterval(a,b)};
g.Ot=function(a){window.clearTimeout(a)};
Pt=function(a){window.clearInterval(a)};
qia=function(a,b){b=void 0===b?{}:b;var c=Gt(a),d=g.O("web_ajax_ignore_global_headers_if_set"),e;for(e in pia){var f=g.N(pia[e]);!f||!c&&!Qt(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Qt(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Qt(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||Qt(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=At(Jt(void 0));return b};
sia=function(a,b){var c=g.Ji(a);g.O("debug_handle_relative_url_for_query_forward_killswitch")||c||!Gt(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=Bt(b),f={};g.sc(ria,function(h){e[h]&&(f[h]=e[h])});
return Ft(a,f)};
Qt=function(a){return g.Ji(a)?!1:!0};
g.hu=function(a,b){var c=b.format||"JSON";a=tia(a,b);var d=uia(a,b),e=!1,f=gu(a,function(m){if(!e){e=!0;l&&g.Ot(l);var n=g.Lt(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=via(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.B;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.Mt(function(){e||(e=!0,f.abort(),g.Ot(l),h.call(b.context||g.B,f))},b.timeout)}return f};
tia=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.N("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=Et(a,b);return a};
uia=function(a,b){var c=g.N("XSRF_FIELD_NAME",void 0),d=g.N("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=g.N("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=Bt(e),g.Ze(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.Si(e));f=e||f&&
!g.Se(f);!wia&&f&&"POST"!=b.method&&(wia=!0,g.vt(Error("AJAX request with postData should use POST")));return e};
via=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,xt(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)?xia(a):null)e={},g.sc(a.getElementsByTagName("*"),function(h){e[h.tagName]=yia(h)})}d&&zia(e);
return e};
zia=function(a){if(g.Oa(a))for(var b in a)"html_content"==b||jb(b,"_html")?a[b]=g.mg(g.If("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):zia(a[b])};
xia=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
yia=function(a){var b="";g.sc(a.childNodes,function(c){b+=c.nodeValue});
return b};
gu=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&wt(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=oia();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.O("debug_forward_web_query_parameters")&&(a=sia(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=qia(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};
ju=function(a,b){var c=g.We(b),d;return(new Fh(function(e,f){c.onSuccess=function(h){g.Lt(h)?e(new Aia(h)):f(new iu("Request failed, status="+Kt(h),"net.badstatus",h))};
c.onError=function(h){f(new iu("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new iu("Request timed out","net.timeout",h))};
d=g.hu(a,c)})).yh(function(e){e instanceof Th&&d.abort();
return Kh(e)})};
g.ku=function(a,b,c,d){function e(l,m,n){return l.yh(function(p){if(0>=m||403===Kt(p.xhr))return Kh(new iu("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(ju(a,b),m-1,r)})})}
function f(l){return new Fh(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(ju(a,b),c-1,d)};
iu=function(a,b,c){Wa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Aia=function(a){this.xhr=a};
lu=function(){this.u=0;this.i=null};
mu=function(a){var b=new lu;a=void 0===a?null:a;b.u=2;b.i=void 0===a?null:a;return b};
nu=function(a){var b=new lu;a=void 0===a?null:a;b.u=1;b.i=void 0===a?null:a;return b};
g.qu=function(a,b,c,d,e){ou||pu.set(""+a,b,{Zz:c,path:"/",domain:void 0===d?"youtube.com":d,rX:void 0===e?!1:e})};
g.ru=function(a,b){if(!ou)return pu.get(""+a,b)};
g.Bia=function(a,b,c){ou||pu.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Cia=function(){if(!pu.isEnabled())return!1;if(!pu.isEmpty())return!0;pu.set("TESTCOOKIESENABLED","1",{Zz:60});if("1"!==pu.get("TESTCOOKIESENABLED"))return!1;pu.remove("TESTCOOKIESENABLED");return!0};
tu=function(){};
vu=function(a,b,c){return uu(b,0,c)};
Dia=function(a,b){uu(a,2,b)};
wu=function(){tu.apply(this,arguments)};
xu=function(){wu.i||(wu.i=new wu);return wu.i};
g.yu=function(){return!!g.Ja("yt.scheduler.instance")};
uu=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Mt(a,c||0)};
zu=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Eia=function(){var a=/Chrome\/(\d+)/.exec(g.yb());return a?parseFloat(a[1]):NaN};
Fia=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.yb());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("."))};
Bu=function(){return Au("android")&&Au("chrome")&&!(Au("trident/")||Au("edge/"))&&!Au("cobalt")};
Gia=function(){return Au("armv7")||Au("aarch64")||Au("android")};
g.Cu=function(){return Au("cobalt")};
Du=function(){return Au("cobalt")&&Au("appletv")};
Eu=function(){return Au("(ps3; leanback shell)")||Au("ps3")&&g.Cu()};
Hia=function(){return Au("(ps4; leanback shell)")||Au("ps4")&&g.Cu()};
g.Iia=function(){return g.Cu()&&(Au("ps4 vr")||Au("ps4 pro vr"))};
Fu=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&600<=parseInt(a[1],10))};
Gu=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&602<=parseInt(a[1],10))};
Hu=function(){return Au("iemobile")||Au("windows phone")&&Au("edge")};
Ju=function(){return Iu&&Au("applewebkit")&&!Au("version")&&(!Au("safari")||Au("gsa/"))};
Lu=function(){return g.Ku&&Au("version/")};
Mu=function(){return Au("smart-tv")&&Au("samsung")};
Au=function(a){var b=g.yb();return b?0<=b.toLowerCase().indexOf(a):!1};
Nu=function(){if(ri())return!0;var a=g.N("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||Ju()||Lu()?!0:(a=g.ru("CONSENT"))?a.startsWith("YES+"):!0};
Pu=function(a){Wa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Ou;this.isTimeout=a instanceof iu&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Th};
Ou=function(){Wa.call(this,"Biscotti ID is missing from server")};
Mia=function(){if(g.O("disable_biscotti_fetch_entirely_for_all_web_clients"))return Kh(Error("Biscotti id fetching has been disabled entirely."));if(!Nu())return Kh(Error("User has not consented - not fetching biscotti id."));if("1"==Ue(g.N("PLAYER_VARS",{}),"privembed",!1))return Kh(Error("Biscotti ID is not available in private embed mode"));Qu||(Qu=ju("//googleads.g.doubleclick.net/pagead/id",Jia).then(Kia).yh(function(a){return Lia(2,a)}));
return Qu};
Kia=function(a){a=a.xhr.responseText;if(!gb(a,")]}'"))throw new Ou;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Ou;a=a.id;Wha(a);Qu=nu(a);Nia(18E5,2);return a};
Lia=function(a,b){b=new Pu(b);Wha("");Qu=mu(b);0<a&&Nia(12E4,a-1);throw b;};
Nia=function(a,b){g.Mt(function(){ju("//googleads.g.doubleclick.net/pagead/id",Jia).then(Kia,function(c){return Lia(b,c)}).yh(g.Ka)},a)};
Oia=function(){try{var a=g.Ja("yt.ads.biscotti.getId_");return a?a():Mia()}catch(b){return Kh(b)}};
Pia=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Ru+"VisibilityState";if(b in a)return a[b]};
Su=function(a,b){var c;lo(a,function(d){c=b[d];return!!c});
return c};
Tu=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 Qia||(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.u=a.pageY}}catch(e){}};
Ria=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.u=a.clientY+b}};
Sia=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 Qe(Uu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Oa(e[4])&&g.Oa(d)&&g.Ve(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Vu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Sia(a,b,c,d);if(e)return e;e=++Tia.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Tu(l);if(!rh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Tu(l);
l.currentTarget=a;return c.call(a,l)};
h=wt(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Uia()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Uu[e]=[a,b,c,h,d];return e};
Via=function(a,b){var c=document.body||document;return g.Vu(c,"click",function(d){var e=rh(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Wu=function(a){a&&("string"==typeof a&&(a=[a]),g.sc(a,function(b){if(b in Uu){var c=Uu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Uia()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Uu[b]}}))};
g.Xu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Yu=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.Xu(a)};
Zu=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};
$u=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.wg(b,c)};
g.av=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.bv=function(a){a=a||window.event;return!1===a.returnValue||a.oL&&a.oL()};
g.cv=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Wia=function(a){return Via(a,function(b){return g.Lr(b,"ytp-ad-has-logging-urls")})};
g.Xia=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Vu(a,b,function(){g.Wu(e);c.apply(a,arguments)},d)};
dv=function(a){for(var b in Uu)Uu[b][0]==a&&g.Wu(b)};
ev=function(a){this.K=a;this.i=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Vu(window,"mousemove",(0,g.D)(this.X,this));this.S=Nt((0,g.D)(this.Z,this),25)};
Yia=function(){var a={},b=void 0===a.VW?!1:a.VW;a=void 0===a.SR?!0:a.SR;if(null==g.Ja("_lact",window)){var c=parseInt(g.N("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&fv();g.Vu(document,"keydown",fv);g.Vu(document,"keyup",fv);g.Vu(document,"mousedown",fv);g.Vu(document,"mouseup",fv);b?g.Vu(window,"touchmove",function(){gv("touchmove",200)},{passive:!0}):(g.Vu(window,"resize",function(){gv("resize",200)}),a&&g.Vu(window,"scroll",function(){gv("scroll",
200)}));
new ev(function(){gv("mouse",100)});
g.Vu(document,"touchstart",fv,{passive:!0});g.Vu(document,"touchend",fv,{passive:!0})}};
gv=function(a,b){hv[a]||(hv[a]=!0,g.iv.Qf(function(){fv();hv[a]=!1},b))};
fv=function(){null==g.Ja("_lact",window)&&(Yia(),g.Ja("_lact",window));var a=Date.now();g.Ia("_lact",a,window);-1==g.Ja("_fact",window)&&g.Ia("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()};
jv=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.kv=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Cu())a&&(a=g.Rf(g.Xf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.ig(kg(a)).toString(),a=Bg(g.zi(a))),g.kb(a)||(a=bh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Lg(a).body.appendChild(a)));else if(e)gu(a,b,"POST",e,d);else if(g.N("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)gu(a,b,"GET","",d);else{b:{try{var f=new rca({url:a});if(f.B&&f.u||f.C){var h=Gi(g.Ii(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Yi(a,"ri"));break b}}catch(m){}l=!1}l?Zia(a)?(b&&b(),c=!0):c=!1:c=!1;c||$ia(a,b)}};
lv=function(a,b,c){c=void 0===c?"":c;Zia(a,c)?b&&b():g.kv(a,b,void 0,void 0,c)};
Zia=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
$ia=function(a,b){var c=new Image,d=""+aja++;mv[d]=c;c.onload=c.onerror=function(){b&&mv[d]&&b();delete mv[d]};
c.src=a};
g.rv=function(a,b,c){var d=g.nv();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){ov[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.pv[a]?h():g.Mt(h,0)}catch(l){g.vt(l)}},c);
ov[e]=!0;qv[a]||(qv[a]=[]);qv[a].push(e);return e}return 0};
g.tv=function(a){var b=g.nv();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.sc(a,function(c){b.unsubscribeByKey(c);delete ov[c]}))};
g.uv=function(a,b){var c=g.nv();return c?c.publish.apply(c,arguments):!1};
cja=function(a){var b=g.nv();if(b)if(b.clear(a),a)bja(a);else for(var c in qv)bja(c)};
g.nv=function(){return g.B.ytPubsubPubsubInstance};
bja=function(a){qv[a]&&(a=qv[a],g.sc(a,function(b){ov[b]&&delete ov[b]}),a.length=0)};
dja=function(){this.B=this.i=this.u=0};
gja=function(a,b){if("log_event"===a.endpoint){var c=eja(a),d=vv.get(c)||[];vv.set(c,d);d.push(a.payload);var e=void 0===e?!1:e;b&&(wv=new b);a=qt("tvhtml5_logging_max_batch")||qt("web_logging_max_batch")||100;b=(0,g.P)();var f=e?xv.B:yv.B;d.length>=a?zv({writeThenSend:!0},g.O("flush_only_full_queue")?c:void 0,e):10<=b-f&&(fja(e),e?xv.B=b:yv.B=b)}};
hja=function(a,b){if("log_event"===a.endpoint){var c=eja(a),d=new Map;d.set(c,[a.payload]);b&&(wv=new b);return new Fh(function(e){wv&&wv.isReady()?Av(d,e,{bypassNetworkless:!0},!0):e()})}};
eja=function(a){var b="";if(a.xD)b="visitorOnlyApprovedKey";else if(a.cttAuthInfo){b=a.cttAuthInfo;var c={};b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId);Bv[a.cttAuthInfo.token]=c;b=a.cttAuthInfo.token}return b};
zv=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new Fh(function(d){c?(g.Ot(xv.u),g.Ot(xv.i),xv.i=0):(g.Ot(yv.u),g.Ot(yv.i),yv.i=0);if(wv&&wv.isReady())if(void 0!==b)if(c){var e=new Map,f=Cv.get(b)||[];e.set(b,f);ija(e,d,a);Cv.delete(b)}else e=new Map,f=vv.get(b)||[],e.set(b,f),Av(e,d,a),vv.delete(b);else c?(ija(Cv,d,a),Cv.clear()):(Av(vv,d,a),vv.clear());else fja(c),d()})};
fja=function(a){a=void 0===a?!1:a;if(g.O("web_gel_timeout_cap")&&(!a&&!yv.i||a&&!xv.i)){var b=g.Mt(function(){zv({writeThenSend:!0},void 0,a)},6E4);
a?xv.i=b:yv.i=b}g.Ot(a?xv.u:yv.u);b=g.N("LOGGING_BATCH_TIMEOUT",qt("web_gel_debounce_ms",1E4));g.O("shorten_initial_gel_batch_timeout")&&Dv&&(b=jja);b=g.Mt(function(){zv({writeThenSend:!0},void 0,a)},b);
a?xv.u=b:yv.u=b};
Av=function(a,b,c,d){var e=wv;c=void 0===c?{}:c;var f=Math.round((0,g.P)()),h=a.size;a=g.q(a);for(var l=a.next();!l.done;l=a.next()){var m=g.q(l.value);l=m.next().value;var n=m=m.next().value;m=g.Xe({context:g.Ev(e.config_||g.Fv())});m.events=n;(n=Bv[l])&&kja(m,l,n);delete Bv[l];l="visitorOnlyApprovedKey"===l;lja(m,f,l);mja(c);g.O("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&lv("/generate_204");g.Gv(e,"log_event",m,nja(c,l,function(){h--;h||b()},function(){h--;
h||b()},d));
Dv=!1}};
ija=function(a,b,c){var d=wv;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=l.next().value;l=new Ws;var n=oja(d.config_||g.Fv());Md(l,1,n);for(n=0;n<m.length;n++)Od(l,3,m[n],Vs,void 0);(m=Hv[h])&&pja(l,h,m);delete Hv[h];h="visitorOnlyApprovedKey"===h;qja(l,e,h);mja(c);l=Td(l);h=nja(c,h,function(){f--;f||b()},function(){f--;
f||b()},void 0);
h.headers={"Content-Type":"application/json+protobuf"};h.postBodyFormat="JSPB";h.postBody=l;g.Gv(d,"log_event","",h);Dv=!1}};
mja=function(a){g.O("always_send_and_write")&&(a.writeThenSend=!1)};
nja=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,eM:a,xD:b,cda:!!e,headers:{},postBodyFormat:"",postBody:""}};
lja=function(a,b,c){a.requestTimeMs=String(b);g.O("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.N("EVENT_ID",void 0))&&(c=rja(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
qja=function(a,b,c){Cd(a,2,b);if(!c&&(b=g.N("EVENT_ID",void 0))){c=rja();var d=new Gfa;Cd(d,1,b);Cd(d,2,c);Md(a,5,d)}};
rja=function(){var a=g.N("BATCH_CLIENT_COUNTER",void 0)||0;a||(a=Math.floor(Math.random()*sja/2));a++;a>sja&&(a=1);ot("BATCH_CLIENT_COUNTER",a);return a};
kja=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}]};
pja=function(a,b,c){if(Bd(c,1===Id(c,tja)?1:-1))var d=1;else if(c.getPlaylistId())d=2;else return;Md(a,4,c);a=a.getContext()||new Ms;c=Kd(a,Ls,3)||new Ls;var e=new Ks;e.setToken(b);Cd(e,1,d);Od(c,12,e,Ks,void 0);Md(a,3,c)};
Jv=function(a,b,c,d){d=void 0===d?{}:d;if(g.O("lr_drop_other_and_business_payloads")){if(uja[a]||vja[a])return}else if(g.O("lr_drop_other_payloads")&&uja[a])return;var e={},f=Math.round(d.timestamp||(0,g.P)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=jv();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.O("log_sequence_info_on_gel_web")&&d.Fm&&(a=e.context,b=d.Fm,Iv[b]=b in Iv?Iv[b]+1:0,a.sequence={index:Iv[b],groupKey:b},d.UR&&delete Iv[d.Fm]);(d.sX?hja:gja)({endpoint:"log_event",
payload:e,cttAuthInfo:d.cttAuthInfo,xD:d.xD},c)};
wja=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Kv=function(){if(!g.B.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.B.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.B.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.B.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.B.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
yja=function(){var a=Kv();a=Object.keys(xja).indexOf(a);return-1===a?null:a};
g.Mv=function(){this.i=g.N("ALT_PREF_COOKIE_NAME","PREF");this.u=g.N("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.ru(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])&&(Lv[d]=c.toString())}}};
g.Nv=function(a,b){return!!((zja("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Ov=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Pv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
zja=function(a){a=void 0!==Lv[a]?Lv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Aja=function(){var a=g.B.navigator;return a?a.connection:void 0};
Cja=function(){var a=Aja();if(a){var b=Bja[a.type||"unknown"]||"CONN_UNKNOWN";a=Bja[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}};
Eja=function(){var a=Aja();if(null!==a&&void 0!==a&&a.effectiveType)return Dja.hasOwnProperty(a.effectiveType)?Dja[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Fja=function(){return"INNERTUBE_API_KEY"in nt&&"INNERTUBE_API_VERSION"in nt};
g.Fv=function(){return{innertubeApiKey:g.N("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.N("INNERTUBE_API_VERSION",void 0),Hz:g.N("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Iz:g.N("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),gL:g.N("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.N("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),DE:g.N("INNERTUBE_CONTEXT_HL",void 0),CE:g.N("INNERTUBE_CONTEXT_GL",void 0),hL:g.N("INNERTUBE_HOST_OVERRIDE",void 0)||"",jL:!!g.N("INNERTUBE_USE_THIRD_PARTY_AUTH",
!1),iL:!!g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:g.N("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Ev=function(a){var b={client:{hl:a.DE,gl:a.CE,clientName:a.Iz,clientVersion:a.innertubeContextClientVersion,configInfo:a.Hz}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.B.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=rt();""!==c&&(b.client.experimentsToken=c);c=tt();0<c.length&&(b.request={internalExperimentFlags:c});Gja(a,void 0,b);Hja(a,void 0,b);Ija(void 0,b);Jja(a,void 0,b);Kja(void 0,b);g.N("DELEGATED_SESSION_ID")&&!g.O("pageid_as_header_web")&&
(b.user={onBehalfOfUser:g.N("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.q(Object.entries(Bt(g.N("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
oja=function(a){var b=new Ms,c=new Js;Cd(c,1,a.DE);Cd(c,2,a.CE);Cd(c,16,a.gL);Cd(c,17,a.innertubeContextClientVersion);if(a.Hz){var d=a.Hz,e=new Gs;d.coldConfigData&&Cd(e,1,d.coldConfigData);d.appInstallData&&Cd(e,6,d.appInstallData);d.coldHashData&&Cd(e,3,d.coldHashData);d.hotHashData&&Cd(e,5,d.hotHashData);Md(c,62,e)}(d=g.B.devicePixelRatio)&&1!=d&&Cd(c,65,d);d=rt();""!==d&&Cd(c,54,d);d=tt();if(0<d.length){e=new Cfa;for(var f=0;f<d.length;f++){var h=new Fs;Cd(h,1,d[f].key);h.setValue(d[f].value);
Od(e,15,h,Fs,void 0)}Md(b,5,e)}Gja(a,c);Hja(a,c);Ija(c);Jja(a,c);Kja(c);g.N("DELEGATED_SESSION_ID")&&!g.O("pageid_as_header_web")&&(a=new Ls,Cd(a,3,g.N("DELEGATED_SESSION_ID")));a=g.q(Object.entries(Bt(g.N("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.q(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?Cd(c,12,e):"cmodel"===d?Cd(c,13,e):"cbr"===d?Cd(c,87,e):"cbrver"===d?Cd(c,88,e):"cos"===d?Cd(c,18,e):"cosver"===d?Cd(c,19,e):"cplatform"===d&&Cd(c,42,e);Md(b,1,c);return b};
Gja=function(a,b,c){a=a.Iz;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Kd(b,Hs,96)||new Hs;var d=yja();null!==d&&Cd(c,3,d);Md(b,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Kv())};
Hja=function(a,b,c){a=a.Iz;if(("WEB_REMIX"===a||76===a)&&!g.O("music_web_display_mode_killswitch"))if(b){var d;c=null!=(d=Kd(b,Is,70))?d:new Is;d=yja();null!==d&&Cd(c,10,d);Md(b,70,c)}else if(c){var e;c.client.cM=null!=(e=c.client.cM)?e:{};c.client.cM.webDisplayMode=Kv()}};
Ija=function(a,b){var c;if(g.O("web_log_memory_total_kbytes")&&(null==(c=g.B.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.B.navigator)?void 0:d.deviceMemory;a?Cd(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Jja=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Kd(b,Gs,62))?d:new Gs;Cd(c,6,a.appInstallData);Md(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Kja=function(a,b){var c=Cja();c&&(a?Cd(a,61,Lja[c]):b&&(b.client.connectionType=c));g.O("web_log_effective_connection_type")&&(c=Eja())&&(a?Cd(a,94,Mja[c]):b&&(b.client.effectiveConnectionType=c))};
Nja=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.N("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.mJ||g.N("AUTHORIZATION"))||(a?b="Bearer "+g.Ja("gapi.auth.getToken")().Wca:b=ti([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.N("SESSION_INDEX",0),g.O("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.N("DELEGATED_SESSION_ID")));return d};
Qv=function(a){var b;(b=g.us(a))||(a=new ps(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new js(a):null;this.u=document.domain||window.location.hostname};
Sv=function(){var a;return null===(a=Rv())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Oja=function(){var a={};for(Tv=new Uv(void 0===a.handleError?Vv:a.handleError,void 0===a.logEvent?g.Wv:a.logEvent);0<Xv.length;)switch(a=Xv.shift(),a.type){case "ERROR":Tv.Bj(a.payload);break;case "EVENT":Tv.logEvent(a.eventType,a.payload)}};
Zv=function(a){Yv||(Tv?Tv.Bj(a):(Xv.push({type:"ERROR",payload:a}),10<Xv.length&&Xv.shift()))};
$v=function(a,b){Yv||(Tv?Tv.logEvent(a,b):(Xv.push({type:"EVENT",eventType:a,payload:b}),10<Xv.length&&Xv.shift()))};
g.aw=function(a){var b=g.Ba.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.ma(b))};
cw=function(){try{return bw(),!0}catch(a){return!1}};
bw=function(a){if(void 0!==g.N("DATASYNC_ID",void 0))return g.N("DATASYNC_ID",void 0);throw new g.aw("Datasync ID not set",void 0===a?"unknown":a);};
dw=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
ew=function(a){return a.substr(0,a.indexOf(":"))||a};
fw=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Pja[a]:c;d=void 0===d?Qja[a]:d;e=void 0===e?Rja[a]:e;g.aw.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,fw.prototype)};
gw=function(a,b){fw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Pja.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,gw.prototype)};
hw=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,hw.prototype)};
iw=function(a,b,c,d){b=ew(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof fw)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new fw("QUOTA_EXCEEDED",a);if(g.Gj&&"UnknownError"===e.name)return new fw("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof hw)return new fw("MISSING_INDEX",Object.assign(Object.assign({},a),{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Sja.some(function(f){return e.message.includes(f)}))return new fw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new fw("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign(Object.assign({},a),{name:"IdbError",zA:e.name})];e.level="WARNING";return e};
g.jw=function(a,b,c){var d=Sv();return new fw("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null===d||void 0===d?void 0:d.hasSucceededOnce}})};
Tja=function(a){if(!a)throw Error();throw a;};
Uja=function(a){return a};
kw=function(a){this.i=a};
lw=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)}};
Vja=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 lw?mw(a,b,f,d,e):d(f)}catch(h){e(h)}};
Wja=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 lw?mw(a,b,f,d,e):d(f)}catch(h){e(h)}};
mw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof lw?mw(a,b,f,d,e):d(f)},function(f){e(f)})};
Xja=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)};
Yja=function(a){return new Promise(function(b,c){Xja(a,b,c)})};
nw=function(a){return new lw(new kw(function(b,c){Xja(a,b,c)}))};
ow=function(a,b){return new lw(new kw(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Zja=function(a,b){this.request=a;this.cursor=b};
pw=function(a){return nw(a).then(function(b){return b?new Zja(a,b):null})};
$ja=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.P)());this.u=!1};
rw=function(a,b,c){a=a.i.createObjectStore(b,c);return new qw(a)};
tw=function(a,b){a.i.objectStoreNames.contains(b)&&a.i.deleteObjectStore(b)};
bka=function(a,b){return uw(a,["captions"],{mode:"readonly",Lc:!0},function(c){return aka(c.objectStore("captions"),b,void 0)})};
cka=function(a,b){return uw(a,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(c){return vw(c.objectStore("LogsRequestsStore"),b,void 0)})};
uw=function(a,b,c,d){var e,f,h,l,m,n,p,r,t,u,v,y;return g.A(function(z){switch(z.i){case 1:var C={mode:"readonly",Lc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Lc?3:1;h=0;case 2:if(l){z.fb(3);break}h++;m=Math.round((0,g.P)());ua(z,4);n=a.i.transaction(b,e.mode);C=new ww(n);C=dka(C,d);return g.x(z,C,6);case 6:return p=z.u,r=Math.round((0,g.P)()),eka(a,m,r,h,void 0,b.join(),e),z.return(p);case 4:t=wa(z);u=Math.round((0,g.P)());
v=iw(t,a.i.name,b.join(),a.i.version);if((y=v instanceof fw&&!v.i)||h>=f)eka(a,m,u,h,v,b.join(),e),l=v;z.fb(2);break;case 3:return z.return(Promise.reject(l))}})};
eka=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof fw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&$v("QUOTA_EXCEEDED",{dbName:ew(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof fw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),$v("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),fka(a,!1,d,f,b,h.tag),Zv(e)):fka(a,!0,d,f,b,
h.tag)};
fka=function(a,b,c,d,e,f){$v("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
qw=function(a){this.i=a};
xw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
gka=function(a,b){return yw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
aka=function(a,b,c){return"getAll"in IDBObjectStore.prototype?nw(a.i.getAll(b,c)):hka(a,b,c)};
hka=function(a,b,c){var d=[];return yw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
jka=function(a){return"getAllKeys"in IDBObjectStore.prototype?nw(a.i.getAllKeys(void 0,void 0)):ika(a)};
ika=function(a){var b=[];return kka(a,{query:void 0},function(c){b.push(c.sz());return c.continue()}).then(function(){return b})};
vw=function(a,b,c){return nw(a.i.put(b,c))};
yw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return zw(a).then(function(d){return ow(d,c)})};
kka=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return pw(a).then(function(e){return ow(e,c)})};
ww=function(a){var b=this;this.i=a;this.B=new Map;this.u=!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.u){e=fw;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)}})})};
dka=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})};
lka=function(a){this.i=a};
Aw=function(a,b){return"getAll"in IDBIndex.prototype?nw(a.i.getAll(b,void 0)):mka(a,b)};
mka=function(a,b){var c=[];return Bw(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
Bw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return zw(a).then(function(d){return ow(d,c)})};
nka=function(a,b){this.request=a;this.cursor=b};
zw=function(a){return nw(a).then(function(b){return b?new nka(a,b):null})};
oka=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new $ja(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.KX,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&&$v("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:ew(a)});var v=f(),y=new ww(h.transaction);
p&&p(v,function(z){return u.oldVersion<z&&u.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){$v("IDB_UNEXPECTEDLY_CLOSED",{dbName:ew(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
pka=function(a,b,c){c=void 0===c?{}:c;return oka(a,b,c)};
Cw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.i)return ua(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,Yja(c),4);
if(2!=h.i)return va(h,0);f=wa(h);throw iw(f,a,"",-1);})};
qka=function(a){return new Promise(function(b){Dia(function(){b()},a)})};
Dw=function(a,b){this.name=a;this.options=b;this.C=!0;this.D=0;this.u=500};
rka=function(a,b){return new fw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
Ew=function(a,b){if(!b)throw g.jw("openWithToken",ew(a.name));return a.open()};
ska=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,Ew(Fw,b),2);c=d.u;return d.return(uw(c,["databases"],{Lc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return vw(f,a).then(function(){})})}))})};
Gw=function(a,b){var c;return g.A(function(d){if(1==d.i)return a?g.x(d,Ew(Fw,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
tka=function(a,b){var c,d;return g.A(function(e){return 1==e.i?(c=[],g.x(e,Ew(Fw,b),2)):3!=e.i?(d=e.u,g.x(e,uw(d,["databases"],{Lc:!0,mode:"readonly"},function(f){c.length=0;return yw(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
uka=function(a){return tka(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
vka=function(){var a,b,c;return g.A(function(d){switch(d.i){case 1:a=Sv();if(null===a||void 0===a?0:a.hasSucceededOnce)return d.return(!0);if(Iu&&Fu()&&!Gu()||g.Hw)return d.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return d.return(!1)}catch(e){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);ua(d,2);c={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.x(d,ska(c,Iw),4);case 4:return g.x(d,Gw("yt-idb-test-do-not-use",Iw),5);case 5:return d.return(!0);case 2:return wa(d),d.return(!1)}})};
wka=function(){if(void 0!==Jw)return Jw;Yv=!0;return Jw=vka().then(function(a){Yv=!1;var b,c;null!==(b=Rv())&&void 0!==b&&b.i&&(b=Sv(),b={hasSucceededOnce:(null===b||void 0===b?void 0:b.hasSucceededOnce)||a},null===(c=Rv())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0));return a})};
Kw=function(){return g.Ja("ytglobal.idbToken_")||void 0};
g.Lw=function(){var a=Kw();return a?Promise.resolve(a):wka().then(function(b){(b=b?Iw:void 0)&&g.Ia("ytglobal.idbToken_",b,void 0);return b})};
xka=function(a){if(!cw())throw a=new fw("AUTH_INVALID",{dbName:a}),Zv(a),a;var b=bw();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
yka=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.i){case 1:return f=null!==(e=Error().stack)&&void 0!==e?e:"",g.x(p,g.Lw(),2);case 2:h=p.u;if(!h)throw l=g.jw("openDbImpl",a,b),g.O("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Zv(l),l;dw(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:xka(a);ua(p,3);return g.x(p,ska(m,h),5);case 5:return g.x(p,pka(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=wa(p),ua(p,7),g.x(p,
Gw(m.actualName,h),9);case 9:va(p,8);break;case 7:wa(p);case 8:throw n;}})};
zka=function(a,b,c){c=void 0===c?{}:c;return yka(a,b,!1,c)};
Aka=function(a,b,c){c=void 0===c?{}:c;return yka(a,b,!0,c)};
Bka=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.i)return g.x(e,g.Lw(),2);if(3!=e.i){c=e.u;if(!c)return e.return();dw(a);d=xka(a);return g.x(e,Cw(d.actualName,b),3)}return g.x(e,Gw(d.actualName,c),0)})};
Cka=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.i?g.x(e,Cw(d.actualName,b),2):g.x(e,Gw(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Dka=function(){var a=void 0===a?{}:a;var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Lw(),2);if(3!=d.i){b=d.u;if(!b)return d.return();dw("LogsDatabaseV2");return g.x(d,uka(b),3)}c=d.u;return g.x(d,Cka(c,a,b),0)})};
Eka=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.i)return g.x(d,g.Lw(),2);if(3!=d.i){c=d.u;if(!c)return d.return();dw(a);return g.x(d,Cw(a,b),3)}return g.x(d,Gw(a,c),0)})};
Mw=function(a){var b,c,d,e,f,h,l,m;this.pe=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){};
this.Ks=function(){};
this.now=Date.now;this.qv=!1;this.lO=null!==(b=a.lO)&&void 0!==b?b:100;this.ON=null!==(c=a.ON)&&void 0!==c?c:1;this.IN=null!==(d=a.IN)&&void 0!==d?d:2592E6;this.zN=null!==(e=a.zN)&&void 0!==e?e:12E4;this.NN=null!==(f=a.NN)&&void 0!==f?f:5E3;this.Tc=null!==(h=a.Tc)&&void 0!==h?h:void 0;this.Py=!!a.Py;this.Fy=null!==(l=a.Fy)&&void 0!==l?l:.1;this.JA=null!==(m=a.JA)&&void 0!==m?m:10;a.handleError&&(this.handleError=a.handleError);a.Ks&&(this.Ks=a.Ks);a.qv&&(this.qv=a.qv);this.kb=a.kb;this.zj=a.zj;this.cf=
a.cf;this.Xe=a.Xe;this.Dm=a.Dm;this.OF=a.OF;this.mF=a.mF;this.Tc&&(!this.kb||this.kb("networkless_logging"))&&Fka(this)};
Fka=function(a){return g.A(function(b){if(1==b.i)return!a.Tc||a.qv?b.return():a.Py&&Math.random()<=a.Fy?g.x(b,a.cf.zR(a.Tc),2):b.fb(2);Gka(a);a.Xe.Ee()&&a.Dx();a.Xe.Ra(a.OF,a.Dx.bind(a));a.Xe.Ra(a.mF,a.zJ.bind(a));a.pe=!0;g.ta(b)})};
Nw=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:if(!a.Tc)throw c=g.jw("immediateSend"),c;if(void 0===b.id){e.fb(2);break}return g.x(e,a.cf.lT(b.id,a.Tc),3);case 3:(d=e.u)?b=d:a.Ks(Error("The request cannot be found in the database."));case 2:if(Hka(a,b,a.IN)){e.fb(4);break}a.Ks(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.fb(5);break}return g.x(e,a.cf.ls(b.id,a.Tc),5);case 5:return e.return();case 4:b.skipRetry||(b=Ika(a,b));if(!b){e.fb(0);
break}if(!b.skipRetry||void 0===b.id){e.fb(8);break}return g.x(e,a.cf.ls(b.id,a.Tc),8);case 8:a.Dm(b.url,b.options,!!b.skipRetry),g.ta(e)}})};
Ika=function(a,b){if(!a.Tc)throw g.jw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h;return g.A(function(l){switch(l.i){case 1:h=Jka(f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.JA)){l.fb(2);break}if(!a.Xe.Em){l.fb(3);break}return g.x(l,a.Xe.Em(),3);case 3:if(a.Xe.Ee()){l.fb(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null===b||void 0===b?void 0:b.id)){l.fb(6);break}return g.x(l,a.cf.jG(b.id,a.Tc,!1),6);case 6:return l.return();case 2:if(a.kb&&
a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.JA)return l.return();a.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){l.fb(8);break}return b.sendCount<a.ON?g.x(l,a.cf.jG(b.id,a.Tc),12):g.x(l,a.cf.ls(b.id,a.Tc),8);case 12:a.zj.Qf(function(){a.Xe.Ee()&&a.Dx()},a.NN);
case 8:c(e,f),g.ta(l)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){return g.A(function(h){if(1==h.i)return void 0===(null===b||void 0===b?void 0:b.id)?h.fb(2):g.x(h,a.cf.ls(b.id,a.Tc),2);a.Xe.oo&&a.kb&&a.kb("vss_network_hint")&&a.Xe.oo(!0);d(e,f);g.ta(h)})};
return b};
Hka=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Gka=function(a){if(!a.Tc)throw g.jw("retryQueuedRequests");a.cf.FK("QUEUED",a.Tc).then(function(b){b&&!Hka(a,b,a.zN)?a.zj.Qf(function(){return g.A(function(c){if(1==c.i)return void 0===b.id?c.fb(2):g.x(c,a.cf.jG(b.id,a.Tc),2);Gka(a);g.ta(c)})}):a.Xe.Ee()&&a.Dx()})};
Ow=function(a,b){a.TO&&!a.Xe.Ee()?a.TO(b):a.handleError(b)};
Jka=function(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Pw=function(a,b){this.version=a;this.args=b};
Qw=function(a,b){this.topic=a;this.i=b};
Sw=function(a,b){var c=Rw();c&&c.publish.call(c,a.toString(),a,b)};
Lka=function(a,b,c){var d=Rw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Tw[e])try{if(h&&a instanceof Qw&&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.Uo){var p=new m;m.Uo=p.version}var r=m.Uo}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.fc(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.vt(t)}},Kka[a.toString()]?g.yu()?g.iv.Qf(l):g.Mt(l,0):l())});
Tw[e]=!0;Uw[a.toString()]||(Uw[a.toString()]=[]);Uw[a.toString()].push(e);return e};
Ww=function(a,b,c){var d=Lka(a,function(e){b.apply(c,arguments);Vw(d)},c);
return d};
Vw=function(a){var b=Rw();b&&("number"===typeof a&&(a=[a]),g.sc(a,function(c){b.unsubscribeByKey(c);delete Tw[c]}))};
Rw=function(){return g.Ja("ytPubsub2Pubsub2Instance")};
Xw=function(a,b){Dw.call(this,a,b);this.options=b;dw(a)};
Mka=function(a,b){var c;return function(){c||(c=new Xw(a,b));return c}};
Yw=function(a,b){return Mka(a,b)};
Nka=function(){if(Zw)return Zw();var a={};Zw=Yw("LogsDatabaseV2",{nq:(a.LogsRequestsStore={Xm:2},a),ox:!1,upgrade:function(b,c,d){c(2)&&rw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),xw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&tw(b,"sapisid");c(9)&&tw(b,"SWHealthLog")},
version:9});return Zw()};
$w=function(a){return Ew(Nka(),a)};
ax=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.i)return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,$w(b),2);if(3!=h.i)return d=h.u,e=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.N("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,cka(d,e),3);f=h.u;c.TX=(0,g.P)();Oka(c);return h.return(f)})};
Pka=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,$w(b),2);if(3!=n.i)return d=n.u,e=g.N("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.P)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,uw(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(p){return Bw(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(r){r.getValue()&&(m=r.getValue(),"NEW"===
a&&(m.status="QUEUED",r.update(m)))})}),3);
c.TX=(0,g.P)();Oka(c);return n.return(m)})};
Qka=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,$w(b),2);c=d.u;return d.return(uw(c,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",vw(f,h).then(function(){return h})})}))})};
bx=function(a,b,c){c=void 0===c?!0:c;var d;return g.A(function(e){if(1==e.i)return g.x(e,$w(b),2);d=e.u;return e.return(uw(d,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),vw(h,l).then(function(){return l})):lw.resolve(void 0)})}))})};
cx=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,$w(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
Rka=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,$w(a),2);b=d.u;c=(0,g.P)()-2592E6;return g.x(d,uw(b,["LogsRequestsStore"],{mode:"readwrite",Lc:!0},function(e){return yw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Ska=function(){g.A(function(a){return g.x(a,Dka(),0)})};
Oka=function(a){g.O("nwl_csi_killswitch")||.01>=Math.random()&&Sw("nwl_transaction_latency_payload",a)};
Uka=function(a){return Ew(Tka(),a)};
Vka=function(a){var b,c;g.A(function(d){if(1==d.i)return g.x(d,Uka(a),2);b=d.u;c=(0,g.P)()-2592E6;return g.x(d,uw(b,["SWHealthLog"],{mode:"readwrite",Lc:!0},function(e){return yw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Wka=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,Uka(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
ex=function(){dx||(dx=new Qv("yt.offline"));return dx};
Xka=function(a){if(g.O("offline_error_handling")){var b=ex().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);ex().set("errors",b,2592E3,!0)}};
fx=function(){if(g.O("offline_error_handling")){var a=ex().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.aw(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.vt(c)}ex().set("errors",{},2592E3,!0)}}};
gx=function(){g.rf.call(this);this.K=0;this.S=this.C=!1;this.u=this.jE();g.O("use_shared_nsm")?(Br.i||(Br.i=new Br(g.iv)),this.i=Br.i):(Yka(this),Zka(this))};
$ka=function(){if(!gx.i){var a=g.Ja("yt.networkStatusManager.instance")||new gx;g.Ia("yt.networkStatusManager.instance",a,void 0);gx.i=a}return gx.i};
Zka=function(a){window.addEventListener("online",function(){return g.A(function(b){if(1==b.i)return g.x(b,a.Em(),2);a.S&&fx();g.ta(b)})})};
Yka=function(a){window.addEventListener("offline",function(){return g.A(function(b){return g.x(b,a.Em(),0)})})};
ala=function(a){a.K=vu(0,function(){return g.A(function(b){if(1==b.i)return a.u?a.jE()||!a.C?b.fb(3):g.x(b,a.Em(),3):g.x(b,a.Em(),3);ala(a);g.ta(b)})},bla)};
hx=function(a){a=void 0===a?{}:a;g.rf.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.O("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.i=$ka();var c=g.Ja("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.gK);a.Xz&&!g.O("use_shared_nsm")&&(c=g.Ja("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ja("yt.networkStatusManager.instance.listen").bind(this.i))a.PA?
(this.PA=a.PA,c(this.D,function(){dla(b,"publicytnetworkstatus-online");g.O("use_shared_nsm")&&a.Xz&&fx()}),c(this.C,function(){dla(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online");
g.O("use_shared_nsm")&&a.Xz&&fx()}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
dla=function(a,b){a.PA?a.u?(g.iv.oi(a.K),a.K=g.iv.Qf(function(){a.I!==b&&(a.dispatchEvent(b),a.I=b,a.u=(0,g.P)())},a.PA-((0,g.P)()-a.u))):(a.dispatchEvent(b),a.I=b,a.u=(0,g.P)()):a.dispatchEvent(b)};
ix=function(){Mw.call(this,{cf:{zR:Rka,ls:cx,FK:Pka,lT:Qka,jG:bx,set:ax},Xe:ela(),handleError:g.vt,Ks:xt,Dm:fla,now:g.P,TO:Xka,zj:xu(),OF:"publicytnetworkstatus-online",mF:"publicytnetworkstatus-offline",Py:!0,Fy:.1,JA:qt("potential_esf_error_limit",10),kb:g.O,qv:!cw()});this.u=new Wj;this.Py&&Math.random()<=this.Fy&&this.Tc&&Vka(this.Tc);g.O("networkless_immediately_drop_sw_health_store")&&gla(this);g.O("networkless_immediately_drop_all_requests")&&Ska();Eka("LogsDatabaseV2")};
jx=function(){var a=g.Ja("yt.networklessRequestController.instance");a||(a=new ix,g.Ia("yt.networklessRequestController.instance",a,void 0),g.O("networkless_logging")&&g.Lw().then(function(b){return g.A(function(c){if(1==c.i)return a.Tc=b,g.x(c,Fka(a),2);a.u.resolve();g.ta(c)})}));
return a};
gla=function(a){var b;g.A(function(c){if(!a.Tc)throw b=g.jw("clearSWHealthLogsDb"),b;return c.return(Wka(a.Tc).catch(function(d){a.handleError(d)}))})};
fla=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.P)());c&&0===Object.keys(b).length?g.kv(a):g.hu(a,b)};
ela=function(){kx||(kx=new hx({Xz:!0,gK:!0}));return kx};
hla=function(a,b){function c(d){var e=lx().Ee();if(!mx()||!d||e&&g.O("vss_networkless_bypass_write"))nx(a,b);else{var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};ax(f,d).then(function(h){f.id=h;lx().Ee()&&ox(f)}).catch(function(h){ox(f);
px(h)})}}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Lw().then(function(d){c(d)}):c(Kw())};
qx=function(a,b,c){function d(e){if(mx()&&e){var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};g.O("nwl_skip_retry")&&(f.skipRetry=c);if(lx().Ee()||g.O("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.A(function(n){if(1==n.i)return g.x(n,ax(f,e).catch(function(p){px(p)}),2);
h(l,m);g.ta(n)})}}nx(a,b,f.skipRetry)}else ax(f,e).catch(function(l){nx(a,b,g.O("nwl_skip_retry")&&c);
px(l)})}else nx(a,b,g.O("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Lw().then(function(e){d(e)}):d(Kw())};
rx=function(a,b){function c(d){if(mx()&&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?cx(e.id,d):f=!0;g.O("vss_network_hint")&&lx().oo(!0);h(l,m)};
nx(e.url,e.options);ax(e,d).then(function(l){e.id=l;f&&cx(e.id,d)}).catch(function(l){px(l)})}else nx(a,b)}
b=void 0===b?{}:b;g.O("skip_is_supported_killswitch")?g.Lw().then(function(d){c(d)}):c(Kw())};
ila=function(){var a=Kw();if(!a)throw g.jw("throttleSend");sx||(sx=g.iv.Qf(function(){var b;return g.A(function(c){if(1==c.i)return g.x(c,Pka("NEW",a),2);if(3!=c.i)return b=c.u,b?g.x(c,ox(b),3):(g.iv.oi(sx),sx=0,c.return());sx&&(sx=0,ila());g.ta(c)})},100))};
ox=function(a){var b,c,d;return g.A(function(e){switch(e.i){case 1:b=Kw();if(!b)throw c=g.jw("immediateSend"),c;if(void 0===a.id){e.fb(2);break}return g.x(e,Qka(a.id,b),3);case 3:(d=e.u)?a=d:xt(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.P)()-f)){e.fb(4);break}xt(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.fb(5);break}return g.x(e,cx(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=jla(a));
f=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;if(!a){e.fb(0);break}if(!a.skipRetry||void 0===a.id){e.fb(8);break}return g.x(e,cx(a.id,b),8);case 8:nx(a.url,a.options,!!a.skipRetry),g.ta(e)}})};
jla=function(a){var b=Kw();if(!b)throw g.jw("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var h;return g.A(function(l){switch(l.i){case 1:h=Jka(f);if(!(g.O("nwl_consider_error_code")&&h||!g.O("nwl_consider_error_code")&&kla()<=qt("potential_esf_error_limit",10))){l.fb(2);break}return g.x(l,lx().Em(),3);case 3:if(lx().Ee()){l.fb(2);break}c(e,f);if(!g.O("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){l.fb(5);break}return g.x(l,bx(a.id,b,!1),5);case 5:return l.return();case 2:if(g.O("nwl_consider_error_code")&&!h&&kla()>qt("potential_esf_error_limit",
10))return l.return();g.Ja("ytNetworklessLoggingInitializationOptions")&&tx.potentialEsfErrorCounter++;ux++;if(void 0===(null===a||void 0===a?void 0:a.id)){l.fb(7);break}return 1>a.sendCount?g.x(l,bx(a.id,b),11):g.x(l,cx(a.id,b),7);case 11:g.iv.Qf(function(){lx().Ee()&&ila()},5E3);
case 7:c(e,f),g.ta(l)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){return g.A(function(h){if(1==h.i)return void 0===(null===a||void 0===a?void 0:a.id)?h.fb(2):g.x(h,cx(a.id,b),2);g.O("vss_network_hint")&&lx().oo(!0);d(e,f);g.ta(h)})};
return a};
lx=function(){if(g.O("use_new_nwl"))return ela();vx||(vx=new hx({Xz:!0,gK:!0}));return vx};
px=function(a){lx().Ee()?g.vt(a):Xka(a)};
nx=function(a,b,c){c&&0===Object.keys(b).length?g.kv(a):g.hu(a,b)};
mx=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?tx.isNwlInitialized:!1};
kla=function(){return g.Ja("ytNetworklessLoggingInitializationOptions")?tx.potentialEsfErrorCounter:ux};
g.wx=function(a){this.config_=null;a?this.config_=a:Fja()&&(this.config_=g.Fv())};
g.Gv=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.eM.bypassNetworkless?(f.method="POST",d.eM.writeThenSend?g.O("use_new_nwl")?jx().writeThenSend(n,f):hla(n,f):g.O("use_new_nwl")?jx().sendAndWrite(n,f):rx(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.hu(n,f))}catch(r){if("InvalidAccessError"==r.name)xt(Error("An extension is blocking network request."));else throw r;}}
!g.N("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&xt(new g.aw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.aw("innertube xhrclient not ready",b,c,d),g.vt(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,r){if(d.onSuccess)d.onSuccess(r)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,r){if(d.onError)d.onError(r)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.hL;h&&(c=h);h=Nja(a.config_.jL||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.iL&&h;g.O("omit_innertube_api_key_for_bearer_auth_header")&&(m=m&&h.startsWith("Bearer"));m||(l.key=a.config_.innertubeApiKey);var n=Et(""+
c+b,l);g.O("use_new_nwl")||mx()?wka().then(function(p){e(p)}):e(!1)};
g.Wv=function(a,b,c){c=void 0===c?{}:c;var d=g.wx;g.N("ytLoggingEventsDefaultDisabled",!1)&&g.wx==g.wx&&(d=null);Jv(a,b,d,c)};
nla=function(){var a=void 0===a?window.location.href:a;if(g.O("kevlar_disable_theme_param"))return null;var b=Gi(g.Ii(5,a));if(lla(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Dt(a).theme;return mla.get(c)||null}catch(d){}return null};
lla=function(a){var b=ola.map(function(c){return c.toLowerCase()});
return!g.O("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
qla=function(a,b,c){a&&(a.dataset?a.dataset[pla(b)]=String(c):a.setAttribute("data-"+b,c))};
rla=function(a){return a?a.dataset?a.dataset[pla("loaded")]:a.getAttribute("data-loaded"):null};
pla=function(a){return sla[a]||(sla[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
xx=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()};
Ax=function(a){var b;g.yx()?zx()==a&&(b=document):b=a;return b&&(a=Su(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Bx=function(a){return g.Tb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
tla=function(){var a=document;return g.Tb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.yx=function(){return!!Su(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
zx=function(a){a=void 0===a?!1:a;var b=Su(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Cx=function(a){g.E.call(this);this.D=[];this.Sa=a||this};
Dx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.Ex=function(a,b){for(;a.D.length;){var c=a.D.pop(),d=void 0;b&&ula()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.Q=function(a){a=void 0===a?!1:a;g.E.call(this);this.Wd=new g.gs(a);g.H(this,this.Wd)};
Fx=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Gx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Ix=function(a,b,c,d){g.Q.call(this);this.i=!!b;this.I=a;this.X=c||a;this.S=!!d;this.C=new Cx(this);g.H(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.Yg&&a.setAttribute("draggable","true"),a.style.touchAction="none");Hx(this)};
Jx=function(a,b,c){a.C.T(a.X,b,c,void 0,!a.i)};
Kx=function(a){g.Ex(a.C,!a.i)};
Hx=function(a){a.D=null;a.K=null;Jx(a,Lx("over"),a.bM);Jx(a,"touchstart",a.YG);a.i&&Jx(a,Lx("down"),a.tT)};
vla=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
Lx=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Mx=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.We(b);this.assets=a.assets||{};this.attrs=a.attrs||g.We(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||{}};
wla=function(a){a instanceof Mx||(a=new Mx(a));return a};
Ox=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(Nx)for(c=1,d=0;d<Nx.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Nx.charCodeAt(d),c++;return b};
Px=function(){for(var a=Ox(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.xla=function(){return g.pn(Ox(16),function(a){return(a&15).toString(16)}).join("")};
Qx=function(a){this.i=a};
g.Rx=function(a){return new Qx({trackingParams:a})};
zla=function(a){var b=yla++;return new Qx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Sx=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Tx=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Ala=function(a){return g.N(Tx(void 0===a?0:a),void 0)};
g.Ux=function(a){return(a=Ala(void 0===a?0:a))?new Qx({veType:a,youtubeData:void 0}):null};
Bla=function(){var a=g.N("csn-to-ctt-auth-info");a||(a={},ot("csn-to-ctt-auth-info",a));return a};
g.Vx=function(a){a=void 0===a?0:a;var b=g.N(Sx(a));if(!b&&!g.N("USE_CSN_FALLBACK",!0))return null;b||!g.O("use_undefined_csn_any_layer")&&0!=a||(b="UNDEFINED_CSN");return b?b:null};
Cla=function(a,b,c){var d=Bla();(c=g.Vx(c))&&delete d[c];b&&(d[a]=b)};
Wx=function(a){return Bla()[a]};
Ela=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.N(Sx(c))||b!==g.N(Tx(c)))Cla(a,d,c),ot(Sx(c),a),ot(Tx(c),b),b=function(){setTimeout(function(){a&&Jv("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Dla,clientScreenNonce:a},g.wx)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
Fla=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Gla=function(){this.fn=[];this.qm=[]};
Yx=function(){if(!Xx){var a=Xx=new Gla;a.qm.length=0;a.fn.length=0;Hla(a,Ila)}return Xx};
Hla=function(a,b){b.qm&&a.qm.push.apply(a.qm,b.qm);b.fn&&a.fn.push.apply(a.fn,b.fn)};
Jla=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Zx(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Zx(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Zx(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)};
Zx=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};
Kla=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=$x(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Jla(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?$x(e+".ve",f,h,l):0;d+=h;d+=$x(e,a[e],b,c);if(500<d)break}}else c[b]=ay(a),d+=c[b].length;else c[b]=ay(a),d+=c[b].length;return d};
$x=function(a,b,c,d){c+="."+a;a=ay(b);d[c]=a;return c.length+a.length};
ay=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Vv=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.N("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.N("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.O("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<=Lla)){d=Mla;var e=Haa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.u||"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=Kla(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=ay(r[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=ay(r)}if(d.length)for(p=0;p<d.length&&!(n=Kla(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=Yx();p=g.q(a.qm);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.uw)){a=d.weight;break a}a=g.q(a.fn);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(Nla);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.DA[c.name])for(f=g.q(p.DA[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.Bg)){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.dF(h);break}c.params||(c.params={});a=Yx();c.params["params.errorServiceSignature"]="msg="+a.qm.length+"&cb="+a.fn.length;c.params["params.serviceWorker"]="false";g.B.document&&g.B.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.If("sample").constructor!==Gf&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Ola.has(c.message)){"ERROR"===
b?(dy.ea("handleError",c),g.O("record_app_crashed_web")&&0===Pla&&1===c.sampleWeight&&(Pla++,a={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.O("report_client_error_with_app_crash_ks")||(a.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.Wv("appCrashed",a)),Qla++):"WARNING"===b&&dy.ea("handleWarning",c);if(g.O("kevlar_gel_error_routing")){a=b;b:{p=g.q(Rla);for(d=p.next();!d.done;d=p.next())if(Au(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.N("FEXP_EXPERIMENTS")&&(f.experimentIds=g.N("FEXP_EXPERIMENTS"));m=g.N("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0);if(!pt("web_disable_gel_stp_ecatcher_killswitch")&&m)for(e=g.q(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:h,value:String(m[h])});if(m=c.params)for(e=g.q(Object.keys(m)),h=e.next();!h.done;h=e.next())h=h.value,f.kvPairs.push({key:"client."+h,value:String(m[h])});h=g.N("SERVER_NAME",void 0);m=g.N("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.Wv("clientError",p),("ERROR"===a||g.O("errors_flush_gel_always_killswitch"))&&zv())}if(!g.O("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.N("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.N("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.N("SERVER_NAME",void 0);p=g.N("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.hu(g.N("ECATCHER_REPORT_HOST",
"")+"/error_204",b)}try{Ola.add(c.message)}catch(v){}Lla++}}}};
Sla=function(a){var b=g.Ba.apply(1,arguments),c=a;c.args||(c.args=[]);c.args.push.apply(c.args,g.ma(b))};
ey=function(a){Pw.call(this,1,arguments);this.csn=a};
g.gy=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.pn(e,function(f){return f.getAsJson()})};
d=g.q(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Se(e)||!e.trackingParams&&!e.veType)&&g.cy(Error("Child VE logged with no data"));d={cttAuthInfo:Wx(b),Fm:b};"UNDEFINED_CSN"==b?fy("visualElementAttached",c,d):a?Jv("visualElementAttached",c,a,d):g.Wv("visualElementAttached",c,d)};
g.hy=function(a,b,c){b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={cttAuthInfo:Wx(a),Fm:a};"UNDEFINED_CSN"==a?fy("visualElementShown",b,c):g.Wv("visualElementShown",b,c)};
Tla=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={cttAuthInfo:Wx(b),Fm:b,UR:d};"UNDEFINED_CSN"==b?fy("visualElementHidden",c,d):a?Jv("visualElementHidden",c,a,d):g.Wv("visualElementHidden",c,d)};
Ula=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={cttAuthInfo:Wx(b),Fm:b};"UNDEFINED_CSN"==b?fy("visualElementGestured",c,d):a?Jv("visualElementGestured",c,a,d):g.Wv("visualElementGestured",c,d)};
Vla=function(){return g.Fc(Math.random()+"")};
fy=function(a,b,c){iy.push({payloadName:a,payload:b,options:c});jy||(jy=Ww(Wla,Xla))};
Xla=function(a){if(iy){for(var b=g.q(iy),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Jv(c.payloadName,c.payload,null,c.options));iy.length=0}jy=0};
g.ky=function(a,b){g.sc(b,function(c){c={csn:a,ve:c.getAsJson(),eventType:4};var d={cttAuthInfo:Wx(a),Fm:a};"UNDEFINED_CSN"==a?fy("visualElementShown",c,d):g.Wv("visualElementShown",c,d)})};
g.ly=function(a,b){g.sc(b,function(c){Tla(void 0,a,c,void 0,void 0)})};
g.my=function(a,b,c){Ula(void 0,a,b,c)};
ny=function(){this.u=new Set;this.i=new Set;this.B=new Map};
g.qy=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.oy)():py())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.ry=function(a){var b=py(),c=(0,g.oy)();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};
Yla=function(){var a=(0,g.oy)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.sy=function(a){try{var b=py(),c=(0,g.oy)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.ty=function(){return g.ry("yt-remote-session-screen-id")};
g.uy=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(Zla,""),c=c.replace($la,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else ama(a,b,c)};
ama=function(a,b,c){c=void 0===c?null:c;var d=bma(a),e=document.getElementById(d),f=e&&rla(e),h=e&&!f;f?b&&b():(b&&(f=g.rv(d,b),b=""+g.Qa(b),cma[b]=f),h||(e=dma(a,d,function(){rla(e)||(qla(e,"loaded","true"),g.uv(d),g.Mt(g.Ra(cja,d),0))},c)))};
dma=function(a,b,c,d){d=void 0===d?null:d;var e=g.ch("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.kk(e,g.Yr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
bma=function(a){var b=document.createElement("a");g.pg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Gg(a)};
yy=function(a){var b=g.Ba.apply(1,arguments);if(!vy(a)||b.some(function(e){return!vy(e)}))throw Error("Only objects may be merged.");
var c=a;b=g.q(b);for(var d=b.next();!d.done;d=b.next())wy(c,d.value);return c};
wy=function(a,b){for(var c in b)if(vy(b[c])){if(c in a&&!vy(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});wy(a[c],b[c])}else if(zy(b[c])){if(c in a&&!zy(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);ema(a[c],b[c])}else a[c]=b[c];return a};
ema=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,vy(c)?a.push(wy({},c)):zy(c)?a.push(ema([],c)):a.push(c);return a};
vy=function(a){return"object"===typeof a&&!Array.isArray(a)};
zy=function(a){return"object"===typeof a&&Array.isArray(a)};
Ay=function(a,b,c,d,e,f){g.E.call(this);this.i=a;this.u=c;this.B=d;this.D=e;this.C=f};
hma=function(a,b,c){c.Mt?(By(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),fma(a.D,b)):gma(a.C,c.Il,b.slotId)};
jma=function(a,b,c,d){var e=Cy(a.B.get(),1);By(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ima(a.u.get(),c,d,e.clientPlaybackNonce,e.PJ,e.daiEnabled,e)},b)};
Ey=function(a,b,c){if(c&&c!==a.qb)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!Dy(a.Ga,c.value))return!1;return!0};
Fy=function(a,b){this.To=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
lma=function(a){kma=void 0===a?!1:a};
R=function(a,b,c,d,e){d=void 0===d?{}:d;kma&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.aw(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.qb:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.cy(a)}};
Gy=function(a,b,c,d,e,f,h){g.E.call(this);this.B=a;this.u=b;this.QC=c;this.Na=d;this.C=e;this.i=f;this.Ia=h};
Hy=function(){this.u=new Map;this.i=new Map;this.B=new Map};
Iy=function(a,b){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return Px()};
Jy=function(a,b,c){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return Px()};
Ky=function(a,b){if(g.N("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return Px()};
Ly=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};
mma=function(a,b,c,d){this.B=a;this.me=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
My=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};
Ny=function(a,b){return b&&b.test(a)?!0:!1};
Oy=function(a){return(a=nma&&nma.exec(a))?a[0]:""};
Py=function(a){var b=void 0===b?!1:b;return My(Ny(a,oma),a,b,"Trusted Stream URL")};
g.Qy=function(a){var b=void 0===b?!1:b;return My(Ny(a,pma),a,b,"Trusted Image URL")};
rma=function(a){var b=void 0===b?!1:b;return My(Ny(a,qma),a,b,"Trusted Ad Domain URL")};
tma=function(a){var b=void 0===b?!1:b;return My(Ny(a,sma),a,b,"Trusted Promoted Video Domain URL")};
vma=function(a){var b=void 0===b?!1:b;return My(Ny(a,uma),a,b,"Drm Licensor URL")};
xma=function(a,b){b=void 0===b?!1:b;return My(Ny(a,wma),a,b,"Captions URL")};
yma=function(a){a=new g.Qk(a);g.Rk(a,document.location.protocol);g.Sk(a,document.location.hostname);document.location.port&&g.Tk(a,document.location.port);return a.toString()};
Ry=function(a){a=new g.Qk(a);g.Rk(a,document.location.protocol);return a.toString()};
g.Ty=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=zma++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Sy.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.qn(d.thumbnails,function(e){return g.Qy(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Ama=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Bma=function(a,b){switch(a.style){case Sy.CHAPTER_MARKER:return b?8:5;case Sy.AD_MARKER:return 6;case Sy.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Uy=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.Vy=function(a){return"crn_"+a};
g.Wy=function(a){return"crx_"+a};
Xy=function(a,b,c,d,e){g.Ty.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
Yy=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
Cma=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
Dma=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new ds(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new ds(Math.max(0,b.B-b.i),0x7ffffffffffff):new ds(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.B);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new ds(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.me;a=1E3*d.startSecs;if(c){if(a<b.u)return new ds(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new ds(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new ds(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Zy=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.$y=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.az=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=bh("B",null,h||l));d.italics&&(h=bh("I",null,h||l));d.strikethrough&&(h=bh("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=bh("A",null,h||l),g.pg(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||bh("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:bh("SPAN",null,b)};
bz=function(a,b){Pw.call(this,1,arguments);this.timer=b};
cz=function(a,b){Pw.call(this,1,arguments);this.i=a;this.timer=b};
Ema=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
ez=function(a){var b=dz(a);if(b.aft)return b.aft;a=g.N((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};
Fma=function(){var a;if(g.O("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===fz||void 0===fz?void 0:fz.getEntriesByType)||void 0===a?void 0:a.call(fz,"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=gz(e.requestStart),e.responseEnd=gz(e.responseEnd),e.redirectStart=gz(e.redirectStart),e.redirectEnd=gz(e.redirectEnd),e.domainLookupEnd=gz(e.domainLookupEnd),e.connectStart=gz(e.connectStart),
e.connectEnd=gz(e.connectEnd),e.responseStart=gz(e.responseStart),e.secureConnectionStart=gz(e.secureConnectionStart),e.domainLookupStart=gz(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=fz.timing}else a=fz.timing;return a};
hz=function(){return g.O("csi_use_time_origin")&&fz.timeOrigin?Math.floor(fz.timeOrigin):fz.timing.navigationStart};
gz=function(a){return Math.round(hz()+a)};
iz=function(a,b){g.Ia("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
Gma=function(a){g.Ia("yt.timing.pingSent_",a,void 0)};
jz=function(a){return g.Ja("ytcsi."+(a||"")+"data_")||Hma(a)};
kz=function(a){a=jz(a);a.info||(a.info={});return a.info};
dz=function(a){a=jz(a);a.tick||(a.tick={});return a.tick};
lz=function(a){var b=jz(a).nonce;b||(b=Px(),jz(a).nonce=b);return b};
Hma=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
Kma=function(a){var b=dz(a||""),c=ez(a);c&&!Ima&&(Sw(Jma,new bz(Math.round(c-b._start),a)),Ima=!0)};
Lma=function(){if(fz.getEntriesByType){var a=fz.getEntriesByType("paint");if(a=g.Tb(a,function(b){return"first-paint"===b.name}))return gz(a.startTime)}a=fz.timing;
return a.yT?Math.max(0,a.yT):0};
mz=function(){var a=g.Ja("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
nz=function(a){a=a||"";var b=Mma();if(b[a])return b[a];var c=mz(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
oz=function(a){a=a||"";var b=Mma();b[a]&&delete b[a];var c=mz(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
Mma=function(){var a=g.Ja("ytcsi.reference");if(a)return a;mz();return g.Ja("ytcsi.reference")};
pz=function(){this.i=0};
qz=function(){pz.i||(pz.i=new pz);return pz.i};
sz=function(a,b){rz[b]=rz[b]||{count:0};var c=rz[b];c.count++;c.time=(0,g.P)();a.i||(a.i=vu(0,function(){var d=(0,g.P)(),e;for(e in rz)rz[e]&&6E4<d-rz[e].time&&delete rz[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.aw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.cy(c)),!0):!1};
tz=function(a){return!!g.N("FORCE_CSI_ON_GEL",!1)||g.O("csi_on_gel")||g.O("enable_csi_on_gel")||g.O("unplugged_tvhtml5_csi_on_gel")||!!jz(a).useGel};
Nma=function(a,b,c){var d=uz(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.P)();if(tz(c)){nz(c||"").tick[a]=b||(0,g.P)();d=lz(c);var e=jz(c).cttAuthInfo;"_start"===a?(a=qz(),sz(a,"baseline_"+d)||g.Wv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):qz().tick(a,d,b,e);Kma(c);return!0}return!1};
Sma=function(a,b,c){c=uz(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 Oma){c=Oma[a];g.Wb(Pma,c)&&(b=!!b);a in Qma&&"string"===typeof b&&(b=Qma[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 yy({},d)}g.Wb(Rma,a)||g.cy(new g.aw("Unknown label logged with GEL CSI",a))};
uz=function(a){a=jz(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
vz=function(a){a=uz(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Uma=function(a){if(tz(a)){var b={actionType:Tma[g.N((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:Tma[g.N("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.Vx();c&&(b.clientScreenNonce=c);c=lz(a);a=jz(a).cttAuthInfo;qz().info(b,c,a)}};
wz=function(a){Hma(a);Vma();a||(g.N("TIMING_ACTION")&&ot("PREVIOUS_ACTION",g.N("TIMING_ACTION")),ot("TIMING_ACTION",""),Gma(!1))};
zz=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;xz("c",c);oz(c);wz(c);jz(c).useGel=!0;nz(c||"").info.actionType=a;b.cttAuthInfo&&(jz(c).cttAuthInfo=b.cttAuthInfo);ot(c+"TIMING_ACTION",a);yz("c",b.startTime,c);Uma(c);iz(!0,c)};
yz=function(a,b,c){g.Az("yt_sts",a,c);Bz("_start",b,c)};
g.Az=function(a,b,c){null!==b&&(kz(c)[a]=b,tz(c)?(a=Sma(a,b,c))&&Cz(a,c):nz(c||"").info[a]=b)};
Cz=function(a,b){if(tz(b)){var c=nz(b||"");yy(c.info,a);yy(vz(b),a);c=lz(b);b=jz(b).cttAuthInfo;qz().info(a,c,b)}};
Bz=function(a,b,c){var d=dz(c);if(!b&&"_"!==a[0]){var e=a;fz.mark&&(gb(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),fz.mark(e))}e=b||(0,g.P)();d[a]=e;Nma(a,b,c)||c||(Wma(),nz("").tick[a]=b||(0,g.P)());return d[a]};
Xma=function(a){var b="above_the_fold";fz&&fz.measure&&(gb(b,"measure_")||(b="measure_"+b),a?fz.measure(b,a):fz.measure(b))};
Dz=function(a,b){b=dz(b);return a in b};
Ez=function(a,b,c){Dz("_start",c)&&!Dz(a,c)&&Bz(a,b,c)};
Wma=function(){if(!g.Ja("yt.timing.pingSent_")){var a=g.N("TIMING_ACTION",void 0),b=dz();if(g.Ja("ytglobal.timingready_")&&a&&Dz("_start")&&ez()){Kma();a=!0;var c=g.N("TIMING_WAIT",[]);if(c.length)for(var d=0,e=c.length;d<e;++d)if(!(c[d]in b)){a=!1;break}a&&gA()}}};
Yma=function(){switch(Pia()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
gA=function(){if(!tz()){var a=dz(),b=kz(),c=a._start,d=g.N("CSI_SERVICE_NAME","youtube"),e={v:2,s:d,action:g.N("TIMING_ACTION",void 0)},f=b.srt;void 0!==a.srt&&delete b.srt;a.aft=ez();var h=dz(void 0),l=h.pbr,m=h.vc;h=h.pbs;if(l=l&&m&&h&&l<m&&m<h)l=!!kz(void 0).yt_pvis;l&&"youtube"===d&&(g.Az("yt_lt","hot_bg"),d=a.vc,l=a.pbs,delete a.aft,b.aft=Math.round(l-d));for(var n in b)"_"!==n.charAt(0)&&(e[n]=b[n]);a.ps=(0,g.P)();n={};d=[];for(var p in a)"_"!==p.charAt(0)&&(l=Math.round(a[p]-c),n[p]=l,d.push(p+
"."+l));e.rt=d.join(",");a=!!b.ap;b="";for(var r in e)e.hasOwnProperty(r)&&(b+="&"+r+"="+e[r]);e="/csi_204?"+b.substring(1);window.navigator&&a?lv(e):g.kv(e);Gma(!0);Sw(hA,new cz(n.aft+(Number(f)||0)))}};
xz=function(a,b){b||tz()?Dz("_start",b)&&Bz("aa",void 0,b):g.Ja("yt.timing.pingSent_")||(b=g.N("CSI_SERVICE_NAME","youtube"),g.N("TIMING_ACTION",void 0)&&b&&(Bz("aa",void 0),g.Az("ap",1),g.Az("yt_fss",a),gA()))};
Zma=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);rg()&&a.setAttribute("nonce",rg());return c?(a=fz.getEntriesByName(c))&&a[0]&&(a=a[0],c=hz(),Bz("rsf_"+b,c+Math.round(a.fetchStart)),Bz("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
$ma=function(){var a=window.location.protocol,b=fz.getEntriesByType("resource");b=g.Cp(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=rn(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(Bz("wffs",gz(b.startTime)),Bz("wffe",gz(b.responseEnd)))};
iA=function(){if(g.Hw)return!1;if(g.Cu()){var a=Fia();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
jA=function(a){if(a.Fv())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
kA=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
lA=function(a,b){this.id=a;this.zc=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
mA=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0};
oA=function(a,b,c,d){return new mA(g.nA[a]||0,g.nA[b]||0,c,d)};
pA=function(a){var b=g.nA.auto;return a.u===b&&a.i===b};
rA=function(a){return qA[a.i||a.u]||"auto"};
ana=function(a,b){b=g.nA[b];return a.u<=b&&(!a.i||a.i>=b)};
sA=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.q(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.zc&&!a.has(c.zc.id)){var d=new lA(c.id,c.zc);a.add(c.zc.id);this.audioTracks.push(d)}}};
wA=function(a,b,c,d,e){var f=[],h=new Set,l=a.Aa||a.wb,m={};if(tA(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(a=c.i[n],m[a.info.i]=[a.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var r=n.info.hc(),t=uA(a,n.info,b,c.isLive,l,h);!0!==t?(f.push(r),f.push(t)):(m[n.info.i]=m[n.info.i]||[],m[n.info.i].push(n.info))}e&&(d(f.join(".")),c="bfflt."+vA(m),d(c));for(var u in m)m.hasOwnProperty(u)&&(c=u,m[c]&&m[c][0].isVideo()&&(m[c]=bna(a,m[c]),m[c]=cna(b,m[c])));if(l)for(h=g.q(h.values()),
l=h.next();!l.done;l=h.next())(l=b.i.get(l.value))&&--l.kG;b=g.Ee(m,function(v){return!!v.length});
e&&(m="aftflt."+vA(m),d(m));a.ub=dna(b,a);return b};
uA=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?!1:e;f=void 0===f?new Set:f;if(""===b.i)return"unkn";if(("304"===b.hc()||"266"===b.hc())&&a.bb)return"blk2khfr";if(a.S&&b.video&&b.video.i>a.S)return"max"+a.S;if(a.X&&b.video&&b.video.i<a.X)return"min"+a.X;if(a.rb&&"h"===b.i&&b.video&&1080<b.video.i)return"blkhigh264";if(a.ob&&b.video&&4320<=b.video.i&&32<b.video.fps)return"blk8khfr";if("(h"===b.i&&!c.C)return"enchdr";if(!a.La&&("o"===b.i||"O"===b.i)&&g.Ej&&Au("crkey"))return"opchr";var h="MAC3"===
b.i||"MEAC3"===b.i||"M"===b.i;if(d&&h&&!a.Sa)return"blk51live";d=(d=c.i.get(b.i))&&0<d.kG;if(e&&d)return f.add(b.i),"byerr";if(a.jb&&("9h"===b.i||"(h"===b.i||"1h"===b.i))return"blkhdr";a=ena(c,b);return!0!==a?a:!0};
dna=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.xa&&!(!a.m&&!a.M)||c||d};
xA=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
vA=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(xA(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.hc())}return b.join(".")};
fna=function(a,b,c,d,e){var f={},h=[];g.De(b,function(l,m){l=l.filter(function(n){var p=n.hc();if(!n.Fd)return h.push(p),h.push("noenc"),!1;if("("===n.i||"(h"===n.i){if(a.u&&c&&"widevine"===c.flavor){var r=n.mimeType+"; experimental=allowed";r=!!n.Fd[c.flavor]&&!!c.i[r];r||(n=n.Fd[c.flavor]?"unspt":"noflv",h.push(p),h.push(n));return r}if(!yA(a,zA.CRYPTOBLOCKFORMAT)&&!a.oa||a.X)return h.push(p),h.push(a.X?"disvp":"vpsub"),!1}return c&&n.Fd[c.flavor]&&c.i[n.mimeType]?!0:(n=c?n.Fd[c.flavor]?"unspt":
"noflv":"nosys",h.push(p),h.push(n),!1)});
l.length&&(f[m]=l)});
d&&h.length&&e(h.join("."));return f};
jna=function(a,b,c,d,e){function f(u){return!!l[u]}
var h=a.K||!!d,l=wA(a,b,c,e,h);AA(c)&&(l=fna(b,l,d,h,e),h&&(b="enflt."+vA(l),e(b)));if(tA(c))return e=g.Tb(Object.values(l),function(u){return!!u.length&&!!u[0].audio}),h=g.Tb(Object.values(l),function(u){return!!u.length&&!!u[0].video}),e&&h||mu(),nu(new sA(h,e));
b=gna(a);h&&e("audioPrefOrder."+b.join("_"));b=g.Tb(b,f);if(!b)return h&&e("noaudio"),mu();b=l[b];l["9"]&&l.h&&c.uf&&!a.Va&&(h&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1";d=l["9h"]?"9h":"9";var n=l[m],p=l[d];n&&n.length&&(a.u.highestAv1Resolution=n[n.length-1].video.i);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.i);var r=[],t=[];if(a.Ba&&!a.i)for(t=hna(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e("newhybpref."+t.join(".")),n=g.q(t),p=n.next();!p.done;p=n.next())r=
r.concat(l[p.value]).filter(function(u){return u});
else 0<a.B&&p&&n&&(t=[m,d],r=n.concat(p).filter(function(u){return u}));
if(r.length&&!a.i){BA(r,b,t);if(h){h=[];a=g.q(r);for(c=a.next();!c.done;c=a.next())h.push(c.value.hc());e("hbdfmt."+h.join("."))}return nu(new sA(r,b))}r=ina(a);r=g.Tb(r,f);if(!r){if(l[m])return e=l[m],BA(e,b),nu(new sA(e,b));h&&e("novideo");return mu()}a.Nb&&("1"===r||"1h"===r)&&l[d]&&(m=CA(l[r]),CA(l[d])>m&&(r=d));"9"===r&&l.h&&(d=CA(l["9"]),CA(l.h)>1.5*d&&(r="h"));a.Db&&c.isLive&&"("===r&&l.H&&1440>CA(l["("])&&(r="H");h&&e("vfmly."+xA(r));a=l[r];if(!a.length)return h&&e("novfmly."+xA(r)),mu();
BA(a,b);return nu(new sA(a,b))};
BA=function(a,b,c){c=void 0===c?[]:c;g.pc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.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.Ob-d.Ob);return f});
g.pc(b,function(d,e){return e.Ob-d.Ob})};
cna=function(a,b){var c=rn(b,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(b=a.K&&(a.Z||yA(a,zA.FRAMERATE))?g.Cp(b,function(d){return 32<d.video.fps||d.video.width<c}):g.Cp(b,function(d){return!(32<d.video.fps)}));
Eu()&&(b=g.Cp(b,function(d){return"299"!==d.hc()}));
return b};
bna=function(a,b){return b=g.Cp(b,function(c){return c.video.i<=a.Fb})};
CA=function(a){return rn(a,function(b,c){return Math.max(b,c.video.i)},0)};
kna=function(a){a=void 0===a?{}:a;var b=void 0===a.Mk?!1:a.Mk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.JG?!1:a.JG;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&iA()?3:2:c&&d?-1:1};
lna=function(a){return kna({hasSubfragmentedFmp4:a.D.fg,Mk:a.D.fg,defraggedFromSubfragments:a.Rl,isManifestless:!0,JG:a.La})};
mna=function(a){a=a.split("");DA.N0(a,44);DA.N0(a,64);DA.N0(a,48);DA.N0(a,7);DA.WX(a,3);DA.cd(a,27);return a.join("")};
g.EA=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.i={};this.url=""};
FA=function(a){a.url||(a.url=nna(a));return a.url};
HA=function(a){GA(a);return a.C};
IA=function(a){return a.u?gb(a.u,"local"):"local"===a.B};
ona=function(a){GA(a);return g.Ge(a.i,function(b){return null!==b})};
pna=function(a){GA(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
JA=function(a){GA(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=FA(a);b=new g.Qk(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.Sk(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.EA(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Sk(b,"redirector.googlevideo.com"),c=b.toString()):
b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Sk(b,"www.youtube.com"),c=b.toString()):c=yma(c);b=new g.EA(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
GA=function(a){if(a.u){if(!Py(a.u)&&!a.u.startsWith("local"))throw new g.aw("Untrusted URL",a.u);var b=g.il(a.u);a.B=b.C;a.C=b.i+(null!=b.B?":"+b.B:"");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=qna(c);
Object.assign(a.i,KA(b.u.toString()));Object.assign(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=zfa(b),a.set("n",b))}};
nna=function(a){GA(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(ona(a)){var c=[];g.De(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
qna=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&rna(c,a[b],a[b+1]);return c};
KA=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?rna(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
rna=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};
LA=function(a,b,c,d,e,f,h,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.me=m;this.endTime=b+c;this.i=h||0;this.range=f||null;this.pending=l||!1;this.me=m||null};
MA=function(){this.segments=[];this.i=null};
sna=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Sb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
NA=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
OA=function(a){return String.fromCharCode.apply(null,a)};
QA=function(a){return PA?PA.decode(a):OA(a)};
tna=function(a,b){if(null===RA||void 0===RA?0:RA.encodeInto)return b=RA.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var 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 c};
SA=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.i=(this.u=e)?0:8;this.dataOffset=this.offset+this.i};
TA=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
UA=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
VA=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
WA=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
XA=function(a){var b=a.data;var c=a.offset+a.i;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.i+=8;return b};
YA=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.i;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.i+a.data.byteOffset,c-a.i);a.i=Math.min(c+1,a.size);return QA(b)};
una=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
ZA=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};
aB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=$A(this,"Sequence-Number");this.I=$A(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=$A(this,"Ingestion-Walltime-Us")/1E6;this.u=($A(this,"First-Frame-Time-Us")+$A(this,"First-Frame-Uncertainty-Us"))/1E6;this.Vi=$A(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=$A(this,"Crypto-Period-Index");
this.B=$A(this,"Crypto-Period-Seconds")};
wna=function(a){var b;a.data["Cuepoint-Type"]?b=new Ly(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",vna[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
xna=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
$A=function(a,b){return Number(a.data[b])||0};
g.yna=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
zna=function(a,b){this.i=a;this.duration=b};
Ana=function(a,b,c,d,e){this.u=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
bB=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};
Bna=function(a,b){var c=g.cB(a,0,1952868452);a=g.cB(a,0,1953658222);if(c&&a){c.skip(1);var d=TA(c)<<16|UA(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=WA(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=TA(a)<<16|UA(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=WA(a);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.i,h=WA(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
eB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.cB(a,0,1836476516))?g.dB(a):NaN};
Cna=function(a){var b=g.cB(a,0,1937011556);if(!b)return null;b=fB(a,b.dataOffset+8,1635148593);if(!b)return null;var c=fB(a,b.dataOffset+78,1936995172),d=fB(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),TA(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=fB(a,d.dataOffset,1886547818)){var h=fB(a,d.dataOffset,1886546020),l=fB(a,d.dataOffset,2037673328);if(!l&&(l=fB(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
VA(h)/65536,f=VA(h)/65536,e=VA(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Ana(b,c,f,e,a)}return null};
fB=function(a,b,c){for(;gB(a,b);){var d=hB(a,b);if(d.type===c)return d;b+=d.size}return null};
g.cB=function(a,b,c){for(;gB(a,b);){var d=hB(a,b);if(d.type===c)return d;b=iB(d.type)?b+8:b+d.size}return null};
g.jB=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)};
hB=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new SA(a,b,c,d)};
g.dB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Dna=function(a){a=new SA(a.data,a.offset,a.size,a.type,a.u);var b=TA(a);a.skip(7);var c=WA(a);if(0===b){b=WA(a);var d=WA(a)}else b=XA(a),d=XA(a);a.skip(2);for(var e=UA(a),f=[],h=[],l=0;l<e;l++){var m=WA(a);f.push(m);h.push(WA(a));a.skip(4)}return{PG:c,QR:b,dS:d,aX:f,KG:h}};
gB=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};
iB=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Ena=function(a){a.skip(4);return{qX:YA(a,0),value:YA(a,0),PG:WA(a),Fda:WA(a),jda:WA(a),id:WA(a),WL:YA(a),offset:a.offset}};
g.Fna=function(a){var b=fB(a,0,1701671783);if(!b)return null;var c=Ena(b),d=c.qX;c=bB(c.WL);if(a=fB(a,b.offset+b.size,1701671783))if(a=Ena(a),a=bB(a.WL),c&&a){b=g.q(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new aB(c,d):null};
kB=function(a,b){for(var c=fB(a,0,b);c;)c.markAsSkip(),c=fB(a,c.offset+c.size,b)};
g.lB=function(a,b){for(var c=0,d=[];gB(a,c);){var e=hB(a,c);e.type===b&&d.push(e);c=iB(e.type)?c+8:c+e.size}return d};
Hna=function(a,b){var c=g.cB(a,0,1937011556),d=g.cB(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.cB(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 una(a.byteLength+b);ZA(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;ZA(d,a,c.offset+16,c.size-16);ZA(d,e,e.byteOffset+f.dataOffset+8,b);ZA(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.cB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(Gna)return d.data;a=g.cB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
mB=function(a,b){this.u=a;this.i=0;this.start=b||0};
nB=function(a){return a.i>=a.u.byteLength};
sB=function(a,b,c){var d=new mB(c);if(!oB(d,a))return!1;d=pB(d);if(!qB(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=rB(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?Ina(d-9,8):Ina(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Jna=function(a){var b=new mB(a);tB(b);if(oB(b,[408125543,374648427,174,224]))b=pB(b);else return null;for(var c=a=null;!nB(b);){var d=rB(b,!1);if(21432===d)switch(uB(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=pB(b):vB(b)}if(!c)return null;for(var e,f=d=b=null;!nB(c);)switch(rB(c,!1)){case 30321:if(3!==uB(c))return null;break;case 30324:b=wB(c);break;case 30323:f=wB(c);break;case 30325:d=wB(c);break;case 30322:e=rB(c,!0);e=xB(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:vB(c)}return e?new Ana(a,b,f,d,e):null};
pB=function(a){var b=rB(a,!0),c=a.u.byteOffset+a.i;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new mB(c,a.start+a.i);a.i+=b;return c};
uB=function(a){for(var b=rB(a,!0),c=yB(a),d=1;d<b;d++)c=256*c+yB(a);return c};
wB=function(a){var b=rB(a,!0),c=0;4===b?c=a.u.getFloat32(a.i):8===b&&(c=a.u.getFloat64(a.i));a.i+=b;return c};
Kna=function(a){var b=rB(a,!0);return QA(xB(a,b))};
yB=function(a){return a.u.getUint8(a.i++)};
rB=function(a,b){var c=yB(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+yB(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+yB(a),d*=128;return b?c-d:c};
vB=function(a){var b=rB(a,!0);a.i+=b};
tB=function(a){var b=a.i;a.i=0;var c=!1;try{qB(a,440786851)&&(a.i=0,qB(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};
Lna=function(a){if(!qB(a,440786851,!0))return null;var b=a.i;rB(a,!1);var c=rB(a,!0)+a.i-b;a.i=b+c;if(!qB(a,408125543,!1))return null;rB(a,!0);if(!qB(a,357149030,!0))return null;var d=a.i;rB(a,!1);var e=rB(a,!0)+a.i-d;a.i=d+e;if(!qB(a,374648427,!0))return null;var f=a.i;rB(a,!1);var h=rB(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l};
zB=function(a){var b=a.i;a.i=0;var c=1E6;oB(a,[408125543,357149030,2807729])&&(c=uB(a));a.i=b;return c};
Mna=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!AB(a)||!qB(a,160))return a.i=c,NaN;rB(a,!0);var d=a.i;if(!qB(a,161))return a.i=c,NaN;rB(a,!0);yB(a);var e=yB(a)<<8|yB(a);a.i=d;if(!qB(a,155))return a.i=c,NaN;d=uB(a);a.i=c;return(e+d)*b/1E9};
AB=function(a){if(!Nna(a)||!qB(a,524531317))return!1;rB(a,!0);return!0};
Nna=function(a){if(tB(a)){if(!qB(a,408125543))return!1;rB(a,!0)}return!0};
oB=function(a,b){for(var c=0;c<b.length;c++){if(!qB(a,b[c]))return!1;c!==b.length-1&&rB(a,!0)}return!0};
qB=function(a,b,c){c=void 0===c?!1:c;if(nB(a))return!1;for(var d=a.i;rB(a,!1)!==b;)if(vB(a),d=a.i,nB(a))return!1;c&&(a.i=d);return!0};
Ina=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};
xB=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.i,b);a.i+=b;return c};
BB=function(a){this.Cf=a;this.i={};this.url=""};
Ona=function(a,b){var c=b.indexOf("?");if(0<c){var d=KA(b.substr(c+1));g.De(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=qna(b);g.De(b,function(e,f){this.set(f,e)},a)};
g.CB=function(a){a.url||(a.url=Pna(a));return a.url};
Pna=function(a){var b=FA(a.Cf),c=[];g.De(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=ona(a.Cf)?"&":"?";return b+a+d};
DB=function(a,b){var c=new g.EA(b);(b=c.get("req_id"))&&a.set("req_id",b);g.De(a.i,function(d,e){c.set(e,null)});
return c};
Qna=function(){this.u=this.i=this.timedOut=this.started=this.B=0};
Rna=function(a){a.B=(0,g.P)();a.started+=1};
Sna=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.u);return Math.pow(b.Zg,d)};
EB=function(a,b){a[b]||(a[b]=new Qna);return a[b]};
Tna=function(a){this.I=this.D=this.u=0;this.i=a;this.C=a.clone()};
GB=function(a,b){if(IA(a.i))return!1;var c=EB(b,HA(a.i));if(1<=c.timedOut||1<=c.i)if(a=FB(a),b=EB(b,HA(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
Una=function(a,b){a=b?FB(a):a.i;return new BB(a)};
FB=function(a){a.B||(a.B=JA(a.C));return a.B};
HB=function(a,b){return HA(b?FB(a):a.i)};
IB=function(a,b){var c=a.D+b.bp*(a.u-a.D);b=c>b.ai?1E3*Math.pow(b.Zg,c-b.ai):0;return 0===b?!0:a.I+b<(0,g.P)()};
Vna=function(a,b,c,d){++a.u;b&&++a.D;d.Kr&&HA(c.Cf).startsWith("redirector.")&&(a.i=a.C.clone(),delete a.B)};
JB=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.I=!1;this.C=null;this.S=0;this.D=this.B=null;this.info=b;this.u=new Tna(a)};
KB=function(a,b){var c=g.q(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)};
LB=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
MB=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new LB(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
NB=function(a,b){return new LB(a,a+b-1)};
Wna=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
PB=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.S=[];this.I="";this.Ma=-1;this.I=void 0===d?"":d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Bb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.B=!!n;a=this.range?this.Bb+this.u===this.range.length:void 0===p?!!this.u:p;this.Td=a;this.range?(this.C=this.startTime+this.duration*this.Bb/this.range.length,this.K=this.duration*this.u/this.range.length,this.D=this.C+this.K):Xna(this);3!==this.type||0<=
this.Ma||!this.i.Ng()||g.cy(new g.aw("b168859904",OB(this)))};
Xna=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
Yna=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Bb+b.u===a.Bb+a.u:d};
QB=function(a){return 1===a.type||2===a.type};
RB=function(a){return 3===a.type||6===a.type};
SB=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Bb+a.u===b.range.start+b.Bb:a.Ma===b.Ma?a.Bb+a.u===b.Bb:a.Ma+1===b.Ma&&0===b.Bb&&a.Td:!1};
TB=function(a,b){return SB(a,b)||vg(a.D,b.C)||a.Ma+1===b.Ma&&0===b.Bb&&a.Td?!0:!1};
Zna=function(a){1===a.length||g.qn(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new LB(a[0].range.start+a[0].Bb,b.range.start+b.Bb+b.u-1)};
OB=function(a){a=UB(a);var b="";g.De(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
UB=function(a){var b={};b.itag=a.i.info.hc();b.type=""+a.type;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Bb)+"-"+(a.range.start+a.Bb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Bb);b.len=String(a.u);a.Td&&(b.end="1");a.B&&(b.eos="1");return b};
$na=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Ue()?(a=a.i.ix(a),lo(a,function(c){return $na(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Bb+b.u>a.Bb&&b.Bb+b.u<=a.Bb+a.u};
aoa=function(a,b){var c=b.i;a.I="updateWithEmsg";a.Ma=c;b.C&&(a.B=b.C)};
VB=function(a,b){var c=b.Ma;a.I="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Xna(a)};
WB=function(a,b){this.i=a;this.B=null;this.D=this.Re=NaN;this.I=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0<this.i[0].u?Zna(this.i):null};
XB=function(a){return!QB(a.i[a.i.length-1])};
YB=function(a){return 4===a.i[a.i.length-1].type};
g.ZB=function(a,b,c){if(a.B){var d=new BB(a.B);b.Nr&&(d.get("alr")||d.set("alr","yes"));a.C&&Ona(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new BB(new g.EA(a.C)):(b=null===a.I?GB(a.u,c):a.I,d=Una(a.u,b),a.C&&Ona(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Re)||d.set("headm",a.Re.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.De(a.urlParams,function(e,f){d.set(f,e)});
return d};
boa=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.K*a.i.info.Ob)};
coa=function(a,b){var c=a.i[0];if(a.range)var d=NB(a.range.start,Math.min(4096,a.range.length));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.C.get("defrag")||"1"===a.u.C.get("otf"))return null;d=NB(0,4096)}d=new PB(5,c.i,d,"createProbeRequestInfo"+c.I,c.Ma);a=new WB([d],a.C);a.I=b;return a};
$B=function(a,b,c,d,e,f){f=void 0===f?0:f;JB.call(this,a,b,d,void 0);this.X=c;this.Vi=f;this.K=!0;this.index=e||new MA};
doa=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.u=e||NaN};
aC=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""};
bC=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
eoa=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};
foa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
cC=function(){this.i=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.K="";this.C=-1};
goa=function(a){var b=a.B;a.B=[];return b};
hoa=function(){this.C=[];this.i=null;this.u={};this.B={}};
loa=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=ioa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=joa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=koa(a,f));if(null==h)return;h.update(e,c);gc(d,goa(h))}gc(a.C,d);oaa(a.C,function(l){return 1E3*l.startSecs+l.i})};
moa=function(a){a.i&&(a.i.i=[]);g.De(a.u,function(b){b.i=[]});
g.De(a.B,function(b){b.i=[]})};
ioa=function(a){a.i||(a.i=new cC);return a.i};
joa=function(a,b){a.u[b]||(a.u[b]=new cC);return a.u[b]};
koa=function(a,b){a.B[b]||(a.B[b]=new cC);return a.B[b]};
dC=function(a){var b=void 0===a?{}:a;a=void 0===b.Vi?0:b.Vi;var c=void 0===b.vk?!1:b.vk,d=void 0===b.Sl?0:b.Sl,e=void 0===b.re?0:b.re,f=void 0===b.wg?Infinity:b.wg,h=void 0===b.pw?0:b.pw;b=void 0===b.bf?!1:b.bf;MA.call(this);this.u=this.yu=-1;this.B=null;this.Fg=a;this.Sl=d;this.vk=c;this.re=e;this.wg=f;this.pw=h;this.bf=b};
fC=function(a,b,c){b=eC(a,b);return 0<=b&&(c||!a.segments[b].pending)};
eC=function(a,b){return oc(a.segments,function(c){return b-c.Ma})};
gC=function(a,b,c){c=void 0===c?{}:c;$B.call(this,a,b,"",void 0,void 0,c.Vi||0);this.index=new dC(c)};
hC=function(a,b,c){JB.call(this,a,b);this.K=c;this.index=new MA};
noa=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.Ob*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new PB(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new WB([a],d)};
ooa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.K.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 LA(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
iC=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
jC=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
kC=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
poa=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};
lC=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
mC=function(a){a.C=void 0;a.u=0;a.B=0};
nC=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.i[a.u].length};
qoa=function(a){if(!a.C){var b=a.i[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
roa=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(!nC(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);mC(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
oC=function(a,b,c){a=roa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
soa=function(a){a=oC(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};
pC=function(a,b){a.focus(b);return a.i[a.u][b-a.B]};
toa=function(a,b){a.focus(b);return nC(a,b,4)?qoa(a).getUint32(b-a.B):256*(256*(256*pC(a,b)+pC(a,b+1))+pC(a,b+2))+pC(a,b+3)};
qC=function(a,b,c){this.info=a;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.i=b instanceof kC?b:new kC([b])};
rC=function(a){return roa(a.i)};
uoa=function(a,b){if(1!==a.info.i.info.containerType||a.info.Bb||!a.info.Td)return!0;a=rC(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};
voa=function(a,b){b=Math.min(b,a.info.u);var c=a.i.split(b),d=c.Cz;c=c.Nq;var e=new PB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb,b,!1,!1);d=new qC(e,d,a.B);a=new PB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb+b,a.info.u-b,a.info.B,a.info.Td);a=new qC(a,c,!1);return[d,a]};
woa=function(a,b,c){var d;if(!(d=!SB(a.info,b.info)||a.info.Td)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?poa(a.i,c.i[0]):1);d=c}if(d)return null;c=new PB(a.info.type,a.info.i,a.info.range,a.info.I,a.info.Ma,a.info.startTime,a.info.duration,a.info.Bb,a.info.u,a.info.B,a.info.Td);d=b.info;c.u+=d.u;c.range&&(c.K+=d.K);c.D=d.D;c.Td=d.Td;c.B=c.B||d.B;d=new kC;lC(d,a.i);lC(d,b.i);c=new qC(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.B=!1);return c};
xoa=function(a){g.sC(a.info.i.info)||a.info.i.info.qe();if(-1!==a.C)return a.C;if(a.u&&xna(a.u))return a.C=xna(a.u),a.C;if(g.sC(a.info.i.info)){var b=rC(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;gB(b,f);){var h=hB(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.dB(h):1952867444===h.type&&isNaN(d)&&(d=g.jB(h));f=iB(h.type)?f+8:f+h.size}!e&&c&&(e=eB(c));b=d/e}else b=new mB(rC(a)),c=a.B?b:new mB(new DataView(a.info.i.i.buffer)),d=zB(c),c=b.i,b.i=0,AB(b)?qB(b,231)?(d=
uB(b)*d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.C=b||a.info.C;return a.C};
zoa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=xoa(a)+b;yoa(a,c);a.timestampOffset=b};
yoa=function(a,b){g.sC(a.info.i.info)||a.info.i.info.qe();a.C=b;if(g.sC(a.info.i.info)){var c=rC(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;gB(c,f);){var h=hB(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.dB(h)));if(1952867444===h.type){!d&&a&&(d=eB(a));var l=g.jB(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=iB(h.type)?f+8:f+h.size}return!0}c=new mB(rC(a));a=a.B?c:new mB(new DataView(a.info.i.i.buffer));d=zB(a);a=c.i;c.i=0;if(AB(c)&&qB(c,231))if(e=rB(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.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
tC=function(a,b){b=void 0===b?!1:b;var c=Aoa(a);a=b?0:a.info.K;return c||a};
Aoa=function(a){g.sC(a.info.i.info)||a.info.i.info.qe();if(a.u&&6===a.info.type)return a.u.Vi;if(g.sC(a.info.i.info)){var b=rC(a);var c=0;b=g.lB(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Dna(d.value),c+=d.KG[0]/d.PG;c=c||NaN;if(!(0<=c))a:{c=rC(a);b=a.info.i.i;for(var e=d=0,f=0;gB(c,d);){var h=hB(c,d);if(1836476516===h.type)e=g.dB(h);else if(1836019558===h.type){!e&&b&&(e=eB(b));if(!e){c=NaN;break a}var l=fB(h.data,h.dataOffset,1953653094),m=e,n=fB(l.data,l.dataOffset,1952868452);
l=fB(l.data,l.dataOffset,1953658222);var p=VA(n);VA(n);p&2&&VA(n);n=p&8?VA(n):0;var r=VA(l),t=r&1;p=r&4;var u=r&256,v=r&512,y=r&1024;r&=2048;var z=WA(l);t&&VA(l);p&&VA(l);for(var C=t=0;C<z;C++){var F=u?VA(l):n;v&&VA(l);p&&0===C||!y||VA(l);r&&VA(l);t+=F}f+=t/m}d=iB(h.type)?d+8:d+h.size}c=f||NaN}c||g.cy(new g.aw("Missing duration while parsing bmff",OB(a.info)))}else c=new mB(rC(a)),a=a.B?c:new mB(new DataView(a.info.i.i.buffer)),c=Mna(c,zB(a));return c};
Boa=function(a){var b=rC(a);var c=(c=g.cB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.cB(b,0,1836476516))?g.dB(b):a?eB(a):NaN);return c};
Coa=function(a){if(!a.u){g.sC(a.info.i.info)||a.info.i.info.qe();if(g.sC(a.info.i.info))var b=g.Fna(rC(a));else{b=new mB(rC(a));var c=b.i;b.i=0;var d=null,e=null;if(oB(b,[408125543,307544935]))for(var f=b.i+rB(b,!0);b.i<f;)if(29555!==rB(b,!1))vB(b);else for(var h=b.i+rB(b,!0);b.i<h;)if(26568!==rB(b,!1))vB(b);else for(var l=b.i+rB(b,!0);b.i<l;){var m=rB(b,!1);if(17543===m){if(m=Kna(b),m=bB(m))if(e)for(var n=g.q(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=m}else 17827===
m?(m=Kna(b),d||(d=m)):vB(b)}b.i=c;b=e?new aB(e,d):null}a.u=b}};
uC=function(a,b,c,d,e){JB.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new iC};
vC=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=NB(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 PB(3,a,h,"getRequestInfoForRange",f,l,m,n,p,r));if(h.start+n+p>=c+d)break}e.length||g.by(new g.aw("b189619593",""+b,""+c,""+d));return new WB(e)};
wC=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Doa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
yC=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||xC(a,b);this.i=g.nA[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.nA[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
xC=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=zC[0];for(var d=0;d<zC.length;d++){var e=zC[d],f=g.nA[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
CC=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Ob||(c.Ob=16E3);Object.assign(this,c);this.containerType=AC(b);this.i=BC[this.hc()]||""};
DC=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
EC=function(a){return"9h"===a.i||"(h"===a.i};
FC=function(a){return"1"===a.i||"1h"===a.i};
g.sC=function(a){return 1===a.containerType};
GC=function(a){return"application/x-mpegURL"===a.mimeType};
Eoa=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.i)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
HC=function(a){return a.includes("vtt")||a.includes("text/mp4")};
AC=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};
Foa=function(a,b,c,d,e){var f=new wC;b in g.nA||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.nA[b],d=Math.round(16*e/9));d=new yC(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new CC(c,a,{audio:f,video:d})};
IC=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.JC=function(){Cx.apply(this,arguments)};
KC=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.ch("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
LC=function(a){var b=KC();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Goa=function(a){try{var b=MC('video/mp4; codecs="avc1.42001E"')||MC('video/webm; codecs="vp9"');return(MC('audio/mp4; codecs="mp4a.40.2"')||MC('audio/webm; codecs="opus"'))&&(b||!a)||LC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
MC=function(a){if(/opus/.test(a)&&g.Ej&&!(0,fs)("38")&&!g.Cu())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Hia())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!LC(a)};
NC=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
OC=function(){var a=KC();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
PC=function(){var a=KC();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
QC=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
RC=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)};
SC=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};
TC=function(a,b){return 0<=SC(a,b)};
Hoa=function(a,b){if(!a)return NaN;b=SC(a,b);return 0<=b?a.start(b):NaN};
UC=function(a,b){if(!a)return NaN;b=SC(a,b);return 0<=b?a.end(b):NaN};
VC=function(a){return a&&a.length?a.end(a.length-1):NaN};
Ioa=function(a,b){a=UC(a,b);return 0<=a?a-b:0};
WC=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 QC(d,e)};
XC=function(a,b,c,d){g.Q.call(this);var e=this;this.Dd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.UK={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
Fx(this.Dd,this.UK);this.Nx=this.isActive};
g.YC=function(a){var b=[];if(a){a=g.q(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
g.ZC=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
$C=function(a,b){b=void 0===b?!1:b;if(a instanceof g.ZC)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.by(a):g.cy(a);return new g.ZC(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
aD=function(a,b,c,d,e){var f;g.Q.call(this);var h=this;this.Wb=a;this.Me=b;this.id=c;this.containerType=d;this.isVideo=e;this.zL=this.Tz=this.Ve=null;this.appendWindowStart=this.timestampOffset=0;this.vJ=QC([],[]);this.yy=!1;this.Ce=function(l){return h.ea(l.type,h)};
if(null===(f=this.Wb)||void 0===f?0:f.addEventListener)this.Wb.addEventListener("updateend",this.Ce),this.Wb.addEventListener("error",this.Ce)};
bD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
cD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1};
dD=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaSource=a;this.Me=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.JC(this);g.H(this,this.events);this.qw=new cD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Me.webkitMediaSourceURL,!0);a=this.mediaSource||this.Me;Dx(this.events,a,["sourceopen","webkitsourceopen"],this.jW);Dx(this.events,a,["sourceclose","webkitsourceclose"],this.iW)};
Joa=function(a,b){eD(a)?(0,g.Ah)(function(){b(a)}):a.callback=b};
eD=function(a){try{return"open"===fD(a)}catch(b){return!1}};
fD=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Me.webkitSourceState){case a.Me.SOURCE_OPEN:return"open";case a.Me.SOURCE_ENDED:return"ended";default:return"closed"}};
gD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Koa=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.Dd:a.i,f=a.u.isView()?a.u.Dd:a.u,h=new dD(a.mediaSource,a.Me,!0);h.qw=a.qw;e=new XC(e,b,c,d);b=new XC(f,b,c,d);h.i=e;h.u=b;g.H(h,e);g.H(h,b);eD(a)||a.i.hB(a.i.dd());return h};
Loa=function(a,b){return hD(function(c,d){return g.ku(c,d,4,1E3)},a,b)};
g.Moa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=QA(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
hD=function(a,b,c){b.match(Noa);return a(b,c).then(function(d){var e=g.Moa(d.xhr);return e?hD(a,e,c):d.xhr})};
iD=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.La=this.duration=0;this.bf=this.S=this.isLive=this.B=!1;this.wg=this.re=0;this.isOtf=this.uf=!1;this.Ba=(0,g.P)();this.X=Infinity;this.i={};this.state=this.oa=0;this.timeline=null;this.isManifestless=!1;this.Z=[];this.C=null;this.xa=0;this.Sa="";this.Aa=NaN;this.K=this.I=this.D=this.timestampOffset=this.u=0;this.Wa=!!b&&b.kb("html5_live_nonzero_first_segment_start_time");
this.bb=!!b&&b.kb("html5_live_self_init_segments");this.withCredentials=!b||!b.kb("html5_manifest_without_credentials");this.Ka=!!b&&b.kb("disable_html5_manifest_namespace_redux");this.Va=b&&b.kb("disable_html5_duration_caching")?Infinity:10;this.Za=!!b&&b.kb("html5_reset_index_on_mismatch");Ooa=!!b&&b.kb("html5_modern_vp9_mime_type");this.Ja=!!b&&b.kb("html5_unrewrite_timestamps")};
hna=function(a){return g.Ge(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
AA=function(a){return g.Ge(a.i,function(b){return!!b.info.Fd})};
Poa=function(a){return g.Ge(a.i,function(b){return HC(b.info.mimeType)})};
Qoa=function(a){return g.Ge(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
Roa=function(a){return g.Ge(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
Soa=function(a){return g.Ge(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Toa=function(a){return g.Ge(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Uoa=function(a){return He(a.i,function(b){return b.info.video?b.SF():!0})};
tA=function(a){return g.Ge(a.i,function(b){return IA(b.u.i)})};
Voa=function(a){return g.Ge(a.i,function(b){return!(b.index instanceof iC)})};
jD=function(a,b){a.i[b.info.id]=b};
Zoa=function(a,b,c,d,e,f){var h=Woa(a);if(d||e){c=new iD("",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=kD(l,b);f=lD(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.re=c.re||m;c.wg=c.wg||n;var p=!HC(d.mimeType);f&&jD(c,new gC(f,d,{Vi:h,vk:p,Sl:l,re:m,wg:n,pw:300,bf:e}))}c.B=!e;c.uf=!0;
c.isManifestless=!0;c.isLive=!e;c.bf=e;c.S=!!c.re&&!!c.wg&&isFinite(c.wg);b=c}else b=3===h?Xoa(a,b,c,null===f||void 0===f?void 0:f.experiments):Yoa(a,b,c,f);return b};
Yoa=function(a,b,c,d){c=void 0===c?0:c;var e=new iD("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.sc(a,function(f){var h=kD(f,b,e.duration),l=MB(f.init),m=MB(f.index);(f=lD(f.url,f.sp,f.s))&&jD(e,new uC(f,h,l,m,null===d||void 0===d?void 0:d.mj))});
return e};
Xoa=function(a,b,c,d){c=void 0===c?0:c;var e=new iD("",d,!1);e.duration=c||0;g.sc(a,function(f){var h=kD(f,b,e.duration),l=lD(f.url,f.sp,f.s);if(l)if(3===h.streamType)jD(e,new hC(l,h,"sq/0"));else{var m=MB(f.init);f=MB(f.index);jD(e,new uC(l,h,m,f))}});
e.isOtf=!0;return e};
kD=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 yC(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===mD&&(mD=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(Ooa&&window.MediaSource&&MediaSource.isTypeSupported)!mD&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!mD&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if((mD||$oa)&&('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.u&&(p="16"),"arib-std-b67"===f.u&&(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 wC(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new IC(a.name,a.audio_track_id,"1"===a.isDefault))}var v;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(v=new Doa(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 CC(e,d,{audio:u,video:h,zc:t,Fd:y,Ob:f,Tu:c,contentLength:l,lastModified:m,captionTrack:v,streamType:+a.stream_type})};
Woa=function(a){return lo(a,function(b){return 3===+b.stream_type})?3:0};
apa=function(a,b){return a.timeline?hc(a.timeline.C,b):a.Z.length?hc(a.Z,b):[]};
lD=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.EA(a,!0);a.set("alr","yes");c&&(c=mna(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
epa=function(a,b){var c=aC(b,"id");c=c.replace(":",";");var d=aC(b,"mimeType"),e=aC(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(aC(b,"bandwidth"))/8;var f=Number(bC(b,"BaseURL").getAttribute(nD(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(aC(b,"width"));var m=Number(aC(b,"height")),n=Number(aC(b,"frameRate")),p=bpa(aC(b,nD(a,"projectionType")));a:switch(aC(b,nD(a,"stereoLayout"))){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=
2;break a;default:r=0}l=new yC(l,m,n,p,r)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(aC(b,"audioSamplingRate"));var u=Number(aC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=cpa(aC(b,nD(a,"spatialAudioType")));t=new wC(t,u,m);a:{u=aC(b,"lang")||"und";if(m=bC(b,"Role"))if(p=aC(m,"value")||"",Oe(dpa,p)){m=u+"."+dpa[p];n="main"===p;a=aC(b,nD(a,"langName"))||u+" - "+p;u=new IC(a,m,n);break a}u=void 0}}if(b=bC(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var v={};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&&(v[a]=m.trim()))}else v=void 0;return new CC(c,d,{audio:t,video:l,zc:u,Fd:v,Ob:e,Tu:h,contentLength:f})};
bpa=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}};
cpa=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}};
gpa=function(a,b){b=void 0===b?"":b;a.state=1;a.Ba=(0,g.P)();return Loa(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.oa=c.status;c=c.responseText;var d=new DOMParser;c=lk(d,Sea(c)).getElementsByTagName("MPD")[0];a.X=1E3*eoa(aC(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ka){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.Sa=d}a.isLive=Infinity>a.X&&a.isLivePlayback;a.La=Number(aC(c,nD(a,"earliestMediaSequence")))||0;if(d=Date.parse(foa(aC(c,nD(a,"mpdResponseTime")))))a.xa=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.qn(c.getElementsByTagName("Period"),a.RW,a);a.state=2;a.ea("loaded");fpa(a)}return a}).yh(function(c){if(c instanceof iu){var d=c.xhr;
a.oa=d.status}a.state=3;a.ea("loaderror");return Kh(d)})};
hpa=function(a,b,c){return gpa(new iD(a,b,c),a)};
oD=function(a){return a.isLive&&(0,g.P)()-a.Ba>=a.X};
fpa=function(a){var b=a.X;isFinite(b)&&(oD(a)?a.refresh():(b=Math.max(0,a.Ba+b-(0,g.P)()),a.C||(a.C=new g.I(a.refresh,b,a),g.H(a,a.C)),a.C.start(b)))};
ipa=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
pD=function(a){return a.D&&(a.u||a.Ja)?a.D-(a.u||a.timestampOffset):0};
qD=function(a){return a.I&&(a.u||a.Ja)?a.I-(a.u||a.timestampOffset):0};
rD=function(a){if(!isNaN(a.Aa))return a.Aa;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.Va&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Vi))return d.Vi}return NaN};
jpa=function(a,b){a=Re(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};
kpa=function(a,b){g.De(a.i,function(c){g.De(b,function(d,e){var f=c.u;f.i.set(e,d);f.C.set(e,d);f.B&&f.B.set(e,d)})})};
lpa=function(a,b){if(!a.i["0"]){var c=new CC("0","fakesb",{video:new yC(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new $B(new g.EA("http://www.youtube.com/videoplayback"),c,"fake"):new uC(new g.EA("http://www.youtube.com/videoplayback"),c,new LB(0,0),new LB(0,0))}};
sD=function(a,b,c){for(var d in a.i){var e=HC(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=eC(e,b);0<=f&&e.segments.splice(f,1)}}};
nD=function(a,b){return a.Ka?"yt:"+b:a.Sa+":"+b};
mpa=function(a){a.I=0;a.D=0;a.K=0};
npa=function(){var a=g.ry("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.sg(Math.floor(b),0,100),muted:!!a.muted}};
opa=function(a){g.qy("yt-player-bandwidth",a,2592E3)};
tD=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Yla()>(0,g.P)()-1E3*a))return 0;a=g.ry("yt-player-quality");if("string"===typeof a){if(a=g.nA[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
ppa=function(){var a=g.ry("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};
qpa=function(){var a={values:{},em:{}};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};
rpa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
vD=function(a,b){return+uD()[rpa(a,b)]||8192};
uD=function(){return g.ry("yt-player-performance-cap")||{}};
spa=function(a){g.qy("yt-player-watch-later-pending",a)};
tpa=function(){return!!g.ry("yt-player-headers-readable")};
upa=function(a,b){g.qy("yt-player-bandaid-host",{primary:a,secondary:b},864E3)};
vpa=function(a){g.qy("yt-player-playback-on-reload",a)};
wpa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.xpa=function(){var a=g.ry("yt-player-caption-language-preferences");return a?a:[]};
ypa=function(){this.Gb=this.i=this.Ka=this.I=this.D=this.xa=this.Ja=this.Za=this.Wa=!1;this.X=this.S=0;this.rb=!1;this.bb=!0;this.jb=this.ob=!1;this.B=0;this.Z=!1;this.Fb=Infinity;this.VC=!1;this.Nb=!0;this.Va=this.Sa=!1;this.u={};this.Db=this.La=this.wb=this.Aa=this.K=this.Ba=!1;this.ze=0;this.ub=!1};
ina=function(a){if(a.Za)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Z&&(b.unshift("1"),b.unshift("1h"));a.i&&b.unshift("h");a.oa&&(b=(zpa[a.oa]||[a.oa]).concat(b));return b};
gna=function(a){var b=["o","a","A"];1===a.ze&&(a.xa&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.Wa&&(b=["so","sa"].concat(b));!a.Gb||a.Ka||a.C||b.unshift("a");a.Ja&&b.unshift("ah");a.C&&(b=(zpa[a.C]||[a.C]).concat(b));return b};
wD=function(a,b,c){b=void 0===b?{}:b;var d;if(yA(a.u,zA.AV1_CODECS)&&yA(a.u,zA.HEIGHT)&&yA(a.u,zA.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=wpa();if(e)return b.localPref=e}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Gia()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return FC(h)});
if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(vD("1",c.fps),vD("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=vD("1",30),b.perfCap30=c,a=Math.min(a,c),c=vD("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
yD=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.I=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.kb("edge_nonprefixed_eme");this.D=d?g.xD(d,"html5_hdcp_probing_stream_url"):""};
AD=function(a){return a.S?!1:!a.keySystemAccess&&!!zD()&&"com.microsoft.playready"===a.keySystem};
BD=function(a){return"com.microsoft.playready"===a.keySystem};
CD=function(a){return!a.keySystemAccess&&!!zD()&&"com.apple.fps.1_0"===a.keySystem};
DD=function(a){return"com.youtube.fairplay"===a.keySystem};
g.ED=function(a){return"fairplay"===a.flavor};
zD=function(){var a=window,b=a.MSMediaKeys;Fu()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
FD=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Ej&&!g.Cu())return(0,fs)("45");if(g.Hw||g.Jc)return a.kb("edge_nonprefixed_eme");if(g.Fj)return(0,fs)("47");if(g.Gj){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.S(a,"html5_safari_desktop_eme_min_version"))return(0,fs)(a)}return!0};
Apa=function(a,b,c,d){var e=Du(),f=(c=e||c&&Fu())?["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.ma(f),g.ma(GD.playready)):[].concat(g.ma(GD.playready),g.ma(f))};
HD=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ca=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.ma()};
Cpa=function(a,b){a.callback=b;a.B=[];FD(a.experiments)?ID(a):Bpa(a)};
ID=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=Dpa(a,c);a.ma();navigator.requestMediaKeySystemAccess(b,d).then(wt(function(e){if(!a.isDisposed()){a.ma();c.keySystemAccess=e;if(BD(c)){e=KC();for(var f=g.q(Object.keys(a.C[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())Epa(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())Epa(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.i.shift(),ID(a)):a.callback(a.B)}}),wt(function(){a.ma();
a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();ID(a)}))}};
Epa=function(a,b,c){a.N("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
Dpa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};BD(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.C[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.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.Ej&&Au("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(Lu()||Bu())&&(a.Ca("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Bpa=function(a){if(zD()&&g.Gj)a.ma(),a.B.push(new yD("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Fpa(),c=g.Tb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[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.B.push(a.u[c])):a.ma();a.i=[]}a.callback(a.B)};
Fpa=function(){var a=zD();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=KC();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Gpa=function(){this.i=0};
Hpa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=zt(b||"","&");var c={};g.sc(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.S=function(a,b){return Number(a.flags[b])||0};
g.xD=function(a,b){return(a=a.flags[b])?a.toString():""};
JD=function(a,b,c){this.experiments=a;this.Z=b;this.oa=void 0===c?!1:c;this.I=!!g.Ja("cast.receiver.platform.canDisplayType");this.D={};this.S=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.kb("html5_disable_protected_hdr");this.u=!1;this.X=this.experiments.kb("html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.B=!this.I&&a&&a("max-video-resolution-vpx")||null};
ena=function(a,b,c){c=void 0===c?1:c;var d,e=b.hc();if("0"===e||a.experiments.kb("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.qe()&&Du()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(FC(b)&&a.S)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(yA(a,zA.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";
if("338"===e&&!(g.Ej?fs(53):g.Fj&&fs(64)))return"dopus";var h=c;h=void 0===h?1:h;c={};b.video&&(b.video.width&&(c[zA.WIDTH.name]=b.video.width),b.video.height&&(c[zA.HEIGHT.name]=b.video.height),b.video.fps&&(c[zA.FRAMERATE.name]=b.video.fps*h),b.video.u&&(c[zA.EOTF.name]=b.video.u),b.Ob&&(c[zA.BITRATE.name]=8*b.Ob*h),"("===b.i&&(c[zA.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[zA.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[zA.CHANNELS.name]=b.audio.numChannels);a.u&&DC(b)&&(c[zA.EXPERIMENTAL.name]="allowed");h=g.q(Object.keys(zA));for(var l=h.next();!l.done;l=h.next()){l=zA[l.value];var m;if(m=c[l.name])(m=l===zA.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(m=b,m=a.experiments.kb("html5_ignore_h264_framerate_cap")&&l===zA.FRAMERATE&&("H"===m.i||"h"===m.i)),m=!(m||l===zA.DECODETOTEXTURE&&!a.experiments.kb("html5_decode_to_texture_cap"));if(m)if(yA(a,l))if(a.B){if(a.B[l.name]<c[l.name])return l.name}else f=
f+"; "+l.name+"="+c[l.name];else if(EC(b)&&l===zA.EOTF)return"dvp92"}!a.experiments.kb("disable_html5_cast_hdcp_filter2")&&a.I&&b.video&&1080<b.video.i&&b.Fd&&(f+="; hdcp=2.2");return"227"!==e||a.experiments.kb("html5_enable_1080p_hq_cenc")?"585"!==e&&"588"!==e&&"583"!==e&&"586"!==e&&"584"!==e&&"587"!==e&&"591"!==e&&"592"!==e||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(f)?!0:"tpus":"newhvc":"hqcenc"};
KD=function(){var a=Bu()&&!fs(29),b=Au("google tv")&&Au("chrome")&&!fs(30),c=Du();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Ipa=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)&&ena(a,e,c)){d=e.video.i;break}return d};
g.LD=function(a,b){b=void 0===b?!1:b;return KD()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(KC(),"application/x-mpegURL")?!0:!1};
yA=function(a,b){b.name in a.D||(a.D[b.name]=Jpa(a,b));return a.D[b.name]};
Jpa=function(a,b){if(a.B)return!!a.B[b.name];if(b===zA.BITRATE&&a.experiments.kb("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===zA.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)};
MD=function(){g.Q.call(this);this.items={}};
ND=function(a,b,c,d){function e(h){var l,m=!(204!==h.status&&200!==h.status&&!h.response);h={succ:""+ +m,rc:h.status,lb:(null===(l=h.response)||void 0===l?void 0:l.byteLength)||0,rt:((0,g.P)()-f).toFixed(),shost:g.Ji(a),trigger:b};c&&c(h);d&&!m&&d(new g.ZC("pathprobe.net",!1,h))}
var f=(0,g.P)();g.hu(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
OD=function(a,b){g.E.call(this);this.experiments=a;this.C=b;this.B=[];this.i=g.ry("yt-player-bandaid-host")};
Kpa=function(a){var b;(a=null===(b=a.i)||void 0===b?void 0:b.primary)&&g.hu("https://"+a+"/initplayback?owc=1",{timeout:5E3})};
Lpa=function(a){Kpa(a);var b=g.S(a.experiments,"html5_onesie_prewarm_interval_ms"),c=g.S(a.experiments,"html5_onesie_prewarm_max_lact_ms");b&&c&&(a.u=Nt(function(){a.C()<c&&Kpa(a)},b))};
Mpa=function(){var a,b,c,d,e;return g.A(function(f){if(1==f.i)return a={format:"RAW",timeout:5E3},g.x(f,ju("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.u;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*\.googlevideo.com)/;e=c.match(d);return f.return(e?e[1]:null)})};
Npa=function(a,b,c){ND("https://"+b+"/videoplayback?probe=1",c,function(d){a.B.push(d)})};
Opa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
Ppa=function(a){var b=a.B;a.B=[];return b};
Qpa=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16)};
PD=function(a){try{return Kc(a)}catch(b){return null}};
Rpa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?PD(b.clientKey):null;var c=b.encryptedClientKey?PD(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.P)():null;a&&c&&d&&(this.i=new Qpa(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=PD(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
QD=function(a){this.i=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
RD=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!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=Spa(this);this.B=c;this.D=d};
Spa=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
SD=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.pc(a.I,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.I[Math.round(b*((a.u?a.i:a.valueIndex)-1))]]||0};
Tpa=function(a){var b=new Gpa;this.policy=a;this.xa=b;this.Z=this.oa=0;this.D=-1;this.X=!1;this.S=this.C=TD();this.K=new RD(4,1,.6,.4);this.i=new RD(10,1,.5,.4);this.B=a.i?new QD(a.u):new RD(a.u,20,.5,.4);this.I=new RD(5,1,.25);this.u=new RD(30,1,.5);a=g.ry("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.X=!0);this.B.Lg(this.policy.D,b);0<a.delay&&this.K.Lg(1,Math.min(a.delay,2));0<a.stall&&this.i.Lg(1,a.stall);0<a.init&&(this.S=Math.min(a.init,this.S));this.D=TD()};
UD=function(a){a=a.K.pg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Upa=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.oa+=b)};
VD=function(a){a=a.B.pg();return 0<a?a:1};
WD=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=VD(a);d=1/((a.i.pg()||0)+1/d);var e=a.I.pg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+UD(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((SD(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
XD=function(a){return{delay:UD(a),stall:a.i.pg()||0,byterate:VD(a),init:a.S}};
YD=function(a){-1<a.D&&3E4<TD()-a.D&&(opa(XD(a)),a.D=TD(),a.X=!0)};
Vpa=function(a){return 4E3<=TD()-a.C};
Wpa=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.i=!1};
Xpa=function(a,b,c){var d=new Wpa;a&&(d.i=!0,d.D=.1);c.kb("html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.B=b/8);d.C=480<=tD();return d};
Zpa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.em=b;this.u={};this.B=this.i=0;this.C=new g.I(function(){Ypa(c)},1E4);
g.H(this,this.C)};
ZD=function(a,b){$pa(a,b);return a.values[b]&&a.em[b]?a.values[b]/Math.pow(2,a.i/a.em[b]):0};
$pa=function(a,b){a.values[b]||(b=qpa(),a.values=b.values||{},a.em=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Ypa=function(a){var b=qpa();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.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=ZD(a,e);a.u=c}b=a.em;c={};c.values=a.u;c.halfLives=b;g.qy("yt-player-memory",c,2592E3)};
$D=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
aE=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
bE=function(a,b){return void 0===b||null===b?a:Number(b)};
cE=function(a,b){return void 0===b||null===b?a:b.toString()};
aqa=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.yg(a,b)};
dE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(bqa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
eE=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.O("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
CE=function(a,b,c){var d,e,f;g.E.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Pe=this.Gb=this.xa=this.Ae=this.userDisplayName=this.userDisplayImage=this.jh="";this.deviceParams={};this.controlsType="0";this.ye=NaN;this.Db=!1;this.La=(0,g.P)();this.Wa=0;this.Yi=this.Wj=!1;this.hj=!0;this.Wi=this.dc=!1;this.mj=null;this.lk=Ox(4);this.kc=this.useLivingRoomPoToken=!1;a=a?g.We(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=
b.csiServiceName);this.experiments=new Hpa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Za=b?b.serializedForcedExperimentIds:cE("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:cE("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(F){l=""}this.Nb=l;this.ancestorOrigins=(l=window.location.ancestorOrigins)?Array.from(l):
[];l=!this.N("web_player_context_config_embeds_fields_killswitch");this.i=$D(!1,b&&l?b.isEmbed:a.is_embed);b&&b.device?cqa(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.N("wpcc_loader_url_killswitch")?this.loaderUrl=this.i||fE(this)&&b.loaderUrl?b.loaderUrl||"":this.Nb:this.loaderUrl=this.i||fE(this)&&a.loaderUrl?cE("",a.loaderUrl):this.Nb;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=cE("",a.embedsTokenValue));
this.B=Ny(this.loaderUrl,dqa);this.zl=rma(this.loaderUrl);this.Ka=$D(!1,a.privembed);this.protocol=0===this.Nb.indexOf("http:")?"http":"https";this.Aa=Oy((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Oy(this.Nb)||this.protocol+"://www.youtube.com/";this.Ba=eqa(this,b?b.eventLabel:a.el);Yia();var m=null,n=b?b.playerStyle:a.ps,p=g.Wb(fqa,n);!n||p&&!this.B||(m=n);this.playerStyle=m;this.K=(this.D=g.Wb(fqa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.pk=!this.K;this.Z=
$D(!1,a.disableplaybackui);this.disableSeek=$D(!1,null===b||void 0===b?void 0:b.disableSeek);this.Zb=this.N("variable_playback_rate")?!0:KC().defaultPlaybackRate?gE||g.Ku||hE?g.Fj&&(0,fs)("20")||g.Ej&&(0,fs)("4")||g.iE&&(0,fs)("11")||Gu():!(g.iE&&!Au("chrome")||gE||Au("android")||Au("silk")):!1;this.gk=$D(!1,a.enable_faster_speeds);this.isMobile=$D("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.nk=gqa(this);this.X=PC();this.El=g.jE;this.cj=$D(!1,b&&l?b.embedOptOutDeprecation:
a.opt_out_deprecation);this.pfpChazalUi=(this.Rf=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch")))||$D(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var r;b?void 0!==b.hideInfo&&(r=!b.hideInfo):r=a.showinfo;this.Uj=g.kE(this)&&!this.cj||$D(!lE(this)&&!mE(this)&&!this.D,r);this.Zc=b?!!b.mobileIphoneSupportsInlinePlayback:$D(!1,a.playsinline);r=this.isMobile&&nE&&null!=oE&&0<oE&&2.3>=oE;m=b?b.useNativeControls:a.use_native_controls;
this.C=(this.N("embeds_enable_mobile_custom_controls")||!1===m&&!this.N("embeds_use_native_controls_killswitch"))&&g.kE(this)&&this.isMobile;n=this.isMobile&&!this.C;m=pE(this)||!r&&$D(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Wd=this.isMobile;this.color=aE("red",b&&l?b.progressBarColor:a.color,hqa);this.Cl="3"===this.controlsType||$D(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.bb=!this.i;this.Vj=(m=!this.bb&&!mE(this)&&
!this.K&&!this.D&&!lE(this))&&!this.Cl&&"1"===this.controlsType;this.wb=g.qE(this)&&m&&"0"===this.controlsType&&!this.Vj;this.Hl=this.Dl=r;this.ob=("3"===this.controlsType||this.isMobile||$D(!1,a.use_media_volume))&&!this.C;this.ij=rE&&!g.zc(601)?!1:!0;this.jk=this.i||!1;this.Gc=mE(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=cE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.B||$D(!0,t);r=!0;b&&
b.disableMdxCast&&(r=!1);this.Of=this.N("enable_cast_for_web_unplugged")&&g.sE(this)&&r||this.N("enable_cast_on_music_web")&&g.tE(this)&&r||t&&r&&"1"===this.controlsType&&!this.isMobile&&(mE(this)||g.qE(this)||g.uE(this))&&!g.vE(this);this.Gl=NC()||OC();t=b?!!b.supportsAutoplayOverride:$D(!1,a.autoplayoverride);this.fh=!this.isMobile&&!Au("nintendo wiiu")&&!Au("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:$D(!1,a.mutedautoplay);r=this.N("embeds_enable_muted_autoplay")&&g.kE(this);this.Id=t&&r&&this.X&&
!pE(this);t=(mE(this)||lE(this))&&"blazer"===this.playerStyle;this.Sg=b?!!b.disableFullscreen:!$D(!0,a.fs);this.Va=!this.Sg&&(t||g.yx());this.Qi=this.N("uniplayer_block_pip")&&(Bu()&&fs(58)&&!Lu()||Iu);t=g.kE(this)&&!this.cj;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.ub=t||$D(!this.D,u);this.gj=$D(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.I=Lu()&&0<oE&&4.4>=oE?"_top":"_blank";this.xd=g.uE(this);this.eh=$D("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.oa=u;this.authUser=cE("",b&&l?b.authorizedUserIndex:a.authuser);this.fc=g.kE(this)&&(this.Ka||this.N("embeds_web_enable_hiding_login_buttons")&&
(!Cia()||Lu()||Ju())||this.N("embeds_web_enable_always_hiding_login_buttons"));var v;b?void 0!==b.disableWatchLater&&(v=!b.disableWatchLater):v=a.showwatchlater;this.Xj=((u=!this.fc)||!!this.authUser&&u)&&$D(!this.K,this.B?v:void 0);this.Bf=b?!!b.disableKeyboardControls:$D(!1,a.disablekb);this.loop=$D(!1,a.loop);this.pageId=cE("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Fl=$D(!0,a.canplaylive);this.rb=$D(!1,a.livemonitor);this.disableSharing=$D(this.D,b?b.disableSharing:
a.ss);this.jj=aqa(b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:$D(!1,a.mute);this.storeUserVolume=!this.mute&&$D("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);v=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:aE(void 0,v,wE);this.captionsLanguagePreference=b?b.captionsLanguagePreference||
"":cE("",a.cc_lang_pref);v=aE(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,wE);"3"===this.controlsType&&2===v&&(v=3);this.Sa=v;this.ze=b?b.hl||"en_US":cE("en_US",a.hl);this.region=b?b.contentRegion||"US":cE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":cE("en",a.host_language);this.Zj=!this.Ka&&Math.random()<g.S(this.experiments,"web_player_api_logging_fraction");this.Ja=!this.Ka;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:$D(!0,a.deviceHasDisplay);this.ye=
bE(this.ye,a.ismb);this.lj=iqa(this,a);xE(this,a,!0);this.S=new MD;g.H(this,this.S);this.Vg=jqa(this,a,b);this.ej=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new JD(this.experiments,this.N("html5_force_hfr_support")?!0:yE(this)||Eu()||Hia()||kqa(this),g.Ej&&g.zc(56)||g.Fj&&g.zc(54)||kqa(this));this.schedule=new Tpa(Xpa(g.zE(this),this.ye,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:$D(!1,a.enable_safety_mode);
v=this.Z?!1:mE(this)&&"blazer"!==this.playerStyle;var y;b&&l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Fb=$D(v,!this.K&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:$D(!1,a.send_visitor_id_header);var z;"docs"===this.playerStyle&&(b&&l?z=b.disableNativeContextMenu:z=a.disable_native_context_menu);this.disableNativeContextMenu=$D(!1,z);this.hk=yE(this)&&this.N("enable_skip_intro_button");this.embedConfig=cE("",b&&l?b.serializedEmbedConfig:a.embed_config);this.kc=
"pfl"===lqa(a);this.Tg=$D(!1,a.full_window);this.jb=!g.sE(this)&&!AE(this)&&!g.vE(this)&&!0;this.livingRoomAppMode=aE("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,mqa);this.transparentBackground=b?!!b.transparentBackground:$D(!1,a.transparent_background);this.useFastSizingOnWatchDefault=$D(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:$D(!1,a.show_miniplayer_button);
this.externalFullscreen=b?!!b.externalFullscreen:$D(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:$D(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=$D(!1,a.showbackbutton);this.hj=null!==(f=a.show_loop_video_toggle)&&void 0!==f?f:!0;this.Bl=1E-4>Math.random();this.Yc=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Rpa(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):
void 0;this.isTectonic=b&&!this.N("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.ac=new Zpa;g.H(this,this.ac);this.Wi=$D(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.N("DATASYNC_ID",void 0);this.Al=g.N("LOGGED_IN",!1);this.Yj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=cE("",b?b.embedsRct:a.rct);this.Oi=0;this.livingRoomPoTokenId=null===b||void 0===b?void 0:b.livingRoomPoTokenId;this.useLivingRoomPoToken=
!(null===b||void 0===b||!b.useLivingRoomPoToken);if(this.N("html5_generate_session_po_token")&&!this.useLivingRoomPoToken){a=g.zE(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";this.N("html5_po_token_enable_webpo_experimental")&&(a="bxNLZUJrsnkb8KzwCOTR");try{this.rh=nca({Yk:a});this.rh.ready().then(function(){BE(h)});
var C=g.S(this.experiments,"html5_session_po_token_interval_time_ms");0<C&&(this.Zg=Nt(function(){BE(h)},C))}catch(F){F instanceof Error&&g.cy(F)}}if(this.N("html5_onesie")||this.N("html5_host_selector"))this.Oh=new OD(this.experiments,function(){return jv()}),g.H(this,this.Oh)};
xE=function(a,b,c){c=void 0===c?!1:c;a.Gb=cE(a.Gb,b.video_id);a.xa=cE(a.xa,b.eventid);a.xa&&(Nx=a.xa);for(var d=[],e=g.q(Object.keys(nqa)),f=e.next();!f.done;f=e.next()){f=nqa[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Bl&&(d.sort(),g.cy(new g.aw("Player client parameters changed after startup",d)));a.userAge=bE(a.userAge,b.user_age);a.jh=cE(a.jh,b.user_display_email);a.userDisplayImage=cE(a.userDisplayImage,b.user_display_image);g.Qy(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=cE(a.userDisplayName,b.user_display_name);a.Ae=cE(a.Ae,b.user_gender);a.csiPageType=cE(a.csiPageType,b.csi_page_type);a.csiServiceName=cE(a.csiServiceName,b.csi_service_name);a.eh=$D(a.eh,b.enablecsi);a.pageId=cE(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.hd=b.living_room_session_po_token.toString())};
eqa=function(a,b){var c="detailpage";"adunit"===b?c=a.i?"embedded":"detailpage":"embedded"===b||a.B?c=aE(c,b,oqa):b&&(c="embedded");return c};
jqa=function(a,b,c){var d=c?c.innertubeApiKey:cE("",b.innertube_api_key),e=c?c.innertubeApiVersion:cE("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:cE("",b.innertube_context_client_version);d=g.N("INNERTUBE_API_KEY",void 0)||d;e=g.N("INNERTUBE_API_VERSION",void 0)||e;c=g.N("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");var f=a.deviceParams.c;var h="number"===typeof a.deviceParams.c?Number(a.deviceParams.c):Object.keys(pqa).indexOf(a.deviceParams.c);return{innertubeApiKey:d,innertubeApiVersion:e,
Hz:c,Iz:f,gL:h,innertubeContextClientVersion:g.N("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,DE:a.hostLanguage,CE:a.region,hL:g.N("INNERTUBE_HOST_OVERRIDE",void 0)||"",jL:!!g.N("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),iL:!!g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
DE=function(a,b){return!a.D&&Bu()&&fs(55)&&"3"===a.controlsType&&!b};
g.EE=function(a){a=qqa(a.Aa);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.FE=function(a){return g.vE(a)?"music.youtube.com":g.EE(a)};
GE=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
HE=function(a){return mE(a)&&!g.sE(a)};
pE=function(a){return rE&&!a.Zc||Au("nintendo wiiu")||Au("nintendo 3ds")?!0:!1};
g.vE=function(a){return"music-embed"===a.playerStyle};
g.zE=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
rqa=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
fE=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
kqa=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.IE=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
yE=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.JE=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
AE=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.sE=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
KE=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.LE=function(a){return g.sE(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||KE(a)};
g.tE=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.ME=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
g.NE=function(a){return!a.N("web_player_i_see_captions_killswitch")&&g.JE(a)};
OE=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.JE(a)};
sqa=function(a){return!a.N("web_player_larger_tap_buttons_killswitch")&&g.JE(a)&&!g.qE(a)};
gqa=function(a){if(a.isMobile)return!a.D;var b=Number(Date.now()/1E3),c=g.Mv.getInstance();return a.N("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.QE=function(a){return(a.deviceHasDisplay&&g.Ej&&!Iu&&"3"!==a.controlsType?g.Ku?a.i&&g.zc(51):!0:!1)||(a.deviceHasDisplay&&g.Fj&&!Iu&&"3"!==a.controlsType?g.Ku?a.i&&g.zc(48):g.zc(38):!1)||(a.deviceHasDisplay&&g.iE&&!Iu&&"3"!==a.controlsType?g.Ku?a.i&&g.zc(37):g.zc(27):!1)||a.deviceHasDisplay&&g.PE&&!Hu()&&g.zc(11)||a.deviceHasDisplay&&g.Gj&&g.zc("604.4")};
tqa=function(a){if(g.qE(a)&&nE)return!1;if(g.Fj){if(!g.zc(47)||!g.zc(52)&&g.zc(51))return!1}else if(g.Gj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
mE=function(a){return"detailpage"===a.Ba};
g.qE=function(a){return"embedded"===a.Ba};
RE=function(a){return"leanback"===a.Ba};
lE=function(a){return"adunit"===a.Ba||"gvn"===a.playerStyle};
g.uE=function(a){return"profilepage"===a.Ba};
g.kE=function(a){return a.i&&g.qE(a)&&!lE(a)&&!a.D};
lqa=function(a){var b=a.raw_embedded_player_response;b||(a=a.embedded_player_response)&&(b=JSON.parse(a));return b&&(b=b.embedPreview)?b.thumbnailPreviewRenderer.embedMode||"":""};
iqa=function(a,b){if(g.xD(a.experiments,"html5_qoe_intercept"))return g.xD(a.experiments,"html5_qoe_intercept");a.pk?(b=b.vss_host||"s.youtube.com",a.N("www_for_videostats")&&"s.youtube.com"===b&&(b=qqa(a.Aa)||"www.youtube.com")):b="video.google.com";return b};
SE=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.aw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.TE=function(a){var b=g.FE(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&uqa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
cqa=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)};
BE=function(a){var b,c,d,e;g.A(function(f){if(!a.N("html5_generate_session_po_token")||null===(b=a.rh)||void 0===b||!b.isReady()||a.useLivingRoomPoToken)return f.return();c=g.N("VISITOR_DATA",void 0);d=a.Al?a.datasyncId:c;e=a.rh.Xs({OJ:d});a.hd=g.Ec(e,2);g.ta(f)})};
qqa=function(a){var b=g.Ji(a);return(a=Number(g.Ii(4,a))||null)?b+":"+a:b};
UE=function(a){this.i=a};
VE=function(a,b,c){if(c)return mu();var d={};c=KC();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.mf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].mf().qe())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.sc(zC,function(l){(l=d[l])&&h.push(l)});
return h.length?nu(h):mu()};
vqa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.i=""};
wqa=function(a,b){a.B.some(function(c){var d;return(null===(d=c.zc)||void 0===d?void 0:d.getId())===b});
a.i=b};
WE=function(a,b,c){a.cpn&&(b=g.Ui(b,{cpn:a.cpn}));c&&(b=g.Ui(b,{Bda:c}));return b};
xqa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
yqa=function(a){for(var b=[],c=[],d=g.q(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?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.u=b.concat(c)};
zqa=function(a){var b;this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.Zt=a.Zt;this.Fd=a.Fd||"";this.zc=a.zc;this.audioChannels=a.audioChannels;this.i=""};
Aqa=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=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new IC(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new zqa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,Zt:n?l[n]:void 0,Fd:f.drm_families,zc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
XE=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null};
Bqa=function(a,b){if(!(Iu||Fu()||Du()))return null;a=Aqa(b,a.N("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.zc&&(f=h.zc.getId(),c[f]||(h=new lA(f,h.zc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Gqa=function(a,b,c,d,e,f,h){if(!(Iu||Fu()||Du()))return mu();var l=[],m=Cqa(c),n=Aqa(c,a.N("html5_filter_fmp4_in_hls"),a.u.C,l);if(!n)return h("noplst"),mu();Dqa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),r;c=[];var t=[],u=[],v=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new zqa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,zc:new IC("English","en",!1)}):null;for(var z=g.q(Object.keys(n)),C=z.next();!C.done;C=z.next())if(C=C.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==C&&"373"!==C){C=g.q(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var G=g.q(F.u),J=G.next();!J.done;J=G.next())if(J=J.value,n[J]){F.i=J;break}F.i||(F.i=Eqa(n,F));if(G=n[F.i])if(c.push(F),"fairplay"===F.Fd&&(r=p),J="","PQ"===F.Zt?J="smpte2084":"HLG"===F.Zt&&(J="arib-std-b67"),J&&(y=J),u.push(Fqa(G,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,r,J)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else t.push(F)}else l.push(C),l.push("disdrmhfr");u.reduce(function(U,
K){return K.mf().isEncrypted()&&U},!0)&&(r=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.N("html5_native_audio_track_switching");u.push(Fqa(t,c,d,f,"93",v,p,n,m,"auto",e,r,y,z));l.length&&h(l.join("."));return VE(a.u,u,DE(a,b))};
Fqa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u){for(var v=0,y="",z=g.q(a),C=z.next();!C.done;C=z.next())C=C.value,y||(y=C.itag),C.audioChannels&&C.audioChannels>v&&(v=C.audioChannels,y=C.itag);e=new CC(e,"application/x-mpegURL",{audio:new wC(0,v,null,y),video:new yC(f,h,l,null,void 0,n,void 0,t),Fd:r});a=new vqa(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new XE(e,a,m)};
Cqa=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};
Eqa=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.Fd===b.Fd&&!e.audioChannels)return d}return""};
Dqa=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]};
YE=function(a,b){this.i=a;this.u=b};
Hqa=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.EA(h.url,!0);if(h.s){var l=h.sp,m=mna(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=Foa(h.type,h.quality,h.itag,h.width,h.height);e.push(new YE(h,f))}}return VE(a.u,e,DE(a,b))};
ZE=function(a,b){this.i=a;this.u=b};
Iqa=function(a){var b=[];g.sc(a,function(c){if(c&&c.url){var d=Foa(c.type,"medium","0");b.push(new ZE(d,c.url))}});
return b};
Jqa=function(a,b,c){c=Iqa(c);return VE(a.u,c,DE(a,b))};
$E=function(a,b){this.type=a||"";this.id=b||""};
g.aF=function(a){return new $E(a.substr(0,2),a.substr(2))};
bF=function(a,b){for(var c={},d=g.q(Object.keys(Kqa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Qy(f)&&(c[Kqa[e]]=f)}return c};
cF=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(Lqa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Lqa[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Mqa(h.url);g.Qy(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Mqa(a.url),g.Qy(a)&&(b["maxresdefault.jpg"]=a));return b};
Mqa=function(a){return a.startsWith("//")?"https:"+a:a};
g.dF=function(a,b){var c;this.u=a;this.author="";this.wv=null;this.playlistLength=0;this.i=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=zt(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.Z=bF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new $E("UU","PLAYER_"+a)).toString();
break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.aF(a).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.eF=function(a,b){this.i=a;this.Ym=this.author="";this.wv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.jq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.Jl=b.aria_label||void 0;this.author=b.author||"";this.Ym=b.Ym||"";if(a=b.endscreen_autoplay_session_data)this.wv=zt(a,"&");this.xv=b.xv;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.jq=b.jq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=zt(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=bF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Oqa=function(a,b){var c=g.Ja("ytDebugData.callbacks");c||(c={},g.Ia("ytDebugData.callbacks",c,void 0));if(g.O("web_dd_iu")||Nqa.includes(a))c[a]=b};
fF=function(a){this.i=new js(a)};
Pqa=function(){try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.us(bw()+"::yt-player")))return new fF(a)};
Rqa=function(){var a=Qqa;if(void 0===gF)if(a){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}gF=Pqa()}else(a=Pqa())&&a.remove("yt-player-lv"),gF=g.us();return gF};
hF=function(){var a=Rqa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
Sqa=function(a){var b=Rqa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
iF=function(a){return hF()[a]||0};
jF=function(a,b){var c=hF();b!==c[a]&&(0!==b?c[a]=b:delete c[a],Sqa(c))};
Tqa=function(a){var b=hF();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);Sqa(b);JSON.stringify(b);return b};
g.kF=function(a){return g.A(function(b){return b.return(Ew(Uqa(),a))})};
Vqa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Lw(),2);if(3!=d.i)return(b=d.u)?g.x(d,g.kF(b),3):d.return();c=d.u;return d.return(uw(c,["index","media","captions"],{mode:"readwrite",Lc:!0},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");e=[e.objectStore("index").delete(f),e.objectStore("media").delete(f),e.objectStore("captions").delete(f)];return lw.all(e).then(function(){})}))})};
Yqa=function(){var a,b;return g.A(function(c){if(1==c.i)return g.x(c,g.Lw(),2);if(3!=c.i){a=c.u;if(!a)throw g.jw("rvdfd");return g.x(c,g.kF(a),3)}b=c.u;return c.return(uw(b,["index","media"],{mode:"readwrite",Lc:!0},function(d){var e={};return yw(d.objectStore("index"),{},function(f){var h,l=f.getKey().match(/^([\w\-_]+)\|(a|v)$/),m=lw.resolve(void 0);if(l){var n=l[1];l=l[2];e[n]=e[n]||{};e[n][l]=Wqa(null===(h=f.getValue())||void 0===h?void 0:h.fmts)}else m=f.delete().then(function(){});
return lw.all([f.continue(),m]).then(function(p){return g.q(p).next().value})}).then(function(){for(var f={},h=g.q(Object.keys(e)),l=h.next();!l.done;l=h.next()){l=l.value;
var m=e[l].v;f[l]=e[l].a&&m?1:2}var n=Tqa(f);return kka(d.objectStore("media"),{},function(p){var r=p.getKey().match(Xqa);r&&f[r[1]]||d.objectStore("media").delete(p.getKey());return p.continue()}).then(function(){return n})})}))})};
Zqa=function(a,b){var c,d;return g.A(function(e){if(1==e.i)return g.x(e,g.Lw(),2);if(3!=e.i){c=e.u;if(!c)throw g.jw("wct");return g.x(e,g.kF(c),3)}d=e.u;return g.x(e,uw(d,["captions"],{mode:"readwrite",Lc:!0},function(f){var h=[];f=f.objectStore("captions");for(var l=0;l<b.length;l++){var m=vw(f,b[l],a+"|"+b[l].metadata.vss_id);h.push(m)}return lw.all(h)}),0)})};
$qa=function(a){var b,c,d;return g.A(function(e){if(1==e.i)return b=IDBKeyRange.bound(a+"|",a+"~"),g.x(e,g.Lw(),2);if(3!=e.i){c=e.u;if(!c)throw g.jw("gactfv");return g.x(e,g.kF(c),3)}d=e.u;return e.return(bka(d,b))})};
mF=function(a,b,c,d,e,f,h){var l,m,n,p,r,t;return g.A(function(u){switch(u.i){case 1:return l=iF(a),4===l?u.return(4):g.x(u,g.Lw(),2);case 2:m=u.u;if(!m)throw g.jw("wiac");if(!h||void 0===f){u.fb(3);break}return g.x(u,ara(h,f),4);case 4:f=u.u;case 3:return n=c.lastModified||"0",g.x(u,g.kF(m),5);case 5:return p=u.u,ua(u,6),lF++,g.x(u,uw(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Lc:!0},function(v){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,
"0");y=vw(v.objectStore("media"),f,y)}else y=lw.resolve(void 0);var z=bra(a,b.isVideo()),C=bra(a,!b.isVideo()),F={fmts:cra(d),format:c||{}};z=vw(v.objectStore("index"),F,z);var G=-1===d.downloadedEndTime;v=G?v.objectStore("index").get(C):lw.resolve(void 0);return lw.all([v,y,z]).then(function(J){J=g.q(J).next().value;lF--;var U=iF(a);4!==U&&G&&void 0!==J&&Wqa(J.fmts)&&(U=1,jF(a,U));return U})}),8);
case 8:return u.return(u.u);case 6:r=wa(u);lF--;t=iF(a);if(4===t)return u.return(t);jF(a,4);throw r;}})};
dra=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,g.Lw(),2);if(3!=d.i){b=d.u;if(!b)throw g.jw("ri");return g.x(d,g.kF(b),3)}c=d.u;return d.return(uw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return aka(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
fra=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.i)return g.x(m,g.Lw(),2);if(3!=m.i){f=m.u;if(!f)throw g.jw("rc");return g.x(m,g.kF(f),3)}h=m.u;l=uw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){return era(e,n)})):m.return(l)})};
gra=function(a){return g.A(function(b){jF(a,0);return b.return(Vqa(a))})};
Wqa=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
bra=function(a,b){return""+a+"|"+(b?"v":"a")};
cra=function(a){var b={};return At((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
hra=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(Xqa)?(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};
ira=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.i=PD(a.ustreamerConfig))};
g.nF=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.pF=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.oF(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.qF=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.oF=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("")};
mra=function(a,b,c,d){a||(a=b&&jra.hasOwnProperty(b)&&kra.hasOwnProperty(b)?kra[b]+"_"+jra[b]:void 0);b=a;if(!b)return null;a=b.match(lra);if(!a||5!==a.length)return null;if(a=b.match(lra)){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};
ora=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return nra[a];return null};
rF=function(a){return a&&a.baseUrl||""};
sF=function(a){a=g.Dt(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};
pra=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)};
rra=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=qra(d.baseUrl);if(!e)return;d=new g.nF({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.$y(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.yD=b.audioTracks||[];a.zO=b.defaultAudioTrackIndex||0;a.MD=b.translationLanguages?g.pn(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.$y(f.languageName)}}):
[];
a.bp=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
sra=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},Bt(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,Sj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Sj: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,
Sj:0===f?5:7})}}};
tra=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
ura=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)};
tF=function(a){var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.baseUrl&&b.push(c.baseUrl);return b};
Ara=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=Bt(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=vra[c]);(c=a.projectionType)&&(b.projection_type=wra[c]);(c=a.stereoLayout)&&(b.stereo_layout=xra[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=yra[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(uF[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=ora(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=zra[a])&&(b.primaries=a);return g.Si(b)};
vF=function(a){g.Q.call(this);this.i=null;this.B=new pfa;this.i=null;this.K=new Set;this.D=a||""};
yF=function(a,b,c){for(c=wF(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.xF(d,b)))return d;c--}return g.xF(a.levels[0],b)};
Cra=function(a,b,c){c=wF(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.K.has(h)||(d.K.add(h),ofa(d.B,f,{JL:f,XL:e}))}Bra(a)};
Bra=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=Dra(a,b)}};
Dra=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=Era(a.levels[b.JL],b.XL);c.onload=function(){var d=b.JL,e=b.XL;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);Bra(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.ZD()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.zF=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.B=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.C=a[6];this.signature=a[7];this.videoLength=d};
Era=function(a,b){var c=a.D;c=c.replace("$N",a.C);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Ui(c,{sigh:a.signature}));return Ry(c)};
g.xF=function(a,b){b>=a.Tx()&&a.Ar();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.Ar()+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:Era(a,c),column:b,columns:h,row:e,rows:d,jA:a.width*h,iA:a.height*d}};
AF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;vF.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
BF=function(a,b,c){return(a=a.levels[b])?a.Sx(c):-1};
wF=function(a,b){var c=a.C.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.C.set(b,d),d;a.C.set(b,c-1);return c-1};
CF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.zF.call(this,a,b,c,0);this.u=null;this.I=d?2:0};
DF=function(a,b,c,d){AF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].SH(c)};
Fra=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"}};
FF=function(a,b){g.Q.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.UL=this.Gl=this.adQueryId=this.Fl=null;this.LC={start:NaN,end:NaN};this.Jl="";this.Fd=null;this.LE=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.cD=this.Hl=!1;this.DH=null;this.Yi=this.Pe=this.cj=this.OB=!1;this.K=null;this.jM=this.Sg=!1;this.ye=NaN;this.jh=!1;this.IC=0;this.cK=!1;this.Tq={};this.zC=this.cycToken=null;this.author="";this.Ku=0;this.hj=
!1;this.Ju=null;this.DC=[];this.tp=this.KE=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.dc=this.ac="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Zb=0;this.IL=this.Yc=this.B=null;this.LG="";this.Ja=!1;this.Vj=this.Uj=0;this.NC=this.pipable=this.Rk=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.rb=this.isPrivate=this.isListed=this.pH=this.yL=this.mutedAutoplay=this.Vk=!1;this.QB="";this.isLowLatencyLiveStream=
this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.rH=this.mj=this.bf=!1;this.latencyClass="UNKNOWN";this.oH=this.enablePreroll=this.enableServerStitchedDai=this.Sd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Db=0;this.reloadReason="";this.NB=this.CH=this.Bf=!1;this.keywords={};this.wb="";this.Xj=0;this.rr=!1;this.liveChunkReadahead=NaN;this.eh=null;this.Al=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=
!1;this.Ci=[];this.Ba=[];this.racyCheckOk=!1;this.zI={};this.kx=0;this.C=null;this.autonavState=1;this.pJ=null;this.shortDescription="";this.ob=this.vC=!1;this.qr=this.kc=this.startSeconds=0;this.vr=this.DN=this.wr=EF;this.suggestions=null;this.Dl=this.El=void 0;this.Qi=null;this.xC=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Hp=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.uE=void 0;this.Cl=[];this.hlsFormats=this.Wi="";this.Oq=this.lr=this.Rf=this.Fb=
this.bb=this.Zj=this.Dq=null;this.Wh="vvt";this.Zc=!1;this.FC=null;this.KL="";this.pk=NaN;this.Nr=this.Jr=this.lk=this.Ir=this.Hr=this.ej=this.jk=this.Mr=this.nk=this.Kr="";this.gj=null;this.tJ=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.sH=this.XO=NaN;this.Id=this.Wj=this.xd=this.vH=this.tH=!1;this.fk=!0;this.Z={};this.captionTracks=[];this.yD=[];this.zO=0;this.MD=[];this.bp=!1;this.ij=new lA("und",new IC("Default","und",!0));this.PB=0;this.I=null;this.fu=[];this.RF=
!1;this.hd=[];this.yN=!1;this.Gr=this.Nb="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.WO=this.Uq=this.jj=this.jg=this.lF=this.MC=this.KC=null;this.Up=!1;this.xa=null;this.isInlinePlaybackNoAd=this.Tg=this.useCobaltWidevine=this.GJ=this.aq=this.oa=!1;this.ZE=!0;this.TI=this.VI=NaN;this.defraggedFromSubfragments=this.Mk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Lu=this.EC=this.Ae=!1;this.interstitials=[];this.D=this.qH=!1;this.Wa=
"";this.allowImaMonetization=!1;this.Bc=this.Yj=this.FH="";this.La=this.uH=!1;this.ze=0;this.EH=this.hk="";this.VB=this.UB=this.fH=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.gk=!1;this.Oi=this.Of=!0;this.errorDetail=this.userGenderAge="";this.BC=this.CC=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.xi=this.errorReason=
this.errorCode=null;this.Dp=this.ep="";this.eq=!1;this.zl=[];this.xL=this.ZI=this.XI=this.wg=this.re=0;this.fetchType=null;this.DI=!0;this.aL=void 0;this.gN=-1;this.rh=this.Gc=!1;this.fc=null;this.ub="";this.Zg=!1;this.watchUrl=null;this.N("web_player_ux_module_wait")&&this.u.jb&&this.Ba.push("ux");this.Gc=this.N("web_new_autonav_countdown");this.rh=this.N("web_new_big_thumbnail_endscreen");Gra(this,b)};
g.IF=function(a,b,c,d){b&&b.cpn&&g.cy(new g.aw("CPN provided in VideoData update",{zda:b.cpn,Sf:a.clientPlaybackNonce,lda:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.xi=null);c?(eE(b),Gra(a,b),GF(a)&&HF(a)):(b=b||{},Hra(a,b),Ira(a,b),Jra(a,b),a.ea("dataupdated"))};
Jra=function(a,b){a.fflags=cE(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=Ry(c));a.Hl=$D(a.Hl,b.iv_ads_only);a.cD=$D(a.cD,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.ZX=c;a.isPharma=$D(a.isPharma,b.is_pharma);a.author=cE(a.author,b.author);a.ac=qra(b.ttsurl)||a.ac;a.hj=$D(a.hj,b.cc_asr);a.dc=cE(a.dc,b.channel_path);a.channelBanner=cE(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.Qh=cE(a.Qh,c);a.videoCountText=cE(a.videoCountText,b.video_count_text);a.autonavState=
aE(a.autonavState,b.autonav_state,Kra);a.clientPlaybackNonce=cE(a.clientPlaybackNonce,b.cpn);a.subscribed=$D(a.subscribed,b.subscribed);a.rawViewCount=bE(a.rawViewCount,b.view_count);a.shortViewCount=cE(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=cE(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=cE(a.lengthText||"",b.lengthText);a.jq=cE(a.jq||"",b.jq);a.Ym=cE(a.Ym||"",b.Ym);a.title=cE(a.title,b.title);a.subtitle=cE(a.subtitle,b.subtitle);a.expandedTitle=cE(a.expandedTitle,
b.expanded_title);a.expandedSubtitle=cE(a.expandedSubtitle,b.expanded_subtitle);a.Jl=cE(a.Jl,b.aria_label);a.ypcPreview=cE(a.ypcPreview,b.ypc_preview);a.HC=cE(a.HC,b.ypc_origin);a.Zc=$D(a.Zc,b.ypc_is_premiere_trailer);a.hk=cE(a.hk,b.ypc_clickwrap_message);a.paygated=$D(a.paygated,b.paygated);a.tJ=$D(a.tJ,b.requires_purchase);a.showShareButton=!$D(!a.showShareButton,b.ss);a.Of=$D(a.Of,b.showwatchlater);a.Oi=$D(a.Oi,b.shownotifybutton);a.gk=$D(a.gk,b.copy_share);if(c=b.keywords)a.keywords=Lra(c.split(","));
if(c=b.rvs)a.suggestions=Ct(c).map(function(d){return d.playlist||d.list||d.api?new g.dF(a.u,d):new g.eF(a.u,d)});
a.contentCheckOk=$D(a.contentCheckOk,b.cco);a.racyCheckOk=$D(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=$D(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=cE(a.oauthToken,b.oauth_token);a.wb=cE(a.wb,b.kpt);a.visitorData=cE(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=zt(c,"&");a.hq=cE(a.hq,b.endscreen_ad_tracking_data);a.wL=$D(a.wL,b.wait_for_vast_info_cards_xml);a.wC=$D(a.wC,b.suppress_creator_endscreen);a.wH=$D(a.wH,b.is_trueview_action);a.KK=cE(a.KK,b.tracking_list);
a.ep=cE(a.ep,b.clip);a.Dp=cE(a.Dp,b.clipt);Mra(a,b)};
Gra=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.xi=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||Px());a.rb=$D(a.u.rb,b.livemonitor);Hra(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),v=u.next();!v.done;v=u.next()){var y=v.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.Hl=!0);y.allowInPlaceSwitch&&(a.cD=!0);var z=y.loadPolicy;z&&(a.annotationsLoadPolicy=Nra[z]);var C=y.invideoUrl;C&&(a.Va=Ry(C));a.OB=!0;break}}var F=a.playerResponse.attestation;F&&pra(a,F);var G=a.playerResponse.cotn;G&&(a.cotn=G);var J=a.playerResponse.heartbeatParams;if(J){var U,K=J.heartbeatToken;K&&(a.drmSessionId=J.drmSessionId||"",a.heartbeatToken=K,a.XO=Number(J.intervalMilliseconds),a.sH=
Number(J.maxRetries),a.tH=!!J.softFailOnError,a.vH=!!J.useInnertubeHeartbeatsForDrm,a.cj=!0);a.heartbeatServerData=J.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.cj=!0);a.jh=!(null===(U=J.heartbeatAttestationConfig)||void 0===U||!U.requiresAttestation)}var X=a.playerResponse.messages;X&&tra(a,X);var la=a.playerResponse.multicamera;if(la){var Ea=la.playerLegacyMulticameraRenderer;if(Ea){var qb=Ea.metadataList;qb&&(a.EH=qb,a.hd=Ct(qb))}}var ib=a.playerResponse.overlay;if(ib){var Ab=
ib.playerControlsOverlayRenderer;if(Ab){var lc=Ab.controlBgHtml;null!=lc?(a.Wa=lc,a.D=!0):(a.Wa="",a.D=!1);if(Ab.mutedAutoplay){var Sa=Ab.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Sa&&Sa.endScreen){var cc=Sa.endScreen.playerMutedAutoplayEndScreenRenderer;cc&&cc.text&&(a.FH=g.$y(cc.text))}}else a.mutedAutoplay=!1}}var Kb=a.playerResponse.playabilityStatus;if(Kb){var jh=Kb.backgroundability;jh&&jh.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Be=Kb.offlineability;Be&&
Be.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var kh=Kb.contextParams;kh&&(a.contextParams=kh);var pj=Kb.pictureInPicture;pj&&pj.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);Kb.playableInEmbed&&(a.allowEmbed=!0);var Uk=Kb.ypcClickwrap;if(Uk){var qj=Uk.playerLegacyDesktopYpcClickwrapRenderer,Je=Uk.ypcRentalActivationRenderer;if(qj)a.hk=qj.durationMessage||"",a.Yi=!0;else if(Je){var lh=Je.durationMessage;a.hk=lh?g.$y(lh):"";a.Yi=!0}}var Rc=Kb.errorScreen;if(Rc){if(Rc.playerLegacyDesktopYpcTrailerRenderer){var od=
Rc.playerLegacyDesktopYpcTrailerRenderer;a.Nr=od.trailerVideoId||"";var Fg=Rc.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var zf=Fg&&Fg.ypcTrailerRenderer}else if(Rc.playerLegacyDesktopYpcOfferRenderer)od=Rc.playerLegacyDesktopYpcOfferRenderer;else if(Rc.ypcTrailerRenderer){zf=Rc.ypcTrailerRenderer;var rj=zf.fullVideoMessage;a.jk=rj?g.$y(rj):""}od&&(a.lk=od.itemTitle||"",od.itemUrl&&(a.Jr=od.itemUrl),od.itemBuyUrl&&(a.Hr=od.itemBuyUrl),a.Ir=od.itemThumbnail||"",a.Mr=od.offerHeadline||"",a.nk=
od.offerDescription||"",a.ej=od.offerId||"",a.Kr=od.offerButtonText||"",a.FC=od.offerButtonFormattedText||null,a.pk=od.overlayDurationMsec||NaN,a.jk=od.fullVideoMessage||"",a.Pe=!0);if(zf){var sj=zf.unserializedPlayerResponse;if(sj)a.gj={raw_player_response:sj};else{var Tf=zf.playerVars;a.gj=Tf?Bt(Tf):null}a.Pe=!0}}}var Hd=a.playerResponse.playbackTracking;if(Hd){var Op=b,Pp=rF(Hd.googleRemarketingUrl);Pp&&(a.googleRemarketingUrl=Pp);var Vk=rF(Hd.youtubeRemarketingUrl);Vk&&(a.youtubeRemarketingUrl=
Vk);var Wk=rF(Hd.ptrackingUrl);if(Wk){var ni=sF(Wk),tj=ni.oid;tj&&(a.xI=tj);var Xk=ni.pltype;Xk&&(a.yI=Xk);var Yk=ni.ptchn;Yk&&(a.vI=Yk);var mh=ni.ptk;mh&&(a.Sq=encodeURIComponent(mh));var Um=ni.m;Um&&(a.fq=Um)}var Qd=rF(Hd.ppvRemarketingUrl);Qd&&(a.ppvRemarketingUrl=Qd);var Gc=rF(Hd.qoeUrl);if(Gc){for(var pd=g.Dt(Gc),dc=g.q(Object.keys(pd)),nh=dc.next();!nh.done;nh=dc.next()){var $H=nh.value,Fz=pd[$H];pd[$H]=Array.isArray(Fz)?Fz.join(","):Fz}a.pY=pd;var Rt=pd.cat;Rt&&(a.Yj=Rt);var Gz=pd.live;Gz&&
(a.QB=Gz);var Hz=pd.drm_product;Hz&&(a.LE=Hz)}var Zk=rF(Hd.remarketingUrl);if(Zk){a.remarketingUrl=Zk;var Qp=sF(Zk);Qp.foc_id&&(a.S.focEnabled=!0);var Rp=Qp.data;Rp&&(a.S.rmktEnabled=!0,Rp.engaged&&(a.S.engaged="1"));a.S.baseUrl=Ki(Zk)+Gi(g.Ii(5,Zk))}var mc=rF(Hd.videostatsPlaybackUrl);if(mc){var ec=sF(mc);a.RI=ec;var Sp=ec.adformat;if(Sp&&(Op.adformat=Sp,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var Iz=a.V(),Jz=mra(Sp,a.Gr,Iz.i,Iz.B);Jz&&(a.adFormat=Jz)}var Kz=ec.aqi;Kz&&
(Op.ad_query_id=Kz);var Lz=ec.autoplay;Lz&&(a.Vk="1"==Lz);var St=ec.autonav;St&&(a.Rk="1"==St);var Vm=ec.delay;Vm&&(a.Zb=Hg(Vm));var Mz=ec.ei;Mz&&(a.eventId=Mz);"adunit"===ec.el&&(a.Vk=!0);var Nz=ec.feature;Nz&&(a.vL=Nz);var Oz=ec.list;Oz&&(a.playlistId=Oz);var Tt=ec.of;Tt&&(a.xX=Tt);var Ut=ec.osid;Ut&&(a.osid=Ut);var $k=ec.referrer;$k&&(a.referrer=$k);var Vt=ec.sdetail;Vt&&(a.qK=Vt);var Pz=ec.sourceid;Pz&&(a.BZ=Pz);var Qz=ec.ssrt;Qz&&(a.Mu="1"==Qz);var Wt=ec.subscribed;Wt&&(a.subscribed="1"==Wt,
a.S.subscribed=Wt);var Rz=ec.uga;Rz&&(a.userGenderAge=Rz);var Af=ec.upt;Af&&(a.MX=Af);var Xt=ec.vm;Xt&&(a.videoMetadata=Xt)}var aI=rF(Hd.videostatsWatchtimeUrl);if(aI){var Yt=sF(aI).ald;Yt&&(a.qT=Yt)}if(Hd.promotedPlaybackTracking){var Ke=Hd.promotedPlaybackTracking;Ke.startUrls&&(a.fh=Ke.startUrls);Ke.firstQuartileUrls&&(a.gr=Ke.firstQuartileUrls);Ke.secondQuartileUrls&&(a.ir=Ke.secondQuartileUrls);Ke.thirdQuartileUrls&&(a.jr=Ke.thirdQuartileUrls);Ke.completeUrls&&(a.er=Ke.completeUrls);Ke.engagedViewUrls&&
(1<Ke.engagedViewUrls.length&&g.cy(new g.aw("There are more than one engaged_view_urls.")),a.Gb=Ke.engagedViewUrls[0])}}a:{var Rd=a.playerResponse.adPlacements;if(Rd)for(var Sz=g.q(Rd),Zt=Sz.next();!Zt.done;Zt=Sz.next()){var Wm=Zt.value;if(Wm.adPlacementRenderer&&Wm.adPlacementRenderer.renderer&&Wm.adPlacementRenderer.renderer.videoAdTrackingRenderer){var Tz=Wm.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}Tz=null}var Xm=Tz;Hd&&Hd.promotedPlaybackTracking&&Xm&&g.cy(new g.aw("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
if(Xm)if(Xm.pings){var df=Xm.pings;df.startPings&&(a.fh=tF(df.startPings));df.firstQuartilePings&&(a.gr=tF(df.firstQuartilePings));df.secondQuartilePings&&(a.ir=tF(df.secondQuartilePings));df.thirdQuartilePings&&(a.jr=tF(df.thirdQuartilePings));df.completePings&&(a.er=tF(df.completePings));df.progressPings&&(1<df.progressPings.length&&g.cy(new g.aw("There is more than one Progress Ping in VideoAdTracking.")),a.Gb=df.progressPings[0].baseUrl)}else g.cy(new g.aw("VideoAdTrackingRenderer without pings"));
var Uz=a.playerResponse.playerAds;if(Uz)for(var bI=b,Vz=g.q(Uz),$t=Vz.next();!$t.done;$t=Vz.next()){var au=$t.value;if(au){var uj=au.playerLegacyDesktopWatchAdsRenderer;if(uj){var al=uj.playerAdParams;if(al){"1"==al.autoplay&&(a.Vk=!0);a.Gl=al.encodedAdSafetyReason||null;void 0!==al.showContentThumbnail&&(a.fk=!!al.showContentThumbnail);bI.enabled_engage_types=al.enabledEngageTypes;break}}}}var Sd=a.playerResponse.playerConfig;if(Sd){var bl=Sd.manifestlessWindowedLiveConfig;if(bl){var Wz=Number(bl.minDvrSequence),
Xz=Number(bl.maxDvrSequence),Yz=Number(bl.minDvrMediaTimeMs),Zz=Number(bl.maxDvrMediaTimeMs),$z=Number(bl.startWalltimeMs);Wz&&(a.re=Wz);Yz&&(a.ZI=Yz/1E3);Xz&&(a.wg=Xz);Zz&&(a.XI=Zz/1E3);$z&&(a.xL=$z/1E3)}var Ym=Sd.daiConfig;if(Ym){if(Ym.enableDai){a.Sd=!0;var bu=Ym.enableServerStitchedDai;bu&&(a.enableServerStitchedDai=bu);var Tp=Ym.enablePreroll;Tp&&(a.enablePreroll=Tp)}"DAI_TYPE_SS_DISABLED"===Ym.daiType&&(a.oH=!0)}var Up=Sd.audioConfig;if(Up){var aA=Up.loudnessDb;null!=aA&&(a.ye=aA);Up.audioMuted&&
(a.Sg=!0);Up.muteOnStart&&(a.jM=!0)}var cu=Sd.playbackEndConfig;if(cu){var bA=cu.endSeconds;bA&&a.mutedAutoplay&&(a.endSeconds=bA)}var cI=Sd.fairPlayConfig;if(cI){var Hfa=cI.certificate;Hfa&&(a.Yc=PD(Hfa));var Ifa=Number(cI.keyRotationPeriodMs);0<Ifa&&(a.ZW=Ifa);var Jfa=Number(cI.keyPrefetchMarginMs);0<Jfa&&(a.BT=Jfa)}var du=Sd.playbackStartConfig;if(du){a.VB=Number(du.startSeconds);var Kfa=du.liveUtcStartSeconds,iV=!1;a.N("html5_start_seconds_priority")&&(iV=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);
Kfa&&!iV&&(a.liveUtcStartSeconds=Number(Kfa));var jV=du.startPosition;if(jV){var Lfa=jV.utcTimeMillis;Lfa&&!iV&&(a.liveUtcStartSeconds=.001*Number(Lfa));var Mfa=jV.streamTimeMillis;Mfa&&(a.qr=.001*Number(Mfa))}a.progressBarStartPosition=du.progressBarStartPosition;a.progressBarEndPosition=du.progressBarEndPosition}else{var kV=Sd.skippableSegmentsConfig;if(kV){var Nfa=kV.introSkipDurationMs;Nfa&&(a.fH=Number(Nfa)/1E3);var Ofa=kV.outroSkipDurationMs;Ofa&&(a.UB=Number(Ofa)/1E3)}}var lV=Sd.skippableIntroConfig;
if(lV){var Pfa=Number(lV.startMs),Qfa=Number(lV.endMs);isNaN(Pfa)||isNaN(Qfa)||(a.VI=Pfa,a.TI=Qfa)}var Rfa=Sd.streamSelectionConfig;Rfa&&(a.Vj=Number(Rfa.maxBitrate));var Sfa=Sd.vrConfig;Sfa&&(a.aq="1"==Sfa.partialSpherical);var cA=Sd.webDrmConfig;if(cA){cA.skipWidevine&&(a.GJ=!0);var Tfa=cA.widevineServiceCert;Tfa&&(a.IL=PD(Tfa));cA.useCobaltWidevine&&(a.useCobaltWidevine=!0);cA.startWithNoQualityConstraint&&(a.Tg=!0)}var Ufa=Sd.mediaCommonConfig;if(Ufa){var dI=Ufa.dynamicReadaheadConfig;dI&&(a.maxReadAheadMediaTimeMs=
dI.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=dI.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=dI.readAheadGrowthRateMs||NaN)}var Vfa=Sd.inlinePlaybackConfig;Vfa&&(a.ZE=!!Vfa.showAudioControls)}var cl=a.playerResponse.streamingData;if(cl){var Wfa=cl.adaptiveFormats;if(Wfa){for(var Xfa=[],Yfa=g.q(Wfa),oi=Yfa.next();!oi.done;oi=Yfa.next()){var eI=oi.value;Xfa.push(Ara(eI));var Zfa=eI.loudnessDb;eI.itag&&null!=Zfa&&(a.Tq[eI.itag.toString()]=Zfa)}a.adaptiveFormats=Xfa.join(",")}var mV=
cl.formats;if(mV){var dA=[],$fa=g.q(mV);for(oi=$fa.next();!oi.done;oi=$fa.next()){var nV=oi.value;dA.push(nV.itag+"/"+nV.width+"x"+nV.height)}a.LG=dA.join(",");dA=[];var aga=g.q(mV);for(oi=aga.next();!oi.done;oi=aga.next()){var eu=oi.value,eA={itag:eu.itag,type:eu.mimeType,quality:eu.quality},cga=eu.url;cga&&(eA.url=cga);var dga=eu.cipher||eu.signatureCipher;if(dga){var oV=Bt(dga);eA.sp=oV.sp;eA.s=oV.s;eA.url=oV.url}dA.push(g.Si(eA))}a.Wi=dA.join(",")}var pV=cl.hlsFormats;if(pV){var ega=Sd||null,
fI={};if(ega){var qV=ega.audioPairingConfig;if(qV&&qV.pairs)for(var fga=g.q(qV.pairs),rV=fga.next();!rV.done;rV=fga.next()){var gga=rV.value,sV=gga.videoItag;fI[sV]||(fI[sV]=[]);fI[sV].push(gga.audioItag)}}for(var hga={},iga=g.q(pV),Vp=iga.next();!Vp.done;Vp=iga.next()){var jga=Vp.value;hga[jga.itag]=jga.bitrate}var kga=[],lga=g.q(pV);for(Vp=lga.next();!Vp.done;Vp=lga.next()){var Uf=Vp.value,vj={itag:Uf.itag,type:Uf.mimeType,url:Uf.url,bitrate:Uf.bitrate,width:Uf.width,height:Uf.height,fps:Uf.fps},
gI=Uf.audioTrack;if(gI){var mga=gI.displayName;mga&&(vj.name=mga,vj.audio_track_id=gI.id,gI.audioIsDefault&&(vj.is_default="1"))}if(Uf.drmFamilies){for(var nga=[],oga=g.q(Uf.drmFamilies),tV=oga.next();!tV.done;tV=oga.next())nga.push(uF[tV.value]);vj.drm_families=nga.join(",")}var hI=fI[Uf.itag];if(hI&&hI.length){vj.audio_itag=hI.join(",");var pga=hga[hI[0]];pga&&(vj.bitrate+=pga)}var qga=ora(Uf);qga&&(vj.eotf=qga);Uf.audioChannels&&(vj.audio_channels=Uf.audioChannels);kga.push(g.Si(vj))}a.hlsFormats=
kga.join(",")}var uV=cl.licenseInfos;if(uV&&0<uV.length){for(var rga={},sga=g.q(uV),vV=sga.next();!vV.done;vV=sga.next()){var tga=vV.value,uga=tga.drmFamily,vga=tga.url;uga&&vga&&(rga[uF[uga]]=vga)}a.Fd=rga}var wga=cl.drmParams;wga&&(a.drmParams=wga);var xga=cl.dashManifestUrl;xga&&(a.jb=g.Ui(xga,{cpn:a.clientPlaybackNonce}));var yga=cl.hlsManifestUrl;yga&&(a.hlsvp=yga);var zga=cl.probeUrl;zga&&(a.probeUrl=Ry(g.Ui(zga,{cpn:a.clientPlaybackNonce})))}var Aga=a.playerResponse.trackingParams;Aga&&(a.Za=
Aga);var Ac=a.playerResponse.videoDetails;if(Ac){var wj=b,wV=Ac.videoId;wV&&(a.videoId=wV,wj.video_id||(wj.video_id=wV));var Bga=Ac.channelId;Bga&&(a.S.uid=Bga.substr(2));var xV=Ac.title;xV&&(a.title=xV,wj.title||(wj.title=xV));var yV=Ac.lengthSeconds;yV&&(a.lengthSeconds=Number(yV),wj.length_seconds||(wj.length_seconds=yV));var Cga=Ac.keywords;Cga&&(a.keywords=Lra(Cga));var zV=Ac.channelId;zV&&(a.bj=zV,wj.ucid||(wj.ucid=zV));var Dga=Ac.viewCount;Dga&&(a.rawViewCount=Number(Dga));var AV=Ac.author;
AV&&(a.author=AV,wj.author||(wj.author=AV));var Ega=Ac.shortDescription;Ega&&(a.shortDescription=Ega);var Fga=Ac.isCrawlable;Fga&&(a.isListed=Fga);var Gga=Ac.musicVideoType;Gga&&(a.musicVideoType=Gga);var BV=Ac.isLive;null!=BV&&(a.isLivePlayback=BV);if(BV||Ac.isUpcoming)a.isPremiere=!Ac.isLiveContent;var Hga=Ac.thumbnail;Hga&&(a.Z=cF(Hga));var Iga=Sd||null,CV=b;Ac.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Ac.isUpcoming&&(a.isUpcoming=!0);if(Ac.isPostLiveDvr)a.bf=!0;else{var DV=!1;if(a.rb)a.allowLiveDvr=
JF(!0),a.isLivePlayback=!0;else if(Ac.isLive){CV.livestream="1";a.allowLiveDvr=JF(!!Ac.isLiveDvrEnabled);a.Ka=27;Ac.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Jga=Ac.latencyClass;Jga&&(a.latencyClass=Ora[Jga]||"UNKNOWN");var Kga=Ac.liveChunkReadahead;Kga&&(a.liveChunkReadahead=Kga);var fA=Iga&&Iga.livePlayerConfig;if(fA){fA.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);fA.hasSubfragmentedWebm&&(a.Mk=!0);fA.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Lga=fA.liveExperimentalContentId;
Lga&&(a.liveExperimentalContentId=Number(Lga))}DV=!0}else Ac.isUpcoming&&(DV=!0);DV&&(a.isLivePlayback=!0,CV.adformat&&"8"!==CV.adformat.split("_")[1]||a.Ba.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.cj=!0))}var Mga=Ac.isPrivate;Mga&&(a.isPrivate=$D(a.isPrivate,Mga))}if(Kb){var Nga=Ac||null,Oga=!1,fu=Kb.errorScreen;Oga=fu&&(fu.playerLegacyDesktopYpcOfferRenderer||fu.playerLegacyDesktopYpcTrailerRenderer||fu.ypcTrailerRenderer)?!0:Nga&&Nga.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
"FULLSCREEN_ONLY"].includes(Kb.status);if(!Oga){a.errorCode="150";var iI=fu&&fu.playerErrorMessageRenderer;if(iI){a.playerErrorMessageRenderer=iI;var Pga=iI.reason;Pga&&(a.errorReason=g.$y(Pga));var FV=iI.subreason;FV&&(a.xi=g.$y(FV),a.yq=FV)}else a.errorReason=Kb.reason||null;var GV=Kb.status;if("LOGIN_REQUIRED"===GV)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===GV)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===GV){var Qga=Kb.errorScreen,Rga=Qga&&Qga.playerKavRenderer;a.errorDetail=Rga&&
Rga.kavUrl?"4":"3"}else a.errorDetail=Kb.isBlockedInRestrictedMode?"5":"0"}}var Sga=a.playerResponse.interstitialPods;Sga&&sra(a,Sga);a.Va&&a.eventId&&(a.Va=Ft(a.Va,{ei:a.eventId}));var HV=a.playerResponse.captions;HV&&HV.playerCaptionsTracklistRenderer&&rra(a,HV.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.VB=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.OI=a.accountLinkingConfig.alsParam);a.N("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ura(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Ira(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Tga=b.hlsdvr;null!=Tga&&(a.allowLiveDvr=JF("1"==Tga));a.adQueryId=b.ad_query_id||null;
a.Gl||(a.Gl=b.encoded_ad_safety_reason||null);a.UL=b.agcid||null;a.KC=b.ad_id||null;a.MC=b.ad_sys||null;a.lF=b.encoded_ad_playback_context||null;a.Sg=$D(a.Sg,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=$D(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=bE(a.endSeconds,a.UB||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=bE(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.Za=cE(a.Za,b.itct);a.pH=
$D(a.pH,b.noiba);a.rH=$D(a.rH,b.is_live_destination);a.isLivePlayback=$D(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=$D(a.isUpcoming,b.isUpcoming));a.bf=$D(a.bf,b.post_live_playback);a.isMdxPlayback=$D(a.isMdxPlayback,b.mdx);var jI=b.mdx_control_mode;jI&&(a.mdxControlMode="number"===typeof jI?jI:Hg(jI));a.isInlinePlaybackNoAd=$D(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Db=bE(a.Db,b.reload_count);a.reloadReason=
cE(a.reloadReason,b.reload_reason);a.fk=$D(a.fk,b.show_content_thumbnail);a.NB=$D(a.NB,b.utpsa);a.xC=$D(a.xC,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.zC=b.tkn||null;var Uga=bF(b);0<Object.keys(Uga).length&&(a.Z=Uga);a.Sa=cE(a.Sa,b.vvt);a.mdxEnvironment=cE(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.rY=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=cE(a.playlistId,b.list);
b.index&&(a.playlistIndex=void 0===a.playlistIndex?bE(0,b.index):bE(a.playlistIndex,b.index));a.JI=b.pyv_view_beacon_url;a.SI=b.pyv_quartile25_beacon_url;a.UI=b.pyv_quartile50_beacon_url;a.WI=b.pyv_quartile75_beacon_url;a.QI=b.pyv_quartile100_beacon_url;var Vga=b.remarketing_url;Vga&&(a.remarketingUrl=Vga);var Wga=b.ppv_remarketing_url;Wga&&(a.ppvRemarketingUrl=Wga);var Xga=b.session_data;!a.YI&&Xga&&(a.YI=zt(Xga,"&").feature);a.isFling=1==bE(a.isFling?1:0,b.is_fling);a.vnd=bE(a.vnd,b.vnd);a.Vg=cE(a.Vg,
b.force_ads_url);a.cg=cE(a.cg,b.ctrl);a.Gf=cE(a.Gf,b.ytr);a.Ol=b.ytrcc;a.aJ=b.ytrexp;a.tC=b.ytrext;a.Nb=cE(a.Nb,b.adformat);a.Gr=cE(a.Gr,b.attrib);a.slotPosition=bE(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Mu=$D(a.Mu,b.ssrt);a.videoId=eE(b)||a.videoId;a.X=cE(a.X,b.vss_credentials_token);a.Wh=cE(a.Wh,b.vss_credentials_token_type);a.Ae=$D(a.Ae,b.audio_only);a.EC=$D(a.EC,b.aac_high);a.Lu=$D(a.Lu,b.prefer_low_quality_audio);a.Yj=cE(a.Yj,b.qoe_cat);a.eq=$D(a.eq,b.download_media);a.La=$D(a.La,
b.prefer_gapless);a:{var IV=a.playerResponse;if(IV&&IV.adPlacements)for(var Yga=g.q(IV.adPlacements),JV=Yga.next();!JV.done;JV=Yga.next()){var kI=JV.value.adPlacementRenderer;if(null!=kI&&"AD_PLACEMENT_KIND_START"==(kI.config&&kI.config.adPlacementConfig&&kI.config.adPlacementConfig.kind)){var Zga=!0;break a}}Zga=!1}Zga&&(a.adModule=!0,a.Ba.push("ad"));var $ga=b.adaptive_fmts;$ga&&(a.adaptiveFormats=$ga);var aha=b.allow_embed;aha&&(a.allowEmbed="1"==aha);var bha=b.backgroundable;bha&&(a.backgroundable=
"1"==bha);var cha=b.autonav;cha&&(a.Rk="1"==cha);var dha=b.autoplay;dha&&(a.Vk="1"==dha);var eha=b.iv_load_policy;eha&&(a.annotationsLoadPolicy=aE(a.annotationsLoadPolicy,eha,wE));var fha=b.cc_lang_pref;fha&&(a.captionsLanguagePreference=cE(fha,a.captionsLanguagePreference));var gha=b.cc_load_policy;gha&&(a.Ju=aE(a.Ju,gha,wE));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.UO=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.DC=null!==(e=b.viewer_selected_caption_langs)&&
void 0!==e?e:[];var hha=b.cached_load;hha&&(a.tp=$D(a.tp,hha));"0"==b.dash&&(a.KE=!0);var iha=b.dashmpd;iha&&(a.jb=g.Ui(iha,{cpn:a.clientPlaybackNonce}));var jha=b.delay;jha&&(a.Zb=Hg(jha));var kha=a.UB||b.end;void 0!=kha&&(a.clipEnd=bE(a.clipEnd,kha));var lha=b.fmt_list;lha&&(a.LG=lha);b.heartbeat_preroll&&a.Ba.push("heartbeat");a.Uj=-Math.floor(10*Math.random());a.Al=-Math.floor(40*Math.random());var mha=b.is_listed;mha&&(a.isListed=$D(a.isListed,mha));var nha=b.is_private;nha&&(a.isPrivate=$D(a.isPrivate,
nha));var oha=b.is_dni;oha&&(a.D=$D(a.D,oha),a.u.C&&"1"==a.u.controlsType&&(a.u.controlsType="3",a.u.C=!1,a.u.Zc=!1));var pha=b.dni_color;pha&&(a.Wa=cE(a.Wa,pha));var qha=b.pipable;qha&&(a.pipable=$D(a.pipable,qha));a.NC=a.pipable&&a.u.Gl;a.vC=a.NC&&(!a.u.showMiniplayerButton||a.N("web_player_pip"));var rha=b.paid_content_overlay_duration_ms;rha&&(a.paidContentOverlayDurationMs=Hg(rha));var sha=b.paid_content_overlay_text;sha&&(a.paidContentOverlayText=sha);var tha=b.url_encoded_fmt_stream_map;tha&&
(a.Wi=tha);var uha=b.hls_formats;uha&&(a.hlsFormats=uha);var vha=b.hlsvp;vha&&(a.hlsvp=vha);var lI=b.length_seconds;lI&&(a.lengthSeconds="string"===typeof lI?Hg(lI):lI);var mI=b.live_start_walltime;mI&&(a.RB="number"===typeof mI?mI:Hg(mI));var nI=b.live_manifest_duration;nI&&(a.eh="number"===typeof nI?nI:Hg(nI));var wha=b.player_params;wha&&(a.playerParams=wha);var xha=b.partnerid;xha&&(a.Ka=bE(a.Ka,xha));var yha=b.probe_url;yha&&(a.probeUrl=Ry(g.Ui(yha,{cpn:a.clientPlaybackNonce})));var KV=b.pyv_billable_url;
KV&&tma(KV)&&(a.Gb=KV);var LV=b.pyv_conv_url;LV&&tma(LV)&&(a.NI=LV);Mra(a,b);0<a.startSeconds||(a.startSeconds=bE(a.startSeconds,a.VB||a.fH||b.start||b.startSeconds),a.kc=a.startSeconds);if(a.N("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var zha=b.live_utc_start;if(null!=zha)a.liveUtcStartSeconds=Number(zha);else{var MV=a.startSeconds;MV&&isFinite(MV)&&1E9<MV&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Aha=
b.utc_start_millis;Aha&&(a.liveUtcStartSeconds=.001*Number(Aha))}}else{var Bha=b.live_utc_start;null!=Bha&&(a.liveUtcStartSeconds=Number(Bha));var Cha=b.utc_start_millis;Cha&&(a.liveUtcStartSeconds=.001*Number(Cha))}var Dha=b.stream_time_start_millis;Dha&&(a.qr=.001*Number(Dha));var Eha=a.fH||b.start;void 0==Eha||"1"==b.resume||a.isLivePlayback||(a.clipStart=bE(a.clipStart,Eha));var Fha=b.url_encoded_third_party_media;Fha&&(a.Qi=Ct(Fha));var NV=b.ypc_offer_button_formatted_text;if(NV){var Gha=JSON.parse(NV);
a.FC=null!=Gha?Gha:null;a.KL=NV}var Hha=b.ypc_offer_button_text;Hha&&(a.Kr=Hha);var Iha=b.ypc_offer_description;Iha&&(a.nk=Iha);var Jha=b.ypc_offer_headline;Jha&&(a.Mr=Jha);var Kha=b.ypc_full_video_message;Kha&&(a.jk=Kha);var Lha=b.ypc_offer_id;Lha&&(a.ej=Lha);var Mha=b.ypc_buy_url;Mha&&(a.Hr=Mha);var Nha=b.ypc_item_thumbnail;Nha&&(a.Ir=Nha);var Oha=b.ypc_item_title;Oha&&(a.lk=Oha);var Pha=b.ypc_item_url;Pha&&(a.Jr=Pha);var Qha=b.ypc_vid;Qha&&(a.Nr=Qha);b.ypc_overlay_timeout&&(a.pk=Number(b.ypc_overlay_timeout));
var Rha=b.ypc_trailer_player_vars;Rha&&(a.gj=Bt(Rha));var Sha=b.ypc_original_itct;Sha&&(a.tY=Sha);a.bj=cE(a.bj,b.ucid);b.baseUrl&&(a.S.baseUrl=b.baseUrl);b.uid&&(a.S.uid=b.uid);b.oeid&&(a.S.oeid=b.oeid);b.ieid&&(a.S.ieid=b.ieid);b.ppe&&(a.S.ppe=b.ppe);b.engaged&&(a.S.engaged=b.engaged);b.subscribed&&(a.S.subscribed=b.subscribed);a.S.focEnabled=$D(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=$D(a.S.rmktEnabled,b.rmktEnabled);a.lr=b.storyboard_spec||null;a.Oq=b.live_storyboard_spec||null;a.DH=b.iv_endscreen_url||
null;a.OB=$D(a.OB,b.iv3_module);a.cj=$D(a.cj,b.ypc_license_checker_module);a.Pe=$D(a.Pe,b.ypc_module);a.Yi=$D(a.Yi,b.ypc_clickwrap_module);a.Pe&&a.Ba.push("ypc");a.Yi&&a.Ba.push("ypc_clickwrap");a.zI={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};Jra(a,b);var Tha=b.cotn;Tha&&(a.cotn=Tha);if(Pra(a))KF(a)&&(a.isLivePlayback&&a.jb&&(a.xd=!0),a.Yc&&(a.Wj=!0));else if(Qra(a))a.xd=!0;else{var Xha=Rra(a,a.adaptiveFormats);if(Xha){LF(a,Xha);var Yha=!0}else Yha=!1;Yha?a.N("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&MF(a)):a.jb&&(a.xd=
!0)}var PV=b.adpings;PV&&(a.Fl=PV?Bt(PV):null);var Zha=b.feature;Zha&&(a.vL=Zha);var $ha=b.referrer;$ha&&(a.referrer=$ha);a.clientScreenNonce=cE(a.clientScreenNonce,b.csn);a.kx=bE(a.kx,b.root_ve_type);a.Xj=bE(a.Xj,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.rr=$D(a.rr,b.upg_content_filter_mode);var aia=b.unplugged_location_info;aia&&(a.xa=aia);var bia=b.unplugged_partner_opt_out;bia&&(a.JC=cE("",bia));a.Up=$D(a.Up,b.disable_watch_next);a.lj=cE(a.lj,b.internal_ip_override);
a.qH=!!b.is_yto_interstitial;(a.interstitials.length||a.qH)&&a.Ba.push("yto");var cia=b.Ci;cia&&(a.Ci=cia);b.kB&&(a.kB=b.kB);a.ub=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.Zg=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.N("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&Sra(a,b.watch_endpoint)};
Ira=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F,G,J,U,K=b.raw_watch_next_response;if(!K){var X=b.watch_next_response;X&&(K=JSON.parse(X))}if(K){a.watchNextResponse=K;var la=a.watchNextResponse.contents;if(la){var Ea=la.singleColumnWatchNextResults;if(Ea){var qb=bE(0,b.autoplay_count),ib;if(Ea.autoplay&&Ea.autoplay.autoplay&&!Ea.playlist){var Ab=Ea.autoplay.autoplay.sets,lc={},Sa=new g.eF(a.u),cc=null,Kb;if(Ab){for(var jh=g.q(Ab),Be=jh.next();!Be.done;Be=jh.next()){var kh=Be.value.autoplayVideoRenderer;
if(kh&&kh.compactVideoRenderer){cc=kh.compactVideoRenderer;break}}if(Kb=Ab[0].autoplayVideo){var pj=Kb.clickTrackingParams;pj&&(lc.itct=pj);lc.autonav="1";lc.playnext=String(qb)}}else lc.feature="related-auto";if(cc){Sa.videoId=cc.videoId;var Uk=cc.shortBylineText;Uk&&(Sa.author=g.$y(Uk));var qj=cc.title;qj&&(Sa.title=g.$y(qj))}else if(null===(ib=null===Kb||void 0===Kb?void 0:Kb.watchEndpoint)||void 0===ib?0:ib.videoId)Sa.videoId=Kb.watchEndpoint.videoId;Sa.wv=lc;a.suggestions=[Sa]}}var Je=la.twoColumnWatchNextResults}a.nX=
!(null===(c=null===Je||void 0===Je?void 0:Je.autoplay)||void 0===c||!c.autoplay);var lh=a.watchNextResponse.playerOverlays;if(lh){var Rc=lh.playerOverlayRenderer;if(Rc){var od=Rc.endScreen;if(od){var Fg=od.watchNextEndScreenRenderer;if(Fg)var zf=Fg.results}var rj=Rc.videoDetails;if(rj){var sj=rj.embeddedPlayerOverlayVideoDetailsRenderer;var Tf=rj.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Tf&&(a.bG=Tf.title,a.ZF=Tf.byline);var Hd=rj.playerOverlayVideoDetailsRenderer;Hd&&(Hd.title&&(b.title=g.$y(Hd.title)),
Hd.subtitle&&(b.subtitle=g.$y(Hd.subtitle)))}var Op=Rc.actions;if(Op)for(var Pp=g.q(Op),Vk=Pp.next();!Vk.done;Vk=Pp.next()){var Wk=Vk.value;Wk.likeButtonRenderer&&(a.likeButtonRenderer=Wk.likeButtonRenderer)}var ni=null===(e=null===(d=Rc.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(ni)for(var tj=g.q(ni),Xk=tj.next();!Xk.done;Xk=tj.next()){var Yk=Xk.value;if(null===(h=null===(f=Yk.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||
void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=Yk.suggestedActionRenderer}var mh=null===(l=Rc.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;mh&&(a.multiMarkersPlayerBarRenderer=null===(m=mh.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.uE=null===(p=null===(n=mh.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.sY=null===(r=mh.playerBarActionButton)||void 0===r?void 0:r.buttonRenderer);g.qE(a.u)&&
(a.Of=!!Rc.addToMenu);Tra(a,Rc.shareButton);var Um=Rc.productsInVideoOverlayRenderer;Um&&(a.shoppingOverlayRenderer=Um.shoppingOverlayRenderer);var Qd=Rc.autoplay;if(Qd)var Gc=Qd.playerOverlayAutoplayRenderer;a.progressBarStartPosition=Rc.startPosition;a.progressBarEndPosition=Rc.endPosition}}if(!zf&&Je){var pd=Je.endScreen&&Je.endScreen.endScreen;pd&&(zf=pd.results)}if(Je){var dc=Je.desktopOverlay&&Je.desktopOverlay.desktopOverlayConfigRenderer;dc&&(dc.suppressShareButton&&(a.showShareButton=!1),
dc.suppressWatchLaterButton&&(a.Of=!1))}sj&&Ura(a,b,sj);var nh=bE(0,b.autoplay_count);if(zf){for(var $H=Je||null,Fz=Gc||null,Rt=[],Gz=!0,Hz=g.q(zf),Zk=Hz.next();!Zk.done;Zk=Hz.next()){var Qp=Zk.value,Rp=void 0,mc=null;if(Qp.endScreenVideoRenderer){var ec=Qp.endScreenVideoRenderer,Sp=ec.title;mc=new g.eF(a.u);mc.videoId=ec.videoId;mc.lengthSeconds=ec.lengthInSeconds||0;var Iz=ec.publishedTimeText;Iz&&(mc.publishedTimeText=g.$y(Iz));var Jz=ec.shortBylineText;Jz&&(mc.author=g.$y(Jz));var Kz=ec.shortViewCountText;
Kz&&(mc.shortViewCount=g.$y(Kz));if(Sp){mc.title=g.$y(Sp);var Lz=Sp.accessibility;if(Lz){var St=Lz.accessibilityData;St&&St.label&&(mc.Jl=St.label)}}var Vm=ec.navigationEndpoint;if(Vm){Rp=Vm.clickTrackingParams;var Mz=Vm.watchEndpoint;Mz?mc.xv=Mz:Vm.urlEndpoint&&(mc.watchUrl=Vm.urlEndpoint.url)}var Nz=ec.thumbnailOverlays;if(Nz)for(var Oz=g.q(Nz),Tt=Oz.next();!Tt.done;Tt=Oz.next()){var Ut=Tt.value.thumbnailOverlayTimeStatusRenderer;if(Ut)if("LIVE"===Ut.style){mc.isLivePlayback=!0;break}else if("UPCOMING"===
Ut.style){mc.isUpcoming=!0;break}}mc.Z=cF(ec.thumbnail)}else if(Qp.endScreenPlaylistRenderer){var $k=Qp.endScreenPlaylistRenderer,Vt=$k.navigationEndpoint;if(!Vt)continue;var Pz=Vt.watchEndpoint;if(!Pz)continue;var Qz=Pz.videoId;mc=new g.dF(a.u);mc.playlistId=$k.playlistId;mc.playlistLength=Number($k.videoCount)||0;mc.i=Qz||null;mc.videoId=Qz;var Wt=$k.title;Wt&&(mc.title=g.$y(Wt));var Rz=$k.shortBylineText;Rz&&(mc.author=g.$y(Rz));Rp=Vt.clickTrackingParams;mc.Z=cF($k.thumbnail)}mc&&(Rp&&(mc.sessionData=
{itct:Rp}),Gz?(Vra(mc,$H,Fz,nh),Rt.splice(0,0,mc),Gz=!1):Rt.push(mc))}a.suggestions=Rt}if(Gc){a.DI=!!Gc.preferImmediateRedirect;a.Gc=a.Gc||!!Gc.webShowNewAutonavCountdown;a.rh=a.rh||!!Gc.webShowBigThumbnailEndscreen;if(a.Gc||a.rh){var Af=Gc,Xt=zf||null,aI=Je||null,Yt,Ke,Rd=new g.eF(a.u);Rd.videoId=Af.videoId;var Sz=null===(Ke=null===(Yt=null===Xt||void 0===Xt?void 0:Xt[0])||void 0===Yt?void 0:Yt.endScreenVideoRenderer)||void 0===Ke?void 0:Ke.navigationEndpoint;if(Sz){var Zt=Sz.clickTrackingParams;
Zt&&(Rd.sessionData={itct:Zt})}var Wm=Af.videoTitle;if(Wm){Rd.title=g.$y(Wm);var Tz=Wm.accessibility;if(Tz){var Xm=Tz.accessibilityData;Xm&&Xm.label&&(Rd.Jl=Xm.label)}}var df=Af.byline;df&&(Rd.author=g.$y(df));var Uz=Af.publishedTimeText;Uz&&(Rd.publishedTimeText=g.$y(Uz));var bI=Af.shortViewCountText;bI&&(Rd.shortViewCount=g.$y(bI));var Vz=Af.thumbnailOverlays;if(Vz)for(var $t=g.q(Vz),au=$t.next();!au.done;au=$t.next()){var uj=au.value.thumbnailOverlayTimeStatusRenderer;if(uj)if("LIVE"===uj.style){Rd.isLivePlayback=
!0;break}else if("UPCOMING"===uj.style){Rd.isUpcoming=!0;break}else if("DEFAULT"===uj.style&&uj.text){Rd.lengthText=g.$y(uj.text);var al=uj.text.accessibility;if(al){var Sd=al.accessibilityData;Sd&&Sd.label&&(Rd.jq=Sd.label||"")}break}}Rd.Z=cF(Af.background);var bl=Af.nextButton;if(bl){var Wz=bl.buttonRenderer;if(Wz){var Xz=Wz.navigationEndpoint;if(Xz){var Yz=Xz.watchEndpoint;Yz&&(Rd.xv=Yz)}}}if(Af.topBadges){var Zz=Af.topBadges[0];if(Zz){var $z=Zz.metadataBadgeRenderer;$z&&"BADGE_STYLE_TYPE_PREMIUM"==
$z.style&&(Rd.kB=!0)}}var Ym=Af.alternativeTitle;Ym&&(Rd.Ym=g.$y(Ym));Vra(Rd,aI,Af,nh);a.suggestions||(a.suggestions=[]);a.suggestions[0]=Rd}null!=Gc.countDownSecs&&(a.gN=1E3*Gc.countDownSecs);a.mY=null===(t=Gc.cancelButton)||void 0===t?void 0:t.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Z=cF(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var bu=null===(C=null===(z=null===(y=null===(v=null===(u=a.watchNextResponse)||
void 0===u?void 0:u.contents)||void 0===v?void 0:v.twoColumnWatchNextResults)||void 0===y?void 0:y.results)||void 0===z?void 0:z.results)||void 0===C?void 0:C.contents;if(bu&&bu[1]){var Tp=null===(U=null===(J=null===(G=null===(F=bu[1].videoSecondaryInfoRenderer)||void 0===F?void 0:F.owner)||void 0===G?void 0:G.videoOwnerRenderer)||void 0===J?void 0:J.thumbnail)||void 0===U?void 0:U.thumbnails;Tp&&Tp.length&&(a.Qh=Tp[Tp.length-1].url)}}var Up=a.watchNextResponse.onResponseReceivedEndpoints;if(Up)for(var aA=
g.q(Up),cu=aA.next();!cu.done;cu=aA.next()){var bA=cu.value;bA.changeKeyedMarkersVisibilityCommand&&(a.TB=bA.changeKeyedMarkersVisibilityCommand)}}};
NF=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
QF=function(a){if(a.N("html5_single_format_policy")&&a.fc)return a.fc;var b=a.La,c=!!a.i&&(Qoa(a.i)||Roa(a.i)||Soa(a.i)),d=a.u,e=!!a.i&&a.i.uf,f=a.Un(),h=a.EC,l=a.isOtf(),m=a.VC(),n=a.rb,p=a.ze,r=new ypa;if(a.oa||d.N("html5_logging_format_selection"))r.K=!0;d.N("html5_allow_chromecast_opus")&&(r.La=!0);r.Za=f;r.Ja=h&&d.B;r.ze=p;Au("windows nt 5.1")&&!g.Fj&&(r.i=!0);if(f=c)f=d.N("disable_html5_ambisonic_audio")||!(g.QE(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:tqa(d);f&&
(r.Wa=!0);b&&(r.i=!0,r.Gb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(r.i=!0);n&&(r.i=!0);yA(d.u,zA.CHANNELS)&&(d.N("html5_enable_aac51")&&(r.xa=!0),d.N("html5_enable_ac3")&&(r.D=!0),d.N("html5_enable_eac3")&&(r.I=!0),d.N("html5_enable_ac3_gapless")&&(r.Ka=!0));d.N("html5_block_8k_hfr")&&(r.ob=!0);!OF||d.N("html5_enable_hdr_on_macos")||navigator.hardwareConcurrency&&10!==navigator.hardwareConcurrency||(r.jb=!0);r.S=g.S(d.experiments,"html5_max_selectable_quality_ordinal");r.X=g.S(d.experiments,"html5_min_selectable_quality_ordinal");
!d.N("html5_kaios_hd_killswitch")&&hE&&(r.Fb=480);if(e||c)r.bb=!1;r.rb=!1;b=wD(d,r.u);0<b&&2160>b&&(bD()||d.N("html5_format_hybridization"))&&(r.u.supportsChangeType=+bD(),r.B=b);2160<=b&&(r.Z=!0);wpa()&&(r.u.serveVp9OverAv1IfHigherRes=0,r.Nb=!1);r.VC=m;m=g.Hw||Mu()&&!m?!1:!0;r.Va=m;r.Ba=d.N("html5_format_hybridization");r.Aa=d.N("html5_disable_codec_on_errors_with_exp_backoff");r.wb=d.N("html5_disable_codec_on_platform_errors");r.Db=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");Du()&&a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.I=!0);a.La&&a.isAd()&&(a.El&&(r.oa=a.El),a.Dl&&(r.C=a.Dl));r.Sa=a.isLivePlayback&&PF(a)&&a.u.N("html5_drm_live_audio_51");return a.fc=r};
Xra=function(a){a.Yc||a.i&&AA(a.i);var b={};a.i&&(b=wA(QF(a),a.u.u,a.i,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new HD(b,a.u.experiments,a.GJ,Wra(a),function(c,d){a.Ca(c,d)});
g.H(a,b);a.Wj=!1;a.Ja=!0;Cpa(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.u=a.Yc;e.K=a.ZW;e.I=a.BT;break;case "widevine":e.B=a.IL}a.fu=c;if(0<a.fu.length&&(a.I=a.fu[0],g.RF(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.Ca("drmProbe",c.join("."))}HF(a)})};
Rra=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.LE(a.u)&&g.zE(a.u)?0:!KF(a)&&a.adaptiveFormats));if(c)return null;SF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&($oa=!0);c=TF(b);var d=Date.now();b=Zoa(c,a.Fd,a.lengthSeconds,a.isLivePlayback,a.bf,a.u);d=Date.now()-d;if(a.N("html5_log_manifest_performance")){var e=Voa(b)?1:0;a.Ca("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=lD(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,
isFinite(c)&&(a.mj=!0)));if(c=b.isManifestless)c=!(a.N("html5_manifestless_vp9")||a.N("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Yra(b));return c?(b.dispose(),null):b};
KF=function(a){return Du()?!UF(a):Fu()?!(!a.Yc||!a.N("html5_enable_safari_fairplay")):!1};
UF=function(a){return SF(a,"html5_enable_tvos_dash_dogfood")||a.N("html5_enable_tvos_dash")&&(a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Wra=function(a){return a.useCobaltWidevine?Du()?UF(a):!1:!1};
Yra=function(a){return a.isManifestless&&MC('video/webm; codecs="vp9"')&&g.Ge(a.i,function(b){return DC(b.info)})};
MF=function(a){return!(!a.i||!a.i.isManifestless)};
Zra=function(a){var b;return iA()?a.N("html5_streaming_debug")||MF(a)&&("ULTRALOW"==a.latencyClass||21530001==VF(a))?!0:!window.AbortController&&!kA()||a.La?!1:a.N("html5_streaming_xhr")||a.N("html5_streaming_xhr_vod")&&!1===(null===(b=a.i)||void 0===b?void 0:b.uf)||a.N("html5_streaming_xhr_manifestless")&&MF(a)?!0:!1:!1};
$ra=function(a){return kna({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Mk:a.Mk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:MF(a),JG:Zra(a)})};
VF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=rD(a.i)?21530001:a.liveExperimentalContentId};
Pra=function(a){return Du()&&UF(a)?!1:KF(a)&&g.LE(a.u)&&!a.isLivePlayback||!KD()||a.KE?!0:!1};
bsa=function(a){a.Ja=!0;a.xd=!1;if(Qra(a))dra(a.videoId).then(function(d){asa(a,d)}).then(function(){HF(a)});
else{Py(a.jb)||g.cy(new g.aw("DASH MPD Origin invalid: ",a.jb));var b=a.jb,c=g.S(a.u.experiments,"dash_manifest_version")||4;b=g.Ui(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ui(b,{pacing:0}));hpa(b,a.u.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(LF(a,d,!0),Bz("mrc",void 0,a.ub),HF(a))},function(d){a.isDisposed()||(a.Ja=!1,a.ea("dataloaderror",new g.ZC("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
Bz("mrs",void 0,a.ub)}};
asa=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 Ara(e)}).join(",");
d=Rra(a,d);LF(a,d);a.Ca("dlr","")};
HF=function(a){a.isDisposed()||(a.Ja=!1,a.ea("dataloaded"))};
LF=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.H(a,b);b.re=a.re;b.wg=a.wg;b.I=a.ZI;b.D=a.XI;a.N("html5_start_walltime_min_seekable_killswitch")||(b.K=a.xL);csa(a)&&a.Ba.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.eh=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.Ca,a),c?b.subscribe("refresh",a.yM,a):b.subscribe("cuepointsadded",a.KJ,a));AA(b)&&(a.Wj=!0)};
PF=function(a){return a.Fd?!0:!!a.i&&AA(a.i)};
hsa=function(a,b){if(a.isDisposed())return mu();a.C=null;a.bb=null;a.Fb=null;var c=a.u.deviceParams.c;if(!a.N("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.u.lk;a.oa=g.RF(a)||1==d[0]&&d[1]<c}return dsa(a,b).then(void 0,function(){return esa(a,b)}).then(void 0,function(){return fsa(a)}).then(void 0,function(){return gsa(a)})};
dsa=function(a,b){var c=b||Pra(a);if(!a.i||c)return a.Ca("skipDash","dm."+ +!!a.i+";air."+ +b+";dd."+ +a.KE+";mss."+ +KD()),mu();a.Un()&&lpa(a.i,a.isLivePlayback);SF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.u.u.u=!0);return isa(a).then(function(){return jna(QF(a),a.u.u,a.i,a.I,function(d){return a.ea("ctmp","fmtflt",d)}).then(function(d){jsa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.fc&&a.Ca("av1",g.YC(a.fc.u))})})};
isa=function(a){if(!(a.i&&a.i.i&&navigator.mediaCapabilities&&a.N("html5_blocking_media_capabilities")))return nu();a=Object.values(a.i.i);return Promise.all(Array.from(a,function(b){return Eoa(b.info)}))};
esa=function(a,b){var c,d,e,f,h;if(b&&a.hlsvp)return mu();if(a.hlsFormats){b=TF(a.hlsFormats);if((null===(c=a.fc)||void 0===c?0:c.K)&&b){for(var l=[],m=g.q(b),n=m.next();!n.done;n=m.next())l.push(n.value.itag);a.Ca("hlsfmt",l.join("."))}a.Dq=Bqa(a.u,b);l=a.clientPlaybackNonce;return Gqa(a.u,a.isAd(),b,null!==(h=null===(f=null===(e=null===(d=a.playerResponse)||void 0===d?void 0:d.captions)||void 0===e?void 0:e.playerCaptionsRenderer)||void 0===f?void 0:f.baseUrl)&&void 0!==h?h:null,a.Vj,l,function(p){return a.ea("ctmp",
"hlsflt",p)}).then(function(p){for(var r,t,u,v,y=0,z=[],C=g.q(p),F=C.next();!F.done;F=C.next())F=F.value,z.push(null===(r=F.mf())||void 0===r?void 0:r.hc()),(null===(u=null===(t=F.mf())||void 0===t?void 0:t.audio)||void 0===u?void 0:u.numChannels)>y&&(y=F.mf().audio.numChannels);
2<y&&a.Ca("hlschl",""+y);(null===(v=a.fc)||void 0===v?0:v.K)&&a.Ca("hlsfmtaf",z.join("."));WF(a,p)})}return mu()};
fsa=function(a){return a.Qi&&a.CH?Jqa(a.u,a.isAd(),a.Qi).then(function(b){WF(a,b)}):mu()};
gsa=function(a){var b=TF(a.Wi,a.LG);if(a.hlsvp){var c=Fra(a.hlsvp,a.clientPlaybackNonce,a.Vj);b.push(c)}return Hqa(a.u,a.isAd(),b,ksa(a)).then(function(d){WF(a,d)})};
jsa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.ij);for(var c=0;c<a.yD.length;c++)for(var d=a.yD[c],e=0;e<b.length;e++){var f=b[e],h=f.zc.id==d.audioTrackId;if(f.zc.isDefault&&c==a.zO||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.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.I&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=GC(a.C.videoInfos[0]),b!=("fairplay"==a.I.flavor)))for(c=g.q(a.fu),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.I=d;break}};
WF=function(a,b){a.Fb=b;jsa(a,new sA(g.pn(a.Fb,function(c){return c.mf()})))};
ksa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.Sq&&(b.ptk=a.Sq,b.oid=a.xI,b.ptchn=a.vI,b.pltype=a.yI,a.fq&&(b.m=a.fq));return b};
g.XF=function(a){return KF(a)&&a.Yc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Fd||null};
lsa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.$y(b.text):a.paidContentOverlayText};
YF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Hg(b.durationMs):a.paidContentOverlayDurationMs};
ZF=function(a){var b="";if(a.QB)return a.QB;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.$F=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
aG=function(a){return!!(a.jb||a.adaptiveFormats||a.Wi||a.Qi||a.hlsvp)};
GF=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Wb(a.Ba,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ja&&(aG(a)||g.Wb(a.Ba,"heartbeat")||b)};
TF=function(a,b){a=Ct(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};
Tra=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.gk=!!e.copyTextEndpoint)};
Hra=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.jg=m);if(a.jg){if(m=a.jg.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.jg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Wa=n,a.D=!0,a.u.C&&"1"==a.u.controlsType&&(a.u.controlsType="3",
a.u.C=!1,a.u.Zc=!1)):(a.Wa="",a.D=!1);if(n=m.defaultThumbnail)a.Z=cF(n),a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Ura(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.bG=n.title,a.ZF=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Of=!!m.addToWatchLaterButton;Tra(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)Sra(a,n),a.videoId=n.videoId||a.videoId;m.videoDurationSeconds&&(a.lengthSeconds=Hg(m.videoDurationSeconds));a.N("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&ura(a,m.webPlayerActionsPorting);if(m=null===(l=null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){n=
[];var p=Number(m.currentIndex);if(m.contents)for(var r=0,t=m.contents.length;r<t;r++){var u=m.contents[r].playlistPanelVideoRenderer;if(u){var v=u.shortBylineText?g.$y(u.shortBylineText):"",y=u.title?g.$y(u.title):"";n.push({author:v,encrypted_id:u.videoId,title:y,channel_path:r===p?b.channel_path:"",profile_picture:r===p?b.profile_picture:"",is_private:r===p?a.isPrivate:!1,is_dni:r===p?a.D:!1,dni_color:r===p?a.Wa:""})}}b={index:m.currentIndex,list:m.playlistId,playlist_length:m.totalVideos,video:n};
m.titleText&&(b.title=g.$y(m.titleText));m.shortBylineText&&(b.author=g.$y(m.shortBylineText));a.WO=b}}if(a.jg.previewPlayabilityStatus){a.Uq=a.jg.previewPlayabilityStatus;b=a.Uq;var z;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){m=b.errorScreen;if(n=null===m||void 0===m?void 0:m.playerErrorMessageRenderer){a.SE=n;if(p=n.reason)a.errorReason=g.$y(p);if(n=n.subreason)a.xi=g.$y(n)}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===(z=null===m||void 0===m?void 0:m.playerKavRenderer)||void 0===z?0:z.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.jg.playabilityStatus&&(a.jj=a.jg.playabilityStatus,msa(a)&&(a.errorDetail="0",a.jj&&((z=a.jj.embeddedPlayerErrorMessageRenderer)?a.SE=z.embeddedPlayerErrorMessageRenderer:a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.jj.reason||null))));(z=a.jg.attestation)&&
pra(a,z);(z=a.jg.permissions)&&z.allowImaMonetization&&(a.allowImaMonetization=!0)}};
Sra=function(a,b){var c;if(b=null===(c=null===b||void 0===b?void 0:b.watchEndpointSupportedOnesieConfig)||void 0===c?void 0:c.html5PlaybackOnesieConfig)a.Pq=new ira(b)};
Vra=function(a,b,c,d){var e,f,h,l,m,n,p;d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){if(b=null===(l=null===(h=null===(f=null===(e=b.autoplay)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.sets)||void 0===h?void 0:h[0])||void 0===l?void 0:l.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.pJ=b}else c&&(b=null===(p=null===(n=null===(m=c.nextButton)||void 0===m?void 0:m.buttonRenderer)||void 0===n?void 0:n.navigationEndpoint)||void 0===p?void 0:
p.clickTrackingParams)&&(d.itct=b);d.itct||(d.feature="related-auto");a.wv=d};
Ura=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.$y(l));if(h=h.subtitle)b.subtitle=g.$y(h)}if(c=c.expandedRenderer)if(c=
c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.$y(h);if(h=c.subtitle)b.expanded_subtitle=g.$y(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Oi=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.CC=b.toggledServiceEndpoint||null,a.BC=b.defaultServiceEndpoint||
null):(a.CC=b.defaultServiceEndpoint||null,a.BC=b.toggledServiceEndpoint||null))}};
g.bG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
cG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
nsa=function(a){var b=new lA("und",new IC("Default","und",!0));b.captionTracks=a.captionTracks;return b};
g.dG=function(a){return!!a.i&&Qoa(a.i)};
g.eG=function(a){return!!a.i&&Roa(a.i)};
csa=function(a){return g.eG(a)||g.dG(a)||g.fG(a)||g.gG(a)};
g.gG=function(a){return!!a.i&&Soa(a.i)};
g.fG=function(a){return!!a.i&&Toa(a.i)};
g.osa=function(a){if(a.wC)return null;var b=a.DH;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.psa=function(a){return a.wC?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.hG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.iG=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};
jG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.u.Ba};
kG=function(a){if(a.isAd()&&a.videoId!=a.u.Gb)return a.u.Gb};
lG=function(a){return a.Vk||"detailpage"==jG(a)||"shortspage"==jG(a)||a.mutedAutoplay};
mG=function(a){if(lG(a)){if("detailpage"==jG(a))return a.Rk||0<a.Db;if(!("17_8"===a.adFormat&&!a.Rk||a.N("embeds_enable_autoplayblocked_ping_fix")&&a.yL||"adunit"==jG(a)&&a.Gb))return!0}return!1};
qsa=function(a){var b=1,c=g.S(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.ye;a.C&&a.C.i&&a.C.i[0]&&a.Tq[a.C.i[0].id]&&(c=a.Tq[a.C.i[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.cK)return Math.min(1,Math.pow(10,-a.IC/20))||b;var d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.u.Oi,g.S(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.IC=c}return Math.min(1,Math.pow(10,-c/20))||b};
nG=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
rsa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
pG=function(a){return oG(a)&&!!a.adaptiveFormats};
oG=function(a){return!!(a.N("woffle_orchestration")&&a.eq&&a.u.B)};
Qra=function(a){if(a.N("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===iF(b);a=b&&!a.eq}else a=!1;return a};
g.qG=function(a){if(!a.i||!a.B||!a.K)return!1;var b=a.i.i;return!!b[a.B.id]&&IA(b[a.B.id].u.i)&&!!b[a.K.id]&&IA(b[a.K.id].u.i)};
ssa=function(a){return a.Uq?["OK","LIVE_STREAM_OFFLINE"].includes(a.Uq.status):!0};
msa=function(a){return(a=a.jj)&&a.showError?a.showError:!1};
g.RF=function(a){return a.N("disable_rqs")?!1:SF(a,"html5_high_res_logging")||SF(a,"html5_high_res_logging_live_infra")};
SF=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
tsa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Mra=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.WB=b.quartile_0_url,a.GI=b.quartile_25_url,a.HI=b.quartile_50_url,a.II=b.quartile_75_url,a.FI=b.quartile_100_url,a.fh=b.quartile_0_urls,a.gr=b.quartile_25_urls,a.ir=b.quartile_50_urls,a.jr=b.quartile_75_urls,a.er=b.quartile_100_urls};
JF=function(a){return a?KD()?!0:rG&&5>sG?!1:!0:!1};
Lra=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};
qra=function(a){if(a){if(xma(a))return a;a=yma(a);if(xma(a,!0))return a}return""};
g.usa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.$F(a,"yt:cc_default_lang")||a.u.ze};
tG=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
uG=function(a,b){this.i=a;this.oa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.I={};this.Z=this.S=0};
vsa=function(a){return vG(a)&&1==a.getPlayerState(2)};
vG=function(a){a=a.Jc();return void 0!==a&&2==a.getPlayerType()};
wG=function(a){a=a.V();return yE(a)&&!g.LE(a)&&"desktop-polymer"==a.playerStyle};
xG=function(a,b){var c=a.V();pE(c)||"3"!=c.controlsType||a.eb().mx(b)};
zG=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.u=f;this.id=yG(a)};
yG=function(a){return a+(":"+(xs.getInstance().i++).toString(36))};
AG=function(a){this.Y=a};
wsa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Gj?0:a.Y.isMobile||g.LE(a.Y)||g.zE(a.Y)||AE(a.Y)||!g.Gj))return!0;a=g.Sg("video-ads");return null!=a&&"none"!==Lm(a,"display")};
xsa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";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}};
BG=function(){g.Q.call(this);var a=this;this.i={};g.te(this,function(){for(var b=g.q(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
DG=function(){if(null===CG){CG=new BG;om(tr).i="b";var a=om(tr),b="h"==br(a)||"b"==br(a),c=!(Bn(),!1);b&&c&&(a.D=!0,a.I=new Jda)}return CG};
ysa=function(a,b,c){a.i[b]=c};
zsa=function(a){this.B=a;this.u={};this.i=tm()?500:g.zE(a.V())?1E3:2500};
Bsa=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return Asa(a,b)};
Asa=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};
EG=function(a,b,c){this.i=a;this.D=b;this.B=c;this.u=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};
Csa=function(a){var b,c;return null!==(c=null===(b=null===a||void 0===a?void 0:a.activeViewTracking)||void 0===b?void 0:b.trafficType)&&void 0!==c?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
FG=function(a){var b,c;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||[]],["audio_audible",(null===(b=a.activeViewTracking)||void 0===b?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null===(c=a.activeViewTracking)||void 0===c?void 0:c.activeViewAudioMeasurablePings)||[]],["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||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",
a.unmutedClickthroughPings||[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]]])};
Dsa=function(a){return(a=a.pings)?Object.fromEntries(FG(a)):{}};
GG=function(a,b,c,d,e){uG.call(this,a,Dsa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Va=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new EG(0,[]);this.Ja=null;this.Wa=b;this.La=[];this.C={};this.Ba=null;this.u=0;this.X=this.xa=this.D=null;this.Aa=e;this.Sa=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.Ba=b);this.C=Bt(this.i.playerVars||"");if(b=this.i.external)R("external non youtube video ad"),this.La=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=
b/1E3,this.C.length_seconds=this.u.toString()),(b=Bsa(this.Wa,this.La))?(this.xa=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.xa)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.D=this.i.externalVideoId||null,this.u=bE(this.u,this.C.length_seconds),this.Aa&&this.D&&(this.Sa=this.Aa(this.D)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.vt(f)}this.Ja=
this.i.clickthroughEndpoint||null;this.B=new EG(0,[this.u])};
Esa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.i);b.autoplay="1";return b};
HG=function(){this.i=[];this.u=0};
IG=function(a,b){b&&a.i.push(b)};
JG=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};
KG=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};
LG=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
MG=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Fsa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=JG(a.impressionCommands)||[];b.error=JG(a.errorCommands)||[];b.mute=JG(a.muteCommands)||[];b.unmute=JG(a.unmuteCommands)||[];b.pause=JG(a.pauseCommands)||[];b.rewind=JG(a.rewindCommands)||[];b.resume=JG(a.resumeCommands)||[];b.skip=JG(a.skipCommands)||[];b.close=JG(a.closeCommands)||[];b.clickthrough=JG(a.clickthroughCommands)||[];b.fullscreen=JG(a.fullscreenCommands)||[];b.active_view_viewable=JG(a.activeViewViewableCommands)||
[];b.active_view_measurable=JG(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=JG(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=JG(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=JG(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=JG(a.endFullscreenCommands)||[];b.channel_clickthrough=JG(a.channelClickthroughCommands)||[];b.abandon=JG(a.abandonCommands)||
[];b.progress=KG(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=KG(a.progressCommands.filter(function(c){return MG(c)&&vg(LG(c),0)}));
b.first_quartile=KG(a.progressCommands.filter(function(c){return MG(c)&&vg(LG(c),.25)}));
b.midpoint=KG(a.progressCommands.filter(function(c){return MG(c)&&vg(LG(c),.5)}));
b.third_quartile=KG(a.progressCommands.filter(function(c){return MG(c)&&vg(LG(c),.75)}));
b.complete=KG(a.progressCommands.filter(function(c){return MG(c)&&vg(LG(c),1)}));
return b};
NG=function(a){uG.call(this,a,Fsa(a));this.u=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
Gsa=function(a,b,c,d){this.id=b;this.C=d.me;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.B=(this.D=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Dma(b,d);if(null==f)d=new Xy(b,new ds(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(xs.getInstance().i++).toString(36);
var h=d.daiEnabled||d.me;f=new Xy(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.me||0<d.i)if(d=Dma(b,d,!0))h=new Xy(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.X=d[0];this.i=d[1];this.u=c;this.I=!1;this.S={};this.K=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
OG=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
QG=function(a,b){var c={};Hsa(a,c,b);Isa(c);c.LACT=PG(function(){return jv().toString()});
c.VIS=PG(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=PG(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Jsa=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=PG(vf(Math.round(Hg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=PG(vf("0"));return b};
PG=function(a){return{toString:function(){return a()}}};
Ksa=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.Se(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};
Hsa=function(a,b,c){b.CPN=PG(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.cy(Error("Video data is null.")),d=null);return d});
b.AD_MT=PG(function(){return Math.round(Math.max(0,1E3*(null!==c&&void 0!==c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=PG(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=PG(function(){return a.eb().rg().height.toString()});
b.P_W=PG(function(){return a.eb().rg().width.toString()});
b.PV_H=PG(function(){return a.eb().getVideoContentRect().height.toString()});
b.PV_W=PG(function(){return a.eb().getVideoContentRect().width.toString()})};
Isa=function(a){a.CONN=PG(vf("0"));a.WT=PG(function(){return Date.now().toString()})};
Lsa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=OG(a)?PG(vf(Math.round(a.i.start/1E3).toString())):PG(vf("0"));return b};
Msa=function(a){var b={};b.SLOT_POS=PG(vf(a.B.i.toString()));return b};
RG=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};
SG=function(a){for(var b={},c=g.q(Nsa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
TG=function(){var a={};Object.assign.apply(Object,[a].concat(g.ma(g.Ba.apply(0,arguments))));return a};
UG=function(){};
VG=function(a){this.zp=a};
WG=function(a){this.ip=a};
Osa=function(a,b,c,d,e,f){e=void 0===e?new WG(new VG(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.ad=a;this.B=b;this.macros=c;this.i=d;this.Ph=e;this.daiEnabled=f;this.u={SB:.25,SECOND:.5,GC:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.oa.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.oa.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
om(tr)};
Psa=function(a,b,c){a.macros=TG(a.macros,RG(b,c));XG(a,"unmuted_error")};
aH=function(a,b){YG(a)||(ZG(a)?($G(a,0,!0),Qsa(a,b,b)):($G(a,0,!0),Rsa(a,0,0,!0)),XG(a,"complete"))};
$G=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=bH(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)cH(a,e,d),a.ad.S++;else break}};
Ssa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=bH(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)cH(a,e,d),a.ad.Z++;else break}};
Rsa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.SB||d)&&XG(a,"first_quartile");(b>=c*a.u.SECOND||d)&&XG(a,"midpoint");(b>=c*a.u.GC||d)&&XG(a,"third_quartile")};
Tsa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.SB||d)&&XG(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&XG(a,"unmuted_midpoint");(b>=c*a.u.GC||d)&&XG(a,"unmuted_third_quartile")};
dH=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;XG(a,b)};
Qsa=function(a,b,c){if(0<c&&0<b){var d=a.i.zb(a.i.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(dH(a,"first_quartile",b,c*a.u.SB),dH(a,"midpoint",b,c*a.u.SECOND),dH(a,"third_quartile",b,c*a.u.GC))}a.lastUpdatedTimeSecs=b};
eH=function(a,b){for(var c=bH(a,b),d=g.q(a.ad.oa[b]||[]),e=d.next();!e.done;e=d.next())cH(a,e.value,c);a.ad.I[b]=!0};
XG=function(a,b){a.ad.I.hasOwnProperty(b)||eH(a,b)};
fH=function(a,b){return a.ad.I.hasOwnProperty(b)};
cH=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Ph,f=e.send,h={},l=QG(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,d,a,c,b)}};
bH=function(a,b){var c=a.B;a=a.ad;if(a.gw())if(b=Usa(b),null==b)c={};else{var d;(d=a.Ka()())||(d=(d=c.J)&&d.Jc?(d=d.Jc())&&2==d.getPlayerType()?gH(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.J.isFullscreen()},c=xr(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
ZG=function(a){return!a.i.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
YG=function(a){return ZG(a)&&!fH(a,"impression")};
hH=function(a){return ZG(a)&&fH(a,"seek")};
iH=function(a,b){ZG(a)?eH(a,b):XG(a,b)};
g.jH=function(a,b){this.state=a;this.uo=b};
kH=function(a,b){return g.T(a.state,b)&&!g.T(a.uo,b)?1:!g.T(a.state,b)&&g.T(a.uo,b)?-1:0};
g.lH=function(a,b){return 0<kH(a,b)};
mH=function(a,b,c,d,e,f){f=void 0===f?0:f;g.Q.call(this);this.J=a;this.i=d;this.u=e;this.u.i[b.K]=this;this.u.subscribe("adactiveviewmeasurable",this.rN,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.sN,this);this.u.subscribe("adoverlaymeasurableimpression",this.tN,this);this.u.subscribe("adoverlayunviewableimpression",this.uN,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.vN,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.wN,this);
this.u.subscribe("adviewableimpression",this.xN,this);this.ad=b;this.xa=[];this.macros=c;this.S=!1;this.Aa=!wsa(new AG(this.J.V()),f);this.C=!1};
nH=function(a,b){gc(a.xa,b);Vsa(a,b,1)};
Wsa=function(a){var b=a.i;b.macros=TG(b.macros,RG(0,"No playable media files can be selected"));XG(b,"error");a.C||Psa(a.i,0,"No playable media files can be selected")};
oH=function(a,b){if(a.S){var c=a.i,d=a.getDuration();!YG(c)&&0<d&&($G(c,b),ZG(c)?Qsa(c,b,d):Rsa(c,b,d,!1));a.C||(c=a.i,a=a.getDuration(),!YG(c)&&0<a&&(Ssa(c,b),Tsa(c,b,a,!1)))}};
Vsa=function(a,b,c){0!=b.length&&(b=g.pn(b,function(d){return new Zy(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
pH=function(a){var b={};b.abandon=a.abandonCommands&&JG(a.abandonCommands.commands)||[];uG.call(this,a,b)};
qH=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;zG.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.Eg=e;this.Ti=f};
rH=function(a,b,c,d,e,f){mH.call(this,a,b,c,d,e,1);this.D=b;this.B=b.i.durationMilliseconds||0;this.Mb=null;this.I=f};
sH=function(a){uG.call(this,a);this.u=Bt(this.i.playerVars||"")};
tH=function(){uG.apply(this,arguments)};
uH=function(){uG.apply(this,arguments)};
Xsa=function(a,b,c,d,e,f){this.I=a;this.C=b;this.i=c;this.D=d;this.B=e;this.u=f};
vH=function(a,b,c,d,e){mH.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.I(function(){f.Yg("load_timeout")},1E4);
g.H(this,this.B);this.D=new Cx(this);g.H(this,this.D)};
wH=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.i=b};
Dy=function(a,b){return a.i.has(b)};
V=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
xH=function(a){return Array.from(a.i.keys())};
Ysa=function(a){return{slotId:Iy(a,"SLOT_TYPE_IN_PLAYER"),qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:void 0,uc:[],tc:[],ib:"surface",Ga:new wH([])}};
Zsa=function(a){zG.call(this,"ad-message",a)};
yH=function(a,b,c,d,e,f,h,l){mH.call(this,a,b,c,d,e);var m=this;this.K=b;this.X=b.i.durationMs||0;this.xj=h;this.slot=void 0;this.B=l;this.Z=!1;this.I=this.D=0;this.oa=function(){var n=m.J.getProgressState().current;n<m.D?m.vg():n>m.I&&m.Bh()}};
$sa=function(a){if(a.B&&a.Z)if(a.Z=!1,a.J.V().experiments.kb("html5_externally_manage_ad_notify_layout"))if(a.slot){for(var b=a.slot,c=g.q(a.B.listeners),d=c.next();!d.done;d=c.next()){var e=b;zH(d.value.Sm(),e)}a.slot=void 0}else xt(Error("AdNotify terminated when no slot is active"));else for(a=g.q(a.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.i?(c=b.i,b.i=void 0,b.u=void 0,zH(b.Sm(),c)):R("Received AdNotify terminated event when no slot is active")};
g.AH=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={LB:c.LB},e=d.next())e=e.value,c.LB=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.LB}}(c));
return a};
BH=function(a){return a?g.$y(a):null};
ata=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};
bta=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
cta=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
fta=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&&(dta(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=BH(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
eta(a,b,c,d))}};
dta=function(a,b,c){var d=BH(b.confirmLabel)||"",e=BH(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(BH(l.value)||"");h=b.headerTitle?g.$y(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:BH(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)}};
eta=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:BH(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=ata(b.navigationEndpoint);var h=cta(b[1]),l=[cta(b[0])];(b=bta(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)};
gta(a,e,d)}}};
gta=function(a,b,c){a.muteAdInfo.goneText=BH(b.title)||"";a.muteAdInfo.questionText=BH(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=BH(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=BH(e.reason)||"";e=ata(e.endpoint)[0];a.push({label:d,url:e})}};
CH=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=QG(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.I=e};
hta=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.zd(e):a.C.Tp()};
b.skipShown=function(){a.zd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
ita=function(a,b,c){fta(b,c,function(d){a.zd(d)},function(d){a.sendAdsPing(d)})};
jta=function(a){if(a.D.V().N("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)};
kta=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}};
lta=function(a,b,c,d,e){new CH(a,b,c,d,e,void 0)};
DH=function(a){this.value=a};
EH=function(a){this.value=a};
FH=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(){DH.apply(this,arguments)};
JH=function(a){this.value=a};
KH=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
PH=function(){DH.apply(this,arguments)};
QH=function(){DH.apply(this,arguments)};
RH=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
ZH=function(a){this.value=a};
oI=function(a){this.value=a};
pI=function(a){this.value=a};
qI=function(a){this.value=a};
rI=function(a){this.value=a};
sI=function(a){this.value=a};
tI=function(a){this.value=a};
uI=function(a){this.value=a};
vI=function(a){this.value=a};
wI=function(a){this.value=a};
xI=function(a){this.value=a};
yI=function(a){this.value=a};
zI=function(a){this.value=a};
AI=function(a){this.value=a};
BI=function(a){this.value=a};
CI=function(a){this.value=a};
DI=function(a){this.value=a};
EI=function(a){this.value=a};
FI=function(a){this.value=a};
GI=function(a){this.value=a};
HI=function(a){this.value=a};
II=function(a){this.value=a};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(){DH.apply(this,arguments)};
NI=function(){DH.apply(this,arguments)};
OI=function(){DH.apply(this,arguments)};
PI=function(){DH.apply(this,arguments)};
QI=function(){DH.apply(this,arguments)};
RI=function(){DH.apply(this,arguments)};
SI=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(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 mta(d)?!0:!1};
nta=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=mta(a)):b=!1:b=!1;return b};
mta=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};
pta=function(a,b,c,d,e,f){this.i=new CH(a,b,c,d,e,ota(f))};
qta=function(a,b){var c=kta();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.zd(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":hta(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":ita(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
ota=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=PG(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=PG(a);return b};
TI=function(a,b,c){g.Q.call(this,!0);var d=this;this.I=b;this.D=c;this.u=a;this.Mb=new g.Xh(200);this.Mb.Ra("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Mb.stop());e=d.i/1E3;d.D&&d.D.Xb(e);rta(d,{current:e,duration:d.u/1E3})});
g.H(this,this.Mb);this.i=0;this.B=null;g.te(this,function(){d.B=null});
this.C=0};
rta=function(a,b){a.I.Oa("onAdPlaybackProgress",b);a.B=b};
UI=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;zG.call(this,"survey",a,{},b,c);this.Eg=d;this.Ti=e};
VI=function(a,b,c){g.Q.call(this);var d=this;this.durationMs=a;this.C=b;this.D=c;this.u=!1;this.B=this.i=0;this.timer=new g.Xh(200);g.H(this,this.timer);this.timer.Ra("tick",function(){d.Xb()})};
WI=function(){Dz("pbp")||Dz("pbs")||Ez("pbp");Dz("pbp","watch")||Dz("pbs","watch")||Ez("pbp",void 0,"watch")};
XI=function(a,b,c,d,e,f,h){mH.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.I=new Cx;g.H(this,this.I);this.I.T(this.J,"resize",function(){450>l.J.eb().rg().width&&(g.Ex(l.I),l.vg())});
this.Z=0;this.K=null;this.X=h(this,function(){return""+(Date.now()-l.Z)});
if(this.B=g.zE(a.V())?new TI(1E3*b.u,a,f):null)g.H(this,this.B),this.I.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&sta(l)})};
tta=function(a,b){a.J.V().experiments.kb("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!SI(b)?(g.by(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.ud("aderror")):(b=qta(a.X,b),a.J.Oa("onAdInfoChange",b))};
sta=function(a){var b=a.D.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.zd(b&&b.timeoutCommands)):g.by(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
YI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;zG.call(this,"survey-interstitial",a,b,c,d);this.Eg=e;this.AG=f};
ZI=function(a,b,c,d,e){mH.call(this,a,b,c,d,e,1);this.B=b};
$I=function(a,b,c,d,e,f,h,l,m){mH.call(this,a,b,c,d,e,1);var n=this;this.Nz=!0;this.K=m;this.B=b;this.D=f;this.Z=new Cx(this);g.H(this,this.Z);this.I=new g.I(function(){n.Yg("load_timeout")},1E4);
g.H(this,this.I);this.X=h};
uta=function(a){if(a.X&&(a.J.V().experiments.kb("enable_topsoil_wta_for_halftime")||a.J.V().experiments.kb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.i;b=b.D;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.B.u)}};
fJ=function(a,b){if(null!==a.K){var c=vta(a);a=g.q(a.K.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||(wta(d,e,[],!1),aJ(d.B(),d.u),bJ(d.B(),d.u),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}cJ(d.B(),d.u,d.i,e);if(h){e=d.B();h=d.u;dJ(e.u,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.q(e.Jd);for(f=e.next();!f.done;f=e.next())f.value.Mi(h);zH(d.B(),d.u)}d.Na.get().J.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&
d.C&&eJ(d.B(),d.u,d.i);d.u=null;d.i=null;d.C=!1}}}};
gJ=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
vta=function(a){if(a=a.B.i.elementId)return a;g.by(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
xta=function(a){function b(l,m){l=a.UW;var n=Object.assign({},{});n.FINAL=PG(vf("1"));n.SLOT_POS=PG(vf("0"));return TG(l,SG(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var r=b(m,n);
n=a.sB(m,r);m=l(m,r,n,p);g.H(m,n);return m}}}
var d=c(function(l,m,n){return new rH(a.J,l,m,n,a.Gp,a.Xa)}),e=c(function(l,m,n){return new ZI(a.J,l,m,n,a.Gp)}),f=c(function(l,m,n){return new yH(a.J,l,m,n,a.Gp,a.Xa,a.xj,a.nm)}),h=c(function(l,m,n){return new vH(a.J,l,m,n,a.Gp,a.Xa)});
this.jR=new Xsa({create:function(l,m){var n=TG(b(l,m),SG(Msa(l)));m=a.sB(l,n);l=new $I(a.J,l,n,m,a.Gp,a.Xa,a.daiEnabled,function(p){return new lta(a.Xa,n,p,a.J,a.Ph)},a.pm,a.Tf);
g.H(l,m);return l}},{create:function(l,m){var n=a.sB(l,m);
l=new XI(a.J,l,m,n,a.Gp,a.Xa,function(p,r){return new pta(a.Xa,m,p,a.J,a.Ph,r)});
g.H(l,n);return l}},d,e,f,h)};
hJ=function(a,b){this.u=a;this.i={};this.B=void 0===b?!1:b};
yta=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{HR:new ds(b,c),XS:new Ly(b,c-b,a.context,a.identifier,a.event,a.i)}};
iJ=function(){this.i=[]};
jJ=function(a,b,c){var d=g.nc(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
zta=function(){this.i=new iJ};
kJ=function(a){this.i=a};
Ata=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
Bta=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()};
Dta=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;lJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Cta(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&mJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&mJ("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
Eta=function(a,b,c){a.u&&lJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Fta=function(a,b){a.u&&lJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.rR}})};
mJ=function(a,b){lJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
lJ=function(a){g.Wv("adsClientStateChange",a)};
Cta=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"}};
nJ=function(a){this.J=a;this.adVideoId=this.i=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.pe=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Ita=function(a,b,c,d,e){Gta(a,b,c,d,e,function(){Hta(a)})};
Gta=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.i=h.X);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;if(0>=d)f();else if(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.pe=!0,a.pe)){b={adBreakType:Jta(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},
videoStreamType:a.videoStreamType};"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId));if(c=a.J.N("web_csi_notification_ad_fix"))d=a.actionType,c=kz(d),d=vz(d),c=!!("ad_at"in c||"ad_at"in d);a.adFormat&&!c&&(b.adType=a.adFormat);a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn);a.videoId&&(b.videoId=a.videoId);a.adCpn&&(b.adClientPlaybackNonce=a.adCpn);a.adVideoId&&
(b.adVideoId=a.adVideoId);Cz(b,a.actionType)}};
Hta=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.pe=!1;a.u=!1};
Kta=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});zz("video_to_ad",b,void 0)};
Lta=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});zz("ad_to_ad",b,void 0)};
oJ=function(a){a.u=!1;var b={};!a.J.N("web_player_csi_ctt_killswitch")&&a.i&&a.videoId&&(b.cttAuthInfo={token:a.i,videoId:a.videoId});zz("ad_to_video",b,void 0)};
Mta=function(a){a.pe&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&(Bz("apbs",void 0,a.actionType),g.O("finalize_all_timelines")&&(a=a.actionType,xz("c",a),oz(a),wz(a))))};
Jta=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.Ota=function(a){return(a=Nta[a.toString()])?a:"LICENSE"};
pJ=function(){g.E.call(this);this.u=null;this.I=this.D=!1;this.B=new g.rf;g.H(this,this.B)};
qJ=function(a){a=a.Rv();return 1>a.length?NaN:a.end(a.length-1)};
Pta=function(a,b,c){a.ul()||a.getCurrentTime()>b||10<c||(a.play(),g.Mt(function(){Pta(a,a.getCurrentTime(),c+1)},500))};
Qta=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
rJ=function(a){return Ioa(a.Uf(),a.getCurrentTime())};
Rta=function(a,b){if(0===a.Ch()||0<a.nj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Rv(),a.length||!c)?TC(a,b):c};
Sta=function(a){var b=a.Uf();return 0<VC(b)&&a.getDuration()?b.end(b.length-1):0};
sJ=function(a){switch(a.nj()){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.tJ=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
uJ=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.tJ(b,c)};
vJ=function(a,b){return uJ(a,a.state|b)};
wJ=function(a,b){return uJ(a,a.state&~b)};
xJ=function(a,b,c){return uJ(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.yJ=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.zJ=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
AJ=function(a){return a.Ec()&&!g.T(a,16)&&!g.T(a,32)};
g.BJ=function(a){return g.T(a,1)&&!g.T(a,2)};
CJ=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
DJ=function(a,b,c,d,e,f,h,l){g.Q.call(this);this.Pf=a;this.J=b;this.u=d;this.K=this.u.u instanceof uG?this.u.u:null;this.i=null;this.Z=!1;this.D=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.xa=0;this.Aa=!1;this.Ql=e;this.hs=f;this.gp=h;this.oa=!1;this.daiEnabled=l};
Tta=function(a){if(vG(a.J)){var b=a.J.getVideoData(2);b=a.u.S[b.Bc]||null;if(!b)return a.Bk(),!0;(!a.i||a.i&&a.i.ad!==b)&&a.Cu(b)}else if(1===a.J.getPresentingPlayerType()&&a.i)return a.Bk(),!0;return!1};
Uta=function(a,b){a.J.N("web_csi_notification_ad_fix")?a.D.rp(a.u.i.i,b,a.tK(),a.RD(),a.isLiveStream()):Ita(a.D,a.u.i.i,b,a.RD(),a.isLiveStream())};
EJ=function(a){Vta(a.Pf,a.u.i,a);a.daiEnabled&&!a.u.I&&(Wta(a,a.vK()),a.u.I=!0)};
Wta=function(a,b){for(var c=FJ(a),d=a.u.i.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=Xta(h);e.push({externalVideoId:h.D,originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.i.start;h.B.B=c;if(!Yta(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Xta(p)},0);
Eta(a.Ql,a.u.i.Hv(),b);Fta(a.Ql,{cueIdentifier:a.u.C&&a.u.C.identifier,rR:e})};
Xta=function(a){var b=1E3*a.u;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
FJ=function(a){var b=a.u.i.end;a=jJ(a.hs,a.u.i.start,b);return Math.min(b,null===a?Infinity:a)};
Yta=function(a,b,c,d){var e=a.gp.create(b,SG(Lsa(a.u)),a.u.i.i);c=e.hK(c,d);g.re(e);if(!c)return!1;a.u.S[c]=b;return!0};
HJ=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.re(a.i);oJ(a.D);var c=a.u.K;if(null!==c){var d=a.Ql,e=a.u.C&&a.u.C.identifier,f=a.u.i.start,h=FJ(a);d.u&&lJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.In()).toString()}});a.u.K=null}b||a.daiEnabled?GJ(a.Pf,!0):a.X&&a.IH()&&a.lw()?GJ(a.Pf,!1,Zta(a)):GJ(a.Pf,!1);Uta(a,!0)};
Zta=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ta()/1E3)-a.xa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
$ta=function(a,b,c){this.i=a;this.u=b;this.B=c};
IJ=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.I=[];this.u=new Set;this.S=new Map};
JJ=function(){IJ.i||(IJ.i=new IJ);return IJ.i};
aua=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.Vx(c),l=g.Ux(c);h&&l&&((null===(e=null===d||void 0===d?void 0:d.response)||void 0===e?0:e.trackingParams)&&g.gy(a.client,h,l,[g.Rx(d.response.trackingParams)]),(null===(f=null===d||void 0===d?void 0:d.playerResponse)||void 0===f?0:f.trackingParams)&&g.gy(a.client,h,l,[g.Rx(d.playerResponse.trackingParams)]))})};
bua=function(a,b){KJ(a,g.Rx(b),void 0,void 0)};
KJ=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.Vx(d);c=c||g.Ux(d);e&&c&&g.gy(a.client,e,c,[b])}};
dua=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){cua(a,b,c);var f=g.Ux(c.layer);if(f){for(var h=g.q(a.D),l=h.next();!l.done;l=h.next())l=l.value,KJ(a,l[0],l[1]||f,c.layer);f=g.q(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Vx(h);var n=m[0]||g.Ux(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:Wx(l),Fm:l},"UNDEFINED_CSN"==l?fy("visualElementStateChanged",m,n):h?Jv("visualElementStateChanged",m,h,n):g.Wv("visualElementStateChanged",
m,n))}}};
g.Vx(c.layer)||a.B();if(c.bK)for(var d=g.q(c.bK),e=d.next();!e.done;e=d.next())aua(a,e.value,c.layer);else g.by(Error("Delayed screen needs a data promise."))};
cua=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.QW?c.QW:c.layer;var e=g.Vx(d);d=g.Ux(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.N("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.WJ,p=c.cttAuthInfo,r=c.mda,t=eua(),u={csn:t,pageVe:(new Qx({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?
(u.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},r&&(u.implicitGesture.gestureType=r)):l&&g.cy(new g.aw("newScreen() parent element does not have a VE - rootVe",b));n&&(u.cloneCsn=n);n={cttAuthInfo:p,Fm:t};m?Jv("screenCreated",u,m,n):g.Wv("screenCreated",u,n);Sw(Wla,new ey(t));var v=t}catch(y){Sla(y,{kx:b,rootVe:d,parentVisualElement:void 0,hda:e,Cda:f,WJ:c.WJ});g.by(y);return}Ela(v,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.O("screen_manager_skip_hide_killswitch"))){a:{b=
g.q(Object.values(fua));for(f=b.next();!f.done;f=b.next())if(g.Vx(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Tla(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=v||"");g.Az("csn",v);ny.getInstance().clear();d=g.Ux(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.O("web_mark_root_visible")||g.O("music_web_mark_root_visible"))&&g.hy(v,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.q(a.S);for(v=e.next();!v.done;v=e.next())b=g.q(v.value),v=b.next().value,b=b.next().value,b.has(c.layer)&&
d&&KJ(a,v,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(y){g.by(y)}}for(c=a.C.length=0;c<a.I.length;c++){e=a.I[c];try{e()}catch(y){g.by(y)}}};
LJ=function(){this.i={};if(this.u=Cia()){var a=g.ru("CONSISTENCY");a&&gua(this,{encryptedTokenJarContents:a})}};
gua=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.u&&g.qu("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
MJ=function(){var a=g.N("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.N("INNERTUBE_CLIENT_NAME")&&(this.localStorage=hua(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
hua=function(a){return void 0===a.localStorage?new Qv("yt-client-location"):a.localStorage};
NJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.N("INNERTUBE_CONTEXT");if(!d)return g.by(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Xe(d);g.O("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;var e,f;d.client||(d.client={});var h=d.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.N("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=
Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;g.Mv.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.Nv(0,165)?m="USER_INTERFACE_THEME_DARK":g.Nv(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.O("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(m="USER_INTERFACE_THEME_DARK");
l=l?m:nla()||m;h.userInterfaceTheme=l;if(!b){if(l=Cja())h.connectionType=l;g.O("web_log_effective_connection_type")&&(l=Eja())&&(d.client.effectiveConnectionType=l)}g.O("web_log_memory_total_kbytes")&&(null===(e=g.B.navigator)||void 0===e?0:e.deviceMemory)&&(e=null===(f=g.B.navigator)||void 0===f?void 0:f.deviceMemory,d.client.memoryTotalKbytes=""+1E6*e);f=g.Dt(g.B.location.href);!g.O("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(h.internalGeo=f.internalcountrycode);"MWEB"===h.clientName||
"WEB"===h.clientName?(h.mainAppWebInfo={graftUrl:g.B.location.href},g.O("kevlar_woffle")&&wja.i&&(h.mainAppWebInfo.pwaInstallabilityStatus=wja.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=Kv(),h.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===h.clientName&&(!g.O("web_lr_app_quality_killswitch")&&(f=g.N("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:f})),
f=g.N("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:f}));if(!g.O("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(F){}n=void 0}n&&(h.timeZone=n)}(n=rt())?h.experimentsToken=n:delete h.experimentsToken;n=tt();LJ.i||(LJ.i=new LJ);h=Me(LJ.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:n,consistencyTokenJars:h});
!g.O("web_prequest_context_killswitch")&&(n=g.N("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);h=g.Mv.getInstance();n=g.Nv(0,58);h=h.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);h&&(d.user.lockedSafetyMode=!0);g.O("warm_op_csn_cleanup")?c&&(b=g.Vx())&&(d.clientScreenNonce=b):!b&&(b=g.Vx())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ja("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.O("web_enable_client_location_service")&&
MJ.getInstance().setLocationOnInnerTubeContext(d);var p;try{var r=Jt(void 0),t=r.bid;delete r.bid;d.adSignalsInfo={params:[],bid:t};for(var u=g.q(Object.entries(r)),v=u.next();!v.done;v=u.next()){var y=g.q(v.value),z=y.next().value,C=y.next().value;r=z;t=C;null===(p=d.adSignalsInfo.params)||void 0===p?void 0:p.push({key:r,value:""+t})}}catch(F){g.by(F)}return d};
OJ=function(){this.IX=!0};
PJ=function(){OJ.apply(this,arguments);this.Eq={}};
RJ=function(){QJ||(QJ=new PJ);return QJ};
iua=function(a,b){b?a.Eq.Authorization="Bearer "+b:delete a.Eq.Authorization};
jua=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
kua=function(){var a=null;Oia().then(function(b){return a=b},function(b){return a=jua(b)});
return a};
lua=function(){var a=Zh(1E3,"NO_BID");return Oh(kba([Oia(),a]).yh(jua),function(){return a.cancel()})};
mua=function(a){return a.Fb?g.Nv(g.Mv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
SJ=function(a){this.player=a;this.u=this.i=1};
UJ=function(a,b,c,d){c=void 0===c?{}:c;var e=c.fv,f=c.Gd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.V().fk,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:mua(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.In(),LACT:jv(),LIVE_INDEX:e?a.u++: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.eb().rg().height,
P_W:a.player.eb().rg().width,YT_REMOTE:h?h.join(","):""},m=lia(kia);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};It(b)&&(d.sts="18954",(e=a.player.V().Za)&&(d.forced_experiments=e));b=Ft(g.zr(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Kh(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&Ht()){var n=RJ();iua(n,d)}n=a.player.Xl(n);a=nua(a,b,l,c.isMdxPlayback);return g.TJ(n,a,"/youtubei/v1/player/ad_break")};
qua=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Gt(b),f=oua(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=oua(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=At(Jt(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=[];pua.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};
tua=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 rua&&(f.clientName=rua[d[0]]),d[1]in sua&&(f.platform=sua[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};
nua=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=uua.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=vua.test(b),l=wua.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=xua.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=yua.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.EE(a.player.V()),r=NJ(a.player.getVideoData(1).Za,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";qua(r,b,t.toString(),a.player.V());var u=
{splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18954,autonavState:mua(a.player.V())};d&&(d={},tua(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=zua.includes(p)?void 0:g.ru("PREF")){for(var v=d.split(RegExp("[:&]")),y=0,z=v.length;y<z;y++){var C=v[y].split("=");if(("SML"===C[0].toUpperCase()||"GSML"===C[0].toUpperCase())&&1<C.length&&"TRUE"===C[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
Aua)for(d=d.split(RegExp("[:&]")),y=Aua.FLAG_AUTO_CAPTIONS_DEFAULT_ON,v="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,C=d.length;z<C;z++){var F=d[z].split("=");if(F[0]===v&&parseInt("0x"+F[1],16)&y){d=!0;break a}}d=!1}u.autoCaptionsDefaultOn=d}b=Bua.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(r.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,
isProxyAdTagRequest:h,context:r,adSignalsInfoString:At(Jt(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());a.player.V().N("html5_populate_media_position_in_ad_break_request")&&(f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1)));return f};
VJ=function(a,b,c,d,e,f){g.Q.call(this);this.I=a;this.u=b;this.B=c;this.D=d;this.i=e;this.C=f;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")||Cua(this)};
Dua=function(a,b){var c={isEmpty:!0,tL:!1,Il:[]};if(!b)return c;b&&b.trackingParams&&bua(JJ(),b.trackingParams);if(b&&b.adThrottled)return c.tL=!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.Xb(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.Il=b;
c.isEmpty=!1;return c};
Cua=function(a){[a.i.X,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Vta(a.u,b,a)})};
WJ=function(a,b,c,d,e,f,h,l){DJ.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.S=Eua(this.rz())};
Fua=function(a){a.C++;var b=a.rz();b?(0<a.C&&Lta(a.D),a.Cu(b)):HJ(a)};
Eua=function(a){return a?Gua.some(function(b){return a instanceof b}):!1};
Hua=function(a){this.i=new $ta(function(b){b=new DJ(a.Pf,a.J,a.VJ(),b,a.Ql,a.hs,a.gp,a.daiEnabled);EJ(b);return b},function(b){return new VJ(a.QC,a.Pf,a.J,a.fp,b,a.Ql)},function(b){b=new WJ(a.Pf,a.J,a.VJ(),b,a.Ql,a.hs,a.gp,a.daiEnabled);
EJ(b);return b})};
Iua=function(a,b){HG.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Wv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),IG(this,new tH(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);IG(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new pH(d.adActionInterstitialRenderer),
IG(this,d)):d.adIntroRenderer&&(d=new sH(d.adIntroRenderer),IG(this,d),this.u=1);this.i.filter(function(f){return f instanceof GG}).forEach(function(f,h){f instanceof GG&&(h=new EG(h,c),f.B=h)})}}};
Kua=function(a,b){HG.call(this);IG(this,Jua(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new NG(c.instreamSurveyAdRenderer);break a}}b=null}IG(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new pH(a.adActionInterstitialRenderer)):a=null:a=null;IG(this,a)};
Jua=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new pH(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Wv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new tH(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new uH(b.surveyTextInterstitialRenderer):null};
Lua=function(a,b,c){this.B=a;this.i=b;this.u=c};
Mua=function(a){this.i=a};
Nua=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 Gsa(b,c,h,d)}catch(l){g.vt(l)}};
Oua=function(a){var b=new Mua(a.kR);return{sK:function(){return b}}};
XJ=function(a){g.E.call(this);var b=this;this.u=a;this.i=null;g.te(this,function(){return b.i=null});
var c=Bx(a);if(c){var d=function(){b.i&&b.i(!!zx())};
this.u.addEventListener(c,d);g.te(this,function(){b.u.removeEventListener(c,d)})}};
YJ=function(a){g.E.call(this);this.i=a};
Pua=function(a){var b=window.document;return g.LE(a.V())?new XJ(b):new YJ(a)};
Qua=function(a){g.E.call(this);this.yP=new Bta(a.J,a.contentCpn,a.daiEnabled)};
Rua=function(a){ZJ=a&&a.data};
Tua=function(a){Sua=a&&a.data};
Uua=function(a){$J=a&&a.data};
Vua=function(a){aK=a&&a.data};
Wua=function(a){bK=a&&a.data};
Xua=function(){bK=aK=$J=ZJ=null};
eK=function(a){g.E.call(this);var b=this;this.Mc=a;this.Od=new Map;this.i=new Map;cK(this,"commandExecutorCommand",function(c,d,e){b.zd(c.commands,d,e)});
dK(this,"commandExecutorCommand",function(c,d){Yua(b,c.commands,d)});
cK(this,"clickTrackingParams",function(){});
dK(this,"clickTrackingParams",function(){})};
Zua=function(a,b){cK(a,b.Gk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
$ua=function(a,b){dK(a,b.Gk(),function(c,d){b.fm(c,d)})};
cK=function(a,b,c){a.isDisposed();a.Od.get(b)&&g.by(Error("Extension name "+b+" already registered"));a.Od.set(b,c)};
dK=function(a,b,c){a.isDisposed();a.i.get(b)&&g.by(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
Yua=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())fK(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())fK(a,b.value,c)};
ava=function(a,b){a.Mc.get().Oa("innertubeCommand",{openPopupAction:b})};
bva=function(a,b){a.Mc.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
fK=function(a,b,c){a.isDisposed();b.loggingUrls&&cva(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?ava(a,e):"confirmDialogEndpoint"===d?bva(a,e):dva.hasOwnProperty(d)||cva(a,d,e,c)}};
eva=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Od.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.by(f)}else b=new g.aw("Unhandled field",b),g.cy(b)};
cva=function(a,b,c,d){(a=a.i.get(b))||new g.aw("Unhandled field",b);try{a(c,d)}catch(e){g.by(e)}};
gva=function(a,b,c,d){for(var e=!1,f=g.q(b.Sh.entries()),h=f.next();!h.done;h=f.next())h=g.q(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.qb&&"core"===h.ib&&(e=!0);e?(d=fva(b,d))?c.qE(d):R("No triggering layout ID available when attempting to mute."):(0,g.Ah)(function(){a.Bk()})};
fva=function(a,b){if(b)return b;a=g.q(a.Sh.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.qb&&"core"===b.ib)return c.layoutId}};
hva=function(a){var b=new VG(a.zp),c=new WG(b);return{hS:function(){return b},
eE:function(){return c}}};
Usa=function(a){switch(a){case "abandon":case "unmuted_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 "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":return"skip";case "start":case "unmuted_start":return"start";
case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
iva=function(a){this.J=a;var b=om(tr),c=a.Sd();b.B!==c&&((b.B=c)||nea(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&em(Bn().featureSet,"ssmol",1)};
jva=function(a){g.E.call(this);this.i=a;this.u=new iva(a.J)};
kva=function(a){return function(){return new nJ(a.i.J)}};
lva=function(a){return function(b,c){return new Osa(b,a.u,c,a.i.J,a.i.Ph,a.i.daiEnabled)}};
gK=function(a,b,c,d,e){g.Q.call(this);var f=this;this.i=b;this.Ka=null;this.bb=c;this.ob=e.Tf;this.Za=e.Fo;this.u=null;this.B=new Map;c=this.i.V().experiments;var h=hva({zp:b.getVideoData(1)}),l=new jva({Ph:h.eE(),J:b,daiEnabled:!1});g.H(this,l);this.hp=new Set;this.Jz=-1;this.Z=[];this.I=null;this.oa=new Map;this.K=new Map;this.S=new Set;this.C=new Cx(this);g.H(this,this.C);this.D=new Cx(this);g.H(this,this.D);this.xa=this.Wa=this.Aa=!1;this.X=g.LE(b.V());this.jb=d;d=new Qua({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
fda:this,daiEnabled:!1,J:this.i});g.H(this,d);this.Ja=d.yP;this.Sa=(new zta({gda:this,Hda:c.kb("html5_recognize_predict_start_cue_point"),Dda:c.kb("html5_persist_cue_range_killswitch")})).i;var m=$e(SG(QG(this.i)));e=new xta({Xa:this,Gp:DG(),Ph:h.eE(),J:this.i,UW:m,sB:lva(l),daiEnabled:!1,pm:e.pm,Tf:this.ob,xj:e.xj,nm:e.nm});this.Ba=(new Hua({fp:this.bb,gp:e.jR,QC:a,Pf:this,Gp:DG(),VJ:kva(l),Ql:this.Ja,hs:this.Sa,J:this.i,Pda:m,sB:function(n){return lva(l)(n,m)},
daiEnabled:!1})).rK();this.La=Oua({kR:new Lua(new zsa(b),c,function(n){return f.K.has(n)?f.K.get(n):null})}).sK();
this.Va=Pua(this.i);g.H(this,this.Va);this.rb=RE(this.i.V())?this.i.V().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.i.V().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit")};
qva=function(a,b){var c=a.i.getVideoData(1);if(c.tp||g.N("SERVED_VIA_SPF_HISTORY"))hK(a);else{if(wG(a.i)){var d=mva(a.i);d.addEventListener("updateKevlarOrC3Companion",Rua);d.addEventListener("onPlaShelfInfoCardsReady",Tua);d.addEventListener("updateEngagementPanelAction",Uua);d.addEventListener("changeEngagementPanelVisibility",Vua);d.addEventListener("scrollToEngagementPanel",Wua);window.addEventListener("yt-navigate-start",Xua)}a.C.T(a.i,"applicationplayerstatechange",a.fU);a.C.T(a.i,g.Vy("ad"),
a.vF,a);a.C.T(a.i,g.Wy("ad"),a.zU,a);a.C.T(a.i,"aduxclicked",a.RT);a.C.T(a.i,"videodatachange",a.FW);b=nva(a,b);b=ova(a,b);b=pva(a,b);0<b.length&&iK(a,b);a.I&&c.subscribe("cuepointupdated",a.wM,a);g.Ah(a.gY,a)}};
nva=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(a.i.V().experiments.kb("html5_pacf_enable_non_dai_live_video_ads"))return R("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.LE(a.i.V())&&a.i.getVideoData(1).uf()||(a.I=c);return!1}return!0})};
ova=function(a,b){a.oa=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.oa.set(c.elementId,c),!1):!0})};
pva=function(a,b){a.K=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.K.set(c.hostElementId,c),!1):!0})};
rva=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.vt(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof VJ?!1:c instanceof DJ?!c.Wp():!0})};
hK=function(a){var b=sva(a);if(0<b.length){var c=g.S(a.i.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.X&&g.zE(a.i.V())?(c=new g.I(function(){tva(a,b)},c),g.H(a,c),c.start()):g.Ah(function(){tva(a,b)})}};
sva=function(a){for(var b=uva(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.hp.delete(d.value);return b};
uva=function(a){var b=[];a=g.q(a.hp);for(var c=a.next();!c.done;c=a.next())c=c.value,Yy(c)&&b.push(c);return b};
vva=function(a,b,c){c=void 0===c?null:c;var d=a.La,e=d.create;var f=1E3*a.i.getDuration(1);f=new mma(f,1E3*a.i.getCurrentTime(1)||0,!1,a.i.V().experiments.kb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Z.length,c);a.Z=a.Z.concat(b);return b};
tva=function(a,b){if(!a.isDisposed()){b=g.q(b);for(var c=b.next();!c.done;c=b.next())a.vF(c.value)}};
iK=function(a,b,c){b=vva(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Ba.create(d)})};
wva=function(a){a.Aa||(a.D.T(a.i,"presentingplayerstatechange",a.zP),a.D.T(a.i,"internalAbandon",a.ET),a.D.T(a.i,"progresssync",a.IW),a.D.T(a.i,"onVolumeChange",a.JW),a.D.T(a.Va,"fullscreentoggled",a.IU),a.Aa=!0);g.L(a.i.getRootNode(),"ad-showing");g.L(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.kb("enable_html5_teal_ad_badge")&&wG(a.i)&&g.L(a.i.getRootNode(),"ad-teal-design");a.i.dl(2)};
GJ=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Wp()&&(vG(a.i)||!1);d=b&&d&&d.reset()||null;a.u&&xva(a,a.u);a.u=null;a.Jz=-1;e&&yva(a,c);a.xa||a.Za.Fp();b&&d&&(d.HH().B=!1,EJ(d))};
yva=function(a,b){g.Ex(a.D);a.Aa=!1;g.Nr(a.i.getRootNode(),"ad-showing");a.rb?(a.xa||a.Za.Fp(),zva(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),zva(a));g.Nr(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.kb("enable_html5_teal_ad_badge")&&g.Nr(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
zva=function(a){if(a.Wa)!a.X&&g.zE(a.i.V())&&a.i.Jo(2);else if(a.i.Jo(2),!a.X){var b=a.i.zb(1);g.T(b,4)&&!g.T(b,2)&&a.i.playVideo()}};
Vta=function(a,b,c){if(b instanceof Xy){if(a.X&&Cma(b)&&g.T(a.i.zb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.B.has(b)?g.vt(Error(b.toString()+" has already been seen")):(a.hp.add(b),a.B.set(b,c),Yy(b)||a.i.Ed([b],1))}else g.vt(Error("Should use AdCueRange instead of CueRange"))};
xva=function(a,b){a=a.B;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.re(b)};
jK=function(a){g.E.call(this);this.u=a};
kK=function(a){jK.call(this,!0);this.i=a};
Ava=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.Gl||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.gz()});
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 jv().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Bva=function(a,b){g.E.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.I=this.C=!1;this.Z=null;var d=(0,g.D)(a,b);this.i=new g.I(function(){return d(c.Z)},300);
g.H(this,this.i);this.X=this.S=Infinity};
Cva=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
lK=function(){var a="ytp-id-"+Dva.toString();Dva++;return a};
g.mK=function(a){g.E.call(this);this.ob={};this.Zc={};this.element=this.createElement(a)};
nK=function(a,b,c,d){if("{{"===d.substr(0,2))a.Zc[d]=[b,c];else return d};
Eva=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.G?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.ch("BR"));c.push(g.dh(f))}):c.push(g.dh(d))}return c};
oK=function(a,b,c,d){if("child"===c){g.eh(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=Eva(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Hm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Rf(g.Xf(a))),b.setAttribute(c,a))};
g.W=function(a){g.mK.call(this,a);this.yb=!0;this.oa=!1;this.listeners=[]};
g.pK=function(a,b){b?a.show():a.hide()};
g.qK=function(a){g.W.call(this,a);this.Sa=new g.Q;g.H(this,this.Sa)};
rK=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.qK.call(this,c);this.api=a;this.Xa=b;this.macros={};this.componentType=d;this.K=null;this.jb=h;this.layoutId=e;this.i=f;this.Va=null;this.mG=new kK(this.element);g.H(this,this.mG);this.bb=this.T(this.element,"click",this.onClick);this.Aa=[];this.xa=new Bva(this.onClick,this);g.H(this,this.xa);this.rb=!1;this.X=null};
Fva=function(a,b,c){a.Xa?a.Xa.executeCommand(b,a.macros,c):g.vt(Error("null or undefined adService"))};
sK=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return xt(Error("Got null or undefined adText object")),"";var c=g.Eg(a.text);if(!a.isTemplated)return c;if(null==b)return xt(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};
Gva=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Xb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Eg(a.thumbnails[0].url)};
Hva=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Xb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.yg(0,0):new g.yg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.Iva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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"}}]}};
tK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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.uK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{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.vK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{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"}}]}};
Jva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",W:{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"}}]}};
Kva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Lva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.wK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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"}}]}};
Mva=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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"}}]}};
Nva=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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"}}]}};
Ova=function(){return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{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"}}]}};
Pva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.xK=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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"}}]}};
yK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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"}}]}};
Qva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
zK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.AK=function(){return{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{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"}}]}};
Rva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Sva=function(){return{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",L:"ytp-svg-fill",W:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
Tva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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"}}]}};
Uva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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"}}]}};
Vva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.BK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.CK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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"}}]}};
Wva=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
DK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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"}}]}};
EK=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",W:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.wK();case "INFO_OUTLINE":return Ova();case "REMOVE_CIRCLE":return{G:"svg",
W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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 zK();case "LIKE":return g.xK();case "DISLIKE":return Nva();default:return g.cy(new g.aw("Unexpected icon:",a)),null}};
FK=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",Ha:["ytp-ad-button"].concat(e)};null!=l&&(e.W={tabindex:l});rK.call(this,a,b,e,void 0===f?"button":f,c,d);this.u=this.B=this.C=null;this.D=h;this.hide()};
Xva=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
GK=function(){g.E.call(this);var a=this;this.i=new Map;this.u=Wia(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.kv(b[c],void 0,void 0)})};
Yva=function(){null==HK&&(HK=new GK);return HK};
IK=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Zva(a))){b=bh("SPAN",null,b);break a}b=g.dh(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($va(e,b))}return 1==c.length?c[0]:bh("SPAN",null,c)};
$va=function(a,b){var c=null,d=a.text;b&&(d=Zva(d)||d);a.bold&&(c=bh("B",null,c||d));a.italics&&(c=bh("I",null,c||d));a.strikethrough&&(c=bh("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=bh("A",null,c||d),g.pg(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Yva().register(c,a),g.L(c,"ytp-ad-has-logging-urls"));
return c||bh("SPAN",null,d)};
Zva=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(bh("BR")),b.push(a[c]);return b}return null};
JK=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;rK.call(this,a,b,{G:"span",Ha:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.B=null;this.I=f;this.D=e;this.hide()};
KK=function(a){return a&&a.thumbnails&&!g.Xb(a.thumbnails||null)&&a.thumbnails[0].url?g.Eg(a.thumbnails[0].url):""};
LK=function(a,b,c,d,e,f){f=void 0===f?!1:f;rK.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.u=f;this.hide()};
MK=function(a,b,c,d,e,f){e=void 0===e?[]:e;rK.call(this,a,b,{G:"div",Ha:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ha:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",va:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
va:"{{confirmLabel}}"}]}]}]},{G:"button",Ha:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.wK()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.S=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.I=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new Cx;g.H(this,this.u);this.B=null;this.hide()};
awa=function(a,b){if(b.title){var c=g.$y(b.title);a.Pa("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=IK(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.$y(b.cancelLabel),a.Pa("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.cC(e)}));
b.confirmLabel&&(b=g.$y(b.confirmLabel),a.Pa("confirmLabel",b),a.u.T(a.I,"click",function(e){return a.uF(e)}));
a.u.T(a.S,"click",function(e){return a.tF(e)})};
NK=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=yG("ytp-ad-toggle-button-input");rK.call(this,a,b,{G:"div",Ha:["ytp-ad-toggle-button"].concat(e),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":h},U:[{G:"span",L:"ytp-ad-toggle-button-icon",W:{role:"button","aria-label":"{{tooltipText}}"},U:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",va:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",va:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",va:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",va:"{{tooltipText}}"}]}]},f,c,d);this.C=this.Fa("ytp-ad-toggle-button");this.u=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.Z=this.Fa("ytp-ad-toggle-button-icon");this.I=this.Fa("ytp-ad-toggle-button-untoggled-icon");this.D=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Ba=this.Fa("ytp-ad-toggle-button-text");
this.B=null;this.S=!1;this.hide()};
OK=function(a){a.S&&(a.isToggled()?(g.bn(a.I,!1),g.bn(a.D,!0)):(g.bn(a.I,!0),g.bn(a.D,!1)))};
bwa=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
PK=function(a){Cx.call(this);this.i=a;this.T(this.i,"onAdUxUpdate",this.S)};
QK=function(a,b,c,d){rK.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",U:[{G:"div",L:"ytp-ad-feedback-dialog-container",U:[{G:"div",L:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-feedback-dialog-title",U:[{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",va:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.u=null;this.I=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.S=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Fa("ytp-ad-info-dialog-feedback-options");this.Ba=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
fwa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new FK(a.api,a.Xa,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(yG("button"),c,a.macros),a.u.Ra("click",a.rM,a),a.u.Ea(a.element));b.title&&(c=g.$y(b.title),a.Pa("title",c));b.reasonsTitle&&(c=g.$y(b.reasonsTitle),a.Pa("reasonsTitle",c));b.reasons&&cwa(a,b.reasons);b.cancelLabel&&(c=g.$y(b.cancelLabel),a.Pa("cancelLabel",c),g.Vu(a.I,"click",function(){return a.rM()}));
b.confirmLabel&&(c=g.$y(b.confirmLabel),a.Pa("confirmLabel",c),g.Vu(a.S,"click",function(){return dwa(a)}));
b.undoRenderer&&ewa(a,b.undoRenderer)};
cwa=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?xt(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?xt(Error("AdFeedbackReason.endpoint was not set.")):(c=new gwa(c,d),g.H(a,c),a.Z.appendChild(c.i.element),a.D.push(c)))}};
ewa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new FK(a.api,a.Xa,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(yG("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ra("click",a.EW,a),a.B.Ea(a.Ba)):xt(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
dwa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Xa.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
gwa=function(a,b){this.u=b;this.i=new g.qK({G:"label",L:"ytp-ad-feedback-dialog-reason-label",U:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",va:g.$y(a)}]});this.B=this.i.Fa("ytp-ad-feedback-dialog-reason-input")};
RK=function(a,b,c,d){MK.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
SK=function(a,b,c,d,e){rK.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",U:[{G:"div",L:"ytp-ad-info-dialog-container",U:[{G:"div",L:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-info-dialog-title",va:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.u=this.B=null;this.S=this.Fa("ytp-ad-info-dialog-confirm-button");this.Wa=this.Fa("ytp-ad-info-dialog-mute-container");this.La=this.Fa("ytp-ad-info-dialog-message");this.Ja=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ba=e;this.I=null;this.Ka=!1;this.Z=null;this.hide()};
hwa=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Xa.executeCommand(b,a.macros)})};
iwa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new QK(a.api,a.Xa,a.layoutId,a.i),g.H(a,a.B),a.B.init(yG("ad-feedback-dialog"),b,a.macros),a.B.Ea(a.Ba),a.B.subscribe("a",function(){return a.ea("c")})};
jwa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new RK(a.api,a.Xa,a.layoutId,a.i),g.H(a,a.D),a.D.init(yG("ad-mute-confirm-dialog"),b,a.macros),a.D.Ea(a.Ba),a.D.subscribe("b",function(){return a.ea("c")})};
kwa=function(a){a.u&&a.u.Ra("click",a.UH,a);g.Vu(a.S,"click",function(){return a.UH()})};
TK=function(a,b,c,d,e,f){JK.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=e;this.hide()};
lwa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.vt(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new SK(a.api,a.Xa,a.layoutId,a.i,a.C),g.H(a,a.u),a.u.init(yG("ad-info-dialog"),b,c),a.u.Ea(a.C),a.u.subscribe("d",function(){return a.ea("f")}),a.u.subscribe("c",function(){return a.ea("e")}))};
nwa=function(a,b,c){null==a.button?g.vt(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.L(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(lwa(a,b,c),a.button.Ra("click",function(){a.u&&!a.u.yb&&(a.u.show(),mwa(a))})):a.button.Ra("click",function(){return mwa(a)}))};
mwa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
UK=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.u=null;this.hide()};
VK=function(a,b){b&&g.oh(a.element,sK(a.u,b))};
WK=function(a,b,c,d,e,f,h){rK.call(this,a,b,c,d,e,f);this.u=h;g.H(this,this.u);this.Ja=this.D=-1};
XK=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.Go,a),a.Ja=a.u.subscribe("g",a.Bq,a),a.Go())};
YK=function(a){null!=a.u&&-1!==a.D&&(a.u.eg(a.D),a.u.eg(a.Ja),a.Ja=-1,a.D=-1)};
g.ZK=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.i=f;this.u=e;this.delay=new g.I(this.yB,0,this);g.H(this,this.delay)};
$K=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
aL=function(a,b,c,d,e,f){WK.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.La=-1;this.B=new g.qK({G:"span",L:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ea(this.B.element);this.S=new g.qK({G:"span",L:"ytp-ad-preview-image"});g.H(this,this.S);this.I=new LK(this.api,this.Xa,this.layoutId,this.i);g.H(this,this.I);this.I.Ea(this.S.element);this.S.Ea(this.B.element);
this.B.Ea(this.element);this.Z=new g.ZK(this.B,400,!1,100,function(){return h.hide()});
g.H(this,this.Z);this.Ba=0;this.Ka=!1;this.Wa=f;this.hide()};
bL=function(a){a.Z.show(100);a.show()};
cL=function(a,b,c,d,e){WK.call(this,a,b,{G:"div",Ha:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",U:[{G:"div",L:"ytp-flyout-cta-text-container",U:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.S=new LK(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-icon");g.H(this,this.S);this.S.Ea(this.Fa("ytp-flyout-cta-icon-container"));
this.I=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-headline");g.H(this,this.I);this.I.Ea(this.Fa("ytp-flyout-cta-headline-container"));this.C=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ea(this.Fa("ytp-flyout-cta-description-container"));this.B=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.H(this,this.B);this.B.Ea(this.Fa("ytp-flyout-cta-action-button-container"));this.Z=null;this.Ba=0;this.hide()};
dL=function(a,b,c,d,e){rK.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.u=null;this.C=new NK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ea(this.element);this.B=new NK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ea(this.element);this.D=new g.ZK(this,400,!1,500,function(){return f.hide()});
g.H(this,this.D);this.hide()};
owa=function(a,b){a.C.init(yG("toggle-button"),a.u.likeButton.toggleButtonRenderer,b);a.B.init(yG("toggle-button"),a.u.dislikeButton.toggleButtonRenderer,b);a.T(a.element,"change",a.WH)};
eL=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.B=a;this.u=!1;this.X=d;this.I=!1;this.i=null;0<b&&(this.i=new g.I(this.nJ,b,this),g.H(this,this.i));this.D=new g.I(this.nJ,c,this);g.H(this,this.D);this.S=Qea(this.B,e,1,d);g.H(this,this.S);this.K=Qea(this.B,0,d,1);g.H(this,this.K);this.C=new Cx;g.H(this,this.C)};
fL=function(a,b,c,d,e,f){WK.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.S=null;this.Ba=!1;this.Ka=f;this.C=new g.qK({G:"span",Ha:["ytp-ad-skip-button-container"]});g.H(this,this.C);this.C.Ea(this.element);this.B=this.I=null;this.La=new g.ZK(this.C,500,!1,100,function(){return h.hide()});
g.H(this,this.La);this.Z=new eL(this.C.element,15E3,5E3,.5,.5);g.H(this,this.Z);this.hide()};
qwa=function(a){var b=a.S&&a.S.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?pwa(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
pwa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
gL=function(a,b,c,d,e,f){WK.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Z=f;this.I=!1;this.S=0;this.C=this.B=null;this.hide()};
rwa=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.Z.hide():a.B.hide()),b?(a=a.C,a.La.show(),a.show()):a.C.show())};
hL=function(a,b,c,d){FK.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
iL=function(a,b,c,d,e){e=void 0===e?!1:e;rK.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.u=e;this.hide()};
jL=function(a,b,c,d,e){e=void 0===e?!1:e;zG.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.i=d;this.Ti=e};
kL=function(a,b){g.Q.call(this);this.api=a;this.durationMs=b;this.i=null;this.Ce=new Cx(this);g.H(this,this.Ce);this.u=swa;this.Ce.T(this.api,"presentingplayerstatechange",this.Nc);this.i=this.Ce.T(this.api,"onAdPlaybackProgress",this.Xb)};
lL=function(a,b){g.Q.call(this);this.Xa=b;this.u=!1;this.i=0;this.Ce=new Cx(this);g.H(this,this.Ce);this.durationMs=a;this.timer=new g.Xh(100);g.H(this,this.timer);this.Ce.T(this.timer,"tick",this.Xb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.mL=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.nL=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)};
oL=function(a,b,c,d,e,f){WK.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
pL=function(a,b,c,d){UK.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
qL=function(a,b){this.u=a;this.i=b};
rL=function(a){return a.i-a.u};
sL=function(a,b){return a.u+b*rL(a)};
tL=function(a,b,c){return rL(a)?g.sg((b-a.u)/rL(a),0,1):null!=c?c:Infinity};
uL=function(a,b){g.qK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Hc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
vL=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=f;this.S=this.Fa("ytp-ad-player-overlay-flyout-cta");this.B=this.Fa("ytp-ad-player-overlay-instream-info");this.C=null;twa(this)&&(a=
bh("div"),g.L(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new pL(this.api,this.Xa,this.layoutId,this.i),c.Ea(a),c.init(yG("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ba=this.Fa("ytp-ad-player-overlay-progress-bar");this.Z=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.u=e;g.H(this,this.u);this.hide()};
twa=function(a){a=a.api.V();return g.tE(a)&&a.isMobile};
vwa=function(a,b){var c=void 0===c?!0:c;var d=g.N("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Ji(window.location.href);e&&d.push(e);e=g.Ji(a);if(g.Wb(d,e)||!e&&gb(a,"/"))if(g.O("autoescape_tempdata_url")&&(d=document.createElement("a"),g.pg(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.Vx()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&uwa(a,b,f)}else uwa(a,b)};
uwa=function(a,b,c){a="ST-"+Gg(a).toString(36);b=b?g.Si(b):"";c=c||5;Nu()&&g.qu(a,b,c)};
wL=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.kv(d)};
g.xwa=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?dk:e;e=fk(a,e)||wwa;d.href=ik(e)};
g.xL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.N("EVENT_ID");d&&(b.ei||(b.ei=d));b&&vwa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.xwa(a))};
g.yL=function(a,b,c,d){c&&vwa(a,c);c=g.Xf(a);c=g.Rf(c);a!=c&&xt(Error("Unsafe window.open URL: "+a));a=c;b=b||Gg(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=ywa(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)};
ywa=function(a){return"www.googleadservices.com"!==g.Ji(a)?a:a+"&nis=3"};
g.zL=function(a,b,c){b=zwa(null,b,c);if(b=qg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.rv("LOGGED_IN",function(d){g.tv(g.N("LOGGED_IN_PUBSUB_KEY",void 0));ot("LOGGED_IN",!0);a(d)}),ot("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
zwa=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};
Awa=function(a,b){var c,d;if(!a)return!1;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Lq)return!!b.Lq[a.signalServiceEndpoint.signal];if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.sD)return!!b.sD[a.continuationCommand.request];for(var e in a)if(b.pD[e])return!0;return!1};
Bwa=function(a,b){var c,d;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Lq){var e=b.Lq[a.signalServiceEndpoint.signal];if(e)return e()}if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.sD&&(e=b.sD[a.continuationCommand.request]))return e();for(var f in a)if(b.pD[f]&&(a=b.pD[f]))return a()};
AL=function(a){return function(){return new a}};
Dwa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Cwa[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(Cwa).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.BL=function(a){return"/youtubei/v1/"+Dwa(a)};
CL=function(a){var b=g.N("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Li(a)));return a};
Ewa=function(a,b){g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=Ft(a,{key:g.N("INNERTUBE_API_KEY")}));return a};
DL=function(a,b){return{method:void 0===b?"POST":b,mode:Gt(a)?"same-origin":"cors",credentials:Gt(a)?"same-origin":"include"}};
EL=function(){};
FL=function(){};
GL=function(a,b,c,d){this.B=a;this.Xe=b;this.u=c;this.C=d;this.i=void 0;a.Lq||(a.Lq={});a.Lq=Object.assign(Object.assign({},Fwa),a.Lq)};
Gwa=function(a,b,c,d){if(void 0!==GL.i){if(d=GL.i,a=[a!==d.B,b!==d.Xe,c!==d.u,!1,!1,void 0!==d.i],a.some(function(e){return e}))throw new g.aw("InnerTubeTransportService is already initialized",a);
}else GL.i=new GL(a,b,c,d)};
IL=function(a,b,c){var d=void 0===d?HL:d;var e=Bwa(b,a.B);if(!e)return Kh(new g.aw("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new Fh(function(h){var l,m,n;return g.A(function(p){if(1==p.i)return m="cors"===(null===(l=f.Fq)||void 0===l?void 0:l.mode)?"cors":void 0,g.x(p,Hwa(a,f.config,m),2);n=p.u;h(Iwa(a,f,n));g.ta(p)})}):Kh(new g.aw("Error: Failed to build request for command.",b))};
g.TJ=function(a,b,c,d,e){e=void 0===e?{mp:{identity:HL}}:e;var f=void 0===f?!0:f;b.context||(b.context=NJ(d,f));return new Fh(function(h){var l,m,n,p,r;return g.A(function(t){if(1==t.i)return l=CL(c),m=Gt(l)?"same-origin":"cors",g.x(t,Hwa(a,e,m),2);n=t.u;p=Ewa(CL(c),n);r={input:p,Fq:DL(p),Ok:b,config:e};h(Iwa(a,r,n));g.ta(t)})})};
Iwa=function(a,b,c){var d,e,f,h,l,m,n,p,r,t,u,v,y,z;return g.A(function(C){switch(C.i){case 1:C.fb(2);break;case 3:if((m=C.u)&&!m.isExpired())return C.return(Promise.resolve(m.i()));case 2:if(null===(d=null===b||void 0===b?void 0:b.Ok)||void 0===d?0:d.context)for(n=g.q([]),p=n.next();!p.done;p=n.next())r=p.value,r.Gda(b.Ok.context);if(null===(e=a.i)||void 0===e?0:e.C(b.input,b.Ok))return C.return(a.i.B(b.input,b.Ok));t=JSON.stringify(b.Ok);b.Fq=Object.assign(Object.assign({},b.Fq),{headers:c});u=
Object.assign({},b.Fq);"POST"===b.Fq.method&&(u=Object.assign(Object.assign({},u),{body:t}));(null===(f=b.config)||void 0===f?0:f.hX)&&Bz(b.config.hX);return g.x(C,a.Xe.fetch(b.input,u,b.config),4);case 4:v=C.u;(null===(h=b.config)||void 0===h?0:h.lX)&&Bz(b.config.lX);if(v||null===(l=a.i)||void 0===l||!l.i(b.input,b.Ok)){C.fb(5);break}return g.x(C,a.i.u(b.input,b.Ok),6);case 6:v=C.u;case 5:if(v&&a.C)for(y=g.q(a.C),p=y.next();!p.done;p=y.next())z=p.value,z.handleResponse(v,b);return C.return(v)}})};
Hwa=function(a,b,c){return g.A(function(d){if(a.u.IX){var e=d.return,f,h,l=(null===(h=null===b||void 0===b?void 0:b.mp)||void 0===h?void 0:h.identity)||HL;h=null===(f=null===b||void 0===b?void 0:b.mp)||void 0===f?void 0:f.sessionIndex;f=a.u.jz(l,{sessionIndex:h});f=Object.assign(Object.assign({},Jwa(c)),f);d=e.call(d,f)}else d=d.return(Kwa(a,b,c));return d})};
Kwa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){f=(null===(d=null===b||void 0===b?void 0:b.mp)||void 0===d?void 0:d.identity)||HL;h=null===(e=null===b||void 0===b?void 0:b.mp)||void 0===e?void 0:e.sessionIndex;var n=Jh(a.u.jz(f,{sessionIndex:h}));return g.x(m,n,2)}l=m.u;return m.return(Promise.resolve(Object.assign(Object.assign({},Jwa(c)),l)))})};
Jwa=function(a){var b={"Content-Type":"application/json"},c=g.N("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.N("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.N("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.N("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.O("forward_domain_admin_state_on_embeds")&&(a=g.N("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
JL=function(){};
KL=function(){};
LL=function(){};
ML=function(){};
NL=function(){};
OL=function(){};
PL=function(){};
g.RL=function(a,b){if(!QL){var c={pD:{feedbackEndpoint:AL(LL),modifyChannelNotificationPreferenceEndpoint:AL(ML),playlistEditEndpoint:AL(NL),subscribeEndpoint:AL(JL),unsubscribeEndpoint:AL(KL),webPlayerShareEntityServiceEndpoint:AL(OL)}},d=g.O("web_enable_client_location_service")?MJ.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(OJ.i||(OJ.i=new OJ),a=OJ.i);void 0===b&&(PL.i||(PL.i=new PL),b=PL.i);Gwa(c,b,a,e);QL=GL.i}return QL};
SL=function(){};
Lwa=function(){SL.i||(SL.i=new SL);return SL.i};
Nwa=function(){if(!g.O("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.O("disable_biscotti_fetch_entirely_for_all_web_clients")&&Nu()&&"1"!=Ue(g.N("PLAYER_VARS",{}),"privembed",!1)){var a=function(){TL=!0;"google_ad_status"in window?ot("DCLKSTAT",1):ot("DCLKSTAT",2)};
try{g.uy("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Mwa.push(g.iv.Qf(function(){if(!(TL||"google_ad_status"in window)){try{if(a){var b=""+g.Qa(a),c=cma[b];c&&g.tv(c)}}catch(d){}TL=!0;ot("DCLKSTAT",3)}},5E3))}};
Owa=function(){var a=Number(g.N("DCLKSTAT",0));return isNaN(a)?0:a};
UL=function(){};
Pwa=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."))})};
Uv=function(a,b){var c=this;this.handleError=a;this.i=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=qt("ytidb_transaction_ended_event_rate_limit",.02)};
Rwa=function(a,b){UL.getInstance().estimate().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Qwa(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Qwa(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Qwa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
VL=function(){this.u=!1;this.i=null};
Twa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.u=!0,g.uy(c,function(){a.u=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Swa(a,d,!!h,l,e);else{l=bma(c);var m=document.getElementById(l);m&&(cja(l),m.parentNode.removeChild(m));g.cy(new g.aw("Unable to load Botguard","from "+c))}},f)):b&&(f=g.ch("SCRIPT"),f.textContent=b,f.nonce=rg(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Swa(a,d,!!h,b,e):g.cy(Error("Unable to load Botguard from JS")))};
Swa=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{Uwa(a,new d(b,e?function(){return e(b)}:g.Ka))}catch(l){l instanceof Error&&g.cy(l)}else{try{Uwa(a,new d(b))}catch(l){l instanceof Error&&g.cy(l)}e&&e(b)}else g.cy(Error("Failed to finish initializing VM"))};
Vwa=function(a,b){var c=g.WL;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)};
Uwa=function(a,b){a.i=b};
Wwa=function(){Ez("bg_l",void 0,"player_att");XL=(0,g.P)()};
g.YL=function(a,b,c){var d=g.S(b.experiments,"bg_vm_reinit_threshold");b.N("always_reinit_bg_vm")&&(d=0);a.program&&(g.WL.u?0:!XL||(0,g.P)()-XL>d)&&(Ez("bg_i",void 0,"player_att"),g.WL.initialize(a,Wwa,b.cspNonce,c))};
Xwa=function(a){a=void 0===a?{}:a;return g.WL.invoke(a)};
Ywa=function(a){var b=qt("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Vwa(a,b)};
$wa=function(a,b,c,d){var e=window.location.search;if(38===b.Ka&&"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.rY});if(30===b.Ka&&"docs"===a.playerStyle)return g.Ui("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.Gc});if(33===b.Ka&&"google-live"===a.playerStyle)return g.Ui("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.oa&&g.by(Error("getVideoInfoUrl for invalid namespace: "+a.oa));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Gc,ps:a.playerStyle,el:jG(b),hl:a.ze,list:b.playlistId,agcid:b.UL,aqi:b.adQueryId,sts:18954,lact:jv()};Object.assign(f,a.deviceParams);a.Za&&(f.forced_experiments=a.Za);b.Sa?(f.vvt=b.Sa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.nf()&&(f.access_token=b.nf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.KC&&(f.ad_id=b.KC);null!==b.MC&&(f.ad_sys=b.MC);null!==b.lF&&(f.encoded_ad_playback_context=b.lF);b.xC&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Sa&&2!==a.Sa&&(f.cc_load_policy=a.Sa);var h=g.Nv(g.Mv.getInstance(),65);g.NE(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.hq&&(f.endscreen_ad_tracking=
b.hq);(h=a.S.get(b.videoId))&&h.Hx&&(f.ic_track=h.Hx);b.Za&&(f.itct=b.Za);mG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Rk&&(f.autonav="1");b.pH&&(f.noiba="1");a.N("send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Gf&&(f.ytr=b.Gf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Gf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Ol&&(f.ytrcc=b.Ol);b.NB&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);
b.Vg&&(h=3===b.Vg.split("|").length,f.force_ad_params=h?b.Vg:"||"+b.Vg);b.Id&&(f.preload=b.Id);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Bf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");kG(b)&&(f.content_v=kG(b));b.rb&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.xa&&(f.ei=a.xa);a.i&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.RB&&(f.live_start_walltime=b.RB);a.B&&b.eh&&(f.live_manifest_duration=b.eh);
a.B&&b.playerParams&&(f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);a.B&&b.zC&&(f.tkn=b.zC);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.wb&&(f.kpt=b.wb);b.Xj&&(f.kids_age_up_mode=b.Xj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.rr&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.xa?(c=null!=b.xa.latitudeE7&&null!=b.xa.longitudeE7?b.xa.latitudeE7+","+b.xa.longitudeE7:",",c+=","+(b.xa.clientPermissionState||
0)+","+(b.xa.locationRadiusMeters||"")+","+(b.xa.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.lj&&(f.internalipoverride=b.lj);a.embedConfig&&(f.embed_config=a.embedConfig);a.gj&&(f.co_rel="1");0<a.ancestorOrigins.length&&(f.ancestor_origins=Array.from(a.ancestorOrigins).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.ep&&b.Dp&&(f.clip=b.ep,f.clipt=b.Dp);b.Up&&(f.disable_watch_next="1");b.Zg&&(f.forced_by_var="1");for(var l in f)!Zwa.has(l)&&f[l]&&512<String(f[l]).length&&(g.cy(Error("GVI param too long: "+l)),f[l]="");b=a.Aa;g.sE(a)&&(b=Oy(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Aa);a=g.Ui(b+"get_video_info",f);e&&(a=sia(a,e));return a};
g.ZL=function(a,b){return a.Aa+"timedtext_video?ref=player&v="+b.videoId};
g.$L=function(a){var b={};b.feature=a;return b};
axa=function(a){var b={};a.tC&&(b.ytrext=a.tC);return g.Se(b)?void 0:b};
g.bxa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){if(g.WL.isInitialized()){var c="";b.videoData&&b.videoData.Aa&&(c=b.videoData.Aa+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);Ez("bg_v",void 0,"player_att");c=Xwa(c);Ez("bg_s",void 0,"player_att");c=c?"r1a="+c:"r1c=2"}else Ez("bg_e",void 0,"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)^Owa())},a);
this.videoData&&this.videoData.Aa?this.i=Bt(this.videoData.Aa):this.i={}};
g.cxa=function(a){if(a.videoData&&a.videoData.Aa){for(var b=[a.videoData.Aa],c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.u[d]&&(d=a.u[d](a.i))&&b.push(d);return b.join("&")}return null};
exa=function(a){var b={};Object.assign(b,a.u);"c1b"in a.i&&(b.c1a=function(){return dxa(a)});
if(a.videoData&&a.videoData.Aa){for(var c=[a.videoData.Aa],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)};
fxa=function(a){if(!("c1a"in a.i))return!1;if(!g.WL.isInitialized()){if(g.O("player_allow_late_init_bg")&&!g.WL.u&&a.videoData){var b=a.videoData.botguardData;b&&g.YL(b,a.videoData.V(),g.aM(a.videoData.Aa))}return!0}return!1};
g.aM=function(a){return a?"c1b"in Bt(a):!1};
dxa=function(a){if(!g.WL.isInitialized())return Ez("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Aa&&(b=a.videoData.Aa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){Ez("bg_v",void 0,"player_att");Ywa(c).then(function(e){e?(Ez("bg_s",void 0,"player_att"),d("r1a="+e)):(Ez("bg_e",void 0,"player_att"),d("r1c=2"))},function(){Ez("bg_e",void 0,"player_att");
d("r1c=3")})})};
gxa=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 bM(a)};
bM=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};
hxa=function(a,b,c,d){if(g.Oa(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};
eM=function(a,b){g.E.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.D={};this.K={};this.u={};this.S=[];this.I={};this.C={};this.B=null;this.X=new Set;cM(this,"cueVideoById",this.cueVideoById);cM(this,"loadVideoById",this.loadVideoById);cM(this,"cueVideoByUrl",this.cueVideoByUrl);cM(this,"loadVideoByUrl",this.loadVideoByUrl);cM(this,"playVideo",this.playVideo);cM(this,"pauseVideo",this.pauseVideo);cM(this,"stopVideo",this.stopVideo);cM(this,"clearVideo",this.clearVideo);
cM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);cM(this,"getVideoBytesTotal",this.getVideoBytesTotal);cM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);cM(this,"getVideoStartBytes",this.getVideoStartBytes);cM(this,"cuePlaylist",this.cuePlaylist);cM(this,"loadPlaylist",this.loadPlaylist);cM(this,"nextVideo",this.nextVideo);cM(this,"previousVideo",this.previousVideo);cM(this,"playVideoAt",this.playVideoAt);cM(this,"setShuffle",this.setShuffle);cM(this,"setLoop",this.setLoop);cM(this,
"getPlaylist",this.mS);cM(this,"getPlaylistIndex",this.getPlaylistIndex);cM(this,"getPlaylistId",this.getPlaylistId);cM(this,"loadModule",this.loadModule);cM(this,"unloadModule",this.unloadModule);cM(this,"setOption",this.setOption);cM(this,"getOption",this.getOption);cM(this,"getOptions",this.getOptions);cM(this,"mute",this.mute);cM(this,"unMute",this.unMute);cM(this,"isMuted",this.isMuted);cM(this,"setVolume",this.setVolume);cM(this,"getVolume",this.getVolume);cM(this,"seekTo",this.seekTo);cM(this,
"getPlayerMode",this.getPlayerMode);cM(this,"getPlayerState",this.getPlayerState);cM(this,"getPlaybackRate",this.getPlaybackRate);cM(this,"setPlaybackRate",this.setPlaybackRate);cM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);cM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
cM(this,"setPlaybackQuality",this.setPlaybackQuality);cM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);cM(this,"getCurrentTime",this.getCurrentTime);cM(this,"getDuration",this.getDuration);cM(this,"addEventListener",this.pR);cM(this,"removeEventListener",this.cX);cM(this,"getDebugText",this.getDebugText);cM(this,"getVideoData",function(){return c.yz()});
cM(this,"addCueRange",this.addCueRange);cM(this,"removeCueRange",this.removeCueRange);cM(this,"setSize",this.setSize);cM(this,"getApiInterface",this.getApiInterface);cM(this,"destroy",this.destroy);cM(this,"showVideoInfo",this.showVideoInfo);cM(this,"hideVideoInfo",this.hideVideoInfo);cM(this,"isVideoInfoVisible",this.isVideoInfoVisible);cM(this,"getSphericalProperties",this.getSphericalProperties);cM(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.D||(cM(this,"getVideoEmbedCode",
this.getVideoEmbedCode),cM(this,"getVideoUrl",this.getVideoUrl));cM(this,"getMediaReferenceTime",this.getMediaReferenceTime);cM(this,"getSize",this.getSize);a.D||cM(this,"logImaAdEvent",this.logImaAdEvent);dM(this,"getInternalApiInterface",this.getInternalApiInterface);dM(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);dM(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);dM(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);dM(this,"getAdState",this.getAdState);dM(this,"sendAbandonmentPing",
this.sendAbandonmentPing);dM(this,"setLoopRange",this.setLoopRange);dM(this,"getLoopRange",this.getLoopRange);dM(this,"setAutonavState",this.setAutonavState);dM(this,"seekToLiveHead",this.seekToLiveHead);dM(this,"seekToStreamTime",this.seekToStreamTime);dM(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);dM(this,"startSeekCsiAction",this.startSeekCsiAction);dM(this,"getStreamTimeOffset",this.getStreamTimeOffset);dM(this,"getVideoData",this.yz);dM(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
dM(this,"downloadVideo",this.downloadVideo);dM(this,"pauseVideoDownload",this.pauseVideoDownload);dM(this,"resumeVideoDownload",this.resumeVideoDownload);dM(this,"refreshAllVideos",this.refreshAllVideos);dM(this,"deleteVideos",this.deleteVideos);dM(this,"deleteAllVideos",this.deleteAllVideos);dM(this,"isOrchestrationLeader",this.isOrchestrationLeader);dM(this,"getAppState",this.getAppState);dM(this,"addInfoCardXml",this.addInfoCardXml);dM(this,"updateLastActiveTime",this.updateLastActiveTime);dM(this,
"setBlackout",this.setBlackout);dM(this,"setAccountLinkState",this.setAccountLinkState);dM(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);dM(this,"setUserEngagement",this.setUserEngagement);dM(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);dM(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);dM(this,"getPresentingPlayerType",this.getPresentingPlayerType);dM(this,"canPlayType",this.canPlayType);dM(this,"updatePlaylist",this.updatePlaylist);dM(this,
"updateVideoData",this.updateVideoData);dM(this,"updateEnvironmentData",this.updateEnvironmentData);dM(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);dM(this,"setCardsVisible",this.setCardsVisible);dM(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);dM(this,"setSafetyMode",this.setSafetyMode);dM(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
dM(this,"getVideoAspectRatio",this.getVideoAspectRatio);dM(this,"getPreferredQuality",this.getPreferredQuality);dM(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);dM(this,"onAdUxClicked",this.onAdUxClicked);dM(this,"getFeedbackProductData",this.getFeedbackProductData);dM(this,"getStoryboardFrame",this.getStoryboardFrame);dM(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);dM(this,"getStoryboardLevel",this.getStoryboardLevel);dM(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
dM(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);dM(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);dM(this,"addUtcCueRange",this.addUtcCueRange);dM(this,"showAirplayPicker",this.showAirplayPicker);dM(this,"setAutonav",this.setAutonav);dM(this,"isNotServable",this.isNotServable);dM(this,"channelSubscribed",this.channelSubscribed);dM(this,"channelUnsubscribed",this.channelUnsubscribed);dM(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);dM(this,
"togglePictureInPicture",this.togglePictureInPicture);dM(this,"supportsGaplessAudio",this.supportsGaplessAudio);dM(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
dM(this,"clearQueue",this.clearQueue);dM(this,"isFastLoad",function(){return!1});
dM(this,"getPlayerResponse",this.getPlayerResponse);dM(this,"getAudioTrack",this.aS);dM(this,"setAudioTrack",this.setAudioTrack);dM(this,"getAvailableAudioTracks",this.bS);dM(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);dM(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);dM(this,"getStatsForNerds",this.getStatsForNerds);dM(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);dM(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);dM(this,
"setMinimized",this.setMinimized);dM(this,"confirmYpcRental",this.confirmYpcRental);dM(this,"setInlinePreview",this.setInlinePreview);dM(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);dM(this,"handleExternalCall",this.handleExternalCall);dM(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);dM(this,"setScreenLayer",this.setScreenLayer);dM(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);dM(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);dM(this,
"shouldSendVisibilityState",this.shouldSendVisibilityState);dM(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);dM(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);dM(this,"setGlobalCrop",this.setGlobalCrop);dM(this,"getVisibilityState",this.getVisibilityState);dM(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);dM(this,"setInternalSize",this.setInternalSize)};
cM=function(a,b,c){a.D[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)};
a.u.hasOwnProperty(b)||dM(a,b,c);a.S.push(b)};
fM=function(a,b,c){a.K[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)};
a.u.hasOwnProperty(b)||dM(a,b,c);a.S.push(b)};
dM=function(a,b,c){a.u[b]=function(){var d=g.Ba.apply(0,arguments);a.ma();return c.apply(a,d)}};
mva=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){ixa(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Qa(c));
var d=a.C[c];d&&(a.app.Ul.unsubscribe(b,d),b=a.C,c in b&&delete b[c])});
return a.B};
ixa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Qa(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var h=g.Ba.apply(0,arguments);g.Ja(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.B,data:h})};
a.C[d]=f;a.app.Ul.subscribe(b,f)}};
jxa=function(a,b,c){b=g.sg(Math.floor(b),0,100);isFinite(b)&&gM(a.app,{volume:b,muted:a.isMuted()},c)};
kxa=function(a,b){gM(a.app,{muted:!0,volume:a.getVolume()},b)};
lxa=function(a,b){gM(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.iM=function(a){var b=hM(a.app.vb());if(b)return b.Ev();a=a.app.vb();a=g.vE(a.J.V())?a.Hd.get("music"):void 0;return a?a.Ev():null};
kM=function(a,b){eM.call(this,a,b);var c=this;this.i=!1;fM(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(jM(c,d),e)});
fM(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(jM(c,d),e,f,h)});
fM(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(jM(c,d),e,f,h)});
fM(this,"seekBy",this.seekBy);fM(this,"mutedAutoplay",this.mutedAutoplay);fM(this,"showControls",this.showControls);fM(this,"hideControls",this.hideControls);fM(this,"cancelPlayback",this.cancelPlayback);fM(this,"getProgressState",this.getProgressState);fM(this,"isInline",this.isInline);fM(this,"setInline",this.setInline);fM(this,"setLoopVideo",this.setLoopVideo);fM(this,"getLoopVideo",this.getLoopVideo);fM(this,"getStoryboardFormat",this.getStoryboardFormat);fM(this,"getVideoContentRect",this.getVideoContentRect);
fM(this,"toggleFullscreen",this.toggleFullscreen);fM(this,"isFullscreen",this.isFullscreen);fM(this,"getVideoStats",this.getVideoStats);fM(this,"getPlayerSize",this.getPlayerSize);fM(this,"toggleSubtitles",this.toggleSubtitles);fM(this,"setCenterCrop",this.setCenterCrop);fM(this,"setFauxFullscreen",this.setFauxFullscreen);fM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);fM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);fM(this,"setSizeStyle",this.setSizeStyle);fM(this,"wakeUpControls",this.wakeUpControls)};
jM=function(a,b){var c={};if(a.app.V().K){a=g.q(mxa);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(nxa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
oxa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.lM=function(a){kM.call(this,a);this.settingsMenu=null};
mM=function(a){a=a.vb();var b=a.Hd.get("endscreen");return b&&b.Jq()?!0:a.qx()||g.vE(a.J.V())};
g.nM=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.pM=function(a){var b=oM(a.vb());return a.app.og&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Lk()||!!a.getPlaylist()};
g.rM=function(a){return(a=g.qM(a.vb()))?a.vz():{}};
g.pxa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.qxa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.jb)};
g.sM=function(a,b,c){a=a.eb().element;var d=oc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.fh(a,b,d);b.setAttribute("data-layer",String(c))};
g.tM=function(a){var b=a.V();if(!b.Fb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!tG(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("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.D&&f;return!c.ypcPreview&&
(!d||e)&&!g.Wb(c.Ba,"ypc")&&!a&&(!g.kE(b)||f)};
rxa=function(a){a=g.uM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.i||b.uH)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ca("iqss",d,!0),!0):!1};
vM=function(a){this.Y=a;this.u=this.i=NaN;this.B=g.S(this.Y.experiments,"h5_csi_seek_latency_action_sampling")||1};
wM=function(a,b){this.Y=a;this.timerName="";this.u=!1;this.B=new vM(a);this.i=b||null;this.u=!1};
sxa=function(a,b,c){var d=g.qE(b.u)&&!b.u.D;if(b.u.eh&&(mE(b.u)||RE(b.u)||d)&&!a.u){a.u=!0;g.N("TIMING_ACTION")||ot("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&ot("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.i){b=a.i.Jp();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,Bz(e,b[e],a.timerName);b=a.i.ev;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.Az(e,b[e],a.timerName);b=a.i;b.i={};b.ev={}}g.Az("yt_pvis",Yma(),a.timerName);g.Az("yt_pt","html5",a.timerName);
c&&!Dz("pbs",a.timerName)&&a.tick("pbs",c);c=a.Y;RE(c)||mE(c)||a.timerName||!Dz("_start")||gA()}};
xM=function(a,b){g.Q.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=zt(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 $E("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.aF(a);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.Z=bF(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
yM=function(a){return!!(a.playlist||a.list||a.api)};
txa=function(a){var b=a.index+1;return b>=a.length?0:b};
uxa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.zM=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new FF(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
AM=function(a,b){a.index=g.sg(b,0,a.length-1);a.startSeconds=0};
BM=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=g.zM(a);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.B++;a.i&&a.i()}};
g.CM=function(a){var b=a.V(),c=vxa(b),d=a.Za;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=jG(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.rb?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.Xj)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:wxa[e]}});a.rr&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.xa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Id&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=xxa[b];c.request=d;d=c.user||{};if(b=a.Sa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.wb)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};
vxa=function(a){var b=NJ(),c=b.client||{};if(a.Za){var d=a.Za.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=Object.assign(Object.assign({},c.tvAppInfo),{livingRoomAppMode:e});if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign(Object.assign({},c.tvAppInfo),{livingRoomPoTokenId:e});
b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.Gc)b.thirdParty={embedUrl:a};return b};
Cxa=function(a,b,c){var d=a.videoId,e=g.CM(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(jv()),referer:document.location.toString(),signatureTimestamp:18954};g.Mv.getInstance();a.Rk&&(h.autonav=!0);g.Nv(0,141)&&(h.autonavState=g.Nv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Nv(0,66);mG(a)&&(h.autoplay=!0);f.B&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.Vg;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.presetad;u=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)r&&(m.url=r),t&&(m.presetAd=t),u&&(m.viralAdResponseUrl=u),v&&(m.viralCampaignId=String(v));
else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=yxa[p.breaktype])y.breakType=p;r&&(y.url=r);t&&(y.presetAd=t);u&&(y.viralAdResponseUrl=u);v&&(y.viralCampaignId=String(v));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.RB;if(null!=m){m={startWalltime:String(m)};if(n=a.eh)m.manifestDuration=String(n||14400);h.liveContext=
m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Bf&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if((n=a.isMdxPlayback)||f.N("send_mdx_remote_data_if_present"))m.triggeredByMdx=n;if(n=a.Ol)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Gf){n=a.tC;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:zxa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:Axa[t[0]]||
"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:Bxa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.cy(z)}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}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});
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);g.kE(f)&&!f.N("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);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.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Nv(g.Mv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.NE(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.UO&&(d.captionParams.deviceCaptionsLangPref=a.UO);a.DC.length?d.captionParams.viewerSelectedCaptionLangs=a.DC:g.JE(e)&&e.N("web_player_i_see_captions_2")&&(e=g.xpa(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=
e);e="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(e||f)a=a.V(),a.hd&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.hd),g.S(a.experiments,"html5_session_po_token_interval_time_ms")||BE(a);return d};
Dxa=function(a){return{context:NJ(),videoIds:a}};
Gxa=function(a,b){var c,d,e,f,h;return g.A(function(l){if(1==l.i){c=g.RL();var m=a.V(),n={context:g.CM(a)};m=m.embedConfig;var p,r,t,u,v,y;var z=b.docid||b.video_id||b.videoId||b.id;if(!z){z=b.raw_embedded_player_response;if(!z&&!g.O("parse_video_id_from_serialized_embedded_player_response_killswitch")){var C=b.embedded_player_response;C&&(z=JSON.parse(C))}z=z?(null===(y=null===(v=null===(u=null===(t=null===(r=null===(p=null===z||void 0===z?void 0:z.embedPreview)||void 0===p?void 0:p.thumbnailPreviewRenderer)||
void 0===r?void 0:r.playButton)||void 0===t?void 0:t.buttonRenderer)||void 0===u?void 0:u.navigationEndpoint)||void 0===v?void 0:v.watchEndpoint)||void 0===y?void 0:y.videoId)||null:null}p=(p=z)?p:void 0;r=a.playlistId?a.playlistId:b.list;t=b.listType;if(r){var F;"user_uploads"===t?F={username:r}:F={playlistId:r};Exa(m,p,b,F);n.playlistRequest=F}else b.playlist?(F={templistVideoIds:b.playlist.toString().split(",")},Exa(m,p,b,F),n.playlistRequest=F):p&&(F={videoId:p},m&&(F.serializedThirdPartyEmbedConfig=
m),n.singleVideoRequest=F);d=n;e=g.BL(Fxa);return g.x(l,g.TJ(c,d,e),2)}f=l.u;h=a.V();b.raw_embedded_player_response=f;return l.return(new FF(h,b))})};
Exa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.EM=function(a,b){DM.get(a);DM.set(a,b)};
g.FM=function(a){g.Q.call(this);this.loaded=!1;this.player=a};
Hxa=function(){this.u=[];this.i=[]};
g.GM=function(a,b){return b?a.i.concat(a.u):a.i};
g.HM=function(a,b){switch(b.kind){case "asr":Ixa(b,a.u);break;default:Ixa(b,a.i)}};
Ixa=function(a,b){g.Tb(b,function(c){return a.equals(c)})||b.push(a)};
g.IM=function(a){g.E.call(this);this.Y=a;this.u=new Hxa;this.C=[]};
g.JM=function(a,b,c){g.IM.call(this,a);this.audioTrack=c;this.i=null;this.C=b.MD};
Jxa=function(){this.i=this.fg=this.u=!1};
Kxa=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Mk?!1:c.Mk;var d=new Jxa;d.u=a.N("html5_streaming_xhr_no_mp4_holdback_chunk");d.fg=b||c;d.i=a.N("html5_simplify_streaming_xhr");return d};
g.Lxa=function(a){this.i=a;this.D=new Jxa;this.Al=this.zl=!1;this.gk=2;this.K=20971520;this.X=8388608;this.I=120;this.jb=3145728;this.Ba=62914560;this.rb=10485760;this.jk=g.S(this.i.experiments,"html5_min_readbehind_secs");this.wr=g.S(this.i.experiments,"html5_min_readbehind_cap_secs");this.vr=g.S(this.i.experiments,"html5_max_readbehind_secs");this.Ju=this.i.N("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.rh=0;this.Yi=this.Tq=2;this.Tg=3;this.Gl=2;this.Ka=2097152;this.Fl=1048576;this.Wa=
!1;this.Zc=1800;this.Zj=5;this.Aa=15;this.xd=1;this.B=1.15;this.C=1.05;this.nk=!0;this.La=!1;this.Hl=.8;this.Gb=!1;this.Mu=this.i.N("html5_update_representation_init_boxes");this.lj=!1;this.ub=6;this.Z=this.bb=!1;this.ac=0;this.eh=this.i.N("html5_stop_overlapping_requests");this.lk=0;this.er=this.i.N("html5_append_init_while_paused");this.hk=g.S(this.i.experiments,"html5_max_readahead_bandwidth_cap");this.Bl=g.S(this.i.experiments,"html5_post_interrupt_readahead");this.Db=5E3;this.Sq=100;this.ij=
6;this.ai=1;this.Zg=1.6;this.Za=!1;this.oa=.5;this.fc=2;this.dc=this.Dq=0;this.Oq=1.5;this.Pq=this.fh=.5;this.Wd=15;this.Yj=1;this.Dp=this.wb=!1;this.fk=0;this.Rl=this.hq=this.Wj=this.Dl=this.pk=!1;this.Fb=2;this.Hp=this.fq=this.gj=!1;this.ze=0;this.Bf=this.Uq=this.Sg=this.xa=this.yq=this.Of=this.Up=!1;this.jh=this.i.N("html5_unrewrite_timestamps");this.Va=!0;this.Yc=this.Zb=this.Cl=this.Sa=!1;this.Vj=!0;this.Vg=!1;this.u="";this.qr=1048576;this.Gc=[];this.rr=this.i.N("html5_woffle_resume");this.mj=
this.Oi=this.hd=this.Eh=!1;this.Ae=46800;this.Uj=this.ep=this.ej=this.cj=this.El=this.Id=this.ob=!1;this.S=0;this.hj="";this.jr=this.i.N("html5_max_drift_per_track_secs")||this.i.N("html5_rewrite_manifestless_for_sync")||this.i.N("html5_check_segnum_discontinuity");this.lr=this.i.N("html5_disable_codec_for_playback_on_error");this.Qi=this.fu=this.jj=this.Rf=!1;this.ye=0;this.Mr=Gu();this.eq=this.Xj=!1;this.gr=this.i.N("html5_skip_buffer_check_seek_to_head");this.kc=!1;this.Nr=this.i.N("html5_enable_server_stitched_alr");
this.Jr=!this.i.N("html5_reset_media_stream_discontinuity_killswitch");this.Wi=!1;this.Pe=8192;this.Ja=this.Nb=!1;this.bp=1;this.Lu=this.i.N("html5_update_readahead_from_real_byterates");this.Ku=this.i.N("html5_onesie_live");this.Ir=this.i.N("html5_onesie_probe_during_read");this.Hr=g.S(this.i.experiments,"html5_onesie_live_ttl_secs")||8;this.Gr=this.i.N("html5_notify_resource_time_out_no_content");this.ir=this.i.N("html5_check_next_resource_for_retry_delay");this.Kr=this.i.N("html5_reset_resource_on_redirector_failure")};
Mxa=function(a,b){1080<b.video.i&&!a.zl&&(a.K=36700160,a.X=5242880,a.jb=10485760,a.Ka=4194304,a.zl=!0);2160<b.video.i&&!a.Al&&(a.K=104857600,a.Ob=13107200,a.Al=!0);b.isEncrypted()&&g.Cu()&&Au("kant")&&(a.Ob=1310720);b.Ob&&(a.Fl=Math.max(65536,Math.min(a.Ka,5*b.Ob)))};
g.KM=function(a,b){return HC(a.info.mimeType)?b?a.info.hc()===b:!0:!1};
g.Nxa=function(a,b){if(null!=a.i&&g.LE(b.V())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.uf())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.KM(c,"386")});
a=!!a.i&&!a.i.isManifestless&&Poa(a.i);return b||a};
g.LM=function(a,b,c,d,e){g.IM.call(this,a);this.videoId=c;this.eL=e;this.D={};this.i=null;a=d||g.Dt(b).hl||"";a=a.split("_").join("-");this.B=Et(b,{hl:a})};
MM=function(a,b){g.E.call(this);this.J=a;this.D=b;this.ev={};this.i={};this.u=null;this.C=new Set;this.Hd=new Map;this.B=a.V().N("web_player_defer_modules")};
g.NM=function(a){return a.Hd.get("captions")};
Qxa=function(a,b){switch(b){case "ad":return OM(a);case "annotations_module":return b=a.J.V(),a=a.J.getVideoData(),a.wH||"3"===b.controlsType?!1:b.S.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Va||!!g.hG(a)||!!g.iG(a):!0;case "attribution":return a=a.J.V(),a.N("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.J.V(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.J.getVideoData(),
a=!!a&&(!!g.osa(a)||!!g.psa(a))),a;case "embed":return g.kE(a.J.V());case "endscreen":return g.Oxa(a);case "heartbeat":return a.yG();case "inline_preview":return a.J.V().showInlinePreviewUi;case "kids":return AE(a.J.V());case "remote":return a.J.V().Of;case "miniplayer":return a.J.V().showMiniplayerUiWhenMinimized;case "music":return g.vE(a.J.V());case "captions":return b=a.J.getVideoData(),!!b.ac||!!b.captionTracks.length||g.Nxa(b,a.J);case "unplugged":return g.sE(a.J.V());case "ux":return a.J.V().jb;
case "webgl":return Pxa(a);case "ypc":return a.qx();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Yi&&!a.qH;case "yto":return!!a.J.getVideoData().Ba.includes("yto");default:return g.by(Error("Module descriptor "+b+" does not match")),!1}};
PM=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Hd.get(b);if(!h||d)if(e||(e=function(){PM(a,b,c,d)}),f||(f=function(){a.J.Pd(b)}),h=h||Rxa(a,b,Qxa(a,b),e,f))a.Hd.set(b,h),h.create(),c&&a.J.Oa("onApiChange")};
Sxa=function(a){a.B&&(PM(a,"endscreen"),a.vD(),PM(a,"creatorendscreen",!0))};
g.Oxa=function(a){var b=a.J.V();if(RE(b)||b.D||!b.ub&&!b.xd)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.qM=function(a){return a.Hd.get("webgl")};
Pxa=function(a){var b=a.J.getVideoData();a=a.J.V();var c=g.Iia(),d=a.N("enable_spherical_kabuki"),e=g.QE(a);if(g.gG(b))return c||d||e||a.N("html5_enable_spherical");if(g.dG(b))return e||c||d||a.N("html5_enable_spherical");if(g.eG(b))return e||c||a.N("html5_enable_spherical3d");if(g.fG(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.XF(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
Txa=function(a){a.J.V().N("web_player_ux_module_wait")&&a.Hd.get("ux")&&a.J.Pd("ux")};
Uxa=function(a){Txa(a);PM(a,"ux",!0)};
OM=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
Rxa=function(a,b,c,d,e){try{if(c){var f=DM.get(b);if(f)return new f(a.J);Vxa(a,b,d,e)}else a.J.Pd(b)}catch(h){a.J.Pd(b),g.by(h)}return null};
QM=function(a,b,c){for(var d=g.q(a.Hd),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Si(b))&&((0,g.re)(f),a.Hd.delete(e))}};
RM=function(a){return a.Hd.get("ad")};
SM=function(a){if(AE(a.J.V()))return a.Hd.get("kids")};
oM=function(a){if(a.J.V().Of)return a.Hd.get("remote")};
g.TM=function(a){if(g.sE(a.J.V()))return a.Hd.get("unplugged")};
hM=function(a){if(a.J.V().jb)return a.Hd.get("ux")};
g.UM=function(a){return a.Hd.get("annotations_module")};
VM=function(a){return a.Hd.get("creatorendscreen")};
Xxa=function(a){var b=a.D.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){Wxa(a,b,function(){var e,f;return g.A(function(h){if(1==h.i)return e=g.B.loadWasm,"function"!==typeof e?(d("noloadwasm"),h.fb(0)):g.x(h,e(),3);f=h.u;c(f);g.ta(h)})},function(){d("player wasm load failure")})})};
Vxa=function(a,b,c,d){if(a.D){var e=Yxa[b];Wxa(a,a.D+e,function(){a.C.add(e);c.call(a)},d)}};
Wxa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Pg("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.ch("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var r=m.onload;m.onload=function(y){(0,uh)(f);r&&r.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.aw("Unable to load player module",b,document.location&&document.location.origin);g.by(z)}(0,uh)(e);t&&t(y)};
var u=m,v=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":(0,uh)(f)}v&&v(y)};
l&&((h=a.J.V().cspNonce)&&m.setAttribute("nonce",h),g.kk(m,g.Yr(b)),h=g.Pg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.te(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
WM=function(a,b,c){g.ue.call(this,b,a);this.i=c};
g.XM=function(a){pJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new WM(b,c.type,c))}};
ZM=function(a,b,c,d,e){g.Q.call(this);var f=this;this.target=a;this.Dy=b;this.u=0;this.I=!1;this.C=new g.wg(NaN,NaN);this.i=new g.JC(this);this.Aa=this.B=this.K=null;g.H(this,this.i);b=d||e?4E3:3E3;this.X=new g.I(function(){YM(f,1,!1)},b,this);
g.H(this,this.X);this.Z=new g.I(function(){YM(f,2,!1)},b,this);
g.H(this,this.Z);this.oa=new g.I(function(){YM(f,512,!1)},b,this);
g.H(this,this.oa);this.xa=c&&0<c.hd.length?5E3:3E3;d||(this.B=this.i.T(a,"mouseover",this.kA),this.i.T(a,"mousemove",this.uT),this.i.T(a,"mouseleave",this.vT));Jm?this.i.T(a,"keypress",this.fT):this.i.T(a,"focusin",this.eS);this.D=this.i.T(a,"mousedown",this.YL);this.S=this.i.T(a,"touchstart",this.uO,void 0,!0);YM(this,640,!0)};
Zxa=function(a){YM(a,4,!1);a.K&&(a.i.qc(a.K),a.K=null,a.B=a.i.T(a.target,"mouseover",a.kA));a.B&&(a.i.qc(a.B),a.B=a.i.T(a.target,"mouseover",a.kA))};
YM=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.X.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.X.stop(),b&2&&a.Z.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.Fr(a.oa,a.xa);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.$M=function(a){g.W.call(this,{G:"button",Ha:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Qa);this.Qa()};
aN=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{G:"div",Ha:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");var c=new g.$M(a);g.H(this,c);c.Ea(b);this.B=new g.JC(this);g.H(this,this.B);this.api=a;this.D=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.ZK(this,250);g.H(this,this.u);this.i=new g.I(this.Qa,0,this);g.H(this,this.i);this.Qa();this.T(a,"appresize",this.xb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.PW);mE(a.V())&&this.T(a,"videoplayerreset",this.FP)};
$xa=function(a){var b=!a.V().Sg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.bN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.nL(a))return g.av(a),!0;b.pauseVideo();a=e.getAttribute("href");g.xL(a,d,!0);return!1};
g.cN=function(a,b,c){if(HE(b.V())&&2!==b.getPresentingPlayerType()){if(g.nL(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.av(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.kE(b.V())&&(Lu()||Ju()))b=c.target,b instanceof HTMLAnchorElement&&(a=fk(a),b.href=ik(a));else{var d=g.nL(c);d&&b.pauseVideo();g.xL(a,void 0,!0);d&&(g.yL(a),g.av(c))}return!1};
aya=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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"}}],L:"ytp-subtitles-button-icon"}};
dN=function(){return{G:"div",L:"ytp-spinner-container",U:[{G:"div",L:"ytp-spinner-rotator",U:[{G:"div",L:"ytp-spinner-left",U:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",U:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
eN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
fN=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Bf?g.AH("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.gN=function(a){g.W.call(this,{G:"div",Ha:["ytp-error"],W:{role:"alert"},U:[{G:"div",L:"ytp-error-content",U:[{G:"div",L:"ytp-error-icon-container",U:[{G:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},U:[{G:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
U:[{G:"div",L:"ytp-error-content-wrap-reason",va:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",va:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.hN=function(a){a=a.split(bya);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",W:{href:a[c],target:a[c+1]},va:a[c+2]})}return{G:"span",U:b}};
jN=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.V().i);a=a.api.getVideoData();b=g.AH(g.iN[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",va:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},va:b[2]});d.push(b[4]);return{G:"span",U:d}};
cya=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
dya=function(a){for(var b=0;b<a.keys.length;b++)a.qc(a.keys[b]);a.keys=[]};
kN=function(a){g.JC.call(this);this.J=a;this.i=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Nh);this.onVideoDataChange()};
lN=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
eya=function(a){lN(a,"play",function(){a.J.playVideo()});
lN(a,"pause",function(){a.J.pauseVideo()});
lN(a,"seekbackward",function(){a.J.seekBy(-5*a.J.getPlaybackRate())});
lN(a,"seekforward",function(){a.J.seekBy(5*a.J.getPlaybackRate())})};
fya=function(a){var b,c;a=a.J.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};
gya=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.Qy(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
hya=function(a){var b=a.J.zb();b=b.isCued()||b.isError()?"none":g.zJ(b)?"playing":"paused";a.mediaSession.playbackState=b};
mN=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.B=!1;this.Bd=this.i=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.ME(b)?(this.u=new g.W({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",va:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",va:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Ha:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.C=new g.ZK(this.u,250,!1,100);g.H(this,this.u);this.u.Ea(this.element);g.H(this,this.C);this.J.Pg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Nc)};
jya=function(a,b){var c=lsa(b),d=YF(b);a.i?b.videoId&&b.videoId!==a.videoId&&(g.Hr(a.i),a.videoId=b.videoId,a.B=!!d,a.B&&c&&iya(a,d,c,b)):c&&d&&iya(a,d,c,b)};
iya=function(a,b,c,d){var e,f,h,l;a.i&&a.i.dispose();a.i=new g.I(a.Eb,b,a);g.H(a,a.i);d=null===(f=null===(e=d.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;b=null===d||void 0===d?void 0:d.navigationEndpoint;d=null===(h=null===d||void 0===d?void 0:d.icon)||void 0===h?void 0:h.iconType;var m=null===(l=null===b||void 0===b?void 0:b.urlEndpoint)||void 0===l?void 0:l.url;a.J.Gm(a.element,(null===b||void 0===b?void 0:b.clickTrackingParams)||
null);a.u.update({href:null!==m&&void 0!==m?m:"#",text:c,icon:"MONEY_HAND"===d?{G:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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:m?g.vK():null})};
kya=function(a,b){a.i&&(g.T(b,8)&&a.B?(a.B=!1,a.Ad(),a.i.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
nN=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",U:[dN(),{G:"div",L:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.I(this.show,500,this);g.H(this,this.i);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.zb();lya(a)?this.i.start():this.hide()};
lya=function(a){return g.T(a,128)?!1:g.T(a,16)||g.T(a,1)?!0:!1};
g.oN=function(a,b,c,d){d=void 0===d?!1:d;g.qK.call(this,b);var e=this;this.J=a;this.Ba=d;this.K=new g.JC(this);this.X=new g.ZK(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.H(this,this.K);g.H(this,this.X)};
mya=function(a){a.u&&(document.activeElement&&g.ih(a.element,document.activeElement)&&(qh(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.Ex(a.K);a.S=void 0};
pN=function(a,b,c){a.Xf()?a.Eb():a.Ad(b,c)};
qN=function(a){var b=g.xD(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ha:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",Ha:["ytp-unmute-text"],va:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ha:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.oN.call(this,a,{G:"button",Ha:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Hb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.Nh);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.kE(this.api.V());g.pK(this,a);a&&nya(this);this.B=a};
nya=function(a){a.i||(a.i=!0,a.api.gb(a.element,!0))};
g.sN=function(a){g.JC.call(this);var b=this;this.api=a;this.xG=!1;this.Pk=null;this.Ly=!1;this.Be=null;this.uD=this.rB=!1;this.XG=this.ZG=null;this.EL=NaN;this.WG=this.tv=!1;this.zw=0;this.OC=[];var c=a.V(),d=a.eb();this.oJ=new g.I(this.pF,0,this);g.H(this,this.oJ);g.vE(c)||(this.gs=new aN(a),g.H(this,this.gs),g.sM(a,this.gs.element,4));if(oya(this)){var e=new nN(a);g.H(this,e);e=e.element;g.sM(a,e,4)}var f=a.getVideoData();this.yd=new ZM(d,function(l){return b.Dy(l)},f,c.Wd,OE(c));
g.H(this,this.yd);this.yd.subscribe("autohideupdate",this.Gj,this);var h=new mN(a);g.H(this,h);g.sM(a,h.element,4);this.wB=new qN(a);g.H(this,this.wB);g.sM(this.api,this.wB.element,2);this.vE=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.qB=new g.I(this.Nt,200,this);g.H(this,this.qB);this.OE=f.videoId;this.JN=new g.I(function(){b.zw=0},350);
g.H(this,this.JN);this.Ny=new g.I(function(){b.WG||rN(b)},350,this);
g.H(this,this.Ny);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.L(f,"ytp-color-white")}g.vE(c)&&g.L(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new kN(a),g.H(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.Nh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.qV);this.T(a,"autonavvisibility",
function(){b.Nm()});
this.T(a,"sizestylechange",function(){b.Nm()});
this.T(d,"click",this.QV,this);this.T(d,"dblclick",this.RV,this);c.Va&&(this.T(d,"gesturechange",this.SV,this),this.T(d,"gestureend",this.TV,this));this.po=[d.bv];this.gs&&this.po.push(this.gs.element);e&&this.po.push(e)};
tN=function(a,b){if(!b)return!1;var c=a.api.ld();if(c.Yo()&&(c=c.xe())&&g.ih(c,b))return c.controls;for(c=0;c<a.po.length;c++)if(g.ih(a.po[c],b))return!1;return g.Lr(b,"ytp-player-content")||g.Lr(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
pya=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.eb().Dz||!1)&&a.api.V().isMobile&&uN&&11<=sG;a=a.api.V().C&&uN;return!(!b&&!a)};
vN=function(a,b){return!tN(a,Yu(b))&&g.nL(b)};
rN=function(a){a.yd.jl();if(a.api.V().N("web_player_touch_mode_improvements")&&a.rB&&a.uD)a.uD=!1;else if(!a.api.V().Z&&!a.Dk()){var b=a.api.zb();g.T(b,2)&&mM(a.api)||a.Kq(b);if(!a.api.V().Va||b.isCued()||g.T(b,1024)){var c=a.api.iB();g.Wv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,1024);c&&(b.isCued()||d)?(g.Wv("embedsRequestStorageAccessState",{isCued:b.isCued(),rda:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Wv("embedsRequestStorageAccessFailedState",
{state:b.state}),a.Nt())}else a.qB.isActive()?(a.Ez(),a.qB.stop()):a.qB.start()}};
qya=function(a,b){return g.nL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.zb(),!g.T(b,4)||g.T(b,8)||g.T(b,2)||a.Nt(),!0):!1};
rya=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
oya=function(a){a=Bu()&&67<=Eia()&&!a.api.V().C;return!Au("tizen")&&!hE&&!a&&!0};
wN=function(a,b){b=void 0===b?2:b;g.Q.call(this);this.api=a;this.i=null;this.Ce=new Cx(this);g.H(this,this.Ce);this.u=swa;this.Ce.T(this.api,"presentingplayerstatechange",this.Nc);this.i=this.Ce.T(this.api,"progresssync",this.Xb);this.Sj=b;1===this.Sj&&this.Xb()};
xN=function(a){g.W.call(this,{G:"button",Ha:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Pb:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.pK(this,a.V().showBackButton);this.Ra("click",this.onClick)};
g.yN=function(a){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",va:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.u=new g.I(this.show,10,this);this.i=new g.I(this.hide,500,this);g.H(this,this.u);g.H(this,this.i);this.hide()};
AN=function(a,b,c){if(0>=b){c=DK();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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";zN(a,c,b,d+"%")};
sya=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.J.getPlaybackRate(),d=g.AH("Speed is $RATE",{RATE:String(c)});zN(a,b,d,c+"x")};
tya=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";zN(a,aya(),b)};
zN=function(a,b,c,d){d=void 0===d?"":d;a.Pa("label",void 0===c?"":c);OE(a.J.V())?a.Pa("icon",null):a.Pa("icon",b);g.Hr(a.i);a.u.start();a.Pa("title",d);g.M(a.element,"ytp-bezel-text-hide",!d)};
CN=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kE(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().N("player_new_info_card_format")?Pva():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",va:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.B=b;this.C=c;this.i=null;this.u=new g.ZK(this,250,!0,100);g.H(this,this.u);g.M(this.C,"ytp-show-cards-title",g.kE(a.V()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.OU);BN(this,!0)};
BN=function(a,b){b?a.i=g.DN(a.B.jc(),a.element):(a.i=a.i,a.i(),a.i=null)};
EN=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Pva()]},{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.wK()]}]:[{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var d=this;this.J=a;this.X=
b;this.ri=c;this.C=new g.ZK(this,250,!1,250);this.i=null;this.K=new g.I(this.cV,300,this);this.I=new g.I(this.bV,2E3,this);this.D=[];this.u=null;this.S=new g.I(function(){d.element.style.margin="0"},250);
this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.I);g.H(this,this.S);a.V().N("player_new_info_card_format")?(g.L(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.Ii),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.MG),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.MG)):this.Ra("click",this.MG);this.T(c.element,"mouseover",this.YH);this.T(c.element,"mouseout",this.XH);this.T(a,"cardsteasershow",this.qW);this.T(a,
"cardsteaserhide",this.Eb);this.T(a,"cardstatechange",this.FO);this.T(a,"presentingplayerstatechange",this.FO);this.T(a,"appresize",this.kH);this.T(a,"onShowControls",this.kH);this.T(a,"onHideControls",this.CR);this.Ra("mouseenter",this.HP)};
GN=function(a){g.W.call(this,{G:"button",Ha:[FN.BUTTON,FN.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:FN.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.AK()]},{G:"div",L:FN.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{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.Hb(this.element,this,36927);this.Ra("click",this.onClick,this);this.Pa("pressed",!1);this.Pa("label","Get notified about every new video")};
uya=function(a,b){a.i=b;a.element.classList.toggle(FN.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.CC:c.BC)?(a=a.api.Xl())?IL(a,b):g.vt(Error("No innertube service available when updating notification preferences.")):g.vt(Error("No update preferences command available.")):g.vt(Error("No video data when updating notification preferences."))};
g.IN=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.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.qE(u)||g.uE(u))c.target=u.I;g.W.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",va:b}:""]}]});f&&g.L(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.qE(u)&&!u.N("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.AH("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":SE(u),"data-tooltip-opaque":String(g.kE(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?
{G:"div",L:"ytp-sb-count",va:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.AH("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":SE(u),"data-tooltip-opaque":String(g.kE(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",va:d}:""]}]});var v=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"),z=this.Fa("ytp-sb-unsubscribe");
f&&g.L(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var C=function(){var G=v.channelId;if(m||n){var J={c:G};if(r.V().N("embeds_botguard_with_subscribe_killswitch"))J="";else{var U;g.WL.isInitialized()&&(U=Xwa(J));J=U||""}if(U=r.getVideoData())if(U=U.subscribeCommand){var K=r.Xl();K?(IL(K,U,{botguardResponse:J,feature:m}),r.Oa("SUBSCRIBE",G)):g.vt(Error("No innertube service available when updating subscriptions."))}else g.vt(Error("No subscribe command in videoData."));else g.vt(Error("No video data available when updating subscription."))}z.focus();
z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},F=function(){var G=v.channelId;
if(m||n){var J=r.getVideoData();IL(r.Xl(),J.unsubscribeCommand,{feature:m});r.Oa("UNSUBSCRIBE",G)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.T(y,"click",C);this.T(z,"click",F);this.T(y,"keypress",function(G){13===G.keyCode&&C(G)});
this.T(z,"keypress",function(G){13===G.keyCode&&F(G)});
this.T(r,"SUBSCRIBE",this.u);this.T(r,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.jc(),HN(this.tooltip),g.te(this,g.DN(this.tooltip,y)),g.te(this,g.DN(this.tooltip,z)))}else g.L(y,"ytp-sb-disabled"),g.L(z,"ytp-sb-disabled")}};
JN=function(a,b){g.W.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().I,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().I,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.kE(this.api.V());a.Hb(this.i,this,36925);this.D&&vya(this);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",this.Qa);this.Qa();g.kE(this.api.V())&&(this.api.V().N("embeds_web_enable_hiding_login_buttons")||this.api.V().N("embeds_web_enable_always_hiding_login_buttons"))&&
g.L(this.element,"ytp-flyout-fix-experiment")};
vya=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.fc){var d=b.authUser?null:zwa(),e=new g.IN("Subscribe",null,"Subscribed",null,!0,!1,c.bj,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.H(a,e);e.Ea(a.C);a.api.Hb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.Cb(e.element)});
var f=new GN(a.api);a.u=f;g.H(a,f);f.Ea(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Oi&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Oi&&(f.hide(),uya(f,!1))})}a.Pa("flyoutUnfocusable","true");
a.Pa("channelTitleFocusable","-1");b.isMobile?a.T(a.i,"click",function(h){wya(a)&&(h.preventDefault(),a.isExpanded()?a.oD():a.KD());a.api.Cb(a.i)}):(a.T(a.channel,"mouseenter",a.KD),a.T(a.channel,"mouseleave",a.oD),a.T(a.channel,"focusin",a.KD),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.oD()}),a.T(a.i,"click",function(){a.api.Cb(a.i)}));
a.B=new g.I(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.gb(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.gb(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.B);a.T(a.channel,xya,function(){yya(a)});
a.T(a.api,"onHideControls",a.iG);a.T(a.api,"appresize",a.iG);a.T(a.api,"fullscreentoggled",a.iG)};
yya=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
wya=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
g.LN=function(a,b,c,d){g.qK.call(this,a);this.priority=b;c&&g.KN(this,c);d&&this.od(d)};
g.MN=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ha:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",va:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",va:"{{label}}"},{G:"div",L:"ytp-menuitem-content",va:"{{content}}"}]}};
NN=function(a,b){a.Pa("icon",b)};
g.KN=function(a,b){a.Pa("label",b)};
ON=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",U:[{G:"button",Ha:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({G:"button",Ha:["ytp-button",n],U:[d]})}h.U=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,h.U?h.U.push(f):h.U=[f]);g.qK.call(this,h);this.content=b;d&&h.U?b.Ea(this.element,h.U.length-1):b.Ea(this.element);this.YK=!1;this.QS=d;c&&(c=this.Fa(l),this.T(c,"click",this.iU),this.YK=!0,
e&&(n=this.Fa(n),this.T(n,"click",e)));b.subscribe("size-change",this.tM,this);this.T(a,"fullscreentoggled",this.tM)};
g.PN=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.qK({G:"div",L:"ytp-panel-menu",W:h});ON.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.QN=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.FF,a);a.items=[];g.eh(a.menuItems.element);a.menuItems.ea("size-change")};
zya=function(a,b){return b.priority-a.priority};
RN=function(a){var b=g.MN({"aria-haspopup":"true"});g.LN.call(this,b,a);this.Ra("keydown",this.i)};
SN=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
TN=function(a,b){g.LN.call(this,g.MN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
UN=function(a,b){g.W.call(this,{G:"div",L:"ytp-user-info-panel",W:{"aria-label":"User info"},U:a.V().authUser?[{G:"div",L:"ytp-user-info-panel-icon",va:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{G:"div",L:"ytp-user-info-panel-icon",va:"{{icon}}"},{G:"div",
L:"ytp-user-info-panel-content",U:[{G:"div",U:[{G:"text",W:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.V().fc?"":"Sign in on YouTube"}]}]}]});this.Ta=a;this.i=b;a.V().authUser||a.V().fc||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.JP));this.T(window,"blur",this.hide);this.T(document,"click",this.IP);this.Qa()};
VN=function(a,b,c,d){var e,f;g.PN.call(this,a);this.J=a;this.Ab=c;this.wc=d;this.getVideoUrl=new RN(6);this.uj=new RN(5);this.rj=new RN(4);this.Kb=new RN(3);this.gx=new g.LN(g.MN({href:"{{href}}",target:this.J.V().I},void 0,!0),2,"Troubleshoot playback issue");this.Zr=new g.qK({G:"div",Ha:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.QJ=new ON(this.J,this.Zr);this.Jx=this.Rn=null;g.kE(this.J.V())&&this.J.N("embeds_web_enable_user_info_in_context_menu")&&
(this.Ui=new g.LN(g.MN(),8,"User info"),g.H(this,this.Ui),this.Fc(this.Ui,!0),this.Ui.Ra("click",this.dW,this),a.Hb(this.Ui.element,this.Ui,137682));this.J.V().hj&&(this.Ei=new TN("Loop",7),g.H(this,this.Ei),this.Fc(this.Ei,!0),this.Ei.Ra("click",this.VU,this),a.Hb(this.Ei.element,this.Ei,28661));g.H(this,this.getVideoUrl);this.Fc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.LU,this);a.Hb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.uj);this.Fc(this.uj,!0);this.uj.Ra("click",
this.MU,this);a.Hb(this.uj.element,this.uj,28660);g.H(this,this.rj);this.Fc(this.rj,!0);this.rj.Ra("click",this.KU,this);a.Hb(this.rj.element,this.rj,28658);g.H(this,this.Kb);this.Fc(this.Kb,!0);this.Kb.Ra("click",this.JU,this);g.H(this,this.gx);this.Fc(this.gx,!0);this.gx.Ra("click",this.LV,this);b=new g.LN(g.MN(),1,"Stats for nerds");g.H(this,b);this.Fc(b,!0);b.Ra("click",this.eW,this);g.H(this,this.Zr);this.Zr.Ra("click",this.yU,this);g.H(this,this.QJ);c=document.queryCommandSupported&&document.queryCommandSupported("copy");
g.Ej&&g.zc(43)&&(c=!0);g.Fj&&!g.zc(41)&&(c=!1);c&&(this.Rn=new g.W({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Rn),this.Rn.Ea(this.element));null===(e=this.Ui)||void 0===e?void 0:NN(e,Sva());null===(f=this.Ei)||void 0===f?void 0:NN(f,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});NN(this.Kb,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},
U:[{G:"path",W:{"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"}}]});NN(this.gx,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"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"}}]});NN(b,Ova());this.T(a,"loopchange",this.EM);this.T(a,"videodatachange",this.onVideoDataChange);Aya(this);Bya(this,this.J.getVideoData())};
XN=function(a,b){var c=!1;if(a.Rn){var d=a.Rn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Ab.Eb():(a.Zr.od(b,"text"),g.WN(a.Ab,a.QJ),eN(a.Zr.element),a.Rn&&(a.Rn=null,Aya(a)));return c};
Bya=function(a,b){var c,d,e=a.J.V(),f=2===a.J.getPresentingPlayerType(),h=!f||b.isListed;h=!e.K&&!!b.videoId&&h;"play"!==e.playerStyle?e="https://support.google.com/youtube/?p=report_playback":(e={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.B&&(e.fmt=b.B.hc()),b.clientPlaybackNonce&&(e.cpn=b.clientPlaybackNonce),b.Ka&&(e.partnerid=b.Ka),e=g.Ui("//support.google.com/googleplay/",e));g.pK(a.rj,h&&b.allowEmbed);g.pK(a.getVideoUrl,h);g.pK(a.uj,h&&!b.isLivePlayback);
a.gx.od(e,"href");null===(c=a.Ei)||void 0===c?void 0:g.pK(c,!b.isLivePlayback&&!f);null===(d=a.Ui)||void 0===d?void 0:g.pK(d,!f)};
Aya=function(a){var b=!!a.Rn;g.KN(a.Kb,b?"Copy debug info":"Get debug info");SN(a.Kb,!b);g.KN(a.rj,b?"Copy embed code":"Get embed code");SN(a.rj,!b);g.KN(a.getVideoUrl,b?"Copy video URL":"Get video URL");SN(a.getVideoUrl,!b);g.KN(a.uj,b?"Copy video URL at current time":"Get video URL at current time");SN(a.uj,!b);NN(a.rj,b?Mva():null);NN(a.getVideoUrl,b?yK():null);NN(a.uj,b?yK():null)};
g.YN=function(a,b){g.oN.call(this,a,{G:"div",Ha:["ytp-popup",b||""]},100,!0);this.i=[];this.I=this.C=null;this.Zx=this.maxWidth=0;this.size=new g.yg(0,0);this.Ra("keydown",this.KP)};
Cya=function(a){var b=a.i[a.i.length-1];if(b){g.$m(a.element,a.maxWidth||"100%",a.Zx||"100%");g.Hm(b.element,"minWidth","250px");g.Hm(b.element,"width","");g.Hm(b.element,"height","");g.Hm(b.element,"maxWidth","100%");g.Hm(b.element,"maxHeight","100%");g.Hm(b.content.element,"height","");var c=g.an(b.element);c.width+=1;c.height+=1;g.Hm(b.element,"width",c.width+"px");g.Hm(b.element,"height",c.height+"px");g.Hm(b.element,"maxWidth","");g.Hm(b.element,"maxHeight","");var d=0;b.YK&&(d=b.Fa("ytp-panel-header"),
d=g.an(d).height);var e=0;b.QS&&(e=b.Fa("ytp-panel-footer"),g.Hm(e,"width",c.width+"px"),e=g.an(e).height);g.Hm(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.Hm(b.element,"width",c.width+"px")));a.size=c}};
g.WN=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);ZN(a,c,b)};
g.$N=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];ZN(a,b,c,!0)}};
ZN=function(a,b,c,d){Dya(a);b&&(b.unsubscribe("size-change",a.Ut,a),b.unsubscribe("back",a.qh,a));c.subscribe("size-change",a.Ut,a);c.subscribe("back",a.qh,a);if(a.yb){g.L(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;Cya(a);g.$m(a.element,e);a.C=new g.I(function(){Eya(a,b,c,d)},20,a);
a.C.start()}else c.Ea(a.element),b&&b.detach()};
Eya=function(a,b,c,d){a.C.dispose();a.C=null;g.L(a.element,"ytp-popup-animating");d?(g.L(b.element,"ytp-panel-animate-forward"),g.Nr(c.element,"ytp-panel-animate-back")):(g.L(b.element,"ytp-panel-animate-back"),g.Nr(c.element,"ytp-panel-animate-forward"));g.$m(a.element,a.size);a.I=new g.I(function(){g.Nr(a.element,"ytp-popup-animating");b.detach();g.Or(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
Dya=function(a){a.C&&g.Gr(a.C);a.I&&g.Gr(a.I)};
g.aO=function(a,b,c){g.YN.call(this,a);this.Aa=b;this.wc=c;this.B=new g.JC(this);this.Z=new g.I(this.wW,1E3,this);this.xa=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Hb(this.element,this,28656);g.L(this.element,"ytp-contextmenu");Fya(this);this.hide()};
Fya=function(a){g.Ex(a.B);if("gvn"!==a.J.V().playerStyle){var b=a.J.eb();a.B.T(b,"contextmenu",a.vU);a.B.T(b,"touchstart",a.MP,null,!0);a.B.T(b,"touchmove",a.bN,null,!0);a.B.T(b,"touchend",a.bN,null,!0)}};
Gya=function(a){a.J.isFullscreen()?g.sM(a.J,a.element,9):a.Ea(document.body)};
g.bO=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Ha:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kE(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",va:"{{icon}}"},{G:"div",L:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.jc();b=a.V();HN(this.tooltip);g.M(this.element,"ytp-show-copylink-title",g.kE(b)&&!g.vE(b));a.Hb(this.element,this,86570);this.Ra("click",
this.onClick);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",this.Qa);this.T(a,"appresize",this.Qa);this.Qa();g.te(this,g.DN(this.tooltip,this.element))};
Hya=function(a){a.Pa("icon",tK());if(a.api.V().isMobile)cO(a.tooltip,a.element,"Link copied to clipboard");else{a.Pa("title-attr","Link copied to clipboard");dO(a.tooltip);cO(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.qc(b);a.Qa();a.tooltip.qj()})}};
Iya=function(a,b){return g.A(function(c){if(1==c.i)return ua(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.i)return c.return(!0);wa(c);var d=c.return,e=!1,f=g.ch("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Iu){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);return d.call(c,
e)})};
eO=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ha:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",va:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",va:"{{seekTime}}"}]}]}]});this.u=new g.I(this.show,10,this);this.i=new g.I(this.hide,700,this);
g.H(this,this.u);g.H(this,this.i);this.hide()};
fO=function(a){g.W.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",
L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.I(this.show,10,this);this.u=new g.I(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.J.Hb(this.C,this,28240);this.J.Hb(this.D,this,28239);this.J.gb(this.C,!0);this.J.gb(this.D,
!0)};
Jya=function(a,b){b=g.AH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Pa("seekTime",b)};
gO=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
hO=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};
Kya=function(a,b){b=hO(a,b)+1;return b<a.length?b:-1};
Lya=function(a,b){return hO(a,b)-1};
g.jO=function(a,b,c,d,e,f,h){g.JC.call(this);var l=this;this.api=a;this.contextMenu=c;this.yd=d;this.wc=e;this.i=f;this.C=h;this.B=new g.I(function(){Mya(l,!1)},1E3);
this.u="";g.H(this,this.B);this.T(b,"mousedown",function(){iO(l,!1)});
this.T(c.element,"mousedown",function(){iO(l,!1)});
this.T(b,"keydown",this.RK);this.T(c.element,"keydown",this.RK);this.T(b,"keyup",this.SK);this.T(c.element,"keyup",this.SK)};
iO=function(a,b){g.M(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.M(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
lO=function(a,b,c,d){var e=g.NM(a.api.vb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.kO.length;h++){var l=g.kO[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);Mya(a,!0);a.B.start()}};
Nya=function(a,b){a.api.tf();if(g.T(a.api.zb(),4)){var c=a.api.getVideoData().B;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Mya=function(a,b){g.NM(a.api.vb())&&a.api.setOption("captions","sampleSubtitles",b)};
mO=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-button","ytp-overflow-button"],W:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},U:[{G:"div",L:"ytp-overflow-icon",U:[{G:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{G:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.J=a;this.i=b;this.visible=!1;this.tooltip=this.i.jc();
a.Hb(this.element,this,16499);this.T(a,"appresize",this.Qa);this.T(a,"fullscreentoggled",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);this.Qa();g.te(this,g.DN(this.tooltip,this.element));this.Ra("click",function(){a.Cb(d.element);pN(c,d.element,!1)})};
nO=function(a,b){g.oN.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:lK(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",va:"{{buttons}}"}]},{G:"button",Ha:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.wK()]}]},250);this.actionButtons=[];this.tooltip=b.jc();this.i=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Eb);g.te(this,g.DN(this.tooltip,
this.closeButton));this.Ra("click",this.NP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
oO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Pa("buttons",a.actionButtons))};
Oya=function(a,b){a=g.q(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Yb(b)};
pO=function(a,b,c){var d=g.zM(b,c),e=a.V(),f=d.Ke("default.jpg");g.W.call(this,{G:"a",Ha:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{G:"div",L:"ytp-video-menu-item-index",va:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",va:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",W:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",va:d.title},{G:"div",
L:"ytp-video-menu-item-author",va:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
qO=function(a){g.oN.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:lK()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},va:"{{title}}"},{G:"button",Ha:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.wK()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",va:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",W:{role:"menu"}}]},250);this.api=a;this.selected=this.C=
this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.B=new g.JC(this);this.i=[];a=this.Fa("ytp-playlist-menu-close");this.T(a,"click",this.Eb);a=this.Fa("ytp-playlist-menu-title-name");this.T(a,"click",this.vW);g.H(this,this.B);this.hide()};
rO=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{G:"div",L:"ytp-playlist-menu-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",va:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.jc();a.Hb(this.element,this,70344);this.T(a,"videodatachange",this.i);this.T(a,"onPlaylistUpdate",this.i);this.T(a,"presentingplayerstatechange",this.Qa);this.T(a,"appresize",this.Qa);this.hide();this.i();g.te(this,g.DN(this.tooltip,this.element));this.Ra("click",function(){a.Cb(d.element);pN(c,d.element,!1)})};
sO=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-promotooltip-wrapper",U:[{G:"div",L:"ytp-promotooltip-container",U:[{G:"div",L:"ytp-promotooltip-content",U:[{G:"div",L:"ytp-promotooltip-title",va:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",va:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",va:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",va:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.J=c;this.i=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.I=this.D=this.u=this.C=!1;g.pK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.J.Pg(this.element,this,!0),this.J.Gm(this.element,a);this.T(c,"onShowControls",
this.eC);this.T(c,"onHideControls",this.xU);this.T(c,"resize",this.xb);this.T(this.acceptButton,"click",this.FT);this.T(this.dismissButton,"click",this.DU);this.T(document,"click",this.OP)};
Pya=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
tO=function(a){g.pK(a,!1);a.u&&a.J.gb(a.element,a.yb)};
uO=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.J.Xl(),(null===a||void 0===a?0:Awa(f,a.B))&&IL(a,f,b)}};
Qya=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),t=(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||t};
vO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.BK()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ra("click",this.onClick,this);a=a.zb();g.pK(this,g.T(a,2));g.DN(b.jc(),this.element)};
g.wO=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{G:"button",Ha:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.kE(a.V()))},U:[{G:"div",L:"ytp-share-icon",va:"{{icon}}"},{G:"div",L:"ytp-share-title",va:"Share"}]});this.api=a;this.i=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.i.jc();b=a.V();a.Hb(this.element,this,28664);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",
this.Qa);this.T(a,"appresize",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);this.Qa();g.M(this.element,"ytp-show-share-title",g.kE(b)&&!g.vE(b));g.te(this,g.DN(this.tooltip,this.element))};
Rya=function(a){"InvalidStateError"!==a.name&&g.by(a)};
g.xO=function(a,b){var c=lK(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:lK(),role:"dialog","aria-labelledby":c},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",W:{id:c},va:"Share"},{G:"a",Ha:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.I,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[dN()]},{G:"div",L:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ha:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.wK()]}]};g.oN.call(this,a,c,250);this.api=a;this.tooltip=b.jc();this.i=[];this.D=this.Fa("ytp-share-panel-inner-content");this.closeButton=this.Fa("ytp-share-panel-close");
this.T(this.closeButton,"click",this.Eb);g.te(this,g.DN(this.tooltip,this.closeButton));this.C=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Qa);this.B=this.Fa("ytp-share-panel-link");g.te(this,g.DN(this.tooltip,this.B));this.Ra("click",this.PP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.kT);this.hide()};
Tya=function(a,b){Sya(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Pm:e.Pm},f++){e.Pm=c[f];a:switch(e.Pm.img||e.Pm.iconId){case "facebook":var h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Pm.url,target:"_blank",title:e.Pm.sname||e.Pm.serviceName},U:[h]}),h.Ra("click",function(m){return function(n){if(g.nL(n)){var p=m.Pm.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.Qf?p:g.Xf("undefined"!=typeof p.href?p.href:String(p));var v=void 0!==self.eda,y="strict-origin-when-cross-origin";
window.Request&&(y=(new Request("/")).referrerPolicy);y="unsafe-url"===y;if(v&&r.noreferrer){if(y)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");r.noreferrer=!1}p=r.target||p.target;v=[];for(var z in r)switch(z){case "width":case "height":case "top":case "left":v.push(z+"="+r[z]);break;case "target":case "noopener":case "noreferrer":break;default:v.push(z+"="+(r[z]?1:0))}z=v.join(",");Nb()&&t.navigator&&t.navigator.standalone&&
p&&"_self"!=p?(z=g.ch("A"),g.pg(z,u),z.setAttribute("target",p),r.noreferrer&&z.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),z.dispatchEvent(r),t={}):r.noreferrer?(t=qg("",t,p,z),r=g.Rf(u),t&&(g.PE&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.mg(g.If("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Dg(r)+'">'),(u=t.document)&&
u.write&&(u.write(g.ig(r)),u.close()))):(t=qg(u,t,p,z))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.av(n)}}}(e)),g.te(h,g.DN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.W({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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"}}]}]}],W:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.cN(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
g.te(b,g.DN(a.tooltip,b.element));a.i.push(b);a.Pa("buttons",a.i)};
Sya=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),(0,g.re)(c);a.i=[]};
AO=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.J=a;this.Za=b;this.Sa=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ka=new g.I(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.I(function(){yO(d);zO(d)},200,this);
this.dismissButton=new g.W({G:"button",Ha:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.I=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.I);this.badge=new g.W({G:"button",Ha:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.I]});g.H(this,this.badge);this.badge.Ea(this.element);this.S=new g.ZK(this.badge,250,!1,100);g.H(this,this.S);this.Aa=new g.ZK(this.I,250,!1,100);g.H(this,this.Aa);this.La=new g.Dr(this.BX,null,this);g.H(this,this.La);this.xa=new g.Dr(this.VR,null,this);g.H(this,this.xa);g.H(this,this.Ka);g.H(this,this.Z);this.J.Pg(this.badge.element,this.badge,!0);this.J.Pg(this.dismissButton.element,this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.i=!1;zO(d);yO(d);d.Vh()});
this.T(this.J,"onShowControls",function(){d.i=!0;zO(d);yO(d);d.Vh()});
this.T(this.badge.element,"click",this.qF);this.T(this.dismissButton.element,"click",this.rF);this.T(this.J,"pageTransition",this.QP);this.T(this.J,"appresize",this.Vh);this.T(this.J,"fullscreentoggled",this.HU);this.T(this.J,"cardstatechange",this.lU);this.T(this.J,"annotationvisibility",this.dY,this);this.T(this.J,"offlineslatestatechange",this.eY,this)};
yO=function(a){g.M(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)};
zO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.xa.stop(),a.Ka.stop(),a.La.start()):(g.pK(a.I,a.expanded),g.M(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Uya(a))};
Uya=function(a){a.C&&a.J.gb(a.badge.element,a.tx());a.D&&a.J.gb(a.dismissButton.element,a.tx()&&(a.K||a.i||!a.u))};
Vya=function(a){var b=a.text||"";g.oh(g.Sg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Va?a.Va:"")};
Wya=function(a,b){b?a.D&&a.J.Cb(a.dismissButton.element):a.C&&a.J.Cb(a.badge.element)};
BO=function(a,b){AO.call(this,a,b);var c=this;this.X=this.Ba=this.Ja=!1;this.T(this.J,g.Vy("shopping_overlay_visible"),function(){c.Ge(!0)});
this.T(this.J,g.Wy("shopping_overlay_visible"),function(){c.Ge(!1)});
this.T(this.J,g.Vy("shopping_overlay_expanded"),function(){c.K=!0;zO(c)});
this.T(this.J,g.Wy("shopping_overlay_expanded"),function(){c.K=!1;zO(c)});
this.T(this.J,"changeProductsInVideoVisibility",this.tV);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,"paidcontentoverlayvisibilitychange",this.lV)};
CO=function(a){a.J.Ye("shopping_overlay_visible");a.J.Ye("shopping_overlay_expanded")};
DO=function(a){g.oN.call(this,a,{G:"button",Ha:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.I(function(){b.hide()},5E3);
this.i=this.B=NaN;g.H(this,this.C);this.xa=function(){b.show()};
this.Z=function(){b.hide()};
this.I=function(){var c=b.J.getCurrentTime();c>b.B/1E3&&c<b.i/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.Is(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.i/1E3)});
this.hide()};
EO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},va:"{{icon}}"});this.J=a;this.Ra("click",this.onClick);this.T(a,"airplayactivechange",this.Qa);this.T(a,"airplayavailabilitychange",this.Qa);this.Qa();g.te(this,g.DN(b.jc(),this.element))};
FO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.J=a;this.u=[];this.i=!1;this.isChecked=!0;a.Hb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Du);this.Ra("click",this.onClick);this.tooltip=b.jc();g.te(this,g.DN(b.jc(),this.element));this.Du()};
Xya=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Pa("title",b);a.Pa("label",b);dO(a.tooltip)};
g.HO=function(a){g.W.call(this,{G:"div",L:"ytp-gradient-bottom"});this.i=g.ch("CANVAS");this.ctx=this.i.getContext("2d");this.B=NaN;this.i.width=1;this.u=g.vE(a.V());g.GO(this,a.eb().getPlayerSize().height)};
g.GO=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)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){}}}};
IO=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ha:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",va:"\u2022"},{G:"div",L:"ytp-chapter-title-content",va:"{{title}}",W:{title:"View chapter","aria-label":"View chapter"}},{G:"div",L:"ytp-chapter-title-chevron",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.K=c;this.C="";this.currentIndex=0;this.B=void 0;this.i=!0;this.D=this.Fa("ytp-chapter-container");this.u=this.Fa("ytp-chapter-title");this.I=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.D,"click",this.onClick);this.T(a,g.Vy("chapterCueRange"),this.Xb);this.T(a,"innertubeCommand",this.onClickCommand);g.kE(this.J.V())||g.te(this,g.DN(b.jc(),this.I))};
JO=function(a,b,c,d,e){var f=b.iA/b.rows,h=Math.min(c/(b.jA/b.columns),d/f),l=b.jA*h,m=b.iA*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.KO=function(a){g.W.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.JC(this);this.i=new g.ZK(this,100);g.H(this,this.events);g.H(this,this.i);this.T(this.api,"presentingplayerstatechange",this.Nc)};
LO=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){LO(a,a.api.qg())}),a.events.T(a.api,"progresssync",a.td),a.events.T(a.api,"appresize",a.D)),a.B=NaN,MO(a),a.i.show(200)):(c&&g.Ex(a.events),a.i.hide(),a.i.stop())};
MO=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.eb().getPlayerSize(),e=wF(b,d.width);c=BF(b,e,c);c!==a.B&&(a.B=c,Cra(b,c,d.width),b=yF(b,c,d.width),JO(a.C,b,d.width,d.height))};
NO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ha:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{G:"div",Ha:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.i=new g.ZK(this,250,void 0,100);this.C=this.u=!1;a.Hb(this.element,this,61214);this.B=b;g.H(this,this.i);this.T(a,
"fullscreentoggled",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);this.Ra("click",this.onClick);this.Qa()};
g.OO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.J=a;this.u=b;this.message=null;this.i=g.DN(this.u.jc(),this.element);this.B=new g.I(this.xR,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.Ri);this.T(a,"presentingplayerstatechange",this.Qa);this.Ra("click",this.onClick);g.yx()&&(b=this.J.eb(),this.T(b,tla(),this.zF),this.T(b,Bx(document),this.wm));a.V().Va||a.V().C||this.disable();
a.Hb(this.element,this,139117);this.Qa();this.Ri(a.isFullscreen())};
PO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[Tva()]});this.J=a;this.visible=!1;this.Ra("click",this.onClick);this.T(a,"fullscreentoggled",this.Qa);this.Pa("title",fN(a,"Miniplayer","i"));g.te(this,g.DN(b.jc(),this.element));a.Hb(this.element,this,62946);this.Qa()};
QO=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.J=a;this.i=!1;this.u=new g.I(this.B,400,this);this.tooltip=b.jc();HN(this.tooltip);g.H(this,this.u);this.Ra("click",function(){pN(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Qa(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Qa(!0);g.te(this,g.DN(this.tooltip,this.element))};
RO=function(a){g.oN.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Switch camera",{G:"button",Ha:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.wK()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.JC(this);this.items=this.Fa("ytp-multicam-menu-items");this.i=[];g.H(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.T(a,"click",this.Eb);this.hide()};
SO=function(){g.E.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Dr(this.i,null,this);g.H(this,this.delay)};
Yya=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c<b.U.length;c++){var d=b.U[c];if(d&&"string"!==typeof d&&(d=Yya(a,d)))return d}};
aza=function(a,b,c){c=Yya(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=lK();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=Zya(e),m=Zya(c);TO(a,function(n){d.setAttribute("d",$ya(l,m,n))},200)};
TO=function(a,b,c){a.u=b;a.startTime=(0,g.P)();a.duration=c;a.i()};
Zya=function(a){var b=[];a=a.match(bza);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};
$ya=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.UO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-mute-button","ytp-button"],W:a.V().X?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.i=null;this.C=this.S=this.D=this.Z=NaN;this.xa=this.I=null;this.B=[];this.u=[];this.visible=!1;this.K=null;var c=this.J.V();this.Pa("icon",DK());this.tooltip=b.jc();this.i=new g.mK({G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},
U:[{G:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Pb:!0,Ha:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",Pb:!0,Ha:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"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.H(this,this.i);this.I=this.i.Fa("ytp-svg-volume-animation-speaker");this.xa=this.I.getAttribute("d");this.B=g.Rg("ytp-svg-volume-animation-mover",this.i.element);
this.u=g.Rg("ytp-svg-volume-animation-hider",this.i.element);this.Aa=new SO;g.H(this,this.Aa);this.X=new SO;g.H(this,this.X);this.Ra("click",this.dV);this.T(a,"appresize",this.aI);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.X)g.te(this,g.DN(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.oN(a,{G:"span",Ha:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.I},va:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.rs(d,f)});
g.sM(a,d.element,4)}this.message=d;a.Hb(this.element,this,28662);this.aI(a.eb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
eza=function(a,b){a.Z=b;var c=a.xa;b&&(c+=$ya(cza,dza,b));a.I.setAttribute("d",c)};
fza=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=DK():e=a.i;for(c=0;c<a.u.length;c++)if(d=a.u[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.K&&(a.Pa("icon",e),a.K=e)};
VO=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[Tva()]});this.J=a;this.Pa("title","Picture in Picture");this.Ra("click",this.onClick);g.te(this,g.DN(b.jc(),this.element))};
g.WO=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.J=a;this.i=null;this.transition=new SO;this.tooltip=b.jc();g.H(this,this.transition);this.u=!!c;a.Hb(this.element,this,36842);a.gb(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);gza(this,a.zb());this.Ra("click",this.Nt,
this);g.te(this,g.DN(b.jc(),this.element))};
hza=function(a){switch(a){case 1:return Uva();case 2:return Rva();case 3:return g.BK();case 4:return Wva();default:return null}};
gza=function(a,b){var c=g.bG(a.J.getVideoData()),d=!1;g.zJ(b)?b=c?4:2:g.T(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=fN(a.J,"Pause","k");break;case 3:c="Replay";break;case 1:c=fN(a.J,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:hza(b)}):(a.update({title:c,label:c}),(c=hza(b))&&a.i&&3!==a.i?aza(a.transition,a.element,c):a.Pa("icon",c));dO(a.tooltip);a.i=b}};
g.YO=function(a,b,c){g.W.call(this,{G:"a",Ha:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{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}}"},U:[c?zK():Vva()]});var d=this;this.J=a;this.i=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.jc();c?a.Hb(this.element,this,6193):
a.Hb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.i||this.T(a,"appresize",this.fC);this.T(a,"mdxpreviousnextchange",function(){XO(d);d.fC()});
this.onVideoDataChange()};
iza=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
jza=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
kza=function(a){var b=oM(a.J.vb());return b?a.i?b.hasNext():b.Lk():!1};
XO=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.pM(a.J)&&(!a.i||c);var d=a.i&&g.tM(a.J),e=kza(a),f=a.i&&5===a.J.getPresentingPlayerType(),h=fN(a.J,"Next","SHIFT+n"),l=fN(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.zM(a.playlist,a.i?txa(a.playlist):uxa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.V().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.mL(m.lengthSeconds):null;b.preview=m.Ke("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.Kk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.mL(l.lengthSeconds):null,b.preview=l.Ke("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.isLinkable=!!b.url;d||c||a.B||e||f?a.u||
(a.u=g.DN(a.tooltip,a.element),a.D=a.Ra("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.qc(a.D),a.D=null);dO(a.tooltip)};
ZO=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};
lza=function(a){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing"});this.api=a;this.u=!1;this.i=null;this.thumbnails=[];this.i=this.api.qg()};
mza=function(){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})};
nza=function(a){g.W.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",W:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",L:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Fa("ytp-heat-map-svg");this.D=this.Fa("ytp-heat-map-path");this.C=this.Fa("ytp-heat-map-graph");this.B=this.Fa("ytp-heat-map-play");this.u=this.Fa("ytp-heat-map-hover");this.isValid=!1;this.i=60};
pza=function(a,b,c,d){d=void 0===d?!1:d;b=new oza(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.u:b.u)}};
oza=function(a,b){this.u=this.i=0;this.i=b.x-a.x;this.u=b.y-a.y};
$O=function(){g.W.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Ha:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-progress-linear-live-buffer"},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Fa("ytp-progress-linear-live-buffer");this.B=this.Fa("ytp-ad-progress-list");
this.D=this.Fa("ytp-load-progress");this.I=this.Fa("ytp-play-progress");this.u=this.Fa("ytp-hover-progress");this.i=this.Fa("ytp-chapter-hover-container")};
aP=function(a,b){g.Hm(a.i,"width",b)};
bP=function(a,b){g.Hm(a.i,"margin-right",b+"px")};
cP=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
qza=function(){this.B=this.position=this.C=this.i=this.D=this.u=this.width=NaN};
rza=function(){g.W.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.eP=function(a,b){g.qK.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ha:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Ha:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},
{G:"div",L:"ytp-clip-start-exclude"},{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",U:[{G:"div",Ha:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",Ha:["ytp-fine-scrubbing-container"]},{G:"div",L:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",W:{title:"{{clipendtitle}}"},
va:"{{clipendicon}}"}]});this.api=a;this.hd=!1;this.C=this.Ae=0;this.Va=1;this.Gc=this.I=0;this.K=null;this.Aa=this.Gb=0;this.Id=this.Fa("ytp-marker-crenellation-list");this.La={};this.Db={};this.clipEnd=Infinity;this.jb=this.Fa("ytp-clip-end");this.ac=new g.Ix(this.jb,!0);this.xd=this.Fa("ytp-clip-end-exclude");this.Of=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.rb=this.Fa("ytp-clip-start");this.dc=new g.Ix(this.rb,!0);this.X=this.Za=0;this.Hc=this.Fa("ytp-progress-bar");this.Fb={};this.Zb=
this.Fa("ytp-chapters-container");this.Bf=this.Fa("ytp-timed-markers-container");this.i=[];this.Ba=[];this.Pe={};this.Wa=-1;this.bb=this.Ja=0;this.S=null;this.Yc=this.Fa("ytp-scrubber-button");this.Rf=this.Fa("ytp-scrubber-container");this.wb=new g.wg;this.ye=new qza;this.u=new qL(0,0);this.Sb=null;this.B=this.Nb=!1;this.ze=null;this.fc=this.Fa("ytp-fine-scrubbing-container");this.Z=this.Fa("ytp-heat-map-container");this.Wd=this.Fa("ytp-heat-map-edu");this.D=[];this.kc=this.Ka=!1;this.heatMarkersDecorations=
[];this.ub=!1;this.xa=void 0;this.tooltip=b.jc();g.te(this,g.DN(this.tooltip,this.jb));g.H(this,this.ac);this.ac.subscribe("hoverstart",this.qM,this);this.ac.subscribe("hoverend",this.pM,this);this.T(this.jb,"click",this.TA);g.te(this,g.DN(this.tooltip,this.rb));g.H(this,this.dc);this.dc.subscribe("hoverstart",this.qM,this);this.dc.subscribe("hoverend",this.pM,this);this.T(this.rb,"click",this.TA);sza(this);this.T(a,"resize",this.xb);this.T(a,"presentingplayerstatechange",this.SP);this.T(a,"videodatachange",
this.Is);this.T(a,"videoplayerreset",this.yS);this.T(a,"cuerangesadded",this.IO);this.T(a,"cuerangesremoved",this.dX);this.T(a,"cuerangemarkersupdated",this.IO);this.T(a,"onLoopRangeChange",this.bI);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.Vy("timedMarkerCueRange"),this.uW);this.updateVideoData(a.getVideoData(),!0);this.bI(a.getLoopRange());dP(this)&&!this.xa&&(this.xa=new lza(this.api),this.xa.Ea(this.fc),g.H(this,this.xa));this.api.Hb(this.Z,this,139609);this.api.Hb(this.Wd,this,
140127)};
sza=function(a){if(0===a.i.length){var b=new $O;a.i.push(b);g.H(a,b);b.Ea(a.Zb,0)}for(;1<a.i.length;)a.i.pop().dispose();aP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
tza=function(a){for(;a.Ba.length;)a.Ba.pop().dispose()};
uza=function(a){for(var b=a.i,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.Ty(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Ye("chapterCueRange");a.api.Ed(c)};
gP=function(a,b){var c,d,e,f,h,l,m=null===(c=a.Fb[b])||void 0===c?void 0:c.chapters;m&&(vza(a,m),a.api.getVideoData().Cl=a.i,uza(a));if((m=null===(d=a.Fb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var n,p,r;tza(a);m=g.q(m);for(var t=m.next();!t.done;t=m.next()){var u=t.value;t=new rza;if(u=u.markerRenderer)t.title=(null===(n=u.title)||void 0===n?void 0:n.simpleText)||"",t.timeRangeStartMillis=null!==(p=u.timeRangeStartMillis)&&void 0!==p?p:NaN,t.onActiveCommand=null!==(r=null===u||void 0===
u?void 0:u.onActiveCommand)&&void 0!==r?r:void 0,a.Ba.push(t),g.H(a,t),t.Ea(a.Bf,a.Bf.children.length)}wza(a,a.Ba);n=a.Ba;p=a.Pe;r=[];for(m=0;m<n.length;m++)!isNaN(n[m].timeRangeStartMillis)&&n[m].onActiveCommand&&(t=n[m].timeRangeStartMillis,t=new g.Ty(t,m===n.length-1?Infinity:n[m+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+t}),r.push(t),p[t.id]=n[m].onActiveCommand);a.api.Ed(r)}b=null===(f=null===(e=a.Fb[b])||void 0===e?void 0:e.heatmap)||void 0===f?void 0:f.heatmapRenderer;
if(!a.api.N("web_heatseeker_counterfactual")&&b){n=b.heatMarkers||[];p=null!==(h=b.minHeightDp)&&void 0!==h?h:0;r=null!==(l=b.maxHeightDp)&&void 0!==l?l:60;var v,y;m=a.i.length;t=null;for(u=0;u<m;u++){var z=a.i[u].startTime,C=u===m-1?Infinity:a.i[u+1].startTime;if(u===a.D.length){var F=void 0,G=a;F=void 0===F?NaN:F;var J=new nza(G.api);G.D.push(J);g.H(G,J);J.Ea(G.Z);var U=J;G="hm_"+G.D.length;U.update({id:G});G="url(#"+G+")";U.C.setAttribute("clip-path",G);U.B.setAttribute("clip-path",G);U.u.setAttribute("clip-path",
G);0<=F&&(J.element.style.width=F+"px")}F=[];t&&F.push(t);J=g.q(n);for(U=J.next();!U.done;U=J.next())U=U.value,G=null!==(y=null===(v=null===U||void 0===U?void 0:U.heatMarkerRenderer)||void 0===v?void 0:v.timeRangeStartMillis)&&void 0!==y?y:-1,G>=z&&G<=C&&F.push(U);0<r&&(a.Z.style.height=r+"px");z=a.D[u];U=0===u;U=void 0===U?!1:U;C=z;0<r&&(C.i=r,C.I.style.height=C.i+"px");C=void 0;J=z;U=void 0===U?!1:U;G=1E3/F.length;var K=[];K.push({x:0,y:100});for(var X=g.q(F.entries()),la=X.next();!la.done;la=X.next()){var Ea=
g.q(la.value);la=Ea.next().value;Ea=Ea.next().value;var qb=(null===(C=Ea.heatMarkerRenderer)||void 0===C?void 0:C.heatMarkerIntensityScoreNormalized)||0;Ea=(la+.5)*G;qb=100-g.sg(100*qb,p/J.i*100,r/J.i*100);0!==la||U||K.push({x:0,y:qb});K.push({x:Ea,y:qb});la===F.length-1&&K.push({x:1E3,y:qb})}K.push({x:1E3,y:100});C=K;if(0===F.length)C="";else{J="";U=g.q(C.entries());for(G=U.next();!G.done;G=U.next())K=g.q(G.value),G=K.next().value,K=K.next().value,0===G?G="M "+K.x.toFixed(1)+","+K.y.toFixed(1):(X=
pza(C[G-1],C[G-2],K),G=pza(K,C[G-1],C[G+1],!0),G=" C "+(X.x.toFixed(1)+","+X.y.toFixed(1)+" "+G.x.toFixed(1)+","+G.y.toFixed(1)+" "+K.x.toFixed(1)+","+K.y.toFixed(1))),J+=G;C=J}z.D.setAttribute("d",C);z.isValid=""!==C;g.M(z.api.getRootNode(),"ytp-heat-map",z.isValid);g.M(z.api.getRootNode(),"ytp-heat-map-played_bar",z.api.N("web_player_heat_map_played_bar")&&""!==C);0<F.length&&(t=F[F.length-1])}g.fP(a);var ib,Ab,lc;v=[];y=g.q(b.heatMarkersDecorations||[]);for(b=y.next();!b.done;b=y.next())(b=b.value.timedMarkerDecorationRenderer)&&
v.push({visibleTimeRangeStartMillis:null!==(ib=b.visibleTimeRangeStartMillis)&&void 0!==ib?ib:-1,visibleTimeRangeEndMillis:null!==(Ab=b.visibleTimeRangeEndMillis)&&void 0!==Ab?Ab:-1,decorationTimeMillis:null!==(lc=b.decorationTimeMillis)&&void 0!==lc?lc:NaN,label:ZO(b.label)});a.heatMarkersDecorations=v}};
wza=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=xza(a,c.timeRangeStartMillis/(1E3*a.u.i),hP(a));g.Hm(c.element,"transform","translateX("+d+"px)")}};
vza=function(a,b){var c=0,d=!1;b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0};f.title=ZO(e.title);var h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.i.length<=c&&(f=new $O,a.i.push(f),g.H(a,f),f.Ea(a.Zb,a.Zb.children.length));a.i[c].startTime=
e.startTime;a.i[c].title=e.title?e.title:"";a.i[c].onActiveCommand=e.onActiveCommand;a.i[c].index=d?c-1:c}c++}for(;c<a.i.length;)a.i.pop().dispose();g.fP(a);iP(a)};
g.fP=function(a){a.Ja=a.i.length-1;a.bb=0;yza(a,!0)&&yza(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){bP(a.i[d],0);var e=Math.floor(a.i[d].width);a.i[d].width=e;aP(a.i[d],e+"px");break}a.i[c].width=0;aP(a.i[c],"0")}else c===a.i.length-1?(d=Math.floor(a.i[c].width+b),a.i[c].width=d,aP(a.i[c],d+"px")):(b=a.i[c].width+b,d=Math.round(b),b-=d,a.i[c].width=d,aP(a.i[c],d+"px"));c=0;if(a.D.length===a.i.length)for(b=0;b<
a.D.length;b++)d=a.i[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.B?3:2)};
yza=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.u.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.Ja,l=0===a.bb?3:h*a.bb,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,bP(a.i[c],a.B?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);bP(p.i[r],0);b&&(a.Ja--,m/f>a.bb&&(a.bb=m/f),d=!0)}c++}}return d};
iP=function(a){var b;if(a.C){var c=a.api.getProgressState(),d=a.api.getVideoData();if(a.api.N("web_player_enable_preroll_for_ssdai_killswitch")||!d||!d.enableServerStitchedDai||!d.enablePreroll||isFinite(c.current)){d=(null===(b=a.api.getVideoData())||void 0===b?0:tG(b))&&c.airingStart&&c.airingEnd?zza(a,c.airingStart,c.airingEnd):zza(a,c.seekableStart,c.seekableEnd);var e=tL(d,c.loaded,0);c=tL(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;jP(a,c,e);f&&kP(a);Aza(a)}}};
zza=function(a,b,c){var d=a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.V().N("enable_expanded_clip_range_in_progress_bar");return lP(a)&&d?new qL(Math.max(b,a.Sb.startTimeMs/1E3),Math.min(c,a.Sb.endTimeMs/1E3)):lP(a)&&e?(d=a.Sb.startTimeMs/1E3,a=a.Sb.endTimeMs/1E3,e=(a-d)/20,new qL(Math.max(b,d-e),Math.min(c,a+e))):new qL(b,c)};
nP=function(a,b){var c=sL(a.u,b.B);if(1<a.i.length){c=mP(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.B?3:2);c=(a.i[c].startTime+(b.C-d)/a.i[c].width*((c===a.i.length-1?1E3*a.u.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
Bza=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.C-(a.B?3:2)*a.Ja)};
Cza=function(a,b,c,d){b=g.sg(b,0,a.B?60:40);a.I=b;var e=a.Va;a.Va=b/(a.B?60:40)*(Math.max(rL(a.u)/a.C,1)-1)+1;b=a.C*a.Va;a.Aa=g.sg(d*b-c,0,b-a.C);e!==a.Va&&kP(a)};
kP=function(a){if(1!==a.i.length||dP(a))a.Yc.style.removeProperty("height");else{var b=hP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=gba(a.Id),f=0;if(a.I>.2*(a.B?60:40))for(var h=rL(a.u)/60*d,l=Math.ceil(rL(a.u)/60*c);l<h;l++){var m=e[f];m||(m=g.ch("DIV"),a.Id.appendChild(m));f++;0===l%60?g.Kr(m,"ytp-60m-progress"):0===l%30?g.Kr(m,"ytp-30m-progress"):0===l%15?g.Kr(m,"ytp-15m-progress"):g.Kr(m,"ytp-1m-progress");m.style.left=(60*l/rL(a.u)-c)*b.i+"px"}b=a.Nb?a.u.i:0;a.update({boundTimeLeft:g.mL(sL(a.u,c)-
b),boundTimeRight:g.mL(sL(a.u,d)-b)});for(c=e.length-1;c>=f;c--)g.gh(e[c]);a.element.style.height=a.I+(a.B?8:5)+"px";a.ea("height-change",a.I);a.Yc.style.height=a.I+(a.B?20:13)+"px"}e=g.q(Object.keys(a.La));for(f=e.next();!f.done;f=e.next())Dza(a,f.value);oP(a);jP(a,a.X,a.Za)};
hP=function(a){var b=a.wb.x,c=a.C*a.Va;b=g.sg(b,0,a.C);a.ye.update(b,a.C,-a.Aa,-(c-a.Aa-a.C));return a.ye};
jP=function(a,b,c){var d;a.X=b;a.Za=c;var e=hP(a),f=a.u.i,h=sL(a.u,a.X),l=g.AH("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.mL(h,!0),DURATION:g.mL(f,!0)}),m=hO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.Sb&&2!==a.api.getPresentingPlayerType()&&(f=a.Sb.startTimeMs/1E3,h=a.Sb.endTimeMs/1E3);f=tL(a.u,f,0);m=tL(a.u,h,1);l=a.api.getVideoData();h=g.sg(b,f,m);c=(null===l||void 0===l?0:g.qG(l))?
1:g.sg(c,f,m);b=xza(a,b,e);g.Hm(a.Rf,"transform","translateX("+b+"px)");pP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:tG(l))?(b=a.api.getProgressState().seekableEnd)&&pP(a,e,h,tL(a.u,b),"LIVE_BUFFER"):pP(a,e,f,c,"LOAD_PROGRESS");a.api.N("web_player_heat_map_played_bar")&&(null===(d=a.D[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))};
pP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Ja*(a.B?3:2),l=c*h;c=mP(a,l);var m=d*h;h=mP(a,m);"HOVER_PROGRESS"===e&&(h=mP(a,b.i*d,!0),m=b.i*d-Eza(a,b.i*d)*(a.B?3:2));b=Math.max(l-Fza(a,c),0);for(d=c;d<f;d++)cP(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,qP(a,cP(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.sg(m-Fza(a,h),0,f);c===h&&(m-=b);qP(a,cP(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)qP(a,cP(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)qP(a,cP(a.i[h],e),0,a.i[h].width)};
Fza=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};
qP=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Hm(b,"transform","scalex("+(d?c/d:0)+")")};
mP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=Eza(a,b)*(a.B?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};
xza=function(a,b,c){for(var d=b*a.u.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.B?3:2)*a.Ja)+(a.B?3:2)*(0>e?0:e)+c.u};
Eza=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.B?3:2,d++;else break;return d===c?c-1:d};
g.rP=function(a,b,c,d){var e,f=a.C!==c;a.Ae=b;a.C=c;a.B=d;dP(a)&&(null===(e=a.xa)||void 0===e?void 0:e.u=d);kP(a);1===a.i.length&&(a.i[0].width=c||0);f&&g.fP(a)};
oP=function(a){var b,c=!!a.Sb&&2!==a.api.getPresentingPlayerType(),d=a.clipStart,e=a.clipEnd,f=!0,h=!0;c&&a.Sb?(d=a.Sb.startTimeMs/1E3,e=a.Sb.endTimeMs/1E3):(f=d>a.u.u,h=0<a.u.i&&e<a.u.i);(null===(b=a.Sb)||void 0===b?0:b.postId)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(h=f=!1);g.M(a.element,"ytp-loop-range-enabled",c);g.M(a.element,"ytp-clip-start-enabled",f);g.M(a.element,"ytp-clip-end-enabled",h);c=f?tL(a.u,d,0):0;e=h?tL(a.u,e,1):1;a.rb.style.left=Math.round(1E3*c)/10+
"%";a.jb.style.left=Math.round(1E3*e)/10+"%";a.Of.style.width=Math.round(1E3*c)/10+"%";a.xd.style.left=Math.round(1E3*e)/10+"%";a.xd.style.width=Math.round(1E3*(1-e))/10+"%"};
Aza=function(a){var b,c;if(null===(b=a.api.getVideoData())||void 0===b||!tG(b)){var d=hP(a);pP(a,d,a.X,Math.max(d.B,a.X),"HOVER_PROGRESS");for(var e=mP(a,d.i*a.X,!0),f=mP(a,d.C,!0),h=e;h<=f;h++)g.M(a.i[h].u,"ytp-hover-progress-light",d.B>a.X);g.M(a.Yc,"ytp-scrubber-button-hover",e===f&&1<a.i.length);a.api.N("web_player_heat_map_played_bar")&&(null===(c=a.D[0])||void 0===c?void 0:c.u.setAttribute("width",(100*d.B).toFixed(2)+"%"))}};
Dza=function(a,b){var c=a.La[b];b=a.Db[b];var d=hP(a),e=tL(a.u,c.start/1E3,0),f=Bma(c,a.B)/d.width;var h=tL(a.u,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.sg(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.u,0)+"px";qP(a,b,g.sg((h-c)*d.i+d.u,0,d.width),d.width,void 0===e?!1:e)};
Gza=function(a,b){var c=b.getId();a.La[c]===b&&(g.gh(a.Db[c]),delete a.La[c],delete a.Db[c])};
dP=function(a){return a.api.V().N("web_player_fine_scrubbing")};
Hza=function(a,b){b?a.S||(a.element.removeAttribute("aria-disabled"),a.S=new g.Ix(a.Hc,!0),a.S.subscribe("hovermove",a.wV,a),a.S.subscribe("hoverend",a.vV,a),a.S.subscribe("dragstart",a.uV,a),a.S.subscribe("dragmove",a.yV,a),a.S.subscribe("dragend",a.xV,a),a.ze=a.Ra("keydown",a.TP)):a.S&&(a.element.setAttribute("aria-disabled","true"),a.qc(a.ze),a.S.cancel(),a.S.dispose(),a.S=null)};
g.Iza=function(a){var b=2*a.C*g.IE();return 1E3*rL(a.u)/a.api.getPlaybackRate()/b};
lP=function(a){var b;return!(null===(b=a.Sb)||void 0===b||!b.postId)&&2!==a.api.getPresentingPlayerType()};
sP=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Ab=c;this.i=null;this.T(a,"onMdxReceiversChange",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);this.T(a,"appresize",this.Qa);a.Hb(this.element,this,139118);this.Qa();this.Ra("click",this.u,this);g.te(this,g.DN(b.jc(),this.element))};
tP=function(a,b,c){g.W.call(this,{G:"button",Ha:["ytp-button","ytp-settings-button"],W:{"aria-haspopup":"true","aria-owns":lK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.CK()]});this.J=a;this.Ab=c;this.u=!0;this.Ra("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.i);g.te(this,g.DN(b.jc(),this.element));this.J.Hb(this.element,this,
28663);this.updateBadge();this.i(a.eb().getPlayerSize())};
uP=function(a,b){a.u=!!b;a.i(a.J.eb().getPlayerSize())};
vP=function(a,b){TN.call(this,"Annotations",6);this.J=a;this.Ab=b;this.i=!1;a.N("web_settings_menu_icons")&&NN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Qa);this.T(a,"onApiChange",this.Qa);this.subscribe("select",this.u,this);this.Qa()};
g.wP=function(a,b,c,d,e,f,h){g.LN.call(this,g.MN({"aria-haspopup":"true"}),b,a);this.Ab=d;this.C=!1;this.u=null;this.options={};this.B=new g.PN(c,void 0,a,e,f,h);g.H(this,this.B);this.Ra("keydown",this.UP);this.Ra("click",this.open)};
Jza=function(a){if(a.u){var b=a.options[a.u];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.u=null}};
g.xP=function(a,b){g.QN(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.u;l&&(d=!0);h&&h.priority===-e?(l=a,g.KN(l.options[f],l.pj(f,!0)),delete a.options[f]):h=a.eD(f,-e,l);c[f]=h;a.B.Fc(h,!0)}d||(a.u=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};
yP=function(a,b){g.wP.call(this,"Audio track",3,a,b);this.J=a;this.tracks={};this.i=new g.W({G:"div",U:[{G:"span",va:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});a.N("web_settings_menu_icons")&&NN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M11.99,1.98C6.46,1.98,1.98,6.47,1.98,12s4.48,10.02,10.01,10.02c5.54,0,10.03-4.49,10.03-10.02S17.53,1.98,11.99,1.98z            M8.86,14.5c-0.16-0.82-0.25-1.65-0.25-2.5c0-0.87,.09-1.72,.26-2.55h6.27c0.17,.83,.26,1.68,.26,2.55 c0,.85-0.09,1.68-0.25,2.5H8.86z            M14.89,15.5c-0.54,1.89-1.52,3.64-2.89,5.15c-1.37-1.5-2.35-3.25-2.89-5.15H14.89z            M9.12,8.45 c0.54-1.87,1.52-3.61,2.88-5.1c1.36,1.49,2.34,3.22,2.88,5.1H9.12z            M16.15,9.45h4.5c0.24,.81,.37,1.66,.37,2.55 c0,.87-0.13,1.71-0.36,2.5h-4.51c0.15-0.82,.24-1.65,.24-2.5C16.39,11.13,16.3,10.28,16.15,9.45z            M20.29,8.45h-4.38 c-0.53-1.97-1.47-3.81-2.83-5.4C16.33,3.45,19.04,5.56,20.29,8.45z            M10.92,3.05c-1.35,1.59-2.3,3.43-2.83,5.4H3.71 C4.95,5.55,7.67,3.44,10.92,3.05z            M3.35,9.45h4.5C7.7,10.28,7.61,11.13,7.61,12c0,.85,.09,1.68,.24,2.5H3.34 c-0.23-0.79-0.36-1.63-0.36-2.5C2.98,11.11,3.11,10.26,3.35,9.45z            M3.69,15.5h4.39c0.52,1.99,1.48,3.85,2.84,5.45 C7.65,20.56,4.92,18.42,3.69,15.5z            M13.09,20.95c1.36-1.6,2.32-3.46,2.84-5.45h4.39C19.08,18.42,16.35,20.55,13.09,20.95z",
fill:"white"}}]});g.H(this,this.i);g.KN(this,this.i);this.T(a,"videodatachange",this.Qa);this.T(a,"onPlaybackAudioChange",this.Qa);this.Qa()};
zP=function(a,b){TN.call(this,"Autoplay",7);this.J=a;this.Ab=b;this.i=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Hb(this.element,this,113682);this.u()};
AP=function(a,b,c,d){d=new g.W({G:"div",Ha:["ytp-linked-account-popup-button"],va:d,W:{role:"button",tabindex:"0"}});b=new g.W({G:"div",L:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",va:b},{G:"div",L:"ytp-linked-account-popup-description",va:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.oN.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Ra("click",function(){e.Eb()});
g.H(this,d);g.sM(this.J,this.element,4);this.hide()};
BP=function(a,b){g.LN.call(this,g.MN({"aria-haspopup":"true"}),1);this.J=a;this.Ab=b;this.u=this.i=!1;this.T(this.J,"videodatachange",this.C);this.Ra("click",this.onClick);this.C()};
CP=function(a){return a?g.$y(a):""};
DP=function(a,b){g.wP.call(this,"Quality",2,a,b);this.J=a;this.D={};this.i="unknown";a.N("web_settings_menu_icons")&&NN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.L(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.Eu);this.T(a,"videoplayerreset",this.Eu);this.T(a,"onPlaybackQualityChange",
this.cI);this.Eu();a.Hb(this.element,this,137721)};
Kza=function(a,b,c){a=a.D[b];var d=g.nA[b];c={G:"span",Ha:c,U:[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.U.push(" "),c.U.push({G:"sup",L:"ytp-swatch-color",va:e}));return c};
EP=function(a,b,c,d,e,f,h){g.W.call(this,{G:"div",L:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.Z=f;this.range=this.maximumValue-this.minimumValue;this.xa=this.Fa("ytp-slider-section");this.u=this.Fa("ytp-slider");this.S=this.Fa("ytp-slider-handle");
this.C=new g.Ix(this.u,!0);this.i=h?h:c;g.H(this,this.C);this.C.subscribe("dragmove",this.WP,this);this.T(this.element,"keydown",this.XP);this.T(this.element,"wheel",this.VP);this.init()};
GP=function(a){EP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.B=g.ch("P");this.Aa=Naa(this.X,this);g.L(this.u,"ytp-speedslider");g.L(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);FP(this);this.T(this.J,"onPlaybackRateChange",this.Ba)};
FP=function(a){a.B.textContent=HP(a,a.i)+"x"};
HP=function(a,b){a=Number(g.sg(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))};
IP=function(a){g.qK.call(this,{G:"div",L:"ytp-speedslider-component"});this.i=new GP(a);g.H(this,this.i);this.element.appendChild(this.i.element)};
Lza=function(a){var b=new IP(a);ON.call(this,a,b,"Custom");g.H(this,b)};
JP=function(a,b){var c=new Lza(a);g.wP.call(this,"Playback speed",5,a,b,"Custom",function(){g.WN(b,c)});
a.N("web_settings_menu_icons")&&NN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.H(this,c);this.J=a;this.D=this.i=this.K=null;this.I=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Qa);this.Qa()};
Mza=function(a,b){var c=KP(b);a.options[c]?a.Xh(c):b===a.D&&a.i&&(a.Xh(a.i),a.od(b.toString()))};
Oza=function(a){g.xP(a,a.I.map(KP));a.i=null;a.D=null;var b=a.J.getPlaybackRate();a.I.includes(b)||(Nza(a,b),g.wP.prototype.Af.call(a,a.i))};
Nza=function(a,b){a.D=b;a.i=g.AH("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.I.map(KP);b.unshift(a.i);g.xP(a,b)};
KP=function(a){return a.toString()};
LP=function(a,b,c,d){var e=new g.PN(b,void 0,"Video Override");g.wP.call(this,d.text||"",a,b,c,"Video Override",function(){g.WN(c,e)});
var f=this;g.L(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.tc(a,this.getKey,this);this.I=e;g.H(this,this.I);b=new g.LN({G:"div",L:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.I.Fc(b,!0);this.D=new g.LN({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"On"}]},-1);g.H(this,this.D);this.I.Fc(this.D,!0);this.T(this.D.element,
"click",function(){Pza(f,!0)});
this.i=new g.LN({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"Off"}]},-2);g.H(this,this.i);this.I.Fc(this.i,!0);this.T(this.i.element,"click",function(){Pza(f,!1)});
g.xP(this,g.pn(a,this.getKey))};
Pza=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.Ab.qh()};
MP=function(a,b){g.PN.call(this,a,void 0,"Options");var c=this;this.jo={};for(var d=0;d<g.kO.length;d++){var e=g.kO[d],f=new LP(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.lh,this);this.jo[e.option.toString()]=f;this.Fc(f,!0)}a=new g.LN(g.MN(),-g.kO.length,"Reset");g.H(this,a);a.Ra("click",function(){c.lh("reset",!0)});
this.Fc(a,!0)};
NP=function(a,b){g.wP.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.Hb(this.element,this,127301);a.gb(this.element,!0)};
Qza=function(a,b){a.languages=g.tc(b,a.getKey,a);g.xP(a,g.pn(b,a.getKey))};
OP=function(a,b){var c=new MP(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.NE(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",va:d[0]},{G:"a",L:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_playback"}},{G:"span",va:d[1]}]});g.wP.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.WN(b,c)},e);
var f=this;this.J=a;this.Ab=b;this.tracks={};this.I=new g.I(function(){Rza(f,!1)},3E3);
g.H(this,this.I);this.K=new g.W({G:"div",U:[{G:"span",va:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});g.H(this,this.K);g.KN(this,this.K);a.N("web_settings_menu_icons")&&NN(this,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.i=new NP(a,b);g.H(this,this.i);this.i.subscribe("select",this.YP,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.lh,this);b.subscribe("show",this.cW,this);this.T(a,"videodatachange",this.Qa);this.T(a,"onApiChange",this.Qa);this.T(a,"onCaptionsTrackListChanged",this.Qa);this.T(a,"captionschanged",this.Qa);a.Hb(this.element,this,127300);this.Qa()};
Rza=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
PP=function(a){g.YN.call(this,a,"ytp-settings-menu");var b=this;this.Xd=new g.PN(this.J);this.TE=this.settingsButton=null;this.isInitialized=!1;g.H(this,this.Xd);this.hide();g.WN(this,this.Xd);a.Hb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Ge(c)})};
Sza=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
QP=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},va:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new SO;this.tooltip=b.jc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Qa);this.T(a,"fullscreentoggled",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);a.Hb(this.element,this,139116);this.Qa();this.Ra("click",this.onClick);g.te(this,g.DN(this.tooltip,this.element))};
g.RP=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[aya()]});this.J=a;this.tooltip=b.jc();this.T(a,"videodatachange",this.Qa);this.T(a,"appresize",this.Qa);this.T(a,"promotooltipacceptbuttonclicked",this.i);this.T(a,"onApiChange",this.Qa);this.T(a,"onCaptionsTrackListChanged",this.Qa);this.T(a,"captionschanged",this.Qa);this.J.Hb(this.element,this,127299);this.Qa();this.Ra("click",this.onClick);g.te(this,g.DN(b.jc(),
this.element))};
g.SP=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{G:"div",Ha:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",va:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",va:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",va:" / "},{G:"span",L:"ytp-time-duration",va:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",va:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",va:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.W({G:"button",
Ha:["ytp-live-badge","ytp-button"],W:{disabled:"true"},va:"{{content}}"});this.i=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.Sb=this.C=this.B=null;this.S=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.od("Live");g.H(this,this.liveBadge);this.liveBadge.Ea(this.element);this.tooltip=b.jc();this.Ra("click",this.onClick);this.T(this.S,"click",this.LW);this.T(a,"presentingplayerstatechange",this.Xb);this.T(a,"appresize",this.Xb);this.T(a,"onLoopRangeChange",this.gC);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Xb();this.gC(a.getLoopRange())};
Tza=function(a){a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(a.Pa("clipicon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}),
a.isLiveVideo&&!a.u?a.Pa("watchfullvideo","Watch live stream"):a.Pa("watchfullvideo","Watch full video"),g.M(a.element,"ytp-clip",TP(a)),g.M(a.element,"ytp-live",UP(a)))};
UP=function(a){var b=TP(a)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar");return a.isLiveVideo&&!a.u&&!b};
TP=function(a){return!!a.Sb&&!!a.Sb.postId&&2!==a.api.getPresentingPlayerType()};
XP=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-volume-panel",W:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.K=c;this.Bi=!1;this.X=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.i=b;this.K=c;this.C=b.Te();this.S=this.Fa("ytp-volume-slider");this.Z=this.Fa("ytp-volume-slider-handle");
this.D=new g.Ix(this.S,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.hW,this);this.D.subscribe("dragmove",this.aQ,this);this.D.subscribe("dragend",this.gW,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.dI);this.T(a,"fullscreentoggled",this.wm);this.T(a,"onShowControls",this.LJ);this.T(a,"onHideControls",this.LJ);this.T(this.element,"keydown",this.bQ);this.T(this.element,"focus",function(){VP(d,d.u,d.isDragging,!0,d.i.Bi())});
this.T(this.element,"blur",function(){VP(d,d.u,d.isDragging,!1,d.i.Bi())});
this.dI(a.eb().getPlayerSize());WP(this,a.getVolume(),a.isMuted())};
WP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Pa("valuenow",d);a.Pa("valuetext",e);a.Z.style.left=(a.C?60:40)*c+"px";a.volume=b};
Uza=function(a,b){g.M(a.element,"ytp-volume-control-hover",b);VP(a,b,a.isDragging,a.B,a.i.Bi())};
VP=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Bi;a.u=b;a.isDragging=c;a.B=d;a.Bi=e;b=a.u||a.isDragging||a.B||a.Bi;f!==b&&(b?a.I=a.T(a.element,"wheel",a.ZP):(a.qc(a.I),a.I=null),g.M(a.K,"ytp-volume-slider-active",b))};
g.YP=function(a,b){var c=a.V(),d=g.FE(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.vE(c)&&e.push("ytp-youtube-music-button");g.W.call(this,{G:"a",Ha:e,W:{href:"{{url}}",target:c.I,title:g.AH("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},va:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Hb(this.element,this,28666);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
this.onVideoDataChange);this.T(a,"appresize",this.xb);this.onVideoDataChange();g.te(this,g.DN(b.jc(),this.element));this.xb()};
$P=function(a,b,c){g.JC.call(this);var d=this;this.J=a;this.u=b;this.yd=c;this.Ka=NaN;this.La=this.Ja=null;this.settingsMenu=new PP(this.J);this.Hc=new g.eP(this.J,this.u);this.muteButton=null;this.Gg=new g.SP(this.J,this.u);this.K=this.C=this.B=this.S=this.Aa=null;this.X=new VO(this.J,this.u);this.Ba=new g.OO(this.J,this.u);this.Md=new g.Dr(this.qq,null,this);this.I=null;c=a.V();this.yd.subscribe("autohideupdate",this.Gj,this);var e=!a.zb().isCued(),f=this.J.V().N("html5_player_bottom_linear_gradient");
f||!g.vE(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.W({G:"div",L:"ytp-gradient-bottom-container",U:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.W({G:"div",L:"ytp-gradient-bottom"}):this.La=f=new g.HO(a);g.H(this,f);g.sM(a,f.element,8);this.oa=new g.ZK(f,250,e,100);g.H(this,this.oa);this.i=new g.W({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.H(this,this.i);g.sM(a,this.i.element,8);this.Z=new g.ZK(this.i,250,
e,100);g.H(this,this.Z);this.xa=this.i.element.children[0];g.te(this.settingsMenu,function(){a.Ln()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.sM(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(m){var n=d.u.jc(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:ZP(n);n.D.show();break;default:n.D.show()}else n.D.hide();n.K=p;b.fB(d.settingsMenu,m)});
g.H(this,this.Hc);this.Hc.Ea(this.i.element,0);e=new g.KO(a);g.H(this,e);g.sM(a,e.element,4);f=new g.mK({G:"div",L:"ytp-left-controls"});g.H(this,f);f.Ea(this.xa);e=new g.YO(a,b,!1);g.H(this,e);e.Ea(f.element);c.Z||(e=new g.WO(a,b),g.H(this,e),e.Ea(f.element),OE(c)&&(e=new g.mK({G:"div",L:"ytp-hybrid-controls"}),g.H(this,e),this.K=new g.WO(a,b,!0),g.H(this,this.K),this.K.Ea(e.element),g.sM(a,e.element,4)));e=new g.YO(a,b,!0);g.H(this,e);e.Ea(f.element);e=new g.W({G:"span",L:"ytp-volume-area"});g.H(this,
e);e.Ea(f.element);if(!c.ob&&(this.muteButton=new g.UO(a,b),g.H(this,this.muteButton),this.muteButton.Ea(e.element),c.X&&!c.C)){var h=new XP(a,b,this.i.element);g.H(this,h);h.Ea(e.element);e=new g.Ix(e.element);g.H(this,e);e.subscribe("hoverstart",function(){Uza(h,!0)});
e=new g.Ix(f.element);g.H(this,e);e.subscribe("hoverend",function(){Uza(h,!1)})}g.H(this,this.Gg);
this.Gg.Ea(f.element);e=new g.mK({G:"div",L:"ytp-right-controls"});g.H(this,e);this.Aa=new IO(a,b,this.Hc);g.H(this,this.Aa);this.Aa.Ea(f.element);e.Ea(this.xa);a.V().Fb&&c.N("web_player_move_autonav_toggle")&&(f=new FO(a,b),g.H(this,f),f.Ea(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&HE(c)&&(this.S=new NO(a,b),g.H(this,this.S),this.S.Ea(e.element));f=new g.RP(a,b);g.H(this,f);f.Ea(e.element);f=new tP(a,b,this.settingsMenu);g.H(this,f);Sza(this.settingsMenu,f);f.Ea(e.element);
var l=new RO(a);g.H(this,l);g.sM(a,l.element,5);l.subscribe("show",function(m){b.xn(l,m)});
f=new QO(a,b,l);g.H(this,f);f.Ea(e.element);f=a.getVideoData();if(c.Vj||f.D&&"1"===c.controlsType)this.B=new g.YP(a,b),g.H(this,this.B),this.B.Ea(e.element);c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.C=new PO(a,b),g.H(this,this.C),this.C.Ea(e.element));g.H(this,this.X);this.X.Ea(e.element);f.vC||this.X.hide();c.Tg||(f=new QP(a,b),g.H(this,f),f.Ea(e.element));c.Of&&(f=new sP(a,b,this.settingsMenu),g.H(this,f),f.Ea(e.element));c.ej&&(c=new EO(a,b),g.H(this,c),c.Ea(e.element));g.H(this,
this.Ba);this.Ba.Ea(e.element);g.H(this,this.Md);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.hC);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()};
Vza=function(a,b){a.J.zb().isCued()||b?b&&(a.Z.hide(),a.oa.hide(),a.muteButton&&a.muteButton.Yb(!1),a.B&&a.B.Yb(!1),a.C&&a.C.Yb(!1),a.u.jc().qj(a.i.element)):b||(a.Z.show(),a.oa.show(),a.muteButton&&a.muteButton.Yb(!0),a.B&&a.B.Yb(!0),a.C&&a.C.Yb(!0),a.Gj())};
Wza=function(a){var b=a.J.eb().getPlayerSize().width;return Math.max(b-2*aQ(a),100)};
aQ=function(a){var b=a.u.Te();return 12*(a.J.getVideoData().D?0:b?2:1)};
bQ=function(a){var b=a.u.Te()?72:50;a=a.J.V();g.JE(a)&&(b=54,sqa(a)&&(b=62));return b};
cQ=function(a,b){AO.call(this,a,b,!1);var c=this;this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.Vy("suggested_action_button_visible"),function(){c.Ge(!0)});
this.T(this.J,g.Wy("suggested_action_button_visible"),function(){c.Ge(!1)})};
dQ=function(a){a.J.Ye("suggested_action_button_visible")};
fQ=function(a){g.W.call(this,{G:"div",L:eQ.TITLE,U:[{G:"div",L:eQ.TEXT,U:[{G:"a",Ha:[eQ.LINK,eQ.SESSIONLINK],W:{target:a.V().I,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},va:"{{title}}"},{G:"div",L:eQ.SUBTEXT,U:[{G:"a",L:eQ.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Fa(eQ.LINK);a.Hb(this.element,this,23851);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",
this.Qa);this.Qa()};
Xza=function(a){a.Pa("channelLink","");a.Pa("channelName","");a.Pa("channelTitleFocusable","-1")};
g.gQ=function(a,b){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",
W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",va:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",va:"{{duration}}"}]}]});var c=this;this.api=a;this.Ja=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Fa("ytp-tooltip-bg");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");
this.title=this.Fa("ytp-tooltip-title");this.X=function(d){(d=Zu(d))&&g.ih(c.u,d)||c.bk()};
this.C=function(d){3===c.type&&c.bk();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.X),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.X),Yza(c,d,2))};
this.Z=function(){c.bk()};
this.u=null;this.D=new g.ZK(this,100);this.type=null;this.S=!1;this.i=null;this.B=NaN;this.I="";this.iC=this.api.eb().getPlayerSize().width;this.K=!0;this.scale=1;this.xa=new g.I(this.gT,250,this);this.Aa=new g.I(this.bk,5E3,this);g.H(this,this.D);g.H(this,this.xa);g.H(this,this.Aa);gE&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
HN=function(a){a.element.setAttribute("aria-live","polite")};
aAa=function(a,b,c,d,e,f,h,l){if(!a.Ba||a.env.C){3===a.type&&a.bk();1!==a.type&&(g.Kr(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.i&&a.i.dispose(),a.i=a.api.qg(),a.i&&a.i.subscribe("l",a.AM,a));a.update({text:d,title:null!==h&&void 0!==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=wF(a.i,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=BF(a.i,d,c));Zza(a,d);if(l)switch(c=
g.an(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"}$za(a,!!e,b,f)}};
g.hQ=function(a){1===a.type&&a.bk()};
g.DN=function(a,b){if(a.Ba)return g.Ka;b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.bk();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
cO=function(a,b,c){if(a.type)if(3===a.type)a.bk();else return;Yza(a,b,3,c)};
Yza=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.aw("showElementTooltip called with non-element.",b.toString()),g.by(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.Kr(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.Z);a.K&&(ZP(a),a.D.show(0))}};
ZP=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Pa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,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.Mr(a.element,["ytp-text-detail","ytp-preview"]);
g.M(a.element,"ytp-has-duration",!!d)}else a.Pa("text",a.I),g.Or(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);$za(a,!!b)};
$za=function(a,b,c,d){var e=Math.min(a.iC,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ja.zq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.L(a.element,"ytp-bottom"):a.element.style.bottom&&g.L(a.element,"ytp-top");3===a.type&&a.Aa.start()};
dO=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&ZP(a))};
Zza=function(a,b){g.M(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=yF(a.i,a.B,b);JO(a.bg,d,b,c,!0);a.xa.start()}};
bAa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.Z);a.S||b.setAttribute("title",a.I);a.I="";a.u=null};
g.iQ=function(a,b){g.W.call(this,{G:"button",Ha:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kE(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",va:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.jc();HN(this.tooltip);a.Hb(this.element,this,28665);this.Ra("click",this.onClick,this);this.T(a,"videoplayerreset",this.cQ);
this.T(a,"appresize",this.by);this.T(a,"videodatachange",this.by);this.T(a,"presentingplayerstatechange",this.by);this.by();a=this.J.V();var c=g.ry("yt-player-watch-later-pending");a.i&&c?(spa(),cAa(this)):this.Qa(2);g.M(this.element,"ytp-show-watch-later-title",g.kE(a));g.te(this,g.DN(b.jc(),this.element))};
dAa=function(a,b){g.zL(function(){spa({videoId:b});window.location.reload()},"wl_button",g.EE(a.J.V()))};
cAa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Qa(3);var b=a.J.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Xl(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Qa(2);a.J.V().B&&a.J.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Qa(1);a.J.V().isMobile&&cO(a.tooltip,a.element);a.J.V().B&&a.J.Oa("WATCH_LATER_VIDEO_ADDED")};
IL(c,b).then(d,function(){a.isRequestPending=!1;eAa(a,"An error occurred. Please try again later.")})}};
eAa=function(a,b){a.Qa(4,b);a.J.V().B&&a.J.Oa("WATCH_LATER_ERROR",b)};
fAa=function(a,b){var c=a.J.V();if(b!==a.icon){switch(b){case 3:var d=dN();break;case 1:d=tK();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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=c.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Pa("icon",d);a.icon=b}};
jQ=function(a){g.sN.call(this,a);var b=this;this.Mz=(this.Xp=g.kE(this.api.V()))&&(this.api.V().isMobile||Lu()||Ju());this.mD=48;this.nD=69;this.Ak=null;this.qo=[];this.wc=new g.yN(this.api);this.uv=this.api.N("web_player_deprecate_double_tap_ux")?new eO:new fO(this.api);this.Th=new g.W({G:"div",L:"ytp-chrome-top"});this.Gx=[];this.tooltip=new g.gQ(this.api,this);this.backButton=this.qt=null;this.channelAvatar=new JN(this.api,this);this.title=new fQ(this.api,this);this.Hg=new g.mK({G:"div",L:"ytp-chrome-top-buttons"});
this.Ah=null;this.ri=new CN(this.api,this,this.Th.element);this.overflowButton=this.Zf=null;this.dg="1"===this.api.V().controlsType?new $P(this.api,this,this.yd):null;this.contextMenu=new g.aO(this.api,this,this.wc);this.bD=!1;this.Zy=new g.W({G:"div",W:{tabindex:"0"}});this.Yy=new g.W({G:"div",W:{tabindex:"0"}});this.Vw=null;this.xG=this.Ly=!1;var c=a.eb(),d=a.V(),e=a.getVideoData();this.Xp&&(g.L(a.getRootNode(),"ytp-embed"),g.L(a.getRootNode(),"ytp-embed-playlist"),this.Mz&&(g.L(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.L(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.mD=60,this.nD=89);this.api.V().isMobile&&(g.L(a.getRootNode(),"ytp-mobile"),this.api.V().C&&g.L(a.getRootNode(),"ytp-embed-mobile-exp"));this.jg=e&&e.jg;g.H(this,this.wc);g.sM(a,this.wc.element,4);g.H(this,this.uv);g.sM(a,this.uv.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.sM(a,e.element,1);this.VG=new g.ZK(e,250,!0,100);g.H(this,this.VG);g.H(this,this.Th);g.sM(a,this.Th.element,
1);this.UG=new g.ZK(this.Th,250,!0,100);g.H(this,this.UG);g.H(this,this.tooltip);g.sM(a,this.tooltip.element,4);var f=new qO(a);g.H(this,f);g.sM(a,f.element,5);f.subscribe("show",function(l){b.xn(f,l)});
this.Gx.push(f);this.qt=new rO(a,this,f);g.H(this,this.qt);d.showBackButton&&(this.backButton=new xN(a),g.H(this,this.backButton),this.backButton.Ea(this.Th.element));this.Xp||this.qt.Ea(this.Th.element);this.channelAvatar.Ea(this.Th.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ea(this.Th.element);g.H(this,this.Hg);this.Hg.Ea(this.Th.element);this.Ah=new g.iQ(a,this);g.H(this,this.Ah);this.Ah.Ea(this.Hg.element);var h=new g.xO(a,this);g.H(this,h);g.sM(a,h.element,5);h.subscribe("show",
function(l){b.xn(h,l)});
this.Gx.push(h);this.shareButton=new g.wO(a,this,h);g.H(this,this.shareButton);this.shareButton.Ea(this.Hg.element);this.Og=new g.bO(a,this);g.H(this,this.Og);this.Og.Ea(this.Hg.element);d.hk&&(e=new DO(a),g.H(this,e),g.sM(a,e.element,4));this.Xp&&this.qt.Ea(this.Hg.element);g.H(this,this.ri);this.ri.Ea(this.Hg.element);e=new EN(a,this,this.ri);g.H(this,e);e.Ea(this.Hg.element);this.Zf=new nO(a,this);g.H(this,this.Zf);g.sM(a,this.Zf.element,5);this.Zf.subscribe("show",function(){b.xn(b.Zf,b.Zf.Xf())});
this.Gx.push(this.Zf);this.overflowButton=new mO(a,this,this.Zf);g.H(this,this.overflowButton);this.overflowButton.Ea(this.Hg.element);this.dg&&g.H(this,this.dg);"3"===d.controlsType&&(e=new vO(a,this),g.H(this,e),g.sM(a,e.element,8));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.MO,this);e=new uL(a,new wN(a));g.H(this,e);g.sM(a,e.element,4);this.Zy.Ra("focus",this.fS,this);g.H(this,this.Zy);this.Yy.Ra("focus",this.gS,this);g.H(this,this.Yy);(this.lm=d.Wd?null:new g.jO(a,c,this.contextMenu,
this.yd,this.wc,this.uv,function(){return b.Dk()}))&&g.H(this,this.lm);
this.Xp||(this.WN=new BO(this.api,this),g.H(this,this.WN),g.sM(a,this.WN.element,4));this.iO=new cQ(this.api,this);g.H(this,this.iO);g.sM(a,this.iO.element,4);this.po.push(this.wc.element);this.T(a,"fullscreentoggled",this.wm);this.T(a,"offlineslatestatechange",function(){b.api.jw()&&YM(b.yd,128,!1)});
this.T(a,"cardstatechange",function(){b.aj()});
this.T(a,"resize",this.wU);this.T(a,"showpromotooltip",this.XU)};
gAa=function(a){var b=a.api.V(),c=g.T(a.api.zb(),128);return b.i&&c&&!a.api.isFullscreen()};
kQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Lm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=kQ(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};
hAa=function(a,b,c){var d;if(a.api.V().N("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.Vw){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.Vw=new sO(e,a,a.api),g.H(a,a.Vw),g.sM(a.api,a.Vw.element,8));null===(d=a.Vw)||
void 0===d?void 0:d.eC(e,c)}}};
g.lQ=function(a){g.FM.call(this,a);this.chrome=null;this.load()};
mQ=function(){var a=iAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=qfa.apply(null,[rfa.apply(null,g.ma(b))].concat(g.ma(c)));this.store=tfa(a,void 0,b)};
nQ=function(a,b,c){for(var d=Object.assign({},a),e=g.q(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.ma(h),g.ma(l)):l;else if(!Array.isArray(l)&&g.Oa(l)&&!Array.isArray(h)&&g.Oa(h))d[f]=nQ(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.aw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Ada:h,Pa:l}),g.by(b),a}return d};
oQ=function(a){this.u=a;this.C=this.i=0;this.B=-1};
pQ=function(a){var b=pC(a.u,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=pC(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
qQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=pQ(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:pQ(a);break;case 1:a.i+=8;break;case 2:d=pQ(a);a.i+=d;break;case 5:a.i+=4}}return!1};
rQ=function(a,b,c){c=void 0===c?0:c;return qQ(a,b)?pQ(a):c};
sQ=function(a,b){var c=void 0===c?"":c;if(!qQ(a,b))return c;b=pQ(a);if(!b)return"";c=oC(a.u,a.i,b);a.i+=b;return g.B.TextDecoder?(new TextDecoder).decode(c):g.fb(c)};
tQ=function(a,b){var c=void 0===c?null:c;if(!qQ(a,b))return c;b=pQ(a);c=oC(a.u,a.i,b);a.i+=b;return c};
jAa=function(){this.i=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
uQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u.subarray(0,a.i));a.u=b;a.view=new DataView(a.u.buffer)}};
vQ=function(a,b){if(268435455<b){uQ(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(uQ(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};
wQ=function(a,b,c){vQ(a,b<<3|0);vQ(a,c)};
xQ=function(a,b,c){vQ(a,b<<3|2);b=c.length;vQ(a,b);uQ(a,b);a.u.set(c,a.i);a.i+=b};
AQ=function(a,b,c){yQ(a,b,Math.ceil(Math.log2(4*c.length+2)/7));uQ(a,1.2*c.length);b=tna(c,a.u.subarray(a.i));a.i+b>a.u.length&&(uQ(a,b),b=tna(c,a.u.subarray(a.i)));a.i+=b;zQ(a)};
yQ=function(a,b,c){c=void 0===c?2:c;vQ(a,b<<3|2);a.B.push(a.i);a.B.push(c);a.i+=c};
zQ=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.i-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
BQ=function(a){var b=new oQ(new kC([Kc(decodeURIComponent(a))]));a=sQ(b,2);b=rQ(b,4);var c=kAa[b];if("undefined"===typeof c)throw a=new g.aw("Failed to recognize field number",{name:"EntityKeyHelperError",kda:b}),g.by(a),a;return{YR:b,entityType:c,entityId:a}};
CQ=function(a,b){var c=new jAa;AQ(c,2,a);a=lAa[b];if("undefined"===typeof a)throw b=new g.aw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.by(b),b;wQ(c,4,a);wQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.Ec(b))};
DQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
EQ=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))};
mAa=function(a,b,c,d,e){var f=a[b];if(null===f||void 0===f||!f[c])return a;d=nQ(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign(Object.assign({},a),(f[b]=Object.assign(Object.assign({},a[b]),(e[c]=d,e)),f))};
FQ=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
LQ=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!nAa){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);GQ=new Uint8Array(256);HQ=FQ(256);IQ=FQ(256);JQ=FQ(256);KQ=FQ(256);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;GQ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;HQ[f]=b<<24|e<<16|e<<8|h;IQ[f]=h<<24|HQ[f]>>>8;JQ[f]=e<<24|IQ[f]>>>8;KQ[f]=e<<24|JQ[f]>>>8}nAa=!0}e=FQ(44);for(c=0;4>c;c++)e[c]=
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=(GQ[a>>16&255]^d)<<24|GQ[a>>8&255]<<16|GQ[a&255]<<8|GQ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
oAa=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};
pAa=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(var l,m,n=4;40>n;)h=HQ[c>>>24]^IQ[d>>16&255]^JQ[e>>8&255]^KQ[f&255]^b[n++],l=HQ[d>>>24]^IQ[e>>16&255]^JQ[f>>8&255]^KQ[c&255]^b[n++],m=HQ[e>>>24]^IQ[f>>16&255]^JQ[c>>8&255]^KQ[d&255]^b[n++],f=HQ[f>>>24]^IQ[c>>16&255]^JQ[d>>8&255]^KQ[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=GQ[c>>>24]^h>>>24;a[1]=GQ[d>>16&255]^h>>16&255;a[2]=GQ[e>>8&255]^
h>>8&255;a[3]=GQ[f&255]^h&255;h=b[41];a[4]=GQ[d>>>24]^h>>>24;a[5]=GQ[e>>16&255]^h>>16&255;a[6]=GQ[f>>8&255]^h>>8&255;a[7]=GQ[c&255]^h&255;h=b[42];a[8]=GQ[e>>>24]^h>>>24;a[9]=GQ[f>>16&255]^h>>16&255;a[10]=GQ[c>>8&255]^h>>8&255;a[11]=GQ[d&255]^h&255;h=b[43];a[12]=GQ[f>>>24]^h>>>24;a[13]=GQ[c>>16&255]^h>>16&255;a[14]=GQ[d>>8&255]^h>>8&255;a[15]=GQ[e&255]^h&255};
MQ=function(){var a;if(!qAa&&!g.Hw){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}};
NQ=function(a){this.C=a};
OQ=function(a){this.u=a};
PQ=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
sAa=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+rAa[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};
uAa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,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;tAa(a);return b};
tAa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0};
QQ=function(a,b){b=void 0===b?{}:b;g.aw.call(this,vAa[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,QQ.prototype)};
wAa=function(a){return new QQ("WRONG_DATA_TYPE",{TR:a})};
xAa=function(a){return a instanceof Error?new QQ("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new QQ("UNKNOWN_ENCODE_ERROR")};
yAa=function(a){return a instanceof Error?new QQ("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new QQ("UNKNOWN_DECODE_ERROR")};
zAa=function(a,b){a=a instanceof QQ?a:b(a);g.by(a);throw a;};
AAa=function(){};
BAa=function(a,b,c){try{return a.B(b,c)}catch(d){zAa(d,xAa)}};
CAa=function(a,b,c){try{return a.u(b,c)}catch(d){zAa(d,yAa)}};
RQ=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b};
SQ=function(a){this.i=a};
TQ=function(){};
DAa=function(){this.i={};this.i[0]=new TQ;if(!g.O("aes_pes_encoder_killswitch")){var a=this.i;try{var b=bw();var c=RQ(b);var d=new SQ(new OQ(c),new NQ(c))}catch(e){throw a=new QQ("KEY_CREATION_FAILED"),g.by(a),a;}a[1]=d}};
UQ=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new QQ("INVALID_ENCODER_VERSION",{TR:b}),g.by(b),b;return a};
FAa=function(a){var b=EAa[a];if(b)return b;g.cy(new g.aw("Entity model not found.",{entityType:a}))};
GAa=function(a){var b=new DAa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");yw(c,{},function(e){var f=e.getValue(),h=CAa(UQ(b,f.version),f.data,f.key),l=BQ(f.key).entityType;l=FAa(l);if(!l)return e.continue();l=(new l(h)).Rd();h=[];l=g.q(l);for(var m=l.next();!m.done;m=l.next())h.push(vw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return lw.all(h).then(function(){return e.continue()})})};
HAa=function(){if(VQ)return VQ();var a={};VQ=Yw("PersistentEntityStoreDb",{nq:(a.EntityStore={Xm:1},a.EntityAssociationStore={Xm:2},a),ox:!1,upgrade:function(b,c,d){c(1)&&xw(rw(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=rw(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),xw(b,"byParentEntityKey","parentEntityKey"),xw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&GAa(d)},
version:g.O("pes_migrate_association_data")?3:2});return VQ()};
IAa=function(a){return Ew(HAa(),a)};
JAa=function(a,b){this.i=a;this.u=b;this.B={}};
KAa=function(a,b){return CAa(UQ(a.u,b.version),b.data,b.key)};
WQ=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return KAa(a,d)}})};
XQ=function(a,b,c){return c?(c=c.map(function(d){return WQ(a,d,b)}),lw.all(c)):Aw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return KAa(a,e)})})};
ZQ=function(a,b,c){var d=DQ(b),e=UQ(a.u,1),f={key:d,entityType:c,data:BAa(e,b,d),version:1};return a.i.objectStore("EntityStore").get(d).then(function(h){if(h&&h.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return lw.all([vw(a.i.objectStore("EntityStore"),f),
LAa(a,b,c)])}).then(function(){YQ(a,d,c);
return d})};
$Q=function(a,b,c){b=b.map(function(d){return ZQ(a,d,c)});
return lw.all(b)};
aR=function(a,b,c){if(null===c||void 0===c?0:c.AJ){var d=new Set;return MAa(a,b,d).then(function(){for(var f=[],h=g.q(d),l=h.next();!l.done;l=h.next())f.push(aR(a,l.value));return lw.all(f).then(function(){})})}var e=BQ(b).entityType;
return lw.all([a.i.objectStore("EntityStore").delete(b),bR(a,b)]).then(function(){YQ(a,b,e)})};
NAa=function(a,b){return Bw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return lw.all([c.delete(),bR(a,c.sz())]).then(function(){YQ(a,c.sz(),b);return c.continue()})})};
OAa=function(a,b,c,d){var e=UQ(a.u,1);return WQ(a,b,d).then(function(f){if(f){f=nQ(f,c,void 0);var h={key:b,entityType:d,data:BAa(e,f,b),version:1};return lw.all([vw(a.i.objectStore("EntityStore"),h),LAa(a,f,d)])}}).then(function(){YQ(a,b,d);
return b})};
YQ=function(a,b,c){var d=a.B[c];d||(d=new Set,a.B[c]=d);d.add(b)};
PAa=function(a,b,c){var d=DQ(b);c=FAa(c);if(!c)return lw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.q(c.Rd());for(var e=c.next();!e.done;e=c.next())b.push(vw(a,{parentEntityKey:d,childEntityKey:e.value}));return lw.all(b).then(function(f){return f.map(function(h){return h[1]})})};
bR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
LAa=function(a,b,c){var d=DQ(b);return bR(a,d).then(function(){return PAa(a,b,c)})};
MAa=function(a,b,c){if(c.has(b))return lw.resolve(void 0);c.add(b);return QAa(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=lw.resolve(void 0),f={};
d=g.q(d);for(var h=d.next();!h.done;f={KB:f.KB},h=d.next())f.KB=h.value,e=e.then(function(l){return function(){return MAa(a,l.KB,c)}}(f));
return e}).then(function(){})};
QAa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Aw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Aw(c.index("byChildEntityKey"),f.childEntityKey));return lw.all(e)}).then(function(d){var e=[];
d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})};
cR=function(a,b){g.E.call(this);this.token=a;this.u=b;this.i=[];a=new g.B.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+bw());a.onmessage=this.B.bind(this);this.channel=a};
dR=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.i)return g.x(l,IAa(a.token),2);if(3!=l.i)return d=l.u,g.x(l,uw(d,["EntityStore","EntityAssociationStore"],b,function(m){e=new JAa(m,a.u);return c(e)}),3);
f=l.u;e&&(h=e.B,0<Object.keys(h).length&&(a.channel.postMessage(h),RAa(a,h)));return l.return(f)})};
eR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
fR=function(a,b,c){return dR(a,{mode:"readwrite",Lc:!0},function(d){return ZQ(d,b,c)})};
SAa=function(a,b){return dR(a,{mode:"readwrite",Lc:!0},function(c){return $Q(c,b,"offlineOrchestrationActionWrapperEntity")})};
TAa=function(a,b){return dR(a,{mode:"readwrite",Lc:!0},function(c){return aR(c,b,void 0)})};
gR=function(a,b,c){return dR(a,{mode:"readonly",Lc:!0},function(d){return WQ(d,b,c)})};
hR=function(a,b,c){return dR(a,{mode:"readonly",Lc:!0},function(d){return XQ(d,b,c)})};
RAa=function(a,b){a=g.q(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),UAa&&c&&UAa.push(c)};
jR=function(){iR||(iR=VAa());return iR};
VAa=function(){var a,b,c;return g.A(function(d){if(1==d.i)return ua(d,2),g.x(d,g.Lw(),4);if(2!=d.i){a=d.u;if(!a||!cw()||"undefined"===typeof g.B.BroadcastChannel)return d.return();b=new DAa;return d.return(new cR(a,b))}c=wa(d);c instanceof Error&&g.by(c);return d.return()})};
YAa=function(a){var b=WAa,c;return g.A(function(d){if(1==d.i){c=a.mutations;if(!c||0>=c.length)return d.return();if(b){var e=c,f={type:"ENTITY_LOADED"};void 0!==e&&(f.payload=e);b.dispatch(f)}return g.x(d,XAa(c),2)}c.length=0;g.ta(d)})};
XAa=function(a){var b;return g.A(function(c){return 1==c.i?g.x(c,jR(),2):(b=c.u)?g.x(c,dR(b,"readwrite",function(d){for(var e={},f={},h=g.q(a),l=h.next();!l.done;f={hg:f.hg,dr:f.dr},l=h.next())f.hg=l.value,f.hg.entityKey&&ZAa(f.hg)&&(f.dr=Ie(f.hg.payload),l=void 0,"ENTITY_MUTATION_TYPE_REPLACE"===f.hg.type&&(l=function(m){return function(){return ZQ(d,m.hg.payload[m.dr],m.dr)}}(f)),"ENTITY_MUTATION_TYPE_DELETE"===f.hg.type&&(l=function(m){return function(){return aR(d,m.hg.entityKey)}}(f)),"ENTITY_MUTATION_TYPE_UPDATE"===
f.hg.type&&(l=function(m){return function(){return OAa(d,m.hg.entityKey,m.hg.payload[m.dr],m.dr)}}(f)),l&&(e[f.hg.entityKey]=e[f.hg.entityKey]?e[f.hg.entityKey].then(l):l()));
return lw.all(Object.values(e))}),0):c.return()})};
ZAa=function(a){var b;a=null===(b=a.options)||void 0===b?void 0:b.persistenceOption;return"ENTITY_PERSISTENCE_OPTION_PERSIST"===a||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===a};
$Aa=function(a){return void 0!==a};
aBa=function(){this.locks=navigator.locks};
bBa=function(){try{var a=g.Ja("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.B.localStorage&&g.B.localStorage.getItem("noop"),a=new aBa,g.Ia("ytglobal.locks_",a,void 0),a}catch(d){}};
kR=function(a,b,c){g.cy(new g.aw("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.cy(b)};
cBa=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C;return g.A(function(F){if(1==F.i)return g.x(F,dR(a,{mode:"readonly",Lc:!0},function(G){return XQ(G,"playbackData").then(function(J){var U=J.map(function(X){return X.transfer}).filter(function(X){return!!X}),K=J.map(function(X){return X.offlineVideoPolicy}).filter(function(X){return!!X});
U=XQ(G,"transfer",U);K=XQ(G,"offlineVideoPolicy",K);return lw.all([U,K]).then(function(X){var la=g.q(X);X=la.next().value;la=la.next().value;return[J,X,la]})})}),2);
b=F.u;c=g.q(b);d=c.next().value;e=c.next().value;f=c.next().value;h=d;l=e;m=f;n={};p={};r=g.q(l);for(t=r.next();!t.done;t=r.next())(u=t.value)&&(n[u.key]=u);v=g.q(m);for(y=v.next();!y.done;y=v.next())(z=y.value)&&(p[z.key]=z);C=h.map(function(G){var J=n[G.transfer],U=p[G.offlineVideoPolicy];G=BQ(U.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===U.action){var K="OFFLINE_VIDEO_STATE_DISABLED";U.expirationTimestamp&&Number(U.expirationTimestamp)<Date.now()/1E3&&(K="OFFLINE_VIDEO_STATE_EXPIRED");
U=K}else if("OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED"===U.action)U="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(null===J||void 0===J?void 0:J.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":K="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":K="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":K="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":K="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":K=
"OFFLINE_VIDEO_STATE_PLAYABLE";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":K="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:K="OFFLINE_VIDEO_STATE_UNKNOWN"}if("OFFLINE_VIDEO_STATE_OFFLINE_FAILED"===K)switch(null===J||void 0===J?void 0:J.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":K="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":K="OFFLINE_VIDEO_STATE_STREAMS_MISSING";
break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":K="OFFLINE_VIDEO_STATE_NETWORK_ERROR"}U=K}G={id:G,videoState:U};if(null===J||void 0===J?0:J.cotn)G.cotn=J.cotn;if(null===J||void 0===J?0:J.maximumDownloadQuality)G.selectedVideoQuality=null===J||void 0===J?void 0:J.maximumDownloadQuality;return G});
return F.return({offlineVideos:C})})};
dBa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,cBa(a),2);b=c.u;g.Wv("offlineStateSnapshot",b);g.ta(c)})};
fBa=function(a,b,c,d){var e=this,f;this.S=a;this.X=b;this.visibility=c;this.N=d;this.C=this.I=this.D=this.u=this.i=!1;this.K=new g.I(function(){eBa(e)});
null===(f=this.visibility)||void 0===f?void 0:f.subscribe("visibilitystatechange",function(){e.Ge()})};
gBa=function(a){if(!a.u&&!a.i){var b=bBa();if(b){a.u=!0;var c=bw("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){var d,e,f;return g.A(function(h){switch(h.i){case 1:return ua(h,2),a.B=new Wj,a.i=!0,a.u=!1,g.x(h,a.S(),4);case 4:return g.x(h,a.B.promise,5);case 5:va(h,0);break;case 2:e=wa(h),(null===(d=a.N)||void 0===d?0:d.call(a,"wo_relinquish_leadership_on_lock_request_error"))||eBa(a),e instanceof Error&&(f=e,f.args=[{name:"WoLockManagerError",zA:e.name}],g.by(f)),
g.ta(h)}})})}}};
hBa=function(a){a.i&&(a.C=!0,lR(a))};
iBa=function(a,b){a.i&&(a.D=b,lR(a))};
jBa=function(a,b){a.i&&(a.I=b,lR(a))};
lR=function(a){a.visibility&&(a.I&&a.D&&a.C&&a.visibility.isBackground()?g.Fr(a.K,6E4):a.K.stop())};
eBa=function(a){a.B&&a.B.resolve();a.i=!1;a.u=!1;a.X()};
mR=function(a){g.E.call(this);this.api=a;"undefined"!==typeof g.B.BroadcastChannel&&(this.channel=new g.B.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+bw()),this.channel.onmessage=this.i.bind(this))};
nR=function(a,b){var c;a.api.Oa("onOfflineOperationFailure",b);null===(c=a.channel)||void 0===c?void 0:c.postMessage(b)};
oR=function(){};
pR=function(){};
qR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+bw("CacheStorage get")};
kBa=function(){return g.A(function(a){if(void 0!==rR)return a.return(rR);rR=new Promise(function(b){var c;return g.A(function(d){switch(d.i){case 1:return ua(d,2),g.x(d,sR.open("test-only"),4);case 4:return g.x(d,sR.delete("test-only"),5);case 5:va(d,3);break;case 2:if(c=wa(d),c instanceof Error&&"SecurityError"===c.name)return b(!1),d.return();case 3:b("caches"in window),g.ta(d)}})});
return a.return(rR)})};
uR=function(){return g.A(function(a){if(1==a.i)return g.x(a,kBa(),2);if(!a.u)return a.return(void 0);tR||(tR=new pR);return a.return(tR)})};
lBa=function(){var a;return g.A(function(b){return 1==b.i?g.x(b,uR(),2):(a=b.u)?b.return(a.delete("yt-player-local-img")):b.return(!0)})};
mBa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,uR(),2);if(3!=d.i){b=d.u;if(!b)throw Error("Cache API not supported");return a.length?g.x(d,b.open("yt-player-local-img"),3):d.return()}c=d.u;return g.x(d,Promise.all(a.map(function(e){return c.delete(e)})),0)})};
nBa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,uR(),2);if(3!=d.i){b=d.u;if(!b)throw Error("Cache API not supported");return a.length?g.x(d,b.open("yt-player-local-img"),3):d.return()}c=d.u;return g.x(d,c.addAll(a),0)})};
vR=function(a,b){var c=b.Lm,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.Wv("offlineTransferStatusChanged",a)};
oBa=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"}};
wR=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)};
xR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
yR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
AR=function(a,b,c,d){var e,f,h,l,m,n,p,r,t,u,v,y,z,C,F,G,J,U,K,X,la,Ea,qb,ib;return g.A(function(Ab){switch(Ab.i){case 1:return e=CQ(a,"ytMainVideoEntity"),f=CQ(a,"ytMainChannelEntity"),h=CQ(a,"transfer"),g.x(Ab,dR(b,{mode:"readonly",Lc:!0},function(lc){return lw.all([WQ(lc,e,"ytMainVideoEntity"),WQ(lc,f,"ytMainChannelEntity"),WQ(lc,h,"transfer"),XQ(lc,"ytMainChannelEntity"),XQ(lc,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:l=Ab.u;m=g.q(l);n=m.next().value;p=m.next().value;r=m.next().value;t=m.next().value;u=m.next().value;v=n;y=p;z=r;C=t;F=u;if(!v&&!y){Ab.fb(3);break}G=v?zR(v.thumbnail):[];if(!y){J=[];Ab.fb(4);break}return g.x(Ab,pBa(y,C),5);case 5:J=Ab.u;case 4:return U=J,g.x(Ab,mBa(G.concat(U)),3);case 3:K=[];X=CQ(a,"ytMainDownloadedVideoEntity");g.O("orchestration_use_cascading_delete")||K.push(X,e,f,CQ(a,"playbackData"),h,CQ(a,"offlineVideoPolicy"),CQ(a,"offlineVideoStreams"));la=g.q(F);for(Ea=la.next();!Ea.done;Ea=
la.next())qb=Ea.value,ib=BQ(qb.key).entityId,ib!==a||qBa(c,qb.actionProto)||K.push(qb.key);return g.x(Ab,dR(b,{mode:"readwrite",Lc:!0},function(lc){var Sa=K.map(function(cc){return aR(lc,cc)});
g.O("orchestration_use_cascading_delete")&&Sa.push(aR(lc,X,{AJ:!0}));return lw.all(Sa)}),7);
case 7:rBa(z),nR(d,{entityKey:X,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"}),g.ta(Ab)}})};
tBa=function(a,b,c){var d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return g.x(n,dR(a,{mode:"readwrite",Lc:!0},function(p){var r=XQ(p,"transfer"),t=XQ(p,"offlineOrchestrationActionWrapperEntity"),u=g.O("orchestration_use_cascading_delete");return lw.all([r,t]).then(function(v){v=g.q(v);var y=v.next().value,z=v.next().value;v=sBa.map(function(J){return NAa(p,J)});
z=g.q(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var F="ytMainDownloadedVideoEntity"===BQ(C.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===C.actionProto.actionType;qBa(b,C.actionProto)||F&&(!F||G)||v.push(aR(p,C.key,{AJ:u}))}return lw.all(v).then(function(){return y})})}),2);
d=n.u;e=g.q(d);for(f=e.next();!f.done;f=e.next())h=f.value,rBa(h),l=BQ(h.key).entityId,m=CQ(l,"ytMainDownloadedVideoEntity"),nR(c,{entityKey:m,failureReason:"OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"});return g.x(n,lBa(),0)})};
qBa=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
rBa=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=BQ(a.key).entityId;vR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,Lm:a})}};
zR=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};
pBa=function(a,b){var c,d,e,f,h,l,m,n;return g.A(function(p){c=zR(a.avatar);d=g.q(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,f.id!==a.id)for(h=g.q(zR(f.avatar)),l=h.next();!l.done;l=h.next())m=l.value,n=c.indexOf(m),-1!==n&&c.splice(n,1);return p.return(c)})};
BR=function(a){this.i=a};
uBa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:c=new Map,d=g.q(b),e=d.next();case 2:if(e.done){n.fb(4);break}f=e.value;h=c;l=h.set;m=f;return g.x(n,a.B(f),5);case 5:l.call(h,m,n.u);e=d.next();n.fb(2);break;case 4:return n.return(c)}})};
CR=function(a,b,c,d){this.status=a;this.i=b;this.u=c;this.failureReason=d};
DR=function(a,b,c){this.i=a;this.Y=b;this.u=c};
xBa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:e=b.entityKey;f=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch;ua(n,2);var p;var r=null!==(p=b.actionMetadata)&&void 0!==p&&p.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.x(n,vBa(a,e,{isEnqueuedForExpiredStreamUrlRefetch:f,OO:r}),4);case 4:return(h=
n.u)?g.x(n,wBa(a,h,b),5):n.return(ER(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return n.return(ER(b,!0,h.orchestrationActions));case 2:return l=wa(n),m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",l instanceof fw&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),kR("PDE handleAdd error"),n.return(ER(b,!1,void 0,m))}})};
yBa=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,v,y;return g.A(function(z){switch(z.i){case 1:return c=b.entityKey,g.x(z,dR(a.i,{mode:"readonly",Lc:!0},function(C){var F=WQ(C,c,"playbackData"),G=WQ(C,CQ(BQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");C=WQ(C,CQ(BQ(b.entityKey).entityId,"transfer"),"transfer");return lw.all([F,G,C])}),2);
case 2:d=z.u;e=g.q(d);f=e.next().value;h=e.next().value;l=e.next().value;m=f;n=h;p=l;if(!m||!n)return z.return(ER(b,!0));r={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};t={};if(null===p||void 0===p?0:p.maximumDownloadQuality)t.maximumDownloadQuality=p.maximumDownloadQuality;ua(z,3);return g.x(z,vBa(a,c,{refreshData:r,OO:t}),5);case 5:return(u=z.u)?g.x(z,wBa(a,u,b),6):z.return(ER(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return z.return(ER(b,
!0,u.orchestrationActions));case 3:return v=wa(z),y="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",v instanceof fw&&"QUOTA_EXCEEDED"===v.type&&(y="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),z.return(ER(b,!1,void 0,y))}})};
vBa=function(a,b,c){var d,e,f;return g.A(function(h){d=g.RL();var l=a.Y,m=c.refreshData,n=c.isEnqueuedForExpiredStreamUrlRefetch,p=c.OO,r={entityKey:b};m&&(r.refreshData=m);n&&(r.isExpiredStreamUrlRefetch=n);p&&(r.downloadParameters=p);e={context:vxa(l),signatureTimestamp:18954,videos:[r]};f=g.BL(zBa);return h.return(g.TJ(d,e,f))})};
wBa=function(a,b,c){var d;return g.A(function(e){if(1==e.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return e.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return e.fb(2);d=BQ(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.x(e,AR(d,a.i,c,a.u),2)}return g.x(e,YAa(b.frameworkUpdates.entityBatchUpdate),
0)})};
ER=function(a,b,c,d){return new CR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",wR(a),c,d)};
FR=function(){BR.apply(this,arguments)};
BBa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=wR(b),g.x(e,gR(a.i,b.entityKey,"transfer"),2);case 2:if(d=e.u)return e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ua(e,3);return g.x(e,ABa(a,b),5);case 5:va(e,4);break;case 3:return wa(e),e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
CBa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=wR(b),g.x(e,gR(a.i,b.entityKey,"transfer"),2);case 2:d=e.u;if(!d||"TRANSFER_STATE_COMPLETE"!==d.transferState)return e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ua(e,3);return g.x(e,ABa(a,b,!0),5);case 5:va(e,4);break;case 3:return wa(e),e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
c))}})};
ABa=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;return g.A(function(l){if(1==l.i)return e=null===(d=b.actionMetadata)||void 0===d?void 0:d.transferEntityActionMetadata,f={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:Px(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===e||void 0===e?void 0:e.maximumDownloadQuality,preferredAudioTrack:null===e||void 0===e?void 0:e.preferredAudioTrack,transferRetryCount:0,isRefresh:c},h=BQ(f.key).entityId,g.x(l,dR(a.i,
{mode:"readwrite",Lc:!0},function(m){var n=[];c&&n.push(aR(m,CQ(h,"offlineVideoStreams")));n.push(ZQ(m,f,"transfer"));return lw.all(n)}),2);
vR({transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"},{videoId:h,Lm:f});g.ta(l)})};
EBa=function(a){var b,c,d,e;return g.A(function(f){if(1==f.i)return b=g.RL(),c=Dxa(a),d=g.BL(DBa),g.x(f,g.TJ(b,c,d),2);e=f.u;if(!e)throw Error("Network request failed");if(!e.videos||!e.videos.length)throw Error("No data");return f.return(e.videos.map(function(h){return h.offlineVideoData}))})};
GR=function(a,b,c){this.i=a;this.Y=b;this.u=c};
HBa=function(a,b){var c,d,e,f,h,l;return g.A(function(m){switch(m.i){case 1:return c=wR(b),d=BQ(b.entityKey),e=d.entityId,ua(m,2),g.x(m,FBa(a,e),4);case 4:va(m,3);break;case 2:return f=wa(m),h="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",f instanceof fw&&"QUOTA_EXCEEDED"===f.type&&(h="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),m.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,h));case 3:var n;var p=null!==(n=b.actionMetadata)&&void 0!==n&&n.ytMainDownloadedVideoEntityActionMetadata?
{playbackDataActionMetadata:{maximumDownloadQuality:b.actionMetadata.ytMainDownloadedVideoEntityActionMetadata.maximumDownloadQuality}}:void 0;l=GBa("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e,p);return m.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,[l]))}})};
IBa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return c=wR(b),d=BQ(b.entityKey),e=d.entityId,g.x(n,gR(a.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:f=n.u;if(!f)return n.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ua(n,3);return g.x(n,FBa(a,e,f.addedTimestampMillis),5);case 5:h=GBa("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",e);va(n,4);break;case 3:return l=wa(n),l instanceof Error&&"No data"===l.message?g.x(n,AR(e,a.i,b,a.u),4):(m="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",
l instanceof fw&&"QUOTA_EXCEEDED"===l.type&&(m="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),n.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,m)));case 4:return n.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c,h?[h]:void 0))}})};
JBa=function(a,b){var c,d;return g.A(function(e){switch(e.i){case 1:return c=wR(b),ua(e,2),d=BQ(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===d?g.x(e,tBa(a.i,b,a.u),5):g.x(e,AR(d,a.i,b,a.u),5);case 5:va(e,3);break;case 2:return wa(e),e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 3:return e.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};
FBa=function(a,b,c){var d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return g.x(n,EBa([b]),2);case 2:return d=n.u,e=d[0],g.x(n,KBa(a,e,c),3);case 3:f=n.u;h=f.videoEntity;l=f.channelEntity;ua(n,4);var p=zR(h.thumbnail),r=zR(l.avatar);return g.x(n,nBa(p.concat(r)),6);case 6:va(n,0);break;case 4:m=wa(n);if(!a.Y.N("woffle_disable_thumbnails"))throw m;g.ta(n)}})};
KBa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());e=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;f={id:CQ(b.videoId,"ytMainChannelEntity"),channelId:e.channelId,title:e.title,avatar:e.thumbnail};h={id:CQ(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:f.id};l={id:CQ(b.videoId,"ytMainDownloadedVideoEntity"),video:h.id,playbackData:CQ(b.videoId,"playbackData"),offlineVideoPolicy:CQ(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.x(m,dR(a.i,{mode:"readwrite",Lc:!0},function(n){var p=ZQ(n,f,"ytMainChannelEntity"),r=ZQ(n,h,"ytMainVideoEntity");
n=ZQ(n,l,"ytMainDownloadedVideoEntity");return lw.all([p,r,n])}),2)}return m.return({videoEntity:h,
channelEntity:f,ida:l})})};
GBa=function(a,b,c){b=CQ(b,"playbackData");c=Object.assign(Object.assign({},c),{priority:1,retryScheduleIntervalsInSeconds:LBa});return{actionType:a,entityKey:b,actionMetadata:c}};
MBa=function(a,b,c){return new FF(a,{cotn:b,raw_player_response:c,download_media:!0,start:Infinity,disable_watch_next:!0})};
NBa=function(){return{priority:1,retryScheduleIntervalsInSeconds:[1,2,4]}};
HR=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};
IR=function(a){return{key:CQ(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()}};
OBa=function(){this.i=new Map};
PBa=function(){JR||(JR=new OBa);return JR};
QBa=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0,csn:void 0}};
RBa=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=Px(),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);b.csn&&(a.csn=b.csn);g.Wv("flowEvent",a,void 0)};
SBa=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=BQ(a.action.entityKey);a={entityType:d.YR,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};
KR=function(a,b){var c={offlineOrchestrationContext:SBa(a)};b=QBa(b,c);RBa(PBa(),b,a.rootActionId)};
LR=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:SBa(a,b,c)};b=QBa(3,b);RBa(PBa(),b,a.rootActionId)};
TBa=function(){this.actions=[]};
UBa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,KR(c,1),a.actions.push(c);a.actions.sort(a.i)};
VBa=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};
MR=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.oa=b;this.X=c;this.D=d;this.i=new TBa;this.S=new hx;this.C=new g.I(function(){e.retry()});
this.I=NaN;g.H(this,this.C);this.K=eR(this.u,this.Z.bind(this))};
XBa=function(a,b,c,d){var e;return g.A(function(f){if(1==f.i)return e=new MR(a,b,c,d),g.x(f,WBa(e),2);e.B?Promise.resolve():NR(e);return f.return(e)})};
NR=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,v,y;return g.A(function(z){switch(z.i){case 1:if(a.B)throw Error("Already processing an action");if(a.isDisposed())return z.return();b=a.i.actions.shift();iBa(a.X,!b);if(void 0===b)return z.return();for(c=[b];;)if((d=a.i.actions[0])&&0===d.retryScheduleIndex&&d.entityType===b.entityType)c.push(a.i.actions.shift());else break;a.B=c;if(e=a.oa[b.entityType]){z.fb(2);break}a.B=void 0;return g.x(z,NR(a),3);case 3:return z.return();case 2:f=g.q(c);for(h=f.next();!h.done;h=
f.next())l=h.value,KR(l,2);ua(z,4,5);return g.x(z,uBa(e,c.map(function(C){return C.action})),7);
case 7:m=z.u,n=g.q(c),h=n.next();case 8:if(h.done){z.fb(5);break}p=h.value;r=m.get(p.action);return g.x(z,YBa(a,p,r),9);case 9:h=n.next();z.fb(8);break;case 5:xa(z);a.B=void 0;ya(z,6);break;case 4:return t=wa(z),kR("Orchestration error",t),ua(z,12),g.x(z,ZBa(a,c),14);case 14:va(z,5);break;case 12:u=wa(z);kR("Orchestration retry error",u);v=g.q(c);for(h=v.next();!h.done;h=v.next())y=h.value,3>y.retryScheduleIndex&&UBa(a.i,[y]);z.fb(5);break;case 6:return g.x(z,NR(a),0)}})};
YBa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.i){if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){h=void 0;try{h=null===(d=c.u)||void 0===d?void 0:d.map(function(n){return a.createAction(n,b)})}catch(n){return LR(b,c),l={entityKey:b.action.entityKey,
failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},nR(a.D,l),kR("Orchestration subactions creation error",n),m.return()}LR(b,c,h);return g.x(m,dR(a.u,{mode:"readwrite",Lc:!0},function(n){var p=[];if(h){var r=h.map(function(t){return IR(t)});
p.push($Q(n,r,"offlineOrchestrationActionWrapperEntity"))}r=IR(b);p.push(aR(n,r.key));return lw.all(p)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return m.fb(0);
LR(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.x(m,ZBa(a,[b]),0);e=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";f={entityKey:b.action.entityKey,failureReason:e};nR(a.D,f);kR("Orchestration result is not retryable, deleting action");return g.x(m,TAa(a.u,IR(b).key),0)}KR(b,4);g.ta(m)})};
OR=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u;return g.A(function(v){c=[];d=Infinity;e=4E3;f=g.q(b);for(h=f.next();!h.done;h=f.next())l=h.value,m=Number(l.enqueueTimeSec),n=$Ba(m),p=l.retryScheduleIndex,r=null!=p&&0<p,0<n&&r?(d=Math.min(d,m),e=Math.min(n,e)):c.push(l);isFinite(d)&&(!a.C.isActive()||d<a.I)&&(a.I=d,a.C.start(e));a.S.Ee()||(t=c.length,c=c.filter(function(y){var z;y=(null===(z=y.actionProto)||void 0===z?void 0:z.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";return!aCa.includes(y)}),
u=c.length<t,!a.C.isActive()&&u&&a.C.start(1));
0<c.length&&bCa(a,c);return g.x(v,a.B?Promise.resolve():NR(a),0)})};
dCa=function(a){var b,c,d,e,f,h,l;return g.A(function(m){if(1==m.i)return g.x(m,cCa(a),2);b=m.u;c=[];d=g.q(b);for(e=d.next();!e.done;e=d.next())f=e.value,h=BQ(f.key),l=h.entityId,VBa(a.i,l)||c.push(f);return g.x(m,OR(a,c),0)})};
$Ba=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
ZBa=function(a,b){var c,d,e;return g.A(function(f){c=g.q(b);for(d=c.next();!d.done;d=c.next()){e=d.value;var h=void 0,l=void 0,m=(null===(h=null===(l=e.action)||void 0===l?void 0:l.actionMetadata)||void 0===h?void 0:h.retryScheduleIntervalsInSeconds)||[1,2,4];h=1;e.retryScheduleIndex<m.length&&(h=m[e.retryScheduleIndex]);e.i=1E3*h+Date.now();e.retryScheduleIndex++}return g.x(f,eCa(a,b),0)})};
WBa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,hR(a.u,"offlineOrchestrationActionWrapperEntity"),2);b=c.u;return g.x(c,OR(a,b),0)})};
bCa=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=BQ(c.key),e=BQ(c.actionProto.entityKey);c=new HR(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&&UBa(a.i,[c])})};
cCa=function(a,b){var c;return g.A(function(d){if(1==d.i)return g.x(d,hR(a.u,"offlineOrchestrationActionWrapperEntity",b),2);c=d.u;return d.return(c.filter($Aa))})};
eCa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return IR(c)});
return SAa(a.u,b)};
fCa=function(){this.i=void 0};
hCa=function(a,b){var c,d,e,f,h;return g.A(function(l){c=b.videoId;d=b.V();e=!0;if(b.captionTracks.length)f=nsa(b),a.i=new g.JM(d,b,f);else if(b.ac)h=g.usa(b),a.i=new g.LM(d,b.ac,c,h,b.hj),e=b.hj;else return l.return();return l.return(new Promise(function(m){var n;null===(n=a.i)||void 0===n?void 0:n.Us(function(){return g.A(function(p){if(1==p.i)return g.x(p,gCa(a,c,e),2);m();g.ta(p)})})}))})};
gCa=function(a,b,c){c=void 0===c?!0:c;var d,e,f,h,l,m,n,p,r,t,u,v,y,z;return g.A(function(C){switch(C.i){case 1:if(!a.i)return C.return();d=[];e=g.GM(a.i.u,c);f=[];h={};l=g.q(e.entries());for(m=l.next();!m.done;h={GB:h.GB},m=l.next())n=m.value,p=g.q(n),r=p.next().value,t=p.next().value,h.GB=r,u=t,v=a.i.Rp(u,"json3"),y=g.ku(v,{withCredentials:!0},3,500).then(function(F){return function(G){G={metadata:g.pF(e[F.GB]),trackData:G.xhr.responseText};f.push(G)}}(h)).yh(function(F){kR("Caption fetch error",
F)}),d.push(y);
return g.x(C,lba(d),2);case 2:return ua(C,3),g.x(C,Zqa(b,f),5);case 5:va(C,0);break;case 3:z=wa(C),kR("Caption DB transaction error",z),g.ta(C)}})};
iCa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,$qa(a),2);b=c.u;return c.return(!!b&&0<b.length)})};
jCa=function(){this.tag="woffle"};
kCa=function(a,b){this.api=a;this.i=b;this.logger=new jCa;this.u=!1;Qqa=this.api.V().N("html5_user_partitioned_ls")};
lCa=function(a){return g.A(function(b){return b.return(gra(a))})};
mCa=function(a){var b;return g.A(function(c){if(1==c.i)return g.x(c,dra(a),2);b=c.u;return c.return(b.filter(function(d){return!!d.url}).map(function(d){return d.url}))})};
PR=function(a,b){var c=iF(b);if(1===c||0===c)return Promise.resolve();(c=nCa(a,b))&&c.stopVideo();a.B=0;return lCa(b)};
QR=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;var e="string"===typeof b?b:b.videoDetails.videoId;2===iF(e)&&((b=nCa(a,e))?b.stopVideo():a.logger.info(function(){return"Corresponding player for "+e+" not found. Pausing anyway"}),jF(e,2),a.B=2,c?oCa(a.i):d&&pCa(a.i))};
nCa=function(a,b){var c;return(null===(c=a.player)||void 0===c?void 0:c.getVideoData().videoId)===b?a.player:null};
qCa=function(a){switch(a){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
RR=function(a){g.E.call(this);this.i=a;this.u=eR(this.i,this.B.bind(this))};
rCa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:if(0===b.length)return n.return([]);c=b.map(function(p){return CQ(p,"transfer")});
return g.x(n,hR(a.i,"transfer",c),2);case 2:d=n.u;e=d.filter($Aa).map(function(p){return BQ(p.key).entityId});
f=b.filter(function(p){return-1===e.indexOf(p)});
if(0===f.length)return n.return([]);h=g.q(f);l=h.next();case 3:if(l.done){n.fb(5);break}m=l.value;return g.x(n,lCa(m),4);case 4:l=h.next();n.fb(3);break;case 5:return n.return(f)}})};
tCa=function(a,b,c,d,e,f){var h,l,m;return g.A(function(n){h="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(h="STREAM_TYPE_AUDIO_AND_VIDEO",kR("unexpected stream type")):c.video&&!c.audio?h="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(h="STREAM_TYPE_AUDIO");l=CQ(b,"offlineVideoStreams");m={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:h,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===h?Number(c.hc()):void 0};return g.x(n,
dR(a,{mode:"readwrite",Lc:!0},function(p){var r=WQ(p,l,"offlineVideoStreams"),t=WQ(p,CQ(b,"transfer"),"transfer");return lw.all([r,t]).then(function(u){var v=g.q(u);u=v.next().value;v=v.next().value;if(!v)return aR(p,l).then(function(){});
u=[ZQ(p,sCa(u,d,m,l),"offlineVideoStreams")];v.offlineVideoStreams||(v.offlineVideoStreams=[]);-1===v.offlineVideoStreams.indexOf(l)&&(v.offlineVideoStreams.push(l),u.push(ZQ(p,v,"transfer")));return lw.all(u)})}),0)})};
uCa=function(a,b){var c,d,e,f,h;return g.A(function(l){if(1==l.i)return c=CQ(b,"offlineVideoStreams"),g.x(l,gR(a,c,"offlineVideoStreams"),2);d=l.u;if(!d||!d.streamsProgress)return l.return();e=g.q(d.streamsProgress);for(f=e.next();!f.done;f=e.next())h=f.value,h.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",h.numTotalBytes!==h.numBytesDownloaded&&(h.numBytesDownloaded=h.numTotalBytes);return g.x(l,fR(a,d,"offlineVideoStreams"),0)})};
sCa=function(a,b,c,d){if(a&&a.streamsProgress){d=a;a:{b=b.itag+";"+b.xtags;for(var e=a.streamsProgress,f=0;f<e.length;f++){var h=JSON.parse(e[f].formatStreamBytes);if(h.itag+";"+h.xtags===b){e[f]=c;c=e;break a}}e.push(c);c=e}d.streamsProgress=c}else a={key:d,streamsProgress:[c]};return a};
SR=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.api=b;this.Aa=c;this.xa=d;this.D=new hx;this.C=new g.I(function(){e.i&&"TRANSFER_STATE_TRANSFERRING"===e.i.transferState&&e.D.Ee()&&(3>(e.i.transferRetryCount||0)?QR(e.I,e.B,!1,!1):PR(e.I,e.B.videoDetails.videoId),e.rq("TRANSFER_FAILURE_REASON_TIMEOUT_NO_PROGRESS"))});
this.X=0;this.K=eR(this.u,this.dQ.bind(this));this.I=new kCa(b,this);this.Ja=new fCa;this.S=new RR(this.u);this.oa=this.D.Ra("publicytnetworkstatus-online",this.mX.bind(this));this.Z=this.D.Ra("publicytnetworkstatus-offline",this.SW.bind(this));this.Ba=g.S(this.api.V().experiments,"web_player_transfer_timeout_threshold_ms")};
vCa=function(a){g.A(function(b){if(1==b.i)b=g.x(b,Yqa(),2);else{var c=a.S;var d=hF();d=Object.keys(d);c=rCa(c,d);b=g.x(b,c,0)}return b})};
TR=function(a,b){b=void 0===b?!1:b;var c;return g.A(function(d){if(1==d.i){if(a.i)throw Error("Already downloading a video");return g.x(d,wCa(a),2)}return 4!=d.i?(c=d.u,jBa(a.Aa,!c),c&&a.D.Ee()?b?g.x(d,new Promise(function(e){g.Mt(e,1E3)}),4):d.fb(4):d.fb(0)):g.x(d,xCa(a,c),0)})};
yCa=function(a){return g.A(function(b){if(1==b.i)return a.B?g.x(b,PR(a.I,a.B.videoDetails.videoId),3):b.fb(0);UR(a);g.ta(b)})};
zCa=function(a,b){var c,d,e;return g.A(function(f){switch(f.i){case 1:return ua(f,2),(c=!!b.captionTracks.length||!!b.ac)?g.x(f,iCa(b.videoId),4):f.return();case 4:return(d=f.u)?f.return():g.x(f,hCa(a.Ja,b),5);case 5:va(f,0);break;case 2:e=wa(f),kR("Caption downloading error",e,b.cotn),g.ta(f)}})};
xCa=function(a,b){var c,d,e,f,h;return g.A(function(l){switch(l.i){case 1:return a.i=b,"TRANSFER_STATE_TRANSFERRING"===a.i.transferState&&(c=BQ(a.i.key),vR({transferStatusType:"TRANSFER_STATUS_TYPE_RESUME_PROCESSING",statusType:"OFFLINING_RETRIED"},{videoId:c.entityId,Lm:a.i})),g.x(l,VR(a),2);case 2:return d=null,ua(l,3),g.x(l,ACa(a,b),5);case 5:d=l.u;a.B=d;va(l,4);break;case 3:return e=wa(l),kR("error getting player response",e,b.cotn),g.x(l,a.rq("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return l.return();
case 4:return f=MBa(a.api.V(),b.cotn,d),g.x(l,zCa(a,f),7);case 7:return h=f,g.x(l,mCa(f.videoId),8);case 8:h.zl=l.u;var m=a.I,n=b.maximumDownloadQuality,p;f.getPlayerResponse()&&oG(f);jF(f.videoId,2);m.B=2;m.u=!1;null===(p=m.player)||void 0===p?void 0:p.dispose();m.player=m.api.Pl(9,f);p={};Fx(m.player,(p.localmediachange=m.Zs,p.signatureexpired=m.CF,p.statechange=m.FU,p),m);n=qCa(n);m.N("hoffle_lmqf_killswitch")||(n=oA(n,n,!0,"m"),BCa(m.player,n,!1));WR(m.player,!1);YR(a);g.ta(l)}})};
wCa=function(a){var b,c;return g.A(function(d){if(1==d.i)return g.x(d,hR(a.u,"transfer"),2);b=d.u;c=b.filter(CCa).sort(DCa);return 0===c.length?d.return():d.return(c[0])})};
VR=function(a){return g.A(function(b){YR(a);return g.x(b,ZR(a,"TRANSFER_STATE_TRANSFERRING"),0)})};
oCa=function(a){g.A(function(b){a.C.stop();return g.x(b,ZR(a,"TRANSFER_STATE_PAUSED_BY_USER"),0)})};
pCa=function(a){g.A(function(b){if(1==b.i)return a.C.stop(),g.x(b,ZR(a,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),2);UR(a);g.ta(b)})};
ECa=function(a){var b,c,d;g.A(function(e){switch(e.i){case 1:a.C.stop();if(!a.i||!a.B){e.fb(2);break}b=MBa(a.api.V(),a.i.cotn,a.B);return g.x(e,zCa(a,b),2);case 2:return g.x(e,ZR(a,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),4);case 4:return c=BQ(a.i.key),d=c.entityId,g.x(e,uCa(a.u,d),5);case 5:vR({transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",statusType:"SUCCESS"},{videoId:d,Lm:a.i}),UR(a),TR(a),g.ta(e)}})};
FCa=function(a,b,c){var d;g.A(function(e){switch(e.i){case 1:if("TRANSFER_STATE_TRANSFERRING"===a.i.transferState){e.fb(2);break}return g.x(e,VR(a),2);case 2:d=Date.now();if(!(1E3<d-a.X)){e.fb(4);break}a.X=d;return g.x(e,tCa(a.u,c.videoId,c.u,c.formatStream,c.bytesDownloaded,c.i),5);case 5:var f=Math.floor(c.bytesDownloaded/1024).toFixed();vR({transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:f,totalFetchedKbytes:f,totalContentKbytes:Math.floor(c.i/
1024).toFixed()},{videoId:b,Lm:a.i});case 4:YR(a),g.ta(e)}})};
GCa=function(a){var b=3>(a.i.transferRetryCount||0);b&&(a=a.i,a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
HCa=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;var c,d;return g.A(function(e){if(1==e.i)return c="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?c="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(c="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.x(e,ZR(a,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);nR(a.xa,{entityKey:a.i.key,failureReason:c});
d=BQ(a.i.key).entityId;var f={videoId:d,Lm:a.i},h=b,l={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};h&&(l.transferFailureReason=h,l.failureReason=oBa(h));vR(l,f);g.ta(e)})};
ZR=function(a,b,c,d){var e;return g.A(function(f){if(1==f.i)return a.i.transferState=b,a.i.failureReason=d,ua(f,2),g.x(f,ICa(a,function(h){return c?XQ(h,"offlineVideoStreams",a.i.offlineVideoStreams).then(function(l){for(var m=g.q(l),n=m.next();!n.done;n=m.next())if((n=n.value)&&n.streamsProgress){n=g.q(n.streamsProgress);for(var p=n.next();!p.done;p=n.next())p.value.streamState=c}return $Q(h,l.filter(function(r){return!!r}),"offlineVideoStreams")}):lw.resolve(void 0)}),4);
if(2!=f.i)return va(f,0);e=wa(f);return e instanceof fw&&"QUOTA_EXCEEDED"===e.type?g.x(f,a.rq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):f.fb(0)})};
ICa=function(a,b){var c;return g.A(function(d){if(!a.i)return d.return();c=a.i;return g.x(d,dR(a.u,{mode:"readwrite",Lc:!0},function(e){var f=[ZQ(e,c,"transfer")];b&&f.push(b(e));return lw.all(f)}),0)})};
UR=function(a){a.i=void 0;a.B=void 0;a.C.stop()};
ACa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.i)return c=BQ(b.key),d=c.entityId,e=CQ(d,"playbackData"),g.x(h,gR(a.u,e,"playbackData"),2);f=h.u;if(null===f||void 0===f?0:f.playerResponseJson)return h.return(JSON.parse(f.playerResponseJson));throw Error("No PlayerResponse found");})};
YR=function(a){a.C.start(a.Ba||6E4)};
CCa=function(a){return void 0!==$R[a.transferState]};
DCa=function(a,b){var c=$R[a.transferState],d=$R[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
LCa=function(a,b){var c=this;this.Y=a;this.api=b;this.K=new hx;this.u=new fBa(function(){return JCa(c)},function(){KCa(c)},this.api.Sp(),this.api.N.bind(this.api));
this.C=new mR(this.api);this.B=new Wj;gBa(this.u)};
JCa=function(a){return g.A(function(b){a.api.Oa("onOrchestrationBecameLeader");a.i&&a.D||MCa(a).then(a.B.resolve).catch(a.B.reject);var c=a.B.promise;return g.x(b,c,0)})};
MCa=function(a){var b,c,d,e;return g.A(function(f){if(1==f.i)return g.x(f,jR(),2);if(3!=f.i){b=f.u;if(!b)return kR("PES is undefined"),f.return();a.i=new SR(b,a.api,a.u,a.C);c={};d=(c.ytMainDownloadedVideoEntity=new GR(b,a.Y,a.C),c.playbackData=new DR(b,a.Y,a.C),c.transfer=new FR(b),c);e=a;return g.x(f,XBa(b,d,a.u,a.C),3)}e.D=f.u;return g.x(f,NCa(a),0)})};
NCa=function(a){var b;return g.A(function(c){switch(c.i){case 1:if(!a.i)return kR("transferManager is undefined"),c.return();if(!a.api.N("woffle_orch_init_killswitch")&&a.i.i){c.fb(2);break}return g.x(c,TR(a.i),2);case 2:return g.x(c,aS(a),4);case 4:return a.I=Nt(function(){aS(a)},9E5),vu(xu(),function(){a.i&&vCa(a.i)}),g.x(c,jR(),5);
case 5:return b=c.u,g.x(c,dBa(b),6);case 6:hBa(a.u),g.ta(c)}})};
KCa=function(a){var b,c;g.A(function(d){if(1==d.i)return a.i||a.D?g.x(d,a.B.promise,2):d.return();void 0!==a.I&&(Pt(a.I),a.I=void 0);null===(b=a.i)||void 0===b?void 0:b.dispose();a.i=void 0;null===(c=a.D)||void 0===c?void 0:c.dispose();a.D=void 0;a.api.Oa("onOrchestrationLostLeader");a.B=new Wj;g.ta(d)})};
OCa=function(a,b,c){return g.A(function(d){var e=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return d.return(a.Ww(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e))})};
PCa=function(a,b){return g.A(function(c){return c.return(a.Ww(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
QCa=function(){var a,b,c;return g.A(function(d){if(1==d.i)return g.x(d,jR(),2);if(3!=d.i)return(a=d.u)?g.x(d,hR(a,"transfer"),3):d.return([]);b=d.u;c=b.map(function(e){return BQ(e.key).entityId});
return d.return(c)})};
aS=function(a,b){b=void 0===b?43200:b;var c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i)return a.K.Ee()?g.x(p,jR(),2):p.return(RCa());if(3!=p.i){c=p.u;if(!c)return p.return([]);d=Date.now()/1E3;return g.x(p,hR(c,"offlineVideoPolicy"),3)}e=p.u;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,Number(m.lastUpdatedTimestampSeconds)+b<=d&&(n=BQ(m.key).entityId,f.push(n));return f.length?p.return(PCa(a,f)):p.return([])})};
RCa=function(){var a,b,c,d,e,f;return g.A(function(h){switch(h.i){case 1:return g.x(h,jR(),2);case 2:a=h.u;if(!a)return h.return([]);b=Date.now()/1E3;return g.x(h,hR(a,"offlineVideoPolicy"),3);case 3:c=h.u,d=g.q(c),e=d.next();case 4:if(e.done){h.fb(6);break}f=e.value;if(!(f.expirationTimestamp&&Number(f.expirationTimestamp)<b)){h.fb(5);break}f.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.x(h,fR(a,f,"offlineVideoPolicy"),5);case 5:e=d.next();h.fb(4);break;case 6:return h.return(c.map(function(l){return l.key}))}})};
SCa=function(){var a=void 0===a?!1:a;try{var b=g.B.parent===g.B.top,c=!!bBa()||a;return b&&c&&"undefined"!==typeof g.B.BroadcastChannel&&"undefined"!==typeof g.B.indexedDB}catch(d){return!1}};
TCa=function(){for(var a=bS.length;4>a;a++){var b=g.ch("VIDEO");b.load();bS.push(new g.XM(b))}};
UCa=function(){this.u=200;this.i=12};
VCa=function(a){var b=new UCa;b.u=g.S(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.S(a.experiments,"html5_gapless_max_played_ranges");return b};
g.cS=function(a,b,c,d){d=void 0===d?!1:d;pJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d};
WCa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Gh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.i&&((b=b.ld())&&b.isView()&&(b=b.ra),b&&b.Qp().length>a.i&&g.XF(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.i||!c.i)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.XF(f)&&g.XF(e))return{msg:"content-protection"};
a=c.i[0];e=e.C.i[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.Ej?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.hc(),cr:f.sampleRate,ni:e.hc(),nr:b.sampleRate}};
eS=function(){this.B=this.i=0;this.u=Array.from({length:dS.length}).fill(0)};
XCa=function(){};
YCa=function(a){this.name=a;this.startTimeMs=(0,g.P)();this.i=!1};
ZCa=function(){this.profiles=new XCa};
fS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new eS),a.profiles[b].Xk(c,d))};
gS=function(){};
hS=function(){var a=this;this.i=this.u=iaa;this.promise=new Fh(function(b,c){a.u=b;a.i=c})};
iS=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.il=new hS;this.Qj=d-1E3*b.dd();this.il.then(void 0,function(){});
this.timeout=new g.I(function(){e.Ne("timeout")},1E4);
g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.ma()};
dDa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.ma();a.timeout.start();b=g.jS.Po("gtfta");return g.x(p,a.il,2)}g.jS.Cn(b);c=a.i.ld();if(c.Sk())return a.Ne("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!eD(a.C))return a.Ne("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Op()!==a.C)return a.Ne("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=$Ca(a);e=d.gM;f=d.ZJ;h=d.fM;a.i.Cg(!1,!0);l=aDa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Vp:!0,TG:3,Ud:"gapless_pseudo"}),l.play()||nu());m=c.Kb();m.cpn=a.i.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.Ca("gapless",g.YC(m));a.i.Ca("gaplessTo",a.u.getVideoData().clientPlaybackNonce);n=a.i.getPlayerType()===a.u.getPlayerType();bDa(a.i,f,!1,n,a.u.getVideoData().clientPlaybackNonce);bDa(a.u,a.u.getCurrentTime(),!0,n,a.i.getVideoData().clientPlaybackNonce);
(0,g.Ah)(function(){!a.u.getVideoData().ob&&g.zJ(a.u.getPlayerState())&&cDa(a.u)});
kS(a,6);a.dispose();return p.return(Promise.resolve())})};
gDa=function(a){if(a.u.getVideoData().C){lS(a.u,a.C);kS(a,3);eDa(a);var b=fDa(a),c=b.VN;b=b.yX;c.subscribe("updateend",a.Dr,a);b.subscribe("updateend",a.Dr,a);a.Dr(c);a.Dr(b)}};
eDa=function(a){a.i.unsubscribe("internalvideodatachange",a.kp,a);a.u.unsubscribe("internalvideodatachange",a.kp,a);a.i.unsubscribe("mediasourceattached",a.kp,a);a.u.unsubscribe("statechange",a.Nc,a)};
aDa=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.cS(a,b,c,d)};
kS=function(a,b){a.ma();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.il.resolve(void 0))};
$Ca=function(a){var b=a.i.ld();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:mS(a.i,!0);c=Math.min(a.Qj/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Gh()+d;return{JR:b,gM:a,ZJ:c,fM:Infinity}};
fDa=function(a){return{VN:a.B.i.Dd,yX:a.B.u.Dd}};
nS=function(a){g.E.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.S=VCa(this.app.V());this.B=null;this.I=function(){(0,g.Ah)(function(){hDa(b)})}};
iDa=function(a,b,c,d){d=void 0===d?0:d;a.ma();a.Qs()||oS(a);a.C=new hS;a.u=b;var e=c,f=a.app.Jc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*mS(f,!0);e>h&&(e=h-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.i=f,f=e,e=a.i,a.app.Ta.addEventListener(g.Vy("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Ty(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));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,mS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,mS(b)+l));f=jpa(e,h)||d;f!==d&&a.u.Ca("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().Id=!0;d.getVideoData().La=!0;WR(d,!0);e="";a.i&&(e=g.pS(a.i.Rb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ca("queued",e);0!==b&&d.seekTo(b+.01,{Vp:!0,TG:3,Ud:"videoqueuer_queued"});a.B=new iS(a.S,a.app.Jc(),a.u,c);c=a.B;c.ma();Infinity!==c.status.status&&(kS(c,1),c.i.subscribe("internalvideodatachange",
c.kp,c),c.u.subscribe("internalvideodatachange",c.kp,c),c.i.subscribe("mediasourceattached",c.kp,c),c.u.subscribe("statechange",c.Nc,c),c.i.subscribe("newelementrequired",c.GM,c),c.kp());return a.C};
hDa=function(a){var b,c,d;g.A(function(e){switch(e.i){case 1:if(a.isDisposed())return e.return();a.ma();if(!a.C||!a.u)return a.ma(),e.return();a.K&&qS(a.app.Jc(),!0,!1);b=null;if(!a.B){e.fb(2);break}ua(e,3);return g.x(e,dDa(a.B),5);case 5:va(e,2);break;case 3:b=c=wa(e);case 2:if(!a.u)return a.ma(),e.return();a.app.Yu(a.u);g.jS.cG("vqsp",function(){a.app.dl(a.u.getPlayerType())});
g.jS.cG("vqpv",function(){a.app.playVideo()});
b&&jDa(a.u,b.message);d=a.C;oS(a);return e.return(d.resolve(void 0))}})};
oS=function(a){if(a.i){var b=a.i;a.app.Ta.removeEventListener(g.Vy("vqueued"),a.I);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Ne("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1};
kDa=function(){var a=Pia();return!(!a||"visible"===a)};
mDa=function(a){var b=lDa();b&&document.addEventListener(b,a,!1)};
nDa=function(a){var b=lDa();b&&document.removeEventListener(b,a,!1)};
lDa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Ru+"VisibilityState"])return"";a=Ru+"visibilitychange"}return a};
rS=function(){g.Q.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.Ge()};
mDa(this.C);this.D=this.getVisibilityState(this.rf(),this.isFullscreen(),this.Le(),this.isInline(),this.Os(),this.Ms())};
oDa=function(a){this.end=this.start=a};
g.vS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.Da=c;this.Ja=new Map;this.Za=new Map;this.Ka=new Map;this.D=new Map;this.B=[];this.I=[];this.u=new Map;this.ub=new Map;this.K=new Map;this.rb=NaN;this.bb=this.Ba=null;this.jb=new g.I(function(){sS(d,d.rb)});
this.events=new g.JC(this);this.isLiveNow=!0;this.kc=g.S(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.Z=new g.I(function(){d.X=!0;d.Da.Ca("sdai",{aftimeout:d.kc});tS(d);d.Uv(!1)},this.kc);
this.X=!1;this.Aa=new Map;this.Wa=[];this.S=null;this.fc=new Set;this.xa=[];this.wb=[];this.Zb=[];this.Gb=[];this.i=void 0;this.ob=0;this.Va=!0;this.C=!1;this.La=[];this.Nb=new Set;this.dc=new Set;this.ac=new Set;this.Gc=g.S(this.Y.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.pn=0;this.Sa=new Set;this.Fb=0;this.Db=!1;this.Da.getPlayerType();pDa(this.Da,this);this.oa=this.Da.getVideoData().oa;g.H(this,this.jb);g.H(this,this.events);g.H(this,this.Z);uS(this)||(this.events.T(this.api,
g.Vy("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,g.Wy("serverstitchedcuerange"),this.onCueRangeExit))};
sDa=function(a,b,c,d,e,f,h){var l=qDa(a,e,e+d);a.X&&a.Da.Ca("sdai","adaftto");var m=a.Y.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Da;f=void 0===f?e+d:f;e===f&&!d&&a.Y.N("html5_allow_zero_duration_ads_on_timeline")&&a.Da.Ca("sdai","attl0d");if(e>f&&(a.Bj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.Bj("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*n.getDuration();
if(f>n&&(a.Bj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.q(a.I),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Cc&&e<p.Wc||f<=p.Wc&&f>p.Cc)return a.Bj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+wS(p))),"";if(f===p.Cc)return a.Bj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+
"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+wS(p))),"";e===p.Wc&&(n=p)}else m=g.nc(a.I,{Wc:e},function(t,u){return t.Wc-u.Wc}),0<=m&&(n=a.I[m]);
if(l&&n)for(m=g.q(a.xa.entries()),p=m.next();!p.done;p=m.next()){var r=g.q(p.value);p=r.next().value;r=r.next().value;if(r.identifier===l.identifier){a.xa.splice(p,1);break}}else if(l&&a.Y.N("web_player_ss_timeout_skip_ads"))return a.Da.Ca("sdai","rejectAttl"),h&&!lo(a.Gb,function(t){return t===h})&&(a.Da.Ca("sdai","rejectAdBreakAttl"),a.Gb.push(h)),"";
l="ss_childplayback_"+rDa++;m=b.raw_player_response;m||a.Y.N("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=Px());p=b.cpn;b=new FF(a.Y,b);b.Bc=l;c={Bc:l,playerType:c,durationMs:d,Cc:e,Wc:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};g.rc(a.I,c,function(t,u){return t.Cc-u.Cc});
a.u.set(p,c);a.ub.set(l,c);a.Da.Ca("sdai",{attlDone:f-e});h?c.qk=h:n?c.qk=n.qk:c.qk=c.cpn;if(e=c.qk)(d=a.K.get(e))?(d.push(c),g.pc(d,function(t,u){return t.Cc-u.Cc})):a.K.set(e,[c]);
a.Z.isActive()&&(a.X=!1,a.Z.stop(),tS(a),a.Uv(!0));a.ma();return l};
tDa=function(a,b,c){return new g.Ty(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
xS=function(a){return{cpn:a.Da.getVideoData().clientPlaybackNonce,durationMs:0,Cc:0,playerType:1,Wc:0,videoData:a.Da.getVideoData(),errorCount:0}};
zS=function(a,b,c){var d=a.C,e=xS(a),f=b.Lf-c.Lf;.5<Math.abs(f)&&a.Da.Ca("sdai",{ttdtb:1,delta:f,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var h=a.u.get(b.adCpn);var l=a.u.get(c.adCpn)}l&&h&&(a.api.ea("serverstitchedvideochange",h.Bc,h.Vm),a.Da.Ca("sdai",{ssvc:"a2a"}),a.pn++,yS(a.Da,l,h,c.Lf,b.Lf,d))}else if(!b.isAd&&c.isAd){a.api.ea("serverstitchedvideochange");a.Da.Ca("sdai",{ssvc:"a2c"});a.pn=0;a.ob=c.Gd.end;var m;c.adCpn&&(m=a.u.get(c.adCpn));m&&yS(a.Da,m,
e,c.Lf,b.Lf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.u.get(b.adCpn));n&&(a.ob=0,a.api.ea("serverstitchedvideochange",n.Bc,n.Vm),a.Da.Ca("sdai",{ssvc:"c2a"}),a.pn=1,yS(a.Da,e,n,c.Lf,b.Lf,d))}};
AS=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.nc(a.I,{Cc:c},function(e,f){return e.Cc-f.Cc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.I[d],a.Wc>=c)?{Nl:a,oq:b}:{Nl:void 0,oq:b}};
BS=function(a,b){var c="";uS(a)?c=a.Da.Gs(b/1E3):(b=uDa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
uDa=function(a,b){a=g.q(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
sS=function(a,b){var c=a.bb||a.api.Jc().getPlayerState();CS(a,!0);var d=b;a.Y.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=AS(a,b).oq);a.Da.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.zJ(c)&&!g.zJ(b)?a.playVideo():g.T(c,4)&&!g.T(b,4)&&a.pauseVideo()};
CS=function(a,b){a.rb=NaN;a.jb.stop();a.Ba&&b&&DS(a.Ba);a.bb=null;a.Ba=null};
ES=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.I),l=h.next();!l.done;l=h.next())l=l.value,(l.Cc<d||l.Wc>e)&&f.push(l);a.I=f;d=b;e=c;f=g.q(a.D.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Da.removeCueRange(h),a.D.delete(h.getId()),a.Da.Ca("sdai","rmAdCR"));d=AS(a,b/1E3);b=d.Nl;d=d.oq;b&&(d=1E3*d-b.Cc,e=b.Cc+d,a.ma(),b.durationMs=d,b.Wc=e,vDa(a,b));(b=AS(a,c/1E3).Nl)&&a.Bj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+
wS(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
wDa=function(a){a.Y.N("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Ja.clear(),a.Za.clear(),a.Ka.clear(),a.D.clear(),a.B=[],a.I=[],a.u.clear(),a.ub.clear(),a.K.clear(),a.Aa.clear(),a.Wa=[],a.S=null,a.fc.clear(),a.xa=[],a.wb=[],a.Zb=[],a.Gb=[],a.La=[],a.Nb.clear(),a.dc.clear(),a.ac.clear(),a.Sa.clear(),a.isLiveNow=!0,a.X=!1,a.i=void 0,a.ob=0,a.Va=!0,a.C=!1,a.pn=0,a.Fb=0,a.Db=!1)};
vDa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Cc+b.durationMs:d.end===c.start&&(d.end=b.Cc);c.start=b.Cc;c.end=b.Cc+b.durationMs}};
wS=function(a){var b;return"playback_timelinePlaybackId_"+a.Bc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Cc+"_parentReturnTimeMs_"+a.Wc};
HS=function(a,b,c){c=a.Aa.get(c);c||(b+=GS(a),c=AS(a,b,1).Nl);return c};
IS=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;xDa(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.Da.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else xDa(a,b,c)};
xDa=function(a,b,c){b=tDa(b,c);c=!0;g.rc(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Da.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.Da.addCueRange(b),b=a.Da.zv("serverstitchedcuerange",36E5),b=g.q(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
JS=function(a,b,c){if(void 0===c||!c){c=g.q(a.Wa);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.Wa.push(new oDa(b))}};
g.yDa=function(a,b){a=g.q(a.Wa);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
GS=function(a){var b=0;a.Y.N("web_player_ss_media_time_offset")&&(b=0===a.Da.getStreamTimeOffset()?a.Da.dd():a.Da.getStreamTimeOffset());return b};
zDa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
ADa=function(a,b,c){var d=0;a=a.K.get(c);if(!a)return-1;a=g.q(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
BDa=function(a,b){var c,d=[];a=a.K.get(b);if(!a)return[];a=g.q(a);for(b=a.next();!b.done;b=a.next())(b=null===(c=b.value.videoData)||void 0===c?void 0:c.videoId)&&d.push(b);return d};
CDa=function(a,b){var c=0;a=a.K.get(b);if(!a)return 0;a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Wc!==b.Cc&&c++;return c};
DDa=function(a,b,c){var d=!1;if(c&&(c=a.K.get(c))){c=g.q(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Wc!==e.Cc&&(e=e.cpn,b===e&&(d=!0),d&&!a.dc.has(e)&&(a.Da.Ca("sdai","decoratedAd."+e),a.dc.add(e)))}};
tS=function(a){a.oa&&a.Da.Ca("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Fb)+"_isTimeout_"+a.X})};
qDa=function(a,b,c){if(a.xa.length)for(var d={},e=g.q(a.xa),f=e.next();!f.done;d={Vo:d.Vo},f=e.next()){d.Vo=f.value;f=1E3*d.Vo.startSecs;var h=1E3*d.Vo.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return lo(a.Zb,function(l){return function(m){return m.identifier===l.Vo.identifier}}(d))||(a.Da.Ca("sdai","adskip_"+b),a.Zb.push(d.Vo)),d.Vo}};
KS=function(a){a.X=!1;a.Z.isActive()&&tS(a);a.Z.stop();a.Uv(!1)};
uS=function(a){return a.Y.experiments.kb("html5_ssdai_use_new_ad_report")};
LS=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.Y=b;this.i=c;this.I=new Map;this.u=[];this.B=this.K=null;this.X=NaN;this.D=this.C=null;this.S=new g.I(function(){EDa(d,d.X)});
this.Z=[];this.oa=new g.I(function(){var e=d.Z.pop();if(e){var f=e.Bc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Z.length&&g.Fr(d.oa,4500))}});
this.events=new g.JC(this);c.getPlayerType();g.H(this,this.S);g.H(this,this.oa);g.H(this,this.events);this.events.T(this.api,g.Vy("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Nh)};
IDa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.i;f=void 0===f?e+d:f;if(e>f)return MS(a,"e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return MS(a,"e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.dd(),MS(a,m,h,l),"";n=null;for(var p=g.q(a.u),r=p.next();!r.done;r=p.next()){r=r.value;if(e>=r.Cc&&e<r.Wc)return MS(a,"e.overlappingEnter",h,l),a.ma(),"";if(f<=r.Wc&&f>r.Cc)return MS(a,"e.overlappingReturn",h,l),a.ma(),"";if(f===r.Cc)return MS(a,"e.outOfOrder",h,l),a.ma(),"";e===r.Wc&&(n=r)}h="cs_childplayback_"+FDa++;l={Gd:NS(d,!0),Qj:Infinity,target:null};var t={Bc:h,playerVars:b,playerType:c,durationMs:d,Cc:e,Wc:f,zn:l};a.u=a.u.concat(t).sort(function(y,z){return y.Cc-z.Cc});
n?GDa(a,n,{Gd:NS(n.durationMs,!0),Qj:a.Y.N("timeline_manager_transition_killswitch")?Infinity:n.zn.Qj,target:t}):(b={Gd:NS(e,!1),Qj:e,target:t},a.I.set(b.Gd,b),a.ma(),m.addCueRange(b.Gd));b=a.Y.N("html5_gapless_preloading");if(a.i===a.api.Jc()&&(m=1E3*m.getCurrentTime(),m>=t.Cc&&m<t.Wc)){var u=a.api.Jc().getPlayerState(),v=m-t.Cc;(0,uh)(function(){HDa(a,t,v/1E3,u)});
b=!1}b&&(a.Z.unshift(t),g.Fr(a.oa,0));a.ma();return h};
NS=function(a,b){return new g.Ty(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
JDa=function(a,b,c,d){a.ma();a.B=d;a.api.Qy(a.i,c,b)};
KDa=function(a,b,c,d){a.ma();a.B=d;d=b.Bc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
GDa=function(a,b,c){var d=b.zn;b.zn=c;OS(a,b)&&(c=a.api.Jc(),d.Gd===a.B&&PS(a),a.ma(),c.removeCueRange(d.Gd),b=b.zn,a.ma(),c.addCueRange(b.Gd))};
PS=function(a){a.K=null;a.B=null;a.api.Qs()||a.api.clearQueue()};
LDa=function(a,b){OS(a,b)||MS(a,"e.childPlaybackIsNotPresenting");return b.Wc===b.Cc+b.durationMs?(a=a.api.Jc(),b.Cc+1E3*a.getCurrentTime()):b.Wc};
QS=function(a,b){var c=0;a=g.q(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Cc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Nl:d,oq:b-e};c=f-d.Wc/1E3}return{Nl:null,oq:b-c}};
EDa=function(a,b){var c=a.D||a.api.Jc().getPlayerState();RS(a,!0);b=a.Y.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.i.sj();var d=QS(a,b);b=d.Nl;d=d.oq;var e=b&&!OS(a,b)||!b&&a.i!==a.api.Jc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||PS(a);a.ma();b?(a.ma(),HDa(a,b,d,c)):(a.ma(),SS(a,d,c))};
SS=function(a,b,c){var d=a.i,e=a.api.Jc();d!==e&&a.api.dl(d.getPlayerType());d.seekTo(b,{Ud:"application_timelinemanager"});MDa(a,c)};
HDa=function(a,b,c,d){var e=OS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new FF(a.Y,b.playerVars);f.Bc=b.Bc;a.api.Xn(f,b.playerType)}f=a.api.Jc();e||(b=b.zn,a.ma(),f.addCueRange(b.Gd));f.seekTo(c,{Ud:"application_timelinemanager"});MDa(a,d)};
MDa=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.zJ(b)&&!g.zJ(c)?a.playVideo():g.T(b,4)&&!g.T(c,4)&&a.pauseVideo()};
RS=function(a,b){a.X=NaN;a.S.stop();a.C&&b&&DS(a.C);a.D=null;a.C=null};
OS=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Bc===b.Bc};
NDa=function(a){var b=a.u.find(function(e){return OS(a,e)});
if(b){var c=a.api.Jc();PS(a);var d=new g.tJ(8);b=LDa(a,b)/1E3;SS(a,b,d);c.Ca("forceParentTransition","childPlayback");a.i.Ca("forceParentTransition","parentPlayback")}};
TS=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.Qj>=d&&l.target&&l.target.Wc<=e&&(a.i.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Cc>=d&&l.Wc<=e){var m=a;m.K===l&&PS(m);OS(m,l)&&m.api.Jo(l.playerType)}else f.push(l);a.u=f;d=QS(a,b/1E3);b=d.Nl;d=d.oq;b&&(d*=1E3,ODa(a,b,d,b.Wc===b.Cc+b.durationMs?b.Cc+d:b.Wc));
(b=QS(a,c/1E3).Nl)&&MS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Bc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Cc+" parentReturnTimeMs="+b.Wc+"}.Child playbacks can only have duration updated not their start."))};
ODa=function(a,b,c,d){a.ma();b.durationMs=c;b.Wc=d;d={Gd:NS(c,!0),Qj:c,target:null};GDa(a,b,d);OS(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=LDa(a,b)/1E3,c=a.api.Jc().getPlayerState(),SS(a,b,c))};
MS=function(a,b,c,d){c||d?a.i.Ca("timelineerror",b+";cpn."+(c+";videoId."+d)):a.i.Ca("timelineerror",b)};
QDa=function(a){a&&"web"!==a&&PDa.includes(a)};
WS=function(a,b){g.E.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.I(function(){US(c);VS(c)});
g.H(this,this.i)};
US=function(a){var b=(0,g.P)();a.data.forEach(function(c){c.expire<b&&XS(a,c,!0)});
a.data=g.Cp(a.data,function(c){return!(c.expire<b)})};
XS=function(a,b,c){c&&a.u&&a.u(b.value)};
VS=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))};
YS=function(){g.gs.call(this);this.D=new Map};
ZS=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.i=a-1};
RDa=function(a){return a.data[a.i]||0};
$S=function(a){g.E.call(this);this.B=a;this.i=new Map;this.u=new g.I(this.sample,250,this);g.H(this,this.u);this.start()};
aT=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.u!==a.i;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
bT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:RDa(c.buffer))||0};
cT=function(a){this.u=a;this.i=NaN;this.buffer=new ZS(100)};
SDa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.hc()+")":a.hc()};
dT=function(a){g.E.call(this);var b=this;this.i=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.i=null:b.i=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
TDa=function(a,b){qla(a,"version",b)};
fT=function(a){g.W.call(this,{G:"div",Ha:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.eT.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.bv=this.Fa(g.eT.VIDEO_CONTAINER);this.vt=new g.Dm(0,0,0,0);this.Lb=null;this.LA=new g.Dm(0,0,0,0);this.kE=this.fF=this.eF=NaN;this.Dz=this.IA=this.VF=this.FJ=!1;this.rD=NaN;this.IE=!1;this.ow=null;this.yF=function(){b.element.focus()};
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.V();e.transparentBackground&&this.Wm("ytp-transparent");"0"===e.controlsType&&this.Wm("ytp-hide-controls");g.L(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.L(this.element,"ytp-linear-gradient-bottom-experiment");sqa(e)&&g.L(this.element,"ytp-larger-tap-buttons");e.N("enable_new_paid_product_placement")&&!g.ME(e)&&g.L(this.element,"ytp-exp-ppp-update");OE(e)&&g.L(this.element,"ytp-exp-hybrid-controls");TDa(this.element,UDa(a));this.XN=!1;this.Cv=
new g.yg(NaN,NaN);VDa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
VDa=function(a){function b(){a.Lb&&gT(a);hT(a)!==a.IE&&a.resize()}
function c(h,l){a.Is(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.LA=new g.Dm(0,0,0,0);a.vt=new g.Dm(0,0,0,0)}
var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.te(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
WDa=function(a){var b=g.uM(a.app);if(b=b?b.getVideoData():null){if(g.dG(b)||g.eG(b)||g.gG(b))return 16/9;if(NF(b)&&b.C.i)return a=b.C.videoInfos[0].video,iT(a.width,a.height)}return(a=a.Lb)?iT(a.videoWidth,a.videoHeight):16/9};
XDa=function(a,b,c,d){var e=c,f=iT(b.width,b.height);a.FJ?e=c<f?Infinity:0:isNaN(a.kE)?isNaN(a.fF)||(e=a.fF):e=a.kE;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};
iT=function(a,b){return 1>Math.abs(jT*b-a)||1>Math.abs(jT/a-b)?jT:a/b};
hT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.uM(a.app);if(!b||b.gm())return!1;var c=a.app.Ta.zb();a=!g.T(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().La;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
gT=function(a){var b="3"===a.app.V().controlsType&&!a.Dz&&hT(a)&&!a.app.ww||!1;a.Lb.controls=b;a.Lb.tabIndex=b?0:-1;b?a.Lb.removeEventListener("focus",a.yF):a.app.V().N("disable_focus_redirect")||a.Lb.addEventListener("focus",a.yF)};
YDa=function(a){var b=a.rg(),c=1,d=!1,e=XDa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),h=Hu(),l=f&&a.VF&&768<a.getPlayerSize().width;if(hT(a)){var m=WDa(a);var n=isNaN(m)||g.Hw||OF&&g.Gj||l;Iu&&!g.zc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().N("place_shrunken_video_on_left_of_player"),m=(.5-.46)/2,m*=a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Dm(n,0,b.width,b.height)):n=new g.Dm(0,0,b.width,b.height):(c=e.aspectRatio/
m,n=new g.Dm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Gj&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(h||a.XN)a.Lb.style.display="";a.IE=!0}else{n=-b.height;Iu?n*=window.devicePixelRatio:g.PE&&(n-=window.screen.height);n=new g.Dm(0,n,b.width,b.height);if(h||a.XN)a.Lb.style.display="none";a.IE=!1}Em(a.LA,n)||(a.LA=n,g.sE(a.app.V())?(a.Lb.style.setProperty("width",n.width+"px","important"),a.Lb.style.setProperty("height",n.height+"px","important")):g.$m(a.Lb,
n.getSize()),d=new g.wg(n.left,n.top),g.Om(a.Lb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Dm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Em(a.vt,b)||(a.vt=b,d=!0);g.Hm(a.Lb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.IA&&(a.IA=l,a.app.Ta.ea("playerUnderlayVisibilityChange",a.IA));return d};
ZDa=function(){this.csn=g.Vx();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.i=new Set;this.u=new Set};
$Da=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.i.delete(b);a.u.delete(b)};
aEa=function(a){if(a.csn!==g.Vx())if("UNDEFINED_CSN"===a.csn)a.csn=g.Vx();else{var b=g.Vx(),c=g.Ux();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.gy(void 0,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.hy(b,c,void 0)}};
kT=function(a,b,c,d,e){g.W.call(this,{G:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.D+"em"};
lT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ch("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.ch("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.u.height=a.heightPx*
c,a.u.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="")};
mT=function(a){var b=null;b={G:"button",Ha:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},va:"[x]"};g.W.call(this,{G:"div",L:"html5-video-info-panel",U:[b,{G:"div",L:"html5-video-info-panel-content",U:[{G:"div",U:[{G:"div",va:"Video ID / sCPN"},{G:"span",va:"{{video_id_and_cpn}}"}]},{G:"div",U:[{G:"div",va:"Viewport / Frames"},{G:"span",va:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",va:"Current / Optimal Res"},{G:"span",va:"{{resolution}}"}]},{G:"div",U:[{G:"div",va:"Volume / Normalized"},
{G:"span",va:"{{volume}}"}]},{G:"div",U:[{G:"div",va:"Codecs"},{G:"span",va:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",va:"Shader Info"},{G:"span",va:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",va:"Color"},{G:"span",va:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",va:"Protected"},{G:"span",va:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",va:"Connection Speed"},{G:"span",U:[{G:"span",va:"{{bandwidth_chart}}"},
{G:"span",va:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",va:"Network Activity"},{G:"span",U:[{G:"span",va:"{{network_activity_chart}}"},{G:"span",va:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",va:"Buffer Health"},{G:"span",U:[{G:"span",va:"{{buffer_health_chart}}"},{G:"span",va:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",va:"Live Latency"},{G:"span",U:[{G:"span",va:"{{live_latency_chart}}"},{G:"span",
va:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",va:"Live Mode"},{G:"span",va:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",va:"Playback Categories"},{G:"span",va:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",va:"Mystery Text"},{G:"span",va:"{{debug_info}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",va:"COTN / Local Media"},{G:"span",va:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},
U:[{G:"div",va:"Player Release"},{G:"span",va:"{{release_name}}"}]}]}]});b&&(b=this.Fa("html5-video-info-panel-close"),this.T(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 kT(300,1,150,b,c);g.H(this,this.i);this.Pa("bandwidth_chart",this.i);this.B=new kT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.Pa("live_latency_chart",this.B);this.u=new kT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.Pa("buffer_health_chart",this.u);this.C=new kT(300,1,150,d,c);g.H(this,this.C);this.Pa("network_activity_chart",this.C);this.delay=new g.I(this.Qa,
500,this);g.H(this,this.delay);this.Ta=a};
bEa=function(a){a=void 0===a?{}:a;var b=a.fg,c=a.Fg,d=a.getLastSegmentNumber,e=a.Bs;this.Rl=a.Rl;this.fg=b;this.Fg=c;this.getLastSegmentNumber=d;this.Bs=e};
cEa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Rl||b===c&&(a=a.Bs())&&b===a.Ma?!0:!1};
dEa=function(a,b,c){if(!cEa(a,b))return 0;if(!a.fg||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Bs())&&b===a.Ma&&!a.pending?2:1};
nT=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
eEa=function(a,b){var c=Math.min(2.5,UD(a.schedule));a=oT(a);return b-c*a};
pT=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.hd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/WD(a.schedule);var h=.9*(d-a.policy.Tg);h=Math.max(h,UD(a.schedule)+2048*f);c=h/f*a.policy.Hl/(b+c);c=Math.min(c,d);a.policy.Wd&&e&&(c=Math.max(c,a.policy.Wd));return fEa(a,c,b)};
fEa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Gl*c),Math.min(Math.min(a.policy.Ka,31*c),Math.ceil(b*c))))||65536};
oT=function(a){return WD(a.schedule,!a.policy.lj,a.policy.Fl)};
qT=function(a){return oT(a)/a.playbackRate};
rT=function(a,b,c,d,e){this.Ya=a;this.u=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.i=!1;this.C=this.u.isManifestless&&!this.u.bf;this.D=null};
gEa=function(a,b,c){var d=b.i.index,e=b.u.Ma;fC(d,e)||c&&c.Ma===e?(a.ma(),b.D=!fC(d,e),b.S=!fC(d,e)):(a.ma(),b.D=!0,b.S=!0)};
iEa=function(a,b,c,d){a.ma();if(!b.i.Ue())return 0!==c&&sT(b),c;var e=tT(b,c);if(!isNaN(e))return a.ma(),e;sT(b);uT(b.C);return d&&(a=UC(d.lf(),c),!isNaN(a))?(vT(b,a+hEa),c):vT(b,c)};
mEa=function(a,b,c,d){if(a.i&&a.B){var e=jEa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;(0,g.Ah)(function(){a.Ya.Ca("seekreason","reason.behindMinSq;tgt."+e);kEa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.gr||!a.C;if(0<=tT(a.videoTrack,a.B)&&0<=tT(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.ma(),a.Ya.Ca("iterativeSeeking","done;count."+a.seekCount);a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&(0,g.Ah)(function(){if(a.C||!a.policy.Va)lEa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.S&&!a.audioTrack.S;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.B>=h&&a.B<h+l+.1?((c?a.videoTrack:
a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.ma(),a.Ya.Ca("iterativeSeeking","done;count."+a.seekCount),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ma(),a.Ya.Ca("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.ma(),a.Ya.Ca("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ya.Da.seekTo(h+.1,{Vp:!0,Ud:"chunkSelectorSynchronizeMedia",
lp:!0})))}})};
jEa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(fC(c,a.u.re)||b.Ma===a.u.re)&&d<a.u.re?(a.ma(),a.u.getMinSeekableTime()):-1};
kEa=function(a,b){a.C&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.C=!1,a.ma(),a.Ya.Da.seekTo(b+.1,{Vp:!0,Ud:"chunkSelectorSynchronize",lp:!0}))};
lEa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&a.videoTrack.ag(),c=!c&&a.audioTrack.ag(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=c.ag().info.Ma,-1!==b.I){var d=Math.max(b.i.index.getStartTime(b.I),c.i.index.getStartTime(c.I));qD(a.u)&&432E3<Math.abs(d-qD(a.u))&&mpa(a.u);a.Ya.Ca("seekreason","reason.initManifestlessSync;tgt."+d);(0,g.Ah)(function(){return kEa(a,d)});
a.D&&(a.D.resolve(d+.1),a.D=null)}};
nEa=function(){this.B=this.C=0;this.ticks={}};
wT=function(a,b,c,d,e,f){g.Q.call(this);this.Ya=a;this.S=b;this.policy=c;this.I=d;this.Aa=e;this.Z=this.u=null;this.B=this.C=NaN;this.K=0;this.D=null;this.oa=new Map;this.X="";this.xa=0;this.i=f?1:0};
xT=function(a,b,c){a.policy.jh&&(b.startSecs+=isNaN(a.K)?0:a.K);a=a.S;a.Z.push(b);a.ea("cuepointsadded",c)};
oEa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.C)?a.C:b};
qEa=function(a,b,c,d){pEa(a.I,d,c,b);pEa(a.Aa,d,c,b);sD(a.S,d,!0);sD(a.S,d,!1);a.Ca("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
rEa=function(a,b){if(a.u){var c=a.u.me.durationSecs-(b.startTime+a.K-a.u.me.startSecs);0>=c||(c=new Ly(a.u.me.startSecs-(a.policy.jh&&!isNaN(a.K)?a.K:0),c,a.u.me.context,a.u.me.identifier,"stop",a.u.me.i+1E3*b.duration),a.Ca("cuepointdiscontinuity","segNum."+b.Ma),xT(a,c,b.Ma))}};
sEa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ca("sdai","rststate_skth")):0<b&&5<=Math.abs(b-c)&&4===a.i&&(a.Ca("sdai","rststate_skt_"+b.toFixed(2)+"_ct_"+c.toFixed(2)),a.i=5)};
yT=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
zT=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ya=a;this.xa=b;this.policy=c;this.D=d;this.I=e;this.Za=f;this.B=EF;this.i=this.K=null;this.X=-1;this.Ka=!1;this.nextVideo=this.u=null;this.C=[];this.Ba={};this.videoIndex=0;this.Va=this.Z=this.S=!1;this.Aa=0;this.Sa=new Set;this.Wa=!1;this.oa=new Map;this.La=0;this.bb=!1;this.Ja=null};
xEa=function(a,b,c){AT(a,b);tEa(a,c);a.K=a.u;uEa(a);vEa(a);a.i=a.nextVideo;a.K=a.u;return wEa(a)};
yEa=function(a,b){if(a.B.equals(b))return null;if("m"===b.reason&&b.isLocked())return a.ma(),AT(a,b),a.videoIndex=a.C.length-1,BT(a),CT(a),a.Z=a.Z||a.i!==a.nextVideo,a.i=a.nextVideo,new yT(a.u,a.i,b.reason);"r"===b.reason&&(a.X=-1);AT(a,b);CT(a);if("r"===b.reason&&a.nextVideo===a.i)return new yT(a.u,a.nextVideo,b.reason);a.i&&a.nextVideo&&DT(a,a.i.info)<DT(a,a.nextVideo.info)&&(b=a.B.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
zEa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,wEa(a)}else a.Va=a.K!==b,a.K=b;return null};
ET=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.bb=!0;c=6E4*Math.pow(2,a.La);a.oa.set(b.info.id,(0,g.P)()+c);a.X=-1;AT(a,a.B)};
FT=function(a){if(a.oa.size){for(var b=(0,g.P)(),c=g.q(a.oa.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.oa.clear()}return!1};
AEa=function(a,b){return new yT(a.K,a.i,b||a.B.reason)};
GT=function(a){return a.B.isLocked()};
wEa=function(a){a.Ka?a.Ka=!1:a.X=(0,g.P)();a.S=!1;return new yT(a.K,a.i,a.B.reason)};
BEa=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&&FC(f)&&f.video.i>a.policy.S,l=e<=a.policy.S?FC(d):DC(d);if(!f||h||l)c[e]=d}return c};
AT=function(a,b){var c;a.B=b;var d=a.I.videoInfos;if(!GT(a)){var e=(0,g.P)();d=g.Cp(d,function(p){if(p.Ob>this.policy.Ob)return this.ma(),!1;var r=this.D.i[p.id],t=r.info.i;return this.policy.lr&&this.Sa.has(t)||this.oa.get(p.id)>e?!1:4<r.u.u||4<r.S?(this.ma(),!1):r.C?!1:!0},a);
a.bb&&FT(a)&&(d=g.Cp(d,function(p){return 480>=p.video.i}))}d.length||(d=a.I.videoInfos);
var f=g.Cp(d,b.C,b),h="m"===b.reason||"s"===b.reason;a.policy.jj&&OF&&g.Gj&&(!h||1080>b.i)&&(f=f.filter(function(p){return p.video&&(!p.u||p.u.powerEfficient)}));
if(0<f.length)if(bD()){var l=BEa(a,f);f=f.filter(function(p){return!!p&&!!p.video&&p.i===l[p.video.i].i})}else{b=f[0];
var m=null===(c=null===b||void 0===b?void 0:b.video)||void 0===c?void 0:c.i;if(m){b=f.filter(function(p){return!!p&&!!p.video&&p.video.i===m});
var n=BEa(a,b)[m].i;f=f.filter(function(p){return!!p&&!!p.video&&p.i===n})}}f.length||(f=[d[0]]);
f.sort(function(p,r){return DT(a,p)-DT(a,r)});
for(d=1;d<f.length;d++)b=f[d-1],h=f[d],b.video.width>h.video.width?(a.ma(),g.Zb(f,d),d--):DT(a,b)*a.policy.B>DT(a,h)&&(a.ma(),g.Zb(f,d-1),d--);d=f[f.length-1];a.Wa=!!a.i&&!!a.i.info&&a.i.info.i!==d.i;a.ma();a.C=f;Mxa(a.policy,d)};
tEa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.Tb(a.I.i,function(c){return!!c.zc&&c.zc.isDefault}))||a.I.i[0],a.u=a.D.i[b.id]);
BT(a)};
CEa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=qT(a.xa)/a.policy.B;return DT(a,b.info)+DT(a,a.C[c])>d};
BT=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.zc)if(a.u=a.D.i[a.I.i[0].id],1<a.I.i.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.Cl){var c=Sb(a.I.i,function(d){return"250"===d.hc()});
0<=c&&(a.u=a.D.i[a.I.i[c].id],b=CEa(a,a.u))}}else b=a.B.isLocked()?240>a.B.i:CEa(a,a.u);b&&(a.u=a.D.i[g.Rb(a.I.i).id])}};
CT=function(a){a.policy.Rf&&(a.Ja=a.Ja||new g.I(function(){a.policy.Rf&&a.i&&!FT(a)&&1===Math.floor(10*Math.random())?(ET(a,a.i),a.S=!0):a.Ja.start()},6E4),g.Fr(a.Ja));
if(!a.nextVideo||!a.policy.u)if(GT(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.Rb(a.C).id],a.ma();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=qT(a.xa),d=DT(a,a.u.info),e=c/a.policy.C-d;0<b&&!(DT(a,a.C[b])<=e);b--);for(c=c/a.policy.B-d;b<a.C.length-1&&!(DT(a,a.C[b+1])>=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.ma();a.videoIndex=b}};
uEa=function(a){var b=a.policy.C,c=qT(a.xa)/b-DT(a,a.u.info);b=g.Ub(a.C,function(d){return DT(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.ma()};
vEa=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if("f"===d.info.i||b.includes(KB(d,a.D.isLive)))return d;for(var f=0;f<e.length;f++){var h=a.D.i[e[f].id],l=KB(h,a.D.isLive);if(b.includes(l)){l=d.info.i;var m=h.info.i;if(l===m||bD())return d=d.info.hc(),e=h.info.hc(),a.Ya.Ca("ombifa","f."+d+";t."+e),a.ma(),a.Ka=!0,h;a.Ya.Ca("ombifa","mismatch.efficient;fc."+l+";tc."+m)}}a.Ya.Ca("ombifa","mismatch.unselectable;fmts."+b.join("."));return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.u=c(a.u,a.I.i)}};
DT=function(a,b){if(!a.Ba[b.id]){var c=a.D.i[b.id].index.getLocalMaxByterate(a.Aa,15);c=b.Tu&&a.i&&a.i.index.isLoaded()?c||b.Tu:c||b.Ob;a.Ba[b.id]=c}c=a.Ba[b.id];a.policy.ac&&b.video&&b.video.i>a.policy.ac&&(c*=1.5);return c};
DEa=function(a,b){a=Re(a.D.i,function(c){return c.info.hc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
EEa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Uoa(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++){var d=a.C[c].hc();b.push(d)}b.reverse()}return b};
FEa=function(a,b){this.u=(new TextEncoder).encode(a);this.i=(new TextEncoder).encode(b)};
ara=function(a,b){var c,d,e;return g.A(function(f){if(1==f.i){if(!b)return f.return(b);c=HT.Po("woe");d=new NQ(a.u);return g.x(f,d.encrypt(b,a.i),2)}e=f.u;HT.Cn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
era=function(a,b){var c,d,e;return g.A(function(f){if(1==f.i){if(!b)return f.return(b);c=HT.Po("wod");d=new NQ(a.u);return g.x(f,d.decrypt(b,a.i),2)}e=f.u;HT.Cn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
IT=function(a,b,c){this.policy=a;this.i=b;this.xa=c;this.B=this.u=0;this.Ve=null;this.S=[];this.indexRange=this.initRange=null;this.X=new hS;this.Z=this.oa=!1;a:{if(this.policy.Gc&&this.policy.rr){b={};c=g.q(this.policy.Gc);for(var d=c.next();!d.done;b={Ox:b.Ox,Px:b.Px},d=c.next())if(d=g.Dt(d.value),b.Ox=+d.clen,b.Px=+d.csz,0<b.Ox&&0<b.Px&&this.policy.u===d.docid&&this.i.info.id===d.fmtid&&this.i.info.lastModified===+d.lmt){c={};b=(c.clen=b.Ox,c.csz=b.Px,c.ck=d.ck,c.civ=d.civ,c);break a}}b=void 0}b?
(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.K=b.ck,this.I=b.civ):(this.chunkSize=a.qr,this.C=0,this.policy.Eh&&(this.K=Px(),this.I=Px()));this.D=new Uint8Array(this.chunkSize);this.K&&this.I&&(this.crypto=new FEa(this.K,this.I))};
JT=function(a){return!!a.Ve&&a.Ve.B};
HEa=function(a,b){if(!JT(a)&&!a.isDisposed()){if(!(a.oa||(a.oa=!0,0<a.C))){var c=KT(a);c=mF(a.policy.u,a.i.info,LT(a),c);MT(a,c)}if(1===b.info.type)a.initRange=NB(0,b.i.totalLength);else if(2===b.info.type){if(!a.Ve||1!==a.Ve.type)throw Error("deprecated use case");a.indexRange=NB(a.initRange.end+1,b.i.totalLength)}else if(3===b.info.type){if(3===a.Ve.type&&!SB(a.Ve,b.info)&&(a.S=[],c=a.Ve,b.info.Ma!==c.Ma+(c.Td?1:0)||0!==b.info.Bb))return;if(b.info.Td){c=g.q(a.S);for(var d=c.next();!d.done;d=c.next())GEa(a,
d.value);a.S=[]}else{a.S.push(b);a.Ve=b.info;return}}a.Ve=b.info;GEa(a,b);JT(a)&&(b=new Uint8Array(a.D.buffer,0,a.u),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Tu)},b=mF(a.policy.u,a.Ve.i.info,LT(a),c,a.B,b,a.crypto),MT(a,b,!0))}};
GEa=function(a,b){var c,d=0,e=oC(b.i);if(a.B<a.C){d=a.C*a.chunkSize;var f=((null===(c=b.info.range)||void 0===c?void 0:c.start)||0)+b.info.Bb;d-=f;if(d>=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(f={};d<e.length;){f.mu=Math.min(e.length-d,a.D.byteLength-a.u);var h=new Uint8Array(e.buffer,e.byteOffset+d,f.mu);a.D.set(h,a.u);a.u+=f.mu;d+=f.mu;if(a.u===a.D.length){if(b.info===a.Ve&&JT(a)&&d===e.length)break;h=KT(a);h=mF(a.policy.u,a.i.info,LT(a),h,a.B,a.D,a.crypto);MT(a,h);
a.isDisposed()||(h=KT(a),a.xa(LT(a),void 0!==h?(h.downloadedEndTime||0)*h.averageByteRate:h.maxKnownEndTime*h.averageByteRate,h.maxKnownEndTime*h.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}f={mu:f.mu}}};
KT=function(a){return{downloadedEndTime:Math.round(a.Ve?a.Ve.D:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Tu)}};
LT=function(a){var b,c,d={lmt:a.i.info.lastModified,docid:a.policy.u,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(d.ck=a.K,d.civ=a.I);var e="local://localhost/videoplayback?"+At(d);d={itag:+a.i.info.hc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Ob,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:Wna(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:Wna(c),url:e};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.numChannels)d.audioChannels=a}return d};
MT=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.X.resolve(d)},function(d){a.X.reject(d)})};
IEa=function(a){a=g.lB(a,1886614376);g.sc(a,function(b){return!b.u});
return g.pn(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
JEa=function(a){var b=rn(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.sc(a,function(e){c.set(e,d);d+=e.length});
return c};
KEa=function(a,b,c,d,e){this.ids=a;this.i=b;this.u=c;this.C=d;this.B=e};
NT=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.u=[];this.qe=!1;if("webm"===(null===b||void 0===b?void 0:b.toLowerCase())||16===a.length)this.qe=!0};
LEa=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{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=As;var p=yfa;if(OT.length){var r=OT.pop();n&&(Uc(r.i,n),r.B=-1,r.u=-1);m=r}else m=new Zc(n);try{var t=new f;var u=ae(t,m,p[$d]||(p[$d]=p()));break b}finally{m.i.clear(),m.B=-1,m.u=-1,m.C=!1,100>OT.length&&
OT.push(m)}u=void 0}m=u;if(null!==m){var v=m;break a}}catch(y){}}c+=e}v=null}catch(y){v=null}}if(null!=v)for(b=Bd(v,7),null==b||a.qe||(a.cryptoPeriodIndex=b),b=Bd(v,10),null!=b&&0<b&&!a.qe&&(a.i=b),v=Dd(v,2),v=!v.length||v[0]instanceof Uint8Array?v:g.pn(v,rd),v=g.q(v),b=v.next();!b.done;b=v.next())a.u.push(g.Ec(b.value,4))};
MEa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Ec(a.initData):""+a.cryptoPeriodIndex};
PT=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Uw?void 0:d.Uw;d=void 0===d.Gz?!1:d.Gz;this.videoId=a;this.status=b;this.videoDuration=c;this.Uw=e;this.Gz=d};
NEa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.i=e};
QT=function(a){this.i=a;this.offset=0};
RT=function(a){if(a.offset>=a.i.totalLength)throw Error();return pC(a.i,a.offset++)};
OEa=function(a,b){b=void 0===b?!1:b;var c=RT(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=RT(a);-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+RT(a),d*=128;return b?c:c-d};
ST=function(a,b,c){var d=this;this.Ya=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.xa=-1;this.S=0;this.oa=NaN;this.X=0;this.B=NaN;this.Ba=0;this.La=-1;this.Ka=this.K=this.I=this.Aa=null;this.Sa=this.Ja=NaN;this.C=this.Z=this.Va=null;this.Wa=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new IT(this.policy,e,function(h,l,m){h=new PT(d.policy.u,2,{Uw:new NEa(f,h,e.info,l,m)});a.Da.Zs(h)});
this.C.X.promise.then(function(h){d.C=null;1===h&&(h=new PT(d.policy.u,h),a.Da.Zs(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.ma();d.Ya.Ca("dldbwerr",h);PEa(d);h=new PT(d.policy.u,4,{Gz:!0});a.Da.Zs(h)})}};
QEa=function(a){return a.u.length?a.u[0]:null};
TT=function(a){return a.u.length?a.u[a.u.length-1]:null};
UEa=function(a,b,c){if(a.K){var d=a.K.Bb+a.K.u;if(0<c.info.Bb)if(c.info.Ma===a.K.Ma&&c.info.Bb<d){if(c.info.Bb+c.info.u<=d)return;c=voa(c,d-c.info.Bb)[1]}else if(0<=c.info.Ma&&0<=a.K.Ma&&!SB(a.K,c.info))throw new g.aw("improper_continuation",OB(a.K),OB(c.info));if(a.policy.jr){d=a.K;var e=c.info;d=d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type||vg(d.C,e.C)&&d.Ma===e.Ma?!1:TB(d,e)}else d=TB(a.K,c.info);d||UT(a)}else if(0<c.info.Bb)throw new g.aw("continuation_of_null",OB(c.info));a.K=c.info;a.D=c.info.i;
if(0===c.info.Bb){if(a.i)throw new g.aw("slice_not_fully_processed",OB(a.i.info),OB(c.info));VT(a)}else!c.info.i.Ng()&&a.I&&aoa(c.info,a.I);if(a.i){d=woa(a.i,c);if(!d)throw new g.aw("failed_to_merge",OB(a.i.info),OB(c.info));a.i=d}else a.i=c;a:{c=g.sC(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Td)break a;6===a.i.info.type?REa(a,b,a.i):WT(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.xa&&0===a.S){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=toa(f,l),n=toa(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 QT(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=OEa(p,!0),t=OEa(p,!1);var u=r;var v=t}catch(z){v=u=-1}p=u;var y=v;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.xa=h;a.S=e-h}if(a.xa>d)break;
a.xa?(d=SEa(a,a.xa),d.B&&!d.info.i.Ng()&&TEa(a,d),REa(a,b,d),XT(a,d),a.xa=0):a.S&&(d=SEa(a,0>a.S?Infinity:a.S),a.S-=d.i.totalLength,XT(a,d))}}a.i&&a.i.info.Td&&(XT(a,a.i),a.i=null)};
WT=function(a,b){!b.info.i.Ng()&&0===b.info.Bb&&(g.sC(b.info.i.info)||b.info.i.info.qe())&&Coa(b);if(1===b.info.type)try{TEa(a,b),VEa(a,b)}catch(d){g.by(d);var c=UB(b.info);c.hms="1";a.Ya.handleError(!0,"fmt.unparseable",c||{})}b.info.i.pE(b);a.C&&HEa(a.C,b)};
uT=function(a){a.u=[];VT(a);PEa(a)};
PEa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null};
WEa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
ZT=function(a){return g.pn(a.u,function(b){return b.info})};
SEa=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=voa(c,b);a.i=c[1];return c[0]};
TEa=function(a,b){var c=rC(b);if(EC(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new mB(c);oB(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;DC(d)&&!EC(d)&&(d=rC(b),tB(new mB(d)),sB([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.sC(d.info)?d.B=Cna(c):d.info.qe()&&(d.B=Jna(c))));b.info.i.info.qe()&&
b.info.isVideo()&&(c=rC(b),tB(new mB(c)),sB([408125543,374648427,174,224],30320,c)&&sB([408125543,374648427,174,224],21432,c));if(a.policy.Mr&&b.info.i.info.qe()){c=rC(b);var e=new mB(c);if(oB(e,[408125543,374648427,174,29637])){d=rB(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.Qk()&&g.sC(b.info.i.info)){d=rC(b);c=g.cB(d,0,1701606260);f=g.cB(d,0,1836476516);if(c&&f){c.skip(2);var h=UA(c),l=WA(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(XA(c)),e.push(XA(c)),
m.push(UA(c)),n.push(UA(c));else for(h=0;h<l;++h)d.push(VA(c)),e.push(VA(c)),m.push(UA(c)),n.push(UA(c));c=g.dB(f);c=new zna(e[0]/c,d[0]/c)}else c=null;if(c){if(g.sC(b.info.i.info))for(d=rC(b),e=g.cB(d,0,1701082227);e;)e.markAsSkip(),e=g.cB(d,e.offset+e.size,1701082227);a.Wa=!0;b.info.i.D=c}}!b.info.i.Ng()&&(a.policy.Mu&&b.info.i.zr()||!b.info.i.i&&!b.info.i.indexRange)&&(g.sC(b.info.i.info)?(a=rC(b),(c=fB(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=Lna(new mB(rC(b))),a&&(b.info.i.i=a))};
REa=function(a,b,c){if(c.info.i.Ng()){if(a.Wa&&XEa(c)&&(b=rC(c),b=g.cB(b,0,1953658222))){b.skip(1);var d=TA(b)<<16|UA(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=WA(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=WA(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.Aa&&!!a.Aa.D.D)if(b=c.info.isVideo())b=Boa(c),h=a.Aa,$T?(l=1/b,b=aU(a,b)>=aU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&XEa(c)&&(b=a.Aa,$T?(l=Boa(c),h=1/l,l=aU(a,l),b=aU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,Bna(rC(c),b))}else{h=!1;a.I||(Coa(c),c.u&&(a.I=c.u,h=!0,aoa(c.info,c.u),l=c.info.i.info,f=rC(c),g.sC(l)?kB(f,1701671783):l.qe()&&sB([408125543],307544935,f)));a:{if(f=l=tC(c,a.policy.Ja))f=c.info.i.info.qe()&&160===pC(c.i,0);if(f)a.X+=l,a.B=a.policy.Nb?a.B+l:NaN;else{if(a.policy.fq){var n=a.Ya.lp(xoa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Nb&&isNaN(a.Ja)){g.cy(new g.aw("Missing duration while processing previous chunk",OB(c.info)));UT(a);break a}f=
n-a.B;var p=f-a.Ba;d=c.info.Ma;var r=a.Ka?a.Ka.Ma:-1,t=a.Sa,u=a.Ja;m=a.policy.ze&&f>a.policy.ze;var v=a.policy.ye&&p>a.policy.ye;1E-4<Math.abs(p)&&(n={audio:""+ +a.Qk(),sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||v)},a.Ya.handleError(!1,"qoe.avsync",n),a.La=d);n=0;a.policy.Hp&&(m||v||(e=a.B),a.policy.Up&&a.Aa&&!a.Qk()&&g.sC(c.info.i.info)&&(v=a.Aa,m=v.La,v=v.Ba,p=.02<Math.abs(v-f),(d===
m||d>m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(v-f))/l)),Bna(rC(c),d),d=tC(c,a.policy.Ja),n=l-d,l=d)));a.Ba=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;yoa(c,e)?(isNaN(a.oa)&&(a.oa=e),a.X+=l,a.B=e+l):(l=UB(c.info),l.smst="1",a.Ya.handleError(!0,"fmt.unparseable",l||{}))}}a.Ka=c.info;a.Ja=Aoa(c);0<=c.C&&(a.Sa=c.C);if(h&&a.I){h=YEa(a,!0);VB(c.info,h);a.i&&VB(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())VB(l.value,h);(c.info.Td||a.i&&a.i.info.Td)&&6!==c.info.type||(a.Z=h,b=
a.Ya,b.i.isManifestless&&ZEa(b,h,null,!!a.D.info.video),a.policy.kc||$Ea(a))}}VEa(a,c);a.timestampOffset&&zoa(c,a.timestampOffset)};
XT=function(a,b){if(b.info.Td){a.Va=b.info;if(a.I){var c=a.I,d=YEa(a,!1),e=null;if(a.I.Yv()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.q(c.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(c.data["Stitched-Video-Start-Frame-Index"]){m=
g.q(c.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)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.q(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new KEa(e,f,h,l,g.yna(c))}a.Ya.EF(a.D,d,e);a.Z||a.policy.kc||$Ea(a);a.Z=null}VT(a)}a.C&&HEa(a.C,b);if(c=TT(a))if(c=woa(c,b,a.policy.cj)){a.u.pop();a.u.push(c);return}a.u.push(b)};
VT=function(a){a.i=null;a.xa=-1;a.S=0;a.I=null;a.oa=NaN;a.X=0;a.Z=null};
UT=function(a){a.B=NaN;a.Ba=0;a.La=-1;a.Ka=null;a.Sa=NaN;a.Ja=NaN};
VEa=function(a,b){if(a.D.info.Fd){if(b.info.i.info.qe()){var c=new mB(rC(b));if(oB(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=rB(c,!0);c=16!==d?null:xB(c,d)}else c=null;d="webm"}else b.info.S=IEa(rC(b)),c=JEa(b.info.S),d="cenc";c&&c.length&&(c=new NT(c,d),c.qe=b.info.i.info.qe(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Uj&&b.u&&b.u.B&&(c.i=b.u.B),a.Ya.gt(c))}};
$Ea=function(a){var b=a.I,c=wna(b);c&&(c.startSecs+=a.oa,a.Ya.DF(a.D,c,b.i,b.Yv()))};
YEa=function(a,b){var c,d=a.I;if(c=wna(d))c.startSecs+=a.oa;return new LA(d.i,a.oa,b?d.Vi:a.X,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,c)};
XEa=function(a){return a.info.i.Ng()&&a.info.Ma===a.info.i.index.getLastSegmentNumber()};
aU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.D&&b&&(b+=a.D.D.i);return b+a.getDuration()};
aFa=function(a,b){0>b||(a.u.forEach(function(c){zoa(c,b)}),a.timestampOffset=b)};
bU=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.u=null};
bFa=function(a){return g.qn(a.info.i,function(b){return 3===b.type})};
cU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
dU=function(a,b){b&&a.state<b?cU(a,b):a.callback&&a.callback(a,a.state)};
cFa=function(a){a.u&&a.u.C?(a=a.u.C,a=new PB(a.type,a.i,a.range,"getEmptyStubAfter"+a.I,a.Ma,a.startTime+a.duration,0,a.Bb+a.u,0,!1)):(a=a.info.i[0],a=new PB(a.type,a.i,a.range,"getEmptyStubBefore"+a.I,a.Ma,a.startTime,0,a.Bb,0,!1));return a};
dFa=function(a,b){this.i=a;this.u=0;this.B=null;this.ge=[];this.C=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].u||(this.i[0].u=this.length):1===this.i.length||g.qn(this.i,function(c){return!!c.range})};
eFa=function(a,b,c){a.B&&(lC(a.B,b),b=a.B,a.B=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.u<=a.u)f+=m.u;else{if(QB(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).Nq;break}var n=3===m.type||4===m.type,p=a.u-f,r=a,t=h,u=b,v=m.i.zr()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,z=u.totalLength-t;m.range&&(z=Math.min(m.u-p,z));y=m.range?m.Bb+p+z===m.range.length:y;p=new PB(m.type,m.i,m.range,"reslice"+m.I,m.Ma,m.startTime,m.duration,m.Bb+p,z,y&&m.B,y);
y=z;t=u.split(t).Nq.split(y).Cz;r.ge.push(new qC(p,t,v));r=z;a.u+=r;h+=r;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
fFa=function(a){if(!a.ge.length)return[];var b=a.ge;a.ge=[];a.C=g.Rb(b).info;return b};
gFa=function(a){return a.length-a.u+a.ge.reduce(function(b,c){return b+c.i.totalLength},0)};
fU=function(a,b,c,d){var e;bU.call(this,b,d);var f=this;this.i=a;this.Fe=c;this.B=new g.I(function(){f.isComplete()||cU(f,5)},3E3);
this.td=function(){f.isDisposed()||(eU(f.Fe,f.i)?(f.isComplete()||f.B.start(),f.Fe.Yf(f.i)&&dU(f,2),f.Fe.sf(f.i)&&(hFa(f.Fe,f.i)?cU(f,4):cU(f,5))):cU(f,5))};
this.B.start();this.u=new dFa(this.info.i,null===(e=this.info.range)||void 0===e?void 0:e.length);iFa(this.Fe,this.i,this.td);(0,g.Ah)(this.td)};
gU=function(a,b,c){this.Ya=a;this.policy=b;this.i=c;this.B=[];this.u=this.Wb=null;this.Z=this.oa=0;this.I=-1;this.S=!1;this.X=-1;this.C=new ST(a,b,c);this.Ob=c.info.Ob;this.K=c.hw();this.isManifestless=c.hw();this.D=this.K};
hU=function(a,b){b&&$T&&aFa(a.C,b.gE());a.Wb=b};
iU=function(a){return a.Wb&&a.Wb.mz()};
jU=function(a,b){a.B.push(b);a.u=g.Rb(b.info.i)};
kU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();jFa(a,b);a.oa=b.xK()}a.B.length&&(b=a.B[0],b.ut()&&(!b.info.zk()||b instanceof fU)&&jFa(a,b))};
jFa=function(a,b){if(b.ut()){var c=b.jC();c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof fU&&a.Ya.Ca("omblss","s."+OB(d.info)),kFa(a,b,d)}};
kFa=function(a,b,c){switch(c.info.type){case 1:case 2:WT(a.C,c);break;case 4:var d=c.info.i.QH(c);c.info.equals(a.u)&&(a.u=g.Rb(d).info);c=g.q(d);for(d=c.next();!d.done;d=c.next())kFa(a,b,d.value);break;case 3:UEa(a.C,b,c);break;case 6:UEa(a.C,b,c),a.u=c.info}};
tT=function(a,b,c){c=void 0===c?!1:c;if(a.Wb){var d=a.Wb.lf(),e=UC(d,b),f=NaN,h=iU(a);h&&(f=UC(d,h.i.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&lFa(lU(a),0))return b}a=mFa(a,b,c);return 0<=a?a:NaN};
vT=function(a,b){a.i.Ue();var c=mFa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.C)if(e=e.C,e.Ve&&3===e.Ve.type)e=e.Ve.startTime;else if(0<e.C){var f=e.i.index;f=g.nc(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.i.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);a.u=a.i.cm(b).i[0];mU(a)&&a.Wb&&a.Wb.abort();a.Z=0;return a.u.startTime};
nFa=function(a){a.K=!0;a.D=!0;a.I=-1;vT(a,Infinity)};
nU=function(a){var b=0;g.sc(a.B,function(c){var d=b;c=c.u&&c.u.length?gFa(c.u):boa(c.info);b=d+c},a);
return b+=WEa(a.C)};
oU=function(a,b){if(!a.Wb)return 0;var c=iU(a);if(c&&c.B)return c.D;a=a.Wb.lf(!0);return Ioa(a,b)};
pEa=function(a,b,c,d){sT(a);for(var e=a.C,f=!1,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=tC(l,e.policy.Ja),f=!0)}f&&(e.K=0<e.u.length?e.u[e.u.length-1].info:null,e.policy.Jr&&0===e.u.length&&isNaN(e.oa)&&UT(e));d>c?vT(a,d):a.u=a.i.Rm(b-1,!1).i[0]};
rU=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)pU(a,b);else{for(;c<a.B.length;)pU(a,a.B.pop());var d=qU(a);d&&d.i.Ng()&&lo(b.info.i,function(e){return $na(e,d)})?a.u=d:RB(b.info.i[0])?a.u=cFa(b):a.u=null}};
mU=function(a){var b;!(b="f"===a.i.info.i)&&(b=a.policy.u)&&(b=a.C,b=!!b.C&&JT(b.C));if(b)return!0;b=iU(a);if(!b)return!1;var c=b.B&&b.Td;return a.isManifestless&&0<a.X?c||b.Ma>=a.X:c};
oFa=function(a){var b;return mU(a)||!(null===(b=TT(a.C))||void 0===b||!b.info.B)};
lU=function(a){var b=[],c=iU(a);c&&b.push(c);b=g.bc(b,ZT(a.C));g.sc(a.B,function(d){g.sc(d.info.i,function(e){d.S&&(b=g.Cp(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Bb>=e.range.start+e.Bb&&f.range.start+f.Bb+f.u<=e.range.start+e.Bb+e.u:f.Ma===e.Ma&&f.Bb>=e.Bb&&(f.Bb+f.u<=e.Bb+e.u||e.Td))}));
(RB(e)||4===e.type)&&b.push(e)})});
a.u&&!Yna(a.u,g.Rb(b),a.u.i.Ng())&&b.push(a.u);return b};
lFa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!TB(a[b-1],a[b]))return!1;return!0};
mFa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=lU(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:lFa(a,c?b:0)?a[b].startTime:NaN};
sU=function(a){return!(!a.u||a.u.i===a.i)};
tU=function(a){return sU(a)&&a.i.Ue()&&a.u.i.info.Ob<a.i.info.Ob};
pFa=function(a,b,c){return(a=qU(a))&&!a.B?a.D>b&&a.D<b+c:!1};
qU=function(a){var b=TT(a.C);return b?b.info:iU(a)};
sT=function(a){g.sc(a.B,function(b){pU(this,b)},a);
a.B=[];a.u=null};
pU=function(a,b){var c=b.info.i[0].i.Ng();b.S&&!c&&(a=a.C,a.ma(),a.Z&&!a.policy.Of&&(c=a.Ya,c.i.isManifestless&&sD(c.i,a.Z.Ma,!!a.D.info.video)),a.Z=null,a.I=null,a.K=a.Va,a.B-=a.X,VT(a));b.dispose()};
qFa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.i.index.getFirstSegmentNumber()};
rFa=function(a){var b=a.u;b&&-1===b.Ma&&(a=TT(a.C))&&RB(a.info)&&(a=a.info.Ma,b.I="updateLastSliceRequested",b.Ma=a)};
sFa=function(a){return lo(a.B,function(b){return b.D})};
uU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.i=new kC;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.jt()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.i.append(e.u);e.u=f;e.B+=f.length;f=(0,g.P)();10<f-e.D&&(e.callbacks.tq(f,e.B),e.D=f)},function(){},d.body||null)};
uFa=function(a,b){var c=this;this.i=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=MB(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new kC;tFa(this).then(function(){c.callbacks.Eo()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Eo()})};
tFa=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,v,y;return g.A(function(z){if(1==z.i){a.status=200;b=a.i.get("docid");c=Cg(a.i.get("fmtid")||"");d=a.i.get("lmt")||"0";e=+(a.i.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.i.get("ck")&&a.i.get("civ")&&(f=new FEa(a.i.get("ck"),a.i.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=z.i)return n<=m?g.x(z,fra(b,c,d,n,f),5):z.fb(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");r=n*e;t=(n+1)*e;
u=Math.max(0,h.start-r);v=Math.min(h.end+1,t)-(u+r);y=new Uint8Array(p.buffer,u,v);a.u.append(y);a.loaded+=v;a.loaded<h.length&&a.callbacks.tq((0,g.P)(),a.loaded);n++;return z.fb(2)})};
vU=function(a,b){var c=b.Mg,d=void 0===b.Ek?1:b.Ek,e=void 0===b.AA?d:b.AA,f=void 0===b.zk?!1:b.zk,h=void 0===b.hm?!1:b.hm,l=void 0===b.ED?!1:b.ED,m=b.ih,n=b.Ma;b=b.Re;this.callbacks=a;this.requestNumber=++vFa;this.i=this.now();this.xa=this.La=NaN;this.Ja=0;this.C=this.i;this.u=0;this.Sa=this.i;this.Aa=0;this.Va=this.Ka=this.isActive=!1;this.B=0;this.K=NaN;this.X=this.D=Infinity;this.Z=NaN;this.Ba=!1;this.I=NaN;this.S=void 0;this.Mg=c;this.policy=this.Mg.xa;this.Ek=d;this.AA=e;this.zk=f;this.hm=h;
l&&(this.S=[]);this.ih=m;this.Ma=n;this.Re=b;this.snapshot=XD(this.Mg);wFa(this);xFa(this,this.i);this.K=(this.I-this.i)/1E3};
yFa=function(a,b){a.url=b;performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
wU=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.i).toFixed(),lb:a.u,pt:(1E3*a.K).toFixed(),pb:a.Ek,stall:(1E3*a.B).toFixed(),hrt:(a.La-a.i).toFixed(),elt:(a.xa-a.i).toFixed(),elb:a.Ja};a.url&&(null===performance||void 0===performance?0:performance.getEntriesByName)&&(a=null===performance||void 0===performance?void 0:performance.getEntriesByName(a.url))&&a.length&&(a=a[0],b.pedns=(a.domainLookupEnd-a.startTime).toFixed(),b.pecon=(a.connectEnd-a.domainLookupEnd).toFixed(),b.perqs=(a.requestStart-
a.connectEnd).toFixed());return b};
AFa=function(a,b,c,d){if(!a.Ka){a.Ka=!0;if(!a.hm){xU(a,b,c);zFa(a,b,c);var e=a.Hn();if(2===e&&d)yU(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.i)/1E3,(d<=a.policy.i||!a.policy.i)&&!a.Va&&zU(a)&&yU(a,d,c),zU(a)&&(d=a.Mg,c=Math.max(c,2048),d.i.Lg(1,a.B/c),YD(d));c=a.Mg;b=(b-a.i)/1E3||.05;d=a.K;e=a.zk;c.I.Lg(b,a.u/b);c.C=TD();e||c.u.Lg(1,b-d)}a.deactivate()}};
zFa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.Hn();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&yU(a,.05,e)):yU(a,d,e),a.Va=!0);else if(AU(a,c)){if(1===f&&(f=(b-a.i)/1E3,!BFa(a)&&!a.hm)){var h=a.Mg;h.K.Lg(1,f);YD(h)}a.xa=b;a.Ja=c;a.isActive=!0}a.hm||Upa(a.Mg,d,e);a.C=b;a.u=c};
yU=function(a,b,c){if(!a.hm){b=Math.max(b,.05);a=a.Mg;var d=b;a.B.Lg(void 0===b?d:b,c/d);a.C=TD()}};
xU=function(a,b,c){c=Math.round(c/1024);a.S&&a.S.push(BU(b-a.Sa,c-a.Aa));a.Sa=b;a.Aa=c};
CFa=function(a){return a.S?a.S.join(""):""};
AU=function(a,b){return b?a.ih&&1!==a.Hn()?!0:2048<=b:!1};
zU=function(a){return AU(a,a.u)};
DFa=function(a){return(a.C-a.i)/1E3};
wFa=function(a){a.Z=a.i+1E3*a.snapshot.delay;a.Ba=!1};
CU=function(a,b){if(a.ih&&void 0!==a.Ma&&void 0!==a.Re){var c=Math,d=c.min,e=a.D;var f=a.ih;var h=a.i;if(cEa(f,a.Ma))f=b;else{var l=0;f.fg&&(l=.2);f=h+1E3*(f.Fg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.X;f=a.ih;h=a.i;l=dEa(f,a.Ma,a.Re);2!==l&&(b=l?b:h+1E3*f.Fg,f.fg&&(b+=1E3*f.Fg));a.X=d.call(c,e,b);a.D<=a.i?wFa(a):(a.Z=a.D,a.Ba=!0)}};
BFa=function(a){a.ih&&CU(a,a.now());return a.Ba};
xFa=function(a,b){b=void 0===b?a.now():b;if(a.ih){CU(a,b);var c=a.oa?a.ih?1!==a.Hn():!1:a.D!==a.X;if(c){if(c=a.X,b<c){a.I=a.X;return}}else c=a.D;c=Math.max(c,a.Z)}else c=a.Z;var d=a.Ek-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=zU(a)?d+b:d+Math.max(b,c);a.I=d};
BU=function(a,b){for(var c="";4095<a;)c+=BU(4095,0),a-=4095;for(;4095<b;)c+=BU(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))};
DU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Aa=d;this.status=0;this.response=void 0;this.xa=!1;this.u=0;this.oa=NaN;this.Z=0;this.S=this.D=this.X=!1;this.errorMessage="";this.Ja=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.K=f.headers,e.callbacks.kt(),EFa(e));
else e.onDone()};
this.Ba=function(f){var h=(0,g.P)();if(!e.isDisposed())if(e.I&&(e.i.append(e.I),e.I=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;FFa(e)?e.i.append(f):e.I=f;f=(0,g.P)();if(!e.policy.i||10<f-e.Z)e.Z=f,e.callbacks.tq(h,e.u);EFa(e)}};
this.onError=function(f){e.ma();e.errorMessage=String(f);e.D=!0;e.onDone()};
this.i=new kC;this.id=GFa++;this.C=window.AbortController||kA()?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
EFa=function(a){a.B.read().then(a.Ba,a.onError).then(void 0,Vv)};
FFa=function(a){if(a.policy.i)return!1;var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.u&&a.policy.fg&&jA(a)&&b};
EU=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=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(f){d.jt(f)};
a=wt(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",wt(function(f){d.td(f)}),!1)};
HU=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Qw?[]:h.Qw;var l=void 0===h.zx?!1:h.zx,m=void 0===h.qp?0:h.qp,n=void 0===h.poToken?"":h.poToken;h=void 0===h.Oh?void 0:h.Oh;bU.call(this,b,e);var p=this;this.policy=a;this.lastError=null;this.Z=this.B=0;this.Ba=!1;this.K=this.I=null;this.Aa=!1;this.timing=new vU(this,c);this.oa=d;this.zx=l;this.i=g.ZB(this.info,this.policy,this.oa);this.i.set("rn",this.timing.requestNumber.toString());this.i.set("rbuf",(1E3*m).toFixed().toString());this.zx&&
this.i.set("smb","1");this.policy.Wi&&n&&this.i.set("pot",n);this.Qw=f||null;this.Oh=h;this.D=HFa(this);this.xa=1*this.policy.Zc;this.X=new g.I(this.gX,this.xa,this);this.info.u.I=(0,g.P)();Rna(FU(this));try{this.xhr=IFa(this),this.X.start(),this.ma("Sent, itag="+this.i.get("itag")+(" seg="+this.info.i[0].Ma)+(" range="+this.i.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.Rb(this.info.i).D))+(" rtp="+(this.timing.I-Date.now()).toFixed(0)))}catch(r){g.cy(r),this.lastError="net.ssl",
(0,g.Ah)(function(){GU(p)})}};
HFa=function(a){if(!(YB(a.info)&&a.info.zk()&&a.policy.wb&&a.Qw)||2<=a.info.u.u||0<tD()||!tpa())return!1;var b=a.i.get("aitags");if(!b)return!1;b=Cg(b).split(",");for(var c=[],d=g.q(a.Qw),e=d.next();!e.done;e=d.next())e=e.value,g.Wb(b,e)&&c.push(e);if(!c.length)return!1;a.i.set("altitags",Bg(c.join(",")));return!0};
FU=function(a){return EB(a.oa,HA(a.i.Cf))};
LFa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Yw())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(JFa(a)){var d=b.ag();d.totalLength<=a.policy.Pe&&(c=oC(d),c=QA(c),Py(c)?a.ma():c="")}if(c){var e=FU(a);(0,g.P)();e.started=0;e.timedOut=0;e.i=0;a.info.vj(a.i,c);return 3}c=b.Hk();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.QA())return a.lastError="net.closed",5;a.On(!0);if(!d&&a.u&&(d=a.u.ge,d.length&&!uoa(d[0])))return a.lastError=
"net.closed",5;d=bFa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=bFa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Ba=!0,a.policy.Dl&&(d=b);AFa(a.timing,(0,g.P)(),c,d?Number(d):0);b=FU(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;b=a.info.u;b.u=0;b.D=0;!a.Oh||(0,g.P)()<KFa+3E5||!a.i||IA(a.i.Cf)||!(b=HA(a.i.Cf))||0>b.indexOf("googlevideo.com")||(pna(a.i.Cf)&&(e=HA(JA(a.i.Cf))),a.Oh.i={primary:b,secondary:e},upa(b,e),KFa=(0,g.P)());e=a.timing;a.ma("Succeeded, rtpd="+(1E3*e.K+e.i-Date.now()).toFixed(0));
return 4};
GU=function(a){var b;a.ma("Request failed, itag="+a.i.get("itag")+(" seg="+a.info.i[0].Ma)+(" sliced="+(null===(b=a.u)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.hm){xU(c,d,1024*c.Aa);var e=(d-c.i)/1E3;if(2!==c.Hn())if(zU(c)){c.B+=(d-c.C)/1E3;var f=c.Mg,h=c.u;h=Math.max(h,2048);f.i.Lg(1,c.B/h);YD(f)}else BFa(c)||c.hm||(f=c.Mg,f.K.Lg(1,e),YD(f)),c.xa=d;f=c.Mg;h=c.K;var l=c.zk;f.I.Lg(e,c.u/e);f.C=TD();l||f.u.Lg(1,e-h);Upa(c.Mg,
(d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError?((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!IA(a.i.Cf)?(d=FU(a),d.timedOut+=1):(d=FU(a),d.i+=1),a.timing.u||Vna(a.info.u,c,a.i,a.policy)):a.policy.Gr&&Vna(a.info.u,!0,a.i,a.policy);cU(a,5)};
MFa=function(a,b){b&&(b=FU(a),b.u+=1);IU(a);a.lastError="net.timeout";GU(a)};
IU=function(a){a.ma();a.xhr&&a.xhr.abort();a.timing.deactivate()};
JFa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Fv();c=!c||c<=a.policy.Pe;return(!a.xhr.Lt()||!b||-1!==b.indexOf("text/plain"))&&c};
IFa=function(a){if(IA(a.i.Cf))return new uFa(a.i,a.timing);var b=g.CB(a.i);return a.policy.La&&(a.policy.Dp&&!isNaN(a.info.Re)&&a.info.Re>a.policy.fk||a.D?0:iA())?kA()?new uU(b,a.policy.D,a.timing):new DU(b,a.policy.D,a.timing):new EU(b,a.timing)};
NFa=function(a){if(!a.policy.D.fg||!isNaN(a.info.Re)&&0<a.info.Re)return!1;if(!a.xhr.Qn())return a.ma(),!0;if(!jA(a.xhr))return!1;if(isNaN(a.info.Re)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.ma();else if(Number(b)>a.info.i[0].Ma)return!1}return!0};
JU=function(a,b,c,d,e){this.Ya=a;this.policy=b;this.schedule=c;this.S=d;this.Z=e;this.oa=NaN;this.u=this.K=this.C=null;this.i=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.X=NaN};
OFa=function(a,b,c,d,e){return b.Za&&b.xa&&3===lna(b)?new JU(a,b,c,d,e):null};
PFa=function(a,b){if(a.policy.yq){var c=b.info.Ob,d=WD(a.schedule);b=b.index.Fg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.oa)/c,b-a.policy.fc));a.ma()}};
SFa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.fh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Oq&&(h=!0);a.ma();a.I=c}c=d>=a.policy.fc&&!a.B;if(!f&&!c&&QFa(a,b))return NaN;c&&(a.B=!0,a.ma());a:{d=h;c=Date.now()/1E3-(a.S.pg()||0)-a.K.u-a.policy.oa;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.ma();KU(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.dc;d<c&&(a.ma(),c=d)}else a.B&&(d=c+a.policy.oa-a.oa+a.policy.Pq,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.dc))),
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&&QFa(a,b))return RFa(a,b),NaN;if(a.i<=a.u.startTime)return KU(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.i,!1))return!RFa(a,b)&&h&&(KU(a,NaN,"t",b),a.clear()),NaN;a.ma();h=a.i;KU(a,h,"s",b);a.clear();return h};
RFa=function(a,b){return a.Z(a.i,!0)?!1:(KU(a,NaN,"ns",b),a.ma(),a.clear(),!0)};
QFa=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.B?a.policy.dc:a.policy.Dq)};
KU=function(a,b,c,d){var e=a.C.Iv();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.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.pg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.i.index;fC(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Ya.Ca("ssr",g.YC(e))};
TFa=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.LU=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.E.call(this);var p=this;this.Da=a;this.schedule=b;this.policy=c;this.i=d;this.oa=m;this.Oh=n;this.timing=new nEa;this.I=new nT(this.schedule,this.policy);this.mediaSource=null;this.X=new g.I(this.Dh,0,this);this.La=new g.I(this.Dh,1E3,this);this.wb=new g.I(this.Dh,void 0,this);this.rb=new g.I(this.Dh,1E4,this);this.S=this.currentTime=NaN;this.xa=this.bb=0;this.Aa=this.Wa=this.isSuspended=!1;this.Ka="";this.Ja=new QD(5);this.Ba={};this.ob=this.Re=
NaN;this.ih=null;this.timestampOffset=NaN;this.jb=!1;this.Za=0;this.Z=!1;this.K=null;this.Sa=NaN;this.ub=!1;a=m&&Array.from(m.Oe.keys());m&&(this.Sa=Date.now());this.u=new zT(this,this.I,c,this.i,e,a);c=xEa(this.u,f,h&&h.id);this.audioTrack=new gU(this,this.policy,c.audio);this.videoTrack=new gU(this,this.policy,c.video);this.videoTrack.C.Aa=this.audioTrack.C;this.Va={updateend:this.eQ,error:this.bU};g.H(this,this.X);g.H(this,this.La);g.H(this,this.wb);g.H(this,this.rb);this.D=OFa(this,this.policy,
this.schedule,this.Ja,function(r,t){return UFa(p,r,t)});
this.B=new wT(this,this.i,this.policy,this.videoTrack,this.audioTrack,l);this.C=new rT(this,this.i,this.videoTrack,this.audioTrack,this.policy);this.ma()};
WFa=function(a,b){var c=b.i,d=a.i.isLive;if(a.i.isLive){var e=Date.now();if(!isNaN(a.Sa)&&e-a.Sa>1E3*a.policy.Hr){a.Ca("ombttl","1");return}}if(a.oa&&eU(a.oa,KB(c,d))){d=KB(c,a.i.isLive);if(a.i.isLive&&a.policy.Ku)e=c.cm(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=VFa(a.oa,d);if(!f){a.Ca("ombooo","1");return}e=c.Pp(f-e)}e&&(f=function(h){try{h.isFailed()?(a.Ca("ombf","1"),rU(b,h),YB(h.info)&&MU(a,b,c,!0),a.Dh()):NU(a,h)&&a.Dh()}catch(l){h=$C(l),
a.handleError(h.i,h.errorCode,h.details),OU(a)}},c.I=!0,XB(e)&&jU(b,new fU(d,e,a.oa,f)))}else a.Ca("ombfmt","1")};
XFa=function(a){var b=a.videoTrack.i.index;a.ih=new bEa({Rl:a.policy.Rl,fg:a.policy.D.fg,Fg:b.Fg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Bs:function(){return b.Bs()}})};
QU=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.u;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Aa!==b&&(d.Ba={},d.Aa=b,AT(d,d.B));b=!GT(d)&&-1<d.X&&8E3>(0,g.P)()-d.X;var e=d.nextVideo&&3*DT(d,d.nextVideo.info)<qT(d.xa);if(!b||e)BT(d),CT(d),d.Z=d.Z||d.nextVideo!==d.i;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Aa=-1);PU(a,c,d.nextVideo);PU(a,a.audioTrack,a.u.u)};
RU=function(a,b){a.Wa=b;a.Z||(a.ma(),a.isSuspended=!0)};
ZFa=function(a){a.policy.Zb=!1;try{YFa(a)}catch(b){g.by(b)}};
$Fa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.u&&(Gx(a.mediaSource.i,a.Va,a),Gx(a.mediaSource.u,a.Va,a));hU(a.audioTrack,null);hU(a.videoTrack,null);a.mediaSource=null};
SU=function(a,b){b=void 0===b?!1:b;a.ma();$Fa(a);b?(a.ma(),a.Z=!0):a.policy.Yc?RU(a,a.jb):RU(a,!1);OU(a)};
TU=function(a){a.mediaSource&&a.mediaSource.sf()&&(SU(a),a.policy.ep&&a.handleError(!0,"fmt.unplayable",{unexpected:1}))};
VU=function(a,b,c){var d=a.B;if(2===d.i||3===d.i||a.isSuspended&&(!Vpa(a.schedule)||a.Wa))return!1;if(a.policy.u&&5<=lF)return g.Fr(a.La),!1;if(a.i.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.Yj&&!a.policy.eh||!a.policy.pk&&0<b.B.length&&!a.policy.D.fg)return!1;if(b.K)return!a.i.isLive||!isNaN(a.Re)}if(sFa(b))return a.ma(),!1;if(!(b.u||a.i.isManifestless&&a.policy.eh&&b.K)){if(!b.i.Ue())return!1;vT(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Fu()||c.B.length&&
c.B[0].Fu()||a.i.isLive&&(!a.policy.eh||!b.B.length))&&--d;if(d+1>=a.policy.gk)return!1;if(!b.u)return a.policy.ir?IB(b.i.u,a.policy):!0;d=b.u;if(!IB(d.i.u,a.policy))return!1;4===d.type&&d.i.Ue()&&(b.u=g.Rb(d.i.ix(d)),d=b.u);if(!d.B&&!d.i.Qm(d))return!1;var e=a.i.bf||a.i.S;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.yu&&0<e&&d.Ma>=e)return b.X=e,c.X=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(tU(b)&&!a.policy.Wa)return!0;
if(d.B||nU(b)&&nU(b)+nU(c)>a.policy.jb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.Z;if(!(c=!!(c.u&&!c.u.B&&c.u.D<d.D)&&(!a.i.isManifestless||c.u&&c.u.D&&d.D)&&e&&!f||a.policy.Va&&!b.D&&c.D)&&(c=RB(d))){c=d.D;a:if(d=a.B,d=d.u?d.u.me:null,a.Z&&d)a=d.startSecs+d.durationSecs+15;else{d=UU(a,b,!0);!GT(a.u)&&0<a.policy.Aa&&(e=((0,g.P)()-a.bb)/1E3,d=Math.min(d,a.policy.Aa+a.policy.xd*e));d=a.currentTime+d;if(a.policy.Bl&&(e=aGa(a)+a.policy.Bl,e<d)){a.Ca("mrl","ori."+d+";mod."+e,!0);a.policy.mj&&(a.bb=(0,g.P)());
a=e;break a}a=d}c=c>a}return c?!1:(b=b.Wb)&&b.isLocked()?!1:!0};
cGa=function(a,b,c){if(VU(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.re&&a.i.S?b.i.Rm(a.i.re,!1):b.i.cm(Infinity);d.Re=a.Re}else d=b.i.Rm(0,!1);a.D?0===d.Re&&(d.D=a.D.X):d.D=a.ob}else if(d=b.u,d.i.Ue()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Bb?0:d.range.length-(d.Bb+d.u),h=d.i;if(sU(b)&&b.i.Ue()){var l=Math.min(15,.5*UU(a,b,!0));var m=tU(b)||e<=l||a.u.S;a.ma("ready to adapt: "+m+", upgrade pending: "+tU(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+bGa,d.u&&(h+=d.duration),vT(b,h),d=b.u,h=d.i));h.Ng()?(f=a.u,c=pT(a.I,h.info.Ob,c.i.info.Ob,e,0<f.C.length&&0===f.videoIndex&&a.Aa),e=sU(b),c=d.i.yr(d,c),c.range&&1<c.i.length&&(e||c.u.u||c.i[0].i!==d.i?c=d.i.yr(d,c.i[0].u):(e=c.i[c.i.length-1],h=e.u/c.range.length,!e.Td&&.4>h&&(c=d.i.yr(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=UB(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ca("nosq",d.I+";"+g.YC(c))),d=h.xu(d));if(a.Z)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Ng()?
(c=pT(a.I,b.i.info.Ob,c.i.info.Ob,0),d=d.i.yr(d,c)):d=d.i.xu(d);if(a.K&&(c=a.B,e=d.i[0].Ma,e=0>e&&!isNaN(c.B)?c.B:e,h=oEa(a.B,d.i[0].C,e),c=a.K.Kp(h,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&sEa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.hc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.eq&&b.isRequestPending(e-1)){a.Ca("sdai","wt_daistate_on_sg"+(e-1));return}a.Ca("sdai",h);e=d;c&&(e.B=new g.EA(c))}a.policy.ej&&-1!==d.i[0].Ma&&d.i[0].Ma<a.i.re&&(d=b.i.Rm(a.i.re,!1));jU(b,WU(a,d))}};
WU=function(a,b){RB(b.i[b.i.length-1])&&dGa(a,zEa(a.u,b.i[0].i));var c=boa(b);c={Mg:a.schedule,Ek:c,AA:eEa(a.I,c),zk:QB(b.i[0]),hm:IA(b.u.i),ED:a.policy.Z};a.ih&&(c.Ma=b.i[0].Ma,c.Re=b.Re,c.ih=a.ih);var d={qp:Math.max(0,b.i[0].C-a.currentTime),Qw:a.policy.wb&&YB(b)&&b.i[0].i.info.video?EEa(a.u):void 0,zx:a.Z,poToken:eGa(a.Da),Oh:a.Oh};return new HU(a.policy,b,c,a.Ba,function(e,f){try{a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.C||!(!a.mediaSource||
a.isSuspended||3<oU(l,a.currentTime))){var m=a.policy.Fb;if(!(!m||e.isComplete()||e.C<m||GB(e.info.u,a.Ba))){var n=EB(a.Ba,HB(e.info.u,!0));if(!(n.i||n.timedOut||n.started)){var p=coa(e.info,!0);p&&WU(a,p)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.bb){var r=Object.assign(wU(e.timing),{rst:""+e.state,strm:""+e.xhr.Lt(),d:CFa(e.timing)});a.Ca("rqs",g.YC(r))}e.Ba&&a.Ca("sbwe3","1",!0)}if(!a.isDisposed()&&2<=e.state){var t=a.timing,u=e.info.i[0].i,v=!t.u&&u.info.video,y=!t.i&&u.info.audio;
3===e.state?v?t.tick("vrr"):y&&t.tick("arr"):4===e.state?v?(t.u=g.CB(e.i),xu(),zu(4)):y&&(t.i=g.CB(e.i)):e.Fu()&&v&&(xu(),zu(4));if(3===e.state){rU(l,e);YB(e.info)&&MU(a,l,h,!0);if(a.K){var z=e.info.Kp();z&&a.K.vj(e.info.i[0].Ma,h.info.id,z)}a.Dh()}else if(e.isComplete()&&5===e.info.i[0].type){if(4===e.state){var C=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null;C&&C instanceof HU&&C.C&&MFa(C,!0)}e.dispose()}else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state){var F=e.xhr.getResponseHeader("X-Response-Itag");
if(F){a.ma();var G=DEa(a.u,F),J=e.info.range.length-G.cE();G.I=!0;e.info.i[0].i.I=!1;var U=G.Pp(J);e.info=U;if(e.u){var K=e.u,X=U.i;K.i=X;var la=X[0].range,Ea=oC(K.ge[0].i);oC(g.Rb(K.ge).i);for(f=0;f<K.ge.length;f++){K.ge[f].info=X[f];var qb=X[f].range;K.ge[f].i=new kC([new Uint8Array(Ea.buffer,qb.start-la.start,qb.length)])}}e.D=!1;PU(a,a.videoTrack,G);var ib=a.videoTrack;ib.u&&(ib.u.i=G);var Ab=a.Da;Ab.videoData.wr=oA("auto",G.info.video.quality,!1,"u");XU(Ab);var lc=e.xhr.getResponseHeader("X-Segment-Lmt");
lc&&G.info.lastModified&&G.info.lastModified!==+lc&&rU(a.videoTrack,e)}else e.D=!1}if(4===e.state){if(NU(a,e),a.B){var Sa=a.B,cc=e.info,Kb=a.K;if(0!==Sa.i&&Kb&&cc.i[0].isVideo())if(cc.i[0].Ma>Sa.B&&(Sa.B=NaN,Sa.C=NaN),Sa.u&&Sa.u.Ma===cc.i[0].Ma){var jh=Sa.u.me.event;if("start"===jh||"continue"===jh){if(1===Sa.i||5===Sa.i)Sa.u.Yv?(Sa.Ca("sdai","ignore."+jh+";sq."+cc.i[0].Ma),Sa.i=4):(Sa.B=cc.i[0].Ma,Sa.C=cc.i[0].C,Sa.Ca("sdai","joinad"+Sa.i+"_sg"+Sa.B+"_st"+Sa.C.toFixed(3)),Sa.i=2,Kb.mE(Sa.u.me))}else"stop"!==
jh||1!==Sa.i&&5!==Sa.i||Sa.Ca("sdai","joinstop;st."+Sa.i+";sg."+Sa.B+";"),Sa.i=5}else 1===Sa.i&&(Sa.i=5)}}else if(a.policy.La&&e.ut()&&!e.isComplete()&&!NU(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Wv(e);a.Dh();if(a.policy.Db&&e.isComplete()&&e.canRetry()&&GB(e.info.u,a.Ba)){var Be=EB(a.Ba,HB(e.info.u,!1));if(!(Be.B+a.policy.Db*Sna(Be,a.policy,!0)>(0,g.P)())){var kh=coa(e.info,!1);kh&&WU(a,kh)}}}}}}}catch(pj){e=a.ub,a.ub=!0,G=$C(pj,e),a.handleError(G.i,G.errorCode,G.details),e||OU(a)}},d)};
dGa=function(a,b){b&&(a.ma(),a.Da.qA(b));a.policy.Xj&&a.u.Va&&(b=AEa(a.u,"a"),YU(a.Da,b.reason,b.audio.info))};
NU=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.ut(),c.K=!1);b.VD()&&a.Ja.Lg(1,b.VD());var d=b.fI(),e=b.AK(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.vk&&(d&&(l.yu=Math.max(l.yu,d)),e&&(l.u=Math.max(l.u||0,e)))}}if(b.info.zk()&&!XB(b.info))for(var m=g.q(b.jC()),n=m.next();!n.done;n=m.next())WT(c.C,n.value);kU(c);return!!c.ag()}catch(p){return p instanceof Error&&(g.cy(p),b=b.Iv(),b.origin="hrhs",b.msg||
(b.msg=""+p.message),a.handleError(!0,"fmt.unplayable",b)),!1}};
YFa=function(a){if(a.mediaSource){var b=a.mediaSource.i,c=a.mediaSource.u,d=fGa(a);if(d){if(a.policy.er){if(!b.Lp()){var e=a.audioTrack.ag();e&&ZU(a,b,e)}c.Lp()||(b=a.videoTrack.ag())&&ZU(a,c,b)}a.xa||(a.xa=(0,g.P)(),a.ma(),a.policy.Z&&a.Ca("apdps","r."+d))}else{if(a.xa){d=(0,g.P)()-a.xa;e=oU(a.audioTrack,a.currentTime);var f=oU(a.videoTrack,a.currentTime);a.ma();a.policy.Z&&a.Ca("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.xa=0}if(a.D){d=a.D;e=a.audioTrack;
f=VC(a.mediaSource.u.lf());if(d.C)d=SFa(d,f);else{if(f=e.ag()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Re&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime,d.ma())}d=NaN}d&&a.Da.seekTo(d,{Vp:!0,Ud:"pollSubsegmentReadahead",lp:!0})}d=!1;gGa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),Ez("vda",void 0,"video_to_ad"),e.B&&(xu(),zu(4))));if(a.mediaSource&&!a.mediaSource.sf()&&(gGa(a,
a.audioTrack,b)&&(d=a.timing,d.B||(d.B=Date.now(),d.tick("ada"),Ez("ada",void 0,"video_to_ad"),d.C&&(xu(),zu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Zb&&mU(a.videoTrack)&&mU(a.audioTrack)&&eD(a.mediaSource)&&!a.mediaSource.dh()&&(e=iU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ma(),e=a.mediaSource,eD(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Me.webkitSourceEndOfStream(e.Me.EOS_NO_ERROR)),e=a.schedule,opa(XD(e)),e.D=TD(),e.X=!0));e=a.policy.vr;f=a.policy.Ju;d||!(0<e||f)||!eD(a.mediaSource)||
mU(a.videoTrack)||mU(a.audioTrack)||(b.uB(a.currentTime,f,e),c.uB(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):gD());c&&g.Fr(a.X)}}}};
fGa=function(a){if(sFa(a.videoTrack))return a.ma(),"ssf";var b=a.B;if(1===b.i||2===b.i||3===b.i)return"cpm";if(a.policy.Bf||oFa(a.videoTrack)||oFa(a.audioTrack))return"";if(a.C.i){b=a.I;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=ZT(c.C).concat(ZT(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.u;c=c.i.info.Ob+d.i.info.Ob;e/=c;b=e<b.policy.lk?!1:10<e?!0:10>c*(10-e)/qT(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&QEa(b.C).info.K<
b.oa)return"seek"}if(!a.Aa||!a.policy.ub||10>a.currentTime||360<a.videoTrack.i.info.video.i)return"";b=pFa(a.videoTrack,a.currentTime,a.policy.ub)||pFa(a.audioTrack,a.currentTime,a.policy.ub);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||VU(a,a.videoTrack,a.audioTrack)||VU(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
gGa=function(a,b,c){if(c.dh())return!0;if(!c.Cy())return!1;var d=b.ag(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.i&&b===e.Aa)e=qU(e.I),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;e=d.info;f=iU(b);!f||f.Td||SB(f,e)||c.abort();!c.Kv()||bD()?c.hH(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Kv()&&a.Ca("ctu","ct."+bD()+";prev_c."+c.Kv()+";curr_c."+e.i.info.containerType);f=e.i.D;a.policy.Vj&&f&&(e=0+f.duration,f=-f.i,0===c.iz()&&e===c.SD()||c.sG(0,e),f!==
c.dd()&&(c.hB(f),$T&&aFa(a.audioTrack.C,c.gE())));if(a.i.B&&0===d.info.Bb&&(g.sC(d.info.i.info)||a.policy.Uq)){if(null==c.Lp()){e=iU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.qc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Lp(),f=d.info.i.i,e=e!==f&&!g.qc(e,f);e&&a.Ca("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ma);a.policy.Gb&&!e&&(g.sC(d.info.i.info)?(kB(rC(d),1836019574),kB(rC(d),1718909296)):(e=
new mB(rC(d)),Nna(e),qB(e,524531317,!0),d.i=d.i.split(e.start+e.i).Nq),d.B=!1)}a.policy.Vg&&d.B&&(d.B=!1);e=a.D&&!!a.D.C&&b.i.info.audio;f=a.i.isManifestless||d.B;if(!(a.i.B&&0!==d.info.Bb||f&&!e)&&ZU(a,c,d))return!0;if(e)return!1;e=a.currentTime+UU(a,b,!1);(e=d.info.C>e)||(a.policy.ob&&(!d.info.Bb||d.info.Td||10>d.info.C)&&a.Ca("sba",c.Kb({as:OB(d.info)})),e=d.B?d.info.i.i:null,f=oC(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=hGa(a,c,f,d.info,e),"s"===e?(a.Za=0,e=!0):("i"===
e||"x"===e?iGa(a,"checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Ba=Math.floor(.8*f.Ba),f.I=Math.floor(.8*f.I)):(f=a.policy,f.X=Math.floor(.8*f.X),f.rb=Math.floor(.8*f.rb),f.I=Math.floor(.8*f.I)),ET(a.u,d.info.i)),$U(a.Da,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Rh(d);a.ma("Appended "+OB(d.info)+", buffered: "+RC(c.lf()));return!0};
iGa=function(a,b,c,d){var e,f="fmt.unplayable",h=!0;"x"===c||"m"===c?(f="fmt.unparseable",d.i.C=f,d.i.info.video&&!FT(a.u)&&ET(a.u,d.i)):"i"===c&&(15>a.Za?(a.Za++,f="html5.invalidstate",h=!1):f="fmt.unplayable");d=UB(d);d.mrs=null===(e=a.mediaSource)||void 0===e?void 0:fD(e);d.origin=b;d.reason=c;a.handleError(h,f,d)};
ZEa=function(a,b,c,d){var e=a.i,f=!1,h=-1,l;for(l in e.i){var m=HC(e.i[l].info.mimeType)||e.i[l].info.isVideo();if(d===m)if(m=e.i[l].index,!fC(m,b.Ma))m.bC(b),f=!0;else if(e.Za){f=b;var n=m.Fk(f.Ma);n&&n.startTime!==f.startTime?(m.segments=[],m.bC(f),f=!0):f=!1;f&&(h=b.Ma)}}0<=h&&e.ea("clienttemp","restMflIndex",(d?"v":"a")+"."+h,!1);mEa(a.C,b,d,f);a.B.EF(b,c,d)};
ZU=function(a,b,c){c.info.i.Ue();var d=c.info.i.i;if(!d||!b.Cy()||b.Lp()===d)return!1;var e=d,f=b.lz();if(a.policy.Vg&&f&&b.isView()&&g.sC(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Hna(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ca("fenc","1")}f=null;(h=c.info.i.Pp(0))&&(f=h.i[0]);a.policy.ob&&a.Ca("sbi",b.Kb({as:OB(c.info)}));a.policy.Qi&&b.abort();d=hGa(a,b,e,f,d);if("s"!==d)return iGa(a,"sepInit",d,c.info),!0;a.ma();return b.dh()};
hGa=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:RC(b.lf()).replace(/,/g,"_"),message:g.Fc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},TFa()),a.handleError(!1,"player.exception",b),"q";g.by(f)}return"u"}return a.mediaSource.sf()?"m":"s"};
UU=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.X:a.policy.K;!a.policy.Wa&&GT(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.rb:a.policy.Ba));c&&(d+=a.policy.jb);var e=GT(a.u)?b.u?b.u.i.info.Ob:b.i.info.Ob:b.Ob;d/=e;0<a.policy.jk&&a.mediaSource&&eD(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.u:a.mediaSource.i)&&!b.dh()&&(b=b.lf(),e=SC(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.jk,a.policy.wr))));0<a.policy.I&&(d=Math.min(d,a.policy.I));
a.policy.hk&&c&&!GT(a.u)&&(c=a.u,c=DT(c,g.Rb(c.C))+DT(c,c.I.i[0]),c=a.policy.hk*(c/oT(a.I)),c<d&&15>c&&a.Ca("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
aGa=function(a){var b=g.Cp(a.Da.Wl(),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};
jGa=function(a,b){ND(b,"cms",function(c){a.policy.Z&&a.Ca("pathprobe",c)},function(c){a.Da.handleError(c)})};
kGa=function(a,b){a.K=b;a.B&&(a.B.D=b);a.K.wG(a.videoTrack.i.info.qe())};
lGa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.jh?a.timestampOffset:0;var c=a.B,d=b;if(0!==c.i&&c.D){var e=c.Gs(d);e!==c.X&&(c.D.JF(c.X,e,c.xa,d),c.X=e);c.xa=d}a.currentTime!==b&&a.resume();a.C.i&&a.mediaSource&&!a.mediaSource.sf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=TC(a.mediaSource.u.lf(),a.currentTime+bGa),c&&d&&(a.C.i=!1));a.C.i||(a.currentTime=b);g.Fr(a.La)}};
mGa=function(a,b){var c=lU(a.videoTrack).find(function(d){return d.startTime>=b&&UFa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
UFa=function(a,b,c){if(!(a.videoTrack.i.Ue()&&a.audioTrack.i.Ue()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=tT(a.videoTrack,b,c);if(isNaN(d))return!1;a=tT(a.audioTrack,a.policy.xa?b:d,c);return isNaN(a)?!1:!0};
PU=function(a,b,c){b.i!==c&&(a.ma(),b.i=c)};
MU=function(a,b,c,d){if(!(c.Ue()||c.zr()||c.I)&&IB(c.u,a.policy)&&"f"!==c.info.i){if(d){d=a.I;var e=c.info,f=fEa(d,e.video?d.policy.Tq:d.policy.Yi,e.Ob);d=d.policy.rh&&e.video?Math.max(f,d.policy.rh):f}else d=0;d=c.Pp(d);a=WU(a,d);XB(d)&&jU(b,a);c.I=!0}};
OU=function(a){try{var b=a.audioTrack;sT(b);uT(b.C);var c=a.videoTrack;sT(c);uT(c.C)}catch(d){g.by(d)}a.policy.u=""};
nGa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.ma(),a.B.K=a.timestampOffset,a.Da.LF(a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Ja?b.timestampOffset=a:b.u=a))};
g.aV=function(a){this.pd=a};
bV=function(){g.Q.apply(this,arguments)};
cV=function(a,b,c,d){bV.call(this);var e=this;this.B=-1;this.i={};this.C=new g.I(this.D,0,this);g.H(this,this.C);this.u=new g.I(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.H(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
oGa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
pGa=function(a){var b=a.interval,c=a.jx;this.url=a.url;this.interval=b;this.jx=c};
qGa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
sGa=function(a){var b=OA(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=bB(b.slice(d+2));if(null==b)return null;a=new qGa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Ota(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new pGa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,jx:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.u=rGa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
rGa=function(a){if(!a)return{};a=a.split(";");var b={};g.sc(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
dV=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.i=new g.wi(5E3,2E4,.2)};
tGa=function(a,b,c){a.onSuccess=b;a.onError=c};
vGa=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(Bz("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=sGa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else uGa(a,e)},
onError:function(e){uGa(a,e)}};
c&&(b=$i(b,"access_token",c));g.hu(b,d);a.ma()};
uGa=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)};
xGa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.ma();Bz("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Kc(f.license)}catch(v){g.by(v)}if(0!==h||l){l=new qGa(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=wGa[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=Kc(r.keyId)}catch(v){g.by(v)}u&&(n[g.Ec(u,4)]=t)}}l.i=m;l.u=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.mJ="Bearer "+d);g.Gv(c,"player/get_drm_license",b,e)};
fV=function(a,b,c,d){g.Q.call(this);this.videoData=a;this.Y=b;this.Ba=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.X=!1;this.B=null;this.xa=[];this.D=[];this.Z=!1;this.i={};this.oa=NaN;this.status="";this.I=NaN;this.u=a.I;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Sa&&(a.vvt=this.videoData.Sa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.S=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.xD(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.S=!1);this.baseUrl=g.ED(this.u)?oGa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=Yi(this.baseUrl,"ek")||"";if(b=Yi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.N("html5_use_drm_retry");this.xa=c.u;this.ma();eV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
BGa=function(a,b){eV(a,"createkeysession");a.status="gr";Bz("drm_gk_s",void 0,a.videoData.ub);a.url=yGa(a);try{a.B=b.createSession(a.Ba,function(c){eV(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(zGa(a.B,function(c,d){AGa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.ma();
d=void 0;var f=!0;g.ED(a.u)&&g.sE(a.Y)&&a.Y.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=!a.Y.N("html5_safari_fairplay_ignore_hdcp"));a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.ma(),eV(a,"onkyadd"),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.Co(c)}),g.H(a,a.B))};
yGa=function(a){var b=a.baseUrl;vma(b)||a.error("drm.net",!0,"t.x");if(!Yi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.q(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=$i(b,d,a.C[d]);return b};
AGa=function(a,b,c){if(!a.isDisposed())if(b){a.ma();eV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":CGa(a,b);return;default:a.ea("ctmp","message_type","t."+c+";l."+b.byteLength)}a.X||(Bz("drm_gk_f",void 0,a.videoData.ub),a.X=!0,a.ea("newsession",a));if(BD(a.u)&&(b=DGa(b),!b))return;g.ED(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=NA(g.Ec(b)));b=new dV(b,++a.requestNumber,a.videoData.ub);tGa(b,
function(d,e){EGa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var h=!1,l;
(l=3<=d.i.u)||(l=a.Aa&&36E4<(0,g.P)()-a.oa);l&&(h=!0,e="drm.net.retryexhausted");a.ma();eV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&FGa(a,d)}});
g.H(a,b);GGa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
CGa=function(a,b){a.ma();eV(a,"sdpvrq");a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.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:OA(b)}),responseType:"arraybuffer"};
g.ku(c,b,3,500).then(wt(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=OA(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ea("ctmp","drminfo","provisioning"),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ea("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),wt(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
gV=function(a){var b;if(b=a.S&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
GGa=function(a,b){var c,d;a.status="km";Bz("drm_net_s",void 0,a.videoData.ub);if(a.videoData.useInnertubeDrmService()){var e=new g.wx(a.Y.Vg),f={context:g.Ev(e.config_||g.Fv())};f.drmSystem=HGa[a.u.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.Ec(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.B)||void 0===
c?void 0:c.video)||void 0===d||!d.isHdr());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.Y.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.Sa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.Sa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.wb&&(f.context.user.kidsParent={oauthToken:a.videoData.wb});if(g.ED(a.u)){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.Ec(l)}xGa(b,f,e,a.videoData.nf())}else vGa(b,a.url,a.videoData.oauthToken);a.status="rs"};
EGa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.u.flavor&&((a.Y.N("html5_drm_ignore_out_of_order_responses")||a.Y.N("html5_drm_ignore_out_of_order_responses_cfl"))&&eV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.Y.N("html5_drm_ignore_out_of_order_responses")))return;eV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(Bz("drm_kr_s",void 0,a.videoData.ub),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.u.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.ea("newlicense",b.heartbeatParams),b.i&&(a.D=b.i,a.Y.N("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.RF&&a.ea("newlicense",new pGa({})),a.videoData.RF=!0),a.Z=lo(a.D,function(d){return d.includes("HDR")})),b.u&&(a.i=Fe(b.u,function(d){return{type:d,
status:"unknown"}})),CD(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Kc(OA(b.message)):DD(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=NA(g.Ec(b.message))),a.B&&(a.ma(),eV(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){Bz("drm_kr_f",void 0,a.videoData.ub);
gV(a)||(eV(a,"ksApiUnsup"),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Fc(d.message);
a.error("drm.keyerror",!0,d)})),a.K&&(a.oa=(0,g.P)()),g.ED(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
FGa=function(a,b){var c=b.i.getValue();c=new g.I(function(){GGa(a,b)},c);
g.H(a,c);c.start();g.xi(b.i);a.ma();eV(a,"rtyrq")};
IGa=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)};
JGa=function(a){var b=a.status+".";return gV(a)?b+IGa(a,"."):b+a.D.join(".")};
KGa=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};
hV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
eV=function(a,b,c){c=void 0===c?!1:c;a.ma();(c||a.videoData.oa)&&a.ea("ctmp","drmlog",b)};
LGa=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};
DGa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=lk(new DOMParser,g.mg(g.If("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(MGa(Ic(a.childNodes[0].nodeValue)).buffer):null:null};
NGa=function(a,b,c,d){if(a=NA(g.Ec(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Bba(c,d),g.ku(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=sGa(e))&&e.message&&b.update(e.message)})};
EV=function(a,b,c,d,e){g.E.call(this);this.element=a;this.S=b;this.initData=c;this.i=d;this.u=e;this.sessionId="";this.K=this.I=this.B=this.D=null;this.C=new g.JC(this);g.H(this,this.C);OGa(this)};
OGa=function(a){a.i?(a.C.T(a.i,"message",a.fQ),a.C.T(a.i,"keystatuseschange",a.Co),a.i.closed&&a.i.closed.then(wt(function(){a.isDisposed()||Au("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Dx(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.PM),Dx(a.C,a.u,["mskeyerror","webkitkeyerror"],a.OM),Dx(a.C,a.u,["mskeyadded","webkitkeyadded"],a.MM))};
zGa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.K=e};
PGa=function(a,b,c){g.vt(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
OV=function(a,b){g.E.call(this);this.element=a;this.i=b;this.I={};this.C=null;this.D=new g.JC(this);this.B=this.u=null;g.H(this,this.D)};
RGa=function(a,b){b=QGa(b,a.i.u);a=a.B.createSession("video/mp4",b);return new EV(null,null,null,null,a)};
SGa=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.B.createSession("video/mp4",b,c);return new EV(null,null,null,null,a)};
QV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
QGa=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};
RV=function(a,b){g.E.call(this);this.i=g.ch("video");this.u=null;this.D=[];this.C=new g.JC(this);this.B=new yD("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.H(this,this.C);this.init()};
SV=function(a,b,c,d){bV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.i=[];this.u=new g.I(function(){e.ea("log_qoe","wvagt.timer;reqlen."+(e.i?e.i.length:-1));if(e.i){if(0<e.i.length){var f=e.i.shift();TGa(e,f.info)}0<e.i.length&&(f=e.i[0].time-(0,g.P)(),e.u.start(Math.max(0,f)))}},0);
g.H(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
TGa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.q(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ea("log_qoe","wvagt.reqnews;canskip."+c);c||a.ea("rotated_need_key_info_ready",b)};
TV=function(){this.keys=[];this.values=[]};
UV=function(a){a.keys=[];a.values=[]};
VV=function(a,b){return g.Ub(a.keys,function(c){return g.qc(b,c)})};
WV=function(a,b,c){g.Q.call(this);this.element=a;this.videoData=b;this.Y=c;this.i=this.videoData.I;this.drmSessionId=this.videoData.drmSessionId||g.xla();this.u=new Map;this.I=new TV;this.K=new TV;this.B=[];this.Ja=2;this.oa=new g.JC(this);this.Ka=this.Aa=!1;this.heartbeatParams=null;this.xa=this.X=!1;this.D=null;this.Ba=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||zD()||FD(c.experiments);c=this.videoData.Tg;this.S="fairplay"===this.i.flavor||c?EF:UGa;this.C=new OV(this.element,this.i);g.H(this,
this.C);AD(this.i)&&(this.Z=new OV(this.element,this.i),g.H(this,this.Z));g.H(this,this.oa);c=this.element;this.i.keySystemAccess?this.oa.T(c,"encrypted",this.jQ):Dx(this.oa,c,AD(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.fV);VGa(this);a:switch(c=this.i,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":19.2999<Fia()?(a=c.K,c=c.I,c>=a&&(c=.75*a),b=.5*(a-c),c=new cV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new SV(a.kb("disable_license_delay"),!a.kb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.hJ,this),this.D.subscribe("log_qoe",this.Jg,this);this.ma("Created, key system "+this.i.keySystem+", final EME "+FD(this.Y.experiments));this.Jg("cks"+this.i.mf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new RV(this.videoData.Yc,this.Y.experiments),g.H(this,this.La))};
VGa=function(a){var b=a.C.attach();b?b.then(wt(function(){WGa(a)}),wt(function(c){if(!a.isDisposed()){a.ma();
g.vt(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ma(),a.Jg("mdkrdy"),a.X=!0);
a.Z&&(b=a.Z.attach())};
YGa=function(a,b,c){a.Ka=!0;c=new NT(b,c);a.Y.N("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));XGa(a,c)};
XGa=function(a,b){if(!a.isDisposed()){a.Jg("onInitData");if(a.Y.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.i){var c=a.K.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.K.remove(c)}a.ma();a.Jg("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)XV(a);else{if(!(a.Y.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.qe)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;LEa(b);b.qe||(d&&b.i!==d?a.ea("ctmp",
"cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.ea("widevine_set_need_key_info",b)}}else a.hJ(b)}};
WGa=function(a){if(!a.isDisposed())if(a.Y.N("html5_drm_set_server_cert")&&!g.zE(a.Y)){var b=a.C.setServerCertificate();b?b.then(wt(function(c){a.videoData.oa&&a.ea("ctmp","ssc",c)}),wt(function(c){a.ea("ctmp","ssce","n."+c.name+";m."+c.message)})).then(wt(function(){YV(a)})):YV(a)}else YV(a)};
YV=function(a){a.isDisposed()||(a.X=!0,a.ma(),a.Jg("onmdkrdy"),XV(a))};
ZGa=function(a){return"widevine"===a.i.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
XV=function(a){if(a.Ka&&a.X&&!a.xa){for(;a.B.length;){var b=a.B[0],c=ZGa(a)?MEa(b):g.Ec(b.initData);if(a.u.get(c))if("fairplay"===a.i.flavor)a.u.delete(c);else{a.B.shift();continue}LEa(b);break}a.B.length&&a.createSession(a.B[0])}};
$Ga=function(a){var b;if(b=g.Cu()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.B.TextDecoder?(new TextDecoder).decode(b):g.fb(b),a.ea("ctmp","drm",b))};
$V=function(a){g.E.call(this);var b=this;this.Da=a;this.i=this.Da.V();this.videoData=this.Da.getVideoData();this.Vz=0;this.I=this.B=!1;this.D=0;this.C=g.S(this.i.experiments,"html5_delayed_retry_count");this.u=new g.I(function(){ZV(b.Da)},g.S(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
bW=function(a,b,c){var d=a.videoData.B;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Da.Ag.C&&d&&"22"===d.hc())return a.Da.Ag.C=!0,a.md("qoe.restart",{reason:"fmt.unplayable.22"}),aW(a.Da),!0;var e=!1,f=a.Vz+3E4<(0,g.P)()||a.u.isActive();if(a.i.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.md("auth",c),!0;var h;if(h=!f)h=a.Da.Sp(),h=!!(h.Le()||h.isInline()||h.isBackground()||h.Os()||h.Ms());
h&&(c.nonfg="paused",f=!0,a.Da.pauseVideo());!f&&0<a.C&&(a.u.start(),f=!0,c.delayed="1",--a.C);h=a.Da.Ya;if(!f&&!a.videoData.N("html5_disable_codec_on_platform_errors_cfl")&&((null===d||void 0===d?0:FC(d))||(null===d||void 0===d?0:DC(d)))){if(a.videoData.N("html5_disable_codec_on_platform_errors")){a.i.u.i.set(d.i,{mK:1,kG:Number.MAX_SAFE_INTEGER});var l="cfalls"}else if(a.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")){l=a.i.u;var m=d.i,n=0;l.i.has(m)&&(n=l.i.get(m).mK);l.i.set(m,
{mK:n+1,kG:Math.pow(2,n+1)});l="cfallexp"}else a.videoData.N("html5_disable_codec_for_playback_on_error")&&h&&(m=h.u,n=d.i,m.Sa.has(n)?m=!1:(m.Sa.add(n),m.X=-1,AT(m,m.B),m=!0),m&&(l="cfallp"));l&&(e=f=!0,c[l]=d.i)}if(!f)return aHa(a,c);a.Vz=(0,g.P)();f=a.videoData;f.bb?(f=f.bb.RH(),l=Date.now()/1E3+1800,f=f<l):f=!1;c.e=b;f&&(c.staleprog="1");a.md("qoe.restart",c);if(f&&bHa(a))return cHa(a),!0;Au("philips")&&dHa(a);!a.videoData.N("html5_disable_codec_on_platform_errors")&&d&&FC(d)?(a.i.u.disableAv1(),
e=!0):h?(b=(b=iU(h.videoTrack)||h.videoTrack.u)?b.i:h.videoTrack.i,b.S+=1,ET(h.u,b,!0)):a.videoData.bb&&a.videoData.bb.pG();a.u.isActive()||ZV(a.Da,e);return!0};
aHa=function(a,b){if(a.videoData.ob)return!1;a.i.Wa+=1;if(10>=a.i.Wa)return!1;b.exiled=""+a.i.Wa;a.md("qoe.start15s",b);a.Da.ea("playbackstalledatstart");return!0};
dHa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
bHa=function(a){return a.B?!0:"yt"!==a.i.oa?!1:a.videoData.ob?25>a.videoData.Db:!a.videoData.Db};
cHa=function(a){if(!a.B){a.B=!0;var b=a.Da.getPlayerState();b=g.T(b,4)||b.isSuspended();a.Da.Bm();b&&!pG(a.videoData)||a.Da.ea("signatureexpired")}};
eHa=function(a,b){if((a=a.Da.ld())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.nj();b.details.merr=c?c.toString():"0";b.details.msg=a.oe()}};
gHa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="18954";if(bHa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.ZC("qoe.restart",!1,b)),a.md(b.errorCode,b.details),cHa(a),!0;6048E5<(0,g.P)()-a.i.La&&fHa(a,"signature");return!1};
fHa=function(a,b){try{window.location.reload();a.md("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.N("tvhtml5_retire_old_players")&&g.zE(a.i)&&dHa(a)};
hHa=function(a,b){a.i.u.C=!1;a.md("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});aW(a.Da)};
iHa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d};
cW=function(a,b,c){this.Y=a;this.wx=b;this.Da=c;this.X=this.I=this.K=this.u=this.i=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
kHa=function(a,b,c){!a.Y.N("html5_tv_ignore_capable_constraint")&&g.zE(a.Y)&&(c=c.compose(jHa(a,b)));return c};
mHa=function(a){a=lHa(a);return oA("auto",a,!1,"s")};
lHa=function(a){var b;a.N("html5_exponential_memory_for_sticky")?b=.5>ZD(a.Y.ac,"sticky-lifetime")?"auto":qA[tD()]:b=qA[tD()];return b};
nHa=function(a,b){return 1<a.playbackRate?(a=Ipa(a.Y.u,b.i.videoInfos,a.playbackRate),new mA(0,a,!0,"o")):new mA(0,0,!1,"o")};
oHa=function(a){var b=a.videoData.OD;if(b&&b.i.length&&pA(a.videoData.wr)){for(var c=new Map,d=g.q(a.i.videoInfos),e=d.next();!e.done;e=d.next())e=e.value,c.set(+e.hc(),e.video.i);d=[];b=g.q(b.i);for(e=b.next();!e.done;e=b.next())(e=c.get(e.value))&&d.push(e);c=Math.max.apply(Math,g.ma(d));a.videoData.wr=new mA(0,c,!1,"u")}return a.videoData.wr};
jHa=function(a,b){if(g.zE(a.Y)&&yA(a.Y.u,zA.HEIGHT))var c=b.i.videoInfos[0].video.i;else{var d=!!b.i.i;var e;pE(a.Y)&&(e=window.screen&&window.screen.width?new g.yg(window.screen.width,window.screen.height):null);e||(e=a.Y.jj?a.Y.jj.clone():a.wx.rg());(rE||OF||d)&&e.scale(g.IE());d=e;b.videoData.Un()||pG(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||nE||(e=.45);a=g.S(a.Y.experiments,"html5_viewport_undersend_maximum");
for(f=0;f<b.length;f++){c=b[f];var h=c.video;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.video;c="93"===c.hc()?g.nA[xC(d.width,d.height)]:d.i;c=new mA(0,c,!1,"r")}else c=EF;c=c.i}c&&(c=Math.max(c,360));return new mA(0,c,!1,"r")};
pHa=function(a){var b,c,d;return g.A(function(e){switch(e.i){case 1:return a.i.i&&navigator.mediaCapabilities?g.x(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.q(a.i.videoInfos),c=b.next();case 3:if(c.done){e.fb(0);break}d=c.value;return g.x(e,Eoa(d),4);case 4:c=b.next(),e.fb(3)}})};
rHa=function(a,b){if(!b.videoData.B||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Ta()-a.S&&(a.B=0);a.B++;a.S=g.Ta();if(4!==a.B)return!1;qHa(a,b.videoData.B);return!0};
tHa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.S(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.S(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.P)()-a.D?0:f||0<e||0<h))return!1;a.D=(0,g.P)();c=c.Wx();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.X;a.I=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.oa&&a.Da.Ca("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.i=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.zE(a.Y))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;qHa(a,b.videoData.B);a.Da.Ca("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+sHa());return!0};
uHa=function(a,b){return 0>=g.S(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
qHa=function(a,b){var c=b.i,d=b.video.fps;b=b.video.i-1;var e=uD();c=rpa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.qy("yt-player-performance-cap",e,604800));a.Da.Rt()};
vHa=function(a,b){if(!b.i.i)return a.C?new mA(0,360,!1,"b"):EF;for(var c=!1,d=!1,e=g.q(b.i.videoInfos),f=e.next();!f.done;f=e.next())FC(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.S(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.q(b.i.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!FC(e))if(f=vD(e.i,e.video.fps),e=e.video.i,Math.max(f,a)>=e){d=e;break}return new mA(0,d,!1,"b")};
dW=function(a){var b=a.Da.Sp(),c=g.S(a.Y.experiments,"html5_inline_quality_cap"),d=g.S(a.Y.experiments,"html5_background_quality_cap"),e=g.S(a.Y.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new mA(0,c,!1,"v"):!d||"auto"!==lHa(a)||jv()/1E3<e?EF:b.isBackground()?new mA(0,d,!1,"v"):EF};
eW=function(a,b,c){if(g.zE(a.Y)&&(1080<=tD(-1)||b.osid))return EF;var d=g.S(a.Y.experiments,"html5_autonav_quality_cap"),e=g.S(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.Rk&&jv()/1E3>e?(c&&(d=wHa(a,c,d)),new mA(0,d,!1,"e")):EF};
wHa=function(a,b,c){if(a.N("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};
xHa=function(a,b){a.N("html5_log_media_perf_info")&&(a.Da.Ca("perfdb",sHa()),a.Da.Ca("hwc",""+navigator.hardwareConcurrency,!0),b&&a.Da.Ca("mcdb",b.i.videoInfos.filter(function(c){var d;return!1===(null===(d=c.u)||void 0===d?void 0:d.smooth)}).map(function(c){return c.hc()}).join("-")))};
sHa=function(){var a=Fe(uD(),function(b){return""+b});
return g.YC(a)};
fW=function(a,b){g.E.call(this);this.i=a;this.K=b;this.u=-1;this.I=!1;this.B=-1;this.playerState=new g.tJ;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.I(this.send,6E4,this);this.C=!1;g.H(this,this.delay)};
yHa=function(a){0<=a.u||(3===a.i.Da.getVisibilityState()?a.I=!0:(a.u=g.pS(a.i),a.delay.start()))};
zHa=function(a){if(!(0>a.B)){var b=g.pS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.BJ(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
AHa=function(a){switch(a.Y.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
BHa=function(a){return(!a.N("html5_health_to_gel")||a.Y.La+36E5<(0,g.P)())&&(a.N("html5_health_to_gel_canary_killswitch")||a.Y.La+36E5<(0,g.P)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===AHa(a))?a.N("html5_health_to_qoe"):!0};
DHa=function(a,b){b?CHa.test(a):(a=g.Dt(a),Object.keys(a).includes("cpn"))};
gW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Gt(a)&&Ht()){if(h){var n;2!==(null===(n=EHa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=EHa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c);
e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&CHa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
hW=function(a,b,c,d,e,f,h,l){Ht()&&c.token&&(a=Et(a,{ctt:c.token,cttype:c.SG,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:DHa(a,d.N("html5_assert_cpn_with_regex")),h?d.N("use_new_nwl")?jx().sendAndWrite(a,b):rx(a,b):d.N("use_new_nwl")?jx().sendThenWrite(a,b,l):qx(a,b,l)):b?(DHa(a,d.N("html5_assert_cpn_with_regex")),g.hu(a,b)):g.kv(a,e)};
FHa=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.ma(new Uint8Array(c))));a.close()}return b};
g.jW=function(a){g.E.call(this);var b=this;this.i=a;this.u={};this.sequenceNumber=1;this.Wa=NaN;this.Bd="N";this.X=this.rb=this.bb=this.Va=this.C=0;this.Ja=this.ub="";this.ob=this.oa=NaN;this.Za=0;this.wb=-1;this.jb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Sa=this.Aa=this.isOffline=this.xa=!1;this.Fb=[];this.Z=null;this.I=this.La=this.K=!1;this.B=-1;this.Ka=!1;this.Db=new g.I(this.AS,750,this);this.D=this.adCpn="";this.adFormat=void 0;this.Gb=0;g.H(this,this.Db);(a="function"===typeof navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.iW(this,0,"vps",["N"])};
g.iW=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
kW=function(a,b){var c=a.i.Da.getCurrentTime();g.iW(a,b,"cmt",[c.toFixed(3)]);c=a.i.Da.Gh();if(a.S&&1E3*c>a.S.hM+100&&a.S){var d=a.S,e=d.isAd;b*=1E3;c=1E3*c-d.hM;a.Ba=b-d.oX-c-d.bX;if(!a.i.videoData.N("web_player_dai_csi_killswitch")){d=a.Ba;b-=c;c=a.i.videoData;var f=c.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!c.N("web_player_csi_ctt_killswitch")&&c.X&&(h.cttAuthInfo={token:c.X,videoId:c.videoId});h.startTime=b-d;zz(f,h);Cz({targetVideoId:c.videoId,targetCpn:c.clientPlaybackNonce},
f);Bz("pbs",b,f)}}a.Ca("gllat",{l:a.Ba.toFixed(),prev_ad:+e});delete a.S}};
lW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.pS(a.i);var c=a.i.Da.wz();if(!isNaN(a.oa)&&!isNaN(c.u)){var d=c.u-a.oa;0<d&&g.iW(a,b,"bwm",[d,(c.C-a.ob).toFixed(3)])}isNaN(a.oa)&&c.u&&a.isOffline&&GHa(a,!1);a.oa=c.u;a.ob=c.C;isNaN(c.bandwidthEstimate)||g.iW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.oa&&0!==Object.keys(c.i).length&&a.Ca("bwinfo",c.i);if(a.i.videoData.oa||a.i.Y.N("html5_log_meminfo"))d=TFa(),Object.values(d).some(function(e){return void 0!==e})&&a.Ca("meminfo",d);
a.Z&&g.iW(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.i.Da.getVisibilityState();a.wb!==d&&(g.iW(a,b,"vis",[d]),a.wb=d);kW(a,b);(d=HHa(a.i))&&d!==a.Za&&(g.iW(a,b,"conn",[d]),a.Za=d);IHa(a,b,c)};
IHa=function(a,b,c){if(!isNaN(c.qp)){var d=c.qp;c.B<d&&(d=c.B);g.iW(a,b,"bh",[d.toFixed(3)])}};
mW=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(rn(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.I(a.reportStats,0,a)).start()};
JHa=function(a){a.i.videoData.Id&&nW(a,"prefetch");a.i.videoData.Db&&a.Ca("reload",{r:a.i.videoData.reloadReason,ct:a.i.videoData.Db});a.i.videoData.rb&&nW(a,"monitor");a.i.videoData.isLivePlayback&&nW(a,"live");a.i.videoData.cg&&a.Ca("ctrl",a.i.videoData.cg,!0);if(a.i.videoData.Gf){var b=a.i.videoData.Gf.replace(/,/g,"_");a.Ca("ytp",b,!0)}a.i.videoData.aJ&&(b=a.i.videoData.aJ.replace(/,/g,"."),a.Ca("ytrexp",b,!0));if(!a.i.Y.N("html5_disable_gpu_reporting")){var c=a.i.videoData;b=a.i.Y.N("enable_white_noise")||
a.i.Y.N("enable_webgl_noop")||a.i.Y.N("enable_gpu_logging");var d=g.fG(c)||g.dG(c)||g.eG(c)||g.gG(c),e=c.C&&FC(g.Rb(c.C.videoInfos))&&/^g/.test(c.clientPlaybackNonce);c=/^gp/.test(c.clientPlaybackNonce);(b||d||c||e)&&(b=(0,g.oW)())&&(a.u.gpu=[b])}pG(a.i.videoData)&&g.iW(a,g.pS(a.i),"dt",["1"]);a.i.videoData.oa&&(b=(0,g.P)()-a.i.Y.La,a.Ca("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.I=!0;a.Wa=Nt(function(){a.reportStats()},1E4)};
KHa=function(a){0<=a.B||(a.i.Y.dc||3!==a.i.Da.getVisibilityState()?a.B=g.pS(a.i):a.Ka=!0)};
nW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
GHa=function(a,b){a.isOffline=b;g.iW(a,g.pS(a.i),"is_offline",[a.isOffline?"1":"0"])};
LHa=function(a,b,c,d,e){var f=g.pS(a.i);1===b&&g.iW(a,f,"vps",[a.Bd]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
MHa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
NHa=function(a){this.i=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.I=0;this.Z=this.i.Hh().volume;this.X=this.i.Hh().muted;this.C=pW(this.i)};
qW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Rb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.I+=a.u-a.B;a.C=pW(a.i);a.B=a.u};
OHa=function(a){a.segments.length&&a.u===a.B||qW(a);var b=a.segments;a.segments=[];return b};
QHa=function(a){PHa(a);a.K=Nt(function(){a.update()},100);
a.lastUpdateTime=g.pS(a.i);a.C=pW(a.i)};
PHa=function(a){Pt(a.K);a.K=NaN};
RHa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
rW=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Ka=this.wb=this.isFinal=this.hd=this.jb=this.autoplay=this.autonav=!1;this.Gb="yt";this.I=this.K=null;this.sendVisitorIdHeader=this.La=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.ub="delayplay"===c;this.rb="atr"===c;this.xd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.rb?"/api/stats/"+c:"//"+b.lj+"/api/stats/"+c;this.Pe=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.wb=d.fs,d.rtn&&(this.I=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Eh=d.mos,this.ze=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Zb=d.inview),d.size&&(this.Nb=d.size));this.deviceParams=g.We(b.deviceParams);this.Zc=b.Gc;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Ja=b.ze;this.Gb=b.oa;this.region=
b.region;this.userAge=b.userAge;this.Za=b.Ae;this.ai=jv();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Z=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.Id=b.N("vss_final_ping_send_and_write");this.oa=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.Wd=b.N("vss_playback_use_send_and_write");this.xa=b.N("use_new_nwl");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Gc=b.i&&b.N("embeds_append_synth_ch_headers");this.accessToken=a.nf();a.RI&&(this.B=
a.RI);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=mG(a);this.autonav=a.Rk||this.autonav;this.Yc=kG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.jb=a.D;a.X&&(this.S=a.X,this.ob=a.Wh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.Ku;this.Ba=a.Zb;a.B&&(this.videoFormat=a.B.hc(),a.K&&a.K.hc()!==this.videoFormat&&(this.bb=a.K.hc()));a.i&&tA(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Pe?"embedded_unbranded":jG(a);this.Ka=a.Bf;this.ac=
a.Uj;if(b=ZF(a))this.ye=b;this.dc=a.Al;this.eventId=a.eventId;this.playlistId=a.KK||a.playlistId;this.cg=a.cg;this.Gf=a.Gf;this.kc=a.Mu;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.fc=a.xX;this.referrer=a.referrer;this.Sa=a.YI||a.vL;this.Va=a.JC;this.Wa=a.MX;this.userGenderAge=a.userGenderAge;this.Aa=a.qT};
sW=function(a,b){return gW(a.uri,a.Y,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.Gc)};
SHa=function(a,b){return function(){var c=a.uri,d=tW(a),e=sW(a),f=a.Z,h=a.oa,l=a.xa;l=void 0===l?!1:l;d.cmt=d.len;d.lact="0";var m=b().toFixed(3);d.rt=Number(m).toString();c=g.Ui(c,d);f?(null==e&&(e={}),h?l?jx().sendAndWrite(c,e):rx(c,e):l?jx().sendThenWrite(c,e):qx(c,e)):e?g.hu(c,e):g.kv(c)}};
tW=function(a){var b={ns:a.Gb,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,cmt:a.u(a.i),fmt:a.videoFormat,fs:a.wb?"1":"0",rt:a.u(a.Ae),adformat:a.adFormat,content_v:a.Yc,etv:a.embedsTokenValue,euri:a.Zc,lact:a.ai,live:a.ye,cl:(411797165).toString(),mos:a.Eh,state:a.playerState,volume:a.ze};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.jb&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Ka&&(b.splay="1");a.Ba&&(b.delay=a.Ba);a.Ja&&(b.hl=
a.Ja);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Za&&(b.uga=a.Za+a.userAge);void 0!==a.Fb&&(b.len=a.u(a.Fb));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.I&&(b.rtn=a.u(a.I));a.Sa&&(b.feature=a.Sa);a.playlistId&&(b.list=a.playlistId);a.cg&&(b.ctrl=a.cg);a.Gf&&(b.ytr=a.Gf);a.bb&&(b.afmt=a.bb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Db&&(b.lio=a.u(a.Db));a.D?(b.idpj=a.ac,b.ldpj=a.dc,null!=a.K&&(b.rti=
a.u(a.K)),a.Aa&&(b.ald=a.Aa)):void 0!==a.adType&&(b.at=a.adType);a.Nb&&(a.C||a.ub||a.D)&&(b.size=a.Nb);null!=a.Zb&&(a.C||a.ub||a.D)&&(b.inview=a.u(a.Zb));a.D&&(b.volume=uW(a,g.pn(a.segments,function(d){return d.volume})),b.st=uW(a,g.pn(a.segments,function(d){return d.startTime})),b.et=uW(a,g.pn(a.segments,function(d){return d.endTime})),lo(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=uW(a,g.pn(a.segments,function(d){return d.playbackRate}))),lo(a.segments,function(d){return"-"!==d.i})&&
(b.als=g.pn(a.segments,function(d){return d.i}).join(",")));
b.muted=uW(a,g.pn(a.segments,function(d){return d.muted?1:0}));
lo(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=uW(a,g.pn(a.segments,function(d){return d.visibilityState})));
lo(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=uW(a,g.pn(a.segments,function(d){return d.connectionType})));
lo(a.segments,function(d){return 0!==d.u})&&(b.blo=uW(a,g.pn(a.segments,function(d){return d.u})));
lo(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.pn(a.segments,function(d){return d.C}).join(","));
lo(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.pn(a.segments,function(d){return d.clipId}).join(","));
if(lo(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.pn(a.segments,function(d){return d.B}).join(",")}Ht()&&a.S&&(b.ctt=a.S,b.cttype=a.ob,b.mdx_environment=a.mdxEnvironment);
a.xd&&(b.etype=void 0!==a.X?a.X:0);a.Va&&(b.uoo=a.Va);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=THa[a.livingRoomAppMode]||a.livingRoomAppMode);a.B&&a.Y.N("html5_log_server_url_param")?UHa(a,b):(b.referrer=a.referrer,b.ei=a.eventId,b.of=a.fc,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.kc&&(b.ssrt="1"),a.Wa&&(b.upt=a.Wa));return b};
UHa=function(a,b){if(b&&a.B){for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=g.q(Object.keys(a.B)),f=e.next();!f.done;f=e.next())f=f.value,d.has(f)||c.has(f)||(b[f]=a.B[f]||b[f]);c=g.q(Object.keys(new Set(["docid","list","uga"])));for(f=c.next();!f.done;f=c.next())d=f.value,a.C&&b[d]&&a.B&&!a.B[d]&&g.cy(new g.aw("b161906944_pending_missing",d,b[d]))}};
uW=function(a,b){return g.pn(b,a.u).join(",")};
vW=function(a){g.E.call(this);this.i=a;this.currentPlayerState="paused";this.B=NaN;this.I=[10,10,10,40];this.S=this.K=0;this.xa=this.oa=this.Ba=this.Aa=this.Z=this.X=this.C=!1;this.D=NaN;this.u=new NHa(a)};
WHa=function(a){if(!a.C){a.i.Y.N("disable_embedpage_playback_logging")||16623!==a.i.videoData.kx||g.cy(Error("Playback for EmbedPage"));var b=wW(a,"playback");a:{var c;if(a.i.Y.N("web_player_use_server_vss_schedule")){var d=null===(c=a.i.videoData.getPlayerResponse())||void 0===c?void 0:c.playbackTracking,e=null===d||void 0===d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null===d||void 0===d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.i.videoData.Uj,h=a.i.videoData.Al,
l=-f;e=g.q(e);for(var m=e.next();!m.done;m=e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.i.videoData.Uj,10,10,40+a.i.videoData.Al-a.i.videoData.Uj,40]}QHa(a.u);b.I=xW(a,!0);0<a.D&&(b.i-=a.D);b.send();a.i.videoData.Sq&&(b=a.i.Y,d=a.i.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Sq,oid:d.xI,ptchn:d.vI,pltype:d.yI,content_v:kG(d)},d.fq&&Object.assign(c,{m:d.fq}),b=g.Ui(b.Aa+"ptracking",c),yW(a,b));a.i.videoData.Zb||VHa(a);
a.C=!0;a=a.u;a.u=a.i.Da.getCurrentTime();a.i.Y.N("html5_vss_media_time_killswitch")||(a.u=a.i.Da.Gh());a.lastUpdateTime=g.pS(a.i);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
xW=function(a,b,c){c=void 0===c?NaN:c;var d=g.pS(a.i);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.K];a.K+1<a.I.length&&a.K++;var f=c+e;a.B=g.Mt(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var h=OHa(a.u),l=XHa(a,h);b&&(l.K=f);var m=1E3<a.S;!(1<h.length)&&h[0].isEmpty()||m||(l.I=xW(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
wW=function(a,b){var c=a.i;c=Object.assign(c.Hh(),c.videoData.Hh());Object.assign(c,{state:a.currentPlayerState});b=new rW(a.i.videoData,a.i.Y,b,c);b.i=a.i.Da.getCurrentTime();a.i.Y.N("html5_vss_media_time_killswitch")||(b.i=a.i.Da.Gh());a.i.videoData.isLivePlayback||(b.Fb=a.i.Da.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.Db=c-b.i);b.Ae=g.pS(a.i);b.segments=[pW(a.i)];return b};
XHa=function(a,b){var c=wW(a,"watchtime");if(0<a.D){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.i-=a.D}else c.i=a.u.u;c.segments=b;return c};
zW=function(a){a.u.update();return XHa(a,OHa(a.u))};
VHa=function(a){a.i.videoData.remarketingUrl&&!a.Aa&&(yW(a,a.i.videoData.remarketingUrl),a.Aa=!0);a.i.videoData.youtubeRemarketingUrl&&!a.Ba&&(yW(a,a.i.videoData.youtubeRemarketingUrl),a.Ba=!0);a.i.videoData.googleRemarketingUrl&&!a.oa&&(yW(a,a.i.videoData.googleRemarketingUrl),a.oa=!0);a.i.videoData.ppvRemarketingUrl&&!a.xa&&(yW(a,a.i.videoData.ppvRemarketingUrl),a.xa=!0);a.Tt()};
AW=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=zW(a);b.isFinal=!0;b.send();a.dispose()}};
YHa=function(a,b,c){if(!a.X){c||(c=wW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.X=!0}};
yW=function(a,b){var c=a.i.videoData.nf(),d=a.i.Y,e=a.i.N("web_player_vss_pageid_header")?a.i.Y.pageId:void 0,f=a.i.Y.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,h=a.i.Y.N("vss_pings_using_networkless")||a.i.Y.N("kevlar_woffle"),l=a.i.Y.N("allow_skip_networkless");c=gW(b,d,e,f,c,void 0);hW(b,c,{token:a.i.videoData.X,SG:a.i.videoData.Wh,mdxEnvironment:a.i.videoData.mdxEnvironment},d,void 0,h&&!l,!1,!0)};
ZHa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.i=this.clipId="-"};
BW=function(a,b,c,d){this.videoData=a;this.Y=b;this.Da=c;this.Hh=d;this.i=void 0};
g.pS=function(a){return $Ha(a)()};
$Ha=function(a){if(!a.i){var b=g.Ra(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},a.Y.N("html5_validate_yt_now")),c=b();
a.i=function(){return Math.round(b()-c)/1E3};
a.Da.IF()}return a.i};
HHa=function(a){if(navigator.connection&&navigator.connection.type)return aIa[navigator.connection.type]||aIa.other;if(g.zE(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
pW=function(a){var b=new ZHa;b.C=a.Hh().cc||"-";b.playbackRate=a.Da.getPlaybackRate();var c=a.Da.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Db&&(b.u=1);c=a.Da.getAudioTrack();c.zc&&c.zc.id&&"und"!==c.zc.id&&(b.B=c.zc.id);b.connectionType=HHa(a);b.volume=a.Hh().volume;b.muted=a.Hh().muted;b.clipId=a.Hh().clipid||"-";b.i=a.videoData.OI||"-";return b};
g.CW=function(a){g.E.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Sf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Qi&&(this.i=new vW(this.u),g.H(this,this.i),this.qoe=new g.jW(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Sf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Sf,this.i));BHa(this.u)&&(this.B=new fW(this.u,function(c){b.Ca("h5h",c)}),g.H(this,this.B))};
bIa=function(a){a.B&&yHa(a.B);a.qoe&&KHa(a.qoe)};
cIa=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Sf?null===(b=a.C.get(a.Sf))||void 0===b?void 0:qW(b.u):a.i&&qW(a.i.u)};
dIa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.I){"PL"===b.Bd&&(b.Bd="N");var c=g.pS(b.i);g.iW(b,c,"vps",[b.Bd]);b.K||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.K=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.q(a.C.values()),c=b.next();!c.done;c=b.next())AW(c.value);else a.i&&AW(a.i);a.dispose()};
eIa=function(a,b){a.i&&YHa(a.i,b)};
fIa=function(a){if(!a.i)return null;var b=wW(a.i,"atr");return function(c){a.i&&YHa(a.i,c,b)}};
gIa=function(a,b,c,d){c.adFormat=c.Nb;var e=b.Da;b=new vW(new BW(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Gh:function(){return e.Gh()},
wz:function(){return e.wz()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Tv:function(){return e.Tv()},
getVisibilityState:function(){return e.getVisibilityState()},
IF:function(){e.IF()},
Hw:function(){e.Hw()}},b.Hh));
b.D=d;g.H(a,b);return b};
hIa=function(){this.qp=0;this.D=this.C=this.u=this.B=NaN;this.i={};this.bandwidthEstimate=NaN};
iIa=function(){this.u=g.Uy;this.i=[]};
kIa=function(a,b,c){var d=[];for(b=jIa(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};
lIa=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};
mIa=function(a){return a.i.slice(jIa(a,0x7ffffffffffff),a.i.length)};
jIa=function(a,b){a=oc(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
nIa=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};
oIa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
DW=function(a,b,c,d){g.E.call(this);this.S=a;this.oa=b;this.D=c;this.X=d;this.u=NaN;this.I=this.K=this.started=!1;this.B=[];this.Z=new g.I(this.vl,250,this);g.H(this,this.Z);this.C=new g.I(this.vl,0,this);g.H(this,this.C);this.i=new iIa};
pIa=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.X(g.Vy(d.namespace),d):a.X(g.Wy(d.namespace),d)}};
qIa=function(a){this.u=this.mediaTime=NaN;this.B=this.i=!1;this.C=.001;g.zE(a)&&(this.C=.01)};
EW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
FW=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
rIa=function(a,b){this.videoData=a;this.i=b};
sIa=function(a,b,c){return hsa(b,c).then(function(){return nu(new rIa(b,b.C))},function(d){d instanceof Error&&xt(d);
d=b.isLivePlayback&&!g.LD(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.jb,drm:""+ +PF(b),f18:""+ +(0<=b.Wi.indexOf("itag=18")),c18:""+ +LC('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(PF(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=""+ +MC('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +MC('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +MC('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.ZC(d,!0,e)})};
tIa=function(a){this.D=a;this.B=this.u=0;this.C=new ZS(50)};
HW=function(a,b,c){g.Q.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new uIa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.rb?c.u=3:g.bG(a)&&(c.u=2);b.kb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=$ra(a);c.D=2===d||-1===d;c.D&&(c.oa++,21530001===VF(a)&&(c.I=g.S(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Au("trident/")||Au("edge/"))d=g.S(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
d);g.S(b,"html5_minimum_readahead_seconds")&&(c.B=g.S(b,"html5_minimum_readahead_seconds"));g.S(b,"html5_maximum_readahead_seconds")&&(c.X=g.S(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.C=!0);g.S(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.S(b,"html5_allowable_liveness_drift_chunks"));g.S(b,"html5_readahead_ratelimit")&&(c.Z=g.S(b,"html5_readahead_ratelimit"));switch(VF(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.kb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.rb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(VF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=GW(this,b);this.ma()};
vIa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===$ra(a.videoData)&&--c;return IW(a)*c};
JW=function(a,b){var c=a.sj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*IW(a);return b>=c-a};
wIa=function(a,b,c){b=JW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
xIa=function(a,b){b=JW(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
IW=function(a){return a.videoData.i?rD(a.videoData.i)||5:5};
GW=function(a,b){b=Math.max(Math.max(a.policy.oa,Math.ceil(a.policy.B/IW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/IW(a))),b)};
uIa=function(){this.oa=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.I=NaN;this.K=this.S=!1};
MW=function(a){g.E.call(this);this.Da=a;this.Y=this.Da.V();this.C=this.i=0;this.B=new g.I(this.D,1E3,this);this.Ba=new KW({delayMs:g.S(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new KW({delayMs:g.S(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ja=LW(this,"html5_seek_set_cmt");this.oa=LW(this,"html5_seek_jiggle_cmt");this.xa=LW(this,"html5_seek_new_elem");this.Va=LW(this,"html5_unreported_seek_reseek");this.K=LW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new KW({delayMs:2E4});
this.I=LW(this,"html5_ads_preroll_lock_timeout");this.Ka=new KW({delayMs:g.S(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ds:!this.Y.N("html5_report_slow_ads_as_error")});this.La=new KW({delayMs:g.S(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,ds:!this.Y.N("html5_skip_slow_buffering_ad")});this.Aa=LW(this,"html5_seek_over_discontinuities");this.Sa=new KW({delayMs:g.S(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=LW(this,"html5_slow_start_no_media_source");this.u=
{};g.H(this,this.B)};
LW=function(a,b){var c=g.S(a.Y.experiments,b+"_delay_ms");a=a.Y.N(b+"_cfl");return new KW({delayMs:c,ds:a})};
yIa=function(a,b,c,d,e,f,h){var l=SC(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;NW(a,a.Aa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
NW=function(a,b,c,d,e,f,h){zIa(b,c)?(a.md(e,b,h),b.ds||f()):(b.YA&&b.triggerTimestamp&&!b.B?(c=(0,g.P)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.YA,c=b.i&&c-b.i>b.eG||f?b.B=!0:!1):c=!1,c&&(c=a.Kb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.YC(c),a.Da.Ca("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))};
KW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.eG?1E3:b.eG,d=void 0===b.YA?3E4:b.YA;b=void 0===b.ds?!1:b.ds;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.eG=c;this.YA=d;this.ds=b};
zIa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.P)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
PW=function(a){g.E.call(this);var b=this;this.Da=a;this.Y=this.Da.V();this.videoData=this.Da.getVideoData();this.policy=new AIa(this.Y);this.Z=new MW(this.Da);this.playbackData=null;this.Ka=new g.JC;this.I=this.u=this.Ya=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.X=this.S=!1;this.xa=new g.I(function(){BIa(b,!1)},2E3);
this.Wa=new g.I(function(){OW(b)});
this.Ja=new g.I(function(){b.ma();b.S=!0;CIa(b)});
this.Sa=this.timestampOffset=0;this.La=!0;this.Ba=0;this.Va=NaN;this.oa=new g.I(function(){var c=b.Y.ac;c.i+=1E4/36E5;c.i-c.B>1/6&&(Ypa(c),c.B=c.i);b.oa.start()},1E4);
g.H(this,this.Z);g.H(this,this.Ka);g.H(this,this.xa);g.H(this,this.Ja);g.H(this,this.Wa);g.H(this,this.oa)};
DIa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new tIa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(MF(a.videoData)&&a.Ya){var c=a.Ya.Ja.pg()||0;break a}if(a.videoData.i){c=a.videoData.i.xa;break a}}c=0}return c}),a.u=new HW(a.videoData,a.Y.experiments,function(){return a.kd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
SW=function(a,b){(a.Ya=b)?QW(a,!0):RW(a)};
EIa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.i&&!(c>=e.u&&c<e.B)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.u=e.i.getStartTime(f),e.B=e.u+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.ra?rJ(a.ra):0,d.C++,3>d.C||g.Ta()-d.I<d.policy.Z||(d.I=g.Ta(),d.u.push(e),50<d.u.length&&d.u.shift(),d.ma())),d=a.u,wIa(d,c,void 0===b?!0:b),xIa(d,c),b&&BIa(a,!0))};
BIa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!JW(c,d)&&c.im()?(c.ma(),c.policy.S&&(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.sj())):c=NaN;if(!isNaN(c)){if(a.Ya&&b&&(b=a.xa.isActive(),d=a.u.sj(),(d=mGa(a.Ya,d-a.dd()))&&!b)){a.xa.start();a.Da.Ca("inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.dd()));a.seekTo(d+a.dd(),{Ud:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{Ud:"playbacktimeline_pegToLive"})}}};
QW=function(a,b){if(a.u&&a.Ya){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.i;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.ma();var d=GW(b,b.i-1);break b}if(b.policy.C){b.ma();d=GW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.ma(),b.u=[],b.C=0}else c=!1;c&&(c=a.Da.Rb,b=vIa(a.u),c.qoe&&(c=c.qoe,g.iW(c,g.pS(c.i),"lra",[b]),c.Ca("live-readahead-seconds",{v:b})));b=a.Ya;c=a.u.i;d=a.u;
d=(d.i-1+d.policy.i)*IW(d);a=a.u.policy.I;b.Re=Math.max(c-1,0);b.D&&(b.D.oa=d);b.ob=a}};
FIa=function(a,b){a.B=b};
TW=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.i};
CIa=function(a){GIa(a).then(void 0,function(){RW(a)});
UW(a).then(function(c){HIa(a,c)},function(){RW(a)});
DS(a.Da);if(g.RF(a.videoData)){var b=a.Kb();b["native"]=""+ +a.X;b.tgt=""+a.i;a.Da.Ca("startSeek",g.YC(b))}};
GIa=function(a){if(!a.K)if(a.Ya)if(isFinite(a.i))a.ma(),a.K=a.Ya.seek(a.i-a.timestampOffset);else{a.ma();var b=a.Ya;OU(b);b.C.i&&b.ma();b.D&&PFa(b.D,b.videoTrack.i);g.Fr(b.X);b=b.C;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);nFa(b.videoTrack);nFa(b.audioTrack);var d=b.u,e;for(e in d.i)sna(d.i[e].index,Infinity);b.u.isManifestless&&(b.C=!0);b.Ya.currentTime=c;b.i=!0;b.D=new hS;a.K=b.D;a.i=a.Ya.getCurrentTime()+a.timestampOffset}else a.K=Jh(a.i-a.timestampOffset);return a.K};
UW=function(a){var b=a.C;b||(a.C=new hS,b=a.C,OW(a));return b};
IIa=function(a,b,c){return isNaN(b)?NaN:g.sg(b,a.getMinSeekableTime(),a.kd(c))};
OW=function(a){if(a.C)if(!a.N("html5_nondash_live_seek_killswitch")&&TW(a)&&a.ra&&0<a.ra.Ch()&&0<qJ(a.ra)&&(a.i=IIa(a,a.i,!1)),!a.ra||!JIa(a))a.Wa.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.Aa!==a.i-a.timestampOffset){var b=a.ra.getCurrentTime()-a.i;if(Math.abs(b)<=a.Ba)KIa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.kd()-.1)a.i=a.kd(),a.C.resolve(a.kd()),qS(a.Da);else try{var c=a.i-a.timestampOffset;a.ma();a.ra.seekTo(c);a.Z.i=c;a.Aa=c;a.B=a.i}catch(d){a.ma()}}};
JIa=function(a){if(!a.ra||0===a.ra.Ch()||0<a.ra.nj())return!1;var b=0<a.ra.getCurrentTime();if(!(a.N("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.i||a.videoData.isLivePlayback)&&PF(a.videoData))return b;if(0<=a.i){var c=a.ra.Rv();if(c.length||!b)return TC(c,a.i-a.timestampOffset)}return b};
KIa=function(a){a.C?a.C.resolve(a.ra.getCurrentTime()):a.ma()};
HIa=function(a,b){a.ma();a.D&&(a.D.resolve(b),a.Da.ea("SEEK_COMPLETE"),g.RF(a.videoData)&&(b=a.Kb(),b["native"]=""+ +a.X,a.Da.Ca("seekEnd",g.YC(b))));LIa(a)};
LIa=function(a){a.i=NaN;a.Aa=NaN;a.C=null;a.K=null;a.D=null;a.S=!1;a.X=!1;a.Ba=0;a.xa.stop();a.Ja.stop()};
RW=function(a){a.D&&a.ma();LIa(a)};
MIa=function(a){if(a.ra){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ka.T(a.ra,c.value,function(d){var e=a.ra;d=d.type;a.ma();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.X&&d!==a.i)a.C=new hS,a.Aa=d,e=e.getCurrentTime(),a.Z.i=e,a.seekTo(d,{Ud:"playbacktimeline_mediaElementEvent"}),a.X=!0;break;case "seeked":KIa(a);break;case "loadedmetadata":a.La?(e="ss.",d=0,(cG(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.kc,e="utc.",d=a.kd()-a.getIngestionTime(a.kd())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.kc?(e="mss.",d=a.videoData.kc+a.dd()):a.N("html5_unrewrite_timestamps")&&a.videoData.qr&&(e="stss.",d=a.videoData.qr),d?(a.seekTo(d,{Ud:"playbacktimeline_startSeconds"}),a.Da.Ca("startSeconds",e+String(d)),a.La=!1):a.videoData.kc&&a.Da.Ca("startSeconds",
""+e+(a.videoData.kc+a.dd())),e=!!d):e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&TW(a)&&(a.i=isFinite(a.i)?g.sg(a.i,a.getMinSeekableTime(),a.kd()):a.kd());OW(a);break;case "progress":OW(a)}});
a.D||a.B||a.policy.u||!a.ra.hG()||a.seekTo(.01,{Ud:"playbacktimeline_setupMediaElement"})}};
NIa=function(a,b){a.i=b;a.B=b;UW(a).then(function(c){HIa(a,c)},function(){RW(a)})};
AIa=function(a){this.i=a.N("html5_live_smoothly_extend_max_seekable_time");this.B=a.N("html5_seek_over_discontinuities");this.u=a.N("html5_requires_seek_for_playback_at_zero_killswitch")};
VW=function(){this.finished=this.started=!1};
WW=function(){NQ.apply(this,arguments)};
XW=function(){OQ.apply(this,arguments)};
YW=function(a){this.i=a;this.iv=MGa(Ox(16))};
OIa=function(a,b,c){var d;return g.A(function(e){d=new WW(a.i.i);return e.return(d.decrypt(b,c))})};
ZW=function(a){g.E.call(this);this.i=a;this.Oe=new Map};
eU=function(a,b){return a.Oe.has(b)};
iFa=function(a,b,c){a.Oe.get(b).td=c};
PIa=function(a,b){eU(a,b)&&(a.Oe.get(b).ge=new kC,$W(a,b))};
QIa=function(a){for(var b=g.q(a.Oe),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;d.td||PIa(a,c)}};
VFa=function(a,b){var c;return(null===(c=a.Oe.get(b))||void 0===c?void 0:c.Ek)||0};
hFa=function(a,b){a=a.Oe.get(b);return a.bytesReceived===a.Ek&&a.fD+a.ge.totalLength===a.bytesReceived};
$W=function(a,b){a.ma();if((b=a.Oe.get(b))&&!b.sf){b.sf=!0;b.td&&b.td();a:{b=g.q(a.Oe.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.sf){b=!1;break a}b=!0}if(b){a=a.i;var d;a.playerResponse&&(null===(d=a.xhr)||void 0===d?void 0:d.abort())}}};
RIa=function(a){this.iv=tQ(new oQ(a),5)};
SIa=function(a){a=tQ(new oQ(a),4);this.i=new RIa(new kC([a]))};
TIa=function(a){this.i=[];for(a=new oQ(a);;){var b=rQ(a,2);if(!b)break;this.i.push(b)}};
VIa=function(a){a=new oQ(a);this.B=rQ(a,1);this.itag=rQ(a,3);this.lastModifiedTime=rQ(a,4);this.xtags=sQ(a,5);rQ(a,6);qQ(a,8)&&pQ(a);rQ(a,9,-1);rQ(a,10);this.i=rQ(a,14);this.u=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Qk="audio"===UIa[BC[""+this.itag]]};
WIa=function(a){a=new oQ(a);a=tQ(a,23);a=new oQ(new kC([a]));this.videoId=sQ(a,2)};
XIa=function(a){this.body=null;a=new oQ(a);this.onesieProxyStatus=rQ(a,1,-1);this.httpStatus=rQ(a,2,-1);this.body=tQ(a,4)};
YIa=function(a){a=new oQ(a);this.startTimeMs=rQ(a,1);this.endTimeMs=rQ(a,2)};
ZIa=function(a){var b=new oQ(a);a=sQ(b,3);var c=rQ(b,5);this.u=rQ(b,7);var d=tQ(b,14);new YIa(new kC([d]));b=sQ(b,15);this.i=a+";"+c+";"+b};
$Ia=function(a){this.ao=a;this.u=!1;this.i=[]};
aX=function(a){for(;a.i.length&&!a.i[0].isEncrypted;){var b=a.i.shift(),c=b.IG;if(b=b.buffer)aJa(a.ao.wd,c,b);else{var d=a.ao;d.i[c].XK=!0;var e=b=void 0;d=d.wd;if(null===(e=d.Fe)||void 0===e?0:eU(e,c))null===(b=d.Fe)||void 0===b?void 0:$W(b,c)}}};
bJa=function(a,b){a.i.push({IG:b,isEncrypted:!1});a.u||aX(a)};
cJa=function(a){this.wd=a;this.B={};this.i={};this.u=this.iv=null;this.queue=new $Ia(this)};
dJa=function(a){var b=a.queue;b.i.length&&b.i[0].isEncrypted&&!b.u&&(b.i.length=0);b=g.q(Object.keys(a.i));for(var c=b.next();!c.done;c=b.next())c=c.value,a.i[c].XK||bJa(a.queue,c)};
eJa=function(a,b){var c=b.totalLength;a.ma();var d=!1;switch(a.u){case 0:a.wF(b).then(function(e){var f=a.wd;f.ue("oprr");f.playerResponse=e;f.cF||(f.hx=!1);bX(f)},function(e){a.wd.fail(e)});
break;case 2:a.ue("ormk");b=oC(b);a.queue.decrypt(b);a.ma();break;default:d=!0,a.ma()}a.wd.wj&&a.wd.Ca("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
fJa=function(a,b,c){var d=pC(b,0);a.wd.wj&&a.wd.Ca("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=oC(b,1),d=a.B[d]||null,a.ma(),d&&(a=a.queue,a.i.push({IG:d,buffer:b,isEncrypted:c}),a.u||aX(a)))};
cX=function(){};
gJa=function(a){var b=new jAa;a.u(b);return new Uint8Array(b.u.buffer,0,b.i)};
dX=function(a){var b=a.value;this.name=a.name;this.value=b};
eX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
fX=function(a){this.i=a};
gX=function(a){this.i=a};
kJa=function(a){var b=QF(a);a=hJa(b,a.V());var c=a.video.map(iJa).flat();0<b.B&&!b.Z&&(c=c.filter(function(d){return"1"!==BC[d]||jJa[d]<b.B}));
return{video:c,audio:a.audio.map(iJa).flat()}};
iJa=function(a){var b=lJa[a]||[];"9"===BC[a]&&(b=[].concat(g.ma(b),["278"]));return[a].concat(g.ma(b))};
hJa=function(a,b){function c(l){return l.id}
function d(l){return(l=f[l])?(BA(l,[]),[l[0]]):[]}
if(hX)return hX;var e=Zoa(mJa,null,0,!1,!1,void 0),f=wA(a,b.u,e,function(){return!0},!1);
b=gna(a).map(d).flat();e=ina(a);var h=["1","1h"];0<a.B&&!a.Z&&(e=h.concat(e));return hX={video:e.map(d).flat().map(c),audio:b.map(c)}};
iX=function(a){this.i=a};
jX=function(a){this.i=a};
kX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
lX=function(a,b,c,d){this.C=a;this.B=b;this.onesieUstreamerConfig=c;this.i=d};
nJa=function(a,b){if(b+1<=a.totalLength){var c=pC(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=pC(a,b++);else if(2===c)c=pC(a,b++),a=pC(a,b++),a=(c&63)+64*a;else if(3===c){c=pC(a,b++);var d=pC(a,b++);a=pC(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=pC(a,b++);d=pC(a,b++);var e=pC(a,b++);a=pC(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),nC(a,c,4)?a=qoa(a).getUint32(c-a.B,!0):(d=pC(a,c+2)+256*pC(a,c+3),a=pC(a,c)+256*(pC(a,c+1)+
256*d)),b+=5;return[a,b]};
mX=function(a){this.callbacks=a;this.i=new kC};
oJa=function(a){var b=g.q(nJa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(nJa(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).Nq.split(b),b=d.Cz,d=d.Nq,a.callbacks.ao.feed(c,b),a.i=d,oJa(a))};
rJa=function(a){var b,c,d,e;return g.A(function(f){return 1==f.i?(b=a.V().Yc,null!==b&&void 0!==b&&b.baseUrl?g.x(f,pJa(),3):f.fb(2)):2!=f.i&&(c=f.u)?(d=""+c+b.baseUrl,e=new g.EA(d),f.return(qJa(e,a))):f.return(null)})};
qJa=function(a,b){var c,d=null===(c=b.Pq)||void 0===c?void 0:c.urlQueryOverride;if(d){d=KA(d);d=g.q(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;a.set(e,f)}}if(!a.get("id")){d=PD(b.videoId);b=[];if(d)for(d=g.q(d),e=d.next();!e.done;e=d.next())b.push(e.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
pJa=function(){var a,b,c,d,e;return g.A(function(f){if(1==f.i)return a={format:"RAW",method:"GET",timeout:5E3},g.x(f,ju("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.u;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*)\.googlevideo.com/g;e=c.match(d);return f.return(e?e[0]:null)})};
nX=function(a,b){g.E.call(this);this.Da=a;this.playerRequest=b;this.Y=this.Da.V();this.videoData=this.Da.getVideoData();this.wj=g.RF(this.videoData);this.XJ=this.Y.Yc;this.NF=new YW(this.XJ.i);this.xhr=null;this.il=new hS;this.WK=!1;this.playerResponse="";this.CO=new mX(this);this.ao=new cJa(this);this.yA=new g.I(this.TK,1E4,this);this.fN=g.S(this.Y.experiments,"html5_onesie_progress_timeout_ms");this.xA=new g.I(this.TK,this.fN,this);this.mL=!1;this.Fz=this.Y.Oh;this.nt="";this.hx=this.N("html5_onesie_wait_for_media_availability");
this.cF=this.rL=!1;g.H(this.videoData,this);g.H(this,this.yA);g.H(this,this.xA);this.N("html5_onesie_media_bytes")&&iA()&&(this.Fe=new ZW(this),g.H(this,this.Fe))};
aJa=function(a,b,c){var d;null===(d=a.Fe)||void 0===d?void 0:(d.ma(),(a=d.Oe.get(b))&&!a.sf&&(a.ge.append(c),a.bytesReceived+=c.length,a.td&&a.td()))};
bX=function(a){if(!a.playerResponse)return!1;if(a.rL)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&a.videoData.Un(),c;if(c=a.hx&&a.Fe){c=a.Fe;for(var d=!1,e=g.q(c.Oe.keys()),f=e.next();!f.done;f=e.next())f=c.Oe.get(f.value),(null===f||void 0===f?0:f.Ek)&&0<(null===f||void 0===f?void 0:f.Ek)&&(f.Qk?d=!0:b=!0);c=!(b&&d)}if(c)return!1;a.ue("ofr");a.il.resolve(a.playerResponse);a.yA.stop();return a.rL=!0};
sJa=function(a){if(!a.Zk)return{};var b=wU(a.Zk);b.d=CFa(a.Zk);b.ty="o";return b};
xJa=function(a){function b(e){return(d.Zg&&!c.N("web_player_no_force_gvi")||!(c.Wi?0:c.N("web_player_gvi_wexit")||(g.zE(c)?"TVHTML5"===c.deviceParams.c?rqa(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||fE(c)?c.N("web_player_gvi_wexit_living_room_simply"):KE(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_unplugged"):
c.N("web_player_gvi_wexit_living_room_other"):1))&&!oG(d)?0:"yt"!==c.oa?38===d.Ka&&"books"===c.playerStyle||30===d.Ka&&"docs"===c.playerStyle||33===d.Ka&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==jG(d)||c.N("web_player_gvi_wexit_adunit"))?tJa(a,d).then(function(){oX(a,d)},function(f){oX(a,d,!0);
throw f;}):uJa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ja=!0;return vJa(a)?wJa(a,d).then(function(){oX(a,d)},function(e){e=$C(e);
if(e.i)return oX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
vJa=function(a){var b=a.V();if(!b.N("html5_onesie"))return!1;var c=a.getVideoData();if(!b.N("html5_onesie_cast")&&(c.X||c.cg)||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.oa)return!1;b=b.Yc;if(!b||!b.i)return a.handleError(new g.ZC("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.ZC("html5.missingapi",!1,b)),!1):!0};
yJa=function(a){var b=RJ();iua(b,a.nf());return g.RL(b,Lwa())};
wJa=function(a,b){var c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.i)return b.fetchType="onesie",c=Cxa(b,a.getPlayerSize(),a.getVisibilityState()),d=new nX(a,c),g.x(p,d.fetch(),2);e=p.u;f={player_response:e};b.Ja=!1;b.Bl=d.Fe;b.OD=d.OD;g.IF(b,f,!0);if(b.Ja||GF(b))return p.return(Promise.resolve());b.Bl=void 0;h={};l="onesie.response";m=!1;b.errorCode?(l="auth",h.ec=b.errorCode,h.ed=b.errorDetail,h.es=b.xi||"",m=!0):(h.successButUnplayable="1",h.disposed=""+ +b.isDisposed(),h.afmts=""+ +/adaptiveFormats/.test(e),
h.cpn=b.clientPlaybackNonce);n=new g.ZC(l,m,h);return p.return(Promise.reject(n))})};
tJa=function(a,b){var c,d,e,f,h,l,m,n,p;return g.A(function(r){switch(r.i){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){r.fb(4);break}if(!(0<f)){r.fb(5);break}return g.x(r,Zh(5E3),6);case 6:h=new g.aw("Retrying OnePlatform request",{attempt:f}),g.cy(h);case 5:return ua(r,7),g.x(r,zJa(a,b),9);case 9:return r.return();case 7:l=wa(r);m=$C(l);n=m.errorCode;d&&"manifest.net.badstatus"===n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return r.return(Promise.reject(m));
a.handleError(m);if(m.i){r.fb(4);break}case 3:f++;r.fb(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",r.return(Promise.reject(new g.ZC(p,!0,{backend:"op"})))}})};
zJa=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F,G;return g.A(function(J){if(1==J.i)return b.fetchType="gp",c=yJa(b),d=Cxa(b,a.getPlayerSize(),a.getVisibilityState()),e=g.BL(AJa),f=b.nf(),h=(0,g.P)(),l=!1,m="empty",n=0,a.ue("ps_s"),p=function(U){2===U.readyState&&a.ue("ps_c")},r={jt:p},g.x(J,g.TJ(c,d,e,void 0,r),2);
t=J.u;a.ue("ps_r");if(b.isDisposed())return J.return();t?t.error?(l=!0,m="esf:"+t.error.message,n=t.error.code):t.errorMetadata&&(l=!0,m="its",n=t.errorMetadata.status):l=!0;if(l)return u=a.V(),v=400===n||429===n,y=((0,g.P)()-h).toFixed(),z={backend:"op",rc:""+n,rt:y,reason:m,has_kpt:b.wb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.N("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:f?"1":"0",has_vvt:b.Sa?"1":"0",is_mdx:b.isMdxPlayback?
"1":"0",mdx_ctrl:b.cg||"",token_eq:f===b.nf()?"1":"0"},C="manifest.net.connect",429===n?C="auth":200<n&&(C="manifest.net.badstatus"),J.return(Promise.reject(new g.ZC(C,v,z)));b.Ja=!1;g.IF(b,{raw_player_response:t},!0);if(b.errorCode)return F={ec:b.errorCode,ed:b.errorDetail,es:b.xi||""},J.return(Promise.reject(new g.ZC("auth",!0,F)));if(!b.Ja&&!GF(b))return G=b.isAd()?"auth":"manifest.net.retryexhausted",J.return(Promise.reject(new g.ZC(G,!0,{successButUnplayable:"1",hasMedia:aG(b)?"1":"0"})));g.ta(J)})};
uJa=function(a,b,c){var d,e,f,h,l,m,n,p,r,t;return g.A(function(u){switch(u.i){case 1:d=$wa(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(v){v=$C(v);
if(v.i)return Promise.reject(v);a.handleError(v);return!1},l=(h=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){u.fb(4);break}n=d;if(!(0<m)){u.fb(5);break}return g.x(u,Zh(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Ft(d,p);case 5:return g.x(u,BJa(b,n).then(e,f),7);case 7:if(r=u.u)return u.return();m++;u.fb(2);break;case 4:t=h?"auth":"manifest.net.retryexhausted";if(!h&&1E-4>Math.random())try{g.cy(new g.aw("b/152131571",btoa(d)))}catch(v){}return u.return(Promise.reject(new g.ZC(t,!0,{backend:"gvi"})))}})};
BJa=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,v;return g.A(function(y){if(1==y.i)return a.fetchType="gvi",c=a.V(),(f=axa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=Ft(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.xD(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0<Object.keys(h).length&&(d.headers=
h),m=(0,g.P)(),n=function(z){if(!a.isDisposed()){z=z?z.status:-1;var C=400===z||429===z,F=((0,g.P)()-m).toFixed();F={backend:"gvi",rc:""+z,rt:F};var G="manifest.net.connect";429===z?G="auth":200<z&&(G="manifest.net.badstatus");return Promise.reject(new g.ZC(G,C,F))}},p=function(z){return n(z.xhr)},g.x(y,hD(ju,e,d).then(void 0,p),2);
r=y.u;if(!r||!r.responseText)return y.return(n(r));a.Ja=!1;t=Bt(r.responseText);g.IF(a,t,!0,void 0);if(a.errorCode)return u={ec:a.errorCode,ed:a.errorDetail,es:a.xi||""},y.return(Promise.reject(new g.ZC("auth",!0,u)));if(!a.Ja&&!GF(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",y.return(Promise.reject(new g.ZC(v,!0,{successButUnplayable:"1"})));g.ta(y)})};
oX=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h,l;g.A(function(m){if(1==m.i){d=a.V();if(c&&(!g.ME(d)||"embedded"!==jG(b))||b.Up||"adunit"!==jG(b)&&(g.zE(d)||AE(d)||g.tE(d)||g.sE(d)||"WEB_CREATOR"===d.deviceParams.c))return m.return();ua(m,2);e=yJa(b);var n=b.V();g.Mv.getInstance();var p={context:g.CM(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===jG(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);
n.gj&&(p.showContentOwnerOnly=!0);g.Nv(0,141)&&(p.autonavState=g.Nv(0,140)?"STATE_OFF":"STATE_ON");if(g.NE(n)){n=g.Nv(0,65);n=null!=n?!n:!1;var r=!!g.ry("yt-player-sticky-caption");p.captionsRequested=n&&r}f=p;h=g.BL(CJa);a.ue("wn_s");return g.x(m,g.TJ(e,f,h),4)}if(2!=m.i)return l=m.u,a.ue("wn_r"),l&&!l.error&&g.IF(b,{raw_watch_next_response:l},!1),va(m,0);wa(m);g.ta(m)})};
DJa=function(a){function b(){a.ue("virc");Ez("virc",void 0,"video_to_ad")}
a.ue("vir");Ez("vir",void 0,"video_to_ad");var c=xJa(a);c.then(b,b);return c};
g.sX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new FF(a):m;n=void 0===n?!0:n;g.Q.call(this);var p=this;this.Y=a;this.playerType=b;this.Qb=c;this.wx=d;this.getVisibilityState=f;this.visibility=h;this.uy=l;this.videoData=m;this.uR=n;this.Vu=new qIa(this.Y);this.Ld=null;this.ot=new TV;this.Tl=null;this.Ag=new cW(this.Y,this.wx,this);this.VK=!0;this.mediaSource=this.Ya=null;this.Mj=[];this.ym=new VW;this.He=this.Pw=null;this.zm=new VW;this.EA=null;this.ZK=this.Ps=!1;this.FA=NaN;this.pB=new g.I(this.tW,
500,this);this.playerState=new g.tJ;this.HA=[];this.Wt=new g.JC;this.Ck=new $V(this);this.ra=null;this.kq=new g.I(this.TU,15E3,this);this.nG=this.mA=!1;this.Cq=NaN;this.vy=!1;this.ZC=0;this.aD=new g.I(this.qG,4500,this);this.ew=!1;this.Sz=NaN;this.GG=new $S(new Map([["bufferhealth",function(){var r=p.Oc;return r.ra?rJ(r.ra):0}],
["bandwidth",function(){return p.TD()}],
["networkactivity",function(){return p.Y.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Ec()?pX(p):NaN}],
["rawlivelatency",function(){return pX(p)}]]));
this.Vz=0;this.loop=!1;this.playbackRate=1;this.AL=0;this.Oc=new PW(this);this.qJ=!1;this.GA=[];this.NE=this.lN=0;this.lG=this.HO=!1;this.PC=new g.I(this.pS,0,this);this.pd=null;this.iM=new g.I(this.yR,0,this);this.MA=new g.I(this.HN,3E4,this);this.DT=[this.pB,this.Wt,this.PC,this.kq,this.MA,this.pB,this.aD,this.GG,this.iM];this.Ge=function(){var r=p.Rb;r.u.Y.dc||3===r.u.Da.getVisibilityState()||(r.u.Y.dc=!0);cIa(r);if(r.B){var t=r.B;t.I&&0>t.u&&3!==t.i.Da.getVisibilityState()&&yHa(t)}r.qoe&&(r=r.qoe,
r.Ka&&0>r.B&&r.i.Y.dc&&KHa(r));g.S(p.Y.experiments,"html5_background_quality_cap")&&p.Ya&&XU(p);p.Y.nk&&!p.videoData.backgroundable&&p.ra&&!p.rf()&&(p.isBackground()&&p.ra.Ux()?(p.Ca("bgmobile","suspend"),p.Bm(!0)):p.isBackground()||qX(p)&&p.Ca("bgmobile","resume"))};
this.ma();this.Rg=new DW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(r,t){r!==g.Vy("endcr")||g.T(p.playerState,32)||qS(p);
e(r,t,p.playerType)});
g.H(this,this.Rg);g.H(this,this.Oc);EJa(this,m);this.videoData.subscribe("dataupdated",this.HW,this);this.videoData.subscribe("dataloaded",this.lD,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ca,this);FJa(this);mDa(this.Ge);this.visibility.subscribe("visibilitystatechange",this.Ge);this.videoData.La&&GJa(this);!msa(this.videoData)&&ssa(this.videoData)||HJa(this);1===this.playerType&&rX.isActive()&&this.MA.start();this.videoData.ze=this.getUserAudio51Preference()};
EJa=function(a,b){if(2===a.playerType||a.Y.zl)b.CH=!0;var c=mra(b.Nb,b.Gr,a.Y.i,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.Vk=!0);if(a.isFullscreen()||a.Y.i)c=g.ry("yt-player-autonavstate"),b.autonavState=c||(a.Y.i?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&tX(a,b.endSeconds)};
FJa=function(a){!a.Rb||a.Rb.isDisposed();a.Rb=new g.CW(new BW(a.videoData,a.Y,a,function(){return a.uy.Hh()}))};
gH=function(a){return a.ra&&a.ra.Yo()?a.ra.xe():null};
uX=function(a){if(a.videoData.isValid())return!0;a.Jf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
GJa=function(a){var b=a.uy.Jc();a.videoData.Dl=a.videoData.Dl||(null===b||void 0===b?void 0:b.WD());a.videoData.El=a.videoData.El||(null===b||void 0===b?void 0:b.XD())};
WR=function(a,b){(b=void 0===b?!1:b)||bIa(a.Rb);a.Ps=b;!uX(a)||a.ym.started?g.zE(a.Y)&&a.videoData.isLivePlayback&&a.ym.started&&!a.ym.isFinished()&&!a.Ps&&a.lD():(a.ym.start(),b=a.Rb,g.pS(b.u),b.qoe&&JHa(b.qoe),a.lD())};
IJa=function(a){var b=a.videoData;DJa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=$C(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Jf("auth",unescape(a.videoData.errorReason),g.YC(c.details),a.videoData.errorDetail,a.videoData.xi||void 0):a.handleError(c))})};
pDa=function(a,b){a.pd=b;a.Ya&&kGa(a.Ya,new g.aV(b))};
JJa=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.ma(),4!==a.playerType&&(a.Mj=g.fc(a.videoData.Ba)),aG(a.videoData)){vX(a).then(function(){if(!a.isDisposed()){a.Ps&&(a.Ub(vJ(vJ(a.playerState,512),1)),qX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&tX(a,c.endSeconds);a.ym.finished=!0;wX(a,"dataloaded");a.zm.started&&xX(a);xHa(a.Ag,a.He)}});
a.N("html5_log_media_perf_info")&&a.Ca("loudness",""+a.videoData.ye.toFixed(3),!0);var b=tsa(a.videoData);b&&a.Ca("playerResponseExperiment",b,!0);a.YC()}else wX(a,"dataloaded")};
vX=function(a){yX(a);a.He=null;var b=sIa(a.Y,a.videoData,a.rf());a.Pw=b;a.Pw.then(function(c){KJa(a,c)},function(c){a.isDisposed()||(c=$C(c),a.visibility.isBackground()?(zX(a,"vp_none_avail"),a.Pw=null,a.ym.reset()):(a.ym.finished=!0,a.Jf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.YC(c.details))))});
return b};
aW=function(a){a.ma();vX(a).then(function(){return qX(a)});
g.zJ(a.playerState)&&a.playVideo()};
KJa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.ma(),a.He=b,DIa(a.Oc,a.He),a.videoData.isLivePlayback&&(0<a.videoData.kc&&!MF(a.videoData)||a.seekTo(a.kd(),{Ud:"videoplayer_playbackData"})),a.videoData.C.i?a.Ya?g.cy(Error("Duplicated Loader")):LJa(a):!a.videoData.C.i&&pG(a.videoData)&&a.Zs(new PT(a.videoData.videoId||"",4)),AX(a),pHa(b).then(function(){a.Rt();BX(a)}))};
CX=function(a){a.ma();a.ra&&a.ra.Pr();WR(a);uX(a)&&!g.T(a.playerState,128)&&(a.zm.started||(a.zm.start(),a.Ub(vJ(vJ(a.playerState,8),1))),xX(a))};
xX=function(a){a.isDisposed();a.ma();if(a.zm.isFinished())a.ma();else if(a.ym.isFinished())if(g.T(a.playerState,128))a.ma();else if(a.Mj.length)a.ma();else{if(!a.Rg.started){var b=a.Rg;b.started=!0;b.vl()}if(a.gm())a.ma();else{a.Ya&&(b=a.Ya.timing,a.ZK=!!b.i&&!!b.u);a.zm.isFinished()||(a.zm.finished=!0);b=a.N("html5_onesie_live")&&a.Ya&&!isNaN(a.Ya.Sa);!a.videoData.isLivePlayback||0<a.videoData.kc&&!MF(a.videoData)||b||(a.ma(),a.seekTo(Infinity,{Ud:"videoplayer_readying"}),a.isBackground()&&(a.nG=
!0));b=a.Rb;if(b.qoe){b=b.qoe;b.i.videoData.Yj&&nW(b,b.i.videoData.Yj);if(b.i.videoData.isLivePlayback){var c=b.i.videoData.i;MF(b.i.videoData)&&nW(b,"manifestless");c&&rD(c)&&nW(b,"live-segment-"+rD(c).toFixed(1))}"yt"!==b.i.Y.oa&&(b.u.len=[b.i.videoData.lengthSeconds.toFixed(2)]);b.i.videoData.cotn&&!pG(b.i.videoData)&&GHa(b,!0);b.i.videoData.oa&&(c=FHa())&&b.Ca("cblt",c);nG(b.i.videoData)?nW(b,b.i.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.i.videoData.oH&&nW(b,"dsdai")}a.ma();a.ea("playbackready",
a);Dz("pbr",a.Qb.timerName)||(a.Qb.tick("pbr"),Ez("pbr",void 0,"video_to_ad"))}}else a.ma()};
qS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.ra&&a.ra.pause();b=b?new g.tJ(14):new g.tJ;a.Ub(b)};
tX=function(a,b){a.Tl&&DX(a);a.Tl=new g.Ty(1E3*b,0x7ffffffffffff);a.Tl.namespace="endcr";a.addCueRange(a.Tl)};
DX=function(a){a.removeCueRange(a.Tl);a.Tl=null};
FX=function(a,b,c,d){a.videoData.B=c;d&&YU(a,b,d);d=(d=g.EX(a))?d.hc():"";a.Rb.Nw(new iHa(a.videoData,c,b,d));c=a.Ag;c.B=0;c.i=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.EX=function(a){var b=GX(a);return pA(b)||!a.He?null:g.Tb(a.He.i.videoInfos,function(c){return b.C(c)})};
YU=function(a,b,c){if(c!==a.videoData.K){var d=!a.videoData.K;a.videoData.K=c;"m"!==b&&(b=d?"i":"a");a.Rb.Fw(new iHa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
$U=function(a,b){a.ma();b&&a.md(new g.ZC("qoe.restart",!1,b));HX(a);b=a.videoData.i&&AA(a.videoData.i);var c=a.ra&&a.ra.isView();b||c?(a.Ya&&ZFa(a.Ya),ZV(a)):(a.Ub(vJ(a.playerState,16)),qX(a),g.zJ(a.playerState)&&a.playVideo())};
GX=function(a){if(a.He){var b=a.Ag;var c=a.He;a=a.Cs();var d=mHa(b);if(pA(d)){d=jHa(b,c);var e=d.compose,f;a:{var h=c.i;if(h&&h.videoInfos.length){for(var l=g.q(h.videoInfos),m=l.next();!m.done;m=l.next())if(m=m.value,null===(f=m.u)||void 0===f?0:f.smooth){f=m.video.i;break a}f=h.videoInfos[0].video.i}else f=0}Gia()&&!g.zE(b.Y)&&DC(c.i.videoInfos[0])&&(f=Math.min(f,g.nA.large));f=new mA(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.qE(b.Y)||Hu()||b.Y.N("hls_for_vod")||(f=b.Y.N("mweb_default_hd720")?
g.nA.hd720:g.nA.medium);if(h=g.S(b.Y.experiments,"html5_default_quality_cap"))m=!!c.i.i&&!c.videoData.cg&&!c.videoData.Fd,l=g.S(b.Y.experiments,"html5_quality_cap_min_age_secs"),m&&l&&(m=b.Y.schedule.S,m=(0,g.P)()-m>1E3*l),m&&(f=Math.min(f,h));h=g.S(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));(h=g.S(b.Y.experiments,"html5_not_vp9_supported_quality_cap"))&&!MC('video/webm; codecs="vp9"')&&(f=Math.min(f,h));if(l=h=g.S(b.Y.experiments,
"html5_hfr_quality_cap"))a:{l=c.i;if(l.i)for(l=g.q(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.S(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=wHa(b,c,f);f=new mA(0,4320===f?0:f,!1,"d");d=e.call(d,f).compose(dW(b)).compose(eW(b,c.videoData,c)).compose(vHa(b,c)).compose(oHa(c)).compose(nHa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(vHa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&
(d=d.compose(oHa(c)));b.N("html5_varispeed_playback_rate")&&(d=d.compose(nHa(b,c)));b=c.videoData.vr.compose(d).compose(c.videoData.DN).compose(a)}else b=EF;return b};
BCa=function(a,b,c){a.videoData.vr=b;if(a.He&&c){c=a.Ag;var d=a.He,e,f;if(d.i.i){var h=tD(),l=d.i.videoInfos[0].video.i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.N("html5_varispeed_playback_rate")&&(h=Ipa(c.Y.u,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.Da.setPlaybackRate(1));d=(null===(f=null===(e=d.videoData.B)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0;g.qy("yt-player-quality",{quality:g.nA[rA(b)],previousQuality:d},31104E3);c.Y.schedule.policy.C=480<=tD();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Y.ac;e=1;var m=void 0===m?!1:m;$pa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.em["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.em["sticky-lifetime"]=0);m&&.0625<ZD(b,"sticky-lifetime")&&(e=2*b.em["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.em["sticky-lifetime"]=e;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){m=uD();c=g.q(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
g.qy("yt-player-performance-cap",m,604800)}else g.sy("yt-player-performance-cap")}}}AX(a)};
AX=function(a){if(!a.isDisposed()&&!g.T(a.playerState,128)&&a.videoData.C){if(a.videoData.C.i)BX(a);else{var b=GX(a),c=a.videoData;a:{var d=a.videoData.Fb;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.mf(),l=g.nA[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.bb=d;FX(a,b.reason,MJa(a,a.videoData.bb))}if(a.N("html5_check_unstarted")?g.zJ(a.playerState):a.Ec())a.Oc.La=!1,a.playVideo()}};
BX=function(a){if(a.videoData.C&&a.videoData.C.i){var b=GX(a);if(a.Ya&&(a=a.Ya,!a.isDisposed()&&!a.u.B.equals(b)&&a.videoTrack)){a.ma();var c=a.u.B;dGa(a,yEa(a.u,b));QU(a);var d=GT(a.u)&&"m"===b.reason&&a.u.Z,e=a.policy.gj&&"l"===b.reason&&sU(a.videoTrack);b=c.i>b.i&&"b"===b.reason;c=a.u.Wa&&!bD();d||e||b||c?$U(a.Da,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.Fr(a.X)}}};
XU=function(a){a.N("html5_update_constraint")?BX(a):AX(a)};
OJa=function(a){var b=NJa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.zc.getName()===b})};
NJa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;c<a.length;++c){var d=a[c];if(d.enabled)return d.label}};
LJa=function(a){kpa(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver});var b=a.Y,c=a.videoData,d=new g.Lxa(b),e=Kxa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Mk:c.Mk});d.D=e;d.oa=g.S(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.fc=g.S(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Dq=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.dc=g.S(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Oq=g.S(b.experiments,"html5_subsegment_readahead_min_load_speed");d.fh=g.S(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Pq=g.S(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Dp=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.fk=g.S(b.experiments,"html5_max_headm_for_streaming_xhr");d.pk=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.Dl=b.N("html5_prefer_server_bwe3");d.rh=1024*g.S(b.experiments,"html5_video_tbd_min_kb");d.Wj=b.N("html5_last_slice_transition");
d.hq=b.N("html5_store_xhr_headers_readable");d.Db=g.S(b.experiments,"html5_probe_primary_delay_base_ms")||d.Db;d.Of=b.N("html5_no_placeholder_rollbacks");d.yq=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.xa=!0);d.Sg=b.N("html5_reattach_on_stuck");d.Uq=b.N("html5_webm_init_skipping");d.Tg=g.S(b.experiments,"html5_request_size_padding_secs")||d.Tg;d.hd=b.N("html5_abs_buffer_health");d.mj=b.N("html5_interruption_resets_seeked_time");d.Ae=g.S(b.experiments,
"html5_max_live_dvr_window_plus_margin_secs")||d.Ae;d.Id=b.N("html5_explicitly_dispose_xhr");d.ep=b.N("html5_restart_on_unexpected_detach");d.Hp=b.N("html5_rewrite_manifestless_for_continuity");d.ye=g.S(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.ze=g.S(b.experiments,"html5_max_drift_per_track_secs");d.Up=b.N("html5_rewrite_manifestless_for_sync");d.ac=g.S(b.experiments,"html5_static_abr_resolution_shelf");d.cj=!b.N("html5_encourage_array_coalescing");d.Uj=b.N("html5_crypto_period_secs_from_emsg");
d.jj=b.N("html5_filter_non_efficient_formats_for_safari");d.fu=b.N("html5_format_hybridization");d.Qi=b.N("html5_abort_before_separate_init");d.eq=b.N("html5_serialize_server_stitched_ad_request");d.Bf=b.N("html5_never_pause_appends");d.lk=g.S(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Wi=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&(d.xa=!0);0<g.S(b.experiments,"html5_max_redirect_response_length")&&(d.Pe=g.S(b.experiments,"html5_max_redirect_response_length"));
e=g.S(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.bp=e);d.Nb=b.N("html5_rewrite_timestamps_for_webm");d.Ja=b.N("html5_only_media_duration_for_discontinuities");b.N("html5_media_common_config_killswitch")||(d.I=c.maxReadAheadMediaTimeMs/1E3||d.I,e=b.schedule,e.B.pg()===e.policy.B?d.Aa=10:d.Aa=c.minReadAheadMediaTimeMs/1E3||d.Aa,d.xd=c.readAheadGrowthRateMs/1E3||d.xd);Jm&&(d.Ba=41943040);d.Wa=!gD();g.zE(b)||!gD()?(e=b.experiments,d.K=8388608,d.X=524288,d.Yi=5,d.jb=2097152,d.Ka=
1048576,d.Gl=1.5,d.nk=!1,d.Ob=4587520,Eu()&&(d.Ob=786432),d.B*=1.1,d.C*=1.1,d.Gb=!0,d.Ba=d.K,d.rb=d.X,d.Yc=e.kb("persist_disable_player_preload_on_tv")||e.kb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&(d.B*=1.3,d.C*=1.3);g.Ej&&Au("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.K=20971520,d.X=1572864,e&&(d.Ob=812500,d.Zc=1E3,d.Tq=5,d.Ka=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.Fj&&(d.Gb=!0);b.supportsGaplessAudio()||(d.Vj=!1);hE&&(d.Sa=!0);
var f;d.wb=b.N("html5_peak_shave");"onesie"===c.fetchType&&b.N("html5_disable_peak_shave_for_onesie")&&(d.wb=!1);e=null===(f=c.i)||void 0===f?void 0:AA(f);if(MF(c)){d.kc=!0;d.lj=!0;d.Ja=!0;d.Nb=!0;d.fq=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.Yj=2,d.gk=4;d.Rl=c.defraggedFromSubfragments;c.Sd&&(d.El=!0);g.bG(c)&&(d.Va=!1);d.ej=g.LE(b)}c.isAd()&&(d.ub=0,d.Wd=0);Zra(c)&&(d.La=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.Zc=400,d.Fb*=
3,d.Zj=2,d.ai=3,d.Zg=1.4));d.Za=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.bb=c.oa;d.Z=d.bb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.RF(c));Mu()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.Gb=!1);e&&(d.Sg=!1);var h=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.S(b.experiments,"ULTRALOW"===c.latencyClass?
"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.xa.i=MF(c)?.5:0;if(!f.policy.i&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.u?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.u=m===h;f.C=!0;f.I=Spa(f)}d.Bf=c.isLivePlayback;switch(VF(c)){case 21530001:d.Oi=
b.N("html5_live_smoothly_extend_max_seekable_time");d.Za=!0;"LOW"===c.latencyClass?d.oa=g.S(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.oa=g.S(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Of=!0;break;case 2153E4:d.Za=!1}d.Sa=d.Sa||c.Lu;d.Zb=c.La;g.RF(c)&&(d.ob=!0);c.La&&!e&&b.N("html5_hack_gapless_init")&&(d.Vg=!0);(e=g.S(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.La&&c.isAd()&&(d.B*=e,d.C*=e);pG(c)&&(d.u=c.videoId,
b.N("html5_wofflec")&&(d.Eh=!0),d.hd=!0,d.Sq=4,c.zl&&0<c.zl.length&&(d.Gc=c.zl));d.gj=c.Tg;d.S=wD(b,{},c.C||void 0);c=480<=tD();e=g.S(b.experiments,"html5_deadzone_multiplier")||1;(f=g.S(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.B*=e;d.C*=e;if(e=g.S(b.experiments,"html5_request_sizing_multiplier"))d.Hl=e;yA(b.u,zA.BITRATE)&&(d.Ob=NaN);b.u.u&&(d.hj="; "+zA.EXPERIMENTAL.name+"=allowed");c&&(d.ac=0);b.N("html5_prefer_low_quality_audio_means_64k")&&hE&&(d.Cl=!0);b.N("debug_html5_random_stun_format")&&
(d.Rf=!0);b.N("html5_log_audio_abr")&&(d.Xj=!0);b=a.getAudioTrack();b=b.zc.isDefault?void 0:b;UV(a.ot);c=a.Y.schedule;e=a.videoData.i;f=a.videoData.C;h=GX(a);l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.Bl;delete m.Bl;a.Ya=new g.LU(a,c,d,e,f,h,b,l,n,a.Y.Oh);b=PJa(a)?!0:a.Ps&&g.zE(a.Y)&&a.videoData.isLivePlayback;a.Ya.initialize(a.getCurrentTime(),GX(a),b);a.videoData.probeUrl&&(a.Ya.Ka=a.videoData.probeUrl);!a.Mj.length&&!a.Ps||!a.N("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||
IX(a,!1);SW(a.Oc,a.Ya);a.pd&&kGa(a.Ya,new g.aV(a.pd));g.qG(a.videoData)&&(a.Ya.policy.ij=2);b=a.videoData;if(g.qG(b)){c=b.i.i;if(e=!!c[b.B.id])b=c[b.B.id].u,e=!!b.i.get("ck")&&!!b.i.get("civ");b=e}else b=!1;(b||pG(a.videoData)&&d.Eh)&&a.Ca("wofc","1",!0)};
yX=function(a){a.Ya&&(a.Ya.dispose(),a.Ya=null,SW(a.Oc,null));HX(a)};
HX=function(a){if(a.mediaSource){a.ma();if(a.Ya){var b=MF(a.videoData)&&a.videoData.Sd&&!a.videoData.isAd();SU(a.Ya,b)}a.mediaSource.dispose();a.mediaSource=null}};
QJa=function(a){if(a.mediaSource)return a.mediaSource.qw;a.ma();a:if(a.N("html5_application_media_source"))a.ea("requestmediasource",a);else{try{var b=a.ra.Op()}catch(c){if(bW(a.Ck,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);a.Jf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}lS(a,b)}return a.mediaSource?a.mediaSource.qw:null};
lS=function(a,b){RJa(a);a.mediaSource=b;Joa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ma();var d=a.getDuration();!d&&MF(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,a.ma(),c>a.mediaSource.getDuration()&&a.mediaSource.Nj(c)):a.mediaSource.Nj(d);var e=a.Ya,f=a.mediaSource;e.Z&&(e.ma(),OU(e),e.Z=!1);e.ma();$Fa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.hj,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.Me&&(f.Me.webkitSourceAddId("0",l),f.Me.webkitSourceAddId("1",h));var t=new aD(p,f.Me,"0",AC(l),!1),u=new aD(r,f.Me,"1",AC(h),!0);f.i=t;f.u=u;g.H(f,t);g.H(f,u)}hU(e.videoTrack,f.u||null);hU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();Fx(f.i,e.Va,e);Fx(f.u,e.Va,e);try{e.Dh()}catch(v){g.by(v)}a.ea("mediasourceattached")}}catch(v){g.cy(v),a.handleError(new g.ZC("fmt.unplayable",!0,{msi:"1",ename:v.name}))}})};
RJa=function(a){a.Ya?a.Ya.seek(a.getCurrentTime()-a.dd()).yh(function(){}):LJa(a)};
ZV=function(a,b){b=void 0===b?!1:b;return g.A(function(c){if(1==c.i)return a.Ya&&a.Ya.isDisposed()&&yX(a),a.ea("newelementrequired"),b?g.x(c,vX(a),2):c.fb(2);g.T(a.playerState,8)&&a.playVideo();g.ta(c)})};
jDa=function(a,b){a.Ca("newelem",b);ZV(a)};
JX=function(a){a.Qb.B.sF();g.T(a.playerState,32)||(a.Ub(vJ(a.playerState,32)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Xb()};
DS=function(a){g.T(a.playerState,32)?(a.Ub(xJ(a.playerState,16,32)),a.ea("endseeking",a)):g.T(a.playerState,2)||a.Ub(vJ(a.playerState,16));a.Qb.B.xF(a.videoData,g.T(a.playerState,4))};
HJa=function(a){var b=a.videoData.errorDetail;a.Jf("auth",unescape(a.videoData.errorReason),b,b,a.videoData.xi||void 0)};
wX=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
SJa=function(a){g.sc("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Wt.T(this.ra,b,this.MF,this)},a);
a.Y.ej&&a.ra.Yo()&&(a.Wt.T(a.ra,"webkitplaybacktargetavailabilitychanged",a.UT,a),a.Wt.T(a.ra,"webkitcurrentplaybacktargetiswirelesschanged",a.VT,a))};
UJa=function(a){a.N("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&TJa(a)&&a.pB.start()};
TJa=function(a){if(!a.ra)return!1;var b=a.ra.getCurrentTime();a=a.ra.getDuration();return!!(1<b&&b>a-.3)};
VJa=function(a){Pt(a.FA);KX(a)||(a.FA=Nt(function(){return KX(a)},100))};
KX=function(a){var b=a.ra;b&&a.mA&&!a.videoData.ob&&!Dz("vfp",a.Qb.timerName)&&2<=b.Ch()&&!b.Sk()&&0<VC(b.Uf())&&a.Qb.tick("vfp");return(b=a.ra)&&!a.videoData.ob&&0<b.getDuration()&&(!Dz("pbp",a.Qb.timerName)&&b.ul()&&2<=b.Ch()&&0<VC(b.Uf())&&a.Qb.tick("pbp"),b=b.getCurrentTime(),EW(a.Vu,b))?(cDa(a),!0):!1};
cDa=function(a){Pt(a.FA);a.kq.stop();a.videoData.ob=!0;a.Y.Wj=!0;a.Y.Wa=0;var b=a.Ck,c=b.videoData.B;c&&b.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.u.i.delete(c.i);b.u.stop();a.Y.Oi=a.videoData.IC;a.videoData.cK=!0;WJa(a);g.T(a.playerState,8)&&a.Ub(wJ(a.playerState,65));b=a.Rb;b.i&&WHa(b.i);b.B&&(b=b.B,c=g.pS(b.i),0>b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.Fr(a.aD);a.ea("playbackstarted");g.yu()&&((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():zu(0))};
WJa=function(a){var b=a.getCurrentTime(),c=a.videoData;!Dz("pbs",a.Qb.timerName)&&fz.measure&&fz.getEntriesByName&&(fz.getEntriesByName("mark_nr")[0]?Xma("mark_nr"):Xma());c.videoId&&a.Qb.info("docid",c.videoId);c.eventId&&a.Qb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Qb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Qb.info("start",c.startSeconds.toString());a.ra&&a.ra.ul()&&a.Qb.info("paused",1);c.B?a.Qb.info("fmt",c.B.hc()):a.Qb.info("fmt","-1");c.Id&&a.Qb.info("yt_pre",a.ZK?"2":"1");
a.isFullscreen()&&a.Qb.info("yt_fs","1");a.Qb.info("cmt",b.toFixed(3));if(a.Ya){b=a.Ya.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.u&&(c=window.performance.getEntriesByName(b.u),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.Qb.tick(d,b[d])}};
XJa=function(a){a.Rb.td();if(a.videoData.isLivePlayback&&Date.now()>a.AL+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&oD(a.videoData.i))){var b=a.Rb;if(b.qoe){b=b.qoe;var c=b.i.Da.wz(),d=g.pS(b.i);IHa(b,d,c);c=c.D;isNaN(c)||g.iW(b,d,"e2el",[c.toFixed(3)])}}g.LE(a.Y)&&a.Ca("rawlat","l."+bT(a.GG,"rawlivelatency").toFixed(3));a.AL=Date.now()}a.videoData.B&&GC(a.videoData.B)&&(b=gH(a))&&b.videoHeight!==a.NE&&(a.NE=b.videoHeight,FX(a,"a",MJa(a,a.videoData.bb)))};
MJa=function(a,b){if("auto"===b.i.video.quality&&GC(b.mf())&&a.videoData.Fb)for(var c=g.q(a.videoData.Fb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.NE&&"auto"!==d.i.video.quality)return d.mf();return b.mf()};
pX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Ya&&a.videoData.i&&(b=MF(a.videoData)?a.Ya.Ja.pg()||0:a.videoData.i.xa);return Date.now()/1E3-a.getIngestionTime()-b};
YJa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.rf()&&(a.Sz=(0,g.P)());a.Y.El?g.Mt(function(){LX(a)},0):LX(a)};
LX=function(a){if(a.ra)try{a.EA=a.ra.playVideo()}catch(c){zX(a,"err."+c)}if(a.EA){var b=a.EA;b.then(void 0,function(c){a.ma();if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.EA===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);zX(a,d);a.qJ=!0;a.Y.N("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.yL=!0)}})}};
zX=function(a,b){g.T(a.playerState,128)||(a.Ub(xJ(a.playerState,1028,9)),a.Ca("dompaused",b),a.ea("onDompaused"),a.ea("onAutoplayBlocked"))};
qX=function(a){if(!a.ra||!a.videoData.C)return!1;var b,c,d=null;(null===(c=a.videoData.C)||void 0===c?0:c.i)?(d=QJa(a),null===(b=a.Ya)||void 0===b?void 0:b.resume()):(yX(a),a.videoData.bb&&(d=a.videoData.bb.Au()));b=d;d=a.ra.Ux();c=!1;d&&d.equals(b)||(ZJa(a,b),c=!0);g.T(a.playerState,2)||(b=a.Oc,b.D||!(0<b.B)||b.ra&&0<b.ra.getCurrentTime()||b.seekTo(b.B,{Ud:"playbacktimeline_resumeTime"}));a:if(b=c,g.XF(a.videoData)&&a.ra)if((d=a.videoData.I)&&a.ra.Yo()){var e=a.ra.xe();if(a.Ld)if(e!==a.Ld.element)MX(a);
else if(b&&"fairplay"===d.flavor&&!Du())MX(a);else break a;a.Ld=new WV(e,a.videoData,a.Y);a.Ld.subscribe("licenseerror",a.pA,a);a.Ld.subscribe("qualitychange",a.QU,a);a.Ld.subscribe("heartbeatparams",a.Kw,a);a.Ld.subscribe("keystatuseschange",a.Co,a);a.Ld.subscribe("ctmp",a.Ca,a);b=g.q(a.ot.keys);for(d=b.next();!d.done;d=b.next())d=a.ot.get(d.value),a.Ld.gt(d);a.N("html5_eme_loader_sync")||UV(a.ot)}else a.Jf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
ZJa=function(a,b){var c;a.Qb.tick("vta");Ez("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&FIa(a.Oc,a.getCurrentTime());a.ra.Pr(b);a.mediaSource&&zu(4);!a.videoData.ob&&g.zJ(a.playerState)&&a.kq.start();a.N("html5_native_audio_track_switching")&&(b=null===(c=a.ra)||void 0===c?void 0:c.audioTracks())&&(b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)})};
MX=function(a){a.Ld&&(a.Ld.dispose(),a.Ld=null)};
mS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.N("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.playerState,4))||a.im()||g.bG(a.videoData))?a.getCurrentTime():a.kd(b)};
$Ja=function(a){a.ma();a.ra&&(a.mediaSource?(MX(a),HX(a),QJa(a)):(a.videoData.bb&&a.videoData.bb.pG(),a.ra.stopVideo()),a.playVideo())};
NX=function(a,b){a.Y.N("html5_log_rebuffer_reason")&&a.Ca("bufreason","r."+b+";lact."+jv())};
yS=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.Rb;if(p.qoe){p=p.qoe;var r=b.cpn,t=c.cpn,u=l.videoData.Nb,v=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,z=t!==v&&n!==y;v=r!==v&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==r||(p.adCpn=v?r:"",p.D=v?m:"",p.adFormat=v?u:void 0,LHa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=z?t:"",p.D=z?n:"",p.adFormat=z?u:void 0,LHa(p,f?3:1,
r,m,d),p.reportStats())}d=a.Rb;f=b.cpn;d.C.has(f)?(m=d.C.get(f),zW(m).send(),g.Ot(m.B),m.B=NaN,d.u.Y.N("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(AW(m),d.C.delete(f))):(d.Sf=d.u.videoData.clientPlaybackNonce,d.Sf&&d.i&&d.C.set(d.Sf,d.i));d=a.Rb;f=c.cpn;l=l.videoData;var C;d.C.has(f)?null===(C=d.C.get(f))||void 0===C?void 0:C.C&&isNaN(C.B)&&xW(C,!1):(C=gIa(d,d.u,l,e),d.C.set(f,C),WHa(C));d.Sf=f;C=a.videoData.clientPlaybackNonce;a=c.videoData;b=
(c.cpn===C?"video":"ad")+"_to_"+(b.cpn===C?"video":"ad");C={};!a.N("web_player_csi_ctt_killswitch")&&a.X&&(C.cttAuthInfo={token:a.X,videoId:a.videoId});C.startTime=e;zz(b,C);Cz({targetVideoId:a.videoId,targetCpn:c.cpn},b);Bz("pbs",e,b)}}};
aKa=function(a,b){if(a.videoData.oa){var c=g.S(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.ra){var d=a.ra.Kb();d.rt=(1E3*g.pS(a.Rb.u)).toFixed();d.e=b.substr(0,3);a.GA[a.lN++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ma()};
bKa=function(a){if(a.videoData.oa){a.GA.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.GA),c=b.next();!c.done;c=b.next())c=c.value,a.Ca("vpe","t."+c.rt+";"+g.YC(c));a.GA=[];a.lN=0}};
cKa=function(a){if(Au("cobalt")&&Au("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ca("nxdock",""+ +b)}};
bDa=function(a,b,c,d,e){a.Ca("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
IX=function(a,b){var c;null===(c=a.Ya)||void 0===c?void 0:RU(c,b||PJa(a))};
PJa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.zE(a.Y),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Wb(a.Mj,"ad")};
eGa=function(a){var b=a.Y.hd||"";g.S(a.Y.experiments,"html5_session_po_token_interval_time_ms")||BE(a.Y);return b};
g.RX=function(a,b,c){g.E.call(this);var d=this;this.ww=this.og=!1;this.Xt={};this.UC={};this.NA={};this.Dt=[];this.fL=!1;this.EE=null;this.kL=!1;this.bq=!0;this.zG=!1;this.FL=this.PE=null;this.ML=!0;this.ra=this.Sb=null;this.Ow=!1;this.PN=this.Xw=this.sb=this.playlist=null;this.sx=void 0;this.So=0;this.Xc=this.au=this.dj=null;this.ma();this.config=wla(b||{});this.webPlayerContextConfig=c;Oja();b=this.config.args||{};this.Y=new CE(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.H(this,
this.Y);this.YC();this.Y.isMobile&&!dKa&&(window.addEventListener(gE?"touchstart":"click",TCa,{capture:!0,passive:!0}),dKa=!0);var e=this.Y.Oh;e&&e.load().then(function(){d.N("html5_onesie_prewarm")&&Lpa(e)});
this.ZN=$D(mE(this.Y)&&!0,b.enablesizebutton);this.JE=$D(!1,b.player_wide);this.visibility=new rS;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.JC(this);g.H(this,this.events);this.Am=new YS;g.H(this,this.Am);this.Ul=new YS;g.H(this,this.Ul);this.Tn=new ZDa;this.Ta=new g.lM(this);g.H(this,this.Ta);this.template=new fT(this);g.H(this,this.template);this.appState=1;this.gg=this.Y.storeUserVolume?npa():{volume:100,muted:this.Y.mute};this.J=this.Y.B?new kM(this,
1):new eM(this,1);g.H(this,this.J);c={};this.XC=(c.internalvideodatachange=this.aU,c.playbackready=this.cU,c.playbackstarted=this.dU,c.statechange=this.eU,c);this.Vc=eKa(this);this.gF=new g.JC(this);g.H(this,this.gF);this.N("html5_enable_web_assembly")&&this.Vc&&Xxa(this.Vc).then(function(f){d.Y.mj=f});
this.Qb=new wM(this.Y,this.Vc);this.tb=fKa(this);c={};this.nN=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.sF,c.endseeking=this.xF,c.internalAbandon=this.BF,c.internalaudioformatchange=this.Fw,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Nw,c.liveviewshift=this.SU,c.playbackstalledatstart=this.kW,c.progresssync=this.AV,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.tA,
c.SEEK_TO=this.ZV,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onDompaused=this.onDompaused,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.pV,c.statechange=this.eN,c.connectionissue=this.Hw,c.newelementrequired=this.HM,c.heartbeatparams=this.Kw,c.videoelementevent=this.MF,c.drmoutputrestricted=this.onDrmOutputRestricted,c.requestmediasource=this.MV,c.signatureexpired=this.fW,c.nonfatalerror=this.gV,c);this.Zn=new g.JC(this);g.H(this,this.Zn);c=
10;g.zE(this.Y)&&(c=3);KE(this.Y)&&(c=g.S(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Sw=new WS(c,function(f){f!==g.uM(d,f.getPlayerType())&&f.dispose()});
g.H(this,this.Sw);this.LD=this.Ty=-1;this.bB=new g.I(this.template.resize,16,this.template);g.H(this,this.bB);gKa(this);this.pd=new LS(this.Ta,this.Y,this.tb);this.Yt=new nS(this);g.H(this,this.Yt);QDa(this.Y.deviceParams.c);this.events.T(this.Ta,g.Vy("appapi"),this.XT);this.events.T(this.Ta,g.Wy("appapi"),this.ZT);this.events.T(this.Ta,g.Vy("appad"),this.mM);this.events.T(this.Ta,g.Wy("appad"),this.mM);this.events.T(this.Ta,g.Vy("appprogressboundary"),this.zV);this.events.T(this.Ta,g.Wy("applooprange"),
this.cB);this.events.T(this.Ta,"presentingplayerstatechange",this.Nh);this.events.T(this.Ta,"resize",this.NV);this.template.Ea(Og(a));this.events.T(this.Ta,"offlineslatestatechange",this.iV);this.mH=hKa(this,this.template.element);g.H(this,this.mH);this.Y.Yj&&(a=SCa()?new LCa(this.Y,this.Ta):void 0,this.Gi=a);this.Y.jb&&g.EM("ux",g.lQ);OX(this).isValid()&&(g.ty()&&OX(this).Ba.push("remote"),PX(this),!this.Y.N("html5_delay_initial_loading")&&QX(this)&&(this.Y.fh||this.Y.Id)&&WR(this.tb));this.Qb.tick("fs");
iKa(this);this.Ic=null;this.Y.jb&&Uxa(this.Vc);g.vE(this.Vc.J.V())&&PM(this.Vc,"music");g.kE(this.Vc.J.V())&&PM(this.Vc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.cy(new g.aw("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");c=g.O("web_player_sentinel_yt_experiments_sync");a!==c&&g.cy(new g.aw("b/195699950",{yt:a,player:c}));this.DO=jKa(this);if(a=g.S(this.Y.experiments,"html5_block_pip_safari_delay"))this.PD=new g.I(this.yJ,
a,this),g.H(this,this.PD);this.Y.N("embeds_enable_pem_cookie_blocking_killswitch")||(ou=this.Y.Ka);a=g.S(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.hN=new g.Xh(a),g.H(this,this.hN),this.events.T(this.hN,"tick",function(){d.iN&&kKa.Cn(d.iN);d.iN=kKa.Po("apit")}));
this.ma()};
jKa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.sb||a.tb).Rb.md("player.exception",g.YC({n:c.name,m:c.message}))}
dy.subscribe("handleError",b);ut.push(b);return function(){dy.unsubscribe("handleError",b);var c=ut.indexOf(b);-1!==c&&ut.splice(c,1)}};
fKa=function(a){var b=new FF(a.Y,a.config.args);b=a.Pl(1,b);b.setPlaybackRate(a.Y.i?1:lKa(a,Number(g.ry("yt-player-playback-rate"))||1));Fx(b,a.XC,a);return b};
mKa=function(a,b){if(a.tb!==b){a.N("html5_skip_setPresenting")&&(b.getVideoData().autonavState=a.tb.getVideoData().autonavState);Gx(a.tb,a.XC,a);var c=a.tb.getPlaybackRate();a.tb.dispose();a.tb=b;a.tb.setPlaybackRate(c);Fx(b,a.XC,a);PX(a)}};
eKa=function(a){var b="",c=UDa(a);0===c.indexOf("//")&&(c=a.Y.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 MM(a.Ta,b);nKa(a,b);return b};
nKa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
oKa=function(a,b){var c=a.isVideoInfoVisible();a.dj||(a.dj=new mT(a.Ta),g.H(a,a.dj),g.sM(a.Ta,a.dj.element,4));g.pK(a.dj,b);SX(a)&&c!==b&&oM(a.Vc).QG();a=a.sb;b&&a&&a.Ca("sfn","1",!0)};
TX=function(a){a.ra=a.Y.deviceHasDisplay?bS.pop()||new g.XM(g.ch("VIDEO")):new g.XM(g.ch("AUDIO"));g.H(a,a.ra);a.sb&&a.sb.setMediaElement(a.ra);try{a.Y.ob?(a.au&&a.events.qc(a.au),a.au=a.events.T(a.ra,"volumechange",a.aV)):(a.ra.Ft(a.gg.muted),a.ra.setVolume(a.gg.volume/100))}catch(d){a.Ne("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.Ex(a.Zn);pKa(a);var b=a.template;b.Lb=a.ra.xe();b.Dz=!1;b.Lb.parentNode||g.fh(b.bv,b.Lb,0);b.LA=
new g.Dm(0,0,0,0);YDa(b);gT(b);g.L(b.Lb,"video-stream");g.L(b.Lb,g.eT.MAIN_VIDEO);var c=b.app.V();c.Sg&&b.Lb.setAttribute("data-no-fullscreen","true");c.Zc&&(b.Lb.setAttribute("webkit-playsinline",""),b.Lb.setAttribute("playsinline",""));c.Dl&&b.Lb&&b.T(b.Lb,"click",b.Lb.play,b.Lb);try{a.ra.Pr()}catch(d){a.Ne("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
WX=function(a,b){if(a.sb!==b){a.ma("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.sb&&(c=a.sb.getPlayerState(),a.ma(),QM(a.Vc,3),UX(a,"cuerangesremoved",a.sb.Wl()),a.Yt&&!b.isGapless()&&a.sb.isGapless()&&a.ra&&a.ra.stopVideo(),qKa(a));1===b.getPlayerType()&&mKa(a,b);rKa(a,b);a.sb=b;a.ra&&b.setMediaElement(a.ra);Fx(b,a.nN,a);if(b.Qz())VX(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.yJ(c,b.getPlayerState())&&
a.eN(new g.jH(b.getPlayerState(),c));if(b.ym.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ta.Oa("onPlaybackQualityChange",c.quality);UX(a,"cuerangesadded",a.sb.Wl());c=b.getPlayerState();g.T(c,2)?sKa(a):g.T(c,8)&&b.playVideo();a.ma()}}};
sKa=function(a){if(!tKa(a)){var b=a.tb.ld();b&&(b=b.yv(),b instanceof Promise&&b.catch(function(){}));
XX(a,CJ(a.zb()))}};
pKa=function(a){var b=a.ra;OC()?a.Zn.T(b,"webkitpresentationmodechanged",a.WV):NC()&&(a.Zn.T(b,"enterpictureinpicture",function(){a.Gt(!0)}),a.Zn.T(b,"leavepictureinpicture",function(){a.Gt(!1)}));
rE&&(a.Zn.T(b,"webkitbeginfullscreen",function(){a.Ri(3)}),a.Zn.T(b,"webkitendfullscreen",function(){a.Ri(0)}))};
rKa=function(a,b){var c,d=b.getPlayerType();b!==a.tb&&b!==a.Xt[d]&&(null===(c=a.Xt[d])||void 0===c?void 0:c.dispose(),a.Xt[d]=b)};
YX=function(a,b){a.ma("release presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);b!==a.tb?WX(a,a.tb):a.N("html5_skip_setPresenting")||qKa(a)};
qKa=function(a){a.ma();var b;if(b=a.Xc)b=a.ra,b=!!b&&b===a.Xc.ra;b&&(a.Cg(),TX(a));a.sb&&(a.sb.Cg(),Gx(a.sb,a.nN,a),a.N("html5_skip_setPresenting")&&1!==a.sb.getPlayerType()&&a.sb.dispose());a.sb=null;a.ma()};
g.uM=function(a,b){var c;return b?1===b?a.tb:a.getVideoData().enableServerStitchedDai&&2===b?!a.N("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Xt[2]||a.sb:a.sb:a.N("html5_skip_setPresenting")&&b===(null===(c=a.sb)||void 0===c?void 0:c.getPlayerType())?a.sb:a.Xt[b]||null:a.sb};
ZX=function(a,b){return a.Sd(b)?a.tb:b};
$X=function(a,b){var c=a.sb;return c&&b===a.tb&&a.Sd(b)&&a.Sd(c)?c:b};
uKa=function(a){if(!SX(a)){var b=RM(a.Vc);b&&!b.created&&OM(a.Vc)&&(a.ma(),b.create())}};
vKa=function(a){a.ma();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.Vc;d.RJ();PM(d,"attribution",!1,!0);PM(d,"embed");PM(d,"inline_preview");PM(d,"kids");PM(d,"remote");PM(d,"miniplayer");PM(d,"music");PM(d,"captions",!0);PM(d,"unplugged");PM(d,"ypc",!1,!0);PM(d,"ypc_clickwrap",!1,!0);PM(d,"yto",!1,!0);PM(d,"webgl",!1,!0);d.B&&c?d.J.Pd("endscreen"):PM(d,"endscreen");d.B&&c?(d.J.Pd("annotations_module"),d.J.Pd("creatorendscreen")):(d.vD(),PM(d,"creatorendscreen",!0));d.SJ();Txa(d);c&&lG(b)?a.gF.T(a.Ta,
"presentingplayerstatechange",a.rV):Sxa(a.Vc);a.Ta.ea("videoready",b)};
OX=function(a){return a.tb.getVideoData()};
QX=function(a){a=OX(a);a.isValid();return lG(a)};
iKa=function(a){a.ma();a.zD();var b=a.config.args;TX(a);var c=OX(a);a.Ta.Oa("onVolumeChange",a.gg);if(b&&yM(b)){var d=HE(a.Y);d&&!a.og&&(b.fetch=0);var e=g.kE(a.Y);e&&!a.og&&(b.fetch=0);aY(a,b);g.kE(a.Y)&&a.Qb.tick("ep_pr_s");if(d&&!a.og)bY(a);else if(e&&!a.og)cY(a);else if(!c.isValid())a.playlist.onReady(function(){dY(a)})}WX(a,a.tb);
g.T(a.tb.getPlayerState(),128)||(b=Goa(a.Y.deviceHasDisplay),"fmt.noneavailable"===b?a.Ne("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ne(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&QX(a)&&(a.Y.fh||a.Y.Id)?eY(a):g.ry("yt-player-playback-on-reload")?(g.Wv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),vpa(!1),eY(a)):RE(a.Y)||wKa(a),g.JE(a.Y)||"MWEB"===a.Y.deviceParams.c?(vu(xu(),function(){fY(a)}),vu(xu(),function(){Nwa()})):
(fY(a),Nwa()),a.ma())};
fY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Aa||"";g.YL(b,a.Y,g.aM(c))}};
wKa=function(a){a.ma();a.Ta.ea("initializingmode");a.bl(2);PM(a.Vc,"remote");a.Y.N("player_cued_miniplayer_module_killswitch")||PM(a.Vc,"miniplayer");a.ma()};
eY=function(a){a.ma();if(g.T(a.tb.getPlayerState(),128))return!1;QX(a)&&a.Y.Id&&(bS.length&&a.ww?(gM(a,{muted:!1,volume:a.gg.volume},!1),gY(a,!1)):bS.length||a.gg.muted||(gM(a,{muted:!0,volume:a.gg.volume},!1),gY(a,!0)));var b=a.tb.getVideoData();b.jM&&gM(a,{muted:!0,volume:a.gg.volume},!1);hY(a,1,b,!1);a.Ta.ea("initializingmode");WX(a,a.tb);a.bl(3);if(!(b=!a.Y.ij)){if(b=a.Xc)b=a.ra,b=!!b&&b===a.Xc.ra;b=b&&a.fL}b&&(a.Cg(),TX(a),a.tb.setMediaElement(a.ra));CX(a.tb);if(g.T(a.tb.getPlayerState(),128))return!1;
XX(a,3);return a.fL=!0};
SX=function(a){a=oM(a.Vc);return!!a&&a.loaded};
xKa=function(a,b){if(!a.Sb)return!1;var c=.001*a.Sb.startTimeMs-1;a=.001*a.Sb.endTimeMs;return vg(b,c)||vg(b,a)||b>=c&&b<=a};
yKa=function(a){g.T(a.tb.getPlayerState(),64)&&OX(a).isLivePlayback&&5E3>a.Sb.startTimeMs||a.tb.seekTo(.001*a.Sb.startTimeMs,{Ud:"application_loopRangeStart"})};
lKa=function(a,b){var c=a.Ta.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};
iY=function(a,b,c){if(a.Sd(c)){c=c.getVideoData();if(a.Ic)c=b;else{a=a.pd;for(var d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Bc===e.Bc){b+=e.Cc/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Bc===e.Bc)break;var f=e.Cc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Wc/1E3;else break}c=d}return c}return b};
zKa=function(a,b){var c;return 3===a.getPresentingPlayerType()?CJ(oM(a.Vc).Bd):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.Ic)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Ty:-1:2!==b||a.Sd()?a.Ty:a.LD};
AKa=function(a){if(g.zE(a.Y))return!1;var b=g.qM(a.vb()),c="none"===a.ra.getStyle("display")||0===Ag(a.ra.getSize()),d=hT(a.template),e=a.sb.getVideoData(),f=g.tE(a.Y)||g.vE(a.Y);e=e.Un();a=!d||b||f||e||a.Y.Db;return c&&!a};
PX=function(a){a.ma();jY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.UC={};a.NA={};a.Dt=[];var b=a.Qb;if(b.i){var c=b.i;c.i={};c.ev={}}b.u=!1;a.Ic?(b=a.Ic,a=a.tb,a.getPlayerType(),b.ma(),CS(b,!1),ES(b),wDa(b),b.Da=a):(b=a.pd,a=a.tb,1!==a.getPlayerType()&&MS(b,"e.invalidParentVideoPlayerType"),b.ma(),RS(b,!1),TS(b),b.i=a)};
bY=function(a){var b=BKa();if(b)if(!b.list)a.Vr();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.zM(a.playlist).videoId||(b.index=a.playlist.index));BM(a.playlist,b);a.Xw&&kY(a,a.Xw)}else a.Xw=null};
cY=function(a,b){var c=(b?b:OX(a)).WO;a.Qb.tick("ep_pr_r");if(null!=c&&(BM(a.playlist,c),a.zG))a.playlist.onReady(function(){dY(a,b)})};
aY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Vr,a),(0,g.re)(a.playlist),a.playlist=null);b&&(a.og&&(b.fetch=0),a.playlist=new xM(a.Y,b),a.playlist.subscribe("error",a.Vr,a))};
lY=function(a,b,c,d){b in a.UC||(c=new g.Ty(c,d,{id:b,priority:2,namespace:"appad"}),a.tb.addCueRange(c),a.UC[b]=c)};
FKa=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=My(Ny(c,CKa),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=My(Ny(c,DKa),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=My(Ny(c,EKa),c,f,"Nielsen OCR URL")}g.kv(c,void 0,e)});
return!0};
XX=function(a,b){a.ma();if(a.sb){var c=a.sb.getPlayerType();if(2===c&&!a.Sd()){a.LD!==b&&(a.LD=b,a.Ta.Oa("onAdStateChange",b));return}if(2===c&&a.Sd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Ty!==b&&(a.Ty=b,a.Ta.Oa("onStateChange",b))};
hY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Bc;var f=a.Sw.get(e);if(!f)return null;a.Sw.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f===g.uM(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Yu(f);return f};
mY=function(a,b,c){c=g.uM(a,c);b&&c===a.tb&&(c.getVideoData().Bf=!0)};
nY=function(a,b,c){c=void 0===c?1:c;a.ma();if(b.isValid()){var d=a.Pl(c,b);a.cancelPlayback(4,c);WX(a,d);2===c&&a.tb.xt(b.clientPlaybackNonce,b.Nb||"",b.breakType||0,b.ye);1===c&&(a.bl(1),wKa(a));a.ma()}else a.ma(),b.dispose(),(0,g.re)(g.uM(a,c))};
GKa=function(a,b,c,d,e){b=hxa(b,c,d,e);(c=g.kE(a.Y)&&!a.Y.K)&&!a.og&&(b.fetch=0);aY(a,b);g.kE(a.Y)&&a.Qb.tick("ep_a_pr_s");if(c&&!a.og)c=OX(a),Gxa(c,b).then(function(f){a.zG=!0;cY(a,f)});
else a.playlist.onReady(function(){dY(a)});
g.kE(a.Y)&&a.Qb.tick("ep_a_pr_r")};
dY=function(a,b){var c=g.kE(a.Y)&&!a.Y.K,d=c&&b?b:g.zM(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Vk&&(a.Y.fh||a.Y.Id)||!a.bq?(b=b.Bf,d=a.Xn(d,1),b&&mY(a,d)):nY(a,d,1));g.kE(a.Y)&&a.Qb.tick("ep_p_l");a.zG=!1;a.Ta.Oa("onPlaylistUpdate")};
tKa=function(a){if(a.playlist&&g.qE(a.Y)&&a.Dv()){var b=a.Y.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
kY=function(a,b){var c=g.Ja(b);c?((b=BKa())&&b.list&&c(),a.Xw=null):a.Xw=b};
BKa=function(){var a=g.Ja("yt.www.watch.lists.getState");return a?a():null};
oY=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Sy.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Sy.AD_MARKER:(b.style=Sy.TIME_MARKER,b.color=e),b.visible=!0);a.Pu([new g.Ty(1E3*c,1E3*d,b)],1);return!0};
HKa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Dt.push({id:b,lY:c,kY:d}),!1;e=f-a.getCurrentTime();return oY(a,b,c-e,d-e)};
IKa=function(a,b){a.Dt=g.Cp(a.Dt,function(f){return f.id!==b});
for(var c=a.tb.Wl(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.tb.removeCueRange(e),UX(a,"cuerangesremoved",[e]),!0}return!1};
JKa=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)};
gM=function(a,b,c){a.Y.X&&(a.gg=b,b.muted||gY(a,!1),c&&a.Y.storeUserVolume&&!a.Y.ob&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.qy("yt-player-volume",c),g.qy("yt-player-volume",c,2592E3))),KKa(a),c=g.Ej&&a.ra&&!a.ra.Df(),a.Y.ob&&!c||a.Ta.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
KKa=function(a){var b=a.getVideoData();if(!b.Sg){b=a.Y.ob?1:qsa(b);var c=a.ra;c.Ft(a.gg.muted);try{c.setVolume(a.gg.volume*b/100)}catch(d){g.cy(new g.aw("b183742307","multiplier: "+b+", volume: "+a.gg.volume))}}};
gY=function(a,b){b!==a.ww&&(a.ww=b,a.Ta.Oa("onMutedAutoplayChange",b))};
pY=function(a){var b=zx(!0);return b&&(b===a.template.element||a.ra&&b===a.ra.xe())?b:null};
MKa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.N("lock_fullscreen2")||a.Y.C)&&c&&c.lock&&(!g.Ej||!LKa))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.Ow||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ka);a.Ow=!0}}else a.Ow&&(a.Ow=!1,c.unlock())};
UX=function(a,b,c){a.Ta.ea(b,c);var d=g.zE(a.Y)||g.sE(a.Y)||g.tE(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.Oa(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
qY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.uM(a,e);if(!h||(2!==h.getPlayerType()||a.Sd(h)||f)&&!g.bG(h.getVideoData()))3===a.getPresentingPlayerType()?oM(a.Vc).Uk("control_seek",b,c):(h===a.tb&&a.Sb&&!xKa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
VX=function(a,b,c,d){c&&(a.Cg(),TX(a));c=g.uM(a);c.md(new g.ZC("staleconfig",!1,{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?MF(e)&&g.LE(a.Y)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Sa&&(f.vvt=e.Sa);e.X&&(f.vss_credentials_token=e.X,f.vss_credentials_token_type=e.Wh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Zg&&(f.force_gvi=e.Zg);f.autoplay=1;f.reload_count=e.Db+1;f.reload_reason=
b;e.JC&&(f.unplugged_partner_opt_out=e.JC);e.Zc&&(f.ypc_is_premiere_trailer=e.Zc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Ic&&uKa(a)};
NKa=function(a,b){OX(a).autonavState=b;g.qy("yt-player-autonavstate",b);a.Ta.ea("autonavchange",b)};
OKa=function(a){var b=a.getVideoData().Sg,c=a.Y.Db,d=a.isInline()&&!a.getVideoData().ZE,e=a.ra;b||c||d?e.BD():(e.DD(),gM(a,a.gg))};
hKa=function(a,b){return a.Y.N("html5_enable_embedded_player_visibility_signals")&&g.kE(a.Y)?new dT(b):null};
jY=function(a){var b=RM(a.vb());b&&b.created&&(a.ma(),b.destroy())};
PKa=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]=Lm(a,d);b.hidden=!!a.hidden};
gKa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.Gj&&d&&b.i?Ju()||b.Ka?(g.Wv("embedsStorageAccessNotChecked",{isIosWebview:Ju(),isPemPlayer:b.Ka}),a.sx=!1):c.hasStorageAccess().then(function(e){g.Wv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.sx=!e},function(e){g.Wv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.cy(Error("Embeds ITP Error: "+e));a.sx=!1}):a.sx=!1};
rY=function(a,b){var c=void 0;g.zE(a.Y)&&It(b)&&Ht(b)&&(a=a.getVideoData().nf())&&(c={Authorization:"Bearer "+a});g.kv(b,void 0,void 0,c)};
sY=function(a,b){b.forEach(function(c){rY(a,c)})};
UDa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
QKa=function(a){var b;a=null===(b=hM(a.vb()))||void 0===b?void 0:b.Ev();if(!(a instanceof g.sN))return null;a=a.IK();return(null===a||void 0===a?void 0:a.S)||null};
tY=function(a){this.controller=a};
uY=function(a){this.tD=a};
vY=function(a,b,c){this.tD=a;this.gh=b;this.Fi=c};
RKa=function(a,b,c){var d=a.tD();switch(b.type){case "SKIP":gva(d,a.gh,a.Fi,c)}};
wY=function(){};
xY=function(){};
yY=function(){};
zY=function(a,b){this.ip=a;this.Ua=b};
AY=function(a){this.J=a};
BY=function(a,b){this.Ph=a;this.Ua=b};
TKa=function(a){g.E.call(this);this.i=a;this.kQ=SKa(this)};
SKa=function(a){var b=new eK(a.i.Mc);g.H(a,b);a=g.q([new tY(a.i.mR),new zY(a.i.ip,a.i.Ua),new AY(a.i.J),new BY(a.i.Ph,a.i.Ua),new vY(a.i.zT,a.i.gh,a.i.Fi),new uY(a.i.BR),new xY,new yY,new wY]);for(var c=a.next();!c.done;c=a.next())c=c.value,Zua(b,c),$ua(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())cK(b,c.value,function(){});
return b};
CY=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(!Dy(a.Ga,c.value))return!1;return!0};
UKa=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}};
WKa=function(a){var b;return(null===(b=VKa.get(a))||void 0===b?void 0:b.Kt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
EY=function(a,b){var c={type:b.qb,controlFlowManagerLayer:XKa.get(b.ib)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Vb&&(c.entryTriggerType=b.Vb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Vb)c.debugData.slotEntryTriggerData=DY(a);a=b.uc;c.debugData.fulfillmentTriggerData=[];a=g.q(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(DY(d.value));b=b.tc;c.debugData.expirationTriggerData=
[];b=g.q(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(DY(a.value))}return c};
YKa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:XKa.get(b.ib)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
DY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Ig&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Ig);null!=a.Ie&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Ie);return c};
ZKa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.pn(d||[],function(e){return EY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
return b};
GY=function(a,b){return function(c){return $Ka(FY(a),b.slotId,b.qb,b.slotPhysicalPosition,b.ib,b.Vb,b.uc,b.tc,c.layoutId,c.layoutType,c.ib)}};
$Ka=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:EY(a,{slotId:b,qb:c,slotPhysicalPosition:d,ib:e,Vb:f,uc:h,tc:l,Ga:new wH([])}),layoutData:YKa(a,{layoutId:m,layoutType:n,ib:p,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],pc:new Map,Ga:new wH([]),Dc:{}})}}};
HY=function(a){this.Na=a;this.i=.1>Math.random()};
FY=function(a){var b;(b=a.i)||(a=a.Na.get(),b=a.J.V().N("html5_force_debug_data_for_client_tmp_logs")||a.J.V().N("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
IY=function(a,b,c,d){g.E.call(this);this.Jd=b;this.u=c;this.Na=d;this.i=a(this,this,this,this,this);g.H(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
JY=function(a,b){a.Jd.add(b);a.Na.get().J.V().N("html5_not_register_disposables_when_core_listens")||g.H(a,b)};
aJ=function(a,b){dJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.nh(b)};
aLa=function(a,b){a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Li(b)};
bJ=function(a,b){dJ(a.u,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.df(b)};
zH=function(a,b){dJ(a.u,"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)};
LY=function(a,b,c){R(c,b,void 0,void 0,c.jp);KY(a,b,!0)};
cLa=function(a,b,c){if(MY(a.i,b))if(NY(a.i,b).C=c?"filled":"not_filled",null===c){OY(a.u,"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.Kj(b);KY(a,b,!1)}else{OY(a.u,"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.Lj(b);if(MY(a.i,b))if(NY(a.i,b).D)KY(a,b,!1);else{OY(a.u,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!NY(f,b))throw new PY("Unknown slotState for onLayout");
if(!f.Od.mm.get(b.qb))throw new PY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.qb);if(g.Xb(c.Cd)&&g.Xb(c.Qc)&&g.Xb(c.Pc)&&g.Xb(c.Rc)&&g.Xb(c.Uc))throw new PY("Layout has no exit triggers.");QY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Cd);QY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);QY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);QY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);QY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){a.xf(b,
c,n);KY(a,b,!0);return}NY(a.i,b).I=!0;try{var h=a.i,l=NY(h,b),m=h.Od.mm.get(b.qb).get().Qe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new PY("Already had LayoutRenderingAdapter registered for slot");l.B=m;RY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Cd);RY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);RY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);RY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);RY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){SY(a,
b,!0);KY(a,b,!0);a.xf(b,c,n);return}OY(a.u,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Jd);for(d=e.next();!d.done;d=e.next())d.value.Ji(b,c);SY(a,b,!1);bLa(a,b)}else TY(a.Na.get())&&R("slot is unscheduled after been fulfilled.",b,c)}};
UY=function(a,b,c){OY(a.u,"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.Ji(b,c)};
eJ=function(a,b,c){a=g.q(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.Ki(b,c)};
VY=function(a,b,c){OY(a.u,"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)};
cJ=function(a,b,c,d){OY(a.u,WKa(d),b,c);a=g.q(a.Jd);for(var e=a.next();!e.done;e=a.next())e.value.Sc(b,c,d)};
SY=function(a,b,c){MY(a.i,b)&&(NY(a.i,b).I=!1,c?a.Na.get().J.V().N("html5_enable_deferred_triggers_on_error")?WY(a,dLa(a.i,b)):TY(a.Na.get())&&R("Ignore deferred triggers due to error",b):WY(a,dLa(a.i,b)))};
WY=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):UKa(f.category,l)-UKa(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,MY(a.i,d.slot))if(NY(a.i,d.slot).I)NY(a.i,d.slot).S.push(d);else{eLa(a.u,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(fLa);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))&&gLa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&hLa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&iLa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
jLa(a,c)};
gLa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&XY(a.i,d.slot)&&kLa(a,d.slot,d.layout,c)};
hLa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())KY(a,c.value.slot,!1)};
iLa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(NY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(dJ(a.u,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Bv(c.slot))}};
jLa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;dJ(a.u,"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.Li(c.slot);try{var f=a.i,h=c.slot,l=NY(f,h);if(!l)throw new YY("Got enter request for unknown slot");if(!l.u)throw new YY("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new YY("Tried to enter a slot from stage: "+l.i);if(ZY(l))throw new YY("Got enter request for already active slot");
for(var m=g.q($Y(f,h.qb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&ZY(p))throw new YY("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){R(r,c.slot,aZ(a.i,c.slot),void 0,r.jp);KY(a,c.slot,!0);continue}c=NY(a.i,c.slot);"scheduled"!==c.i&&bZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Ry()}};
bLa=function(a,b){var c;MY(a.i,b)&&ZY(NY(a.i,b))&&aZ(a.i,b)&&!XY(a.i,b)&&(OY(a.u,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=aZ(a.i,b))&&void 0!==c?c:void 0),a=NY(a.i,b),"entered"!==a.i&&bZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))};
kLa=function(a,b,c,d){if(MY(a.i,b)){var e=a.u,f;var h=(null===(f=VKa.get(d))||void 0===f?void 0:f.Bt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";OY(e,h,b,c);a=NY(a.i,b);"rendering"!==a.i&&bZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.hf(c,d)}};
KY=function(a,b,c){if(MY(a.i,b)){a:switch(NY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(NY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(NY(a.i,b).D=!0,!c))return;if(ZY(NY(a.i,b)))NY(a.i,b).D=!0,lLa(a,b,c);else{a:switch(NY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)NY(a.i,b).D=!0,MY(a.i,b)&&(dJ(a.u,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=NY(a.i,b),b.C="fill_cancel_requested",b.K.hD());else{c=
aZ(a.i,b);dJ(a.u,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=NY(a.i,b);var e=b.Vb,f=d.xa.get(e.triggerId);f&&(f.Zi(e),d.xa.delete(e.triggerId));e=g.q(b.uc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Z.get(f.triggerId);h&&(h.Zi(f),d.Z.delete(f.triggerId))}e=g.q(b.tc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.X.get(f.triggerId))h.Zi(f),d.X.delete(f.triggerId);null!=d.layout&&(e=d.layout,cZ(d,e.Cd),cZ(d,e.Qc),cZ(d,e.Pc),cZ(d,e.Rc),cZ(d,e.Uc));d.K=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;NY(d,b)&&(d=$Y(d,b.qb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);dJ(a.u,"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.Mi(b),c&&d.Ki(b,c)}}}};
lLa=function(a,b,c){if(MY(a.i,b)&&ZY(NY(a.i,b))){var d=aZ(a.i,b);if(d&&XY(a.i,b))kLa(a,b,d,c?"error":"abandoned");else{dJ(a.u,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=NY(a.i,b);if(!e)throw new YY("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&bZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new YY("Cannot exit slot because adapter is not defined");e.u.Sy()}catch(f){R(f,b,void 0,void 0,f.jp)}}}};
mLa=function(a){this.slot=a;this.xa=new Map;this.Z=new Map;this.X=new Map;this.oa=new Map;this.B=this.layout=this.u=this.K=void 0;this.I=this.D=!1;this.S=[];this.i="not_scheduled";this.C="not_filled"};
ZY=function(a){return"enter_requested"===a.i||a.isActive()};
PY=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.jp=c;this.args=[];b&&this.args.push(b)};
YY=function(a,b,c){c=void 0===c?!1:c;Wa.call(this,a);this.jp=c;this.args=[];b&&this.args.push(b)};
dZ=function(a,b,c,d,e,f){g.E.call(this);this.Od=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Na=f;this.i=new Map};
$Y=function(a,b){return(a=a.i.get(b))?a:new Map};
NY=function(a,b){return $Y(a,b.qb+"_"+b.slotPhysicalPosition).get(b.slotId)};
nLa=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};
MY=function(a,b){return null!=NY(a,b)};
dLa=function(a,b){a=NY(a,b);b=[].concat(g.ma(a.S));Yb(a.S);return b};
XY=function(a,b){a=NY(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};
aZ=function(a,b){if(!eZ(a.Na.get()))return b=NY(a,b),null!=b.layout?b.layout:null;(a=NY(a,b))?null!=a.layout&&!a.layout&&R("Unexpected empty layout",b):R("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null};
fZ=function(a,b,c){if(g.Xb(c))throw new YY("No "+oLa.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.Od.Uh.get(d.triggerType))throw new YY("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
QY=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Od.Uh.get(d.triggerType))throw new PY("No trigger adapter registered for "+oLa.get(b)+" trigger of type: "+d.triggerType);};
RY=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.Od.Uh.get(e.triggerType);f.Pi(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
cZ=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.Zi(c),a.oa.delete(c.triggerId))}};
bZ=function(a,b,c){R("Slot stage was "+b+" when calling method "+c,a)};
pLa=function(a){return gZ(a.uq).concat(gZ(a.Uh)).concat(gZ(a.Vl)).concat(gZ(a.Hm)).concat(gZ(a.mm))};
gZ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ai&&b.push(c);return b};
hZ=function(a){g.E.call(this);this.i=a;this.u=qLa(this)};
qLa=function(a){var b=new IY(function(c,d,e,f){return new dZ(a.i.Od,c,d,e,f,a.i.Na)},new Set(pLa(a.i.Od).concat(a.i.listeners)),a.i.ph,a.i.Na);
g.H(a,b);return b};
iZ=function(a){g.E.call(this);var b=this;this.u=a;this.i=null;g.te(this,function(){(0,g.re)(b.i);b.i=null})};
Y=function(a){return new iZ(a)};
rLa=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)};
sLa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
vLa=function(a,b,c,d,e,f,h){b=tLa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof YY?b:uLa(a,d,e,b,c);return a instanceof YY?a:[a]};
wLa=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)};
ALa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,jZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return xLa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Vq:b.Vq},h=f.next()){b.Vq=h.value;h={};for(var l=g.q(b.Vq.RC),m=l.next();!m.done;h={Om:h.Om},m=l.next())h.Om=m.value,m=function(n,p){return function(r){return n.Om.TJ(r,p.Vq.instreamVideoAdRenderer.elementId,n.Om.fJ)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Om.Qr?a.push(yLa(c,d,h.Om.gJ,e,b.Vq.instreamVideoAdRenderer.elementId,h.Om.adSlotLoggingData,m)):a.push(zLa(c,d,e,b.Vq.instreamVideoAdRenderer.elementId,h.Om.adSlotLoggingData,m))}return a};
jZ=function(a,b,c){if(b=BLa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=CLa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Kz=c)}else R("InstreamVideoAdRenderer without externalVideoId")}};
BLa=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};
xLa=function(a){if(void 0===a.instreamVideoAdRenderer)return R("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.RC),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.TJ)return!1;if(void 0===c.fJ)return R("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Kz||void 0===c.Qr||a.Kz!==c.Qr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Qr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return R("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Kz,"matching APSR kind":c.Qr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Qr&&void 0===c.gJ)return R("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
CLa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Kz:void 0,adVideoId:b,RC:[]});return a.get(b)};
kZ=function(a,b,c,d,e,f,h){d?CLa(a,d).RC.push({gJ:b,Qr:c,fJ:e,adSlotLoggingData:f,TJ:h}):R("Companion AdPlacementSupportedRenderer without adVideoId")};
lZ=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};
mZ=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F,G,J,U,K,X,la,Ea,qb=(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),ib=[].concat(g.ma((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.ma((null===qb||void 0===
qb?void 0:qb.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===(v=a.playbackCommands)||void 0===v?void 0:v.progressCommands,dda:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(z=a.playbackCommands)||void 0===z?void 0:z.fullscreenCommands,activeViewViewableCommands:null===(C=a.playbackCommands)||void 0===
C?void 0:C.activeViewViewableCommands,activeViewMeasurableCommands:null===(F=a.playbackCommands)||void 0===F?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null===(U=null===(J=a.playbackCommands)||void 0===J?void 0:J.activeViewTracking)||void 0===U?void 0:U.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null===
(X=null===(K=a.playbackCommands)||void 0===K?void 0:K.activeViewTracking)||void 0===X?void 0:X.activeViewAudioMeasurableCommands,endFullscreenCommands:null===(la=a.playbackCommands)||void 0===la?void 0:la.endFullscreenCommands,abandonCommands:null===(Ea=a.playbackCommands)||void 0===Ea?void 0:Ea.abandonCommands,completeCommands:ib}};
ELa=function(a,b,c,d,e,f,h){return function(l,m){return DLa(a,m.slotId,l,f,function(n,p){n=h(n);return nZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new XH(c),d],c.adLayoutLoggingData)})}};
HLa=function(a,b,c,d,e,f,h){if(!FLa(a))return new YY("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[GLa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=Jy(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ib:"core"},r=new oZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",pc:new Map,Cd:[r],Qc:[],
Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new YH(l)]),Dc:n(p)}})]};
FLa=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};
KLa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!nta(a))return function(){return new YY("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=lZ(h);return 0>=l?function(){return new YY("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=ILa(m,c,d,function(r){var t=n(r),u=r.slotId;
r=mZ(h);u=Jy(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var v={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",ib:"core"},y=new oZ(e.i,d),z=new pZ(e.i,u),C=new qZ(e.i,u),F=new JLa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",pc:new Map,Cd:[y,F],Qc:[z],Pc:[],Rc:[C],Uc:[],ib:"core",Ga:new wH([new WH(h),new NH(b),new KI(l/1E3),new NI(r)]),Dc:t(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=HLa(a,c,p.slotId,d,e,m,n);return m instanceof YY?m:[p].concat(g.ma(m))}};
SLa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=LLa(u.slotId,c,b,e(u),d);h=u.HX;return u.KR};
else if(c.renderer.instreamVideoAdRenderer)l=function(u){var v=u.slotId;u=e(u);var y,z=c.config.adPlacementConfig,C=MLa(z),F=C.iK;C=C.lK;var G=c.renderer.instreamVideoAdRenderer;if(null===(y=null===G||void 0===G?void 0:G.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var J=NLa(G);y=Math.min(F+1E3*J.videoLengthSeconds,C);C=new EG(0,[J.videoLengthSeconds],y);var U=J.videoLengthSeconds,K=J.playerVars,X=J.instreamAdPlayerOverlayRenderer,
la=J.adVideoId,Ea=OLa(c),qb=J.pc;J=J.dJ;var ib=null===G||void 0===G?void 0:G.adLayoutLoggingData;G=null===G||void 0===G?void 0:G.sodarExtensionData;v=Jy(b.u.get(),"LAYOUT_TYPE_MEDIA",v);var Ab={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",ib:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",pc:qb,Cd:[new rZ(b.i)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new RH(d),new wI(U),new xI(K),new zI(F),new AI(y),X&&new SH(X),new NH(z),new PH(la),new OH(C),new FI(Ea),G&&new yI(G),new sI({current:null}),
new CI({}),new RI(J)].filter(PLa)),Dc:u(Ab),adLayoutLoggingData:ib}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=QLa(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 YY)return t;f.push.apply(f,g.ma(t))}}catch(u){return new YY(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:RLa(c)})}return f};
RLa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0};
LLa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=MLa(f),l=h.iK,m=h.lK;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={gO:l,hO:0,EX:n};h=h.map(function(t){return TLa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new EG(u,n,m);
return t(u)});
var r=h.map(function(t){return t.LR});
return{KR:ULa(c,a,l,r,f,OLa(b),d,m),HX:h.map(function(t){return t.GX})}};
TLa=function(a,b,c,d,e,f,h,l){var m,n,p=NLa(b.instreamVideoAdRenderer),r=c.gO,t=c.hO,u=Math.min(r+1E3*p.videoLengthSeconds,l);c.gO=u;c.hO++;c.EX.push(p.videoLengthSeconds);var v=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==v)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z,C,F=p.playerVars;2<=y.u&&(F.slot_pos=y.i);F.autoplay="1";F=p.videoLengthSeconds;
var G=p.playerVars,J=p.pc,U=p.dJ,K=p.instreamAdPlayerOverlayRenderer,X=p.adVideoId,la=null===(z=b.instreamVideoAdRenderer)||void 0===z?void 0:z.adLayoutLoggingData,Ea=null===(C=b.instreamVideoAdRenderer)||void 0===C?void 0:C.sodarExtensionData,qb=Jy(d.u.get(),"LAYOUT_TYPE_MEDIA",a),ib={layoutId:qb,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};y={layoutId:qb,layoutType:"LAYOUT_TYPE_MEDIA",pc:J,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:"adapter",Ga:new wH([new RH(h),new wI(F),new xI(G),new zI(r),new AI(u),new BI(t),
new sI({current:null}),K&&new SH(K),new NH(f),new PH(X),new OH(y),Ea&&new yI(Ea),v&&new QI(v),new CI({}),new RI(U)].filter(PLa)),Dc:e(ib),adLayoutLoggingData:la};F=KLa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{LR:y,GX:F}}};
NLa=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=Bt(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,pc:a.pings?FG(a.pings):new Map,dJ:Csa(a.pings)}};
OLa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
MLa=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{iK:b,lK:a}};
WLa=function(a,b,c,d,e,f,h,l){a=VLa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=Jy(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",ib:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",pc:r,Cd:[new sZ(b.i,n)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new EI(e),new NH(c)]),Dc:m(p)}});
return a instanceof YY?a:[a]};
YLa=function(a,b,c,d,e,f,h,l){a=XLa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=Jy(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=tZ(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,uZ(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=Jy(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=tZ(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,uZ(b,n,p))):r.imageOverlayAdContentRenderer?(r=Jy(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=uZ(b,n,p),n.push(new vZ(b.i,r)),n=tZ(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new PY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new PY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof YY?a:[a]};
aMa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new YY("Expected valid duration for AdActionInterstitialRenderer."):function(m){return ZLa(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 $La(a,n,e,function(p,r){var t=p.slotId;p=h(p);t=Jy(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return nZ(b,
t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new UH(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
bMa=function(a,b,c,d){if(!c.playerVars)return new YY("No playerVars available in AdIntroRenderer.");var e=Bt(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=Jy(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};return{Mq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",pc:new Map,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:"adapter",Ga:new wH([new DI({}),new NH(b),new sI({current:null}),new xI(e)]),Dc:f(l)},Xr:[new wZ(a.i,h)],yp:[],Ky:[],Jy:[]}}};
dMa=function(a,b,c,d,e,f,h,l){var m=lZ(e);if(!SI(e))return new YY("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new YY("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=ELa(a,b,e,f,c,d,h);return n instanceof YY?n:function(p){return cMa(b,p.slotId,c,m,mZ(e),h(p),n,l)}};
eMa=function(a,b,c,d,e,f,h){function l(p){return $La(a,p,d,m)}
function m(p,r){var t=p.slotId;p=h(p);t=Jy(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return nZ(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new VH(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 YY("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=xZ(b,p.slotId,c,n,r,new Map,t,l);r=new oI(p.PF);return{Mq:{layoutId:p.layoutId,layoutType:p.layoutType,pc:p.pc,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:p.ib,Ga:new wH([].concat(g.ma(p.Zu),[r])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Xr:[],yp:p.Pc,Ky:p.Rc,Jy:p.Uc,oh:p.oh}}};
iMa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var v=new EG(0,[t.qy]),y=fMa(t.playerVars,t.CN,l,p,v);u=m(u);var z=n.get(t.AB.externalVideoId);v=gMa(b,"core",t.AB,c,y,t.qy,f,v,u,z);return{layout:{layoutId:v.layoutId,layoutType:v.layoutType,pc:v.pc,Cd:v.Cd,Qc:v.Qc,Pc:v.Pc,Rc:v.Rc,Uc:v.Uc,ib:v.ib,Ga:v.Ga,Dc:v.Dc,adLayoutLoggingData:v.adLayoutLoggingData},xm:[]}}
var t=yZ(e);if(t instanceof PY)return new YY(t);if(r instanceof YY)return r;a=hMa(a,c,f,h,d,l.uf,r);return a instanceof YY?a:a.xm.concat(a.TF)};
yZ=function(a){if(!a.playerVars)return new PY("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 PY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Bt(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new PY("Expected valid length seconds in player vars"):
{AB:a,playerVars:b,CN:a.playerVars,qy:c}};
fMa=function(a,b,c,d,e){a.iv_load_policy=d;b=Bt(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){R(f)}c.cg&&(a.ctrl=c.cg);c.Gf&&(a.ytr=c.Gf);c.Ol&&(a.ytrcc=c.Ol);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Wh&&(a.vss_credentials_token_type=c.Wh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a};
lMa=function(a,b,c,d,e,f,h,l,m,n,p){b=jMa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=kMa(a,c,f,h),c instanceof YY?d=c:(f=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=Jy(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.tc.push(new zZ(a.i,h)),a=b({slotId:c.slotId,qb:c.qb,slotPhysicalPosition:c.slotPhysicalPosition,ib:c.ib,Vb:c.Vb,uc:c.uc,tc:c.tc},{slotId:f,layoutId:h}),d=a instanceof YY?a:{TF:{slotId:c.slotId,qb:c.qb,slotPhysicalPosition:c.slotPhysicalPosition,
Vb:c.Vb,uc:c.uc,tc:c.tc,ib:c.ib,Ga:new wH([new GI(a.layout)]),adSlotLoggingData:d},xm:a.xm})):d=hMa(a,c,f,h,d,l.uf,b);return d instanceof YY?d:d.xm.concat(d.TF)};
jMa=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=yZ(u.instreamVideoAdRenderer);if(u instanceof PY){r=new YY(u);break b}r.push(u.qy)}}if(r instanceof YY)p=r;else{t=0;u=[];for(var v=[],y=[],z=[],C=[],F=[],G=new tI({current:null}),J=[],U=g.q(d),K=U.next();!K.done;K=U.next())if(K=K.value,K.adIntroRenderer){K=bMa(b,c,K.adIntroRenderer,h);if(K instanceof YY){p=K;break a}K=K(n);u.push(K.Mq);v=[].concat(g.ma(K.Xr),
g.ma(v));y=[].concat(g.ma(K.yp),g.ma(y));K.oh&&(J=[K.oh].concat(g.ma(J)))}else if(K.instreamVideoAdRenderer){var X=yZ(K.instreamVideoAdRenderer);if(X instanceof PY){p=new YY(X);break a}var la=new EG(t,r);K=b;var Ea=X.AB,qb=fMa(X.playerVars,X.CN,f,m,la),ib=h(n),Ab=l.get(X.AB.externalVideoId);X=gMa(K,"adapter",Ea,c,qb,X.qy,e,la,ib,Ab);la=X.Qc;Ea.isCritical&&(la=[new wZ(K.i,X.layoutId)].concat(g.ma(la)));K={layoutId:X.layoutId,layoutType:X.layoutType,pc:X.pc,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:X.ib,Ga:X.Ga,
Dc:X.Dc,adLayoutLoggingData:X.adLayoutLoggingData};Ea=la;X=X.Pc;t++;u.push(K);v=[].concat(g.ma(Ea),g.ma(v));y=[].concat(g.ma(X),g.ma(y))}else if(K.adActionInterstitialRenderer){K=aMa(a,b,c,K.adActionInterstitialRenderer,e,t,h);if(K instanceof YY){p=K;break a}K=K(n);u.push(K.Mq);v=[].concat(g.ma(K.Xr),g.ma(v));y=[].concat(g.ma(K.yp),g.ma(y));K.oh&&(J=[K.oh].concat(g.ma(J)))}else if(K.instreamSurveyAdRenderer){if(void 0===p){p=new YY("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:K.instreamSurveyAdRenderer});break a}K=dMa(a,b,c,e,K.instreamSurveyAdRenderer,G,h,p);if(K instanceof YY){p=K;break a}K=K(n);u.push(K.Mq);K.oh&&J.push(K.oh);v=[].concat(g.ma(K.Xr),g.ma(v));y=[].concat(g.ma(K.yp),g.ma(y));z=[].concat(g.ma(K.Ky),g.ma(z));C=[].concat(g.ma(K.Jy),g.ma(C));F=[G].concat(g.ma(F))}else if(K.surveyTextInterstitialRenderer){K=eMa(a,b,c,e,K.surveyTextInterstitialRenderer,G,h);if(K instanceof YY){p=K;break a}K=K(n);u.push(K.Mq);K.oh&&J.push(K.oh);y=[].concat(g.ma(K.yp),
g.ma(y))}else{p=new YY("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={FX:u,Qc:v,Rc:z,Uc:C,Pc:y,Zu:F,xm:J}}}p instanceof YY?n=p:(z=n.slotId,r=p.FX,t=p.Qc,u=p.Pc,v=p.Rc,y=p.Zu,n=h(n),z=Jy(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),C={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",pc:new Map,Cd:[new sZ(b.i,z)],Qc:t,Pc:u,Rc:v,Uc:[],ib:"core",Ga:new wH([new uI(r)].concat(g.ma(y))),
Dc:n(C)},xm:p.xm});return n}};
nMa=function(a,b,c,d,e,f,h){if(!SI(c))return new YY("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=lZ(c);if(0>=l)return new YY("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new tI({current:null}),n=ELa(a,b,c,m,d,f,h);return mMa(a,d,f,l,e,function(p,r){var t=p.slotId,u=mZ(c);p=h(p);t=Jy(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var v={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"core"},y=n(t,r);
V(y.Ga,"metadata_type_fulfilled_layout")||R("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new NH(d),new LI(l),new NI(u),new OI(!0),m,new pI("LAYOUT_TYPE_SURVEY")];return{nT:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",pc:new Map,Cd:[new sZ(b.i,t)],Qc:[new pZ(b.i,r.layoutId)],Pc:[],Rc:[new qZ(b.i,r.layoutId)],Uc:[],ib:"core",Ga:new wH(u),Dc:p(v)},US:y}})};
AZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Na=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h};
ima=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,v,y,z,C,F=[];if(0===b.length)return F;b=b.filter(rLa);for(var G=new Map,J=new Map,U=g.q(b),K=U.next();!K.done;K=U.next())(K=K.value.renderer.remoteSlotsRenderer)&&K.hostElementId&&J.set(K.hostElementId,K);U=g.q(b);for(K=U.next();!K.done;K=U.next()){K=K.value;var X=oMa(a,G,K,d,e,f,h,J);X instanceof YY?R(X,void 0,void 0,{renderer:K.renderer,config:K.config.adPlacementConfig,kind:K.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):F.push.apply(F,
g.ma(X))}if(null===a.D||f&&!h.aK)return a=h.uf&&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),F.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}),F;c=c.filter(rLa);F.push.apply(F,g.ma(ALa(G,c,a.u.get(),a.D,d,a.Na.get())));F.length||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(z=null===(y=null===(v=b[0])||void 0===v?void 0:v.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===z?void 0:z.kind,renderer:null===
(C=b[0])||void 0===C?void 0:C.renderer});return F};
oMa=function(a,b,c,d,e,f,h,l){function m(v){return GY(a.B.get(),v)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData,u=h.aK&&"AD_PLACEMENT_KIND_START"===r;u=f&&!u;if(null!=n.adsEngagementPanelRenderer)return kZ(b,c.elementId,r,n.adsEngagementPanelRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),F=n.adsEngagementPanelRenderer,G=GY(a.B.get(),v);return BZ(C,v.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new FH(F),y,z,F.impressionPings,G,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)kZ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),F=n.actionCompanionAdRenderer,G=GY(a.B.get(),v);return BZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new EH(F),y,z,F.impressionPings,G,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)kZ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),F=n.imageCompanionAdRenderer,G=GY(a.B.get(),v);return BZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new JH(F),y,z,F.impressionPings,G,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)kZ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(v,y,z){var C=a.i.get(),F=n.shoppingCompanionCarouselRenderer,G=GY(a.B.get(),v);return BZ(C,v.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new KH(F),y,z,F.impressionPings,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!wLa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==r)return vLa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!f&&!CZ(a.Na.get()))return new YY("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported");if(!a.C)return new YY("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.uf||R("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:r,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.uf),clientPlaybackNonce:h.clientPlaybackNonce});pMa(a.C,{adPlacementRenderer:c,contentCpn:d,PJ:e})}else{if(n.clientForecastingAdRenderer)return WLa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return YLa(a.u.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return SLa(a.u.get(),a.i.get(),
c,d,m);if(n.linearAdSequenceRenderer&&!u)return jZ(b,n,r),null!=n.linearAdSequenceRenderer.linearAds?lMa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new YY("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return jZ(b,n,r),iMa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return nMa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=
n.sandwichedLinearAdRenderer)return sLa(n.sandwichedLinearAdRenderer)?lMa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new YY("Received invalid SandwichedLinearAdRenderer.")}}return[]};
DZ=function(a){g.E.call(this);this.i=a};
By=function(a,b,c,d){a.i().Mh(b,d);c=c();a=a.i();EZ(a.u,"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;dJ(d.u,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.kb(c.slotId))throw new YY("Slot ID was empty");if(NY(e,c))throw new YY("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Vb.triggerType});if(!e.Od.Vl.has(c.qb))throw new YY("No fulfillment adapter factory registered for slot of type: "+
c.qb);if(!e.Od.Hm.has(c.qb))throw new YY("No SlotAdapterFactory registered for slot of type: "+c.qb);fZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Vb?[c.Vb]:[]);fZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.uc);fZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.tc);var f=d.i,h=c.qb+"_"+c.slotPhysicalPosition,l=$Y(f,h);if(NY(f,c))throw new YY("Duplicate slots not supported");l.set(c.slotId,new mLa(c));f.i.set(h,l)}catch(la){R(la,c,void 0,void 0,la.jp);break a}NY(d.i,c).I=!0;try{var m=d.i,n=NY(m,c),p=c.Vb,r=m.Od.Uh.get(p.triggerType);
r&&(r.Pi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.xa.set(p.triggerId,r));for(var t=g.q(c.uc),u=t.next();!u.done;u=t.next()){var v=u.value,y=m.Od.Uh.get(v.triggerType);y&&(y.Pi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.Z.set(v.triggerId,y))}for(var z=g.q(c.tc),C=z.next();!C.done;C=z.next()){var F=C.value,G=m.Od.Uh.get(F.triggerType);G&&(G.Pi("TRIGGER_CATEGORY_SLOT_EXPIRATION",F,c,null),n.X.set(F.triggerId,G))}var J=m.Od.Vl.get(c.qb).get().Qe(m.B,c);n.K=J;var U=m.Od.Hm.get(c.qb).get().Qe(m.D,
c);U.init();n.u=U}catch(la){R(la,c,void 0,void 0,la.jp);KY(d,c,!0);break a}dJ(d.u,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.nh(c);for(var K=g.q(d.Jd),X=K.next();!X.done;X=K.next())X.value.nh(c);SY(d,c,!1)}};
FZ=function(a,b,c,d){this.To=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
GZ=function(a,b,c,d){g.E.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.te(this,function(){d.get().removeListener(e)})};
fma=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.uc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof FZ?(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 ds(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
HZ=function(){g.E.apply(this,arguments);this.Ai=!0;this.Sh=new Map;this.i=new Map};
qMa=function(a,b){a=g.q(a.Sh.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
rMa=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.kb(b)),layoutId:b})};
zZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
wZ=function(a,b){this.Ie=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
oZ=function(a,b){this.Ie=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
rZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
IZ=function(a,b){this.i=b;this.qb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
JZ=function(a,b){this.i=b;this.qb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
sZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
KZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
sMa=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)};
JLa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
pZ=function(a,b){this.Ie=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
qZ=function(a,b){this.Ie=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
vZ=function(a,b){this.durationMs=45E3;this.Ie=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
tMa=function(a){return[new ZH(a.Ot),new SH(a.instreamAdPlayerOverlayRenderer),new rI(a.kN),new NH(a.adPlacementConfig),new wI(a.videoLengthSeconds),new KI(a.bF)]};
uMa=function(a,b,c,d,e,f){a=c.yE?c.yE:Jy(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ib:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",pc:new Map,Cd:[new oZ(function(l){return Ky(f,l)},c.Ot)],
Qc:[],Pc:[],Rc:[],Uc:[],ib:b,Ga:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
LZ=function(a){var b=this;this.u=a;this.i=function(c){return Ky(b.u.get(),c)}};
vMa=function(a,b,c,d,e,f){c=new wH([new TH(c),new NH(d)]);b=Jy(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",pc:new Map,Cd:[new oZ(function(h){return Ky(a.u.get(),h)},e)],
Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:c,Dc:f(d),adLayoutLoggingData:void 0}};
MZ=function(a,b,c,d,e){return uMa(b,c,d,new wH(tMa(d)),e,a.u.get())};
wMa=function(a,b,c,d,e){var f=tMa(d);f.push(new LH(d.lR));f.push(new MH(d.nR));return uMa(b,c,d,new wH(f),e,a.u.get())};
BZ=function(a,b,c,d,e,f,h,l,m){b=Jy(a.u.get(),c,b);var n={layoutId:b,layoutType:c,ib:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,pc:p,Cd:[new sZ(a.i,b),new IZ(a.i,e)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([d,new NH(f),new ZH(e)]),Dc:l(n),adLayoutLoggingData:m}};
uZ=function(a,b,c){var d=[];d.push(new JZ(a.i,c));b&&d.push(b);return d};
tZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,ib:"core"};return{layoutId:b,layoutType:c,pc:new Map,Cd:h,Qc:[new zZ(a.i,b)],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new IH(d),new NH(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
nZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,ib:"core"};return{layoutId:b,layoutType:f,pc:new Map,Cd:[new oZ(a.i,c)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new NH(d)].concat(g.ma(h))),Dc:e(m),adLayoutLoggingData:l}};
ZLa=function(a,b,c,d,e,f,h,l,m,n){a=xZ(a,b,c,d,e,f,h,l,m,n);return{Mq:{layoutId:a.layoutId,layoutType:a.layoutType,pc:a.pc,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:a.ib,Ga:new wH(a.Zu),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},Xr:a.Qc,yp:a.Pc,Ky:a.Rc,Jy:a.Uc,oh:a.oh}};
cMa=function(a,b,c,d,e,f,h,l){b=xZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
a=new qZ(a.i,b.PF);c=new oI(b.PF);d=new pI("LAYOUT_TYPE_SURVEY");return{Mq:{layoutId:b.layoutId,layoutType:b.layoutType,pc:b.pc,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:b.ib,Ga:new wH([].concat(g.ma(b.Zu),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},Xr:b.Qc,yp:b.Pc,Ky:[].concat(g.ma(b.Rc),[a]),Jy:b.Uc,oh:b.oh}};
xZ=function(a,b,c,d,e,f,h,l,m,n){b=Jy(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"adapter"};l=l(b);var r=V(l.Ga,"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 NH(c),new LI(d),new NI(e)];n&&c.push(new BI(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",pc:f,Cd:[],Qc:[new pZ(a.i,r)],Pc:[],Rc:[],Uc:[],ib:"adapter",
Zu:c,Dc:h(p),adLayoutLoggingData:m,oh:l,PF:r}};
gMa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",ib:b};d=[new NH(d),new OH(l),new PH(c.externalVideoId),new RH(h),new SH(c.playerOverlay.instreamAdPlayerOverlayRenderer),new NI({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new xI(e),new sI({current:null}),new wI(f)];(e=c.playerUnderlay)&&d.push(new TH(e));e=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:Jy(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new oI(f));d.push(new qI(e));d.push(new BI(l.i));c.adNextParams&&d.push(new GH(c.adNextParams));c.clickthroughEndpoint&&d.push(new HH(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new MI(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new yI(c.sodarExtensionData));n&&d.push(new JI(n));d.push(new RI(Csa(c.pings)));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",pc:FG(c.pings),Cd:[new sZ(a.i,p)],Qc:c.skipOffsetMilliseconds?
[new pZ(a.i,f)]:[],Pc:[new pZ(a.i,f)],Rc:[],Uc:[],ib:b,Ga:new wH(d),Dc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
ULa=function(a,b,c,d,e,f,h,l){d.every(function(n){return CY(n,[],["LAYOUT_TYPE_MEDIA"])})||R("Unexpect subLayout type for DAI composite layout");
b=Jy(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",pc:new Map,Cd:[new rZ(a.i)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new zI(c),new AI(l),new uI(d),new NH(e),new FI(f),new CI({})]),Dc:h(m)}};
PLa=function(a){return null!=a};
NZ=function(a,b,c){this.To=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
OZ=function(a,b,c){this.Ie=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
PZ=function(a,b){this.Ie=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
xMa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
QZ=function(a,b,c){this.To=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
RZ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
SZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
TZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
UZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
VZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
WZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
tLa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Wk:new ds(-0x8000000000000,-0x8000000000000),OA:d},null!=c&&(d.us=new ds(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Wk:new ds(0x7ffffffffffff,0x8000000000000),OA:d},null!=c&&(d.us=new ds(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 YY("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Wk:new ds(a,e),OA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.us=new ds(a,e)}return d;default:return new YY("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
XZ=function(a){var b=this;this.u=a;this.i=function(c){return Ky(b.u.get(),c)}};
uLa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=Iy(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.us&&d.us.start!==d.Wk.start&&l.push(new FZ(a.i,c,new ds(d.us.start,d.Wk.start),!1));l.push(new FZ(a.i,c,new ds(d.Wk.start,d.Wk.end),d.OA));d={getAdBreakUrl:b.getAdBreakUrl,BN:d.Wk.start,AN:d.Wk.end};b=new VZ(a.i,h);f=[new HI(d)].concat(g.ma(f));return{slotId:h,qb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Vb:b,uc:l,tc:[new KZ(a.i,c),new TZ(a.i,h),new UZ(a.i,h)],ib:"core",Ga:new wH(f),adSlotLoggingData:e}};
zMa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(yMa(a,b,e.value));return d};
yMa=function(a,b,c){return null!=c.Ig&&c.Ig===a?c.clone(b):c};
DLa=function(a,b,c,d,e){return AMa(a,b,c,d,e)};
$La=function(a,b,c,d){var e=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");return AMa(a,e,b,c,d)};
AMa=function(a,b,c,d,e){var f=new PZ(a.i,c),h=[new SZ(a.i,b)];a=[new TZ(a.i,b),new KZ(a.i,d)];return{slotId:b,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:f,uc:h,tc:a,ib:"core",Ga:new wH([new GI(e({slotId:b,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:f,uc:h,tc:a},c))]),adSlotLoggingData:void 0}};
mMa=function(a,b,c,d,e,f){var h=Iy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=Jy(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=YZ(a,b,c,d);d=[new SZ(a.i,h)];a=[new TZ(a.i,h),new KZ(a.i,c),new zZ(a.i,m)];if(b instanceof YY)return b;f=f({slotId:h,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Vb:b,uc:d,tc:a},{slotId:l,layoutId:m});l=f.US;return[{slotId:h,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core",Ga:new wH([new GI(f.nT)]),adSlotLoggingData:e},
l]};
BMa=function(a,b,c,d,e){e=e?e:Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new PZ(a.i,c);var f=[new SZ(a.i,e)];a=[new KZ(a.i,b),new TZ(a.i,e)];return{slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:f,tc:a,ib:"core",Ga:new wH([new GI(d({slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:a}))])}};
CMa=function(a,b,c,d){var e=Iy(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new PZ(a.i,c);var f=[new SZ(a.i,e)];a=[new KZ(a.i,b),new TZ(a.i,e)];return{slotId:e,qb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Vb:c,uc:f,tc:a,ib:"core",Ga:new wH([new GI(d({slotId:e,qb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:a}))])}};
XLa=function(a,b,c,d,e,f){b=YZ(a,b,c,d);if(b instanceof YY)return b;var h=b instanceof FZ?new QZ(a.i,c,b.i):null;d=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new SZ(a.i,d)];a=[new KZ(a.i,c),new TZ(a.i,d)];f=f({slotId:d,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:b,uc:l,tc:a},h);return f instanceof PY?new YY(f):{slotId:d,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:b,uc:l,tc:a,ib:"core",Ga:new wH([new GI(f)]),adSlotLoggingData:e}};
ILa=function(a,b,c,d){var e=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new PZ(a.i,c);var f=[new SZ(a.i,e)],h=[new TZ(a.i,e),new KZ(a.i,b)];f={slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:f,tc:h};return{slotId:e,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:[new SZ(a.i,e)],tc:[new KZ(a.i,b),new TZ(a.i,e)],ib:"core",Ga:new wH([new GI(d(f))])}};
GLa=function(a,b,c,d,e){var f=Iy(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new OZ(a.i,d,c);d=[new SZ(a.i,f)];a=[new KZ(a.i,b)];return{slotId:f,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,uc:d,tc:a,ib:"core",Ga:new wH([new GI(e({slotId:f,qb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",Vb:c,uc:d,tc:a}))])}};
zLa=function(a,b,c,d,e,f){var h=Iy(a.u.get(),b);return DMa(a,h,b,new PZ(a.i,d),c,e,d,f)};
yLa=function(a,b,c,d,e,f,h){return DMa(a,c,b,new RZ(a.i,c),d,f,e,h)};
QLa=function(a,b,c){var d=Iy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new xMa(a.i),f=[new WZ(a.i,d)];a=[new KZ(a.i,b)];return{slotId:d,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:e,uc:f,tc:a,ib:"core",Ga:new wH([new GI(c({slotId:d,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",Vb:e,uc:f,tc:a})),new CI({})])}};
hMa=function(a,b,c,d,e,f,h){a=kMa(a,b,c,d);if(a instanceof YY)return a;h=h({slotId:a.slotId,qb:a.qb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,uc:a.uc,tc:a.tc,ib:a.ib});if(h instanceof YY)return h;b=[new GI(h.layout)];f&&b.push(new PI({}));return{TF:{slotId:a.slotId,qb:a.qb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,uc:a.uc,tc:a.tc,ib:a.ib,Ga:new wH(b),adSlotLoggingData:e},xm:h.xm}};
kMa=function(a,b,c,d){var e=Iy(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=YZ(a,b,c,d);if(b instanceof YY)return b;d=[new SZ(a.i,e)];a=[new TZ(a.i,e),new KZ(a.i,c)];return{slotId:e,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core"}};
VLa=function(a,b,c,d,e,f){var h=Iy(a.u.get(),"SLOT_TYPE_FORECASTING");b=YZ(a,b,c,d);if(b instanceof YY)return b;d=[new SZ(a.i,h)];a=[new TZ(a.i,h),new KZ(a.i,c)];return{slotId:h,qb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Vb:b,uc:d,tc:a,ib:"core",Ga:new wH([new GI(f({slotId:h,qb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,ib:"core",Vb:b,uc:d,tc:a}))]),adSlotLoggingData:e}};
EMa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Fy(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=tLa(b,d),a instanceof YY?a:e(a.Wk,f);case "AD_PLACEMENT_KIND_END":return new NZ(a.i,c,f);default:return new YY("Cannot construct entry trigger",{kind:b.kind})}};
YZ=function(a,b,c,d){return EMa(a,b,c,d,function(e,f){return new FZ(a.i,c,e,f)})};
DMa=function(a,b,c,d,e,f,h,l){var m=[new WZ(a.i,b)];a=[new KZ(a.i,e),new TZ(a.i,b),new wZ(a.i,h)];return{slotId:b,qb:c,slotPhysicalPosition:1,Vb:d,uc:m,tc:a,ib:"core",Ga:new wH([new GI(l({slotId:b,qb:c,slotPhysicalPosition:1,ib:"core",Vb:d,uc:m,tc:a}))]),adSlotLoggingData:f}};
ZZ=function(a,b){g.E.call(this);this.Na=a;this.u=b;this.eventCount=0};
dJ=function(a,b,c){EZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
OY=function(a,b,c,d){EZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
eLa=function(a,b,c,d){var e=a.Na.get();(e.J.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.J.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&EZ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
EZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Na.get();if((p.J.V().N("html5_enable_ads_client_monitoring_log")||p.J.V().N("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Na.get().J.V().N("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var r=FY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};p={};f&&(p.slotData=EY(r,f));h&&(p.layoutData=YKa(r,h));l&&(p.triggerData=DY(l.trigger,l.category));c&&(p.opportunityData=ZKa(r,c,d,e));var t,u;c={organicPlaybackContext:{contentCpn:Cy(a.i.get(),
1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=Cy(a.i.get(),1).uf;c.organicPlaybackContext.isMdxPlayback=null===(t=Cy(a.i.get(),1))||void 0===t?void 0:t.isMdxPlayback;if(a=null===(u=Cy(a.i.get(),2))||void 0===u?void 0:u.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(p.externalContext=c);b.adClientData=p;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Wv("adsClientStateChange",{adsClientEvent:b})}};
$Z=function(a,b,c){ZZ.call(this,a,b);this.i=c};
a_=function(){this.i=new Map};
b_=function(a,b,c,d,e){g.E.call(this);this.J=a;this.B=b;this.Ia=c;this.C=d;this.u=e;this.listeners=[];var f=new Cx(this);g.H(this,f);f.T(a,"internalAbandon",this.BF);g.te(this,function(){g.Ex(f)})};
c_=function(a){g.E.call(this);this.J=a;this.i=new Map;this.u=new Cx(this);g.H(this,this.u);this.u.T(this.J,g.Vy("ad"),this.onCueRangeEnter,this);this.u.T(this.J,g.Wy("ad"),this.onCueRangeExit,this)};
FMa=function(a,b,c,d,e){g.Ty.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
d_=function(a){this.J=a};
e_=function(a){this.J=a};
f_=function(a){var b,c,d;return(null===(d=null===(c=null===(b=a.J.getVideoData(1).getPlayerResponse())||void 0===b?void 0:b.playerConfig)||void 0===c?void 0:c.daiConfig)||void 0===d?void 0:d.enableServerStitchedDai)||!1};
eZ=function(a){return a.J.V().N("html5_recover_from_non_fatal_errors_in_player_bytes")};
TY=function(a){return g.LE(a.J.V())?!1:yE(a.J.V())?a.J.V().N("html5_enable_non_notify_composite_vod_lsar_pacf"):g.zE(a.J.V())?a.J.V().N("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1};
GMa=function(a){return a.J.V().N("html5_recognize_predict_start_cue_point")};
CZ=function(a){return a.J.V().N("html5_pacf_enable_non_dai_live_video_ads")};
g_=function(a){return a.J.V().N("html5_enable_common_timer_for_survey_web")};
HMa=function(a){return a.J.V().experiments.kb("enable_desktop_player_underlay")};
h_=function(a,b){this.Ia=a;this.J=b;this.i=new Map;DG().subscribe("adactiveviewmeasurable",this.Dw,this);DG().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Cw,this);DG().subscribe("adviewableimpression",this.Ew,this);DG().subscribe("adaudioaudible",this.Aw,this);DG().subscribe("adaudiomeasurable",this.Bw,this)};
j_=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),om(tr),ysa(DG(),b,{Jv:function(){return c?{currentTime:a.Ia.get().getCurrentTimeSec(2,!1),duration:c,Ec:2===a.Ia.get().getPresentingPlayerType()&&1===i_(a.Ia.get(),2),tda:!1,uda:!0,volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}}))};
k_=function(a,b){a.i.has(b)?(a.i.delete(b),delete DG().i[b]):R("Unexpected unregistration of layout in LidarApi")};
l_=function(a,b){this.u=a;this.B=b};
m_=function(a,b,c,d){var e=void 0===e?new l_(function(){var f=a.getVideoData(1);return f?f.nf():""},function(){return a.V().pageId}):e;
this.J=a;this.u=b;this.B=c;this.C=d;this.ip=e;this.nB=null;this.i=new Map;this.Ph=new WG(e)};
JMa=function(a,b,c,d){d=void 0===d?[]:d;var e=rMa(a.u.get(),c);e?(c=n_(a,IMa(e),e),b.hasOwnProperty("baseUrl")?a.ip.send(b,c):a.Ph.send(b,c,{},d)):R("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
o_=function(a,b){g.Wv("adsClientStateChange",b)};
p_=function(a,b){a.i.has(b.Mv())?R("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Mv(),b)};
q_=function(a,b){a.i.delete(b.Mv())||R("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
IMa=function(a){var b=V(a.Ga,"metadata_type_ad_placement_config");a=V(a.Ga,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,VL:a}};
n_=function(a,b,c,d){var e=c?KMa(a):{};c=c?LMa(a,c.layoutId):{};var f={},h={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QG(a.J,d)),Jsa(b.adPlacementConfig)),(f.SLOT_POS=PG(function(){return(b.VL||0).toString()}),f)),c),e),(h.FINAL=PG(function(){return"1"}),h.AD_CPN=PG(function(){var l;
return(null===(l=Cy(a.C.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),h));
e={};c=g.q(Object.values(MMa));for(f=c.next();!f.done;f=c.next())f=f.value,h=d[f],null!=h&&(e[f]=h.toString());return e};
KMa=function(a){var b,c={},d=null===(b=a.nB)||void 0===b?void 0:NMa(b);null!=d&&(c.SURVEY_ELAPSED_MS=PG(function(){return Math.round(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=PG(function(){return Math.round(Date.now()/1E3).toString()});
return c};
LMa=function(a,b){a=a.i.get(b);if(!a)return{};a=a.QD();if(!a)return{};b={};return b.YT_ERROR_CODE=a.EB.toString(),b.ERRORCODE=a.Kx.toString(),b.ERROR_MSG=a.errorMessage,b};
r_=function(a,b,c){g.E.call(this);this.J=a;this.i=b;this.Na=c;this.listeners=[];this.RE=null;this.SC=new Map;b=new g.JC(this);g.H(this,b);b.T(a,"videodatachange",this.GW);b.T(a,"serverstitchedvideochange",this.aW);this.Cp=Cy(this)};
Cy=function(a,b){var c=a.J.getVideoData(b);return c?OMa(a,c,b||a.J.getPresentingPlayerType(!0)):null};
PMa=function(a,b,c){var d=OMa(a,b,c);a.Cp=d;a.listeners.forEach(function(e){e.LM(d)})};
OMa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Bc,r=b.title,t=b.cg,u=b.Gf,v=b.isMdxPlayback,y=b.Wh,z=b.mdxEnvironment,C=b.Rk,F=b.Vk,G=b.tp,J=b.videoId||"",U=b.Qh||"",K=b.bj||"";b=b.Ol||void 0;p=a.i.get().i.get(p)||{layoutId:null,slotId:null};var X=a.J.getVideoData(1),la=X.uf();X=X.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var Ea=(null===(e=null===(d=null===X||void 0===X?void 0:X.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===
e?void 0:e.enableDai)||!1;X=(null===(h=null===(f=null===X||void 0===X?void 0:X.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enablePreroll)||!1;return Object.assign(Object.assign({},p),{videoId:J,author:l,clientPlaybackNonce:m,playbackDurationMs:c,PJ:a,daiEnabled:Ea,aK:X,isListed:n,uf:la,Qh:U,title:r,bj:K,cg:t,Gf:u,Ol:b,isMdxPlayback:v,Wh:y,mdxEnvironment:z,Rk:C,Vk:F,tp:G})};
s_=function(a,b){g.E.call(this);this.J=a;this.i=b;this.listeners=[];this.Fp=function(){R("Called 'doUnlockPreroll' before it's initialized.")};
b=new Cx(this);g.H(this,b);b.T(a,"progresssync",this.BV);b.T(a,"presentingplayerstatechange",this.sV);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.yg);b.T(a,"resize",this.xb)};
t_=function(a,b){var c;b=null!==(c=a.i.get().SC.get(b))&&void 0!==c?c:null;if(null===b)return R("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
i_=function(a,b){return a.J.zb(b)};
QMa=function(a){var b=a.J.eb().rg();a=a.J.tj(!0,!0);return b.height-(a.height+a.top)};
RMa=function(a,b){var c=a.J.V();pE(c)||"3"!==c.controlsType||a.J.eb().mx(b)};
u_=function(a,b){g.L(a.J.getRootNode(),b)};
v_=function(a,b){g.Nr(a.J.getRootNode(),b)};
SMa=function(a,b,c){g.E.call(this);var d=this;this.u=Y(function(){return new Hy});
g.H(this,this.u);this.X=Y(function(){return new LZ(d.u)});
g.H(this,this.X);this.K=Y(function(){return new HZ});
g.H(this,this.K);this.B=Y(function(){return new DZ(a)});
g.H(this,this.B);this.C=Y(function(){return new XZ(d.u)});
g.H(this,this.C);this.xa=Y(function(){return new a_});
g.H(this,this.xa);this.S=Y(function(){return new c_(b)});
g.H(this,this.S);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.D=Y(function(){return new HY(d.Na)});
g.H(this,this.D);this.I=Y(function(){return new AZ(d.C,d.X,d.Na,d.D,null,null)});
g.H(this,this.I);this.i=Y(function(){return new r_(b,d.xa,d.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.D,this.i);g.H(this,this.ph);this.Ia=Y(function(){return new s_(b,d.i)});
g.H(this,this.Ia);this.Z=Y(function(){return new h_(d.Ia,b)});
g.H(this,this.Z);this.Ua=Y(function(){return new m_(b,d.K,d.Z,d.i)});
g.H(this,this.Ua);this.xc=new Gy(this.B,this.I,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var e=new b_(b,this.xc,this.Ia,this.i);this.Aa=Y(function(){return e});
this.zo=e;this.oa=new GZ(this.B,this.C,this.S,this.Aa);g.H(this,this.oa);this.yc=new Ay(this.B,this.C,this.I,this.i,this.oa,c);g.H(this,this.yc);this.Od={uq:new Map,Vl:new Map,Uh:new Map,Hm:new Map,mm:new Map};this.listeners=[];this.iq={yc:this.yc,rk:null,pm:null,Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.u.get(),nm:null,Fi:{qE:function(){}},
gh:this.K.get()}};
w_=function(a){this.i=a};
x_=function(){this.listeners=new Set};
y_=function(){};
TMa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Xl(b.siub,b.scs,b.bgub,b.bgp)};
UMa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.i=null};
VMa=function(a,b,c,d){a.i&&R("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(e){a.i=null;d&&d(e);var f=e.Mt?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=GY(a.u.get(),{slotId:a.slot.slotId,qb:a.slot.qb,slotPhysicalPosition:a.slot.slotPhysicalPosition,ib:a.slot.ib,Vb:a.slot.Vb,uc:a.slot.uc,tc:a.slot.tc}),n=Jy(h.u.get(),f,l),p={layoutId:n,layoutType:f,ib:"core"};e={layoutId:n,layoutType:f,
pc:new Map,Cd:[new sMa(h.i,l)],Qc:[],Pc:[],Rc:[],Uc:[],ib:"core",Ga:new wH([new II(e)]),Dc:m(p)};cLa(a.callback,a.slot,e)},function(e){a.i=null;
c&&c();e instanceof Th||LY(a.callback,a.slot,new YY(e,void 0,!0))})};
WMa=function(a){if(null==a.i)a.callback.uA(a.slot);else try{a.i.cancel(),a.i=null,a.callback.uA(a.slot)}catch(b){a.i=null,LY(a.callback,a.slot,new YY(b))}};
z_=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.i=new UMa(a,b,d,e)};
XMa=function(a){var b;null===(b=a.B)||void 0===b?void 0:b.get().Do(V(a.slot.Ga,"metadata_type_cue_point").identifier)};
A_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.i=new UMa(a,b,d,e)};
B_=function(a,b){this.callback=a;this.slot=b};
C_=function(a,b){return Ey(a,b.Qd,b.qb)?!0:!1};
D_=function(){};
E_=function(a,b,c,d){this.i=a;this.B=b;this.u=c;this.D=d};
F_=function(){};
YMa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
G_=function(a,b){return CY(a,b.Qd,b.We)?!0:!1};
H_=function(a){this.i=a};
I_=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Ua=b;this.layoutId=d;this.i=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,VL:e}};
J_=function(){return["metadata_type_ad_placement_config"]};
K_=function(a){var b=a.Ua.get();return n_(b,a.I)};
L_=function(a,b){a.C.has(b)||a.Ze(b)};
M_=function(a,b,c){for(c=void 0===c?!1:c;a.i<a.u.length;){var d=a.u[a.i];if(d.offsetMilliseconds<=b||c)ZMa(a,"progress",[d]),a.i++;else break}};
N_=function(a,b){return a.C.has(b)};
ZMa=function(a,b,c){var d,e=a.Ua.get(),f=a.layoutId;a=null!==(d=a.B)&&void 0!==d?d:void 0;c=void 0===c?[]:c;var h=rMa(e.u.get(),f);if(h)for(b=e.B.get().Ze(f,b),f=n_(e,IMa(h),h,a),c=g.q(c),a=c.next();!a.done;a=c.next())a=a.value,a.baseUrl&&e.Ph.send(a.baseUrl,f,b,a.headers);else R("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
$Ma=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.i=e;a=V(this.layout.Ga,"metadata_type_ad_placement_config");this.u=new I_(c.pc,this.Ua,a,c.layoutId)};
aNa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_FORECASTING"]}};
O_=function(a,b){this.Ua=a;this.i=b};
P_=function(a,b,c,d){g.Q.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=[]};
Q_=function(a,b,c,d,e,f,h){e=V(c.Ga,e);a=K_(a);var l=Bf(function(){d.Kc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Dc},function(){l()}))};
R_=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.qb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.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)};
bNa=function(a,b,c,d,e){zG.call(this,"action-companion",a,b,c,d,e)};
S_=function(a,b,c,d,e,f,h,l){P_.call(this,a,b,c,d);this.Ua=e;this.le=f;this.I=l;this.Ai=!0;this.B=null;this.C=V(c.Ga,"metadata_type_linked_player_bytes_layout_id");JY(this.le(),this);a=V(c.Ga,"metadata_type_ad_placement_config");this.D=new I_(c.pc,this.Ua,a,c.layoutId)};
cNa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
T_=function(a,b,c,d,e){P_.call(this,a,b,c,d);a=V(c.Ga,"metadata_type_ad_placement_config");this.B=new I_(c.pc,e,a,c.layoutId)};
dNa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_ENDCAP"]}};
U_=function(a,b,c,d,e,f,h,l){P_.call(this,a,b,c,d);this.Ia=e;this.Ua=f;this.D=h;this.C=l;this.B=!1;this.I=V(this.layout.Ga,"metadata_type_linked_player_bytes_layout_id")};
eNa=function(){return{Qd:["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"],We:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
V_=function(a,b,c,d,e,f,h,l){return G_(c,eNa())?new U_(a,b,c,d,e,f,h,l):G_(c,dNa())?new T_(a,b,c,d,f):null};
W_=function(a,b,c,d,e){this.u=a;this.Ia=b;this.Ua=c;this.B=d;this.i=e};
X_=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.Kd=b;this.Ia=c;this.jd=d;this.le=e;this.Na=f;this.Ai=!0;this.xE=!1};
Y_=function(a,b,c,d,e,f,h,l,m,n){X_.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.i=-1;this.C=!1};
Z_=function(a,b,c){var d=V(a.Ib().Ga,"metadata_type_linked_in_player_layout_id");return d?d:(R("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.rd(),a.Ib(),{requestingSlot:b,requestingLayout:c}),null)};
$_=function(a,b,c,d){if(!a.C){var e=a.u[a.i];e?(e.Ib().layoutId!==c.layoutId&&R("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Ib().layoutId}),a.C=!0,e.hf(e.Ib(),d),cJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),oJ(a.jd.get())):fNa(a)):R("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
fNa=function(a){if(a.i===a.u.length-1)a.i++,a0(a.I,a.layout.layoutId),oJ(a.jd.get());else{-1===a.i&&a.callback.Kc(a.slot,a.layout);a.i++;var b=a.u[a.i];0<a.i&&Lta(a.jd.get());b.startRendering(b.Ib())}};
b0=function(a){return!a.uo.Ec()&&a.state.Ec()};
c0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
gNa=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)};
hNa=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))};
iNa=function(a,b,c,d){var e;this.D=a;this.layoutId=c;this.I=d;this.u=[];this.i=[];this.B=this.C=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":gNa(b)?this.u.push(b):R("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":hNa(b)?this.i.push(b):R("Invalid AdVideoProgressMillisecondsCommand");break;default:R("Unknown or invalid AdVideoProgressOffSet kind")}this.u.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)})};
e0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u){var v;g.E.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.oa=e;this.Ia=f;this.jd=h;this.La=l;this.B=m;this.I=n;this.position=r;this.Ja=t;this.Na=u;this.Ai=!0;this.Ba=!1;this.u="not_rendering";this.S=!1;a=V(this.layout.Ga,"metadata_type_ad_placement_config");this.i=new I_(c.pc,this.Ua,a,c.layoutId);a=(null===(v=d0(this))||void 0===v?void 0:v.progressCommands)||[];this.Wa=new iNa(m,a,c.layoutId,function(){return y.Zl()});
this.Aa=Bf(function(){y.callback.Kc(y.slot,y.layout)});
this.K=Bf(function(){"rendering_stop_requested"!==y.u&&p(y);y.X?y.callback.Sc(y.slot,y.layout,y.X):R("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
d0=function(a){return V(a.layout.Ga,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
g0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){M_(a.i,1E3*b,c);a.S||M_(a.i,1E3*b,void 0===c?!1:c);var d=a.Zl();if(d){d/=1E3;if(b>=.25*d||c)L_(a.i,"first_quartile"),f0(a,"unmuted_first_quartile");if(b>=.5*d||c)L_(a.i,"midpoint"),f0(a,"unmuted_midpoint");if(b>=.75*d||c)L_(a.i,"third_quartile"),f0(a,"unmuted_third_quartile");a=a.Wa;b*=1E3;if(c=a.I()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.D.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.i.length;)if(c=
a.i[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
h0=function(a,b){a.S||a.i.Ze(b)};
f0=function(a,b){a.S||L_(a.i,b)};
j0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v){e0.call(this,a,b,c,d,e,f,h,m,n,p,r,t,u,v);var y=this;this.Mc=l;this.Nz=!0;this.Z=this.C=0;g_(this.Na.get())?(this.D=new VI(this.Zl(),function(z){g0(y,z/1E3);i0(y,z)},function(){g0(y,y.Zl()/1E3,!0);
i0(y,y.Zl());y.K()}),g.H(this,this.D)):(this.timer=new g.Xh(200),this.timer.Ra("tick",function(){y.Xb()}),g.H(this,this.timer))};
jNa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(J_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Qd:a,We:["LAYOUT_TYPE_MEDIA_BREAK"]}};
kNa=function(a){g_(a.Na.get())?a.D.start():(a.Z=Date.now(),i0(a,a.C),a.timer.start())};
NMa=function(a){return g_(a.Na.get())?a.D.i/1E3:a.C/1E3};
i0=function(a,b){b={current:b/1E3,duration:a.Zl()/1E3};a.Mc.get().Oa("onAdPlaybackProgress",b)};
k0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F,G){e0.call(this,a,b,c,d,e,m,p,t,u,y,z,C,F,G);var J=this;this.Va=f;this.Kd=h;this.xa=l;this.Z=n;this.Mc=r;this.Sa=v;this.adCpn="";this.D=new g.I(function(){J.yw("load_timeout",new PY("Media layout load timeout.",{},!0))},1E4)};
lNa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(J_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Qd:a,We:["LAYOUT_TYPE_MEDIA"]}};
l0=function(a,b,c,d,e,f,h){X_.call(this,a,b,c,d,f,h);this.i=e};
nNa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F){if(G_(d,{Qd:["metadata_type_sub_layouts"],We:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var G=V(d.Ga,"metadata_type_sub_layouts");a=new Y_(a,n,r,u,b,c,d,f,e,F);e=[];for(b={Wo:0};b.Wo<G.length;b={Wo:b.Wo},b.Wo++){var J=mNa({Kc:a.mW.bind(a),Sc:a.oW.bind(a),xf:a.nW.bind(a)},c,G[b.Wo],h,l,m,n,p,r,t,u,v,y,z,C,function(U){return function(K){K.hf(G[U.Wo],"normal")}}(b),b.Wo,G.length,F);
if(!J)return;e.push(J)}a.u=e;return a}if(G_(d,{Qd:[],We:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=mNa({Kc:a.Kc.bind(a),Sc:a.Sc.bind(a),xf:a.xf.bind(a)},c,d,h,l,m,n,p,r,t,u,v,y,z,C,function(){a0(f,d.layoutId)},0,1,F))?new l0(a,n,r,u,c,e,F):c};
mNa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F){if(G_(c,jNa()))return new j0(a,b,c,d,e,m,p,r,t,u,function(){},y,z,C,F);
if(G_(c,lNa()))return Dy(c.Ga,"metadata_type_ad_intro")?new k0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,function(G){r.get().Oa("onAdIntroStateChange",G)},y,z,C,F):new k0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,function(G){r.get().Ni(G)},y,z,C,F)};
m0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v){this.le=a;this.I=b;this.Ua=c;this.D=d;this.S=e;this.Kd=f;this.K=h;this.Ia=l;this.B=m;this.jd=n;this.Mc=p;this.i=r;this.u=t;this.C=u;this.Na=v};
n0=function(a,b,c,d,e,f,h,l){g.E.call(this);var m=this;this.D=a;this.I=b;this.B=c;this.u=e;this.Ia=f;this.Na=h;this.C=l;this.i=null;d.get().addListener(this);g.te(this,function(){d.get().removeListener(m)});
e.get().addListener(this);g.te(this,function(){e.get().removeListener(m)})};
pMa=function(a,b){if(Cy(a.B.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind||CZ(a.Na.get()))if(a.i)R("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.u.get().tB);for(var c=b.next();!c.done;c=b.next())oNa(a,a.i,c.value)}};
oNa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);By(a.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.I.get(),f=f_(a.Na.get());var h=1E3*c.startSecs;h={Wk:new ds(h,h+1E3*c.durationSecs),OA:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new ds(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new ds(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.us=f;return[uLa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new vI(c)])]})};
o0=function(a,b,c,d,e,f,h,l,m){g.E.call(this);this.I=a;this.S=b;this.K=c;this.D=d;this.u=e;this.B=f;this.i=h;this.Na=l;this.C=m;this.Ai=!0};
pNa=function(a,b,c){return CMa(a.u.get(),b.contentCpn,b.Ot,function(d){return vMa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Ot,GY(a.i.get(),d))})};
p0=function(a){var b,c=null===(b=V(a.Ga,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=V(a.Ga,"metadata_type_content_cpn"),f=V(a.Ga,"metadata_type_instream_ad_player_overlay_renderer"),h=V(a.Ga,"metadata_type_player_underlay_renderer"),l=V(a.Ga,"metadata_type_ad_placement_config"),m=V(a.Ga,"metadata_type_video_length_seconds");var n=Dy(a.Ga,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?V(a.Ga,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Dy(a.Ga,
"metadata_type_layout_enter_ms")&&Dy(a.Ga,"metadata_type_layout_exit_ms")?(V(a.Ga,"metadata_type_layout_exit_ms")-V(a.Ga,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Ot:d,contentCpn:e,kN:c,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,bF:n,yE:V(a.Ga,"metadata_type_linked_in_player_layout_id"),dL:V(a.Ga,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
rNa=function(a,b){return qNa(a,b)};
sNa=function(a,b){var c;b=qNa(a,b);if(!b)return null;b.bF=null===(c=V(a.Ga,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
qNa=function(a,b){var c,d=null===(c=V(a.Ga,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(Dy(a.Ga,"metadata_ad_video_is_listed"))var e=V(a.Ga,"metadata_ad_video_is_listed");else b?e=b.isListed:(R("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);Dy(a.Ga,"metadata_type_ad_info_ad_metadata")?b=V(a.Ga,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.bj,channelThumbnailUrl:b.Qh,channelTitle:b.author,videoTitle:b.title}:(R("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{lR:b,adPlacementConfig:V(a.Ga,"metadata_type_ad_placement_config"),nR:e,contentCpn:V(a.Ga,"metadata_type_content_cpn"),yE:V(a.Ga,"metadata_type_linked_in_player_layout_id"),dL:V(a.Ga,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:V(a.Ga,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,bF:void 0,kN:d,Ot:a.layoutId,videoLengthSeconds:V(a.Ga,"metadata_type_video_length_seconds")}};
tNa=function(a,b){this.callback=a;this.slot=b};
q0=function(){};
uNa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
vNa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.u=!1;this.i=0};
wNa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
r0=function(a){this.Ia=a};
s0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
t0=function(a){g.E.call(this);this.kC=a;this.Jb=new Map};
xNa=function(a,b){for(var c=[],d=g.q(a.Jb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof qZ&&f.Ie===b&&c.push(e)}c.length?WY(a.kC(),c):R("Survey is submitted but no registered triggers can be activated.")};
u0=function(a,b){t0.call(this,a);var c=this;b.get().addListener(this);g.te(this,function(){b.get().removeListener(c)})};
v0=function(a){g.E.call(this);this.i=a;this.Ai=!0;this.Jb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
w0=function(a,b){g.E.call(this);var c=this;this.i=a;this.Jb=new Map;b.get().addListener(this);g.te(this,function(){b.get().removeListener(c)})};
yNa=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 KZ){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};
x0=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.B=b;this.Ia=c;this.C=d;this.Jb=new Map;this.i=new Set;c.get().addListener(this);g.te(this,function(){c.get().removeListener(e)})};
y0=function(a,b,c,d,e,f,h,l,m,n){if(Cy(a.C.get(),1).clientPlaybackNonce!==m)throw new YY("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Jb.set(c.triggerId,{bundle:new s0(b,c,d,e),My:f});a.B.get().addCueRange(f,h,l,n,a)};
zNa=function(a,b){a=g.q(a.Jb.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.My)return c}return""};
z0=function(a){g.E.call(this);this.B=a;this.Ai=!0;this.Jb=new Map;this.u=this.i=null};
a0=function(a,b){for(var c=[],d=g.q(a.Jb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof sZ){var f;if(f=e.trigger.layoutId===b)f=(f=fLa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&WY(a.B(),c)};
A0=function(a){g.E.call(this);this.i=a;this.Ai=!0;this.Jb=new Map};
B0=function(a,b,c){g.E.call(this);this.Sm=a;this.B=b;this.C=c;this.i=this.u=void 0;this.B.get().addListener(this)};
C0=function(a,b,c,d,e,f){g.E.call(this);this.B=a;this.D=b;this.I=c;this.S=d;this.K=e;this.Na=f;this.i=this.u=null;this.C=!1;this.D.get().addListener(this)};
wta=function(a,b,c,d,e){var f=Iy(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,qb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:void 0,uc:[],tc:[],ib:"surface",Ga:new wH([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",pc:new Map,Cd:[],Qc:[],Pc:[],Rc:[],Uc:[],ib:"surface",Ga:new wH(c),Dc:$Ka(FY(a.I.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(UY(a.B(),a.u,a.i),a.C=!0,VY(a.B(),a.u,a.i))};
D0=function(a){this.fp=a};
ANa=function(a,b){if(!a)return{Il:[],Mt:!0};a.trackingParams&&bua(JJ(),a.trackingParams);if(a.adThrottled)return{Il:[],Mt:!0};a=a.playerAds;if(!a||!a.length)return{Il:[],Mt:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{Il:[],Mt:!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{Il:a,
Mt:!1}};
E0=function(a){g.E.call(this);this.J=a;this.listeners=[];this.i=new Cx(this);g.H(this,this.i);this.i.T(this.J,"aduxclicked",this.onAdUxClicked);this.i.T(this.J,"aduxmouseover",this.oF);this.i.T(this.J,"aduxmouseout",this.nF);this.i.T(this.J,"muteadaccepted",this.ST)};
BNa=function(a,b,c){b=g.pn(b,function(d){return new Zy(d,c,d.id)});
a.J.Oa("onAdUxUpdate",b)};
F0=function(a,b){a=g.q(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
G0=function(a,b,c,d){g.E.call(this);this.J=a;this.D=b;this.Na=c;this.Ua=d;this.listeners=[];this.B=new Set;this.tB=[];this.C=new hJ(this,GMa(c.get()));this.u=new iJ;this.i=null;CZ(c.get())||CNa(this)};
CNa=function(a){var b,c,d=a.J.getVideoData(1);(null===(b=a.i)||void 0===b?void 0:b.clientPlaybackNonce)!==d.clientPlaybackNonce&&(null!=a.i&&a.i.unsubscribe("cuepointupdated",a.Iw,a),d.subscribe("cuepointupdated",a.Iw,a),a.i=d,a.B.clear(),a.tB.length=0,d=(null===(c=d.i)||void 0===c?void 0:apa(c,0))||[],a.Iw(d))};
DNa=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");}};
H0=function(a){this.J=a};
I0=function(a){this.J=a};
J0=function(){this.listeners=[]};
ENa=function(a){this.J=a};
K0=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ia=h;this.i=l;this.Ua=m;this.S=n;this.driftRecoveryMs=V(this.layout.Ga,"metadata_type_drift_recovery_ms")||null};
FNa=function(a){var b=V(a.layout.Ga,"metadata_type_layout_enter_ms"),c=V(a.layout.Ga,"metadata_type_layout_exit_ms");a=a.D.get();b=jJ(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
L0=function(a,b){var c;o_(a.Ua.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.B.get().Cp)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Dc.adClientDataEntry},b)})};
M0=function(a,b,c,d,e,f,h,l,m,n,p){K0.call(this,a,b,c,d,e,f,h,l,m,n);this.I=p;this.C=this.u=null;a=g.q(this.I);for(b=a.next();!b.done;b=a.next())b=b.value,Dy(b.Ib().Ga,"metadata_type_survey_overlay")&&(this.C=b.Ib().layoutId)};
HNa=function(a,b){var c=GNa(a,b);a.u={di:c};c?c.startRendering(c.Ib()):b===a.C&&R("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
GNa=function(a,b){return null==b?null:a.I.find(function(c){return c.Ib().layoutId===b})||null};
INa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,r=Dy(b.Ga,"metadata_type_survey_overlay");if(!p)return h.cw(c,2,f,d,e,a.slotId),n.Di("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+r),null;c=h.Rr(c,2,f,d,e,a.slotId);n.Di("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+r);if(!c)return R("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.i.has(c)&&R("Unexpected remap of timeline playback"),l.i.set(c,
{slotId:a,layoutId:b})):R("Invalid timeline playback ID");d+f>e&&h.St(c,e-d);return c};
JNa=function(a,b){var c=V(b.Ga,"metadata_type_sodar_extension_data");if(c)try{TMa(0,c)}catch(d){R("Unexpected error when loading Sodar",a,b,{error:d})}};
KNa=function(a,b,c,d,e,f){c=new g.jH(c,new g.tJ);N0(a,b,c,d,e,!1,f)};
N0=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;b0(c)&&c0(e,0,null)&&(!N_(a,"impression")&&h&&h(),L_(a,"impression"));N_(a,"impression")&&(g.lH(c,4)&&!g.lH(c,2)&&a.Ze("pause"),0>kH(c,4)&&!(0>kH(c,2))&&a.Ze("resume"),g.lH(c,16)&&.5<=e&&a.Ze("seek"),f&&g.lH(c,2)&&O0(a,c.state,b,d,e))};
O0=function(a,b,c,d,e,f){if(N_(a,"impression")){var h=1>=Math.abs(d-e);P0(a,b,h?d:e,c,d,f);h&&L_(a,"complete")}};
P0=function(a,b,c,d,e,f){M_(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.T(b,16))||(null===b||void 0===b?0:g.T(b,32))||(c0(c,.25*e,d)&&(f&&!N_(a,"first_quartile")&&f("first"),L_(a,"first_quartile")),c0(c,.5*e,d)&&(f&&!N_(a,"midpoint")&&f("second"),L_(a,"midpoint")),c0(c,.75*e,d)&&(f&&!N_(a,"third_quartile")&&f("third"),L_(a,"third_quartile")))};
LNa=function(a,b){N_(a,"impression")&&a.Ze(b?"fullscreen":"end_fullscreen")};
MNa=function(a){N_(a,"impression")&&a.Ze("clickthrough")};
NNa=function(a){a.Ze("active_view_measurable")};
ONa=function(a){N_(a,"impression")&&!N_(a,"seek")&&a.Ze("active_view_fully_viewable_audible_half_duration")};
PNa=function(a){N_(a,"impression")&&!N_(a,"seek")&&a.Ze("active_view_viewable")};
QNa=function(a){N_(a,"impression")&&!N_(a,"seek")&&a.Ze("audio_audible")};
RNa=function(a){N_(a,"impression")&&!N_(a,"seek")&&a.Ze("audio_measurable")};
SNa=function(a,b,c,d,e,f,h,l,m,n,p,r){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.i=e;this.Ia=f;this.K=h;this.B=l;this.I=m;this.Na=n;this.Ua=p;this.C=r;this.Nz=!0;this.Bc=this.u=null};
TNa=function(a,b,c){var d;a.Ua.get().Di("ads_qua","cpn."+V(a.layout.Ga,"metadata_type_content_cpn")+";acpn."+(null===(d=Cy(a.C.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
UNa=function(a,b){var c;a.Ua.get().Di("ads_imp","cpn."+V(a.layout.Ga,"metadata_type_content_cpn")+";acpn."+(null===(c=Cy(a.C.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
Q0=function(a){return{enterMs:V(a.Ga,"metadata_type_layout_enter_ms"),exitMs:V(a.Ga,"metadata_type_layout_exit_ms")}};
R0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u){K0.call(this,a,b,c,d,e,h,l,m,n,r);this.X=f;this.I=p;this.C=t;this.Na=u;this.Bc=this.u=null};
VNa=function(a,b){var c;a.Ua.get().Di("ads_imp","acpn."+(null===(c=Cy(a.B.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
WNa=function(a,b,c){var d;a.Ua.get().Di("ads_qua","cpn."+V(a.layout.Ga,"metadata_type_content_cpn")+";acpn."+(null===(d=Cy(a.B.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
S0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,v,y,z,C,F){this.le=a;this.xa=b;this.i=c;this.B=d;this.Ia=e;this.Ua=f;this.K=h;this.D=l;this.u=m;this.C=n;this.Kd=p;this.Z=r;this.jd=t;this.Mc=u;this.S=v;this.X=y;this.oa=z;this.Na=C;this.I=F};
T0=function(a){g.E.call(this);this.i=a;this.Jb=new Map};
U0=function(a,b){for(var c=[],d=g.q(a.Jb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&WY(a.i(),c)};
V0=function(a,b){var c;g.E.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.te(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().Cp)||void 0===c?void 0:c.slotId)||null};
XNa=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};
W0=function(a){this.J=a};
YNa=function(a,b,c,d,e){zG.call(this,"image-companion",a,b,c,d,e)};
X0=function(a,b,c,d,e,f,h,l){P_.call(this,a,b,c,d);this.Ua=e;this.le=f;this.I=l;this.Ai=!0;this.B=null;this.C=V(c.Ga,"metadata_type_linked_player_bytes_layout_id");JY(this.le(),this);a=V(c.Ga,"metadata_type_ad_placement_config");this.D=new I_(c.pc,this.Ua,a,c.layoutId)};
ZNa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
$Na=function(a,b,c,d,e){zG.call(this,"shopping-companion",a,b,c,d,e)};
Y0=function(a,b,c,d,e,f,h,l){P_.call(this,a,b,c,d);this.Ua=e;this.le=f;this.I=l;this.Ai=!0;this.B=null;this.C=V(c.Ga,"metadata_type_linked_player_bytes_layout_id");JY(this.le(),this);a=V(c.Ga,"metadata_type_ad_placement_config");this.D=new I_(c.pc,this.Ua,a,c.layoutId)};
aOa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
bOa=function(a,b,c,d,e){zG.call(this,"ads-engagement-panel",a,b,c,d,e)};
Z0=function(a,b,c,d,e,f,h,l){P_.call(this,a,b,c,d);this.Ua=e;this.le=f;this.I=l;this.Ai=!0;this.B=null;this.C=V(c.Ga,"metadata_type_linked_player_bytes_layout_id");JY(this.le(),this);a=V(c.Ga,"metadata_type_ad_placement_config");this.D=new I_(c.pc,this.Ua,a,c.layoutId)};
cOa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
dOa=function(a,b,c,d,e){this.i=a;this.Ua=b;this.le=c;this.u=d;this.B=e};
$0=function(a,b,c){zG.call(this,"player-underlay",a,{},b,c);this.i=c};
a1=function(a,b,c,d){P_.call(this,a,b,c,d)};
eOa=function(a){this.i=a};
b1=function(a,b,c,d,e){P_.call(this,c,a,b,d);this.Ua=e;a=V(b.Ga,"metadata_type_ad_placement_config");this.B=new I_(b.pc,e,a,b.layoutId)};
c1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
e1=function(a,b,c){c=void 0===c?d1:c;c.width<d1.width&&(c=d1);if(a.width<c.width||a.height<c.height)return{EB:3,Kx:501,errorMessage:"ad("+c1(c)+") larger than container("+c1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{EB:3,Kx:501,errorMessage:"ad("+c1(c)+") to container("+c1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{EB:3,Kx:501,errorMessage:"ad("+c1(c)+") covers container("+c1(a)+") center."}};
fOa=function(a,b){var c=V(a.Ga,"metadata_type_ad_placement_config");return new I_(a.pc,b,c,a.layoutId)};
f1=function(a){return V(a.Ga,"metadata_type_invideo_overlay_ad_renderer")};
g1=function(a,b,c,d){zG.call(this,"invideo-overlay",a,b,c,d);this.i=d};
h1=function(a,b,c,d,e,f,h,l,m,n,p,r){P_.call(this,f,a,b,e);this.Ua=c;this.B=h;this.Ia=l;this.K=m;this.Na=n;this.D=p;this.C=r;this.S=fOa(b,c)};
gOa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];J_().forEach(function(b){a.push(b)});
return{Qd:a,We:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
i1=function(a,b,c,d,e,f,h,l,m,n,p,r,t){P_.call(this,f,a,b,e);this.Ua=c;this.B=h;this.K=l;this.Ia=m;this.S=n;this.Na=p;this.D=r;this.C=t;this.X=fOa(b,c)};
hOa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(J_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Qd:a,We:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
j1=function(a){this.Ia=a;this.i=!1};
k1=function(a,b,c,d,e,f,h){P_.call(this,c,a,b,d);this.B=e;this.Ia=f;this.Na=h};
iOa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ia=b;this.Ua=c;this.K=d;this.D=e;this.B=f;this.I=h;this.C=l;this.Na=m;this.u=n};
l1=function(a){g.E.call(this);this.B=a;this.Ai=!0;this.Jb=new Map;this.i=new Map;this.u=new Map};
jOa=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.u.get(d.value.triggerId))&&c.push(d)}return c};
kOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.K=Y(function(){return new Hy});
g.H(this,this.K);this.xa=Y(function(){return new LZ(f.K)});
g.H(this,this.xa);this.B=Y(function(){return new HZ});
g.H(this,this.B);this.X=Y(function(){return new DZ(a)});
g.H(this,this.X);this.Z=Y(function(){return new XZ(f.K)});
g.H(this,this.Z);this.Gb=Y(function(){return new a_});
g.H(this,this.Gb);this.dc=Y(function(){return new AG(b.V())});
g.H(this,this.dc);this.oa=Y(function(){return new E0(b)});
g.H(this,this.oa);this.Za=Y(function(){return new w_(e)});
g.H(this,this.Za);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.Ka=Y(function(){return new c_(b)});
g.H(this,this.Ka);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.Nb=Y(function(){return new D0(d)});
g.H(this,this.Nb);this.C=Y(function(){return new HY(f.Na)});
g.H(this,this.C);this.Va=Y(function(){return new AZ(f.Z,f.xa,f.Na,f.C,"SLOT_TYPE_ABOVE_FEED",f.jb)});
g.H(this,this.Va);this.Gc=Y(function(){return new I0(b)});
g.H(this,this.Gc);this.ub=Y(function(){return new J0});
g.H(this,this.ub);this.rb=Y(function(){return new x_});
g.H(this,this.rb);this.i=Y(function(){return new r_(b,f.Gb,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.C,this.i);g.H(this,this.ph);this.Ja=Y(function(){return new G0(b,f.i,f.Na,f.Ua)});
g.H(this,this.Ja);this.Sa=Y(function(){return new W0(b)});
g.H(this,this.Sa);this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.Ae=Y(function(){return new y_});
this.Aa=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.Aa);this.Ua=Y(function(){return new m_(b,f.B,f.Aa,f.i)});
g.H(this,this.Ua);this.hd=new o0(p0,m1,function(l,m,n,p){return MZ(f.xa.get(),l,m,n,p)},this.X,this.Z,this.xa,this.C,this.Na,this.i);
g.H(this,this.hd);this.xc=new Gy(this.X,this.Va,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i,this.Ja);this.bb=Y(function(){return h});
this.zo=h;this.jb=new n0(this.X,this.Z,this.i,this.bb,this.Ja,this.Ia,this.Na,this.Sa);g.H(this,this.jb);this.Db=new GZ(this.X,this.Z,this.Ka,this.bb);g.H(this,this.Db);this.yc=new Ay(this.X,this.Z,this.Va,this.i,this.Db,c);g.H(this,this.yc);this.ac=Y(function(){return new E_(f.Nb,f.xa,f.C,f.Sa)});
g.H(this,this.ac);this.D=Y(function(){return new F_});
g.H(this,this.D);this.Ba=new u0(a,this.oa);g.H(this,this.Ba);this.u=new v0(a);g.H(this,this.u);this.Wa=new T0(a);g.H(this,this.Wa);this.ob=new w0(a,this.bb);g.H(this,this.ob);this.La=new x0(a,this.Ka,this.Ia,this.i);g.H(this,this.La);this.wb=new V0(a,this.i);g.H(this,this.wb);this.S=new z0(a);g.H(this,this.S);this.Yc=new A0(a);g.H(this,this.Yc);this.Fb=new l1(a);g.H(this,this.Fb);this.I=Y(function(){return new q0});
g.H(this,this.I);this.xd=Y(function(){return new r0(f.Ia)});
g.H(this,this.xd);this.Id=Y(function(){return new dOa(f.oa,f.Ua,a,f.B,f.Aa)});
g.H(this,this.Id);this.Zb=Y(function(){return new H_(f.yc)});
g.H(this,this.Zb);this.fc=Y(function(){return new O_(f.Ua,f.S)});
g.H(this,this.fc);this.Zc=Y(function(){return new S0(a,f.S,f.i,f.Sa,f.Ia,f.Ua,f.Gb,f.Ja,f.Aa,f.Ae,f.Kd,f.Ka,f.jd,f.Mc,f.dc,f.Za,f.Gc,f.Na,f.B)});
g.H(this,this.Zc);this.kc=Y(function(){return new iOa(f.oa,f.Ia,f.Ua,f.B,f.Aa,f.Wa,f.Fb,f.Za,f.Na,c)});
g.H(this,this.kc);this.Wd=Y(function(){return new eOa(f.oa)});
g.H(this,this.Wd);this.ye=new B0(a,this.rb,this.K);g.H(this,this.ye);this.ze=new C0(a,this.ub,this.C,this.i,this.K,this.Na);g.H(this,this.ze);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.hd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.ac],["SLOT_TYPE_ABOVE_FEED",this.D],["SLOT_TYPE_FORECASTING",this.D],["SLOT_TYPE_IN_PLAYER",this.D],["SLOT_TYPE_PLAYER_BYTES",this.D],["SLOT_TYPE_PLAYER_UNDERLAY",this.D]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ba],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ba],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ob],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.wb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ob],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Yc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Fb]]),Hm:new Map([["SLOT_TYPE_ABOVE_FEED",this.I],["SLOT_TYPE_AD_BREAK_REQUEST",this.I],["SLOT_TYPE_FORECASTING",this.I],["SLOT_TYPE_IN_PLAYER",this.I],["SLOT_TYPE_PLAYER_BYTES",this.xd],["SLOT_TYPE_PLAYER_UNDERLAY",
this.I]]),mm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Id],["SLOT_TYPE_AD_BREAK_REQUEST",this.Zb],["SLOT_TYPE_FORECASTING",this.fc],["SLOT_TYPE_PLAYER_BYTES",this.Zc],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Wd]])};this.listeners=[this.B.get()];this.iq={yc:this.yc,rk:this.S,pm:this.ub.get(),Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.K.get(),nm:this.rb.get(),Fi:this.Ba,gh:this.B.get()}};
lOa=function(a,b,c,d,e,f,h,l,m,n){this.u=a;this.Ia=b;this.Ua=c;this.K=d;this.D=e;this.B=f;this.I=h;this.C=l;this.Na=m;this.i=n};
mOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Hy});
g.H(this,this.C);this.K=Y(function(){return new LZ(f.C)});
g.H(this,this.K);this.S=Y(function(){return new HZ});
g.H(this,this.S);this.D=Y(function(){return new DZ(a)});
g.H(this,this.D);this.I=Y(function(){return new XZ(f.C)});
g.H(this,this.I);this.hd=Y(function(){return new a_});
g.H(this,this.hd);this.Gb=Y(function(){return new AG(b.V())});
g.H(this,this.Gb);this.Ka=Y(function(){return new E0(b)});
g.H(this,this.Ka);this.Va=Y(function(){return new w_(e)});
g.H(this,this.Va);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.Z=Y(function(){return new c_(b)});
g.H(this,this.Z);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.wb=Y(function(){return new D0(d)});
g.H(this,this.wb);this.B=Y(function(){return new HY(f.Na)});
g.H(this,this.B);this.Ja=Y(function(){return new AZ(f.I,f.K,f.Na,f.B,null,f.bb)});
g.H(this,this.Ja);this.dc=Y(function(){return new I0(b)});
g.H(this,this.dc);this.jb=Y(function(){return new J0});
g.H(this,this.jb);this.ob=Y(function(){return new x_});
g.H(this,this.ob);this.i=Y(function(){return new r_(b,f.hd,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.B,this.i);g.H(this,this.ph);this.Nb=Y(function(){return new G0(b,f.i,f.Na,f.Ua)});
this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.Ba=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.Ba);this.Ua=Y(function(){return new m_(b,f.S,f.Ba,f.i)});
g.H(this,this.Ua);this.Zc=Y(function(){return new y_});
g.H(this,this.Zc);this.Gc=new o0(p0,m1,function(l,m,n,p){return MZ(f.K.get(),l,m,n,p)},this.D,this.I,this.K,this.B,this.Na,this.i);
g.H(this,this.Gc);this.xc=new Gy(this.D,this.Ja,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i,this.Nb);this.Wa=Y(function(){return h});
this.zo=h;this.bb=new n0(this.D,this.I,this.i,this.Wa,this.Nb,this.Ia,this.Na);g.H(this,this.bb);this.rb=new GZ(this.D,this.I,this.Z,this.Wa);g.H(this,this.rb);this.yc=new Ay(this.D,this.I,this.Ja,this.i,this.rb,c);g.H(this,this.yc);this.Fb=Y(function(){return new E_(f.wb,f.K,f.B)});
g.H(this,this.Fb);this.xa=Y(function(){return new F_});
g.H(this,this.xa);this.La=new u0(a,this.Ka);g.H(this,this.La);this.u=new v0(a);g.H(this,this.u);this.Sa=new T0(a);g.H(this,this.Sa);this.Za=new w0(a,this.Wa);g.H(this,this.Za);this.oa=new x0(a,this.Z,this.Ia,this.i);g.H(this,this.oa);this.X=new z0(a);g.H(this,this.X);this.fc=new A0(a);g.H(this,this.fc);this.ub=new l1(a);g.H(this,this.ub);this.Aa=Y(function(){return new q0});
g.H(this,this.Aa);this.Yc=Y(function(){return new r0(f.Ia)});
g.H(this,this.Yc);this.Db=Y(function(){return new H_(f.yc)});
g.H(this,this.Db);this.Zb=Y(function(){return new O_(f.Ua,f.X)});
g.H(this,this.Zb);this.ac=Y(function(){return new lOa(f.Ka,f.Ia,f.Ua,f.S,f.Ba,f.Sa,f.ub,f.Va,f.Na,c)});
g.H(this,this.ac);this.kc=Y(function(){return new m0(a,f.X,f.Ua,f.Ba,f.Zc,f.Kd,f.i,f.Ia,f.Z,f.jd,f.Mc,f.Gb,f.Va,f.dc,f.Na)});
g.H(this,this.kc);this.xd=new B0(a,this.ob,this.C);g.H(this,this.xd);this.Id=new C0(a,this.jb,this.B,this.i,this.C,this.Na);g.H(this,this.Id);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.bb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Fb],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.xa]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Za],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.oa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.oa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Za],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.fc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ub]]),Hm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Yc]]),mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Zb],["SLOT_TYPE_IN_PLAYER",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.kc]])};this.listeners=[this.S.get()];this.iq={yc:this.yc,rk:null,pm:this.jb.get(),
Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.C.get(),nm:this.ob.get(),Fi:this.La,gh:this.S.get()}};
nOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.D=Y(function(){return new Hy});
g.H(this,this.D);this.I=Y(function(){return new LZ(f.D)});
g.H(this,this.I);this.K=Y(function(){return new HZ});
g.H(this,this.K);this.X=Y(function(){return new DZ(a)});
g.H(this,this.X);this.Z=Y(function(){return new XZ(f.D)});
g.H(this,this.Z);this.dc=Y(function(){return new a_});
g.H(this,this.dc);this.jb=Y(function(){return new AG(b.V())});
g.H(this,this.jb);this.Ba=Y(function(){return new E0(b)});
g.H(this,this.Ba);this.rb=Y(function(){return new w_(e)});
g.H(this,this.rb);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.oa=Y(function(){return new c_(b)});
g.H(this,this.oa);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.Za=Y(function(){return new D0(d)});
g.H(this,this.Za);this.B=Y(function(){return new HY(f.Na)});
g.H(this,this.B);this.Aa=Y(function(){return new AZ(f.Z,f.I,f.Na,f.B,null,null)});
g.H(this,this.Aa);this.Db=Y(function(){return new I0(b)});
g.H(this,this.Db);this.Sa=Y(function(){return new J0});
g.H(this,this.Sa);this.i=Y(function(){return new r_(b,f.dc,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.B,this.i);g.H(this,this.ph);this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.Va=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.Va);this.Ua=Y(function(){return new m_(b,f.K,f.Va,f.i)});
g.H(this,this.Ua);this.ac=Y(function(){return new y_});
g.H(this,this.ac);this.Nb=new o0(p0,m1,function(l,m,n,p){return MZ(f.I.get(),l,m,n,p)},this.X,this.Z,this.I,this.B,this.Na,this.i);
g.H(this,this.Nb);this.xc=new Gy(this.X,this.Aa,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i);this.ub=Y(function(){return h});
this.zo=h;this.Wa=new GZ(this.X,this.Z,this.oa,this.ub);g.H(this,this.Wa);this.yc=new Ay(this.X,this.Z,this.Aa,this.i,this.Wa,c);g.H(this,this.yc);this.ob=Y(function(){return new E_(f.Za,f.I,f.B)});
g.H(this,this.ob);this.xa=Y(function(){return new F_});
g.H(this,this.xa);this.Ja=new u0(a,this.Ba);g.H(this,this.Ja);this.u=new v0(a);g.H(this,this.u);this.Ka=new w0(a,this.ub);g.H(this,this.Ka);this.La=new x0(a,this.oa,this.Ia,this.i);g.H(this,this.La);this.S=new z0(a);g.H(this,this.S);this.Fb=new A0(a);g.H(this,this.Fb);this.C=Y(function(){return new q0});
g.H(this,this.C);this.Zb=Y(function(){return new r0(f.Ia)});
g.H(this,this.Zb);this.bb=Y(function(){return new H_(f.yc)});
g.H(this,this.bb);this.wb=Y(function(){return new O_(f.Ua,f.S)});
g.H(this,this.wb);this.fc=Y(function(){return new W_(f.Ba,f.Ia,f.Ua,f.K,c)});
g.H(this,this.fc);this.Gb=Y(function(){return new m0(a,f.S,f.Ua,f.Va,f.ac,f.Kd,f.i,f.Ia,f.oa,f.jd,f.Mc,f.jb,f.rb,f.Db,f.Na)});
g.H(this,this.Gb);this.kc=new C0(a,this.Sa,this.B,this.i,this.D,this.Na);g.H(this,this.kc);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Nb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ob],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",
this.xa]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ja],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),Hm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Zb]]),
mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bb],["SLOT_TYPE_FORECASTING",this.wb],["SLOT_TYPE_IN_PLAYER",this.fc],["SLOT_TYPE_PLAYER_BYTES",this.Gb]])};this.listeners=[this.K.get()];this.iq={yc:this.yc,rk:null,pm:this.Sa.get(),Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.D.get(),nm:null,Fi:this.Ja,gh:this.K.get()}};
oOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Hy});
g.H(this,this.C);this.D=Y(function(){return new LZ(f.C)});
g.H(this,this.D);this.I=Y(function(){return new HZ});
g.H(this,this.I);this.S=Y(function(){return new DZ(a)});
g.H(this,this.S);this.X=Y(function(){return new XZ(f.C)});
g.H(this,this.X);this.fc=Y(function(){return new a_});
g.H(this,this.fc);this.ob=Y(function(){return new AG(b.V())});
g.H(this,this.ob);this.Ba=Y(function(){return new E0(b)});
g.H(this,this.Ba);this.jb=Y(function(){return new w_(e)});
g.H(this,this.jb);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.Z=Y(function(){return new c_(b)});
g.H(this,this.Z);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.Wa=Y(function(){return new D0(d)});
g.H(this,this.Wa);this.B=Y(function(){return new HY(f.Na)});
g.H(this,this.B);this.Aa=Y(function(){return new AZ(f.X,f.D,f.Na,f.B,null,null)});
g.H(this,this.Aa);this.Fb=Y(function(){return new I0(b)});
g.H(this,this.Fb);this.La=Y(function(){return new J0});
g.H(this,this.La);this.i=Y(function(){return new r_(b,f.fc,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.B,this.i);g.H(this,this.ph);this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.Sa=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.Sa);this.Ua=Y(function(){return new m_(b,f.I,f.Sa,f.i)});
g.H(this,this.Ua);this.dc=Y(function(){return new y_});
g.H(this,this.dc);this.Zb=new o0(p0,m1,function(l,m,n,p){return MZ(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Na,this.i);
g.H(this,this.Zb);this.xc=new Gy(this.S,this.Aa,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i);this.rb=Y(function(){return h});
this.zo=h;this.Va=new GZ(this.S,this.X,this.Z,this.rb);g.H(this,this.Va);this.yc=new Ay(this.S,this.X,this.Aa,this.i,this.Va,c);g.H(this,this.yc);this.bb=Y(function(){return new E_(f.Wa,f.D,f.B)});
g.H(this,this.bb);this.oa=Y(function(){return new F_});
g.H(this,this.oa);this.Ja=new u0(a,this.Ba);g.H(this,this.Ja);this.u=new v0(a);g.H(this,this.u);this.Ka=new w0(a,this.rb);g.H(this,this.Ka);this.ub=new x0(a,this.Z,this.Ia,this.i);g.H(this,this.ub);this.K=new z0(a);g.H(this,this.K);this.Gb=new A0(a);g.H(this,this.Gb);this.xa=Y(function(){return new q0});
g.H(this,this.xa);this.ac=Y(function(){return new r0(f.Ia)});
g.H(this,this.ac);this.Za=Y(function(){return new H_(f.yc)});
g.H(this,this.Za);this.wb=Y(function(){return new O_(f.Ua,f.K)});
g.H(this,this.wb);this.Db=Y(function(){return new W_(f.Ba,f.Ia,f.Ua,f.I,c)});
g.H(this,this.Db);this.Nb=Y(function(){return new m0(a,f.K,f.Ua,f.Sa,f.dc,f.Kd,f.i,f.Ia,f.Z,f.jd,f.Mc,f.ob,f.jb,f.Fb,f.Na)});
g.H(this,this.Nb);this.kc=new C0(a,this.La,this.B,this.i,this.C,this.Na);g.H(this,this.kc);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Va]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.bb],["SLOT_TYPE_FORECASTING",this.oa],["SLOT_TYPE_IN_PLAYER",this.oa],["SLOT_TYPE_PLAYER_BYTES",
this.oa]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ja],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ub],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),Hm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING",
this.wb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.I.get()];this.iq={yc:this.yc,rk:null,pm:this.La.get(),Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.C.get(),nm:null,Fi:this.Ja,gh:this.I.get()}};
n1=function(a,b,c,d,e,f,h,l,m){U_.call(this,a,b,c,d,e,f,h,m);this.K=l};
pOa=function(){var a=eNa();a.Qd.push("metadata_type_ad_info_ad_metadata");return a};
qOa=function(a,b,c,d,e,f){this.B=a;this.Ia=b;this.Ua=c;this.C=d;this.u=e;this.i=f};
rOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.C=Y(function(){return new Hy});
g.H(this,this.C);this.D=Y(function(){return new LZ(f.C)});
g.H(this,this.D);this.I=Y(function(){return new HZ});
g.H(this,this.I);this.S=Y(function(){return new DZ(a)});
g.H(this,this.S);this.X=Y(function(){return new XZ(f.C)});
g.H(this,this.X);this.fc=Y(function(){return new a_});
g.H(this,this.fc);this.jb=Y(function(){return new ENa(b)});
g.H(this,this.jb);this.rb=Y(function(){return new AG(b.V())});
g.H(this,this.rb);this.Ba=Y(function(){return new E0(b)});
g.H(this,this.Ba);this.ub=Y(function(){return new w_(e)});
g.H(this,this.ub);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.Z=Y(function(){return new c_(b)});
g.H(this,this.Z);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.Za=Y(function(){return new D0(d)});
g.H(this,this.Za);this.B=Y(function(){return new HY(f.Na)});
g.H(this,this.B);this.Aa=Y(function(){return new AZ(f.X,f.D,f.Na,f.B,null,null)});
g.H(this,this.Aa);this.Fb=Y(function(){return new I0(b)});
g.H(this,this.Fb);this.Sa=Y(function(){return new J0});
g.H(this,this.Sa);this.i=Y(function(){return new r_(b,f.fc,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.B,this.i);g.H(this,this.ph);this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.Va=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.Va);this.Ua=Y(function(){return new m_(b,f.I,f.Va,f.i)});
g.H(this,this.Ua);this.dc=Y(function(){return new y_});
g.H(this,this.dc);this.Zb=new o0(rNa,m1,function(l,m,n,p){return wMa(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Na,this.i);
g.H(this,this.Zb);this.xc=new Gy(this.S,this.Aa,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i);this.wb=Y(function(){return h});
this.zo=h;this.Wa=new GZ(this.S,this.X,this.Z,this.wb);g.H(this,this.Wa);this.yc=new Ay(this.S,this.X,this.Aa,this.i,this.Wa,c);g.H(this,this.yc);this.ob=Y(function(){return new E_(f.Za,f.D,f.B)});
g.H(this,this.ob);this.oa=Y(function(){return new F_});
g.H(this,this.oa);this.Ja=new u0(a,this.Ba);g.H(this,this.Ja);this.u=new v0(a);g.H(this,this.u);this.Ka=new w0(a,this.wb);g.H(this,this.Ka);this.La=new x0(a,this.Z,this.Ia,this.i);g.H(this,this.La);this.K=new z0(a);g.H(this,this.K);this.Gb=new A0(a);g.H(this,this.Gb);this.xa=Y(function(){return new q0});
g.H(this,this.xa);this.ac=Y(function(){return new r0(f.Ia)});
g.H(this,this.ac);this.bb=Y(function(){return new H_(f.yc)});
g.H(this,this.bb);this.Db=Y(function(){return new O_(f.Ua,f.K)});
g.H(this,this.Db);this.Nb=Y(function(){return new m0(a,f.K,f.Ua,f.Va,f.dc,f.Kd,f.i,f.Ia,f.Z,f.jd,f.Mc,f.rb,f.ub,f.Fb,f.Na)});
g.H(this,this.Nb);this.kc=Y(function(){return new qOa(f.Ba,f.Ia,f.Ua,f.I,f.jb,c)});
g.H(this,this.kc);this.Gc=new C0(a,this.Sa,this.B,this.i,this.C,this.Na);g.H(this,this.Gc);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ob],["SLOT_TYPE_FORECASTING",this.oa],["SLOT_TYPE_IN_PLAYER",this.oa],["SLOT_TYPE_PLAYER_BYTES",
this.oa]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ja],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ka],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ka],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),Hm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.bb],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.I.get()];this.iq={yc:this.yc,rk:null,pm:this.Sa.get(),Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.C.get(),nm:null,Fi:this.Ja,gh:this.I.get()}};
sOa=function(a,b,c,d,e,f){this.u=a;this.Ia=b;this.Ua=c;this.B=d;this.C=e;this.i=f};
tOa=function(a,b,c,d,e){g.E.call(this);var f=this;this.K=Y(function(){return new Hy});
g.H(this,this.K);this.S=Y(function(){return new LZ(f.K)});
g.H(this,this.S);this.C=Y(function(){return new HZ});
g.H(this,this.C);this.D=Y(function(){return new DZ(a)});
g.H(this,this.D);this.I=Y(function(){return new XZ(f.K)});
g.H(this,this.I);this.ub=Y(function(){return new a_});
g.H(this,this.ub);this.Gb=Y(function(){return new ENa(b)});
g.H(this,this.Gb);this.Nb=Y(function(){return new AG(b.V())});
g.H(this,this.Nb);this.Ka=Y(function(){return new E0(b)});
g.H(this,this.Ka);this.Zb=Y(function(){return new w_(e)});
g.H(this,this.Zb);this.jd=Y(function(){return new nJ(b)});
g.H(this,this.jd);this.oa=Y(function(){return new c_(b)});
g.H(this,this.oa);this.Kd=Y(function(){return new H0(b)});
g.H(this,this.Kd);this.Mc=Y(function(){return new d_(b)});
g.H(this,this.Mc);this.Na=Y(function(){return new e_(b)});
g.H(this,this.Na);this.wb=Y(function(){return new D0(d)});
g.H(this,this.wb);this.B=Y(function(){return new HY(f.Na)});
g.H(this,this.B);this.Ja=Y(function(){return new AZ(f.I,f.S,f.Na,f.B,null,f.Wa,3)});
g.H(this,this.Ja);this.fc=Y(function(){return new I0(b)});
g.H(this,this.fc);this.bb=Y(function(){return new J0});
g.H(this,this.bb);this.i=Y(function(){return new r_(b,f.ub,f.Na)});
g.H(this,this.i);this.ph=new $Z(this.Na,this.B,this.i);g.H(this,this.ph);this.Z=Y(function(){return new G0(b,f.i,f.Na,f.Ua)});
g.H(this,this.Z);this.Ba=Y(function(){return new W0(b)});
g.H(this,this.Ba);this.Ia=Y(function(){return new s_(b,f.i)});
g.H(this,this.Ia);this.xd=Y(function(){return new y_});
this.ob=Y(function(){return new h_(f.Ia,b)});
g.H(this,this.ob);this.Ua=Y(function(){return new m_(b,f.C,f.ob,f.i)});
g.H(this,this.Ua);this.xc=new Gy(this.D,this.Ja,c,this.Na,a,this.i,this.Ia);g.H(this,this.xc);var h=new b_(b,this.xc,this.Ia,this.i,this.Z);this.Sa=Y(function(){return h});
this.zo=h;this.Yc=new o0(sNa,m1,function(l,m,n,p){return wMa(f.S.get(),l,m,n,p)},this.D,this.I,this.S,this.B,this.Na,this.i);
g.H(this,this.Yc);this.Wa=new n0(this.D,this.I,this.i,this.Sa,this.Z,this.Ia,this.Na,this.Ba);g.H(this,this.Wa);this.rb=new GZ(this.D,this.I,this.oa,this.Sa);g.H(this,this.rb);this.yc=new Ay(this.D,this.I,this.Ja,this.i,this.rb,c);g.H(this,this.yc);this.Fb=Y(function(){return new E_(f.wb,f.S,f.B,f.Ba)});
g.H(this,this.Fb);this.xa=Y(function(){return new F_});
g.H(this,this.xa);this.La=new u0(a,this.Ka);g.H(this,this.La);this.u=new v0(a);g.H(this,this.u);this.Va=new w0(a,this.Sa);g.H(this,this.Va);this.Za=new x0(a,this.oa,this.Ia,this.i);g.H(this,this.Za);this.jb=new V0(a,this.i);g.H(this,this.jb);this.X=new z0(a);g.H(this,this.X);this.kc=new A0(a);g.H(this,this.kc);this.Aa=Y(function(){return new q0});
g.H(this,this.Aa);this.Zc=Y(function(){return new r0(f.Ia)});
g.H(this,this.Zc);this.Db=Y(function(){return new H_(f.yc)});
g.H(this,this.Db);this.ac=Y(function(){return new O_(f.Ua,f.X)});
g.H(this,this.ac);this.Gc=Y(function(){return new S0(a,f.X,f.i,f.Ba,f.Ia,f.Ua,f.ub,f.Z,f.ob,f.xd,f.Kd,f.oa,f.jd,f.Mc,f.Nb,f.Zb,f.fc,f.Na,f.C)});
g.H(this,this.Gc);this.dc=Y(function(){return new sOa(f.Ka,f.Ia,f.Ua,f.C,f.Gb,c)});
g.H(this,this.dc);this.hd=new C0(a,this.bb,this.B,this.i,this.K,this.Na);g.H(this,this.hd);this.Od={uq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.xc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),Vl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Fb],["SLOT_TYPE_FORECASTING",this.xa],
["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.xa]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Za],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Za],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kc]]),Hm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Zc]]),mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.Gc],["SLOT_TYPE_IN_PLAYER",this.dc]])};this.listeners=[this.C.get()];this.iq={yc:this.yc,rk:null,pm:this.bb.get(),Tf:this.Na.get(),Fo:this.Ia.get(),xc:this.xc,xj:this.K.get(),nm:null,Fi:this.La,gh:this.C.get()}};
o1=function(a,b,c,d){g.E.call(this);var e=this;this.i=uOa(function(){return e.u},a,b,c,d);
g.H(this,this.i);this.u=(new hZ(this.i)).B();g.H(this,this.u)};
p1=function(a){return a.i.iq};
uOa=function(a,b,c,d,e){try{var f=b.V();if(g.JE(f))var h=new kOa(a,b,c,d,e);else if(g.ME(f))h=new mOa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new oOa(a,b,c,d,e);else if(AE(f))h=new nOa(a,b,c,d,e);else if(g.tE(f))h=new rOa(a,b,c,d,e);else if(g.sE(f))h=new tOa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.V(),R("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,
pda:e.deviceParams.cver,oda:e.deviceParams.ctheme,nda:e.deviceParams.cplayer,Eda:e.playerStyle}),new SMa(a,b,c,d)}};
q1=function(a,b){this.i=a;this.rk=b};
r1=function(a){PK.call(this,a)};
s1=function(a,b,c,d,e){WK.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.C=this.Fa("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*Math.PI);
this.hide()};
t1=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Eg=e;this.Ti=f;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ka=this.Fa("ytp-ad-action-interstitial-image-container");this.D=new LK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ea(this.Ka);this.Ja=this.Fa("ytp-ad-action-interstitial-headline-container");this.S=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.H(this,this.S);this.S.Ea(this.Ja);
this.Ba=this.Fa("ytp-ad-action-interstitial-description-container");this.I=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.H(this,this.I);this.I.Ea(this.Ba);this.Wa=this.Fa("ytp-ad-action-interstitial-background-container");this.Z=new LK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ea(this.Wa);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.C=new Cx;g.H(this,this.C);this.hide()};
vOa=function(a){var b=g.Sg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
u1=function(a,b,c,d){rK.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.S=[];this.Za=this.Ba=this.D=this.Wa=this.Ka=null;this.La=!1;this.I=null;this.Z=0;a=this.Fa("ytp-ad-overlay-container");this.Ja=new eL(a,45E3,6E3,.3,.4);g.H(this,this.Ja);this.C=wOa(this);g.H(this,this.C);this.C.Ea(a);this.B=xOa(this);g.H(this,this.B);this.B.Ea(a);this.u=yOa(this);g.H(this,this.u);this.u.Ea(a);this.hide()};
wOa=function(a){var b=new g.qK({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[EK(v1)]}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return w1(a,b.element,
c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return w1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ii);b.hide();return b};
xOa=function(a){var b=new g.qK({G:"div",Ha:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[EK(v1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return w1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return w1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ii);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.rW);b.hide();return b};
yOa=function(a){var b=new g.qK({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[EK(v1)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){return w1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ii);b.hide();return b};
x1=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.Sg("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.Ba=new g.qK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Ba),a.Ba.Ea(b),b=new TK(a.api,a.Xa,a.layoutId,a.i,a.Ba.element,!1),g.H(a,b),b.init(yG("ad-info-hover-text-button"),c,
a.macros),a.I){b.Ea(a.I,0);b.subscribe("f",a.KT,a);b.subscribe("e",a.GF,a);a.T(a.I,"click",a.LT);var d=g.Sg("ytp-ad-button",b.element);a.T(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.Za=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."))};
zOa=function(a){return a.D&&a.D.closeButton&&a.D.closeButton.buttonRenderer&&(a=a.D.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
AOa=function(a,b){if(y1(a,z1)||a.api.Le())return!1;var c=sK(b.title),d=sK(b.description);if(g.kb(c)||g.kb(d))return!1;a.Pg(a.C.element,b.trackingParams||null);a.C.Pa("title",sK(b.title));a.C.Pa("description",sK(b.description));a.C.Pa("displayUrl",sK(b.displayUrl));b.navigationEndpoint&&gc(a.S,b.navigationEndpoint);a.C.show();a.Ja.start();a.gb(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++});
return!0};
BOa=function(a,b){if(y1(a,z1)||a.api.Le())return!1;var c=sK(b.title),d=sK(b.description);if(g.kb(c)||g.kb(d))return!1;a.Pg(a.B.element,b.trackingParams||null);a.B.Pa("title",sK(b.title));a.B.Pa("description",sK(b.description));a.B.Pa("displayUrl",sK(b.displayUrl));a.B.Pa("imageUrl",Gva(b.image));b.navigationEndpoint&&gc(a.S,b.navigationEndpoint);a.Wa=b.imageNavigationEndpoint||null;a.B.show();a.Ja.start();a.gb(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++});
return!0};
COa=function(a,b){if(a.api.Le())return!1;var c=Hva(b.image),d=c;c.width<z1.width&&(d=z1);if(0===c.width||0===c.height||y1(a,d))return!1;a.Pg(a.u.element,b.trackingParams||null);a.u.Pa("imageUrl",Gva(b.image));a.u.Pa("width",c.width);a.u.Pa("height",c.height);b.navigationEndpoint&&gc(a.S,b.navigationEndpoint);b=a.u.Fa("ytp-ad-image-overlay");g.Hm(b,"max-width",c.width+"px");a.u.show();a.gb(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Z++;a.api.oF("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.nF("invideo-overlay",a.layoutId)});
return!0};
y1=function(a,b){var c=a.api.eb().rg(),d=a.api.tj(!0,!1);return(b=e1(c,c.height-(d.height+d.top),b))?(a.Ka&&b&&(c=g.We(a.macros),c.ERRORCODE=b.Kx.toString(),c.ERROR_MSG=b.errorMessage,a.Xa.executeCommand(a.Ka,c)),!0):!1};
w1=function(a,b,c){var d=g.We(a.macros),e=g.an(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Zm(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.Z.toString()}};
a.S.forEach(function(h){return a.Xa.executeCommand(h,d)});
a.api.pauseVideo()};
DOa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
A1=function(a,b,c,d,e){WK.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Z=-1;this.C=0;this.S=!1;this.Ba=this.Fa("ytp-ad-message-slot");this.B=new g.qK({G:"span",L:"ytp-ad-message-container"});this.B.Ea(this.Ba);g.H(this,this.B);this.messageText=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ea(this.B.element);this.I=new g.ZK(this.B,400,!1,100,function(){return f.hide()});
g.H(this,this.I);this.hide()};
EOa=function(a,b){a=a.api.getRootNode();g.M(a,"ytp-ad-overlay-open",b);g.M(a,"ytp-ad-overlay-closed",!b)};
B1=function(a,b,c,d){rK.call(this,a,b,{G:"div",L:"ytp-ad-underlay-companion",U:[{G:"div",L:"ytp-ad-underlay-side-container",U:[{G:"div",L:"ytp-ad-underlay-image-container"},{G:"div",L:"ytp-ad-underlay-description-container"},{G:"div",L:"ytp-ad-underlay-headline-container"},{G:"div",L:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d);this.actionButton=null;this.Ba=this.Fa("ytp-ad-underlay-image-container");this.u=new LK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-image");
g.H(this,this.u);this.u.Ea(this.Ba);this.Z=this.Fa("ytp-ad-underlay-headline-container");this.C=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-headline");g.H(this,this.C);this.C.Ea(this.Z);this.S=this.Fa("ytp-ad-underlay-description-container");this.B=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-underlay-description");g.H(this,this.B);this.B.Ea(this.S);this.I=this.Fa("ytp-ad-underlay-action-button-container");this.D=this.Fa("ytp-ad-underlay-side-container");this.hide()};
FOa=function(a){var b=g.Sg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
C1=function(a,b,c,d){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.u=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
D1=function(a,b,c,d){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.u=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
E1=function(a,b,c,d){FK.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
F1=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",U:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.C=e;this.Ti=f;this.B=this.u=null;this.D=this.Fa("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.H(this,this.C);this.hide()};
G1=function(a,b,c,d,e,f,h){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ha:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ha:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ha:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.Eg=f;this.Ti=h;this.D=null;this.B=[];this.u=null;this.question=this.Fa("ytp-ad-survey-question");this.S=this.Fa("ytp-ad-survey-question-background");
this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.Ta()};
GOa=function(a,b,c){var d=new C1(a.api,a.Xa,a.layoutId,a.i);d.Ea(a.answers);d.init(yG("survey-answer"),b,c);a.B.push(d)};
IOa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&KK(c)||"",g.kb(c)?g.cy(Error("Found ThumbnailDetails without valid image URL")):g.Hm(a.S,"backgroundImage","url("+c+")"));HOa(a,b)}else g.by(Error("addCommonComponents() needs to be called before starting countdown."))};
HOa=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.C=g.Ta();a.u=a.Eg?new kL(a.api,b.durationMilliseconds):new lL(b.durationMilliseconds,a.Xa,!0);g.H(a,a.u);if(b.timeoutCommands&&!a.Eg){var c=b.timeoutCommands;a.u.subscribe("g",function(){c.forEach(function(e){return a.Xa.executeCommand(e,a.macros)})})}if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new F1(a.api,a.Xa,a.layoutId,a.i,a.u,a.Ti);
d.Ea(a.playerOverlay);d.init(yG("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.H(a,d);a.EN()}catch(e){g.by(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.by(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new uL(a.api,a.u),b.Ea(a.playerOverlay),g.H(a,b)):g.by(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
JOa=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.Ta()-a.C).toString()})};
H1=function(a,b,c,d,e,f){G1.call(this,a,b,c,d,"survey-question-multi-select",e,f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.I=null;this.hide()};
KOa=function(a,b,c){a.noneOfTheAbove=new D1(a.api,a.Xa,a.layoutId,a.i);a.noneOfTheAbove.Ea(a.answers);a.noneOfTheAbove.init(yG("survey-none-of-the-above"),b,c)};
LOa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
I1(a,!0)};
I1=function(a,b){var c=a.D;a=MOa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof gL&&!c.u.I&&rwa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
MOa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
J1=function(a,b,c,d,e,f){G1.call(this,a,b,c,d,"survey-question-single-select",e,f);this.hide()};
K1=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.Eg=e;this.Ti=f;this.questions=[];this.u=this.Fa("ytp-ad-survey-questions");this.hide()};
L1=function(a,b,c,d,e,f){rK.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.Eg=e;this.AG=f;this.u=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.B=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ZK(this,500,!1,300);g.H(this,this.transition)};
NOa=function(a,b){b=b&&KK(b)||"";if(g.kb(b))g.cy(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Jc&&10>document.documentMode)c=cg;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ch("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=afa(d.style)}b=Taa(c,dg({"background-image":'url("'+b+'")'}));a.style.cssText=ag(b)}};
OOa=function(a){var b=g.Sg("html5-video-player");b&&g.M(b,"ytp-ad-display-override",a)};
M1=function(a,b,c){PK.call(this,a);this.api=a;this.u={};this.K=b;a=new g.W({G:"div",Ha:["video-ads","ytp-ad-module"]});g.H(this,a);hE&&g.L(a.element,"ytp-ads-tiny-mode");this.I=new kK(a.element);g.H(this,this.I);g.sM(this.api,a.element,4);HMa(c)&&(c=new g.W({G:"div",Ha:["ytp-ad-underlay"]}),g.H(this,c),this.B=new kK(c.element),g.H(this,this.B),g.sM(this.api,c.element,0));g.H(this,Yva())};
POa=function(a,b){a=Ue(a.u,b.id,null);null==a&&g.cy(Error("Component not found for element id: "+b.id));return a||null};
N1=function(a){g.FM.call(this,a);var b=this;this.u=this.Xa=null;this.created=!1;this.fp=new SJ(this.player);this.B=function(){function d(){return b.Xa}
if(null!=b.u)return b.u;var e=hva({zp:a.getVideoData(1)});e=new TKa({mR:new q1(function(){return b.Xa},p1(b.i).rk),
ip:e.hS(),BR:d,zT:d,Fi:p1(b.i).Fi,Ph:e.eE(),J:b.player,Tf:p1(b.i).Tf,Ua:b.i.i.Ua,gh:p1(b.i).gh,Mc:b.i.i.Mc});b.u=e.kQ;return b.u};
this.i=new o1(this.player,this,this.fp,this.B);g.H(this,this.i);var c=a.V();!yE(c)||g.sE(c)||AE(c)||(g.H(this,new M1(a,function(){return b.Xa},p1(this.i).Tf)),g.H(this,new r1(a)))};
QOa=function(a){a.created!==a.loaded&&R("Created and loaded are out of sync")};
O1=function(a,b){b===a.Or&&(a.Or=void 0)};
ROa=function(a){a.Xa?p1(a.i).xc.tE()||a.Xa.tE()||p1(a.i).Fo.Fp():R("AdService is null when calling maybeUnlockPrerollIfReady")};
SOa=function(a){a=g.q(p1(a.i).gh.Sh.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.qb&&"core"===b.ib)return!0;return!1};
TOa=function(a){a=g.q(p1(a.i).gh.Sh.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
gma=function(a,b,c){c=void 0===c?"":c;var d=p1(a.i).Tf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.uf()||!1;d=UOa(b,d,f,e);jma(p1(a.i).yc,c,d.CA,b);a.Xa&&0<d.Wu.length&&(a=a.Xa,b=d.Wu,b=ova(a,b),b=pva(a,b),iK(a,b))};
UOa=function(a,b,c,d){var e={Wu:[],CA:[]};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,n=d;c||null!=h.instreamSurveyAdRenderer||null!=h.sandwichedLinearAdRenderer&&null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?m=!0:n&&!CZ(m)?m=!1:null!=h.videoAdTrackingRenderer?m=m.J.V().N("html5_enable_pacf_for_playback_tracking_layout_web"):
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||CZ(m))?m=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?((h=n)||(h=g.LE(m.J.V())?!1:yE(m.J.V())?m.J.V().N("html5_enable_single_video_vod_ivar_on_pacf"):g.zE(m.J.V())?m.J.V().N("html5_enable_single_video_vod_ivar_on_pacf_tv"):
!1),m=h):m=h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?h.linearAdSequenceRenderer.adStart?m.J.V().N("html5_enable_vod_lasr_with_notify_pacf"):n||TY(m):null!=h.sandwichedLinearAdRenderer?m.J.V().N("html5_enable_vod_slar_with_notify_pacf"):!1;m?e.CA.push(f):e.Wu.push(f)}return e};
VOa=function(){if(!g.Jc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.P1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=Sea(a);return b.parseFromString(g.ig(a),"application/xml")}if(WOa){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.Q1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={G:"svg",W:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(-1.000000, -3.000000)"},U:[{G:"polygon",W:{points:"0 0 24 0 24 24 0 24"}},{G:"path",W:{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.V().N("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={G:"svg",W:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},U:[{G:"path",W:{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,{G:"button",Ha:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},U:[d]});this.J=a;this.Ra("click",this.onClick,this);this.Pa("title",fN(a,e,"i"));g.te(this,g.DN(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 XOa="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)na(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||XOa});
var oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},YOa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),R1;
if("function"==typeof Object.setPrototypeOf)R1=Object.setPrototypeOf;else{var S1;a:{var ZOa={a:!0},$Oa={};try{$Oa.__proto__=ZOa;S1=$Oa.a;break a}catch(a){}S1=!1}R1=S1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=R1;
qa.prototype.S=function(a){this.u=a};
qa.prototype.return=function(a){this.B={return:a};this.i=this.D};
qa.prototype.fb=function(a){this.i=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return YOa});
ha("Reflect.setPrototypeOf",function(a){return a?a:pa?function(b,c){try{return pa(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.i=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();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.u=function(h){if(null==this.i){this.i=[];var l=this;this.B(function(){l.D()})}this.i.push(h)};
var e=ea.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=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.C(n)}}}this.i=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.xa),reject:h(this.D)}};
b.prototype.xa=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ba(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.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ja(l,h):this.I(h)};
b.prototype.D=function(h){this.S(2,h)};
b.prototype.I=function(h){this.S(1,h)};
b.prototype.S=function(h,l){if(0!=this.i)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.i);this.i=h;this.B=l;2===this.i&&this.Aa();this.X()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.Z()){var l=ea.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.Z=function(){if(this.K)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.B;return m(h)};
b.prototype.X=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ba=function(h){var l=this.C();h.By(l.resolve,l.reject)};
b.prototype.Ja=function(h,l){var m=this.C();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(v){try{n(t(v))}catch(y){p(y)}}:u}
var n,p,r=new b(function(t,u){n=t;p=u});
this.By(m(h,n),m(l,p));return r};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.By=function(h,l){function m(){switch(n.i){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!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).By(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(v){return function(y){t[v]=y;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).By(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ca(this,b,c).PO}});
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(!na(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(!na(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&na(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&na(m,h)&&na(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&na(m,h)&&na(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&&na(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,entry:r}}return{id:n,list:p,index:-1,entry: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.entry?n.entry.value=m:(n.entry={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.entry),this.i.previous.next=n.entry,this.i.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.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).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&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("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}});
ha("Object.setPrototypeOf",function(a){return a||pa});
ha("Array.prototype.keys",function(a){return a?a:function(){return Da(this,function(b){return b})}});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(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("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(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("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
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 Da(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("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push([d,b[d]]);return c}});
ha("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ca(this,b,c).cL}});
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!==Fa(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",Ga);ha("Uint8Array.prototype.fill",Ga);ha("Uint8ClampedArray.prototype.fill",Ga);ha("Int16Array.prototype.fill",Ga);ha("Uint16Array.prototype.fill",Ga);ha("Int32Array.prototype.fill",Ga);ha("Uint32Array.prototype.fill",Ga);ha("Float32Array.prototype.fill",Ga);ha("Float64Array.prototype.fill",Ga);
ha("Array.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)na(b,d)&&c.push(b[d]);return c}});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(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("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("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ha("Int8Array.prototype.copyWithin",Ha);ha("Uint8Array.prototype.copyWithin",Ha);ha("Uint8ClampedArray.prototype.copyWithin",Ha);ha("Int16Array.prototype.copyWithin",Ha);ha("Uint16Array.prototype.copyWithin",Ha);ha("Int32Array.prototype.copyWithin",Ha);ha("Uint32Array.prototype.copyWithin",Ha);ha("Float32Array.prototype.copyWithin",Ha);ha("Float64Array.prototype.copyWithin",Ha);fj=fj||{};g.B=this||self;Pa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ua(Wa,Error);Wa.prototype.name="CustomError";var Mg;g.Ua(Xa,Wa);Xa.prototype.name="AssertionError";var de,Baa="undefined"!==typeof TextDecoder;var vb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},lb=/&/g,nb=/</g,ob=/>/g,pb=/"/g,rb=/'/g,sb=/\x00/g,kaa=/[\x00&<>"']/;var aPa=g.Ja("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var zb;if(null!=aPa&&aPa){var bPa=g.B.navigator;zb=bPa?bPa.userAgentData||null:null}else zb=null;var Vb,rn,lo;Vb=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.cPa=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.sc=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.Cp=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.pn=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};
rn=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.sc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
lo=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.qn=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};uc[" "]=g.Ka;var Jm,OF,LKa,dPa,ePa,fPa,gE,hE,T1;g.iE=Eb();g.Jc=Fb();g.Hw=Cb("Edge");g.PE=g.Hw||g.Jc;Jm=Cb("Gecko")&&!(ub(g.yb(),"WebKit")&&!Cb("Edge"))&&!(Cb("Trident")||Cb("MSIE"))&&!Cb("Edge");g.Yg=ub(g.yb(),"WebKit")&&!Cb("Edge");OF=Ob();LKa=Pb();g.Ku=Lb();dPa=Mb();ePa=Cb("iPad");fPa=Cb("iPod");gE=Nb();hE=ub(g.yb(),"KaiOS");
a:{var U1="",V1=function(){var a=g.yb();if(Jm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Hw)return/Edge\/([\d\.]+)/.exec(a);if(g.Jc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Yg)return/WebKit\/(\S+)/.exec(a);if(g.iE)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
V1&&(U1=V1?V1[1]:"");if(g.Jc){var W1=xc();if(null!=W1&&W1>parseFloat(U1)){T1=String(W1);break a}}T1=U1}var yc=T1,saa={},X1;if(g.B.document&&g.Jc){var gPa=xc();X1=gPa?gPa:parseInt(yc,10)||void 0}else X1=void 0;var taa=X1;var rE,rG;g.Fj=Gb();rE=Mb()||Cb("iPod");rG=Cb("iPad");g.jE=Cb("Android")&&!(Hb()||Gb()||Eb()||Cb("Silk"));g.Ej=Hb();g.Gj=Ib()&&!Nb();var Dc={},Lc=null;var Oc="function"===typeof Uint8Array,Qc;Pc.prototype.isEmpty=function(){return null==this.i};var uaa="function"===typeof Uint8Array.prototype.slice,hd=0,id=0;Vc.prototype.clear=function(){this.u=null;this.i=this.B=this.D=0;this.Ll=this.C=!1};
Vc.prototype.reset=function(){this.i=this.D};
Vc.prototype.advance=function(a){this.i+=a;Wc(this)};
var Yc=[];Zc.prototype.reset=function(){this.i.reset();this.u=this.B=-1};
Zc.prototype.advance=function(a){this.i.advance(a)};
var OT=[];cd.prototype.push=function(a){if(!(this.u+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.u++]=a};
cd.prototype.length=function(){return this.u};
cd.prototype.end=function(){var a=this.i,b=this.u;this.u=0;return Sc(a,0,b)};var md="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Pd;var wd;var yd=Object.freeze(nd([]));Ad.prototype.toJSON=function(){var a=this.Vf;return Pd?a:td(a,vd)};
Ad.prototype.toString=function(){return this.Vf.toString()};
Ad.prototype.I=function(a){var b=a.u,c=a.i;return a.isRepeated?c?Ld(this,c,b,!0):Dd(this,b,!0):c?Kd(this,c,b,void 0,!0):Bd(this,b,!0)};
Ad.prototype.clone=function(){var a=this.constructor,b=td(this.Vf,waa);a=xd(a,b);Vd(a,this);return a};var Yd=Symbol(),$d=Symbol();g.w(je,Ad);g.w(ke,Ad);g.w(le,Ad);g.w(me,Ad);var hPa=[1,2,3];g.k=oe.prototype;g.k.oR=function(a){var b=g.Ba.apply(1,arguments),c=this.UD(b);c?c.push(new ne(a)):this.SN(a,b)};
g.k.SN=function(a){this.Ur.set(this.DK(g.Ba.apply(1,arguments)),[new ne(a)])};
g.k.UD=function(){var a=this.DK(g.Ba.apply(0,arguments));return this.Ur.has(a)?this.Ur.get(a):void 0};
g.k.kS=function(){var a=this.UD(g.Ba.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Ur.clear()};
g.k.DK=function(){var a=g.Ba.apply(0,arguments);return a?a.join(","):"key"};g.w(pe,oe);pe.prototype.B=function(a){var b=g.Ba.apply(1,arguments),c=0,d=this.kS(b);d&&(c=d.EJ);this.SN(c+a,b)};g.w(qe,oe);qe.prototype.Xk=function(a){this.oR(a,g.Ba.apply(1,arguments))};g.E.prototype.ai=!1;g.E.prototype.isDisposed=function(){return this.ai};
g.E.prototype.dispose=function(){this.ai||(this.ai=!0,this.ya())};
g.E.prototype.ya=function(){if(this.Eh)for(;this.Eh.length;)this.Eh.shift()()};g.ue.prototype.stopPropagation=function(){this.u=!0};
g.ue.prototype.preventDefault=function(){this.defaultPrevented=!0};var we={};var Laa=function(){if(!g.B.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.B.addEventListener("test",g.Ka,b),g.B.removeEventListener("test",g.Ka,b)}catch(c){}return a}();var xya;xya=g.Yg?"webkitAnimationEnd":"animationend";g.Ua(ye,g.ue);var iPa={2:"touch",3:"pen",4:"mouse"};
ye.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)?Jm&&(vc(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:iPa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&ye.je.preventDefault.call(this)};
ye.prototype.stopPropagation=function(){ye.je.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
ye.prototype.preventDefault=function(){ye.je.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var ze="closure_listenable_"+(1E6*Math.random()|0);var Iaa=0;var Ye="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");af.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=cf(a,b,d,e);-1<h?(b=a[h],c||(b.Ay=!1)):(b=new Jaa(b,this.src,f,!!d,e),b.Ay=c,a.push(b));return b};
af.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=cf(e,b,c,d);return-1<b?(Ce(e[b]),g.Zb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
af.prototype.Nv=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=cf(a,b,c,d));return-1<e?a[e]:null};var kf="closure_lm_"+(1E6*Math.random()|0),pf={},mf=0,qf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ua(g.rf,g.E);g.rf.prototype[ze]=!0;g.k=g.rf.prototype;g.k.addEventListener=function(a,b,c,d){ff(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){nf(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.rb;d=a.type||a;if("string"===typeof a)a=new g.ue(a,b);else if(a instanceof g.ue)a.target=a.target||b;else{var e=a;a=new g.ue(d,b);g.Ze(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=sf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=sf(h,d,!0,a)&&e,a.u||(e=sf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=sf(h,d,!1,a)&&e;return e};
g.k.ya=function(){g.rf.je.ya.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,Ce(d[e]);delete a.listeners[c];a.i--}}this.La=null};
g.k.Ra=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Wz=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.qc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Nv=function(a,b,c,d){return this.B.Nv(String(a),b,c,d)};tf.prototype.get=function(){if(0<this.u){this.u--;var a=this.i;this.i=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var hba=g.Jc||g.Yg;var jPa={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 Cf;Gf.prototype.Nk=!0;Gf.prototype.Jh=function(){return this.i};
var Ff={},Ef={};g.If("");var Jf={};Kf.prototype.Jh=function(){return this.i.toString()};
Kf.prototype.toString=function(){return this.i.toString()};var dfa,cfa,bfa,efa;dfa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.kPa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.lPa=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.$r=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");cfa=/^http:\/\/.*/;g.mPa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");bfa=/\s+/;efa=/[\d\u06f0-\u06f9]/;g.k=Mf.prototype;g.k.Nk=!0;g.k.Jh=function(){return this.i.toString()};
g.k.wE=!0;g.k.xr=function(){return 1};
g.k.toString=function(){return this.i+""};
var Paa=/%{(\w+)}/g,Oaa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Lf={};g.k=g.Qf.prototype;g.k.Nk=!0;g.k.Jh=function(){return this.i.toString()};
g.k.wE=!0;g.k.xr=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var Saa=RegExp('^(?: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"),Raa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Vf=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Pf={},Wf=new g.Qf("about:invalid#zClosurez",Pf);var Zf={};$f.prototype.Jh=function(){return this.i};
$f.prototype.toString=function(){return this.i.toString()};
var cg=new $f("",Zf),Vaa=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),fg=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),eg=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Waa=/\/\*/;var gg={};hg.prototype.xr=function(){return this.u};
hg.prototype.Jh=function(){return this.i.toString()};
hg.prototype.toString=function(){return this.i.toString()};
var nPa=/^[a-zA-Z0-9-]+$/,oPa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},pPa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},lg=new hg(g.B.trustedTypes&&g.B.trustedTypes.emptyHTML||"",0,gg);var bba=yf(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.ig(lg);return!b.parentElement}),cba=/^[\w+/_-]+[=]{0,2}$/;g.k=g.wg.prototype;g.k.clone=function(){return new g.wg(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.wg&&xg(this,a)};
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.yg.prototype;g.k.clone=function(){return new g.yg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Ag(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};g.qPa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Tg={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=Kg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.Sg(a,this.i)};
g.k.createElement=function(a){return $g(this.i,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){ah(Lg(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.gh;g.k.contains=g.ih;var th;vh.prototype.add=function(a,b){var c=Ch.get();c.set(a,b);this.u?this.u.next=c:this.i=c;this.u=c};
vh.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.u=null),a.next=null);return a};
var Ch=new tf(function(){return new wh},function(a){return a.reset()});
wh.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
wh.prototype.reset=function(){this.next=this.scope=this.i=null};var xh,yh=!1,zh=new vh;Gh.prototype.reset=function(){this.context=this.onRejected=this.u=this.i=null;this.B=!1};
var Hh=new tf(function(){return new Gh},function(a){a.reset()});
Fh.prototype.then=function(a,b,c){return Uh(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
Fh.prototype.$goog_Thenable=!0;g.k=Fh.prototype;g.k.yh=function(a,b){return Uh(this,null,a,b)};
g.k.catch=Fh.prototype.yh;g.k.cancel=function(a){if(0==this.i){var b=new Th(a);g.Ah(function(){Ph(this,b)},this)}};
g.k.aY=function(a){this.i=0;Eh(this,2,a)};
g.k.bY=function(a){this.i=0;Eh(this,3,a)};
g.k.ZR=function(){for(var a;a=Qh(this);)Rh(this,a,this.i,this.K);this.I=!1};
var Wh=Ya;g.Ua(Th,Wa);Th.prototype.name="cancel";g.Ua(g.Xh,g.rf);g.k=g.Xh.prototype;g.k.enabled=!1;g.k.Mb=null;g.k.setInterval=function(a){this.Wf=a;this.Mb&&this.enabled?(this.stop(),this.start()):this.Mb&&this.stop()};
g.k.OX=function(){if(this.enabled){var a=g.Ta()-this.GL;0<a&&a<.8*this.Wf?this.Mb=this.Fx.setTimeout(this.uJ,this.Wf-a):(this.Mb&&(this.Fx.clearTimeout(this.Mb),this.Mb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Mb||(this.Mb=this.Fx.setTimeout(this.uJ,this.Wf),this.GL=g.Ta())};
g.k.stop=function(){this.enabled=!1;this.Mb&&(this.Fx.clearTimeout(this.Mb),this.Mb=null)};
g.k.ya=function(){g.Xh.je.ya.call(this);this.stop();delete this.Fx};g.k=$h.prototype;g.k.sX=function(a){this.D=a;this.C=1};
g.k.aO=function(){var a=this.i.values();a=[].concat(g.ma(a)).filter(function(b){return b.Ur.size});
a.length&&this.K.flush(a,this.D);oba(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.qR=function(a){var b=g.Ba.apply(1,arguments);this.i.has(a)||this.i.set(a,new pe(a,b))};
g.k.iJ=function(a){var b=g.Ba.apply(1,arguments);this.i.has(a)||this.i.set(a,new qe(a,b))};
g.k.sP=function(a){this.tP.apply(this,[a,1].concat(g.ma(g.Ba.apply(1,arguments))))};
g.k.tP=function(a,b){var c=g.Ba.apply(2,arguments),d=bi(this,a);d&&d instanceof pe&&(d.B(b,c),ai(this))};
g.k.Xk=function(a,b){var c=g.Ba.apply(2,arguments),d=bi(this,a);d&&d instanceof qe&&(d.Xk(b,c),ai(this))};ci.prototype.Xk=function(a,b,c,d,e){this.i.Xk("/client_streamz/po/w/rl",a,b,c,d,e)};
di.prototype.Xk=function(a,b,c){this.i.Xk("/client_streamz/po/w/el",a,b,c)};g.w(ei,Ad);g.w(fi,Ad);g.w(gi,Ad);g.w(hi,Ad);var qba=[3,6,4],rba=[1],Y1=[1,2,3],rPa=[1,2,3];g.w(ii,Ad);var sba=[1];var vba={};g.k=mi.prototype;g.k.isEnabled=function(){if(!g.B.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Zz: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.Jda;d=c.rX||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Zz}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=vb(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,"",{Zz:0,path:b,domain:c});return d};
g.k.Yl=function(){return pi(this).keys};
g.k.zi=function(){return pi(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=pi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var pu=new mi("undefined"==typeof document?null:document);g.w(ui,Ad);var wba=[2];g.wi.prototype.u=0;g.wi.prototype.reset=function(){this.i=this.B=this.C;this.u=0};
g.wi.prototype.getValue=function(){return this.B};var Bi={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},yba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ci.prototype.u=null;Ci.prototype.getOptions=function(){return this.u||(this.u=this.C())};var Z1;g.Ua(Di,Ci);Di.prototype.i=function(){var a=Ei(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Di.prototype.C=function(){var a={};Ei(this)&&(a[0]=!0,a[1]=!0);return a};
Z1=new Di;var Hi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Xi=/#|$/,Aba=/[?&]($|#)/;g.Ua(g.aj,g.rf);var Eba=/^https?$/i,sPa=["POST","PUT"],bj=[];g.k=g.aj.prototype;g.k.AR=function(){this.dispose();g.$b(bj,this)};
g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.X+"; newUri="+a);b=b?b.toUpperCase():"GET";this.X=a;this.C="";this.u=0;this.Va=b;this.Ja=!1;this.D=!0;this.i=this.Ba?this.Ba.i():Z1.i();this.Aa=this.Ba?this.Ba.getOptions():Z1.getOptions();this.i.onreadystatechange=(0,g.D)(this.SM,this);try{vi(hj(this,"Opening Xhr")),this.Ka=!0,this.i.open(b,String(a),!0),this.Ka=!1}catch(h){vi(hj(this,"Error opening Xhr: "+h.message));ej(this,h);return}a=
c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.q(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.B.FormData&&a instanceof g.B.FormData;!g.Wb(sPa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.q(c);for(d=b.next();!d.done;d=b.next())c=g.q(d.value),d=c.next().value,c=c.next().value,this.i.setRequestHeader(d,c);this.Sa&&(this.i.responseType=this.Sa);"withCredentials"in this.i&&this.i.withCredentials!==this.S&&(this.i.withCredentials=this.S);try{kj(this),0<this.K&&(this.xa=Dba(this.i),vi(hj(this,"Will abort after "+this.K+"ms if incomplete, xhr2 "+this.xa)),
this.xa?(this.i.timeout=this.K,this.i.ontimeout=(0,g.D)(this.KH,this)):this.oa=g.Yh(this.KH,this.K,this)),vi(hj(this,"Sending request")),this.Z=!0,this.i.send(a),this.Z=!1}catch(h){vi(hj(this,"Send error: "+h.message)),ej(this,h)}};
g.k.KH=function(){"undefined"!=typeof fj&&this.i&&(this.C="Timed out after "+this.K+"ms, aborting",this.u=8,hj(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.i&&this.D&&(hj(this,"Aborting"),this.D=!1,this.I=!0,this.i.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),dj(this))};
g.k.ya=function(){this.i&&(this.D&&(this.D=!1,this.I=!0,this.i.abort(),this.I=!1),dj(this,!0));g.aj.je.ya.call(this)};
g.k.SM=function(){this.isDisposed()||(this.Ka||this.Z||this.I?jj(this):this.EV())};
g.k.EV=function(){jj(this)};
g.k.isActive=function(){return!!this.i};
g.k.isComplete=function(){return 4==g.gj(this)};
g.k.getStatus=function(){try{return 2<g.gj(this)?this.i.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.i&&this.isComplete())return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(nj,Ad);g.w(oj,Ad);g.w(xj,Ad);xj.prototype.N=function(){return null!=Bd(this,7)};
var Iba=[3,20,27];g.w(yj,Ad);var Jba=[3,5];g.w(Cj,Ad);var Kba=[5];g.w(Dj,Ad);var tPa;tPa=new function(a,b,c,d){this.u=a;this.fieldName=b;this.i=c;this.isRepeated=d}(175237375,{vda:0},Dj,0);g.w(Ij,g.rf);g.k=Ij.prototype;g.k.ya=function(){this.ND();g.rf.prototype.ya.call(this)};
g.k.dispatch=function(a){if(a instanceof xj)this.log(a);else{var b=new xj;a=Td(a);b=Cd(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.ub++;Cd(a,21,b);this.Z&&Cd(a,26,this.Z);if(!Bd(a,1)){b=a;var c=Date.now().toString();Cd(b,1,c)}null!=Bd(a,15)||Cd(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),Md(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new Lj(a));this.Aa||this.i.enabled||this.i.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ba)Mba(this);else{var d=Date.now();if(this.bb>d&&this.Ja<d)b&&b("throttled");else{var e=Bj(Aj(zj(this.D.clone()),this.u),this.K);d={};var f=this.Va();f&&(d.Authorization=f);var h=Jj(this);this.X&&(d["X-Goog-AuthUser"]=this.X,h=Vi(h,"authuser",this.X));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=Vi(h,"pageId",this.pageId));if(f&&this.Za===f)b&&b("stale-auth-token");else{this.u=[];this.i.enabled&&this.i.stop();this.K=0;var l=
Td(e),m;this.S&&this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,tR:1,Eq:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(u){c.I.reset();c.i.setInterval(c.I.getValue());if(u){var v=null;try{var y=JSON.parse(u.replace(")]}'\n",""));v=new Cj(y)}catch(z){}v&&(u=Number(Ed(v,1,"-1")),0<u&&(c.Ja=Date.now(),c.bb=c.Ja+u),v=v.I(tPa))&&(v=Wd(v,1,-1),-1!=v&&(c.Sa||Kj(c,v)))}a&&a()},r=function(u){var v=Ld(e,xj,3);
g.xi(c.I);c.i.setInterval(c.I.getValue());401===u&&f&&(c.Za=f);if(500<=u&&600>u||401===u||0===u)c.u=v.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ka?c.Ka.send(n,p,r):c.jb(n,p,r)};
m?m.then(function(u){n.Eq["Content-Encoding"]="gzip";n.Eq["Content-Type"]="application/binary";n.body=u;n.tR=2;t()},function(){t()}):t()}}}};
g.k.ND=function(){this.flush()};
g.w(Lj,g.ue);Mj.prototype.Qe=function(){var a=new Ij(1654,this.oa?this.oa:ti,"0",this.I,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.X){var b=this.X;Bd(b,1)||Cd(b,1,1);Md(a.D,1,b)}if(this.u){b=this.u;var c=Kd(a.D,oj,1),d=Kd(c,nj,11);d||(d=new nj);Cd(d,7,b);Md(c,11,d);Bd(c,1)||Cd(c,1,1);Md(a.D,1,c)}this.D&&(a.S=this.D);this.i&&(a.Z=this.i);this.S&&((b=this.S)?(a.C||(a.C=new ui),b=Td(b),Cd(a.C,4,b)):a.C&&Cd(a.C,4,void 0,!1));this.xa&&(b=this.xa,a.C||(a.C=new ui),Fd(a.C,2,b));this.Z&&(b=this.Z,
a.Sa=!0,Kj(a,b));return a};Nj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new ii,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new ei;h=Cd(h,1,f.u);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].An);h=Fd(h,3,m);l=[];m=[];n=g.q(f.Ur.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.C;for(var t=f.UD(p)||[],u=[],v=0;v<t.length;v++){var y=t[v];y=y&&y.EJ;var z=new hi;switch(r){case 3:Jd(z,1,rPa,Number(y));break;case 2:Jd(z,2,rPa,Number(y))}u.push(z)}r=
u;for(t=0;t<r.length;t++){u=r[t];v=new fi;u=Md(v,2,u);v=p;y=[];z=f;for(var C=[],F=0;F<z.i.length;F++)C.push(z.i[F].Bn);z=C;for(C=0;C<z.length;C++){F=z[C];var G=v[C],J=new gi;switch(F){case 3:Jd(J,1,Y1,String(G));break;case 2:Jd(J,2,Y1,Number(G));break;case 1:Jd(J,3,Y1,"true"==G)}y.push(J)}Nd(u,1,y);l.push(u)}}Nd(h,4,l);c.push(h);e.clear()}Nd(b,1,c);this.i.dispatch(b);this.i.flush()}};g.w(Pj,Error);Pj.prototype.name="RpcError";Qj.prototype.done=function(){this.logger.NL(this.i,Date.now()-this.startMillis)};
Rj.prototype.nw=function(){};
Rj.prototype.NL=function(){};
Rj.prototype.VE=function(a,b,c){return c};
Sj.prototype.nw=function(a){this.clientError.i.sP("/client_streamz/po/w/cec",a,this.Yk)};
Sj.prototype.NL=function(a,b){this.u.Xk(b,a,this.Yk)};
Sj.prototype.VE=function(a,b,c){function d(h){var l=Date.now()-f;e.B.Xk(l,a,b,h,e.Yk)}
var e=this,f=Date.now();c.then(function(){d(0)},function(h){h instanceof Pj?d(h.code):d(-1)});
return c};g.w(Tj,Ad);g.w(Uj,Ad);g.w(Vj,Ad);Vj.oT="bfkj";Xj.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.sR;return new Promise(function(d){c(function(e){d(e)},[a.OJ,
a.Oda])})})};
Xj.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.zX)&&a()})};
Xj.prototype.isDisposed=function(){return this.i};/*

 SPDX-License-Identifier: Apache-2.0
*/
var ek={};var Yj;g.w(ak,Zj);ak.prototype.toString=function(){return this.i};
var wwa=new ak("about:invalid#zTSz",ek);var dk=[ck("data"),ck("http"),ck("https"),ck("mailto"),ck("ftp"),new bk(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(hk,gk);hk.prototype.toString=function(){return this.i.toString()};g.w(pk,Ad);g.w(qk,Ad);g.w(rk,Ad);sk.prototype.ping=function(a,b){var c=this,d,e;return g.A(function(f){d=c.i();e=b||new rk;var h=Cd(e,1,c.Yk);Cd(h,2,a);return g.x(f,c.client.ping(e,d),0)})};ea.Object.defineProperties(uk.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(vk,Ad);wk.prototype.nz=function(){return this.B};
wk.prototype.getMetadata=function(){return this.u};xk.prototype.getMetadata=function(){return this.i};
xk.prototype.nz=function(){return this.u};
xk.prototype.getStatus=function(){return null};yk.prototype.getName=function(){return this.name};var uPa=new yk("/google.internal.waa.v1.Waa/Create",pk,vk,function(a){return Td(a)},function(a){return Ud(vk,a)});g.w(Ak,Ad);var Wba=new yk("/google.internal.waa.v1.Waa/GenerateIT",qk,Ak,function(a){return Td(a)},function(a){return Ud(Ak,a)});g.w(Bk,Ad);var vPa=new yk("/google.internal.waa.v1.Waa/Ping",rk,Bk,function(a){return Td(a)},function(a){return Ud(Bk,a)});var ica=Promise;g.w(Ck,Ad);Ck.prototype.getValue=function(){return Ed(this,2,"")};
Ck.prototype.setValue=function(a){null!=a&&0!==a.length?Cd(this,2,a):Cd(this,2,void 0,!1);return this};g.w(Dk,Ad);Dk.prototype.getMessage=function(){return Ed(this,2,"")};
var Yba=[3];Ek.prototype.tm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
Ek.prototype.removeListener=function(a,b){"data"==a?Kk(this.B,b):"metadata"==a?Kk(this.D,b):"status"==a?Kk(this.I,b):"end"==a?Kk(this.C,b):"error"==a&&Kk(this.u,b);return this};
Ek.prototype.cancel=function(){this.i.abort()};
Ek.prototype.cancel=Ek.prototype.cancel;Ek.prototype.removeListener=Ek.prototype.removeListener;Ek.prototype.on=Ek.prototype.tm;g.Ua(Lk,Ci);Lk.prototype.i=function(){return new Mk(this.D,this.B)};
Lk.prototype.C=vf({});g.Ua(Mk,g.rf);g.k=Mk.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.Z=b;this.readyState=1;Ok(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.X,method:this.oa,credentials:this.I,cache:void 0};a&&(b.body=a);(this.xa||g.B).fetch(new Request(this.Z,b)).then(this.DS.bind(this),this.Bz.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,Pk(this));this.readyState=0};
g.k.DS=function(a){if(this.i&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,Ok(this)),this.i&&(this.readyState=3,Ok(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.BS.bind(this),this.Bz.bind(this));else if("undefined"!==typeof g.B.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;Nk(this)}else a.text().then(this.CS.bind(this),this.Bz.bind(this))};
g.k.tS=function(a){if(this.i){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Pk(this):Ok(this);3==this.readyState&&Nk(this)}};
g.k.CS=function(a){this.i&&(this.response=this.responseText=a,Pk(this))};
g.k.BS=function(a){this.i&&(this.response=a,Pk(this))};
g.k.Bz=function(){this.i&&Pk(this)};
g.k.setRequestHeader=function(a,b){this.X.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.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(Mk.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.I=a?"include":"same-origin"}});g.Qk.prototype.toString=function(){var a=[],b=this.C;b&&a.push(gl(b,wPa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(gl(b,wPa,!0),"@"),a.push(Bg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(gl(c,"/"==c.charAt(0)?xPa:yPa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",gl(c,zPa));return a.join("")};
g.Qk.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Rk(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.i;c?g.Sk(b,a.i):c=null!=a.B;var d=a.getPath();if(c)g.Tk(b,a.B);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.i&&!this.K)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=gb(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.K=d:c=""!==a.u.toString();c?dl(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.Qk.prototype.clone=function(){return new g.Qk(this)};
g.Qk.prototype.getPath=function(){return this.K};
var wPa=/[#\/\?@]/g,yPa=/[#\?:]/g,xPa=/[#\?]/g,eca=/[#\?@]/g,zPa=/#/g;g.k=fl.prototype;g.k.add=function(a,b){jl(this);this.B=null;a=kl(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){jl(this);a=kl(this,a);return this.i.has(a)?(this.B=null,this.u=this.u-this.i.get(a).length,this.i.delete(a)):!1};
g.k.clear=function(){this.i=this.B=null;this.u=0};
g.k.isEmpty=function(){jl(this);return 0==this.u};
g.k.forEach=function(a,b){jl(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Yl=function(){jl(this);for(var a=Array.from(this.i.values()),b=Array.from(this.i.keys()),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.zi=function(a){jl(this);var b=[];if("string"===typeof a)ll(this,a)&&(b=b.concat(this.i.get(kl(this,a))));else{a=Array.from(this.i.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){jl(this);this.B=null;a=kl(this,a);ll(this,a)&&(this.u=this.u-this.i.get(a).length);this.i.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.zi(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.i)return"";for(var a=[],b=Array.from(this.i.keys()),c=0;c<b.length;c++){var d=b[c],e=Bg(d);d=this.zi(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+Bg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new fl;a.B=this.B;this.i&&(a.i=new Map(this.i),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)cca(arguments[b],function(c,d){this.add(d,c)},this)};g.Ua(g.nl,g.E);var APa=[];g.k=g.nl.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(APa[0]=b.toString()),b=APa);for(var e=0;e<b.length;e++){var f=ff(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.i[f.key]=f}return this};
g.k.Wz=function(a,b,c,d){return ol(this,a,b,c,d)};
g.k.qc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.qc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Oa(d)?!!d.capture:!!d,e=e||this.u||this,c=gf(c),d=!!d,b=Ae(a)?a.Nv(b,c,d,e):a?(a=jf(a))?a.Nv(b,c,d,e):null:null,b&&(of(b),delete this.i[b.key])};
g.k.ya=function(){g.nl.je.ya.call(this);g.pl(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};ql.prototype.isInputValid=function(){return this.B};sl.prototype.isInputValid=function(){return 3!=this.u};
sl.prototype.oe=function(){return this.I};
sl.prototype.py=function(){return!0};
sl.prototype.parse=function(a){function b(m){m&128&&tl(f,h,l,"invalid tag");2!=(m&7)&&tl(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&tl(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&tl(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())}
function d(m){f.D[f.S++]=m;f.S==f.i&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.u){case 3:tl(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.u);}f.X++;l++}a=f.K;f.K=[];return 0<a.length?a:null};ul.prototype.isInputValid=function(){return null===this.i};
ul.prototype.oe=function(){return this.i};
ul.prototype.py=function(){return!1};
ul.prototype.parse=function(a){null!==this.i&&vl(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||rl(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=Ic(c.i.substr(0,4*d))}catch(h){rl(c,c.i,h.message)}c.u+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){vl(this,a,h.message)}this.u+=a.length;return b};var BPa={INIT:0,Nu:1,AC:2,Lr:3,ou:4,nu:5,STRING:6,uC:7,wI:8,KI:9,LI:10,MI:11,xH:12,yH:13,zH:14,BH:15,AI:16,BI:17,CI:18,aR:19,yC:20};g.k=xl.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.oe=function(){return this.X};
g.k.done=function(){return 2===this.D};
g.k.py=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(wl(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var v;;){v=a[t++];if(!v)break;f.B++;switch(f.i){case m.INIT:"{"===v?f.i=m.AC:"["===v?f.i=m.ou:wl(v)||yl(f,a,t);continue;case m.uC:case m.AC:if(wl(v))continue;if(f.i===m.uC)h.push(m.wI);else if("}"===v){e("{}");f.i=d();continue}else h.push(m.Lr);'"'===v?f.i=m.STRING:yl(f,a,t);continue;case m.wI:case m.Lr:if(wl(v))continue;":"===v?(f.i===m.Lr&&(h.push(m.Lr),f.u++),f.i=m.Nu):"}"===v?(f.u--,e(),f.i=d()):","===v?(f.i===m.Lr&&h.push(m.Lr),f.i=m.uC):yl(f,a,t);continue;case m.ou:case m.Nu:if(wl(v))continue;
if(f.i===m.ou)if(f.u++,f.i=m.Nu,"]"===v){f.u--;if(0===f.u){f.i=m.nu;return}e("[]");f.i=d();continue}else h.push(m.nu);'"'===v?f.i=m.STRING:"{"===v?f.i=m.AC:"["===v?f.i=m.ou:"t"===v?f.i=m.KI:"f"===v?f.i=m.xH:"n"===v?f.i=m.AI:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.i=m.yC:yl(f,a,t));continue;case m.nu:if(","===v)h.push(m.nu),f.i=m.Nu,1===f.u&&(r=t);else if("]"===v){f.u--;if(0===f.u)return;e();f.i=d()}else if(wl(v))continue;else yl(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.S;)if(v=a[t++],
4===f.S?f.S=0:f.S++,!v)break a;if('"'===v&&!f.K){f.i=d();break}if("\\"===v&&!f.K&&(f.K=!0,v=a[t++],!v))break;if(f.K)if(f.K=!1,"u"===v&&(f.S=1),v=a[t++])continue;else break;l.lastIndex=t;v=l.exec(a);if(!v){t=a.length+1;break}t=v.index+1;v=a[v.index];if(!v)break}f.B+=t-y;continue;case m.KI:if(!v)continue;"r"===v?f.i=m.LI:yl(f,a,t);continue;case m.LI:if(!v)continue;"u"===v?f.i=m.MI:yl(f,a,t);continue;case m.MI:if(!v)continue;"e"===v?f.i=d():yl(f,a,t);continue;case m.xH:if(!v)continue;"a"===v?f.i=m.yH:
yl(f,a,t);continue;case m.yH:if(!v)continue;"l"===v?f.i=m.zH:yl(f,a,t);continue;case m.zH:if(!v)continue;"s"===v?f.i=m.BH:yl(f,a,t);continue;case m.BH:if(!v)continue;"e"===v?f.i=d():yl(f,a,t);continue;case m.AI:if(!v)continue;"u"===v?f.i=m.BI:yl(f,a,t);continue;case m.BI:if(!v)continue;"l"===v?f.i=m.CI:yl(f,a,t);continue;case m.CI:if(!v)continue;"l"===v?f.i=d():yl(f,a,t);continue;case m.aR:"."===v?f.i=m.yC:yl(f,a,t);continue;case m.yC:if(-1!=="0123456789.eE+-".indexOf(v))continue;else t--,f.B--,f.i=
d();continue;default:yl(f,a,t)}}}
function d(){var v=h.pop();return null!=v?v:m.Nu}
function e(v){1<f.u||(v||(v=-1===r?f.C+a.substring(p,t):a.substring(r,t)),f.Z?f.I.push(v):f.I.push(JSON.parse(v)),r=t)}
for(var f=this,h=f.oa,l=f.xa,m=BPa,n=a.length,p=0,r=-1,t=0;t<n;)switch(f.D){case 3:return yl(f,a,t),null;case 2:return b()&&yl(f,a,t),null;case 0:if(b()){var u=a[t++];f.B++;if("["===u){f.D=1;p=t;f.i=m.ou;continue}else yl(f,a,t)}return null;case 1:return c(),0===f.u&&f.i==m.nu?(f.D=2,f.C=a.substring(t)):f.C=-1===r?f.C+a.substring(p):a.substring(r),0<f.I.length?(u=f.I,f.I=[],u):null}return null};zl.prototype.isInputValid=function(){return null===this.D};
zl.prototype.oe=function(){return this.D};
zl.prototype.py=function(){return!1};
zl.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new xl({Yca:!0,MR:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!wl(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,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.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.u=5,h++,f.i++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,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.C.length?(a=f.C,f.C=[],a):null};Al.prototype.getStatus=function(){return this.C};
Al.prototype.Z=function(a){a=a.target;try{if(a==this.i)a:{var b=g.gj(this.i),c=this.i.u,d=this.i.getStatus(),e=g.lj(this.i);a=[];if(mj(this.i)instanceof Array){var f=mj(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.X=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Bl(this,7):7==c?Bl(this,8):d||Bl(this,3)),this.u||(this.u=hca(this.i),null==this.u&&Bl(this,5)),2<this.C)Cl(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.py())for(var l=0;l<h;l++){var m=
this.u.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.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){Bl(this,5);Cl(this);break a}}else if(e.length>this.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){Bl(this,5);Cl(this);break a}}4==b?(0!=e.length||
this.X?Bl(this,2):Bl(this,4),Cl(this)):Bl(this,1)}}}catch(p){Bl(this,6),Cl(this)}};g.k=Dl.prototype;g.k.tm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.tm(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.$b(c,b);(a=this.i[a])&&g.$b(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.AU=function(a){var b=this.u.data;b&&El(a,b);(b=this.i.data)&&El(a,b);this.i.data=[]};
g.k.lW=function(){switch(this.B.getStatus()){case 1:Fl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Fl(this,"error");break;case 8:Fl(this,"close");break;case 2:Fl(this,"end")}};Gl.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Hl(function(h){var l=h.nz(),m=h.getMetadata(),n=Il(e,!1);m=Jl(e,m,n,f+l.getName());var p=Kl(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,zk(d,b,c))};Ll.prototype.create=function(a,b){return tk(this.i,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},uPa)};
Ll.prototype.ping=function(a,b){return tk(this.i,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},vPa)};g.w(Pl,Error);g.w(Ql,g.E);g.w(Tl,Ql);Tl.prototype.Xs=function(a){++this.C>=this.D&&this.u.resolve();var b=new Qj(this.logger,"C"),c=new uk(this.B(a.OJ));b.done();b=c.u;a=this.i;a=Kd(a,le,3===Id(a,hPa)?3:-1);if(!a){a=new le;c=Kc(c.B);Cd(a,2,c);c=this.i;var d=a;c.i||(c.i={});var e=d?d.Vf:d;c.i[3]=d;Jd(c,3,hPa,e)}Cd(a,1,b);return ce(this.i,Gaa)};
g.w(Ul,Ql);Ul.prototype.Xs=function(){return this.i};
g.w(Vl,Ql);Vl.prototype.Xs=function(){if(this.i){var a=this.i;this.i=void 0;return a}return this.B};
Ol.prototype.isReady=function(){return!!this.i};
Ol.prototype.ready=function(){var a=this;return g.A(function(b){return g.x(b,a.u.promise,0)})};
Ol.prototype.Xs=function(a){var b,c=new Qj(this.logger,"m");if(!this.i)throw Error("SGK:Not ready");try{return this.i.Xs(a)}catch(e){var d=new Pl(5,e);this.logger.nw(d.code);null===(b=this.onError)||void 0===b?void 0:b.call(this,d,"ME");return(new Vl(d)).Xs()}finally{c.done()}};var Fo;Fo=["av.default","js","unreleased"].slice(-1)[0];var en=document,km=window;var sda={NONE:0,D2:1},Yca={iP:0,X9:1,W9:2,Y9:3};Yl.prototype.isVisible=function(){return this.Zp?.3<=this.bd:.5<=this.bd};var zn={p_:0,S2:1},Vca={NONE:0,Y3:1,t3:2};Zl.prototype.getValue=function(){return this.u};
g.w($l,Zl);$l.prototype.setValue=function(a){if(null!==this.u||!g.Pe(this.B,a))return!1;this.u=a;return!0};
g.w(am,Zl);am.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
g.w(bm,Zl);bm.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};cm.prototype.disable=function(){this.u=!1};
cm.prototype.enable=function(){this.u=!0};
cm.prototype.isEnabled=function(){return this.u};
cm.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var tda=!g.Jc&&!Ib();hm.prototype.now=function(){return 0};
hm.prototype.u=function(){return 0};
hm.prototype.B=function(){return 0};
hm.prototype.i=function(){return 0};g.w(jm,hm);jm.prototype.now=function(){return im()&&km.performance.now?km.performance.now():hm.prototype.now.call(this)};
jm.prototype.u=function(){return im()&&km.performance.memory?km.performance.memory.totalJSHeapSize||0:hm.prototype.u.call(this)};
jm.prototype.B=function(){return im()&&km.performance.memory?km.performance.memory.usedJSHeapSize||0:hm.prototype.B.call(this)};
jm.prototype.i=function(){return im()&&km.performance.memory?km.performance.memory.jsHeapSizeLimit||0:hm.prototype.i.call(this)};var wca=yf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.B.addEventListener("test",null,b)}catch(c){}return a});var pm=new function(a,b){this.flag=a;this.defaultValue=void 0===b?!1:b}(1959);rm.prototype.isVisible=function(){return 1===qm(en)};g.If("csi.gstatic.com");g.If("googleads.g.doubleclick.net");g.If("pagead2.googlesyndication.com");g.If("partner.googleadservices.com");g.If("pubads.g.doubleclick.net");g.If("securepubads.g.doubleclick.net");g.If("tpc.googlesyndication.com");var Aca=/https?:\/\/[^\/]+/,yca={PY:"allow-forms",QY:"allow-modals",RY:"allow-orientation-lock",SY:"allow-pointer-lock",TY:"allow-popups",UY:"allow-popups-to-escape-sandbox",VY:"allow-presentation",WY:"allow-same-origin",XY:"allow-scripts",YY:"allow-top-navigation",ZY:"allow-top-navigation-by-user-activation"},Dca=yf(function(){return zca()});g.k=zm.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new zm(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof zm?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.Dm.prototype;g.k.clone=function(){return new g.Dm(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.wg?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.getSize=function(){return new g.yg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Im={};var cn=!!window.google_async_iframe_id,dn=cn&&window.parent||window;var Jca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");sn.prototype.setInterval=function(a,b){return km.setInterval(a,b)};
sn.prototype.clearInterval=function(a){km.clearInterval(a)};
sn.prototype.setTimeout=function(a,b){return km.setTimeout(a,b)};
sn.prototype.clearTimeout=function(a){km.clearTimeout(a)};wn.prototype.getContext=function(){if(!this.i){if(!km)throw Error("Context has not been set and window is undefined.");this.i=om(sn)}return this.i};g.w(xn,Ad);var Xca={wba:0,S3:1,VIDEO:2,s2:3,Nba:4,wZ:5};var Wca={w9:1,hR:2,z7:3};Of(Hf(g.If("https://pagead2.googlesyndication.com/pagead/osd.js")));An.prototype.XF=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){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 In=g.B.performance,CPa=!!(In&&In.mark&&In.measure&&In.clearMarks),Gn=yf(function(){var a;if(a=CPa){var b;if(null===$1){$1="";try{a="";try{a=g.B.top.location.hash}catch(c){a=g.B.location.hash}a&&($1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=$1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Hn.prototype.disable=function(){this.i=!1;this.events!=this.u.google_js_reporting_queue&&(Gn()&&g.sc(this.events,Jn),this.events.length=0)};
Hn.prototype.start=function(a,b){if(!this.i)return null;var c=Fn()||En();a=new $ca(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";In&&Gn()&&In.mark(b);return a};
Hn.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=Fn()||En();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";In&&Gn()&&In.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Mn.prototype.YE=function(a,b,c,d,e){e=e||this.jK;try{var f=new kn;f.i.push(1);f.u[1]=ln("context",a);b.error&&b.meta&&b.id||(b=new Nn(On(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.u[2]=ln("msg",h)}var l=b.meta||{};if(this.TC)try{this.TC(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.u[3]=b;var m=jn();if(m.u){var n=m.u.url||"";f.i.push(4);f.u[4]=ln("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?Ki(m.i.url):""}];f.i.push(5);f.u[5]=p;Cn(this.i,e,f,!1,c)}catch(r){try{Cn(this.i,
e,{context:"ecmserr",rctx:a,msg:On(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.CG};
g.w(Nn,Dn);var Ln,Qn,Kn=new Hn;(function(){Ln=new Zca;Qn=new Mn;var a=fn();a&&a.document&&("complete"==a.document.readyState?Sn():Kn.i&&mm(a,"load",function(){Sn()}))})();var bda=Date.now(),Zn=-1,Xn=-1,Dp,$n=-1,Yn=!1;ao.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Bm(this.i,a.i)&&!0};bo.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.S==a.S&&Bm(this.B,a.B)&&Bm(this.I,a.I)&&this.i==a.i&&this.D==a.D&&this.u==a.u&&this.K==a.K};var DPa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yp={dR:"start",lP:"firstquartile",YQ:"midpoint",eR:"thirdquartile",fP:"complete",XQ:"metric",PAUSE:"pause",bR:"resume",cR:"skip",gR:"viewable_impression",ZQ:"mute",fR:"unmute",mP:"fullscreen",kP:"exitfullscreen",eP:"bufferstart",dP:"bufferfinish",nP:"fully_viewable_audible_half_duration_impression",WQ:"measurable_impression",YO:"abandon",jP:"engagedview",oP:"impression",gP:"creativeview",VQ:"loaded",E9:"progress",CLOSE:"close",
g_:"collapse",F8:"overlay_resize",G8:"overlay_unmeasurable_impression",H8:"overlay_unviewable_impression",J8:"overlay_viewable_immediate_impression",I8:"overlay_viewable_end_of_session_impression",hP:"custom_metric_viewable",A8:"verification_debug",ZO:"audio_audible",bP:"audio_measurable",aP:"audio_impression"},Aea="start firstquartile midpoint thirdquartile resume loaded".split(" "),Bea=["start","firstquartile","midpoint","thirdquartile"],Hda=["abandon"],vq={UNKNOWN:-1,dR:0,lP:1,YQ:2,eR:3,fP:4,XQ:5,
PAUSE:6,bR:7,cR:8,gR:9,ZQ:10,fR:11,mP:12,kP:13,nP:14,WQ:15,YO:16,jP:17,oP:18,gP:19,VQ:20,hP:21,eP:22,dP:23,aP:24,bP:25,ZO:26};var dda={CY:"addEventListener",v3:"getMaxSize",w3:"getScreenSize",x3:"getState",y3:"getVersion",S9:"removeEventListener",x4:"isViewable"};if(en&&en.URL){var EPa,wm=en.URL;EPa=!!wm&&0<Cca().length;Qn.CG=!EPa};mo.prototype.update=function(a){a&&a.document&&(this.K=go(!1,a,this.isMobileDevice),this.i=go(!0,a,this.isMobileDevice),oo(this,a),no(this,a))};ro.prototype.cancel=function(){tn().clearTimeout(this.i);this.i=null};
ro.prototype.schedule=function(){var a=this;this.i=tn().setTimeout(yn(Bn().i.i,Un(143,function(){a.u++;a.B.sample()})),cda())};g.k=so.prototype;g.k.tu=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.ys=function(){return this.i.Ba};
g.k.Xv=function(){return this.i.Z};
g.k.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Ba=a,this.S=0,this.i!=this||xo(this)};
g.k.getName=function(){return this.i.La};
g.k.Jn=function(){return this.i.BK()};
g.k.BK=function(){return{}};
g.k.dm=function(){return this.i.S};
g.k.LH=function(){var a=po();a.i=go(!0,this.B,a.isMobileDevice)};
g.k.MH=function(){no(po(),this.B)};
g.k.JK=function(){return this.C.i};
g.k.sample=function(){};
g.k.isActive=function(){return this.i.I};
g.k.Js=function(a){var b=this.i;this.i=a.dm()>=this.S?a:this;b!==this.i?(this.I=this.i.I,xo(this)):this.I!==this.i.I&&(this.I=this.i.I,xo(this))};
g.k.Pn=function(a){if(a.u===this.i){var b=!this.C.equals(a,this.X);this.C=a;b&&wo(this)}};
g.k.al=function(){return this.X};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=yo.prototype;g.k.ZB=function(){return!0};
g.k.uu=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.$b(a.D,this);a.X&&this.al()&&vo(a);this.uu();this.Z=!0}};
g.k.isDisposed=function(){return this.Z};
g.k.Jn=function(){return this.u.Jn()};
g.k.dm=function(){return this.u.dm()};
g.k.ys=function(){return this.u.ys()};
g.k.Xv=function(){return this.u.Xv()};
g.k.Js=function(){};
g.k.Pn=function(){this.dn()};
g.k.al=function(){return this.oa};g.k=zo.prototype;g.k.dm=function(){return this.i.dm()};
g.k.ys=function(){return this.i.ys()};
g.k.Xv=function(){return this.i.Xv()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Rx(a,b,c),to(this.i,d));return d};
g.k.NH=function(){return this.vu()};
g.k.vu=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(to(this.i,this),this.C=a,!0):!1};
g.k.Js=function(a){0==a.dm()&&this.C(a.ys(),this)};
g.k.Pn=function(){};
g.k.al=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Jn=function(){return{}};Co.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new Ao(a,b,c);d=new Ao(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};Go.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Eo(this.i);0<b.length&&(a+="?"+b);return a};Jo.prototype.update=function(a,b,c){a&&(this.i+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var mda=[1,.75,.5,.3,0];Ko.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};To.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.bd):b.bd;this.oa=Math.max(this.oa,b.bd);this.xa=-1!=this.xa?Math.min(this.xa,b.wh):b.wh;this.Ba=Math.max(this.Ba,b.wh);this.Za.update(b.wh,c.wh,b.i,a,d);this.u.update(b.bd,c.bd,b.i,a,d);c=d||c.Zp!=b.Zp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)};
To.prototype.cq=function(){return this.La.B>=this.Wa};var FPa=new zm(0,0,0,0);var rda=new zm(0,0,0,0);g.w(Xo,g.E);g.k=Xo.prototype;g.k.ya=function(){this.Qg.i&&(this.Ap.kF&&(nm(this.Qg.i,"mouseover",this.Ap.kF),this.Ap.kF=null),this.Ap.iF&&(nm(this.Qg.i,"mouseout",this.Ap.iF),this.Ap.iF=null));this.yx&&this.yx.dispose();this.Nd&&this.Nd.dispose();delete this.dA;delete this.aF;delete this.EO;delete this.Qg.Yn;delete this.Qg.i;delete this.Ap;delete this.yx;delete this.Nd;delete this.featureSet;g.E.prototype.ya.call(this)};
g.k.Kn=function(){return this.Nd?this.Nd.i:this.position};
g.k.XF=function(a){Bn().XF(a)};
g.k.al=function(){return!1};
g.k.qz=function(){return new To};
g.k.Wg=function(){return this.dA};
g.k.EK=function(a){return $o(this,a,1E4)};
g.k.Qa=function(a,b,c,d,e,f,h){this.Rs||(this.Oy&&(a=this.dD(a,c,e,h),d=d&&this.wf.bd>=(this.Zp()?.3:.5),this.jH(f,a,d),this.lastUpdateTime=b,0<a.bd&&-1===this.mO&&(this.mO=b),-1==this.rO&&this.cq()&&(this.rO=b),-2==this.UE&&(this.UE=Vo(this.Kn())?a.bd:-1),this.wf=a),this.aF(this))};
g.k.jH=function(a,b,c){this.Wg().update(a,b,this.wf,c)};
g.k.dE=function(){return new Yl};
g.k.dD=function(a,b,c,d){c=this.dE();c.i=b;b=tn().u;b=0===qm(en)?-1:b.isVisible()?0:1;c.u=b;c.bd=this.qD(a);c.Zp=this.Zp();c.wh=d;return c};
g.k.qD=function(a){return 0===this.opacity&&1===fm(this.featureSet,"opac")?0:a};
g.k.Zp=function(){return!1};
g.k.jB=function(){return this.ZS||this.cT};
g.k.kA=function(){Wn()};
g.k.jF=function(){Wn()};
g.k.Ik=function(){return 0};
g.k.cq=function(){return this.dA.cq()};g.cp="StopIteration"in g.B?g.B.StopIteration:{message:"StopIteration",stack:""};g.ap.prototype.Dj=function(){throw g.cp;};
g.ap.prototype.next=function(){return g.a2};
g.a2={done:!0,value:void 0};g.ap.prototype.Kg=function(){return this};g.w(ep,Yl);hp.prototype.getValue=function(){return this.u};
hp.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.u&=~(1<<a):this.i&1<<a||!b||(this.u|=1<<a),this.i|=1<<a)};g.w(ip,To);
ip.prototype.update=function(a,b,c,d){if(!b.paused){To.prototype.update.call(this,a,b,c,d);var e=fp(b)&&fp(c),f=.5<=(d?Math.min(b.bd,c.bd):c.bd);ko(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.X+=e?a:0);this.i.update(b.bd,c.bd,b.i,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.bb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ja.update(a,b.isVisible());this.Va.update(a,1<=b.bd);this.Sa.update(a,
fp(b))}};kp.prototype.D=function(a){this.u||(this.i(a)?(a=cr(this.X,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.w(lp,kp);lp.prototype.i=function(){return!0};
lp.prototype.I=function(){return!1};
lp.prototype.getId=function(){var a=this,b=Qe(yp,function(c){return c==a.B});
return vq[b].toString()};
lp.prototype.toString=function(){var a="";this.I()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.w(mp,lp);mp.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.K.push(b);lp.prototype.D.call(this,a)};g.w(np,yo);g.k=np.prototype;g.k.gD=function(){if(this.element){var a=this.element,b=this.u.i.B;try{try{var c=io(a.getBoundingClientRect())}catch(n){c=new zm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Sm(a,b),h=f.x,l=f.y;var m=new zm(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=FPa.clone()}this.i=m}};
g.k.wJ=function(){this.C=this.u.C.i};
g.k.pL=function(a){var b=1==fm(this.featureSet,"od");return qda(a,this.C,this.element,b)};
g.k.xJ=function(){this.timestamp=Wn()};
g.k.dn=function(){this.xJ();this.gD();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.yg(a.videoWidth,a.videoHeight);a=this.i;var c=Am(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.wJ();
a=this.i;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new zm(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 zm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new zm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.pL(c)?c=new zm(0,0,0,0):(d=po().C,b=new zm(0,d.height,d.width,0),d=Wo(c,this.i),e=Wo(c,po().i),b=Wo(c,b)));c=c.top>=c.bottom||c.left>=c.right?new zm(0,0,0,
0):Cm(c,-this.i.left,-this.i.top);qo()||(e=d=0);this.K=new bo(a,this.element,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var GPa=new zm(0,0,0,0);g.w(op,np);g.k=op.prototype;g.k.ZB=function(){this.B();return!0};
g.k.Pn=function(){np.prototype.dn.call(this)};
g.k.xJ=function(){};
g.k.gD=function(){};
g.k.dn=function(){this.B();np.prototype.dn.call(this)};
g.k.Js=function(a){a=a.isActive();a!==this.I&&(a?this.B():(po().i=new zm(0,0,0,0),this.i=new zm(0,0,0,0),this.C=new zm(0,0,0,0),this.timestamp=-1));this.I=a};var b2={},Gda=(b2.firstquartile=0,b2.midpoint=1,b2.thirdquartile=2,b2.complete=3,b2);g.w(qp,Xo);g.k=qp.prototype;g.k.al=function(){return!0};
g.k.jm=function(){return 2==this.xg};
g.k.EK=function(a){return $o(this,a,Math.max(1E4,this.B/3))};
g.k.Qa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.Ze(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ka=m.isYouTube||this.Ka;e=Cda(this,b);1===up(this)&&(f=e);Xo.prototype.Qa.call(this,a,b,c,d,m,f,h);this.mq&&this.mq.u&&g.sc(this.I,function(n){n.D(l)})};
g.k.jH=function(a,b,c){Xo.prototype.jH.call(this,a,b,c);tp(this).update(a,b,this.wf,c);this.Za=fp(this.wf)&&fp(b);-1==this.Ba&&this.Wa&&(this.Ba=this.Wg().B.i);this.jf.B=0;a=this.cq();b.isVisible()&&gp(this.jf,"vs");a&&gp(this.jf,"vw");ko(b.volume)&&gp(this.jf,"am");fp(b)&&gp(this.jf,"a");this.Ls&&gp(this.jf,"f");-1!=b.u&&(gp(this.jf,"bm"),1==b.u&&gp(this.jf,"b"));fp(b)&&b.isVisible()&&gp(this.jf,"avs");this.Za&&a&&gp(this.jf,"avw");0<b.bd&&gp(this.jf,"pv");vp(this,this.Wg().B.i,!0)&&gp(this.jf,"gdr");
2E3<=Qo(this.Wg().u,1)&&gp(this.jf,"pmx")};
g.k.qz=function(){return new ip};
g.k.Wg=function(){return this.dA};
g.k.dE=function(){return new ep};
g.k.dD=function(a,b,c,d){a=Xo.prototype.dD.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ls;a.paused=this.jm();a.volume=c.volume;ko(a.volume)||(this.bb++,b=this.wf,ko(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.qD=function(a){return po(),this.Ls?1:Xo.prototype.qD.call(this,a)};
g.k.Ik=function(){return 1};
g.k.getDuration=function(){return this.B};var HPa=g.Ta();Fp.prototype.reset=function(){this.i=[];this.u=[]};
var Ip=om(Fp);g.w(Wp,zo);g.k=Wp.prototype;g.k.getName=function(){return(this.u?this.u:this.i).getName()};
g.k.Jn=function(){return(this.u?this.u:this.i).Jn()};
g.k.dm=function(){return(this.u?this.u:this.i).dm()};
g.k.init=function(a){var b=!1;(0,g.sc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,to(this.i,this));return b};
g.k.dispose=function(){(0,g.sc)(this.B,function(a){a.dispose()});
zo.prototype.dispose.call(this)};
g.k.NH=function(){return lo(this.B,function(a){return a.tu()})};
g.k.vu=function(){return lo(this.B,function(a){return a.tu()})};
g.k.Rx=function(a,b,c){return new np(a,this.i,b,c)};
g.k.Pn=function(a){this.u=a.u};var Tda={threshold:[0,.3,.5,.75,1]};g.w(Xp,np);g.k=Xp.prototype;g.k.ZB=function(){var a=this;this.X||(this.X=Wn());if(Tn(298,function(){return Uda(a)}))return!0;
this.u.fail("msf");return!1};
g.k.uu=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.dn=function(){var a=Yp(this);0<a.length&&Zp(this,a);np.prototype.dn.call(this)};
g.k.gD=function(){};
g.k.pL=function(){return!1};
g.k.wJ=function(){};
g.k.Jn=function(){var a={};return Object.assign(this.u.Jn(),(a.niot_obs=this.X,a.niot_cbk=this.S,a))};
g.k.getName=function(){return"nio"};g.w($p,zo);$p.prototype.getName=function(){return"nio"};
$p.prototype.vu=function(){return!po().u&&null!=this.i.i.B.IntersectionObserver};
$p.prototype.Rx=function(a,b,c){return new Xp(a,this.i,b,c)};g.w(bq,so);bq.prototype.JK=function(){return po().i};
bq.prototype.tu=function(){var a=aq();this.S!==a&&(this.i!=this&&a>this.i.S&&(this.i=this,xo(this)),this.S=a);return 2==a};dq.prototype.sample=function(){gq(this,Jp(),!1)};
dq.prototype.C=function(){var a=qo(),b=Wn();a?(Yn||(Zn=b,g.sc(Ip.i,function(c){var d=c.Wg();d.Ka=jp(d,b,1!=c.xg)})),Yn=!0):(this.K=iq(this,b),Yn=!1,Dp=b,g.sc(Ip.i,function(c){c.Oy&&(c.Wg().S=b)}));
gq(this,Jp(),!a)};
var eq=om(dq);var jq=null,$q="",Zq=!1;var c2=pq([void 0,1,2,3,4,8,16]),d2=pq([void 0,4,8,16]),IPa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:oq("p0",d2),p1:oq("p1",d2),p2:oq("p2",d2),p3:oq("p3",d2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:nq("mtos1",[0,2,4],!1,d2),mtos2:nq("mtos2",[0,2,4],!1,d2),mtos3:nq("mtos3",[0,2,4],!1,d2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:oq("a0",d2),a1:oq("a1",d2),a2:oq("a2",d2),a3:oq("a3",d2),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:oq("c0",d2),c1:oq("c1",d2),c2:oq("c2",d2),c3:oq("c3",d2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:oq("qmtos",c2),qnc:oq("qnc",c2),qmv:oq("qmv",c2),qnv:oq("qnv",c2),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:oq("ss0",d2),ss1:oq("ss1",d2),ss2:oq("ss2",d2),ss3:oq("ss3",d2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},JPa={c:kq("c"),
at:"at",atos:nq("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:mq(),j:"dom",mtos:nq("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:kq("ss"),vsv:vf("w2"),t:"t"},KPa={atos:"atos",avt:nq("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:kq("ss"),t:"t"},LPa={a:"a",tos:mq(),at:"at",c:kq("c"),mtos:nq("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:vf("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},MPa={tos:mq(),at:"at",c:kq("c"),mtos:nq("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:vf("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:nq("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.pn(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var tq=rq().yk,sq=rq().version;var bea={U2:"visible",xZ:"audible",waa:"time",xaa:"timetype"},yq={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.w(zq,lp);zq.prototype.getId=function(){return this.K};
zq.prototype.I=function(){return!0};
zq.prototype.i=function(a){var b=a.Wg(),c=a.getDuration();return lo(this.S,function(d){if(void 0!=d.i)var e=dea(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Bq,Aq);Bq.prototype.u=function(){return null};
Bq.prototype.B=function(){return[]};g.w(Eq,eea);Eq.prototype.i=function(a){var b=new Cq;b.i=Dq(a,IPa);b.B=Dq(a,KPa);return b};g.w(Fq,lp);Fq.prototype.i=function(a){var b=Oo(a.Wg().i,1);return vp(a,b)};g.w(Gq,Aq);g.w(Hq,lp);Hq.prototype.i=function(a){return a.Wg().cq()};g.w(Iq,mp);Iq.prototype.i=function(a){var b=g.Wb(this.K,fm(Bn().featureSet,"ovms"));return!a.Rs&&(0!=a.xg||b)};g.w(Jq,Gq);Jq.prototype.u=function(){return new Iq(this.i)};
Jq.prototype.B=function(){return[new Hq("viewable_impression",this.i),new Fq(this.i)]};g.w(Kq,op);Kq.prototype.B=function(){var a=g.Ja("ima.admob.getViewability"),b=fm(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Kq.prototype.getName=function(){return"gsv"};g.w(Lq,zo);Lq.prototype.getName=function(){return"gsv"};
Lq.prototype.vu=function(){var a=po();Bn();return a.u&&!1};
Lq.prototype.Rx=function(a,b,c){return new Kq(this.i,b,c)};g.w(Mq,op);Mq.prototype.B=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=fm(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Se(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=jo(d.opt_nativeViewBounds||{});var h=a.u.C;h.i=f?GPa.clone():jo(e);a.timestamp=d.opt_nativeTime||-1;po().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Mq.prototype.getName=function(){return"nis"};g.w(Nq,zo);Nq.prototype.getName=function(){return"nis"};
Nq.prototype.vu=function(){var a=po();Bn();return a.u&&!1};
Nq.prototype.Rx=function(a,b,c){return new Mq(this.i,b,c)};g.w(Oq,so);g.k=Oq.prototype;g.k.tu=function(){return null!=this.u.Cj};
g.k.BK=function(){var a={};this.Ja&&(a.mraid=this.Ja);this.xa&&(a.mlc=1);a.mtop=this.u.AX;this.K&&(a.mse=this.K);this.Ka&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Lo=function(a){var b=g.Ba.apply(1,arguments);try{return this.u.Cj[a].apply(this.u.Cj,b)}catch(c){Vn(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.Xv();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;po().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Sq(this):eo(this.B,"load",function(){tn().setTimeout(Un(292,function(){return Sq(a)}),100)},292);
return!0};
g.k.LH=function(){var a=po(),b=Vq(this,"getMaxSize");a.i=new zm(0,b.width,b.height,0)};
g.k.MH=function(){po().C=Vq(this,"getScreenSize")};
g.k.dispose=function(){Tq(this);so.prototype.dispose.call(this)};g.k=Wq.prototype;g.k.ov=function(a){Yo(a,!1);Qda(a)};
g.k.xz=function(){};
g.k.bx=function(a,b,c,d){var e=this;b=c?b:-1;this.u||(this.u=this.UJ());c=this.u?new Jq(this.u):new Bq;a=new qp(km,a,b,7,c.u(),c.B());a.Ff=d;tca(a.featureSet);em(a.featureSet,"queryid",a.Ff);a.XF("");wda(a,function(){return e.QK.apply(e,g.ma(g.Ba.apply(0,arguments)))},function(){return e.GS.apply(e,g.ma(g.Ba.apply(0,arguments)))});
(d=om(Mp).i)&&Zo(a,d);a.Qg.Yn&&om(cq);return a};
g.k.Js=function(a){switch(a.dm()){case 0:if(a=om(Mp).i)a=a.i,g.$b(a.D,this),a.X&&this.al()&&vo(a);Yq();break;case 2:fq()}};
g.k.Pn=function(){};
g.k.al=function(){return!1};
g.k.GS=function(a,b){a.Rs=!0;switch(a.Ik()){case 1:er(this,a,b);break;case 2:this.fG(a)}this.rG()};
g.k.OS=function(a){xp(a,0);return Ap(a,"start",qo())};
g.k.Qt=function(a,b,c){gq(eq,[a],!qo());return this.Jk(a,b,c)};
g.k.Jk=function(a,b,c){return Ap(a,c,qo())};
g.k.JS=function(a){return fr(a,"firstquartile",1)};
g.k.LS=function(a){a.Wa=!0;return fr(a,"midpoint",2)};
g.k.PS=function(a){return fr(a,"thirdquartile",3)};
g.k.HS=function(a){var b=fr(a,"complete",4);rp(a);return b};
g.k.MN=function(a,b,c){b=qo();if(a.jm()&&!b){var d=Wn();a.Wg().S=d}gq(eq,[a],!b);a.jm()&&(a.xg=1);return Ap(a,c,b)};
g.k.NS=function(a,b){b=this.Qt(a,b||{},"skip");rp(a);return b};
g.k.KS=function(a,b){Yo(a,!0);return this.Qt(a,b||{},"fullscreen")};
g.k.IS=function(a,b){Yo(a,!1);return this.Qt(a,b||{},"exitfullscreen")};
g.k.QF=function(a,b,c){b=a.Wg();var d=Wn();b.Ka=jp(b,d,1!=a.xg);gq(eq,[a],!qo());1==a.xg&&(a.xg=2);return Ap(a,c,qo())};
g.k.MS=function(a){gq(eq,[a],!qo());return a.u()};
g.k.sE=function(a){gq(eq,[a],!qo());this.GN(a);rp(a);return a.u()};
g.k.QK=function(){};
g.k.fG=function(){};
g.k.GN=function(){};
g.k.OH=function(){};
g.k.rG=function(){};
g.k.UJ=function(){};var jr=g.Ta(),lr=!1,mr=!1,nr=!1,pea=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return kr(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 kr(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 kr(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 kr(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 kr(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return mr},
function(){return nr},
function(){return kr(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 kr(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]||ir(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 ir(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 kr(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 ir(a.CSS.supports)},
function(){return ir(Intl.Collator)},
function(a){return ir(a.document.createElement("dialog").show)},
function(){return kr(8)},
function(a){return ir(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 ir(a.document.createElement("div").animate)},
function(a){return ir(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ir(a.navigator.getBattery)},
function(a){return ir(a.navigator.permissions.query)},
function(){return!1},
function(){return kr(9)},
function(){return ir(webkitRequestAnimationFrame)},
function(a){return ir(a.BroadcastChannel.call)},
function(a){return ir(a.FontFace)},
function(a){return ir(a.Gamepad)},
function(){return kr(10)},
function(a){return ir(a.MutationEvent)},
function(a){return ir(a.MutationObserver)},
function(a){return ir(a.crypto.getRandomValues)},
function(a){return ir(a.document.body.createShadowRoot)},
function(a){return ir(a.document.body.webkitCreateShadowRoot)},
function(a){return ir(a.fetch)},
function(){return kr(11)},
function(a){return ir(a.navigator.serviceWorker.register)},
function(a){return ir(a.navigator.webkitGetGamepads)},
function(a){return ir(a.speechSynthesis.speak)},
function(a){return ir(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return kr(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 kr(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 kr(14)},
function(a){return"undefined"==typeof a.navigator.Uda},
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")}],qea=[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}],rea=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ua(or,tea);or.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
or.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)pr(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){pr(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){pr(this,d);e=0;break}}this.u=e;this.B+=b};
or.prototype.digest=function(){var a=Array((56>this.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(qr,Eq);qr.prototype.i=function(a){var b=Eq.prototype.i.call(this,a);var c=jr=g.Ta();var d=kr(5);c=(mr?!d:d)?c|2:c&-3;d=kr(2);c=(nr?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=sea());b.D=this.u;b.I=Dq(a,JPa,c,"h",rr("kArwaWEsTs"));b.C=Dq(a,LPa,{},"h",rr("b96YPMzfnx"));b.u=Dq(a,MPa,{},"h",rr("yb8Wev6QDg"));return b};sr.prototype.u=function(){return g.Ja(this.i)};var mqa={t5:"LIVING_ROOM_APP_MODE_UNSPECIFIED",q5:"LIVING_ROOM_APP_MODE_MAIN",p5:"LIVING_ROOM_APP_MODE_KIDS",r5:"LIVING_ROOM_APP_MODE_MUSIC",s5:"LIVING_ROOM_APP_MODE_UNPLUGGED",o5:"LIVING_ROOM_APP_MODE_GAMING"},xja={mca:"WEB_DISPLAY_MODE_UNKNOWN",ica:"WEB_DISPLAY_MODE_BROWSER",kca:"WEB_DISPLAY_MODE_MINIMAL_UI",lca:"WEB_DISPLAY_MODE_STANDALONE",jca:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(tr,Wq);g.k=tr.prototype;g.k.xz=function(a,b){var c=this,d=om(Mp);if(null!=d.i)switch(d.i.getName()){case "nis":var e=xea(this,a,b);break;case "gsv":e=wea(this,a,b);break;case "exc":e=yea(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=mea(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ik()&&(e.S==wf&&(e.S=function(f){return c.OH(f)}),vea(this,e,b));
return e};
g.k.OH=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Bn();a.Va&&(Bn(),"h"!=br(this)&&br(this));var b=g.Ja("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ff)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ja("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ff)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ja("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ff)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.Se(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in DPa)null==b[d]&&(a.K|=DPa[d]);hr(b,"currentTime");hr(b,"duration");ko(c.volume)&&ko(void 0)&&(c.volume*=NaN);return c};
g.k.UJ=function(){Bn();"h"!=br(this)&&br(this);var a=zea(this);return null!=a?new sr(a,this.C):null};
g.k.fG=function(a){!a.i&&a.Rs&&dr(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.GN=function(a){a.YN&&(a.cq()?dr(this,a,"overlay_viewable_end_of_session_impression"):dr(this,a,"overlay_unviewable_impression"),a.YN=!1)};
g.k.QK=function(){};
g.k.rG=function(){};
g.k.bx=function(a,b,c,d){a=Wq.prototype.bx.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new xda),b.i[a.Ff]=a.D,a.D.D=HPa);return a};
g.k.ov=function(a){a&&1==a.Ik()&&this.D&&delete this.I.i[a.Ff];return Wq.prototype.ov.call(this,a)};
var ur=new Cq;ur.D="stopped";ur.i="stopped";ur.B="stopped";ur.I="stopped";ur.C="stopped";ur.u="stopped";Object.freeze(ur);var NPa=Rn(193,xr,gr);g.Ia("Goog_AdSense_Lidar_sendVastEvent",NPa,void 0);var OPa=Un(194,function(a,b){b=void 0===b?{}:b;a=vr(om(tr),a,b);return wr(a)});
g.Ia("Goog_AdSense_Lidar_getViewability",OPa,void 0);var PPa=Rn(195,function(){return vn()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",PPa,void 0);var QPa=Un(196,function(){return JSON.stringify(vn())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",QPa,void 0);var mia=(new Date).getTime();var Cea="://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(" "),Dea=/\bocr\b/;var Fea=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(Br,g.rf);Br.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.zj.oi(this.I);delete Br.i};
Br.prototype.Ee=function(){return this.i};Cr.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)};
Cr.prototype.get=function(a){return!!this.data_[a]};g.Ua(g.Dr,g.E);g.k=g.Dr.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Iea(this),b=Jea(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=ff(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout(xf(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=Iea(this),b=Jea(this);a&&!b&&this.u.mozRequestAnimationFrame?of(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null};
g.k.isActive=function(){return null!=this.i};
g.k.uP=function(){this.C&&this.i&&of(this.i);this.i=null;this.I.call(this.D,g.Ta())};
g.k.ya=function(){this.stop();g.Dr.je.ya.call(this)};g.Ua(g.I,g.E);g.k=g.I.prototype;g.k.wu=0;g.k.ya=function(){g.I.je.ya.call(this);this.stop();delete this.i;delete this.u};
g.k.start=function(a){this.stop();this.wu=g.Yh(this.B,void 0!==a?a:this.Wf)};
g.k.stop=function(){this.isActive()&&g.B.clearTimeout(this.wu);this.wu=0};
g.k.isActive=function(){return 0!=this.wu};
g.k.PH=function(){this.wu=0;this.i&&this.i.call(this.u)};Ir.prototype[Symbol.iterator]=function(){return this};
Ir.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.u.call(void 0,a.value,this.B++),done:a.done}};Pr.prototype.Kg=function(){return new Qr(this.i())};
Pr.prototype[Symbol.iterator]=function(){return new Rr(this.i())};
Pr.prototype.u=function(){return new Rr(this.i())};
g.w(Qr,g.ap);Qr.prototype.Dj=function(){var a=this.i.next();if(a.done)throw g.cp;return a.value};
Qr.prototype.next=function(){return this.i.next()};
Qr.prototype[Symbol.iterator]=function(){return new Rr(this.i)};
Qr.prototype.u=function(){return new Rr(this.i)};
g.w(Rr,Pr);Rr.prototype.next=function(){return this.B.next()};g.k=g.Tr.prototype;g.k.zi=function(){Vr(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.u[this.i[b]]);return a};
g.k.Yl=function(){Vr(this);return this.i.concat()};
g.k.has=function(a){return Ur(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||Oea;Vr(this);for(var c,d=0;c=this.i[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Uo=this.size=this.i.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Ur(this.u,a)?(delete this.u[a],--this.size,this.Uo++,this.i.length>2*this.size&&Vr(this),!0):!1};
g.k.get=function(a,b){return Ur(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){Ur(this.u,a)||(this.size+=1,this.i.push(a),this.Uo++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Yl(),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.Tr(this)};
g.k.keys=function(){return Sr(this.Kg(!0)).u()};
g.k.values=function(){return Sr(this.Kg(!1)).u()};
g.k.entries=function(){var a=this;return Kea(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Kg=function(a){Vr(this);var b=0,c=this.Uo,d=this,e=new g.ap;e.next=function(){if(c!=d.Uo)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)return g.a2;var h=d.i[b++];return g.bp(a?h:d.u[h])};
var f=e.next;e.Dj=function(){return g.dp(f.call(e))};
return e};g.Ua(g.Wr,g.rf);g.k=g.Wr.prototype;g.k.Ec=function(){return 1==this.i};
g.k.oA=function(){this.wi("begin")};
g.k.Jw=function(){this.wi("end")};
g.k.onFinish=function(){this.wi("finish")};
g.k.wi=function(a){this.dispatchEvent(a)};var RPa=yf(function(){if(g.Jc)return g.zc("10.0");var a=g.ch("DIV"),b=g.Yg?"-webkit":Jm?"-moz":g.Jc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!nPa.test("div"))throw Error("");if("DIV"in pPa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!nPa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof Gf)f=Hf(f);else if("style"==h.toLowerCase()){if(!g.Oa(f))throw Error("");
f instanceof $f||(f=dg(f));f=ag(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in oPa)if(f instanceof Mf)f=Nf(f).toString();else if(f instanceof g.Qf)f=g.Rf(f);else if("string"===typeof f)f=g.Xf(f).Jh();else throw Error("");}f.Nk&&(f=f.Jh());h=h+'="'+tb(String(f))+'"';e+=" "+h}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===jPa.div?l+=">":(c=$aa(d),l+=">"+g.ig(c).toString()+"</div>",c=c.xr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=jg(l,c);g.og(a,b);return""!=
g.Km(a.firstChild,"transition")});g.Ua(Xr,g.Wr);g.k=Xr.prototype;g.k.play=function(){if(this.Ec())return!1;this.oA();this.wi("play");this.startTime=g.Ta();this.i=1;if(RPa())return g.Hm(this.u,this.K),this.C=g.Yh(this.TW,void 0,this),!0;this.aC(!1);return!1};
g.k.TW=function(){g.an(this.u);Pea(this.u,this.S);g.Hm(this.u,this.D);this.C=g.Yh((0,g.D)(this.aC,this,!1),1E3*this.I)};
g.k.stop=function(){this.Ec()&&this.aC(!0)};
g.k.aC=function(a){g.Hm(this.u,"transition","");g.B.clearTimeout(this.C);g.Hm(this.u,this.D);this.endTime=g.Ta();this.i=0;if(a)this.wi("stop");else this.onFinish();this.Jw()};
g.k.ya=function(){this.stop();Xr.je.ya.call(this)};
g.k.pause=function(){};var Rea=g.Ka;var Tea={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};Zr("Element","attributes")||Zr("Node","attributes");Zr("Element","innerHTML")||Zr("HTMLElement","innerHTML");Zr("Node","nodeName");Zr("Node","nodeType");Zr("Node","parentNode");Zr("Node","childNodes");Zr("HTMLElement","style")||Zr("Element","style");Zr("HTMLStyleElement","sheet");var Zea=Vea("getPropertyValue"),$ea=Vea("setProperty");Zr("Element","namespaceURI")||Zr("Node","namespaceURI");var Yea={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.bs.prototype.clone=function(){return new g.bs(this.i,this.K,this.B,this.D,this.C,this.I,this.u,this.S)};
g.bs.prototype.equals=function(a){return this.i==a.i&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.S==a.S};ds.prototype.clone=function(){return new ds(this.start,this.end)};var SPa=new WeakMap;(function(){if(LKa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.yb()))?a[1]:"0"}return OF?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.yb()))?a[0].replace(/_/g,"."):"10"):g.Ku?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.yb()))?a[1]:""):dPa||ePa||fPa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.yb()))?a[1].replace(/_/g,"."):""):""})();var gfa=function(){if(g.Fj)return es(/Firefox\/([0-9.]+)/);if(g.Jc||g.Hw||g.iE)return yc;if(g.Ej){if(Nb()||Ob()){var a=es(/CriOS\/([0-9.]+)/);if(a)return a}return es(/Chrome\/([0-9.]+)/)}if(g.Gj&&!Nb())return es(/Version\/([0-9.]+)/);if(rE||rG){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yb()))return a[1]+"."+a[2]}else if(g.jE)return(a=es(/Android\s+([0-9.]+)/))?a:es(/Version\/([0-9.]+)/);return""}();g.Ua(g.gs,g.E);g.k=g.gs.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.eg(a)}return!1};
g.k.eg=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ka):(c&&g.$b(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var h=c[e];hfa(this.i[h+1],this.i[h+2],d)}else{this.C++;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.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.eg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.eg,this),delete this.u[a])}else this.i.length=0,this.u={}};
g.k.ya=function(){g.gs.je.ya.call(this);this.clear();this.B.length=0};g.hs.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.zi(b))};
g.hs.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.hs.prototype.remove=function(a){this.i.remove(a)};g.Ua(is,g.hs);is.prototype.set=function(a,b){is.je.set.call(this,a,jfa(b))};
is.prototype.u=function(a){a=is.je.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
is.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ua(js,is);js.prototype.set=function(a,b,c){if(b=jfa(b)){if(c){if(c<g.Ta()){js.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ta()}js.je.set.call(this,a,b)};
js.prototype.u=function(a,b){var c=js.je.u.call(this,a);if(c)if(!b&&g.kfa(c))js.prototype.remove.call(this,a);else return c};g.Ua(g.ks,js);g.Ua(ls,lfa);ls.prototype[Symbol.iterator]=function(){return Sr(this.Kg(!0)).u()};
ls.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.Ua(ms,ls);g.k=ms.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.ap;d.next=function(){if(b>=c.length)return g.a2;var f=c.key(b++);if(a)return g.bp(f);f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.bp(f)};
var e=d.next;d.Dj=function(){return g.dp(e.call(d))};
return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ua(ns,ms);g.Ua(mfa,ms);g.Ua(ps,ls);var nfa={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},os=null;g.k=ps.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(qs(a),b);rs(this)};
g.k.get=function(a){a=this.i.getAttribute(qs(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(qs(a));rs(this)};
g.k.Kg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.ap;d.next=function(){if(b>=c.length)return g.a2;var f=c[b++];if(a)return g.bp(decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1));f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.bp(f)};
var e=d.next;d.Dj=function(){return g.dp(e.call(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);rs(this)};g.Ua(ts,ls);ts.prototype.set=function(a,b){this.u.set(this.i+a,b)};
ts.prototype.get=function(a){return this.u.get(this.i+a)};
ts.prototype.remove=function(a){this.u.remove(this.i+a)};
ts.prototype.Kg=function(a){var b=this.u.Kg(!0),c=this,d=new g.ap;d.next=function(){try{var f=b.Dj()}catch(h){if(h===g.cp)return g.a2;throw h;}for(;f.substr(0,c.i.length)!=c.i;)try{f=b.Dj()}catch(h){if(h===g.cp)return g.a2;throw h;}return g.bp(a?f.substr(c.i.length):c.u.get(f))};
var e=d.next;d.Dj=function(){return g.dp(e.call(d))};
return d};vs.prototype.getKey=function(){return this.i};
vs.prototype.getValue=function(){return this.u};
vs.prototype.clone=function(){return new vs(this.i,this.u)};g.k=ws.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Yb(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.zi=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Yl=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 ws(this)};
g.k.isEmpty=function(){return 0===this.i.length};
g.k.clear=function(){Yb(this.i)};g.Ua(pfa,ws);La(xs);xs.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 zs="@@redux/INIT"+ys(),ufa="@@redux/REPLACE"+ys();var vfa="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(As,Ad);As.prototype.getType=function(){return Ed(this,11,0)};
g.w(Bs,Ad);Bs.prototype.getKey=function(){return Bd(this,3)};
var wfa=[2,13,14];g.w(Ds,Cs);g.w(Es,Ds);Es.prototype.Rd=function(){return[]};g.w(Fs,Ad);Fs.prototype.getKey=function(){return Bd(this,1)};
Fs.prototype.getValue=function(){return Bd(this,2===Id(this,TPa)?2:-1)};
Fs.prototype.setValue=function(a){return Jd(this,2,TPa,a)};
var TPa=[2,3,4,5,6];g.w(Gs,Ad);g.w(Hs,Ad);g.w(Is,Ad);g.w(Js,Ad);Js.prototype.getPlayerType=function(){return Bd(this,36)};
Js.prototype.setHomeGroupInfo=function(a){return Md(this,81,a)};
var Afa=[9,66,24,32,86,100,101],pqa={dba:0,dca:1,pca:32,uca:61,zca:67,wca:86,oca:42,qca:60,hca:62,tca:73,sca:76,xca:88,yca:90,Aca:41,Bca:69,Cca:70,Dca:71,g8:2,h8:27,ANDROID:3,eZ:54,fZ:14,mZ:91,gZ:55,hZ:24,iZ:20,jZ:18,lZ:21,oZ:30,rZ:29,sZ:28,tZ:34,nZ:36,kZ:38,IOS:5,f4:15,q4:92,g4:40,i4:25,j4:17,l4:19,m4:64,n4:66,o4:26,s4:22,t4:33,u4:68,v4:35,p4:53,r4:37,h4:39,Oaa:7,Paa:57,Qaa:43,Raa:59,qZ:74,Saa:75,Taa:85,Uaa:65,Waa:80,Xaa:8,Maa:10,aba:58,Zaa:63,Vaa:72,pZ:23,Ica:11,Jca:13,f_:12,Naa:16,nca:56,vca:31,
L7:77,z3:84,rca:87,A3:89};g.w(Cfa,Ad);var Bfa=[15,26,28];g.w(Ks,Ad);Ks.prototype.setToken=function(a){return Cd(this,2,a)};g.w(Ls,Ad);Ls.prototype.setSafetyMode=function(a){return Cd(this,5,a)};
var Dfa=[12];g.w(Ms,Ad);var Efa=[12];g.w(Ns,Ds);Ns.prototype.Rd=function(){var a=[];this.i.alternateChannel&&a.push(this.i.alternateChannel);this.i.alternateChannelList&&a.push.apply(a,g.ma(this.i.alternateChannelList));this.i.oneofChannelEntity&&a.push(this.i.oneofChannelEntity);return[].concat(g.ma(new Set(a)))};g.w(Os,Ds);Os.prototype.Rd=function(){var a=[];this.i.entryCollection&&a.push(this.i.entryCollection);return[].concat(g.ma(new Set(a)))};
g.w(Ps,Ds);Ps.prototype.Rd=function(){var a=[];this.i.parentPlaylist&&a.push(this.i.parentPlaylist);if(this.i.entries)for(var b=g.q(this.i.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,g.ma((new Qs(c.value)).Rd()));return[].concat(g.ma(new Set(a)))};
g.w(Qs,Cs);Qs.prototype.Rd=function(){var a=[];this.i.video&&a.push(this.i.video);return[].concat(g.ma(new Set(a)))};g.w(Rs,Ds);Rs.prototype.Rd=function(){var a=[];this.i.descriptionEntity&&a.push(this.i.descriptionEntity);this.i.creators&&a.push.apply(a,g.ma(this.i.creators));this.i.theBiggestFan&&a.push(this.i.theBiggestFan);return[].concat(g.ma(new Set(a)))};
g.w(Ss,Ds);Ss.prototype.Rd=function(){return[]};g.w(Ts,Ds);Ts.prototype.Rd=function(){return[]};g.w(Us,Ds);Us.prototype.Rd=function(){return[]};g.w(Ffa,Ad);g.w(Vs,Ad);Vs.prototype.getContext=function(){return Kd(this,Ffa,33)};g.w(Gfa,Ad);var tja=[1,2];g.w(Ws,Ad);Ws.prototype.getContext=function(){return Kd(this,Ms,1)};
var Uha=[3];g.w(Xs,Ds);Xs.prototype.Rd=function(){return[]};g.w(Ys,Ds);Ys.prototype.Rd=function(){return[]};g.w(Zs,Ds);Zs.prototype.Rd=function(){var a=[];this.i.fakeChildren&&a.push.apply(a,g.ma(this.i.fakeChildren));return[].concat(g.ma(new Set(a)))};g.w($s,Ds);$s.prototype.Rd=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.ma(new Set(a)))};g.w(at,Ds);at.prototype.Rd=function(){return[]};g.w(bt,Ds);bt.prototype.Rd=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.ma(new Set(a)))};g.w(ct,Ds);ct.prototype.Rd=function(){return[]};g.w(dt,Ds);dt.prototype.Rd=function(){return[]};g.w(et,Ds);et.prototype.Rd=function(){return[]};g.w(ft,Ds);ft.prototype.Rd=function(){return[]};g.w(gt,Ds);gt.prototype.Rd=function(){return[]};g.w(ht,Ds);ht.prototype.Rd=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.ma(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.ma(new Set(a)))};g.w(jt,Ds);jt.prototype.Rd=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.ma(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.ma(this.i.captionTrack));return[].concat(g.ma(new Set(a)))};g.w(kt,Ds);kt.prototype.Rd=function(){return[]};g.w(lt,Ad);var e2,f2,g2,h2=g.B.window,nt=(null===(e2=null===h2||void 0===h2?void 0:h2.yt)||void 0===e2?void 0:e2.config_)||(null===(f2=null===h2||void 0===h2?void 0:h2.ytcfg)||void 0===f2?void 0:f2.data_)||{},UPa=(null===(g2=null===h2||void 0===h2?void 0:h2.ytcfg)||void 0===g2?void 0:g2.obfuscatedData_)||[];g.w(mt,lt);mt.prototype.I=function(a){return lt.prototype.I.call(this,a)};
new mt(UPa);g.Ia("yt.config_",nt,void 0);g.Ia("yt.configJspb_",UPa,void 0);var ut=[];var jia=/^[\w.]*$/,hia={q:!0,search_query:!0},gia=String(zt);var kia=new function(){var a=window.document;this.i=window;this.u=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return At(Jt(a))},void 0);g.Ta();var nia="XMLHttpRequest"in g.B?function(){return new XMLHttpRequest}:null;var pia={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","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"},ria="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.ma("client_dev_mss_url client_dev_regex_map client_dev_root_url expflag jsfeat jsmode client_rollout_override".split(" "))),wia=!1,oua=Qt;g.w(iu,Wa);lu.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.i),Dh(a)?a:nu(a)):2===this.u&&b?(a=b.call(c,this.i),Dh(a)?a:mu(a)):this};
lu.prototype.getValue=function(){return this.i};
lu.prototype.$goog_Thenable=!0;var ou=!1;tu.prototype.Qf=function(a,b){return uu(a,1,b)};g.w(wu,tu);wu.prototype.oi=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.Ot(a)}};
wu.prototype.start=function(){var a=g.Ja("yt.scheduler.instance.start");a&&a()};
wu.prototype.pause=function(){var a=g.Ja("yt.scheduler.instance.pause");a&&a()};g.iv=xu();var Iu=rE||rG;g.w(Pu,Wa);Pu.prototype.name="BiscottiError";g.w(Ou,Wa);Ou.prototype.name="BiscottiMissingError";var Jia={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Qu=null;var vja={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},uja={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0,
adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var VPa=0,Ru=g.Yg?"webkit":Jm?"moz":g.Jc?"ms":g.iE?"o":"",WPa=g.Ja("ytDomDomGetNextId")||function(){return++VPa};
g.Ia("ytDomDomGetNextId",WPa,void 0);var Qia={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};Tu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Tu.prototype.oL=function(){return this.event?!1===this.event.returnValue:!1};
Tu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Tu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Uu=g.B.ytEventsEventsListeners||{};g.Ia("ytEventsEventsListeners",Uu,void 0);var Tia=g.B.ytEventsEventsCounter||{count:0};g.Ia("ytEventsEventsCounter",Tia,void 0);var ula=yf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Uia=yf(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var TD=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Ua(ev,g.E);ev.prototype.X=function(a){void 0===a.i&&Ria(a);var b=a.i;void 0===a.u&&Ria(a);this.i=new g.wg(b,a.u)};
ev.prototype.Kn=function(){return this.i||new g.wg};
ev.prototype.Z=function(){if(this.i){var a=TD();if(0!=this.C){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.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.I=this.i;this.B=(this.B+1)%4}};
ev.prototype.ya=function(){Pt(this.S);g.Wu(this.oa)};var hv={};var mv={},aja=0;var XPa,ov,qv;XPa=g.B.ytPubsubPubsubInstance||new g.gs;ov=g.B.ytPubsubPubsubSubscribedKeys||{};qv=g.B.ytPubsubPubsubTopicToKeys||{};g.pv=g.B.ytPubsubPubsubIsSynchronous||{};g.gs.prototype.subscribe=g.gs.prototype.subscribe;g.gs.prototype.unsubscribeByKey=g.gs.prototype.eg;g.gs.prototype.publish=g.gs.prototype.ea;g.gs.prototype.clear=g.gs.prototype.clear;g.Ia("ytPubsubPubsubInstance",XPa,void 0);g.Ia("ytPubsubPubsubTopicToKeys",qv,void 0);g.Ia("ytPubsubPubsubIsSynchronous",g.pv,void 0);
g.Ia("ytPubsubPubsubSubscribedKeys",ov,void 0);var i2;i2=window;g.P=i2.ytcsi&&i2.ytcsi.now?i2.ytcsi.now:i2.performance&&i2.performance.timing&&i2.performance.now&&i2.performance.timing.navigationStart?function(){return i2.performance.timing.navigationStart+i2.performance.now()}:function(){return(new Date).getTime()};var jja=qt("initial_gel_batch_timeout",2E3),sja=Math.pow(2,16)-1,wv=void 0,yv=new dja,xv=new dja,Dv=!0,vv=g.B.ytLoggingTransportGELQueue_||new Map;g.Ia("ytLoggingTransportGELQueue_",vv,void 0);var Cv=g.B.ytLoggingTransportGELProtoQueue_||new Map;g.Ia("ytLoggingTransportGELProtoQueue_",Cv,void 0);var Bv=g.B.ytLoggingTransportTokensToCttTargetIds_||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",Bv,void 0);var Hv=g.B.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ia("ytLoggingTransportTokensToJspbCttTargetIds_",Hv,void 0);var Iv=g.B.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",Iv,void 0);var Lv=g.Ja("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",Lv,void 0);g.k=g.Mv.prototype;g.k.get=function(a,b){Pv(a);Ov(a);a=void 0!==Lv[a]?Lv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Pv(a);Ov(a);if(null==b)throw Error("ExpectedNotNull");Lv[a]=b.toString()};
g.k.remove=function(a){Pv(a);Ov(a);delete Lv[a]};
g.k.save=function(){var a=!0;g.O("web_secure_pref_cookie_killswitch")&&(a=!1);g.qu(this.i,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Te(Lv)};
g.k.dump=function(){var a=[],b;for(b in Lv)a.push(b+"="+encodeURIComponent(String(Lv[b])));return a.join("&")};
La(g.Mv);var Bja={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"},Lja={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_INVALID:31},Mja={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},Dja={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Qv.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.zi(b))}catch(f){return}else e=escape(b);g.qu(a,e,c,this.u)};
Qv.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.ru(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Qv.prototype.remove=function(a){this.i&&this.i.remove(a);g.Bia(a,"/",this.u)};var Rv=function(){var a;return function(){a||(a=new Qv("ytidb"));return a}}();var Xv=[],Tv,Yv=!1;g.w(g.aw,Error);var j2={},Pja=(j2.AUTH_INVALID="No user identifier specified.",j2.EXPLICIT_ABORT="Transaction was explicitly aborted.",j2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",j2.MISSING_INDEX="Index not created.",j2.MISSING_OBJECT_STORES="Object stores not created.",j2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",j2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",j2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",
j2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",j2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",j2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",j2),k2={},Qja=(k2.AUTH_INVALID="ERROR",k2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",k2.EXPLICIT_ABORT="IGNORED",k2.IDB_NOT_SUPPORTED="ERROR",k2.MISSING_INDEX="WARNING",k2.MISSING_OBJECT_STORES="ERROR",k2.DB_DELETED_BY_MISSING_OBJECT_STORES=
"WARNING",k2.QUOTA_EXCEEDED="WARNING",k2.QUOTA_MAYBE_EXCEEDED="WARNING",k2.UNKNOWN_ABORT="WARNING",k2.INCOMPATIBLE_DB_VERSION="WARNING",k2),l2={},Rja=(l2.AUTH_INVALID=!1,l2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,l2.EXPLICIT_ABORT=!1,l2.IDB_NOT_SUPPORTED=!1,l2.MISSING_INDEX=!1,l2.MISSING_OBJECT_STORES=!1,l2.DB_DELETED_BY_MISSING_OBJECT_STORES=!1,l2.QUOTA_EXCEEDED=!1,l2.QUOTA_MAYBE_EXCEEDED=!0,l2.UNKNOWN_ABORT=!0,l2.INCOMPATIBLE_DB_VERSION=!1,l2);g.w(fw,g.aw);g.w(gw,fw);g.w(hw,Error);
var Sja=["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"];lw.all=function(a){return new lw(new kw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Wq:0};f.Wq<a.length;f={Wq:f.Wq},++f.Wq)lw.resolve(a[f.Wq]).then(function(h){return function(l){d[h.Wq]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
lw.resolve=function(a){return new lw(new kw(function(b,c){a instanceof lw?a.then(b,c):b(a)}))};
lw.reject=function(a){return new lw(new kw(function(b,c){c(a)}))};
lw.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Uja,e=null!==b&&void 0!==b?b:Tja;return new lw(new kw(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){Vja(c,c,d,f,h)}),c.onRejected.push(function(){Wja(c,c,e,f,h)})):"FULFILLED"===c.state.status?Vja(c,c,d,f,h):"REJECTED"===c.state.status&&Wja(c,c,e,f,h)}))};
lw.prototype.catch=function(a){return this.then(void 0,a)};g.k=Zja.prototype;g.k.advance=function(a){this.cursor.advance(a);return pw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return pw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return pw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.sz=function(){return this.cursor.primaryKey};g.k=$ja.prototype;g.k.add=function(a,b,c){return uw(this,[a],{mode:"readwrite",Lc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return uw(this,[a],{mode:"readwrite",Lc:!0},function(b){return b.objectStore(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 uw(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return uw(this,[a],{mode:"readwrite",Lc:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return uw(this,[a],{mode:"readonly",Lc:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.k.getName=function(){return this.i.name};
g.k=qw.prototype;g.k.add=function(a,b){return nw(this.i.add(a,b))};
g.k.autoIncrement=function(){return this.i.autoIncrement};
g.k.clear=function(){return nw(this.i.clear()).then(function(){})};
g.k.count=function(a){return nw(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?gka(this,a):nw(this.i.delete(a))};
g.k.get=function(a){return nw(this.i.get(a))};
g.k.index=function(a){try{return new lka(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new hw(a,this.i.name);throw b;}};
g.k.getName=function(){return this.i.name};
g.k.keyPath=function(){return this.i.keyPath};
ww.prototype.abort=function(){this.i.abort();this.u=!0;throw new fw("EXPLICIT_ABORT");};
ww.prototype.objectStore=function(a){a=this.i.objectStore(a);var b=this.B.get(a);b||(b=new qw(a),this.B.set(a,b));return b};
g.k=lka.prototype;g.k.count=function(a){return nw(this.i.count(a))};
g.k.delete=function(a){return Bw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return nw(this.i.get(a))};
g.k.getKey=function(a){return nw(this.i.getKey(a))};
g.k.keyPath=function(){return this.i.keyPath};
g.k.unique=function(){return this.i.unique};
g.k=nka.prototype;g.k.advance=function(a){this.cursor.advance(a);return zw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return zw(this.request)};
g.k.delete=function(){return nw(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.sz=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return nw(this.cursor.update(a))};Dw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return pka(a,b,c)};
Dw.prototype.delete=function(a){a=void 0===a?{}:a;return Cw(this.name,a)};
Dw.prototype.open=function(){function a(){var f,h,l,m,n,p,r,t,u,v;return g.A(function(y){switch(y.i){case 1:return l=null!==(f=Error().stack)&&void 0!==f?f:"",ua(y,2),g.x(y,c.B(c.name,c.options.version,e),4);case 4:m=y.u;for(var z=c.options,C=[],F=g.q(Object.keys(z.nq)),G=F.next();!G.done;G=F.next()){G=G.value;var J=z.nq[G],U=void 0===J.fX?Number.MAX_VALUE:J.fX;!(m.i.version>=J.Xm)||m.i.version>=U||m.i.objectStoreNames.contains(G)||C.push(G)}n=C;if(0===n.length){y.fb(5);break}p=Object.keys(c.options.nq);
r=m.objectStoreNames();if(!(c.D<qt("ytidb_remake_db_retries",1))){y.fb(6);break}c.D++;if(!g.O("ytidb_remake_db_enable_backoff_delay")){y.fb(7);break}return g.x(y,qka(c.u),8);case 8:c.u*=2;case 7:return g.x(y,c.delete(),9);case 9:return Zv(new fw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:p,foundObjectStores:r})),y.return(a());case 6:throw new gw(r,p);case 5:return y.return(m);case 2:t=wa(y);if(t instanceof DOMException?"VersionError"!==t.name:"DOMError"in self&&t instanceof
DOMError?"VersionError"!==t.name:!(t instanceof Object&&"message"in t)||"An attempt was made to open a database using a lower version than the existing version."!==t.message){y.fb(10);break}return g.x(y,c.B(c.name,void 0,Object.assign(Object.assign({},e),{upgrade:void 0})),11);case 11:u=y.u;v=u.i.version;if(void 0!==c.options.version&&v>c.options.version+1)throw u.close(),c.C=!1,rka(c,v);return y.return(u);case 10:throw b(),t instanceof Error&&!g.O("ytidb_async_stack_killswitch")&&(t.stack=t.stack+
"\n"+l.substring(l.indexOf("\n")+1)),iw(t,c.name,"",null!==(h=c.options.version)&&void 0!==h?h:-1);}})}
function b(){c.i===d&&(c.i=void 0)}
var c=this;if(!this.C)throw rka(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
closed:b,KX:b,upgrade:this.options.upgrade};return this.i=d=a()};var Fw=new Dw("YtIdbMeta",{nq:{databases:{Xm:1}},upgrade:function(a,b){b(1)&&rw(a,"databases",{keyPath:"actualName"})}});var Jw,Iw=new function(){}(new function(){});new Wj;g.k=Mw.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Tc&&this.pe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.cf.set(d,this.Tc).then(function(e){d.id=e;c.Xe.Ee()&&Nw(c,d)}).catch(function(e){Nw(c,d);
Ow(c,e)})}else this.Dm(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.Tc&&this.pe){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.kb&&this.kb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Xe.Ee()||this.kb&&this.kb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.i)return g.x(m,d.cf.set(e,d.Tc).catch(function(n){Ow(d,n)}),2);
f(h,l);g.ta(m)})}}this.Dm(a,b,e.skipRetry)}else this.cf.set(e,this.Tc).catch(function(h){d.Dm(a,b,e.skipRetry);
Ow(d,h)})}else c=this.kb&&this.kb("nwl_skip_retry")&&c,this.Dm(a,b,c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.Tc&&this.pe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.cf.ls(d.id,c.Tc):e=!0;c.Xe.oo&&c.kb&&c.kb("vss_network_hint")&&c.Xe.oo(!0);f(h,l)};
this.Dm(d.url,d.options);this.cf.set(d,this.Tc).then(function(h){d.id=h;e&&c.cf.ls(d.id,c.Tc)}).catch(function(h){Ow(c,h)})}else this.Dm(a,b)};
g.k.Dx=function(){var a=this;if(!this.Tc)throw g.jw("throttleSend");this.i||(this.i=this.zj.Qf(function(){var b;return g.A(function(c){if(1==c.i)return g.x(c,a.cf.FK("NEW",a.Tc),2);if(3!=c.i)return b=c.u,b?g.x(c,Nw(a,b),3):(a.zJ(),c.return());a.i&&(a.i=0,a.Dx());g.ta(c)})},this.lO))};
g.k.zJ=function(){this.zj.oi(this.i);this.i=0};Qw.prototype.toString=function(){return this.topic};var YPa=g.Ja("ytPubsub2Pubsub2Instance")||new g.gs;g.gs.prototype.subscribe=g.gs.prototype.subscribe;g.gs.prototype.unsubscribeByKey=g.gs.prototype.eg;g.gs.prototype.publish=g.gs.prototype.ea;g.gs.prototype.clear=g.gs.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",YPa,void 0);var Tw=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",Tw,void 0);var Uw=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",Uw,void 0);
var Kka=g.Ja("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",Kka,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(Xw,Dw);Xw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.ox?Aka:zka)(a,b,Object.assign({},c))};
Xw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.ox?Eka:Bka)(this.name,a)};var Zw;var ZPa={},Tka=Yw("ServiceWorkerLogsDatabase",{nq:(ZPa.SWHealthLog={Xm:1},ZPa),ox:!0,upgrade:function(a,b){b(1)&&xw(rw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var dx;var bla=qt("network_polling_interval",3E4);g.w(gx,g.rf);g.k=gx.prototype;g.k.Ee=function(){var a;return g.O("use_shared_nsm")&&this.i?null===(a=this.i)||void 0===a?void 0:a.Ee():this.u};
g.k.oo=function(a){var b;g.O("use_shared_nsm")&&this.i?null===(b=this.i)||void 0===b?void 0:b.i=a:a!==this.u&&(this.u=a)};
g.k.rT=function(a){!g.O("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.K||ala(this))};
g.k.jE=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.RR=function(){this.S=!0};
g.k.Ra=function(a,b){return g.O("use_shared_nsm")&&this.i?this.i.Ra(a,b):g.rf.prototype.Ra.call(this,a,b)};
g.k.Em=function(a){var b=this;return g.O("use_shared_nsm")&&this.i?Ar(this.i,a):this.D?this.D:this.D=new Promise(function(c){var d,e,f;return g.A(function(h){switch(h.i){case 1:return d=window.AbortController?new window.AbortController:void 0,e=null===d||void 0===d?void 0:d.signal,f=!1,ua(h,2,3),d&&(b.I=g.iv.Qf(function(){d.abort()},a||2E4)),g.x(h,fetch("/generate_204",{method:"HEAD",
signal:e}),5);case 5:f=!0;case 3:xa(h);b.D=void 0;b.I&&g.iv.oi(b.I);f!==b.u&&(b.u=f,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));c(f);ya(h,0);break;case 2:wa(h),f=!1,h.fb(3)}})})};
gx.prototype.sendNetworkCheckRequest=gx.prototype.Em;gx.prototype.listen=gx.prototype.Ra;gx.prototype.enableErrorFlushing=gx.prototype.RR;gx.prototype.getWindowStatus=gx.prototype.jE;gx.prototype.monitorNetworkStatusChange=gx.prototype.rT;gx.prototype.networkStatusHint=gx.prototype.oo;gx.prototype.isNetworkAvailable=gx.prototype.Ee;gx.getInstance=$ka;g.w(hx,g.rf);hx.prototype.Ee=function(){var a=g.Ja("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
hx.prototype.oo=function(a){var b=g.Ja("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);b&&b(a)};
hx.prototype.Em=function(a){var b=this,c;return g.A(function(d){return(c=g.Ja("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.i))?d.return(c(a)):d.return(!0)})};var kx;g.w(ix,Mw);ix.prototype.writeThenSend=function(a,b){b||(b={});cw()||(this.pe=!1);Mw.prototype.writeThenSend.call(this,a,b)};
ix.prototype.sendThenWrite=function(a,b,c){b||(b={});cw()||(this.pe=!1);Mw.prototype.sendThenWrite.call(this,a,b,c)};
ix.prototype.sendAndWrite=function(a,b){b||(b={});cw()||(this.pe=!1);Mw.prototype.sendAndWrite.call(this,a,b)};var sx=0,ux=0,vx,tx=g.B.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:ux};g.Ia("ytNetworklessLoggingInitializationOptions",tx,void 0);g.wx.prototype.isReady=function(){!this.config_&&Fja()&&(this.config_=g.Fv());return!!this.config_};var mla=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),ola=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var sla={};g.w(Cx,g.E);Cx.prototype.T=function(a,b,c,d,e){c=wt((0,g.D)(c,d||this.Sa));c={target:a,name:b,callback:c};var f;e&&ula()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c};
Cx.prototype.qc=function(a){for(var b=0;b<this.D.length;b++)if(this.D[b]==a){this.D.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Cx.prototype.ya=function(){g.Ex(this);g.E.prototype.ya.call(this)};g.Ua(g.Q,g.E);g.Q.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Wd.subscribe(a,b,c)};
g.Q.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Wd.unsubscribe(a,b,c)};
g.Q.prototype.eg=function(a){return this.isDisposed()?!1:this.Wd.eg(a)};
g.Q.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Wd.ea.apply(this.Wd,arguments)};g.w(g.Ix,g.Q);g.k=g.Ix.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),Kx(this),Hx(this))};
g.k.bM=function(a){Kx(this);Jx(this,Lx("move"),this.ZL);Jx(this,Lx("out"),this.aM);Jx(this,"touchstart",this.YG);this.i&&Jx(this,Lx("down"),this.hF);var b=g.Xu(a);a=$u(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
g.k.ZL=function(a){var b=g.Xu(a);a=$u(a);if(this.D){var c=this.D;this.D=null;if(Zu(c)==b&&xg($u(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.k.aM=function(a){var b=$u(a),c=Zu(a);try{if(c&&g.ih(this.I,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}Kx(this);Hx(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
g.k.tT=function(a){this.bM(a);this.hF(a)};
g.k.hF=function(a){if("number"!==typeof a.button||0==a.button){Kx(this);this.C.T(document,Lx("move"),this.sT);this.C.T(document,Lx("up"),this.xT);var b=g.Xu(a);if(g.Yg)Jx(this,"dragstart",this.OR);else if(g.av(a),(g.PE||Jm)&&b)a:{for(var c=b;c;){if(qh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=$u(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
g.k.OR=function(a){g.av(a)};
g.k.sT=function(a){var b=g.Xu(a);b==document&&(b=null);a=$u(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
g.k.xT=function(a){Kx(this);this.B=!1;var b=Yu(a),c=g.Xu(a);a=$u(a);b&&g.ih(this.I,b)?(Jx(this,Lx("move"),this.ZL),Jx(this,Lx("out"),this.aM),Jx(this,Lx("down"),this.hF),Jx(this,"touchstart",this.YG),this.ea("dragend",a.x,a.y,c)):(Hx(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
g.k.YG=function(a){var b=a.changedTouches[0];b&&(Kx(this),Jx(this,"touchmove",this.SX),Jx(this,"touchend",this.tO),Jx(this,"touchcancel",this.tO),this.K=b.identifier,a=g.Xu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
g.k.SX=function(a){var b=vla(this,a);b&&(this.i&&g.av(a),a=g.Xu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&this.ea("dragmove",b.pageX,b.pageY,a))};
g.k.tO=function(a){var b=vla(this,a);if(b){Kx(this);Hx(this);this.u=!1;var c=g.Xu(a);this.i&&(this.S||g.av(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
g.k.ya=function(){this.i&&(g.Yg&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");Kx(this);g.Q.prototype.ya.call(this)};Mx.prototype.clone=function(){var a=new Mx,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ma(c)?g.We(c):c}return a};var Fxa=["embedded_player"],$Pa=["share/get_web_player_share_panel"],aQa=["feedback"],bQa=["notification/modify_channel_preference"],DBa=["offline"],zBa=["offline/get_playback_data_entity"],AJa=["player"],cQa=["browse/edit_playlist"],dQa=["subscription/subscribe"],eQa=["subscription/unsubscribe"],CJa=["next","unplugged/watch_next"];var Nx=Date.now().toString();var Dla,m2=g.B.ytLoggingDocDocumentNonce_;m2||(m2=Px(),g.Ia("ytLoggingDocDocumentNonce_",m2,void 0));Dla=m2;var fua={iP:0,a_:1,q_:2,i7:3,h2:4,Xba:5,e8:6,u$:7,I9:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};var yla=1;Qx.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};
Qx.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Qx.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Ia("yt_logging_screen.getRootVeType",Ala,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.Vx,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",Wx,void 0);g.Ia("yt_logging_screen.setCurrentScreen",Ela,void 0);var Nla=[{dF:function(a){return"Cannot read property '"+a.key+"'"},
DA:{Error:[{Bg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Bg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Bg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Bg:/\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"]},{Bg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Bg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Bg:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{dF:function(a){return"Cannot call '"+a.key+"'"},
DA:{TypeError:[{Bg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Bg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Bg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Bg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Bg:/\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"]},
{Bg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{dF:function(a){return a.key+" is not defined"},
DA:{ReferenceError:[{Bg:/(.*) is not defined/,groups:["key"]},{Bg:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ila={qm:[],fn:[{callback:Fla,weight:500}]};var Xx;var dy=new g.gs;var Ola=new Set,Lla=0,Qla=0,Pla=0,Mla=[],Rla=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(ey,Pw);var Wla=new Qw("screen-created",ey),iy=[],eua=Vla,jy=0;var fQa={ZZ:3611,uY:27686,wY:85013,xY:23462,zY:42016,AY:62407,BY:26926,yY:43781,DY:51236,EY:79148,FY:50160,GY:77504,bZ:87907,cZ:18630,uZ:54445,vZ:80935,CZ:105675,DZ:37521,EZ:47786,GZ:98349,HZ:123695,LZ:6827,MZ:29434,XZ:7282,YZ:124448,i_:32276,h_:76278,j_:93911,l_:106531,m_:27259,n_:27262,o_:27263,r_:21759,s_:27107,t_:62936,u_:49568,w_:38408,x_:80637,y_:68727,z_:68728,A_:80353,B_:80356,C_:74610,D_:45707,E_:83962,F_:83970,G_:46713,H_:89711,I_:74612,J_:93265,K_:74611,L_:131380,N_:128979,O_:139311,P_:128978,
M_:131391,Q_:105350,S_:139312,T_:134800,R_:131392,V_:113533,W_:93252,X_:99357,Z_:94521,b0:114252,d0:113532,e0:94522,Y_:94583,f0:88E3,g0:139580,h0:93253,j0:93254,k0:94387,l0:94388,m0:93255,n0:97424,U_:72502,o0:110111,q0:76019,s0:117092,t0:117093,r0:89431,u0:110466,v0:77240,w0:60508,x0:137401,y0:137402,z0:137046,A0:73393,B0:113534,C0:92098,D0:131381,E0:84517,F0:83759,G0:80357,H0:86113,I0:72598,J0:72733,K0:107349,L0:124275,M0:118203,O0:133275,P0:133274,Q0:133272,R0:133273,S0:133276,U0:117431,T0:133797,
V0:128572,W0:133405,X0:117429,Y0:117430,Z0:117432,b1:120080,d1:117259,e1:121692,f1:132972,g1:133051,h1:133658,j1:132971,l1:97615,m1:31402,o1:133624,q1:133623,t1:133622,n1:133621,u1:84774,v1:95117,w1:98930,z1:98931,A1:98932,B1:43347,C1:129889,D1:45474,E1:100352,F1:84758,G1:98443,H1:117985,I1:74613,J1:74614,K1:64502,L1:136032,M1:74615,N1:74616,O1:122224,P1:74617,Q1:77820,R1:74618,S1:93278,T1:93274,U1:93275,V1:93276,W1:22110,X1:29433,b2:133798,d2:132295,e2:120541,j2:82047,l2:113550,m2:75836,n2:75837,
t2:42352,z2:84512,A2:76065,C2:75989,G2:16623,H2:32594,I2:27240,K2:32633,T2:74858,W2:3945,V2:16989,X2:45520,Y2:25488,Z2:25492,b3:25494,e3:55760,f3:14057,g3:18451,h3:57204,j3:57203,l3:17897,m3:57205,n3:18198,o3:17898,q3:17909,r3:43980,s3:46220,C3:11721,E3:49954,J3:96369,K3:3854,R3:56251,T3:25624,Z3:16906,a4:99999,d4:68172,e4:27068,y4:47973,z4:72773,A4:26970,B4:26971,C4:96805,D4:17752,E4:73233,F4:109512,G4:22256,H4:14115,I4:22696,J4:89278,K4:89277,L4:109513,M4:43278,N4:43459,O4:43464,P4:89279,Q4:43717,
R4:55764,S4:22255,T4:89281,U4:40963,V4:43277,W4:43442,Y4:91824,a5:120137,c5:96367,d5:36850,e5:72694,f5:37414,g5:36851,i5:124863,h5:121343,j5:73491,k5:54473,l5:43375,m5:46674,z5:139095,A5:32473,E5:72901,F5:72906,G5:50947,H5:50612,I5:50613,J5:50942,K5:84938,L5:84943,M5:84939,N5:84941,O5:84944,P5:84940,Q5:84942,R5:35585,S5:51926,T5:79983,U5:63238,V5:18921,W5:63241,X5:57893,Y5:41182,Z5:135732,a6:33424,b6:22207,c6:42993,d6:36229,e6:22206,f6:22205,g6:18993,h6:19001,i6:18990,j6:18991,k6:18997,l6:18725,m6:19003,
n6:36874,o6:44763,p6:33427,q6:67793,r6:22182,s6:37091,t6:34650,u6:50617,v6:47261,w6:22287,x6:25144,y6:97917,A6:62397,B6:125598,C6:137935,D6:36961,E6:108035,F6:27426,G6:27857,H6:27846,I6:27854,J6:69692,K6:61411,L6:39299,M6:38696,N6:62520,O6:36382,P6:108701,Q6:50663,R6:36387,S6:14908,T6:37533,U6:105443,V6:61635,W6:62274,X6:133818,Y6:65702,Z6:65703,a7:65701,b7:76256,d7:37671,e7:49953,l7:36216,m7:28237,n7:39553,o7:29222,p7:26107,q7:38050,r7:26108,t7:120745,s7:26109,u7:26110,v7:66881,w7:28236,x7:14586,
B7:57929,D7:74723,E7:44098,F7:44099,I7:23528,J7:61699,G7:134104,H7:134103,K7:59149,M7:101951,N7:97346,O7:118051,P7:95102,Q7:64882,R7:119505,S7:63595,T7:63349,U7:95101,V7:75240,W7:27039,X7:68823,Y7:21537,Z7:83464,a8:75707,b8:83113,c8:101952,d8:101953,f8:79610,k8:125755,l8:24402,m8:24400,n8:32925,o8:57173,q8:122502,r8:138480,s8:64423,t8:64424,u8:33986,v8:100828,w8:129089,x8:21409,N8:135155,O8:135156,P8:135157,Q8:135158,S8:135159,T8:135160,U8:135161,V8:135162,W8:135163,X8:135164,Y8:135165,Z8:135166,
K8:11070,L8:11074,M8:17880,a9:14001,c9:30709,d9:30707,e9:30711,f9:30710,g9:30708,b9:26984,h9:63648,i9:63649,l9:51879,q9:111059,s9:5754,t9:20445,y9:130975,x9:130976,z9:110386,B9:113746,C9:66557,J9:17310,K9:28631,M9:21589,N9:68012,O9:60480,P9:138664,Q9:141121,R9:31571,V9:76980,Z9:41577,a$:45469,f$:38669,g$:13768,h$:13777,k$:62985,l$:4724,m$:59369,n$:43927,o$:43928,r$:12924,t$:100355,w$:56219,x$:27669,y$:10337,v$:47896,z$:122629,B$:139723,A$:139722,C$:121258,D$:107598,E$:127991,F$:96639,G$:107536,H$:130169,
I$:96661,J$:96658,K$:116646,L$:121122,M$:96660,N$:127738,O$:127083,P$:104443,Q$:96659,R$:106442,T$:134840,W$:63667,X$:63668,Y$:63669,Z$:130686,eaa:78314,iaa:55761,jaa:127098,maa:134841,qaa:96368,raa:67374,saa:48992,vaa:49956,zaa:31961,Aaa:26388,Faa:23811,Gaa:5E4,Haa:126250,Jaa:96370,Kaa:47355,Laa:47356,Yaa:37935,bba:45521,cba:21760,eba:83769,fba:49977,hba:49974,jba:93497,kba:93498,lba:34325,nba:140759,oba:115803,pba:123707,qba:100081,rba:35309,tba:68314,uba:25602,vba:100339,yba:59018,zba:18248,Aba:50625,
Bba:9729,Cba:37168,Dba:37169,Eba:21667,Fba:16749,Gba:18635,Hba:39305,Iba:18046,Kba:53969,Lba:8213,Oba:93926,Rba:102852,Sba:110099,Tba:22678,Uba:69076,Vba:137575,Yba:139224,Zba:100856,bca:17736,cca:3832,fca:55759,gca:64031,Eca:93044,Gca:93045,Kca:34388,Lca:17657,Mca:17655,Nca:39579,Oca:39578,Pca:77448,Qca:8196,Rca:11357,Sca:69877,Tca:8197,Vca:82039};ny.prototype.clear=function(){this.u.clear();this.i.clear();this.B.clear()};
La(ny);var py;g.oy=yf(function(){var a=new ns;return a.isAvailable()?new g.ks(a):null});
py=yf(function(){var a=new mfa;return a.isAvailable()?new g.ks(a):null});var Zla=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,$la=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,cma={};g.w(Ay,g.E);var kma=!1;g.w(Gy,g.E);Gy.prototype.tE=function(){var a=this.C().fE("SLOT_TYPE_PLAYER_BYTES",1),b=Cy(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.qb&&d.Vb instanceof Fy?d.Vb.To:void 0;e&&e===b&&(c&&R("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
Gy.prototype.kh=function(a,b,c,d,e,f){var h=this,l=Cy(this.i.get(),1);l.tp?this.Ia.get().Fp():(By(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return ima(h.u.get(),d,e,a,b,f,l)}),ROa(this.QC))};
Gy.prototype.Hj=function(){};var n2={},Sy=(n2.AD_MARKER="ytp-ad-progress",n2.CHAPTER_MARKER="ytp-chapter-marker",n2.TIME_MARKER="ytp-time-marker",n2);var CKa=RegExp("^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/)"),nma=RegExp("^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/)"),
DKa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),wma=RegExp("^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)|$))"),
uma=RegExp("^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)|$))"),pma=RegExp("^((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/)"),
EKa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),sma=RegExp("^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)"),oma=RegExp("^((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|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
qma=RegExp("^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)"),
dqa=RegExp("^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|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)[.]?(:[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)"),
gQa=RegExp("^(https://photos\\.google\\.com|https://get\\.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)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?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$)");g.Ty.prototype.getId=function(){return this.id};
g.Ty.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Ama(this.start)+", "+Ama(this.end)+"]"};
g.Ty.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 zma=1;g.Ty.prototype.getId=g.Ty.prototype.getId;g.w(Xy,g.Ty);Xy.prototype.deactivate=function(){this.B=!0};
Xy.prototype.Hv=function(){return this.end-this.start};var o2;var hQa=g.yb(),iQa=hQa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!iQa||2>iQa.length)o2=void 0;else{var p2=hQa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);o2=p2&&6==p2.length?Number(p2[5].replace("_",".")):0}var sG=o2,uN=0<=sG;uN&&0<=g.yb().search("Safari")&&g.yb().search("Version");g.w(bz,Pw);g.w(cz,Pw);var Jma=new Qw("aft-recorded",bz),hA=new Qw("timing-sent",cz);var q2=window,fz=q2.performance||q2.mozPerformance||q2.msPerformance||q2.webkitPerformance||new Ema;var Ima=!1,r2={'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"]':"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"},
Vma=(0,g.D)(fz.clearResourceTimings||fz.webkitClearResourceTimings||fz.mozClearResourceTimings||fz.msClearResourceTimings||fz.oClearResourceTimings||g.Ka,fz);var rz=g.B.ytLoggingLatencyUsageStats_||{};g.Ia("ytLoggingLatencyUsageStats_",rz,void 0);pz.prototype.tick=function(a,b,c,d){sz(this,"tick_"+a+"_"+b)||g.Wv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
pz.prototype.info=function(a,b,c){var d=Object.keys(a).join("");sz(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Wv("latencyActionInfo",a,{cttAuthInfo:c}))};
pz.prototype.span=function(a,b,c){var d=Object.keys(a).join("");sz(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Wv("latencyActionSpan",a,{cttAuthInfo:c}))};var s2={},Tma=(s2.auto_search="LATENCY_ACTION_AUTO_SEARCH",s2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",s2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",s2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",s2.app_startup="LATENCY_ACTION_APP_STARTUP",s2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",s2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",s2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",s2.browse="LATENCY_ACTION_BROWSE",s2.channels="LATENCY_ACTION_CHANNELS",
s2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",s2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",s2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",s2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",s2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",s2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",s2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",s2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",
s2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",s2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",s2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",s2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",s2.chips="LATENCY_ACTION_CHIPS",s2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",s2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",s2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",s2.embed=
"LATENCY_ACTION_EMBED",s2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",s2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",s2.explore="LATENCY_ACTION_EXPLORE",s2.home="LATENCY_ACTION_HOME",s2.library="LATENCY_ACTION_LIBRARY",s2.live="LATENCY_ACTION_LIVE",s2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",s2.onboarding="LATENCY_ACTION_ONBOARDING",s2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",s2.parent_tools_collection=
"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",s2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",s2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",s2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",s2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",s2.prebuffer="LATENCY_ACTION_PREBUFFER",s2.prefetch="LATENCY_ACTION_PREFETCH",s2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",s2.profile_switcher="LATENCY_ACTION_LOGIN",s2.reel_watch="LATENCY_ACTION_REEL_WATCH",s2.results="LATENCY_ACTION_RESULTS",
s2.search_ui="LATENCY_ACTION_SEARCH_UI",s2.search_suggest="LATENCY_ACTION_SUGGEST",s2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",s2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",s2.seek="LATENCY_ACTION_PLAYER_SEEK",s2.settings="LATENCY_ACTION_SETTINGS",s2.tenx="LATENCY_ACTION_TENX",s2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",s2.watch="LATENCY_ACTION_WATCH",s2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",s2["watch,watch7"]="LATENCY_ACTION_WATCH",s2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",
s2["watch,watch7ad"]="LATENCY_ACTION_WATCH",s2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",s2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",s2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",s2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",s2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",s2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",s2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",s2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",s2["video.live_settings"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",s2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",s2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",s2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",s2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",s2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",s2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",s2),t2={},Oma=(t2.ad_allowed="adTypesAllowed",t2.yt_abt=
"adBreakType",t2.ad_cpn="adClientPlaybackNonce",t2.ad_docid="adVideoId",t2.yt_ad_an="adNetworks",t2.ad_at="adType",t2.aida="appInstallDataAgeMs",t2.browse_id="browseId",t2.p="httpProtocol",t2.t="transportProtocol",t2.cs="commandSource",t2.cpn="clientPlaybackNonce",t2.ccs="creatorInfo.creatorCanaryState",t2.ctop="creatorInfo.topEntityType",t2.csn="clientScreenNonce",t2.docid="videoId",t2.GetHome_rid="requestIds",t2.GetSearch_rid="requestIds",t2.GetPlayer_rid="requestIds",t2.GetWatchNext_rid="requestIds",
t2.GetBrowse_rid="requestIds",t2.GetLibrary_rid="requestIds",t2.is_continuation="isContinuation",t2.is_nav="isNavigation",t2.b_p="kabukiInfo.browseParams",t2.is_prefetch="kabukiInfo.isPrefetch",t2.is_secondary_nav="kabukiInfo.isSecondaryNav",t2.nav_type="kabukiInfo.navigationType",t2.prev_browse_id="kabukiInfo.prevBrowseId",t2.query_source="kabukiInfo.querySource",t2.voz_type="kabukiInfo.vozType",t2.yt_lt="loadType",t2.mver="creatorInfo.measurementVersion",t2.yt_ad="isMonetized",t2.nr="webInfo.navigationReason",
t2.nrsu="navigationRequestedSameUrl",t2.ncnp="webInfo.nonPreloadedNodeCount",t2.pnt="performanceNavigationTiming",t2.prt="playbackRequiresTap",t2.plt="playerInfo.playbackType",t2.pis="playerInfo.playerInitializedState",t2.paused="playerInfo.isPausedOnLoad",t2.yt_pt="playerType",t2.fmt="playerInfo.itag",t2.yt_pl="watchInfo.isPlaylist",t2.yt_pre="playerInfo.preloadType",t2.yt_ad_pr="prerollAllowed",t2.pa="previousAction",t2.yt_red="isRedSubscriber",t2.rce="mwebInfo.responseContentEncoding",t2.rc="resourceInfo.resourceCache",
t2.scrh="screenHeight",t2.scrw="screenWidth",t2.st="serverTimeMs",t2.ssdm="shellStartupDurationMs",t2.br_trs="tvInfo.bedrockTriggerState",t2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",t2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",t2.label="tvInfo.label",t2.is_mdx="tvInfo.isMdx",t2.preloaded="tvInfo.isPreloaded",t2.aac_type="tvInfo.authAccessCredentialType",t2.upg_player_vis="playerInfo.visibilityState",t2.query="unpluggedInfo.query",t2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",
t2.yt_vst="videoStreamType",t2.vph="viewportHeight",t2.vpw="viewportWidth",t2.yt_vis="isVisible",t2.rcl="mwebInfo.responseContentLength",t2.GetSettings_rid="requestIds",t2.GetTrending_rid="requestIds",t2.GetMusicSearchSuggestions_rid="requestIds",t2.REQUEST_ID="requestIds",t2),Pma="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(" "),
u2={},Qma=(u2.ccs="CANARY_STATE_",u2.mver="MEASUREMENT_VERSION_",u2.pis="PLAYER_INITIALIZED_STATE_",u2.yt_pt="LATENCY_PLAYER_",u2.pa="LATENCY_ACTION_",u2.ctop="TOP_ENTITY_TYPE_",u2.yt_vst="VIDEO_STREAM_TYPE_",u2),Rma="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver 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 v2=window;v2.ytcsi&&(v2.ytcsi.info=g.Az,v2.ytcsi.tick=Bz);var Kra={o2:1,J2:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var jT=16/9,jQa=[.25,.5,.75,1,1.25,1.5,1.75,2],kQa=jQa.concat([3,4,5,6,7,8,9,10,15]);var lQa=["h","H"],mQa=["9","("],nQa=["9h","(h"],oQa=["8","*"],pQa=["a","A"],qQa=["o","O"],rQa=["m","M"],sQa=["mac3","MAC3"],tQa=["meac3","MEAC3"],w2={},zpa=(w2.h=lQa,w2.H=lQa,w2["9"]=mQa,w2["("]=mQa,w2["9h"]=nQa,w2["(h"]=nQa,w2["8"]=oQa,w2["*"]=oQa,w2.a=pQa,w2.A=pQa,w2.o=qQa,w2.O=qQa,w2.m=rQa,w2.M=rQa,w2.mac3=sQa,w2.MAC3=sQa,w2.meac3=tQa,w2.MEAC3=tQa,w2);lA.prototype.getLanguageInfo=function(){return this.zc};
lA.prototype.toString=function(){return this.zc.name};
lA.prototype.getLanguageInfo=lA.prototype.getLanguageInfo;var x2,qA;x2={};g.nA=(x2.auto=0,x2.tiny=144,x2.light=144,x2.small=240,x2.medium=360,x2.large=480,x2.hd720=720,x2.hd1080=1080,x2.hd1440=1440,x2.hd2160=2160,x2.hd2880=2880,x2.highres=4320,x2);qA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};mA.prototype.equals=function(a){return this.u===a.u&&this.i===a.i&&this.B===a.B&&this.reason===a.reason};
mA.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i};
mA.prototype.compose=function(a){if(a.B&&pA(a))return EF;if(a.B||pA(this))return a;if(this.B||pA(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new mA(b,c,!1,c===this.i?this.reason:a.reason)};
mA.prototype.C=function(a){return a.video?ana(this,a.video.quality):!1};
var uQa=oA("auto","hd1080",!1,"l"),UGa=oA("auto","large",!1,"l"),EF=oA("auto","auto",!1,"p");oA("small","auto",!1,"p");sA.prototype.Gn=function(a){a=a||EF;for(var b=g.Cp(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
sA.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var DA={N0:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
cd:function(a){a.reverse()},
WX:function(a,b){a.splice(0,b)}};g.EA.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.EA.prototype.get=function(a){GA(this);return this.i[a]||null};
g.EA.prototype.clone=function(){var a=new g.EA(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.i=g.We(this.i);a.url=this.url;return a};g.k=MA.prototype;g.k.bC=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Fk(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.getIngestionTime=function(a){return(a=this.Fk(a))?a.ingestionTime:NaN};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-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.ws(a))?a.Ma:-1};
g.k.getSegmentURL=function(a){return(a=this.Fk(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Fk(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.Fk(a))?a.i:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Fk=function(a){if(this.i&&this.i.Ma===a)return this.i;a=g.nc(this.segments,new LA(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.i=0<=a?this.segments[a]:null};
g.k.ws=function(a){if(this.i&&this.i.startTime<=a&&a<this.i.startTime+this.i.duration)return this.i;a=g.nc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.i=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.fc(a),this.segments.length){var b=this.segments.length?g.Rb(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&Yb(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 MGa=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}(),y2=Array(1024),PA=window.TextDecoder?new TextDecoder:void 0,RA=window.TextEncoder?new TextEncoder:void 0;SA.prototype.skip=function(a){this.i+=a};
SA.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var z2={},vQa=(z2.predictStart="predictStart",z2.start="start",z2["continue"]="continue",z2.stop="stop",z2),vna={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};aB.prototype.Yv=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"])};
aB.prototype.toString=function(){for(var a="",b=g.q(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var Gna=!1;BB.prototype.set=function(a,b){this.Cf.get(a);this.i[a]=b;this.url=""};
BB.prototype.get=function(a){return this.i[a]||this.Cf.get(a)};Tna.prototype.vj=function(a,b){a.Cf===this.i&&(this.i=DB(a,b));a.Cf===this.B&&(this.B=DB(a,b))};JB.prototype.Ue=function(){return!!this.i&&this.index.isLoaded()};
JB.prototype.zr=function(){return!1};
JB.prototype.QH=function(a){return[a]};
JB.prototype.ix=function(a){return[a]};LB.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};PB.prototype.isEncrypted=function(){return this.i.info.isEncrypted()};
PB.prototype.equals=function(a){return!(!a||a.i!==this.i||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Ma!==this.Ma||a.Bb!==this.Bb||a.u!==this.u)};
PB.prototype.isVideo=function(){return!!this.i.info.video};WB.prototype.Kp=function(){return this.B?FA(this.B):""};
WB.prototype.zk=function(){return QB(this.i[0])};
WB.prototype.vj=function(a,b){this.u.vj(a,b);if(this.B){this.B=DB(a,b);b=g.q(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};g.w($B,JB);g.k=$B.prototype;g.k.Ng=function(){return!1};
g.k.hw=function(){return!1};
g.k.zr=function(){return!this.X};
g.k.Pp=function(){var a=new PB(1,this,this.initRange,"getMetadataRequestInfo");return new WB([a],this.X)};
g.k.yr=function(){return null};
g.k.xu=function(a){this.Qm(a);return this.Rm(a.Td?a.Ma+1:a.Ma,!1)};
g.k.cm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.hc()||this.info.hc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Rm(a,!0)};
g.k.pE=function(a){this.i=new Uint8Array(rC(a).buffer)};
g.k.Qm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);sna(this.index,c);this.K=b};
g.k.Ue=function(){return this.zr()?!0:JB.prototype.Ue.call(this)};
g.k.Rm=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.Ob?this.info.Ob*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.K&&0<f;a=new PB(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new WB([a],c)};
g.k.cE=function(){return this.zr()?0:this.initRange.length};
g.k.SF=function(){return!1};cC.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new cC,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+aC(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+aC(a,"startNumber")||0;d.C=h;var m=h,n=+aC(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(foa(aC(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=aC(a,"media"));a=c?l-c.Ma: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.Ma)l++;else{var u=new doa(l,b,n,m+p,h);d.i.push(u);var v=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);v=-u/f+v;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,C=e.getAttribute("yt:cuepointIdentifier")||"";var F=e.getAttribute("yt:cuepointEvent")||"";F=vQa[F]||"unknown";u=new Ly(v,y,z,C,
F,u)}else u=null;u&&d.B.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.u=g.Rb(d.i))}this.I=d.I;this.u=d.u||this.u;gc(this.i,d.i);gc(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
cC.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(dC,MA);g.k=dC.prototype;g.k.getFirstSegmentNumber=function(){return this.vk?this.segments.length?this.ws(this.getMinSeekableTime()).Ma:-1:MA.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.bf)return 0;if(!this.vk)return MA.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Rb(this.segments).endTime-this.Sl,0);return 0<this.re&&this.ws(a).Ma<this.re?this.Fk(this.re).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return MA.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.vk||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new LA(a,Math.max(0,b.startTime-(b.Ma-a)*this.Fg),this.Fg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.bf?Math.min(this.Sl,a.startTime):a.startTime:this.bf?Math.min(this.Sl,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.vk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:MA.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.wg,Math.max(MA.prototype.getLastSegmentNumber.call(this),this.yu)),b=1E3*this.Sl;b=0<this.u&&this.u<b;this.bf&&0<this.Sl&&0<this.yu&&!b&&(b=this.ws(this.Sl))&&(a=Math.min(b.Ma-1,a));return a};
g.k.Bs=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.bC=function(a){var b=eC(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.pw&&0===a.Ma%(300/this.Fg)){var c=this.segments[0].Ma,d=Math.floor(this.pw/this.Fg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.ws=function(a){if(!this.vk)return MA.prototype.ws.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].Ma-Math.ceil((this.segments[0].startTime-a)/this.Fg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Fg+1);else{b=oc(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.Fk(b)};
g.k.Fk=function(a){if(!this.vk)return MA.prototype.Fk.call(this,a);if(!this.segments.length)return null;var b=eC(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new LA(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(gC,$B);g.k=gC.prototype;g.k.hw=function(){return!0};
g.k.Ue=function(){return!0};
g.k.Qm=function(a){return!a.B};
g.k.Pp=function(){};
g.k.cm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?$B.prototype.cm.call(this,a,b):(a=new PB(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Vi,void 0,this.Vi*this.info.Ob),new WB([a],""))};
g.k.Rm=function(a,b){var c=void 0===c?!1:c;if(fC(this.index,a))return $B.prototype.Rm.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Vi*this.info.Ob;b=!b;c=new PB(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0<e,b);return new WB([c],0<=a?"sq/"+a:"")};g.w(hC,JB);g.k=hC.prototype;g.k.Ng=function(){return!1};
g.k.hw=function(){return!1};
g.k.Pp=function(){var a=new PB(1,this,void 0,"otfInit");return new WB([a],this.K)};
g.k.yr=function(){return null};
g.k.xu=function(a){this.Qm(a);return noa(this,a.Ma+(a.Td?1:0),!1)};
g.k.cm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return noa(this,a,!0)};
g.k.pE=function(a){1===a.info.type&&(this.i||(this.i=soa(a.i)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&ooa(this,a.u))};
g.k.Qm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.cE=function(){return 0};
g.k.SF=function(){return!1};g.k=iC.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.i[a]/this.B};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.i[a+1]-this.i[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?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.u?this.i[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.nc(this.i.subarray(0,this.count),a*this.B);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.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;jC(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){jC(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.k.cap=function(a,b){jC(this);this.u=!0;this.i[this.count]=b;this.offsets[this.count]=a};kC.prototype.append=function(a){if(poa(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);mC(this)}else this.i.push(a);this.totalLength+=a.length};
kC.prototype.split=function(a){for(var b=new kC,c=new kC,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{Cz:b,Nq:c}};
kC.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.i[this.u].length};
kC.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&mC(this);this.B+this.i[this.u].length<=a&&this.u<this.i.length;)this.B+=this.i[this.u].length,this.u+=1;this.C=void 0}};qC.prototype.verify=function(a){if(this.info.u!==this.i.totalLength)return a.slength=this.info.u.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=rC(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.u&&1936286840===b;if(3===this.info.type&&0===this.info.Bb)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.u||4===this.info.type)return!0;c=rC(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Bb)return 524531317===c||440786851===c}return!0};g.w(uC,JB);g.k=uC.prototype;g.k.Pp=function(a){var b=new PB(1,this,this.initRange,"initInfo"),c=new PB(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=NB(c,a),b.push(new PB(4,this,a,"tbdRange"))));return new WB(b)};
g.k.pE=function(a){if(1===a.info.type){if(this.i)return;this.i=soa(a.i)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.sC(this.info)){var b=this.index,c=rC(a);a=a.info.range.start;var d=g.cB(c,0,1936286840);c=Dna(d);b.setTimebase(c.PG);b.setFirstSegmentStart(c.dS+a+d.size,c.QR);a=c.KG.length;for(d=0;d<a;d++)b.addSegmentBySize(c.aX[d],c.KG[d])}else this.K=rC(a)}if(this.info.qe()&&this.i&&this.K){a=new DataView(this.i.buffer);b=this.index;d=this.K;c=this.indexRange.end;
var e=new mB(a);a=e;e=a.i;var f={pO:1E6,qO:1E9,duration:0,QN:0,oG:0};if(qB(a,408125543))if(f.QN=rB(a,!0),f.oG=a.start+a.i,qB(a,357149030)){for(var h=pB(a);!nB(h);){var l=rB(h,!1);2807729===l?f.pO=uB(h):2807730===l?f.qO=uB(h):17545===l?f.duration=wB(h):vB(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.qO/a.pO);e=new mB(d);d=e;h=a.oG;e=d.i;f=[];if(qB(d,475249515)){for(l=pB(d);qB(l,187);){var m=pB(l);if(qB(m,179)){var n=uB(m);if(qB(m,183)){m=pB(m);for(var p=h;qB(m,241);)p=
uB(m)+h;f.push({Iy:p,IR:n})}}}if(0<f.length&&c===f[0].Iy)for(c=0;c<f.length;c++)f[c].Iy+=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.Iy,d.IR);b.cap(a.QN+a.oG,a.duration)}}this.K=null}};
g.k.QH=function(a){for(var b=this.ix(a.info),c=a.info.range.start+a.info.Bb,d=a.B,e=[],f=0;f<b.length;f++){var h=b[f].u;h=a.i.split(b[f].range.start+b[f].Bb-c).Nq.split(h).Cz;e.push(new qC(b[f],h,d));d=!1}return e};
g.k.ix=function(a){for(var b=a.range.start+a.Bb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return vC(this,c,b,a.u).i};
g.k.Qm=function(a){return this.Ue()?!0:a.range.end+1<this.info.contentLength};
g.k.yr=function(a,b){this.Qm(a);if(!this.Ue())return b=NB(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new LB(b.start,this.info.contentLength-1)),a=[new PB(4,a.i,b,"getNextRequestInfoByLength")],new WB(a);4===a.type&&(a=this.ix(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Bb+a.u;3===a.type&&(c=a.Ma,d===a.range.end+1&&(c+=1));return vC(this,c,d,b)};
g.k.xu=function(){return null};
g.k.cm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return vC(this,a,this.index.getOffset(a),0)};
g.k.Ng=function(){return!0};
g.k.hw=function(){return!1};
g.k.cE=function(){return this.indexRange.length+this.initRange.length};
g.k.SF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};wC.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var A2={},zA=(A2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},A2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},A2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},A2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},A2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},A2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},A2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},A2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},A2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},A2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},A2);var Z={},BC=(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 zC="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");yC.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=CC.prototype;g.k.hc=function(){return this.id.split(";",1)[0]};
g.k.qe=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Fd};
g.k.Qk=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};IC.prototype.getName=function(){return this.name};
IC.prototype.getId=function(){return this.id};
IC.prototype.getIsDefault=function(){return this.isDefault};
IC.prototype.toString=function(){return this.name};
IC.prototype.getName=IC.prototype.getName;IC.prototype.getId=IC.prototype.getId;IC.prototype.getIsDefault=IC.prototype.getIsDefault;g.w(g.JC,Cx);g.JC.prototype.T=function(a,b,c,d,e){return Cx.prototype.T.call(this,a,b,c,d,e)};g.w(XC,g.Q);g.k=XC.prototype;g.k.appendBuffer=function(a,b,c){if(this.Dd.iz()!==this.appendWindowStart+this.start||this.Dd.SD()!==this.appendWindowEnd+this.start||this.Dd.dd()!==this.timestampOffset+this.start)this.Dd.supports(1),this.Dd.sG(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Dd.hB(this.timestampOffset+this.start);this.Dd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Dd.abort()};
g.k.remove=function(a,b){this.Dd.remove(a+this.start,b+this.start)};
g.k.sG=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.gE=function(){return this.timestampOffset+this.start};
g.k.iz=function(){return this.appendWindowStart};
g.k.SD=function(){return this.appendWindowEnd};
g.k.hB=function(a){this.timestampOffset=a};
g.k.dd=function(){return this.timestampOffset};
g.k.lf=function(a){a=this.Dd.lf(void 0===a?!1:a);return WC(a,this.start,this.end)};
g.k.dh=function(){return this.Dd.dh()};
g.k.Lp=function(){return this.Dd.Lp()};
g.k.lz=function(){return this.Dd.lz()};
g.k.hH=function(a,b){this.Dd.hH(a,b)};
g.k.supports=function(a){return this.Dd.supports(a)};
g.k.mz=function(){return this.Dd.mz()};
g.k.isView=function(){return!0};
g.k.uB=function(a,b,c){return this.isActive?this.Dd.uB(a,b,c):!1};
g.k.Cy=function(){return this.Dd.Cy()?this.isActive:!1};
g.k.isLocked=function(){return this.Nx&&!this.isActive};
g.k.Kb=function(a){return this.Dd.Kb(a)+(";vw."+this.start+"-"+this.end)};
g.k.Kv=function(){return this.Dd.Kv()};
g.k.ya=function(){Gx(this.Dd,this.UK);g.Q.prototype.ya.call(this)};var $T=!1;g.w(aD,g.Q);g.k=aD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.yy=!1;c&&(this.Tz=c);b&&(b.isEncrypted()&&(this.zL=this.Tz),3===b.type&&(this.Ve=b));(null===(d=this.Wb)||void 0===d?0:d.appendBuffer)?this.Wb.appendBuffer(a):this.Wb?this.Wb.append(a):this.Me&&this.Me.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Wb?this.Wb.abort():this.Me&&this.Me.webkitSourceAbort(this.id)}catch(a){}this.Tz=this.Ve=null};
g.k.remove=function(a,b){var c;this.yy=!1;(null===(c=this.Wb)||void 0===c?0:c.remove)&&this.Wb.remove(a,b)};
g.k.iz=function(){var a;return $T&&this.isVideo?this.appendWindowStart:(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.SD=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.sG=function(a,b){this.Wb&&($T&&this.isVideo?(this.appendWindowStart=a,this.Wb.appendWindowEnd=b):a>this.iz()?(this.Wb.appendWindowEnd=b,this.Wb.appendWindowStart=a):(this.Wb.appendWindowStart=a,this.Wb.appendWindowEnd=b))};
g.k.gE=function(){return this.timestampOffset};
g.k.hB=function(a){$T?this.timestampOffset=a:this.supports(1)&&(this.Wb.timestampOffset=a)};
g.k.dd=function(){return $T?this.timestampOffset:this.supports(1)?this.Wb.timestampOffset:0};
g.k.lf=function(a){if(void 0===a?0:a)return this.yy||this.dh()||(this.vJ=this.lf(!1),this.yy=!0),this.vJ;try{return this.Wb?this.Wb.buffered:this.Me?this.Me.webkitSourceBuffered(this.id):QC([0],[Infinity])}catch(b){return QC([],[])}};
g.k.dh=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.updating)||!1};
g.k.Lp=function(){return this.Tz};
g.k.lz=function(){return this.zL};
g.k.hH=function(a,b){this.containerType!==a&&(this.supports(4),bD()&&this.Wb.changeType(b));this.containerType=a};
g.k.mz=function(){return this.Ve};
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.Wb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Wb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Wb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Wb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Wb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Wb||!this.Wb.changeType);default:return!1}};
g.k.Cy=function(){return!this.dh()};
g.k.isLocked=function(){return!1};
g.k.Kb=function(a){var b,c;a.to=""+this.dd();a.up=""+ +this.dh();var d=(null===(b=this.Wb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Wb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=RC(this.lf())}catch(f){}return g.YC(a)};
g.k.ya=function(){this.supports(3)&&(this.Wb.removeEventListener("updateend",this.Ce),this.Wb.removeEventListener("error",this.Ce));g.Q.prototype.ya.call(this)};
g.k.uB=function(a,b,c){if(!this.supports(2)||this.dh())return!1;var d=this.lf(),e=SC(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.Kv=function(){return this.containerType};cD.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.i)}catch(a){}this.B=!0}};
cD.prototype.isDisposed=function(){return this.B};
cD.prototype.equals=function(a){return null!==a&&a.i===this.i};
cD.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.w(dD,g.E);g.k=dD.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.B};
g.k.Nj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Me.webkitSourceSetDuration(a))}catch(b){}};
g.k.sf=function(){try{return"closed"===fD(this)}catch(a){return!0}};
g.k.dh=function(){return!!(this.i&&this.i.dh()||this.u&&this.u.dh())};
g.k.jW=function(){!this.isDisposed()&&eD(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.iW=function(){this.dispose()};var Noa=/action_display_post/;var Ooa;g.w(iD,g.Q);g.k=iD.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.RW=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.uf=this.B=!0;this.timeline||(this.timeline=new hoa);loa(this.timeline,a,this.Wa);this.ea("refresh");for(a=0;a<c.length;a++){var d=epa(this,c[a]),e=this.isLive&&g.sC(d)&&this.bb;if(!this.i[d.id]){var f=lD(bC(c[a],"BaseURL").textContent),h=bC(c[a],"Initialization"),l=aC(h,"sourceURL");h=MB(aC(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new $B(f,d,l,h)}d=this.i[d.id];f=aC(c[a],"id","AdaptationSet");f=""!==f?f:aC(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.i||null;f=l.i;!this.u&&l.getStreamTimeOffset()&&(this.u=l.getStreamTimeOffset());if(l.D)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.Ob,p=h.Ma,r=h.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",r.toString());e.push(new LA(h.Ma,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.u))}else{l=hc(bC(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 v=u.split("-");v[1]&&0<=Number(v[1])?t=MB(u):b=b+"?range="+u}p.call(n,new LA(r.Ma,r.startSecs,r.durationSecs,r.i,b,t,r.u))}e=h}d.update(e,this.isLive,this.La)}moa(this.timeline);
return!0}this.duration=eoa(aC(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=epa(this,f);e=lD(bC(f,"BaseURL").textContent);l=bC(f,"SegmentBase");f=MB(l.attributes.getNamedItem("indexRange").value);l=MB(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new uC(e,d,l,f);if(!d){c=!1;break a}jD(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.Ui(this.sourceUrl,{start_seq:ipa(this).toString()});gpa(this,a).yh(function(){})}};
g.k.resume=function(){fpa(this)};
g.k.kd=function(){if(this.isManifestless&&this.S&&pD(this))return pD(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.D&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Qk()&&(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(qD(this))return qD(this);if(this.K){var a=this.getIngestionTime(this.kd());if(a&&(a-=this.K,0<a))return this.kd()-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.u};
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 mD=null,$oa=!!navigator.mediaCapabilities,dpa={commentary:1,alternate:2,dub:3,main:4};yD.prototype.clone=function(a){return new yD(this.flavor,a,this.C,this.experiments)};
yD.prototype.Kb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
yD.prototype.mf=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 B2={},GD=(B2.playready=["com.youtube.playready","com.microsoft.playready"],B2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],B2),C2={},HGa=(C2.widevine="DRM_SYSTEM_WIDEVINE",C2.fairplay="DRM_SYSTEM_FAIRPLAY",C2.playready="DRM_SYSTEM_PLAYREADY",C2),D2={},wQa=(D2.widevine=1,D2.fairplay=2,D2.playready=3,D2);g.w(HD,g.E);
HD.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.Fd)for(var h=g.q(Object.keys(f.Fd)),l=h.next();!l.done;l=h.next())if(l=l.value,GD[l])for(var m=g.q(GD[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new yD(l,n,f.Fd[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Du()&&(this.u["com.youtube.fairplay"]=new yD("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=Apa(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),g.xD(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
HD.prototype.ma=function(){};
HD.prototype.N=function(a){return this.experiments.kb(a)};var xQa={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},E2;a:{var F2=g.yb();F2=F2.toLowerCase();if(-1!=F2.indexOf("android")){var yQa=F2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(yQa){var zQa=parseFloat(yQa[1]);if(100>zQa){E2=zQa;break a}}var AQa=F2.match("("+g.Ne(xQa).join("|")+")");E2=AQa?xQa[AQa[0]]:0}else E2=void 0}var oE=E2,nE=0<=oE;var hqa={RED:"red",Fca:"white"};var oqa={MY:"adunit",f2:"detailpage",B2:"editpage",E2:"embedded",F2:"embedded_unbranded",b5:"leanback",A9:"previewpage",D9:"profilepage",mba:"unplugged",r9:"playlistoverview",faa:"sponsorshipsoffer",S$:"shortspage"};Hpa.prototype.kb=function(a){return"true"===this.flags[a]};JD.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Iu?a=a||BQa[b]:2.2===oE?a=a||CQa[b]:Bu()&&(a=a||DQa[b]);return!!a};
JD.prototype.isTypeSupported=function(a){this.ma();return this.I?window.cast.receiver.platform.canDisplayType(a):MC(a)};
JD.prototype.disableAv1=function(){this.S=!0};
JD.prototype.ma=function(){};
var CQa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},DQa={"application/x-mpegURL":"maybe"},BQa={"application/x-mpegURL":"maybe"};g.w(MD,g.Q);MD.prototype.add=function(a,b){!this.items[a]&&(b.Xu||b.Ey||b.Hx)&&(this.items[a]=$e(b),this.ea("vast_info_card_add",a))};
MD.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
MD.prototype.get=function(a){return this.items[a]||null};
MD.prototype.isEmpty=function(){return g.Se(this.items)};var wE={u5:1,v5:2,w5:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(OD,g.E);OD.prototype.load=function(){var a=this,b;return g.A(function(c){if(1==c.i)return a.i?c.return():g.x(c,Mpa(),2);b=c.u;if(!b)return c.return();a.i={primary:b,secondary:void 0};upa(b,void 0);g.ta(c)})};
OD.prototype.ya=function(){this.u&&(Pt(this.u),this.u=void 0);g.E.prototype.ya.call(this)};QD.prototype.Lg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a};
QD.prototype.pg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};RD.prototype.Lg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0};
RD.prototype.pg=function(){return this.D?(SD(this,this.B-this.D)+SD(this,this.B)+SD(this,this.B+this.D))/3:SD(this,this.B)};g.w(Zpa,g.E);var bqa=/^([0-9\.]+):([0-9\.]+)$/;var fqa="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),nqa={IZ:"cbrand",JZ:"cbr",KZ:"cbrver",U3:"c",X3:"cver",W3:"ctheme",V3:"cplayer",y7:"cmodel",i8:"cnetwork",D8:"cos",E8:"cosver",j9:"cplatform"};g.w(CE,g.E);g.k=CE.prototype;g.k.N=function(a){return this.experiments.kb(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.FE(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.sE(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,Iu&&(a=Vha())&&(b.ebc=a));return g.Ui(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.FE(this)+"/embed/"+a;c&&(a=g.Ui(a,{list:c}));c=b.width;b=b.height;a=g.Dg(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.Ej&&!Iu&&74<=Eia()||g.Fj&&g.zc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
g.k.ya=function(){this.Zg&&(Pt(this.Zg),this.Zg=void 0);g.E.prototype.ya.call(this)};
var uqa=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=UE.prototype;g.k.mf=function(){return this.i};
g.k.Au=function(){return null};
g.k.RH=function(){var a=this.Au();return a?(a=g.Dt(a.i),Number(a.expire)):NaN};
g.k.pG=function(){};
g.k.hc=function(){return this.i.hc()};
g.k.getHeight=function(){return this.i.video.height};vqa.prototype.Qe=function(){yqa(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.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.zc){if(e.zc.getIsDefault()){c=e.zc.getId();break a}c||(c=e.zc.getId())}}d=g.q(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.zc||e.zc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.q(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.i])for(e=g.q(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.zc){p=f.zc;var r=p.getId().split(".")[0];r&&(m+='LANGUAGE="'+r+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}r="";null!==d&&(r=d.itag.toString());r=WE(this,f.url,r);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(xqa(f,d)+'",URI="'+(r+'"'));l.call(h,m)}c=g.q(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=EQa,d=(h=d.zc)?'#EXT-X-MEDIA:URI="'+WE(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?EQa:void 0;d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.i],0<(null===h||void 0===h?void 0:h.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(xqa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.Zt&&(h+=",VIDEO-RANGE="+e.Zt),a.push(h),a.push(WE(this,e.url,"")));return a.join("\n")};
var EQa="text";g.w(XE,UE);XE.prototype.RH=function(){return this.expiration};
XE.prototype.Au=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Qe();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new cD(a)}return this.u};g.w(YE,UE);YE.prototype.Au=function(){return new cD(FA(this.u))};
YE.prototype.pG=function(){this.u=JA(this.u)};g.w(ZE,UE);ZE.prototype.Au=function(){return new cD(this.u)};$E.prototype.toString=function(){return this.type+this.id};var Kqa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Lqa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.dF.prototype.Ke=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.i)return GE(this.u,this.i,a)};
g.dF.prototype.Kk=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.eF.prototype.Ke=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:GE(this.i,this.videoId,a)};
g.eF.prototype.Kk=function(){return this.watchUrl||this.i.getVideoUrl(this.videoId)};var Nqa=["APP_STATE","PI"];var G2={},Uqa=Yw("yt-player-local-media",{nq:(G2.index={Xm:2},G2.media={Xm:2},G2.captions={Xm:5},G2),ox:!1,upgrade:function(a,b){b(2)&&(rw(a,"index"),rw(a,"media"));b(5)&&rw(a,"captions");b(6)&&(tw(a,"metadata"),tw(a,"playerdata"))},
version:5});fF.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.i.set(a,b,c)};
fF.prototype.get=function(a){return this.i.get(a)};
fF.prototype.remove=function(a){this.i.remove(a)};var gF=void 0;var Qqa=!1;Oqa("LMS",function(){return g.A(function(a){return a.return(hF())})});var lF=0,Xqa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Oqa("LMDB",function(){var a,b;return g.A(function(c){if(1==c.i)return g.x(c,g.Lw(),2);if(3!=c.i){a=c.u;if(!a)throw g.jw("edd");return g.x(c,g.kF(a),3)}b=c.u;return c.return(uw(b,["index","media","captions"],{mode:"readonly",Lc:!0},function(d){var e={};d=[yw(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
jka(d.objectStore("media")),jka(d.objectStore("captions"))];return lw.all(d).then(function(f){var h=g.q(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:hra(f||[]),captions:h}})}))})});g.k=g.nF.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.oF(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var jra={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},kra={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},lra=/^(\d*)_((\d*)_?(\d*))$/;var H2={},Nra=(H2.ALWAYS=1,H2.BY_REQUEST=3,H2.UNKNOWN=void 0,H2),I2={},zra=(I2.COLOR_PRIMARIES_BT709="bt709",I2.COLOR_PRIMARIES_BT2020="bt2020",I2.COLOR_PRIMARIES_UNKNOWN=null,I2.COLOR_PRIMARIES_UNSPECIFIED=null,I2),J2={},nra=(J2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",J2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",J2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",J2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",J2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,J2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,J2),K2={},uF=(K2.FAIRPLAY="fairplay",K2.PLAYREADY="playready",K2.WIDEVINE="widevine",K2.CLEARKEY=null,K2.FLASHACCESS=null,K2.UNKNOWN=null,K2.WIDEVINE_CLASSIC=null,K2),L2={},Ora=(L2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",L2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",L2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",L2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",L2),M2={},wra=(M2.UNKNOWN=0,M2.RECTANGULAR=1,M2.EQUIRECTANGULAR=2,M2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,M2.MESH=4,M2),N2={},yra=(N2.SPATIAL_AUDIO_TYPE_NONE=0,N2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,N2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,N2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,N2),O2={},xra=(O2.STEREO_LAYOUT_UNKNOWN=0,O2.STEREO_LAYOUT_LEFT_RIGHT=1,O2.STEREO_LAYOUT_TOP_BOTTOM=2,O2),P2={},vra=(P2.FORMAT_STREAM_TYPE_UNKNOWN=0,P2.FORMAT_STREAM_TYPE_OTF=3,P2);g.w(vF,g.Q);vF.prototype.ya=function(){this.i&&(this.i=this.i.onload=null);g.Q.prototype.ya.call(this)};g.k=g.zF.prototype;g.k.getHeight=function(){return this.height};
g.k.CK=ba(0);g.k.ZD=function(){return this.B};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Sx=function(a){var b=this.ZD()-1;return g.sg(0===this.i?Math.round(a*this.B/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.Ar=function(){return this.B-1};
g.k.Tx=function(){return this.B?0:-1};
g.k.SH=function(){};g.w(AF,vF);AF.prototype.u=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.S||180>f.getHeight())&&c.push(f)}return c};
AF.prototype.I=function(a,b,c,d){return new g.zF(a,b,c,d)};g.w(CF,g.zF);g.k=CF.prototype;g.k.ZD=function(){return this.u.getNumberOfSegments()};
g.k.Sx=function(a){var b=this.rows*this.columns*this.I,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.Ar=function(){return this.u.getLastSegmentNumber()};
g.k.Tx=function(){return this.u.getFirstSegmentNumber()};
g.k.SH=function(a){this.u=a};g.w(DF,AF);DF.prototype.u=function(a,b){return AF.prototype.u.call(this,"$N|"+a,b)};
DF.prototype.I=function(a,b,c){return new CF(a,b,c,this.isLive)};g.w(FF,g.Q);g.k=FF.prototype;g.k.V=function(){return this.u};
g.k.N=function(a){return this.u.N(a)};
g.k.tf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null===(a=this.fc)||void 0===a||!a.ub)};
g.k.yM=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.yM,this),this.KJ(-1))};
g.k.KJ=function(a){if(!this.isLivePlayback||!this.I||"fairplay"!=this.I.flavor){var b=apa(this.i,this.PB);if(0<b.length&&(this.ea("cuepointupdated",b,a),this.PB+=b.length,MF(this)&&g.RF(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ca("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs+";id."+c.identifier.slice(-16)),"start"===c.event&&(c=c.startSecs,this.LC.start=this.Ku,this.LC.end=c+3)}}};
g.k.Hh=function(){var a={};this.B&&(a.fmt=this.B.hc(),this.K&&this.K.hc()!=this.B.hc()&&(a.afmt=this.K.hc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Sg&&(a.infringe=1);this.Bf&&(a.splay=1);var b=ZF(this);b&&(a.live=b);this.Vk&&(a.autoplay=1);this.qK&&(a.sdetail=this.qK);this.Ka&&(a.partnerid=this.Ka);this.osid&&(a.osid=this.osid);return a};
g.k.qg=function(){if(this.cotn)return null;var a=g.LE(this.u)||this.N("web_l3_storyboard");if(!this.Rf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Rf=new AF(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Le(this.i.i).index)&&(this.Rf=new DF(b.spec,this.i.isLive,c,a))}else this.lr?this.Rf=new AF(this.lr,this.lengthSeconds,void 0,!1,a):this.Oq&&this.i&&
(b=Le(this.i.i).index)&&(this.Rf=new DF(this.Oq,this.i.isLive,b,a));return this.Rf};
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.lr||this.Oq};
g.k.kd=function(){return this.i&&!isNaN(this.i.kd())?this.i.kd():MF(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.B){var b=this.i.i[this.B.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.Qi)};
g.k.isLoaded=function(){return GF(this)&&!this.xd&&!this.Wj};
g.k.Ke=function(a){if(30==this.Ka)return(a=this.Z["default.jpg"])?a:this.videoId?g.Ui("//docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.u.K||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:GE(this.u,this.videoId,a)};
g.k.uf=function(){return this.isLivePlayback||this.bf||this.mj||!(!this.liveUtcStartSeconds||!this.eh)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.bf&&!this.isLivePlayback&&this.i.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.Dq||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.K&&!GC(this.K))return g.Tb(this.getAvailableAudioTracks(),function(d){return d.id==a.K.id})||this.ij;
if(this.Dq){if(!this.Zj)for(var b=g.q(this.Dq),c=b.next();!c.done;c=b.next())if(c=c.value,c.zc.getIsDefault()){this.Zj=c;break}return this.Zj||this.ij}return this.ij};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Kk=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.nf=function(){return this.oauthToken||this.u.Pe};
g.k.Un=function(){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b="TVHTML5_SIMPLY"===this.u.deviceParams.c&&"MUSIC"===this.u.deviceParams.ctheme;!this.Ae&&(g.tE(this.u)||b)&&a.includes(this.musicVideoType)&&(this.Ae=!0);if(a=g.Cu())a=/Starboard\/([0-9]+)/.exec(g.yb()),a=10>(a?parseInt(a[1],10):NaN);b=this.u;b=("TVHTML5_CAST"===b.deviceParams.c||"TVHTML5"===b.deviceParams.c&&(b.deviceParams.cver.startsWith("6.20130725")||b.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===
this.u.deviceParams.ctheme;!this.Ae&&(b||rqa(this.u))&&!a&&(a="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===this.musicVideoType,b=(this.N("cast_prefer_audio_only_for_atv_and_uploads")||this.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===this.musicVideoType,a||b)&&(this.Ae=!0);return!this.u.deviceHasDisplay||this.Ae&&this.u.B};
g.k.yG=function(){return this.cj||this.Zc};
g.k.qx=function(){return this.Pe||this.Zc};
g.k.VC=function(){return SF(this,"html5_samsung_vp9_live")};
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.Ca=function(a,b,c){this.ea("ctmp",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ya=function(){g.Q.prototype.ya.call(this);delete this.Bl;this.Fl=null;delete this.ZX;delete this.accountLinkingConfig;delete this.i;this.C=this.playerResponse=this.watchNextResponse=null;this.Wi=this.adaptiveFormats="";delete this.botguardData;this.Tq={};this.suggestions=null};uG.prototype.gw=function(){return!1};
uG.prototype.Ka=function(){return function(){return null}};var CG=null;g.w(BG,g.Q);BG.prototype.Jv=function(a){return this.i.hasOwnProperty(a)?this.i[a].Jv():{}};
g.Ia("ytads.bulleit.getVideoMetadata",function(a){return DG().Jv(a)},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=DG();c=xsa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(GG,uG);g.k=GG.prototype;g.k.Ns=function(){return!0};
g.k.Xo=function(){return!1};
g.k.isSkippable=function(){return null!=this.Ba};
g.k.getVideoUrl=function(){return this.xa};
g.k.gw=function(){return!0};g.w(NG,uG);NG.prototype.Ns=function(){return!0};
NG.prototype.Xo=function(){return!1};
NG.prototype.gw=function(){return!0};
NG.prototype.Ka=function(){return function(){return g.Sg("video-ads")}};Gsa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var MMa={vY:"FINAL",HY:"AD_BREAK_LENGTH",IY:"AD_CPN",JY:"AH",KY:"AD_MT",LY:"ASR",OY:"AW",c_:"NM",d_:"NX",e_:"NY",k_:"CONN",v_:"CPN",w2:"DV_VIEWABILITY",L2:"ERRORCODE",P2:"ERROR_MSG",R2:"EI",B3:"GOOGLE_VIEWABILITY",Q3:"IAS_VIEWABILITY",Z4:"LACT",n5:"LIVE_TARGETING_CONTEXT",x5:"I_X",y5:"I_Y",c7:"MT",g7:"MIDROLL_POS",h7:"MIDROLL_POS_MS",j7:"MOAT_INIT",k7:"MOAT_VIEWABILITY",m9:"P_H",n9:"PV_H",o9:"PV_W",p9:"P_W",u9:"TRIGGER_TYPE",j$:"SDKV",caa:"SLOT_POS",uaa:"SURVEY_LOCAL_TIME_EPOCH_S",taa:"SURVEY_ELAPSED_MS",
hR:"VIS",Pba:"VIEWABILITY",Qba:"VED",Wba:"VOL",aca:"WT",Uca:"YT_ERROR_CODE"};var Nsa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];UG.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.zr(a.baseUrl,Ksa(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.nf();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.kv(e,void 0,d,f)}catch(p){}};g.w(VG,UG);VG.prototype.nf=function(){return this.zp?this.zp.nf():""};
VG.prototype.i=function(){return this.zp?this.zp.V().pageId:""};WG.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=Eea(a);e=[];It(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.ip.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(Osa,g.E);g.w(mH,g.Q);g.k=mH.prototype;g.k.Jv=function(){return{}};
g.k.LN=function(){};
g.k.ud=function(a){this.xk();this.ea(a)};
g.k.xk=function(){Vsa(this,this.xa,3);this.xa=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.Mn=function(){var a=this.i;YG(a)||!fH(a,"impression")&&!fH(a,"start")||fH(a,"abandon")||fH(a,"complete")||fH(a,"skip")||iH(a,"pause");this.C||(a=this.i,YG(a)||!fH(a,"unmuted_impression")&&!fH(a,"unmuted_start")||fH(a,"unmuted_abandon")||fH(a,"unmuted_complete")||iH(a,"unmuted_pause"))};
g.k.Nn=function(){this.Aa||this.S||this.Ef()};
g.k.Bh=function(){aH(this.i,this.getDuration());if(!this.C){var a=this.i;this.getDuration();YG(a)||(Ssa(a,0,!0),Tsa(a,0,0,!0),XG(a,"unmuted_complete"))}};
g.k.vg=function(){var a=this.i;!fH(a,"impression")||fH(a,"skip")||fH(a,"complete")||eH(a,"abandon");this.C||(a=this.i,fH(a,"unmuted_impression")&&!fH(a,"unmuted_complete")&&eH(a,"unmuted_abandon"))};
g.k.Tp=function(){var a=this.i;ZG(a)?XG(a,"skip"):!fH(a,"impression")||fH(a,"abandon")||fH(a,"complete")||XG(a,"skip")};
g.k.Ef=function(){if(!this.S){var a=this.gz();this.i.macros.AD_CPN=a;a=this.i;if(ZG(a)){var b=a.i.getCurrentTime(2,!1);dH(a,"impression",b,0)}else XG(a,"impression");XG(a,"start");YG(a)||a.i.isFullscreen()&&eH(a,"fullscreen");this.S=!0;this.C=this.J.isMuted()||0==this.J.getVolume();this.C||(a=this.i,XG(a,"unmuted_impression"),XG(a,"unmuted_start"),YG(a)||a.i.isFullscreen()&&eH(a,"unmuted_fullscreen"))}};
g.k.Yg=function(a){a=a||"";var b="",c="",d="";vG(this.J)&&(b=this.J.zb(2).state,this.J.ld()&&(c=this.J.ld().Ch(),null!=this.J.ld().nj()&&(d=this.J.ld().nj())));var e=this.i;e.macros=TG(e.macros,RG(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));XG(e,"error");this.C||Psa(this.i,3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))};
g.k.qf=function(){};
g.k.rN=function(){this.ea("adactiveviewmeasurable")};
g.k.sN=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.k.tN=function(){this.ea("adoverlaymeasurableimpression")};
g.k.uN=function(){this.ea("adoverlayunviewableimpression")};
g.k.vN=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.k.wN=function(){this.ea("adoverlayviewableimmediateimpression")};
g.k.xN=function(){this.ea("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.xk(),this.u.unsubscribe("adactiveviewmeasurable",this.rN,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.sN,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.tN,this),this.u.unsubscribe("adoverlayunviewableimpression",this.uN,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.vN,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.wN,this),this.u.unsubscribe("adviewableimpression",
this.xN,this),delete this.u.i[this.ad.K],g.Q.prototype.dispose.call(this))};
g.k.gz=function(){var a=this.J.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.hK=function(){return""};g.w(pH,uG);pH.prototype.Ns=function(){return!0};
pH.prototype.Xo=function(){return!1};g.w(qH,zG);g.w(rH,mH);g.k=rH.prototype;g.k.Br=function(){0<this.B&&this.Ef()};
g.k.Ef=function(){var a=this;this.Mb=new g.I(function(){a.Bh();for(var b=g.q(a.D.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.ud("adended")},this.B,this);
g.H(this,this.Mb);this.Mb.start();nH(this,[new qH(this.D.i,this.macros)]);mH.prototype.Ef.call(this)};
g.k.vg=function(){mH.prototype.vg.call(this);this.ud("adabandoned")};
g.k.Bh=function(){mH.prototype.Bh.call(this)};
g.k.ud=function(a){this.Mb&&this.Mb.stop();mH.prototype.ud.call(this,a)};g.w(sH,uG);sH.prototype.Ns=function(){return!0};
sH.prototype.Xo=function(){return!1};g.w(tH,uG);tH.prototype.Ns=function(){return!0};
tH.prototype.Xo=function(){return!1};g.w(uH,uG);uH.prototype.Ns=function(){return!0};
uH.prototype.Xo=function(){return!1};Xsa.prototype.create=function(a,b){return a instanceof GG?this.I.create(a,b):a instanceof NG?this.C.create(a,b):a instanceof pH?this.i.create(a,b):a instanceof uH?this.D.create(a,b):a instanceof tH?this.B.create(a,b):a instanceof sH?this.u.create(a,b):null};g.w(vH,mH);g.k=vH.prototype;g.k.vg=function(){mH.prototype.vg.call(this);this.ud("adabandoned")};
g.k.Mn=function(){mH.prototype.Mn.call(this);this.ea("adpause",2)};
g.k.Nn=function(){mH.prototype.Nn.call(this);this.ea("adplay",1)};
g.k.Ef=function(){mH.prototype.Ef.call(this);this.B.stop();this.D.T(this.J,g.Vy("bltplayback"),this.vP);var a=new g.Ty(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.J.Ed([a],2);this.ea("adplay",1)};
g.k.Bh=function(){mH.prototype.Bh.call(this);this.ud("adended")};
g.k.Yg=function(a){mH.prototype.Yg.call(this,a);this.ud("aderror")};
g.k.Br=function(){xG(this.J,!1);var a=this.I.u||{};a.autoplay="1";this.J.cueVideoByPlayerVars(a,2);this.B.start();this.J.playVideo(2);this.J.Oa("onAdIntroStateChange",1)};
g.k.ud=function(a){this.B.stop();xG(this.J,!0);"adabandoned"!=a&&this.J.Oa("onAdComplete");this.J.Oa("onAdEnd");this.ea(a);this.J.Oa("onAdIntroStateChange",0)};
g.k.vP=function(a){"bltcompletion"==a.getId()&&(this.J.Ye("bltplayback",2),aH(this.i,this.getDuration()))};g.w(Zsa,zG);g.w(yH,mH);g.k=yH.prototype;
g.k.Br=function(){if(this.B)if(this.J.V().experiments.kb("html5_externally_manage_ad_notify_layout")){var a=Ysa(this.xj);this.slot=a;for(var b=g.q(this.B.listeners),c=b.next();!c.done;c=b.next())c=c.value,aJ(c.Sm(),a),aLa(c.Sm(),a)}else for(a=g.q(this.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u=Ysa(b.C.get()),aJ(b.Sm(),b.u),aLa(b.Sm(),b.u);0>=this.X&&(g.vt(Error("durationMs was specified incorrectly with a value of: "+this.X)),this.Bh());this.Ef();this.J.addEventListener("progresssync",this.oa)};
g.k.vg=function(){mH.prototype.vg.call(this);this.ud("adabandonedreset")};
g.k.Ef=function(){var a=this.J.V();a.N("web_csi_notification_ad_fix")&&(Ez("apbs",void 0,"video_to_ad"),g.Az("ad_at","0_0","video_to_ad"));mH.prototype.Ef.call(this);this.D=a.N("disable_rounding_ad_notify")?this.J.getCurrentTime():Math.floor(this.J.getCurrentTime());this.I=this.D+this.X/1E3;g.zE(a)?this.J.Oa("onAdMessageChange",{renderer:this.K.i,startTimeSecs:this.D}):nH(this,[new Zsa(this.K.i)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Vx(),c=this.K.i.videoAdBreakOffsetMsInt64;
b&&g.Wv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.B)if(this.Z=!0,this.J.V().experiments.kb("html5_externally_manage_ad_notify_layout"))if(this.slot)for(a=this.slot,b=g.q(this.B.listeners),c=b.next();!c.done;c=b.next()){var d=a;bJ(c.value.Sm(),d)}else xt(Error("AdNotify started without a start request"));else for(a=g.q(this.B.listeners),b=a.next();!b.done;b=a.next())b=
b.value,b.u?b.i?R("Received AdNotify started event before another one exited"):(b.i=b.u,bJ(b.Sm(),b.i)):R("Received AdNotify started event without start requested event");g.T(this.J.zb(1),512)&&(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Vx(),c=this.K.i.videoAdBreakOffsetMsInt64,b&&g.Wv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Bh())};
g.k.Bh=function(){mH.prototype.Bh.call(this);this.ud("adended")};
g.k.Yg=function(a){mH.prototype.Yg.call(this,a);this.ud("aderror")};
g.k.ud=function(a){this.J.removeEventListener("progresssync",this.oa);this.xk();this.ea(a);$sa(this)};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.oa);$sa(this);mH.prototype.dispose.call(this)};
g.k.xk=function(){g.zE(this.J.V())?this.J.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):mH.prototype.xk.call(this)};CH.prototype.sendAdsPing=function(a){this.I.send(a,jta(this),{})};
CH.prototype.zd=function(a){var b=this;if(a){var c=jta(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};DH.prototype.get=function(){return this.value};
g.w(EH,DH);EH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(FH,DH);FH.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(GH,DH);GH.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(HH,DH);HH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(IH,DH);IH.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(JH,DH);JH.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(KH,DH);KH.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(LH,DH);LH.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(MH,DH);MH.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(NH,DH);NH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(OH,DH);OH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(PH,DH);PH.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(QH,DH);QH.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(RH,DH);RH.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(SH,DH);SH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(TH,DH);TH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(UH,DH);UH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(VH,DH);VH.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(WH,DH);WH.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(XH,DH);XH.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(YH,DH);YH.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(ZH,DH);ZH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(oI,DH);oI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(pI,DH);pI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(qI,DH);qI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(rI,DH);rI.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(sI,DH);sI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(tI,DH);tI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(uI,DH);uI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(vI,DH);vI.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(wI,DH);wI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(xI,DH);xI.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(yI,DH);yI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(zI,DH);zI.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(AI,DH);AI.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(BI,DH);BI.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(CI,DH);CI.prototype.getType=function(){return"metadata_type_dai"};
g.w(DI,DH);DI.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(EI,DH);EI.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(FI,DH);FI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(GI,DH);GI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(HI,DH);HI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(II,DH);II.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(JI,DH);JI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(KI,DH);KI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(LI,DH);LI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(MI,DH);MI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(NI,DH);NI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(OI,DH);OI.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w(PI,DH);PI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(QI,DH);QI.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(RI,DH);RI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};pta.prototype.zd=function(a){this.i.zd(a)};g.w(TI,g.Q);TI.prototype.getProgressState=function(){return this.B};
TI.prototype.start=function(){this.C=Date.now();rta(this,{current:this.i/1E3,duration:this.u/1E3});this.Mb.start()};
TI.prototype.stop=function(){this.Mb.stop()};g.w(UI,zG);g.w(VI,g.Q);VI.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())};
VI.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
VI.prototype.Xb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.timer.stop(),this.C(this.i),this.D()):this.C(this.i)};g.w(XI,mH);g.k=XI.prototype;g.k.Br=function(){this.Ef()};
g.k.Ef=function(){var a=this,b=this.D.i;if(g.zE(this.J.V()))tta(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(nH(this,[new UI(b)]),this.D.i.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new VI(c,function(d){var e={current:d/1E3,duration:c/1E3};oH(a,d/1E3);a.J.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};sta(a);a.J.Oa("onAdPlaybackProgress",d)});
g.H(this,this.K);this.K.start()}WI();mH.prototype.Ef.call(this)};
g.k.getDuration=function(){return this.D.u};
g.k.Mn=function(){mH.prototype.Mn.call(this);this.B&&this.B.stop()};
g.k.Nn=function(){mH.prototype.Nn.call(this);this.B&&this.B.start()};
g.k.vg=function(){mH.prototype.vg.call(this);this.ud("adabandoned")};
g.k.Tp=function(){mH.prototype.Tp.call(this);this.ud("adended")};
g.k.Yg=function(a){this.J.V().experiments.kb("html5_block_player_errors_while_survey_active")?R("Unexpected Player Error while the Survey is playing."):(mH.prototype.Yg.call(this,a),this.ud("aderror"))};
g.k.ud=function(a){this.xk();this.ea(a)};
g.k.qf=function(a){switch(a){case "skip-button":this.Tp();break;case "survey-submit":this.ud("adended")}};
g.k.xk=function(){g.zE(this.J.V())?(this.B&&this.B.stop(),this.J.Oa("onAdInfoChange",null)):mH.prototype.xk.call(this)};g.w(YI,zG);g.w(ZI,mH);ZI.prototype.Br=function(){this.Ef()};
ZI.prototype.Ef=function(){WI();nH(this,[new YI(this.B.i,this.macros)]);mH.prototype.Ef.call(this)};
ZI.prototype.vg=function(){mH.prototype.vg.call(this);this.ud("adabandoned")};
ZI.prototype.Yg=function(a){mH.prototype.Yg.call(this,a);this.ud("aderror")};g.w($I,mH);g.k=$I.prototype;g.k.Jv=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.B.u,isPlaying:vsa(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.Br=function(){if(this.B.X)Wsa(this),this.ud("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.J.V().S.add(b,{Xu:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Xl(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.If("//tpc.googlesyndication.com/sodar/%{path}");g.cy(new g.aw("Load Sodar Error.",d instanceof Gf,d.constructor===Gf,{Message:e.message,"Escaped injector basename":g.Dg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Gf)throw e;
}}catch(e){g.by(e)}xG(this.J,!1);a=Esa(this.B);b=this.J.V();a.iv_load_policy=b.isMobile||g.zE(b)||g.LE(b)?3:1;b=this.J.getVideoData(1);b.cg&&(a.ctrl=b.cg);b.Gf&&(a.ytr=b.Gf);b.Ol&&(a.ytrcc=b.Ol);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Wh&&(a.vss_credentials_token_type=b.Wh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.I.start():(this.J.cueVideoByPlayerVars(a,2),this.I.start(),this.J.playVideo(2))}};
g.k.Mn=function(){mH.prototype.Mn.call(this);this.ea("adpause",2)};
g.k.Nn=function(){mH.prototype.Nn.call(this);this.ea("adplay",1)};
g.k.Ef=function(){mH.prototype.Ef.call(this);this.I.stop();this.Z.T(this.J,g.Vy("bltplayback"),this.wP);var a=new g.Ty(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.J.Ed([a],2);a=gJ(this);this.D.Ka=a;if(this.J.isMuted()){a=this.i;var b=this.J.isMuted();ZG(a)||XG(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.i.getVideoData(1)?this.D.i.getVideoData(1).clientPlaybackNonce:"";b=vta(this);for(var c=this.B,d=uta(this),e=g.q(this.K.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,r=l.getVideoUrl();p&&n.push(new PH(p));r&&n.push(new QH(r));(r=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new SH(r)),(r=r.elementId)&&n.push(new oI(r))):R("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new TH(p));l.i.adNextParams&&n.push(new GH(l.i.adNextParams||""));(p=l.Ja)&&n.push(new HH(p));(p=Cy(f.S.get(),2))?(n.push(new LH({channelId:p.bj,
channelThumbnailUrl:p.Qh,channelTitle:p.author,videoTitle:p.title})),n.push(new MH(p.isListed))):R("Expected meaningful PlaybackData on ad started.");n.push(new OH(l.B));n.push(new wI(l.u));n.push(new RH(a));n.push(new sI({current:this}));p=l.Va;null!=p.kind&&n.push(new NH(p));(p=l.Sa)&&n.push(new JI(p));void 0!==m&&n.push(new KI(m));f.i?R(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):wta(f,h,n,!0,l.i.adLayoutLoggingData)}}this.J.Oa("onAdStart",
gJ(this));a=g.q(this.B.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.wP=function(a){"bltcompletion"==a.getId()&&(this.J.Ye("bltplayback",2),aH(this.i,this.getDuration()),fJ(this,"adended"))};
g.k.Bh=function(){mH.prototype.Bh.call(this);this.ud("adended");for(var a=g.q(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.vg=function(){mH.prototype.vg.call(this);this.ud("adabandoned")};
g.k.XA=function(){var a=this.i;YG(a)||eH(a,"clickthrough");this.C||(a=this.i,YG(a)||eH(a,"unmuted_clickthrough"))};
g.k.Mw=function(){this.Tp()};
g.k.Tp=function(){mH.prototype.Tp.call(this);this.ud("adended")};
g.k.Yg=function(a){mH.prototype.Yg.call(this,a);this.ud("aderror")};
g.k.ud=function(a){this.I.stop();xG(this.J,!0);"adabandoned"!=a&&this.J.Oa("onAdComplete");fJ(this,a);this.J.Oa("onAdEnd",gJ(this));this.ea(a)};
g.k.xk=function(){var a=this.J.V();g.zE(a)&&(g.LE(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.zE(a))?this.J.Oa("onAdInfoChange",null):mH.prototype.xk.call(this)};
g.k.LN=function(){this.eT&&this.J.playVideo()};
g.k.eT=function(){return 2==this.J.getPlayerState(2)};
g.k.hK=function(a,b){if(this.B.X)return Wsa(this),this.ud("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.B.u,d=Esa(this.B);d=this.J.Rr(d,2,c,a,b);a+c>b&&this.J.St(d,b-a);return d};
g.k.dispose=function(){vsa(this.J)&&!this.X&&this.J.stopVideo(2);fJ(this,"adabandoned");mH.prototype.dispose.call(this)};hJ.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={hv:null,HL:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.HL))if(b.HL=c,b.hv){if(c<b.hv.end){a:{c=b.hv;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.hv.end=a,this.u.xM(a))}}else if(a=
yta(a,this.B))c=a.XS,b.hv=a.HR,this.u.HF(c)};
hJ.prototype.updateTime=function(){};kJ.prototype.Hf=function(a){var b=this.i;g.Ah(function(){return b.Hf(a,1)})};nJ.prototype.rp=function(a,b,c,d,e){var f=this;Gta(this,a,b,d,e,function(){Hta(f);f.C=!b&&0===c})};
nJ.prototype.reset=function(){return new nJ(this.J)};var Q2={},R2=(Q2.BUFFERING="buffering-mode",Q2.CUED="cued-mode",Q2.ENDED="ended-mode",Q2.PAUSED="paused-mode",Q2.PLAYING="playing-mode",Q2.SEEKING="seeking-mode",Q2.UNSTARTED="unstarted-mode",Q2);var FQa,S2,Nta;
FQa={aZ:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",yZ:"AUTHENTICATION_MALFORMED",zZ:"AUTHENTICATION_MISSING",FZ:"BAD_REQUEST",QZ:"CAST_SESSION_DEVICE_MISMATCHED",RZ:"CAST_SESSION_VIDEO_MISMATCHED",SZ:"CAST_TOKEN_EXPIRED",TZ:"CAST_TOKEN_FAILED",UZ:"CAST_TOKEN_MALFORMED",VZ:"CGI_PARAMS_MALFORMED",WZ:"CGI_PARAMS_MISSING",g2:"DEVICE_FALLBACK",M2:"GENERIC_WITH_LINK_AND_CPN",N2:"ERROR_HDCP",O2:"LICENSE",Q2:"VIDEO_UNAVAILABLE",d3:"FORMAT_UNAVAILABLE",u3:"GEO_FAILURE",L3:"HTML5_AUDIO_RENDERER_ERROR",
M3:"GENERIC_WITHOUT_LINK",N3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",O3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",P3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",b4:"INVALID_DRM_MESSAGE",G9:"PURCHASE_NOT_FOUND",H9:"PURCHASE_REFUNDED",T9:"RENTAL_EXPIRED",b$:"RETRYABLE_ERROR",p$:"SERVER_ERROR",haa:"STOPPED_BY_ANOTHER_PLAYBACK",naa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",oaa:"STREAMING_NOT_ALLOWED",paa:"STREAM_LICENSE_NOT_FOUND",Baa:"TOO_MANY_REQUESTS",Caa:"TOO_MANY_REQUESTS_WITH_LINK",
Daa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Eaa:"TOO_MANY_STREAMS_PER_USER",xba:"UNSUPPORTED_DEVICE",Jba:"VIDEO_FORBIDDEN",Mba:"VIDEO_NOT_FOUND"};S2={};
g.iN=(S2.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.",S2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",S2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",S2.LICENSE="Sorry, there was an error licensing this video.",S2.VIDEO_UNAVAILABLE=
"Video unavailable",S2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",S2.GEO_FAILURE="This video isn't available in your country.",S2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",S2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",S2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",S2.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",
S2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",S2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",S2.PURCHASE_NOT_FOUND="This video requires payment.",S2.PURCHASE_REFUNDED="This video's purchase has been refunded.",S2.RENTAL_EXPIRED="This video's rental has expired.",S2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",S2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
S2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",S2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",S2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",S2.SERVER_ERROR="There was an internal server error. Please try again later.",S2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",S2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
S2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",S2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",S2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",S2.TOO_MANY_REQUESTS="Please log in to watch this video.",S2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",S2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
S2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",S2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",S2.VIDEO_FORBIDDEN="Access to this video is forbidden.",S2.VIDEO_NOT_FOUND="This video can not be found.",S2);
Nta={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.w(pJ,g.E);g.k=pJ.prototype;g.k.Ux=function(){return this.u};
g.k.Pr=function(a){var b="";a&&(Qta(this,a),b=a.i);if(!this.Df()||b)b&&this.Df()!==b&&this.Yx(b),GQa||a&&a.u||this.load(),this.I||(this.addEventListener("volumechange",this.MJ),this.I=!0)};
g.k.Op=function(){var a=this.xe();a=window.MediaSource?new dD(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new dD(new window.WebKitMediaSource,void 0,!1):new dD(void 0,a,!1);this.Pr(a.qw);return a};
g.k.playVideo=function(){var a=this;this.Sk()&&this.seekTo(0);!this.Df()&&this.u&&(g.vt(Error("playVideo without src")),this.Yx(this.u.i),this.u.u||this.load());var b=this.play();!b&&HQa&&uN&&7<=(sG||0)&&g.Xia(this,"playing",function(){g.Mt(function(){Pta(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Ch()&&(IQa&&uN&&4>sG&&(a=Math.max(.1,a)),this.Xx(a))};
g.k.stopVideo=function(){this.Df()&&(JQa&&Iu&&0<this.getCurrentTime()&&this.seekTo(0),this.VA(),this.load(),Qta(this,null))};
g.k.Ds=function(){var a=this.Uf();return 0<VC(a)&&this.getDuration()?UC(a,this.getCurrentTime()):0};
g.k.Mp=function(){var a=this.getDuration();return Infinity===a?1:a?this.Ds()/a:0};
g.k.Kb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:RC(this.Qp(),",",3),vbu:RC(this.Uf()),vpa:""+ +this.ul(),vsk:""+ +this.Bu(),ven:""+ +this.Sk(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ch(),vns:""+this.pz(),vec:""+this.nj(),vemsg:this.oe(),vvol:""+this.getVolume(),vdom:""+ +this.FE(),vsrc:""+ +!!this.Df(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.B.Ra(a,b,!1,this);this.FD(a)};
g.k.removeEventListener=function(a,b){this.B.qc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.k.DD=function(){this.D=!1};
g.k.BD=function(){this.D=!0;this.Ft(!0)};
g.k.MJ=function(){this.D&&!this.oz()&&this.Ft(!0)};
g.k.equals=function(a){return!!a&&a.xe()===this.xe()};
g.k.ya=function(){this.I&&this.removeEventListener("volumechange",this.MJ);g.E.prototype.ya.call(this)};
var GQa=!1,JQa=!0,HQa=!0,IQa=!0;g.k=g.tJ.prototype;g.k.getData=function(){return this.stateData};
g.k.Ec=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.w(DJ,g.Q);g.k=DJ.prototype;g.k.Wp=function(){var a=this.u;return a.u instanceof GG||a.u instanceof NG||a.u instanceof HG};
g.k.XB=function(){return this.u.u.Xo()};
g.k.HH=function(){return this.u.i};
g.k.YB=function(){return"AD_PLACEMENT_KIND_START"==this.u.i.i};
g.k.IH=function(){return OG(this.u)};
g.k.LK=function(a){if(!Yy(a)){this.X&&(this.Aa=this.J.isAtLiveHead(),this.xa=Math.ceil(g.Ta()/1E3));var b=new kJ(this.Pf);a=Ata(a);b.Hf(a)}this.JH()};
g.k.sL=function(){return!0};
g.k.Vn=function(){return this.K instanceof NG};
g.k.lw=function(){return this.K instanceof GG};
g.k.JH=function(){var a=this.Pf;this.sL()&&(a.u&&GJ(a,!1),a.u=this,this.Wp()&&wva(a));Kta(this.D);this.jN()};
g.k.jN=function(){this.K?this.Cu(this.K):HJ(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Ni(0);HJ(this,b)};
g.k.kM=function(){this.onAdEnd()};
g.k.GT=function(){XG(this.i.i,"active_view_measurable")};
g.k.JT=function(){var a=this.i.i;YG(a)||hH(a)||XG(a,"active_view_fully_viewable_audible_half_duration")};
g.k.NT=function(){};
g.k.OT=function(){};
g.k.PT=function(){};
g.k.QT=function(){};
g.k.TT=function(){var a=this.i.i;YG(a)||hH(a)||XG(a,"active_view_viewable")};
g.k.HT=function(){var a=this.i.i;YG(a)||hH(a)||XG(a,"audio_audible")};
g.k.IT=function(){var a=this.i.i;YG(a)||hH(a)||XG(a,"audio_measurable")};
g.k.vK=function(){return this.lw()?[this.rz()]:[]};
g.k.Nc=function(a){if(null!==this.i){this.oa||(a=new g.jH(a.state,new g.tJ),this.oa=!0);var b=a.state;if(g.lH(a,2))this.i.Bh();else{var c=a;(this.J.V().experiments.kb("html5_bulleit_handle_gained_playing_state")?c.state.Ec()&&!c.uo.Ec():c.state.Ec())?(Mta(this.D),this.i.Nn()):b.isError()?this.i.Yg(b.getData().errorCode):g.lH(a,4)&&(this.Z||this.i.Mn())}if(null!==this.i){if(g.lH(a,16)&&(b=this.i.i,!(YG(b)||.5>b.i.getCurrentTime(2,!1)&&!b.i.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.gw()){var d=b.B.J.V().N("html5_dai_enable_active_view_creating_completed_adblock");yr(c.K,d)}b.ad.I.seek=!0}0>kH(a,4)&&!(0>kH(a,2))&&(b=this.i,c=b.i,YG(c)||iH(c,"resume"),b.C||(b=b.i,YG(b)||iH(b,"unmuted_resume")));!this.J.V().experiments.kb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.lH(a,512)&&!g.BJ(a.state)&&oJ(this.D)}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?Tta(this):!1};
g.k.resume=function(){this.i&&this.i.LN()};
g.k.yn=function(){this.i&&this.i.ud("adended")};
g.k.Bk=function(){this.yn()};
g.k.Ni=function(a){this.Pf.Ni(a)};
g.k.xP=function(a){this.Pf.i.Oa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.i.qf(a)};
g.k.tK=function(){return 0};
g.k.RD=function(){return 1};
g.k.aH=function(a){this.daiEnabled&&this.u.I&&this.u.i.start<=a&&a<FJ(this)&&this.J.xp(a,this.u.i.end)};
g.k.Cu=function(a){g.re(this.i);this.i=a=this.gp.create(a,SG(Lsa(this.u)),this.u.i.i);a.subscribe("adabandoned",g.Ra(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ra(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.GT,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.kM,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.JT,this);a.subscribe("adoverlaymeasurableimpression",this.NT,this);a.subscribe("adoverlayunviewableimpression",
this.OT,this);a.subscribe("adoverlayviewableendofsessionimpression",this.PT,this);a.subscribe("adoverlayviewableimmediateimpression",this.QT,this);a.subscribe("adpause",this.rE,this);a.subscribe("adplay",this.rE,this);a.subscribe("adunstarted",this.rE,this);a.subscribe("onAdUxUpdate",this.xP,this);a.subscribe("adviewableimpression",this.TT,this);a.subscribe("adaudioaudible",this.HT,this);a.subscribe("adaudiomeasurable",this.IT,this);a.Aa?a.Yg("ui_unstable"):a.Br();Uta(this,!1)};
g.k.rE=function(a){this.Ni(a)};
g.k.rz=function(){return this.K};
g.k.isLiveStream=function(){return this.X};
g.k.reset=function(){return new DJ(this.Pf,this.J,this.D.reset(),this.u,this.Ql,this.hs,this.gp,this.daiEnabled)};
g.k.ya=function(){g.re(this.i);this.i=null;g.Q.prototype.ya.call(this)};$ta.prototype.create=function(a){return(a.u instanceof HG?this.B:""===a.D?this.i:this.u)(a)};IJ.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Vx(void 0===c?0:c))?(Ula(this.client,c,g.Rx(a),b),b=!0):b=!1:b=!1;return b};LJ.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Ok.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)};
LJ.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];gua(this,b)};var T2;MJ.getInstance=function(){T2=g.Ja("yt.clientLocationService.instance");T2||(T2=new MJ,g.Ia("yt.clientLocationService.instance",T2,void 0));return T2};
MJ.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)};
MJ.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.N("INNERTUBE_CLIENT_NAME")?(this.localStorage=hua(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.qu("YT_CL",JSON.stringify({wda:a}),15552E3,void 0,!0))};
MJ.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.O("web_enable_browser_geolocation_api")&&!g.O("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.O("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})})};
MJ.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};OJ.prototype.jz=function(a,b){a={};var c=ti([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.N("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in nt||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in nt&&(a["X-Goog-PageId"]=g.N("DELEGATED_SESSION_ID")));return a};var QJ;g.w(PJ,OJ);PJ.prototype.jz=function(a,b){a=OJ.prototype.jz.call(this,a,b);return Object.assign(Object.assign({},a),this.Eq)};var vua=/[&\?]action_proxy=1/,uua=/[&\?]token=([\w-]*)/,wua=/[&\?]video_id=([\w-]*)/,xua=/[&\?]index=([\d-]*)/,yua=/[&\?]m_pos_ms=([\d-]*)/,Bua=/[&\?]vvt=([\w-]*)/,pua="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(" "),zua="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(" "),rua={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},sua={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Aua={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};SJ.prototype.Vs=function(a){this.player.Jp().tick(a)};
SJ.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return UJ(this,a,b);var d=1===this.i;d&&this.Vs("a_bid_s");var e=kua();if(null!==e)return d&&this.Vs("a_bid_f"),UJ(this,a,b,e);e=lua();d&&Oh(e,function(){c.Vs("a_bid_f")});
return e.then(function(f){return UJ(c,a,b,f)})};
SJ.prototype.reset=function(){this.u=this.i=1};g.w(VJ,g.Q);g.k=VJ.prototype;g.k.HH=function(){return this.i.i};
g.k.YB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.IH=function(){return OG(this.i)};
g.k.Wp=function(){return!1};
g.k.XB=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.LK=function(a){var b=this;this.B.V().N("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.B&&2!==this.i.B){var c=[];this.YB()||(c=Ata(a));this.i.B=1;Oh(this.D.fetch(this.i.D,{fv:this.i.C||void 0,Gd:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.B.isFullscreen();d=Dua(b,d);var f=b.C;f.u&&d.isEmpty&&mJ("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.tL||(b.i.B=2,(new kJ(b.u)).Hf(e),d.isEmpty||gma(b.I,d.Il))}},function(){(new kJ(b.u)).Hf(c);
var d=b.C;d.u&&mJ("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.B&&(b.i.B=0);
b.YB()&&hK(b.u)})}};
g.k.JH=function(){};
g.k.aH=function(){};var Gua=Object.freeze([pH,sH,NG,uH,GG]);g.w(WJ,DJ);g.k=WJ.prototype;g.k.vK=function(){for(var a=this.B.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.sL=function(){return(0>=this.C?this.B.i:this.B.i.slice(this.C)).some(function(a){return a.Ns()})};
g.k.Vn=function(){return this.I instanceof NG||this.I instanceof uH};
g.k.lw=function(){return this.I instanceof GG||this.I instanceof sH};
g.k.jN=function(){this.daiEnabled?vG(this.J)&&Tta(this):Fua(this)};
g.k.Cu=function(a){var b=Eua(a);this.I&&b&&this.S!==b&&(b?wva(this.Pf):yva(this.Pf),this.S=b);this.I=a;this.daiEnabled&&(this.C=this.B.i.findIndex(function(c){return c===a}));
DJ.prototype.Cu.call(this,a)};
g.k.Bk=function(){this.C=this.B.i.length;this.i&&this.i.ud("adended");HJ(this)};
g.k.yn=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ni(0),a?HJ(this,b):Fua(this))};
g.k.kM=function(){if(1==this.B.u)this.I instanceof tH&&xt(Error("AdNotify error with FailureMode.TERMINATING")),HJ(this);else this.onAdEnd()};
g.k.rz=function(){var a=0>=this.C?this.B.i:this.B.i.slice(this.C);return 0<a.length?a[0]:null};
g.k.Wp=function(){return this.S};
g.k.XB=function(){return this.B.i.every(function(a){return a.Xo()})};
g.k.reset=function(){return new WJ(this.Pf,this.J,this.D.reset(),this.u,this.Ql,this.hs,this.gp,this.daiEnabled)};
g.k.tK=function(){return this.C};
g.k.RD=function(){return this.B.i.length};Hua.prototype.rK=function(){return this.i};g.w(Iua,HG);g.w(Kua,HG);Lua.prototype.create=function(a,b){function c(l){return new GG(l,d.B,b,d.i,d.u)}
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 NG(f):null!=h?new Kua(h,c,this.i):null!=a?new Iua(a,c):null};Mua.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 mma(h.B,h.u,h.daiEnabled,h.C),m=h.me;m&&(l.me=new Ly(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.me=f;e.push(Nua(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Nua(this,d.value,c,b)),c++;return e};g.w(XJ,g.E);XJ.prototype.addEventListener=function(a,b){this.i=b};
XJ.prototype.removeEventListener=function(){this.i=null};
g.w(YJ,g.E);YJ.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
YJ.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.w(Qua,g.E);var ZJ=null,Sua=null,$J=null,aK=null,bK=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return ZJ},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return Sua},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return $J},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return aK},void 0);
g.Ia("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return bK},void 0);var dva={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(eK,g.E);eK.prototype.ya=function(){this.Od.clear();g.E.prototype.ya.call(this)};
eK.prototype.zd=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)};
eK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&eva(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?ava(this,e):"confirmDialogEndpoint"===d?bva(this,e):dva.hasOwnProperty(d)||eva(this,d,e,b,c)}};g.w(jva,g.E);g.w(gK,g.Q);g.k=gK.prototype;g.k.tE=function(){return!rva(this,uva(this))};
g.k.gz=function(){return this.Ka};
g.k.ya=function(){this.xa=!0;g.Ex(this.C);this.I&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.wM,this);if(wG(this.i)){var a=mva(this.i);a.removeEventListener("updateKevlarOrC3Companion",Rua);a.removeEventListener("onPlaShelfInfoCardsReady",Tua);a.removeEventListener("updateEngagementPanelAction",Uua);a.removeEventListener("changeEngagementPanelVisibility",Vua);a.removeEventListener("scrollToEngagementPanel",Wua);window.removeEventListener("yt-navigate-start",Xua);bK=aK=$J=ZJ=null}a=
g.q(this.B.values());for(var b=a.next();!b.done;b=a.next())xva(this,b.value);GJ(this,!1);this.hp.clear();this.Z=[];this.S.clear();g.re(this.oa);this.oa=new Map;g.re(this.K);this.K=new Map;this.B.clear();g.Q.prototype.ya.call(this)};
g.k.vF=function(a){if(a instanceof Xy&&!a.B&&(!Cma(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.T(this.i.zb(1),32))this.S.add(a);else{var b=this.B.get(a);b&&((this.i.V().experiments.kb("enable_eviction_protection_for_bulleit")?this.u?this.u.XB():1:1)?b.LK(a):a.deactivate())}};
g.k.zU=function(a){a instanceof Xy&&(a.B&&(a.B=!1),this.S.delete(a))};
g.k.wM=function(a){Dta(this.Ja,a);null==this.I?g.vt(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}),iK(this,[this.I],a))};
g.k.HF=function(a){iK(this,[this.I],[a])};
g.k.xM=function(a){var b=1E3*a;this.u&&this.u.aH(b);for(var c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())d.value.aH(b);g.rc(this.Sa.i,1E3*a)};
g.k.Uk=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.lw()?a.J.Jc().playVideo():a.Vn()&&a.i.Nn());break;case "control_pause":this.u&&(a=this.u,a.lw()?a.J.Jc().pauseVideo():a.Vn()&&a.i.Mn())}};
g.k.zP=function(a){this.u&&this.u.Nc(a)};
g.k.fU=function(a){0>kH(a,16)&&(this.S.forEach(this.vF,this),this.S.clear())};
g.k.FW=function(){if(this.u)this.u.onVideoDataChange()};
g.k.IW=function(){if(vG(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.i&&oH(b.i,a)}};
g.k.ET=function(){this.Wa=!0;if(this.u){var a=this.u;a.i&&a.i.vg()}};
g.k.RT=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.JW=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.i,b=a.i,c=a.J.isMuted();ZG(b)||XG(b,c?"mute":"unmute");a.C||(b=a.J.isMuted(),XG(a.i,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.IU=function(a){if(this.u){var b=this.u.i,c=b.i;YG(c)||eH(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.i,YG(b)||eH(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Hf=function(a,b){this.i.Hf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.hp.delete(b),this.B.delete(b)};
g.k.gY=function(){for(var a=[],b=g.q(this.hp),c=b.next();!c.done;c=b.next())c=c.value,Yy(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||UX(b,"cuerangemarkersupdated",a)};
g.k.Ni=function(a){this.i.Ni(a);switch(a){case 1:this.Jz=1;break;case 0:this.Jz=0}};
g.k.BG=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.X:!1};
g.k.yn=function(){this.u&&this.u.Wp()&&this.u.yn()};
g.k.Bk=function(){this.u&&this.u.Wp()&&this.u.Bk()};
g.k.Vy=function(){};
g.k.Gy=function(){};
g.k.Xb=function(a){if(this.u){var b=this.u;b.i&&oH(b.i,a)}};
g.k.Vn=function(){return vG(this.i)&&!!this.u&&this.u.Vn()};
g.k.executeCommand=function(a,b,c){var d=this.jb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.i,c=f.ad.gw()?bH(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.rK=function(){return this.Ba};
g.k.sK=function(){return this.La};g.w(jK,g.E);jK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.w(kK,jK);g.w(Bva,g.E);var Dva=1;g.w(g.mK,g.E);g.k=g.mK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ha;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.PE&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.ch(a.G);if(c){if(c=nK(this,e,"class",c))oK(this,e,"class",c),this.ob[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.ob[f.value]=e;oK(this,e,"class",d.join(" "))}d=a.va;c=a.U;if(d)b=nK(this,e,"child",d),void 0!==b&&e.appendChild(g.dh(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=nK(this,e,"child",f),null!=f&&e.appendChild(g.dh(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Pb&&(h=lK(),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.fh(e,f,d++))}if(a=a.W)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],oK(this,b,c,"string"===typeof f?
nK(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.ob[a]};
g.k.Ea=function(a,b){"number"===typeof b?g.fh(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.gh(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.Pa(c,a[c])};
g.k.Pa=function(a,b){(a=this.Zc["{{"+a+"}}"])&&oK(this,a[0],a[1],b)};
g.k.ya=function(){this.ob={};this.Zc={};this.detach();g.E.prototype.ya.call(this)};g.w(g.W,g.mK);g.k=g.W.prototype;g.k.od=function(a,b){this.Pa(b||"content",a)};
g.k.show=function(){this.yb||(g.Hm(this.element,"display",""),this.yb=!0)};
g.k.hide=function(){this.yb&&(g.Hm(this.element,"display","none"),this.yb=!1)};
g.k.Yb=function(a){this.oa=a};
g.k.Ra=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.D)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.qc=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;qh(a);a.focus()};
g.k.ya=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.mK.prototype.ya.call(this)};g.w(g.qK,g.W);g.qK.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
g.qK.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
g.qK.prototype.eg=function(a){return this.Sa.eg(a)};
g.qK.prototype.ea=function(a){return this.Sa.ea.apply(this.Sa,[a].concat(g.ma(g.Ba.apply(1,arguments))))};var KQa=new WeakSet;g.w(rK,g.qK);g.k=rK.prototype;g.k.bind=function(a){if(!this.Va&&a.renderer){var b=Object.assign({},Ava(this.api,this.Xa),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Va=a;this.element.setAttribute("id",this.Va);this.jb&&g.L(this.element,this.jb);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.Pg(this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.qK.prototype.hide.call(this);null!=this.K&&this.gb(this.element,!1)};
g.k.show=function(){g.qK.prototype.show.call(this);if(!this.rb){this.rb=!0;var a=this.X&&this.X.impressionCommand;a&&Fva(this,a,null)}null!=this.K&&this.gb(this.element,!0)};
g.k.onClick=function(a){if(this.K&&!KQa.has(a)){var b=this.element;this.api.Zv(b)&&this.yb&&this.api.Cb(b,this.i);KQa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.qN(a),Fva(this,a,this.wK())};
g.k.qN=function(a){return a};
g.k.wK=function(){return null};
g.k.CP=function(a){var b=this.xa;b.K=!0;b.u=a.touches.length;b.i.isActive()&&(b.i.stop(),b.D=!0);a=a.touches;b.I=Cva(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.S=Infinity,b.X=Infinity):(b.S=c.clientX,b.X=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.BP=function(a){var b=this.xa;a=a.changedTouches.item(0);if(Nb()&&!(0<=g.xb(Qb(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.X,2)>Math.pow(5,2))b.C=!0};
g.k.AP=function(a){if(this.xa){var b=this.xa,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.I&&Cva(b,c)&&(b.Z=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.Pg=function(a,b){this.api.Pg(a,this);this.api.Gm(a,b)};
g.k.gb=function(a,b){this.api.Zv(a)&&this.api.gb(a,b,this.i)};
g.k.ya=function(){this.clear(null);this.qc(this.bb);for(var a=g.q(this.Aa),b=a.next();!b.done;b=a.next())this.qc(b.value);g.qK.prototype.ya.call(this)};g.w(FK,rK);
FK.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)xt(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.L(this.element,a);null!=b.text&&(a=g.$y(b.text),g.kb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.qK({G:"span",L:"ytp-ad-button-text",va:a}),g.H(this,this.C),this.C.Ea(this.element)));null!=b.icon&&(b=EK(b.icon),null!=
b&&(this.B=new g.qK({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.fh(this.element,this.B.element,0):this.B.Ea(this.element))}};
FK.prototype.clear=function(){this.hide()};
FK.prototype.onClick=function(a){var b=this;rK.prototype.onClick.call(this,a);Xva(this).forEach(function(c){return b.Xa.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(GK,g.E);GK.prototype.ya=function(){this.u&&g.Wu(this.u);this.i.clear();HK=null;g.E.prototype.ya.call(this)};
GK.prototype.register=function(a,b){b&&this.i.set(a,b)};
var HK=null;g.w(JK,rK);
JK.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.vt(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new FK(this.api,this.Xa,this.layoutId,this.i),g.H(this,this.button),this.button.init(yG("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.$y(a)),this.button.Ea(this.element),this.I&&!g.Lr(this.button.element,"ytp-ad-clickable")&&g.L(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.qK({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.qK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ea(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ea(this.element),b=IK(a),g.fh(this.B.element,b,0)),this.show())};
JK.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();rK.prototype.hide.call(this)};
JK.prototype.show=function(){this.button&&this.button.show();rK.prototype.show.call(this)};g.w(LK,rK);LK.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&KK(a)||"";g.kb(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&xt(Error("Found AdImage without valid image URL")):(this.u?g.Hm(this.element,"backgroundImage","url("+b+")"):Ug(this.element,{src:b}),Ug(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
LK.prototype.clear=function(){this.hide()};g.w(MK,rK);g.k=MK.prototype;g.k.hide=function(){rK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;rK.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.vt(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.vt(Error("ConfirmDialogRenderer.cancelLabel was not set.")):awa(this,b):g.vt(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Ex(this.u);this.hide()};
g.k.tF=function(){this.hide()};
g.k.cC=function(){var a=this.B.cancelEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};
g.k.uF=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};g.w(NK,rK);g.k=NK.prototype;
g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.vt(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.vt(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.L(this.C,a)}a={};b.defaultText?
(c=g.$y(b.defaultText),g.kb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.bn(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=EK(b.defaultIcon),this.Pa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=EK(b.toggledIcon),this.Pa("toggledIconTemplateSpec",c)):(g.bn(this.I,!0),g.bn(this.D,!1)),g.bn(this.u,!1)):g.bn(this.Z,!1);g.Se(a)||this.update(a);b.isToggled&&
(g.L(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));OK(this);this.T(this.element,"change",this.TH);this.show()}};
g.k.onClick=function(a){0<this.Aa.length&&(this.toggleButton(!this.isToggled()),this.TH());rK.prototype.onClick.call(this,a)};
g.k.TH=function(){var a=this;g.M(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());bwa(this,this.isToggled()).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);OK(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.M(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;OK(this)};
g.k.isToggled=function(){return this.u.checked};g.w(PK,Cx);PK.prototype.S=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 Zy&&this.C(b)}};g.w(QK,rK);g.k=QK.prototype;g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.vt(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&xt(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&xt(Error("AdFeedbackRenderer.title was not set.")),fwa(this,b)):g.vt(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){dv(this.I);dv(this.S);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();rK.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;rK.prototype.show.call(this);this.I.focus()};
g.k.rM=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.k.EW=function(){this.hide()};
gwa.prototype.isChecked=function(){return this.B.checked};g.w(RK,MK);RK.prototype.tF=function(a){MK.prototype.tF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
RK.prototype.cC=function(a){MK.prototype.cC.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
RK.prototype.uF=function(a){MK.prototype.uF.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(SK,rK);g.k=SK.prototype;
g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.vt(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&xt(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,this.u),
this.u.init(yG("button"),a,this.macros),this.u.Ea(this.element);b.title&&(a=g.$y(b.title),this.Pa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=IK(a[c]);if(!g.kb(d.textContent)){var e=bh("LI");e.appendChild(d);this.Ja.appendChild(e)}}else g.bn(this.Ja,!1);b.dialogMessage&&(a=IK(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.$y(b.confirmLabel),this.Pa("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?xt(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?iwa(this,a):c&&jwa(this,c),this.C=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(yG("button"),b,this.macros),this.C.Ra("click",this.eV,this),this.C.Ea(this.Wa)));
kwa(this)}};
g.k.clear=function(){dv(this.S);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();rK.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();this.Ka||(hwa(this),this.Ka=!0);this.Z=document.activeElement;rK.prototype.show.call(this);this.S.focus()};
g.k.UH=function(){this.I&&this.I.confirmServiceEndpoint&&this.Xa.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.k.eV=function(){var a=this.B?this.B:this.D;a&&!a.yb&&(this.hide(),a.show())};g.w(TK,JK);TK.prototype.init=function(a,b,c){JK.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(nwa(this,a,c),this.show())};
TK.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();JK.prototype.hide.call(this)};
TK.prototype.show=function(){this.button&&this.button.show();JK.prototype.show.call(this)};
TK.prototype.clear=function(){this.hide()};g.w(UK,rK);UK.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.oh(this.element,sK(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?KK(a):"",c=(c=this.api.getVideoData(1))&&c.fk,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()};
UK.prototype.isTemplated=function(){return this.u.isTemplated||!1};
UK.prototype.clear=function(){this.hide()};var swa={seekableStart:0,seekableEnd:1,current:0};g.w(WK,rK);WK.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?ffa:b;var e=g.Qa(a);return function(){var f=g.Ba.apply(0,arguments),h=this||g.B,l=SPa.get(h);l||(l={},SPa.set(h,l));return wc(l,[this].concat(g.ma(f)),c,d)}})(function(a){var b=g.ch("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.ch("DIV");g.$m(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.gh(b);return a});g.w(g.ZK,g.E);g.k=g.ZK.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.yB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.yb||($K(this,!0),this.state=1,a?this.delay.start(a):this.yB()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.yb&&($K(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.yB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:$K(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();$K(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.yB()};
g.k.ya=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.ya.call(this)};g.w(aL,WK);g.k=aL.prototype;
g.k.init=function(a,b,c){WK.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.vt(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Wa&&g.L(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.Hv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(yG("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.fk&&b.thumbnail?this.I.init(yG("ad-image"),b.thumbnail,c):this.S.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();YK(this);WK.prototype.hide.call(this)};
g.k.show=function(){XK(this);this.B.show();this.C.show();this.I.show();WK.prototype.show.call(this)};
g.k.Bq=function(){this.hide()};
g.k.Go=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ka&&a>=this.Ba?(this.Z.hide(),this.Ka=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.La&&(VK(this.C,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(cL,WK);g.k=cL.prototype;
g.k.init=function(a,b,c){WK.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.kb(g.Eg(d[0].url))&&(d[0].url=a.Qh)}else g.cy(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(yG("ad-image"),b.image,c);this.I.init(yG("ad-text"),
b.headline,c);this.C.init(yG("ad-text"),b.description,c);this.B.init(yG("button"),b.actionButton.buttonRenderer,c);this.Z=b.actionButton.buttonRenderer.navigationEndpoint;this.api.Oz()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.VH.bind(this));this.Ba=b.startMs||0;XK(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){WK.prototype.onClick.call(this,a);this.api.pauseVideo();!g.ih(this.B.element,a.target)&&this.Z&&this.Xa.executeCommand(this.Z,this.macros)};
g.k.Go=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Ba&&(YK(this),g.Nr(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Bq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.VH.bind(this))};
g.k.show=function(){this.B&&this.B.show();WK.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();WK.prototype.hide.call(this)};
g.k.VH=function(a){a?this.hide():this.show()};g.w(dL,rK);g.k=dL.prototype;g.k.init=function(a,b,c){var d=this;rK.prototype.init.call(this,a,b,c);this.u=b;this.u.rectangle&&(owa(this,c),this.D.show(100),this.show(),(this.u&&this.u.impressionCommands||[]).forEach(function(e){return d.Xa.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();rK.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();rK.prototype.show.call(this)};
g.k.WH=function(){Mea(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Oa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Aa.length&&this.WH();rK.prototype.onClick.call(this,a)};g.w(eL,g.E);g.k=eL.prototype;g.k.ya=function(){this.reset();g.E.prototype.ya.call(this)};
g.k.reset=function(){g.Ex(this.C);this.I=!1;this.i&&this.i.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
g.k.start=function(){this.reset();this.C.T(this.B,"mouseover",this.EP,this);this.C.T(this.B,"mouseout",this.DP,this);this.i?this.i.start():(this.I=this.u=!0,g.Hm(this.B,{opacity:this.X}))};
g.k.EP=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.i&&this.i.stop()};
g.k.DP=function(){this.I?this.D.start():this.i&&this.i.start()};
g.k.nJ=function(){this.u||(this.u=!0,this.S.play(),this.I=!0)};g.w(fL,WK);g.k=fL.prototype;
g.k.init=function(a,b,c){WK.prototype.init.call(this,a,b,c);this.S=b;this.Ba=qwa(this);if(!b||g.Se(b))g.vt(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Se(b.message))g.vt(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=EK(a);null==b?g.vt(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.qK({G:"button",Ha:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
L:"ytp-ad-skip-button-icon",U:[b]}]}),g.H(this,this.I),this.I.Ea(this.C.element),this.B=new UK(this.api,this.Xa,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.B.init(yG("ad-text"),this.S.message,c),g.H(this,this.B),g.fh(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.Aa.length)&&c.isMobile&&(hE?0:"ontouchstart"in document.documentElement&&(tm()||sm()))&&(this.qc(this.bb),d&&this.qc(d),this.Aa=[this.T(this.element,"touchstart",this.CP,this),this.T(this.element,
"touchmove",this.BP,this),this.T(this.element,"touchend",this.AP,this)])}};
g.k.clear=function(){this.Z.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();YK(this);WK.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.av(a),WK.prototype.onClick.call(this,a),this.ea("j"),this.Ka||!this.Ba))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.qN=function(a){if(!this.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ka)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&&pwa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.wK=function(){return"skip"};
g.k.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();XK(this);WK.prototype.show.call(this)};
g.k.Bq=function(){this.ea("k")};
g.k.Go=function(){};g.w(gL,WK);g.k=gL.prototype;
g.k.init=function(a,b,c){WK.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Se(a)?null:a){this.S=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.xD(this.api.V().experiments,"preskip_button_style_ads_backend")&&yE(this.api.V());this.B=new aL(this.api,this.Xa,this.layoutId,this.i,this.u,d);this.B.init(yG("preskip-component"),a,c);bL(this.B);g.H(this,this.B);this.B.Ea(this.element)}else b.skipOffsetMilliseconds&&
(this.S=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Se(b)?null:b;null==b?g.vt(Error("SkipButtonRenderer was not set in player response.")):(this.C=new fL(this.api,this.Xa,this.layoutId,this.i,this.u,this.Z),this.C.init(yG("skip-button"),b,c),g.H(this,this.C),this.C.Ea(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();XK(this);WK.prototype.show.call(this)};
g.k.Bq=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();YK(this);WK.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();YK(this);WK.prototype.hide.call(this)};
g.k.Go=function(){1E3*this.u.getProgressState().current>=this.S&&rwa(this,!0)};g.w(hL,FK);hL.prototype.init=function(a,b,c){FK.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.$y(b.text),a=!g.kb(a));a?null==b.navigationEndpoint?xt(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?xt(Error("Button style was not a link-style type in renderer,")):this.show():xt(Error("No visit advertiser text was present in the renderer."))};g.w(iL,rK);iL.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);a=b.text;g.kb(sK(a))?xt(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new UK(this.api,this.Xa,this.layoutId,this.i),a.init(yG("simple-ad-badge"),b,c),a.Ea(this.element),g.H(this,a)),this.show())};
iL.prototype.clear=function(){this.hide()};g.w(jL,zG);g.w(kL,g.Q);g.k=kL.prototype;g.k.Hv=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.Ce.qc(this.i)};
g.k.Xb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Nc=function(a){g.lH(a,2)&&this.ea("g")};g.w(lL,g.Q);g.k=lL.prototype;g.k.Hv=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.timer.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.k.Xb=function(){this.i+=100;var a=!1;this.i>this.durationMs&&(this.i=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.i/1E3};this.Xa&&this.Xa.Xb(this.B.current);this.ea("h");a&&this.ea("g")};
g.k.getProgressState=function(){return this.B};g.w(oL,WK);g.k=oL.prototype;g.k.init=function(a,b,c){var d;WK.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){xt(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new UK(this.api,this.Xa,this.layoutId,this.i);this.B.init(yG("ad-text"),a,{});this.B.Ea(this.element);g.H(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){YK(this);WK.prototype.hide.call(this)};
g.k.Bq=function(){this.hide()};
g.k.Go=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof kL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof lL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.mL(a);VK(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){XK(this);WK.prototype.show.call(this)};g.w(pL,UK);pL.prototype.onClick=function(a){UK.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(uL,g.qK);uL.prototype.Xb=function(){var a=this.u.getProgressState();this.Hc.style.width=100*tL(new qL(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
uL.prototype.onStateChange=function(){g.sE(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Xb,this),this.Xb()):-1!==this.i&&(this.hide(),this.u.eg(this.i),this.i=-1))};g.w(vL,rK);
vL.prototype.init=function(a,b,c,d){rK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new gL(this.api,this.Xa,this.layoutId,this.i,this.u,this.I),c.Ea(this.D),c.init(yG("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new aL(this.api,this.Xa,this.layoutId,this.i,this.u,!1),c.Ea(this.D),c.init(yG("ad-preview"),a.adPreviewRenderer,this.macros),bL(c),g.H(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new dL(this.api,this.Xa,this.layoutId,this.i),c.Ea(this.Z),c.init(yG("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new cL(this.api,this.Xa,this.layoutId,this.i,this.u),g.H(this,c),c.Ea(this.S),c.init(yG("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 iL(this.api,this.Xa,this.layoutId,
this.i,!0),g.H(this,c),c.Ea(this.B),c.init(yG("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 oL(this.api,this.Xa,this.layoutId,this.i,this.u,d),g.H(this,d),d.Ea(this.B),d.init(yG("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new TK(this.api,this.Xa,this.layoutId,
this.i,this.element),g.H(this,a),a.Ea(this.B),a.init(yG("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=twa(this)&&this.C?this.C:this.B))&&(a=new hL(this.api,this.Xa,this.layoutId,this.i),g.H(this,a),a.Ea(d),a.init(yG("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!pE(b)&&"3"==b.controlsType&&(b=new uL(this.api,this.u),b.Ea(this.Ba),g.H(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&
g.L(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
vL.prototype.clear=function(){this.hide()};g.Ia("yt.pubsub.publish",g.uv,void 0);var HL={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var U2={},Cwa=(U2.WEB_UNPLUGGED="^unplugged/",U2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",U2.WEB_UNPLUGGED_OPS="^unplugged/",U2.WEB_UNPLUGGED_PUBLIC="^unplugged/",U2.WEB_CREATOR="^creator/",U2.WEB_KIDS="^kids/",U2.WEB_EXPERIMENTS="^experiments/",U2.WEB_MUSIC="^music/",U2.WEB_REMIX="^music/",U2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",U2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",U2);EL.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?HL:c;var d={context:NJ(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.BL(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=Ewa(CL(b),void 0);d={input:f,Fq:DL(f),Ok:d,config:Object.assign({},void 0)};d.config.mp?d.config.mp.identity=c:d.config.mp={identity:c};return d}g.by(new g.aw("Error: Failed to create Request from Command.",
a))};
ea.Object.defineProperties(EL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(FL,EL);FL.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Fq:DL("/getDatasyncIdsEndpoint","GET"),Ok:{}}};
FL.prototype.B=function(){return[]};
FL.prototype.i=function(){};
FL.prototype.u=function(){};var LQa={},Fwa=(LQa.GET_DATASYNC_IDS=AL(FL),LQa);g.w(JL,EL);JL.prototype.B=function(){return dQa};
JL.prototype.i=function(a){return a.subscribeEndpoint};
JL.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
ea.Object.defineProperties(JL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(KL,EL);KL.prototype.B=function(){return eQa};
KL.prototype.i=function(a){return a.unsubscribeEndpoint};
KL.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
ea.Object.defineProperties(KL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(LL,EL);LL.prototype.B=function(){return aQa};
LL.prototype.i=function(a){return a.feedbackEndpoint};
LL.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
ea.Object.defineProperties(LL.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(ML,EL);ML.prototype.B=function(){return bQa};
ML.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
ML.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(NL,EL);NL.prototype.B=function(){return cQa};
NL.prototype.i=function(a){return a.playlistEditEndpoint};
NL.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(OL,EL);OL.prototype.B=function(){return $Pa};
OL.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
OL.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};PL.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.cy(d)}))};
PL.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok||(b=b.then(function(c){g.cy(new g.aw("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var QL;SL.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))};
l.onload=function(){e(d.handleResponse(a,l.status,l.response))};
if(null===c||void 0===c?0:c.jt)l.onreadystatechange=function(r){c.jt(l,r)};
l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.q(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.q(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})};
SL.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.cy(new g.aw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.cy(new g.aw("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var Mwa=[],TL=!1;UL.getInstance=function(){var a=g.Ja("ytglobal.storage_");a||(a=new UL,g.Ia("ytglobal.storage_",a,void 0));return a};
UL.prototype.estimate=function(){var a,b,c;return g.A(function(d){c=navigator;return(null===(a=c.storage)||void 0===a?0:a.estimate)?d.return(c.storage.estimate()):(null===(b=c.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?d.return(Pwa()):d.return()})};
g.Ia("ytglobal.storageClass_",UL,void 0);Uv.prototype.Bj=function(a){this.handleError(a)};
Uv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.O("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.O("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Rwa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},
b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};VL.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.If("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";Hf(h);Hf(h);h=(h=Df())?h.createScript(m):m;h=(new Kf(h,Jf)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=ng(g.If("From proto message. b/166824318"),
l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Twa(this,h,l,a.program,b,c,d)}else g.cy(Error("Cannot initialize botguard without program"))};
VL.prototype.isInitialized=function(){return!!this.i};
VL.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};
VL.prototype.dispose=function(){this.i=null};var XL;g.WL=new VL;XL=0;var Zwa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var V2={},MQa=(V2["api.invalidparam"]=2,V2.auth=150,V2["drm.auth"]=150,V2["heartbeat.net"]=150,V2["heartbeat.servererror"]=150,V2["heartbeat.stop"]=150,V2["html5.unsupportedads"]=5,V2["fmt.noneavailable"]=5,V2["fmt.decode"]=5,V2["fmt.unplayable"]=5,V2["html5.missingapi"]=5,V2["html5.unsupportedlive"]=5,V2["drm.unavailable"]=5,V2);g.w(eM,g.E);g.k=eM.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&Ny(c,gQa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Zj&&!this.X.has(a)&&(this.X.add(a),g.Wv("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.D[a]?!0:!!(this.K[a]&&b&&Ny(b,gQa))};
g.k.getBandwidthEstimate=function(){return WD(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.uM(this.app);b&&(a={gpu:(0,g.oW)(),d:a},b.handleError(new g.ZC("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.S.slice()};
g.k.getInternalApiInterface=function(){return g.Ne(this.u)};
g.k.pR=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ba.apply(0,arguments);g.Ja(b).apply(window,d)};
this.I[b]=c}else c=b;this.app.Ul.subscribe(a,c)};
g.k.cX=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.Ul.unsubscribe(a,b)};
g.k.getPlayerState=function(){return zKa(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&&mY(this.app,!0,this.playerType);qY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.Jp().B.i=(0,g.P)()};
g.k.seekToStreamTime=function(a,b,c){this.i&&mY(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.uM(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.dd()&&(l=h.getStreamTimeOffset());qY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.uM(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.uM(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&qY(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.gg.volume};
g.k.setVolume=function(a){jxa(this,a)};
g.k.isMuted=function(){return this.app.gg.muted};
g.k.mute=function(){kxa(this)};
g.k.unMute=function(){lxa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Rf&&OX(this.app).allowImaMonetization,autoplay:lG(OX(this.app)),mutedAutoplay:OX(this.app).mutedAutoplay});return a};
g.k.playVideo=function(){this.i&&mY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Sd()){var b=RM(this.app.vb());if(!SOa(b)){b.Uk("control_play");return}if(TOa(b))return}3===a?oM(this.app.vb()).Uk("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Sd()){var b=RM(this.app.vb());if(!SOa(b)){b.Uk("control_pause");return}}3===a?oM(this.app.vb()).Uk("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.bb&&a.Ta.ea("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.uM(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Zb){var b=a.i||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.gk?kQa:jQa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.uM(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.uM(this.app,this.playerType);return a?(a=g.pn(a.Gn(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.uM(this.app,this.playerType);return a?g.pn(a.Gn(),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.getSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.eb().resize()};
g.k.channelSubscribed=function(){this.Oa("SUBSCRIBE",OX(this.app).bj)};
g.k.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",OX(this.app).bj)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.uM(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.uM(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=QKa(this.app);b&&(b.u=a,b.Qa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=QKa(this.app);b&&(g.M(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.te(b,g.DN(b.B.jc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.uM(this.app,this.playerType);a&&a.Pd("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().fk=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=aE("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,mqa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return OX(this.app).NC};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.NM(this.app.vb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.NM(this.app.vb()))&&a.loaded&&a.cY()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(bM(a,b,c),this.playerType),this.i&&mY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(bM(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=gxa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&mY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=gxa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.K)return"";var b=OX(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.V();return a.K?"":a.getVideoEmbedCode(OX(this.app).videoId,this.app.eb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return oY(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c){return HKa(this.app,a,b,c)};
g.k.removeCueRange=function(a){return IKa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&mY(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&&mY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&mY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&mY(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.mS=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.zM(a,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.vb();return"captions"===a?(a=g.NM(d))&&a.kf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.uM(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().i?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();if("captions"===a)return(b=g.NM(b))&&b.getOptions();if(!a)return a=[],g.NM(b)&&a.push("captions"),a};
g.k.yz=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.uM(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.B&&a.B.video){b.video_quality=a.B.video.quality;a=a.B.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(){oKa(this.app,!0)};
g.k.hideVideoInfo=function(){oKa(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.uM(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.T(a,128)&&5===MQa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.qM(this.app.vb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.qM(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.V().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.uM(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.pauseVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.pauseVideoDownload(a))})};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(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){NKa(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.hasSupportedAudio51Tracks=function(){var a=g.uM(this.app,this.playerType);return!(null===a||void 0===a||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.uM(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b=g.uM(this.app,this.playerType);return null!==(a=null===b||void 0===b?void 0:b.getUserAudio51Preference())&&void 0!==a?a:1};
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.V().S.add(a,{Ey:b,Hx:c})};
g.k.updateLastActiveTime=function(){fv()};
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.V().Yi!==a&&(this.app.V().Yi=a,(a=g.uM(this.app,this.playerType))&&AX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.NM(this.app.vb()).KO(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.NM(this.app.vb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.NM(this.app.vb());a&&a.sO()};
g.k.setUseFastSizingOnWatch=function(){};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Sd()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.uM(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.qg();if(!c)return null;b=c.levels[b];return b?(a=g.xF(b,a))?{column:a.column,columns:a.columns,height:a.iA,row:a.row,rows:a.rows,url:a.url,width:a.jA}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.qg();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.dd();return b.Sx(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.qg();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Ar(),minFrameIndex:b.Tx()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.qg();return a?a.levels.length:0};
g.k.aS=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.uM(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().ij};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&oM(this.app.vb()).Uk("control_set_audio_track",a);var b=g.uM(this.app,this.playerType);if(b){var c,d,e;if(!b.isDisposed()&&!g.T(b.playerState,128))if(null===(c=b.videoData.C)||void 0===c?0:c.i)b.Ya.setAudioTrack(a);else if(c=null===(d=b.ra)||void 0===d?void 0:d.audioTracks(),b.N("html5_native_audio_track_switching")&&(null===(e=b.videoData.B)||void 0===e?0:GC(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.zc.getName()){if(e.enabled){c=
!1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.Ca("hlsaudio",a.id)}else{a:if(c=b.videoData,c.K&&!GC(c.K)||a==c.Zj||!c.Fb||0>=c.Fb.length)c=!1;else{d=g.q(c.Fb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof XE)){c=!1;break a}var f=a.zc.getId();e.B&&(wqa(e.B,f),e.u=null)}c.Zj=a;c=!0}c&&qX(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Ca("hlsaudio",a.id))}}};
g.k.bS=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.uM(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.uM(this.app,this.playerType);return a&&a.getVideoData().B?rA(a.He?kHa(a.Ag,a.He,a.Cs()):EF):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.uM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.NM(this.app.vb());return a?a.oS():null};
g.k.resetSubtitlesUserSettings=function(){g.NM(this.app.vb()).jX()};
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.eb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Le();return this.app.getVisibilityState(this.rf(),this.isFullscreen()||pE(this.app.V()),a,this.isInline(),this.app.Os(),this.app.Ms())};
g.k.isMutedByMutedAutoplay=function(){return this.app.ww};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.eb().setInternalSize(new g.yg(a,b))};
g.k.dd=function(){var a=g.uM(this.app,void 0);return a?a.dd():0};
g.k.Le=function(){return this.app.Le()};
g.k.rf=function(){var a=g.uM(this.app,this.playerType);return!!a&&a.rf()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().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.N("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!==g.zM(b).videoId||(a.index=b.index)):aY(this.app,{list:a.list,index:a.index,playlist_length:d.length});BM(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.uM(this.app,this.playerType||1);c&&g.IF(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){xE(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.UM(this.app.vb());d&&d.Fh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("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.eb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.uM(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.uM(this.app,this.playerType);c&&(a=oA(a,b||a,!0,"m"),BCa(c,a,!0))};
g.k.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.ea=function(a){var b=g.Ba.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Ul.ea.apply(this.app.Ul,[a].concat(g.ma(b)));this.app.Am.ea.apply(this.app.Am,[a].concat(g.ma(b)))};
g.k.Oa=function(a){var b=g.Ba.apply(1,arguments);this.app.Ul.ea.apply(this.app.Ul,[a].concat(g.ma(b)));this.app.Am.ea.apply(this.app.Am,[a].concat(g.ma(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){if(this.app.V().Rf&&OX(this.app).allowImaMonetization){var c=this.app.V().loaderUrl.match(Hi);g.Wv("embedsAdEvent",{adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:Fi(c[1],c[2],c[3],c[4]),eventType:a})}};
g.k.N=function(a){return this.app.V().N(a)};
g.k.ma=function(){};
g.k.ya=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.I={};g.E.prototype.ya.call(this)};g.w(kM,eM);g.k=kM.prototype;g.k.addCueRange=function(a,b,c,d,e){return oY(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return zKa(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){qY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){qY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.yz=function(a){a=void 0===a?this.playerType:a;var b,c,d,e=eM.prototype.yz.call(this,a)||{};if(a=g.uM(this.app,a)){a=a.getVideoData();e.backgroundable=a.backgroundable;e.eventId=a.eventId;e.cpn=a.clientPlaybackNonce;e.hasProgressBarBoundaries=a.hasProgressBarBoundaries();e.isLive=a.isLivePlayback;e.isPremiere=a.isPremiere;e.isWindowedLive=a.mj;e.isManifestless=MF(a);e.allowLiveDvr=a.allowLiveDvr;e.isListed=a.isListed;e.itct=a.Za;var f;var h=a.hasProgressBarBoundaries()&&(null===(f=a.progressBarStartPosition)||
void 0===f?0:f.utcTimeMillis)?Hg(a.progressBarStartPosition.utcTimeMillis):null;e.progressBarStartPositionUtcTimeMillis=h;var l;f=a.hasProgressBarBoundaries()&&(null===(l=a.progressBarEndPosition)||void 0===l?0:l.utcTimeMillis)?Hg(a.progressBarEndPosition.utcTimeMillis):null;e.progressBarEndPositionUtcTimeMillis=f;e.ypcOriginalItct=a.tY;e.ypcPreview=a.ypcPreview;e.paidContentOverlayText=lsa(a);e.paidContentOverlayDurationMs=YF(a);null!=a.liveUtcStartSeconds&&(e.liveUtcStartSeconds=a.liveUtcStartSeconds);
a.i&&tA(a.i)&&(e.usingLocalMedia="true");PF(a)&&(e.isEncrypted=!0);if(a.C)for(l=g.q(a.C.videoInfos),f=l.next();!f.done;f=l.next())if(null===(b=f.value.video)||void 0===b?0:b.isHdr()){e.isHdr=!0;break}e.isMultiChannelAudio=!(null===(d=null===(c=a.K)||void 0===c?void 0:c.audio)||void 0===d||!d.isMultiChannelAudio())}return e};
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):eM.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=oM(this.app.vb()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):eM.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return oM(this.app.vb()).getProgressState();var b=this.app.getVideoData(),c=(g.uM(this.app,a)||g.uM(this.app)).getPlayerType(),d;a:{var e=this.app.getVideoData();if(null===(d=e.progressBarStartPosition)||void 0===d?0:d.utcTimeMillis)if(d=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=oxa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null===(f=e.progressBarEndPosition)||void 0===f?0:f.utcTimeMillis)if(f=
Number(e.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(f)){f=oxa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Ds(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.uM(p,c))?(c=ZX(p,c),c=iY(p,mS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.tf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,
seekableEnd:c}};
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.iM(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.iM(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.iM(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.iM(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.eb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.yx();this.app.Ri(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.cy(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.ME(b))return this.isFullscreen()?Ax(window.document.documentElement):xx(window.document.documentElement).catch(a)}else if(g.yx()||b.C)return this.isFullscreen()?Ax(zx()):"3"!==b.controlsType&&g.yx()?xx(this.app.eb().element).catch(a):(b=this.app.ld().xe())?xx(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=RM(this.app.vb());a&&a.created&&a.destroy();(a=g.uM(this.app))&&a.stopVideo();(a=this.app.vb().Hd.get("endscreen"))&&a.YS()&&g.nM(this.app.Ta,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&HE(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():eM.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.uM(this.app,this.playerType).Kb(!0)};
g.k.toggleSubtitles=function(){var a=g.NM(this.app.vb());a&&a.QX()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.qM(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.qM(this.app.vb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){jxa(this,a,b)};
g.k.mute=function(a){kxa(this,a)};
g.k.unMute=function(a){lxa(this,a)};
g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.UM(this.app.vb());b&&!b.loaded&&b.load()}eM.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.UM(this.app.vb());b&&b.loaded&&b.unload()}eM.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.vb();switch(a){case "ad":return(a=RM(d))&&a.kf&&a.kf(b,c);case "kids":return(a=SM(d))&&a.kf(b,c);case "remote":return(a=oM(d))&&a.kf(b,c);case "unplugged":return(a=g.TM(d))&&a.kf(b,c);case "annotations_module":return(a=g.UM(d))&&a.kf(b,c);case "creatorendscreen":return(a=VM(d))&&a.kf(b,c)}return eM.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();switch(a){case "ad":return(b=RM(b))&&b.getOptions&&b.getOptions();case "remote":return(b=oM(b))&&b.getOptions();case "annotations_module":return(b=g.UM(b))&&b.getOptions();case "creatorendscreen":return(b=VM(b))&&b.getOptions();case "unplugged":return(b=g.TM(b))&&b.getOptions();case "kids":return(b=SM(b))&&b.getOptions()}if(!a){a=eM.prototype.getOptions.call(this);if(!a)return a;RM(b)&&a.push("ad");oM(b)&&a.push("remote");g.UM(b)&&a.push("annotations_module");
VM(b)&&a.push("creatorendscreen");g.TM(b)&&a.push("unplugged");SM(b)&&a.push("kids");return a}return eM.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.iM(this);a&&a.jl()};
g.k.setCenterCrop=function(a){this.app.eb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var mxa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen 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(" "),
nxa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el 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.w(g.lM,kM);g.k=g.lM.prototype;g.k.Tj=function(a,b,c,d,e,f){return this.app.Tj(a,b,c,d,e,f)};
g.k.Dv=function(){return this.app.Dv()};
g.k.Ip=ba(2);g.k.vb=function(){return this.app.vb()};
g.k.Yd=function(){var a=this.vb().Hd.get("endscreen");return!!a&&a.Yd()};
g.k.getRootNode=function(){return this.eb().element};
g.k.V=function(){return this.app.V()};
g.k.Es=ba(4);g.k.Xl=function(a){return this.app.Xl(a)};
g.k.Ln=function(){return this.settingsMenu};
g.k.zb=function(a){return this.app.zb(a)};
g.k.eb=function(){return this.app.eb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.uM(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.Ic)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=BS(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.qg=function(a){return this.app.qg(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.uM(this.app);return a?a.isHdr():!1};
g.k.HE=function(){return this.app.HE()};
g.k.Ht=function(a){this.app.Ht(a)};
g.k.Jf=function(a,b,c,d){this.app.Ne(a,b,c,d)};
g.k.fl=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){oM(this.app.vb()).Uk("control_play");return}if(2===this.getPresentingPlayerType()){var b=RM(this.app.vb());if(b&&(b.Vn()||TOa(b)))return}}catch(c){g.by(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.uM(this.app,a).stopVideo()};
g.k.Bm=function(a){g.uM(this.app,a).Bm()};
g.k.addEventListener=function(a,b){this.app.Am.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Am.unsubscribe(a,b)};
g.k.ea=function(a){kM.prototype.ea.call.apply(kM.prototype.ea,[this,a].concat(g.ma(g.Ba.apply(1,arguments))))};
g.k.Ni=function(a){this.app.Ni(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Gn=function(){var a={},b=g.uM(this.app).Gn();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.Ov=ba(10);g.k.ZA=function(a){this.app.ZA(a);a&&NKa(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.Pv=ba(12);g.k.Ij=ba(16);g.k.Vs=function(a,b){this.vb().Vs(a,b)};
g.k.Fh=function(){var a=g.UM(this.vb());return!!a&&a.Fh()};
g.k.wk=function(){var a=g.UM(this.vb());return!!a&&a.wk()};
g.k.setCardsVisible=function(a,b,c){var d=g.UM(this.vb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.k.Et=ba(17);g.k.Rq=function(){var a=g.uM(this.app);a&&a.Rq()};
g.k.mx=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.k.tj=function(a,b){var c=g.iM(this);if(c)return c.tj(a,b);a=this.app.eb().rg();return new g.Dm(0,0,a.width,a.height)};
g.k.Sp=function(){return this.app.Sp()};
g.k.jw=function(){var a=this.vb().Hd.get("heartbeat");return!!a&&a.jw()};
g.k.tf=function(){var a=this.V();if(a.Z||a.disableSeek)return!1;a=g.uM(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.bG(b)||2===this.getPresentingPlayerType()&&!this.app.Sd()||a.gm()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.ew=function(){var a;return(null===(a=g.uM(this.app))||void 0===a?void 0:a.ew)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.No=function(){var a=g.uM(this.app);a&&a.No()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Ed=function(a,b,c){this.app.Pu(a,b,c)};
g.k.Hf=function(a,b){this.app.UA(a,b)};
g.k.Ye=function(a,b){var c=this.app,d=g.uM(c,b);d&&(a=d.Rg.Ye(a),b&&c.getPresentingPlayerType()!==b||UX(c,"cuerangesremoved",a))};
g.k.Pd=function(a,b){(b=g.uM(this.app,b))&&b.Pd(a)};
g.k.gm=function(){var a=g.uM(this.app,void 0);return a?a.gm():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.sg(a,0,100);gM(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){gM(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){gM(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.ld=function(){return this.app.ld()};
g.k.Jp=function(){return this.app.Jp()};
g.k.Xg=function(a){return this.app.Xg(a)};
g.k.getBandwidthEstimate=function(){return WD(this.V().schedule)};
g.k.Hb=function(a,b,c,d){this.V().Ja&&this.app.Tn.Hb(a,b,c,void 0===d?!1:d)};
g.k.Pg=function(a,b,c){this.V().Ja&&this.app.Tn.Pg(a,b,void 0===c?!1:c)};
g.k.Gm=function(a,b){this.V().Ja&&this.app.Tn.Gm(a,b)};
g.k.Cb=function(a,b){this.V().Ja&&this.app.Tn.click(a,b)};
g.k.gb=function(a,b,c){if(this.V().Ja){var d=this.app.Tn;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Vx(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.ky(e,[f]):g.ly(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.hy(e,f,c),d.B.add(a))}};
g.k.Zv=function(a){return this.V().Ja?this.app.Tn.Zv(a):!1};
g.k.Jc=function(){return g.uM(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.dl=function(a){this.app.dl(a)};
g.k.Yu=function(a){this.app.Yu(a)};
g.k.Jo=function(a){this.app.getPresentingPlayerType()===a&&this.app.Jo(a)};
g.k.Pl=function(a,b){return this.app.Pl(a,b)};
g.k.bl=function(a){this.app.bl(a)};
g.k.WE=function(){this.app.WE()};
g.k.Rr=function(a,b,c,d,e,f){return this.app.Rr(a,b,c,d,e,f)};
g.k.cw=function(a,b,c,d,e,f){return this.app.cw(a,b,c,d,e,f)};
g.k.Do=function(a){this.app.Do(a)};
g.k.xp=function(a,b){b=void 0===b?Infinity:b;this.app.xp(void 0===a?-1:a,b)};
g.k.St=function(a,b,c){this.app.St(a,b,c)};
g.k.In=function(){return this.app.In()};
g.k.Qy=function(a,b,c){this.app.Qy(a,b,void 0===c?0:c)};
g.k.Qs=function(){return this.app.Qs()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Sd=function(){return this.app.Sd()};
g.k.Xn=function(a,b,c){return this.app.Xn(a,b,c)};
g.k.Ca=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.uM(this.app,d))||void 0===e?void 0:e.Ca(a,b,c)};
g.k.iB=function(){return this.app.iB()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.oF=function(a,b){this.ea("aduxmouseover",a,b)};
g.k.nF=function(a,b){this.ea("aduxmouseout",a,b)};
g.k.GF=function(a,b){this.ea("muteadaccepted",a,b)};
g.k.Oz=function(){return this.app.eb().Oz()};
g.k.eB=function(a){this.app.eb().eB(a)};vM.prototype.sF=function(){this.u=(0,g.P)()};
vM.prototype.reset=function(){this.i=this.u=NaN};
vM.prototype.xF=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.i)){if(Math.random()<this.B){b=b?"pbp":"pbs";var c={startTime:this.i};!this.Y.N("web_player_csi_ctt_killswitch")&&a.X&&(c.cttAuthInfo={token:a.X,videoId:a.videoId});zz("seek",c);g.Az("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||Bz("pl_ss",this.u,"seek");Bz(b,(0,g.P)(),"seek")}this.reset()}};wM.prototype.reset=function(){wz(this.timerName)};
wM.prototype.tick=function(a,b){Bz(a,b,this.timerName)};
wM.prototype.info=function(a,b){g.Az(a,b,this.timerName)};g.w(xM,g.Q);g.k=xM.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Lk=function(a){return this.loop||!!a||0<=this.index-1};
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.B++;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.B++}this.ea("shuffle")};
g.k.Ke=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.K||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return GE(this.u,this.C[0],a)};
g.k.onReady=function(a){this.i=a;this.loaded&&g.Mt(this.i,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Kk=function(){return this.u.getVideoUrl(g.zM(this).videoId,this.getPlaylistId())};
g.k.ya=function(){this.i=null;(0,g.se)(this.items);g.Q.prototype.ya.call(this)};var zxa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Axa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Bxa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},yxa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},wxa={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"},xxa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var DM=new Map;g.w(g.FM,g.Q);g.k=g.FM.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.kf=function(){};
g.k.Si=function(){return!0};
g.k.ya=function(){this.loaded&&this.unload();g.Q.prototype.ya.call(this)};
g.k.Kb=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.IM,g.E);g.k=g.IM.prototype;g.k.Wn=ba(20);g.k.Us=function(){};
g.k.Mm=function(){};
g.k.Rp=function(){return""};
g.k.WF=ba(21);g.k.ya=function(){this.Mm();g.E.prototype.ya.call(this)};g.w(g.JM,g.IM);g.JM.prototype.Wn=ba(19);g.JM.prototype.Us=function(a){if(this.audioTrack)for(var b=g.q(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.HM(this.u,c.value);a()};
g.JM.prototype.Rp=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Cu()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.qF(a));return Et(c,d)};
g.JM.prototype.Mm=function(){this.i&&this.i.abort()};g.NQa=new Map;g.w(g.LM,g.IM);g.LM.prototype.Wn=ba(18);
g.LM.prototype.Us=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.eL&&(d.asrs=1);c=Et(c,d);this.Mm();this.i=g.hu(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"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.HM(b.u,new g.nF({languageCode:m,languageName:n,name:p,kind:r,id:t,is_servable:!0,is_translateable:v,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.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.LM.prototype.Rp=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.qF(a));return c=Et(c,b)};
g.LM.prototype.Mm=function(){this.i&&this.i.abort()};g.w(MM,g.E);g.k=MM.prototype;g.k.qx=function(){return this.J.getVideoData().qx()};
g.k.yG=function(){return this.J.getVideoData().yG()};
g.k.SJ=function(){var a=this.Hd.get("heartbeat");PM(this,"heartbeat",!1,!0,this.SJ);!a&&this.Hd.has("heartbeat")&&this.J.ea("offlineslatestatechange")};
g.k.vD=function(){PM(this,"annotations_module",!0,void 0,this.vD);var a=this.Hd.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.RJ=function(){if(!this.Hd.get("ad"))try{OM(this)?PM(this,"ad",!1,!0,this.RJ):this.J.Pd("ad")}catch(a){this.J.Pd("ad"),g.by(a)}};
g.k.Jp=function(){return this.i};
g.k.iE=function(){var a={},b=g.NM(this);b&&Object.assign(a,b.iE());return a};
g.k.Vs=function(a,b){Object.assign(this.i,a||null);Object.assign(this.ev,b||null)};
g.k.ya=function(){g.E.prototype.ya.call(this);QM(this,1,!0);for(var a=g.q(Object.entries(Yxa)),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&DM.delete(b)}this.C.clear()};
var W2={},Yxa=(W2.ad="ad.js",W2.annotations_module="annotations_module.js",W2.attribution="attribution.js",W2.creatorendscreen="annotations_module.js",W2.embed="embed.js",W2.endscreen="endscreen.js",W2.heartbeat="heartbeat.js",W2.inline_preview="inline_preview.js",W2.kids="kids.js",W2.remote="remote.js",W2.miniplayer="miniplayer.js",W2.music="music.js",W2.captions="captions.js",W2.unplugged="unplugged.js",W2.ux="ux.js",W2.webgl="webgl.js",W2.ypc="ypc.js",W2.ypc_clickwrap="ypc_clickwrap.js",W2.yto=
"yto.js",W2);g.w(WM,g.ue);WM.prototype.preventDefault=function(){g.ue.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
WM.prototype.stopPropagation=function(){g.ue.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.w(g.XM,pJ);g.k=g.XM.prototype;g.k.Yo=function(){return!0};
g.k.isView=function(){return!1};
g.k.hG=function(){return!1};
g.k.xe=function(){return this.i};
g.k.Df=function(){return this.i.src};
g.k.Yx=function(a){this.ma();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.VA=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.Np=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.ul=function(){return this.i.paused};
g.k.Bu=function(){return this.i.seeking};
g.k.Sk=function(){return this.i.ended};
g.k.oz=function(){return this.i.muted};
g.k.Ft=function(a){PC();this.ma();this.i.muted=a};
g.k.Qp=function(){return this.i.played||QC([],[])};
g.k.Uf=function(){try{var a=this.i.buffered}catch(b){}return a||QC([],[])};
g.k.Rv=function(){return this.i.seekable||QC([],[])};
g.k.Vx=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.Xx=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.Ch=function(){return this.i.readyState};
g.k.pz=function(){return this.i.networkState};
g.k.nj=function(){return this.i.error?this.i.error.code:null};
g.k.oe=function(){return this.i.error?this.i.error.message:""};
g.k.Wx=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.rf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.No=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;NC()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():OC()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Kn=function(){var a=this.i;return new g.wg(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.an(this.i)};
g.k.setSize=function(a){g.$m(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){PC();this.ma();this.i.volume=a};
g.k.FD=function(a){this.C[a]||(this.i.addEventListener(a,this.listener),this.C[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.Qu=ba(23);g.k.Ax=ba(25);g.k.Bx=ba(27);g.k.Wr=ba(29);g.k.yv=function(){return Ax(this.i)};
g.k.Wm=function(a){g.L(this.i,a)};
g.k.getStyle=function(a){return g.Km(this.i,a)};
g.k.FE=function(){return g.ih(document.body,this.i)};
g.k.audioTracks=function(){var a=this.i;if("audioTracks"in a)return a.audioTracks};
g.k.ya=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.C[b]);pJ.prototype.ya.call(this)};
g.k.ma=function(){};g.w(ZM,g.Q);g.k=ZM.prototype;g.k.uT=function(a){a=$u(a);if(!xg(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;YM(this,b,!0)}};
g.k.vT=function(){this.I&&YM(this,8,!0);YM(this,2,!1)};
g.k.kA=function(a){var b=$u(a);xg(b,this.C)||(this.C=b,(a=g.Xu(a))&&this.Dy(a)&&(YM(this,4,!0),this.i.qc(this.B),this.B=this.i.T(this.target,"mouseover",this.jF),this.K=this.i.T(this.target,"mouseout",this.jF)))};
g.k.jF=function(a){a=Zu(a);a&&this.Dy(a)||(this.C=new g.wg(NaN,NaN),Zxa(this))};
g.k.fT=function(){YM(this,1,!0)};
g.k.eS=function(a){a=g.Xu(a);a instanceof Element&&!(0<a.tabIndex)||YM(this,1,!0)};
g.k.YL=function(){this.I=!0;this.i.qc(this.D);this.D=this.i.T(document,"mouseup",this.wT)};
g.k.wT=function(){this.I=!1;YM(this,8,!1);this.i.qc(this.D);this.D=this.i.T(this.target,"mousedown",this.YL)};
g.k.uO=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.i.qc(this.S),this.S=this.i.T(this.target,"touchend",this.RX,void 0,!0),YM(this,1024,!0)};
g.k.RX=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.i.qc(this.S),this.S=this.i.T(this.target,"touchstart",this.uO,void 0,!0),YM(this,1024,!1))};
g.k.jl=function(){YM(this,2,!0)};
g.k.resize=function(){g.Ej&&Zxa(this)};
g.k.toString=function(){return g.Q.prototype.toString.call(this)};g.w(g.$M,g.W);
g.$M.prototype.Qa=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.Wa||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.M(this.element,"ytp-touch-device",b.isMobile),c=[b.D?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Pa("largePlayButtonChildren",c);a.D&&(a.Wa||b.pfpChazalUi)&&(a=a.Wa?a.Wa:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(aN,g.W);g.k=aN.prototype;g.k.show=function(){var a=this;this.yb||(this.B.T(this.api,"videodatachange",function(){g.Fr(a.i)}),this.B.T(this.api,"videoplayerreset",function(){g.Fr(a.i)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.Ex(this.B);g.W.prototype.hide.call(this)};
g.k.xb=function(){g.Fr(this.i)};
g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&HE(b)&&(a=a.state.isCued()&&!a.uo.isCued()||g.pM(this.api)&&g.T(a.state,2),g.Hm(this.element,"transition-delay",a?"2s":""));g.Fr(this.i)};
g.k.PW=function(){g.Fr(this.i)};
g.k.FP=function(){this.u.stop();this.hide();g.Fr(this.i)};
g.k.Qa=function(){var a=this.api.zb();if(3===this.api.getPresentingPlayerType()&&(a.Ec()||g.T(a,4)))var b=!0;else(b=this.api.vb().Hd.get("ypc"))&&b.BA?b=!0:(b=this.api.V(),b=g.T(a,2)&&mM(this.api)&&b.xd?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.T(a,2)||mM(this.api)||b&&this.api.Dv())||g.T(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.hY(this.api.getPlaylist(),a)):(this.u.hide(),
g.T(a,1)||this.u.stop())};
g.k.hY=function(){for(var a,b=g.q(g.Ba.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof FF&&!c.videoId)){a=this.api.eb().getPlayerSize();var d=g.IE(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Ke("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Ke("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Ke("sddefault.jpg")||c.Ke("hqdefault.jpg")||c.Ke("mqdefault.jpg"))break;if(a=c.Ke("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.w(g.gN,g.W);g.gN.prototype.resize=function(){};
g.gN.prototype.u=function(a){var b=this;dya(this);var c=a.HD,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.od(jN(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Kk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.od(g.hN(a.errorMessage)):this.od(jN(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.od(jN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.bb&&!d.i&&cya(this,function(e){if(g.bN(e,b.api,!HE(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Oa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var bya=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(kN,g.JC);kN.prototype.Nh=function(){hya(this)};
kN.prototype.onVideoDataChange=function(){var a=this,b=this.J.getVideoData();if(b.isValid()){var c=this.J.V(),d=[],e="";if(!c.K){var f=fya(this);c.N("enable_web_media_session_metadata_fix")&&g.tE(c)&&f?(d=gya(f.thumbnailDetails),f.album&&(e=g.$y(f.album))):d=[{src:b.Ke("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}hya(this);eya(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.pM(this.J)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),
b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
lN(this,"nexttrack",b);lN(this,"previoustrack",c)}};
kN.prototype.ya=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())lN(this,b.value,null);g.JC.prototype.ya.call(this)};g.w(mN,g.W);g.k=mN.prototype;g.k.onClick=function(a){g.bN(a,this.J,!0);this.J.Cb(this.element)};
g.k.onVideoDataChange=function(a,b){jya(this,b);this.Bd&&kya(this,this.Bd)};
g.k.Nc=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&jya(this,b);this.i&&kya(this,a.state);this.Bd=a.state};
g.k.Ad=function(){this.C.show();this.J.ea("paidcontentoverlayvisibilitychange",!0);this.J.gb(this.element,!0)};
g.k.Eb=function(){this.C.hide();this.J.ea("paidcontentoverlayvisibilitychange",!1);this.J.gb(this.element,!1)};g.w(nN,g.W);nN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
nN.prototype.onStateChange=function(a){lya(a.state)?this.i.start():this.hide()};
nN.prototype.u=function(){this.message.style.display="block"};g.w(g.oN,g.qK);g.k=g.oN.prototype;g.k.show=function(){var a=this.Xf();g.qK.prototype.show.call(this);this.Ba&&(this.K.T(window,"blur",this.Eb),this.K.T(document,"click",this.GP));a||this.ea("show",!0)};
g.k.hide=function(){var a=this.Xf();g.qK.prototype.hide.call(this);mya(this);a&&this.ea("show",!1)};
g.k.Ad=function(a,b){this.u=a;this.X.show();b?(this.S||(this.S=this.K.T(this.J,"appresize",this.jJ)),this.jJ()):this.S&&(this.K.qc(this.S),this.S=void 0)};
g.k.jJ=function(){var a=g.iM(this.J);this.u&&a.zq(this.element,this.u)};
g.k.Eb=function(){var a=this.Xf();mya(this);this.X.hide();a&&this.ea("show",!1)};
g.k.GP=function(a){var b=Yu(a);b&&(g.ih(this.element,b)||this.u&&g.ih(this.u,b)||!g.nL(a))||this.Eb()};
g.k.Xf=function(){return this.yb&&4!==this.X.state};g.w(qN,g.oN);qN.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(nya(this),this.Ad()):(this.i&&this.Cb(),this.Eb()))};
qN.prototype.Nh=function(a){this.api.isMutedByMutedAutoplay()&&g.lH(a,2)&&this.Eb()};
qN.prototype.onClick=function(){this.api.unMute();this.Cb()};
qN.prototype.Cb=function(){this.clicked||(this.clicked=!0,this.api.Cb(this.element))};g.w(g.sN,g.JC);g.k=g.sN.prototype;g.k.init=function(){var a=this.api.zb();this.Ub(a);this.Nm();this.xb()};
g.k.onVideoDataChange=function(a,b){this.OE!==b.videoId&&(this.OE=b.videoId,a=this.yd,a.xa=b&&0<b.hd.length?5E3:3E3,YM(a,512,!0),this.Nm())};
g.k.qV=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Mo=function(){var a=this.api.Fh()&&this.api.wk();return this.Ly||a||this.vE};
g.k.aj=function(){var a=!this.Mo();g.M(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Dy=function(a){try{if(!g.ih(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!qh(a);)a=a===this.api.getRootNode()?null:g.hh(a);return!!a};
g.k.Gj=function(a){var b=this.api.getRootNode();g.M(b,"ytp-autohide",a);g.M(b,"ytp-autohide-active",!0);this.oJ.start(a?250:100);a&&(this.rB=!1,g.Nr(b,"ytp-touch-mode"));this.uD=!a;this.api.mx(!a)};
g.k.pF=function(){var a=this.api.getRootNode();g.M(a,"ytp-autohide-active",!1)};
g.k.VV=function(){this.WG=!0};
g.k.UV=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_web_enable_mobile_touch_fix")&&this.api.V().C)this.WG=!1,this.XG&&this.qc(this.XG),0===this.zw&&vN(this,a)?(this.Ez(),this.Ny.start(),this.XG=this.T(this.api.eb(),"touchmove",this.VV,void 0,!0)):this.Ny.stop();!pya(this)||!vN(this,a)||this.api.V().C&&this.api.V().N("embeds_web_enable_mobile_touch_fix")||rN(this);var b=this.wB.Xf();if(gE&&qya(this,a))b&&g.av(a);else if(this.yd.u||tN(this,Yu(a))||this.wB.Xf()||
(this.api.zb().isCued(),g.av(a)),this.rB=!0,g.L(this.api.getRootNode(),"ytp-touch-mode"),this.yd.jl(),this.api.V().N("player_doubletap_to_seek")&&(b=this.api.zb(),!(!this.api.tf()||g.T(b,2)&&mM(this.api)||g.T(b,64)))){b=Date.now()-this.EL;this.zw+=1;if(350>=b){this.tv=!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.zw-1);0<d&&d<b?(this.zt(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):
d>2*b&&d<3*b&&(this.zt(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.av(a)}this.EL=Date.now();this.JN.start()}};
g.k.QV=function(a){if(!qya(this,a)){if(!pya(this)&&vN(this,a)&&!this.Ny.isActive()){if(g.ME(this.api.V())&&this.api.zb().isCued()){var b=void 0===b?{}:b;xz("warm");oz();wz();iz(!1);b.cttAuthInfo&&(jz().cttAuthInfo=b.cttAuthInfo);ot("TIMING_AFT_KEYS",[]);b.sda?g.Az("yt_lt","hot"):g.Az("yt_lt","warm");ot("TIMING_ACTION","");ot("TIMING_WAIT",[]);delete g.N("TIMING_INFO",{}).yt_lt;yz("warm",b.startTime);b=["pbs","pbu"];nz("").info.actionType="watch";b&&ot("TIMING_AFT_KEYS",b);ot("TIMING_ACTION","watch");
b=g.N("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.Az(c,b[c]);g.Az("is_nav",1);(c=g.Vx())&&g.Az("csn",c);(c=g.N("PREVIOUS_ACTION",void 0))&&!tz()&&g.Az("pa",c);c=kz();b=g.N("CLIENT_PROTOCOL");var d=g.N("CLIENT_TRANSPORT");b&&g.Az("p",b);d&&g.Az("t",d);g.Az("yt_vis",Yma());if("cold"===c.yt_lt){g.Az("yt_lt","cold");b=Fma();if(d=hz())Bz("srt",b.responseStart),1!==c.prerender&&yz("n",d);c=Lma();0<c&&Bz("fpt",c);c=Fma();c.isPerformanceNavigationTiming&&g.Az("pnt",1,void 0);Bz("nreqs",c.requestStart,
void 0);Bz("nress",c.responseStart,void 0);Bz("nrese",c.responseEnd,void 0);0<c.redirectEnd-c.redirectStart&&(Bz("nrs",c.redirectStart,void 0),Bz("nre",c.redirectEnd,void 0));0<c.domainLookupEnd-c.domainLookupStart&&(Bz("ndnss",c.domainLookupStart,void 0),Bz("ndnse",c.domainLookupEnd,void 0));0<c.connectEnd-c.connectStart&&(Bz("ntcps",c.connectStart,void 0),Bz("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=hz()&&0<c.connectEnd-c.secureConnectionStart&&(Bz("nstcps",c.secureConnectionStart,
void 0),Bz("ntcpe",c.connectEnd,void 0));fz&&fz.getEntriesByType&&$ma();c=[];if(document.querySelector&&fz&&fz.getEntriesByName)for(var e in r2)r2.hasOwnProperty(e)&&(b=r2[e],Zma(e,b)&&c.push(b));for(e=0;e<c.length;e++)g.Az("rc",c[e])}Uma();e=kz();b=dz();if("cold"===e.yt_lt&&(c=uz(),d=c.gelTicks?c.gelTicks:c.gelTicks={},c=c.gelInfos?c.gelInfos:c.gelInfos={},tz())){for(var f in b)"tick_"+f in d||Nma(f,b[f]);f=vz();b=lz();d=jz().cttAuthInfo;var h={},l=!1,m;for(m in e)if(!("info_"+m in c)){var n=Sma(m,
e[m]);n&&(yy(f,n),yy(h,n),l=!0)}l&&qz().info(h,b,d)}iz(!0);Wma()}rN(this);g.av(a)}this.tv&&(this.tv=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Wv("embedsRequestStorageAccessResult",{resolved:!0});vpa(!0);zv();window.location.reload()},function(){g.Wv("embedsRequestStorageAccessResult",{resolved:!1});
a.Nt()})};
g.k.Ez=function(){};
g.k.Kq=function(){};
g.k.zt=function(){};
g.k.FN=function(){};
g.k.Nt=function(){var a=this.api.zb();g.T(a,2)&&mM(this.api)||(g.zJ(a)?this.api.pauseVideo():(this.api.WE(),this.api.playVideo(),this.gs&&document.activeElement===this.gs.C.element&&this.api.getRootNode().focus()))};
g.k.RV=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!tN(this,Yu(a)))if(a=this.api.V(),this.api.V().N("player_doubletap_to_seek")&&this.tv)this.tv=!1;else if(a.Va&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Vv(d)})}catch(d){this.Vv(d)}};
g.k.Vv=function(a){String(a).includes("fullscreen error")?g.cy(a):g.by(a)};
g.k.SV=function(a){rya(this,.3,a.scale);g.av(a)};
g.k.TV=function(a){rya(this,.1,a.scale)};
g.k.xb=function(){var a=this.api.eb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.yd.resize();g.M(b,"ytp-fullscreen",this.api.isFullscreen());g.M(b,"ytp-large-width-mode",c);g.M(b,"ytp-small-mode",this.vf());g.M(b,"ytp-tiny-mode",this.Pz());g.M(b,"ytp-big-mode",this.Te());this.Be&&this.Be.resize(a)};
g.k.Nh=function(a){this.Ub(a.state);this.Nm()};
g.k.aE=function(){var a=!!this.OE&&!this.api.Yd(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(ePa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=RM(this.api.vb());return a&&b.BG()}return a&&(c.Uj||this.api.isFullscreen()||c.Tg)};
g.k.Nm=function(){var a=this.aE();this.Pk!==a&&(this.Pk=a,g.M(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Ub=function(a){var b=a.isCued()||this.api.gm()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.ZG&&this.qc(this.ZG),this.ZG=this.T(this.api.eb(),"touchstart",this.UV,void 0,b));var c=a.Ec()&&!g.T(a,32)||this.api.jw();YM(this.yd,128,!c);c=3===this.api.getPresentingPlayerType();YM(this.yd,256,c);c=this.api.getRootNode();if(g.T(a,2))var d=[R2.ENDED];else d=[],g.T(a,8)?d.push(R2.PLAYING):g.T(a,4)&&d.push(R2.PAUSED),g.T(a,1)&&!g.T(a,32)&&d.push(R2.BUFFERING),g.T(a,32)&&
d.push(R2.SEEKING),g.T(a,64)&&d.push(R2.UNSTARTED);g.qc(this.OC,d)||(g.Or(c,this.OC),this.OC=d,g.Mr(c,d));d=this.api.V();var e=g.T(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.vE);g.T(a,128)&&!g.kE(d)?(this.Be||(this.Be=new g.gN(this.api),g.H(this,this.Be),g.sM(this.api,this.Be.element,4)),this.Be.u(a.getData()),this.Be.show()):this.Be&&(this.Be.dispose(),this.Be=null)};
g.k.Dk=function(){return this.api.Fh()&&this.api.wk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Yd()?(g.nM(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.vE=a;this.aj()};
g.k.Te=function(){return!1};
g.k.vf=function(){return!this.Te()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Pz=function(){return this.vf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Bi=function(){return this.rB};
g.k.Ln=function(){return null};
g.k.tj=function(){var a=this.api.eb().getPlayerSize();return new g.Dm(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.zq=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.eb().mx(a)};
g.k.jl=function(){};
g.k.IK=function(){return null};g.w(wN,g.Q);g.k=wN.prototype;g.k.Hv=function(){return 1E3*this.api.getDuration(this.Sj,!1)};
g.k.stop=function(){this.i&&this.Ce.qc(this.i)};
g.k.Xb=function(){var a=this.api.getProgressState(this.Sj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Sj,!1)};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Nc=function(a){g.lH(a,2)&&this.ea("g")};g.w(xN,g.W);xN.prototype.onClick=function(){this.J.Oa("BACK_CLICKED")};g.w(g.yN,g.W);g.yN.prototype.show=function(){g.W.prototype.show.call(this);g.Fr(this.i)};
g.yN.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.yN.prototype.Kq=function(a){a?g.T(this.J.zb(),64)||zN(this,Uva(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?zN(this,Wva(),"Stop live playback"):zN(this,Rva(),"Pause"))};g.w(CN,g.W);g.k=CN.prototype;g.k.Ad=function(){this.J.V().N("player_new_info_card_format")&&g.Lr(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.kE(this.J.V())||(this.u.show(),g.uv("iv-button-shown"))};
g.k.Eb=function(){g.uv("iv-button-hidden");this.u.hide()};
g.k.Xf=function(){return this.yb&&4!==this.u.state};
g.k.ya=function(){this.i&&this.i();g.W.prototype.ya.call(this)};
g.k.OU=function(){g.uv("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.Fh();var b=g.Lr(this.J.getRootNode(),"ytp-cards-teaser-shown");g.uv("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!this.J.wk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(EN,g.W);g.k=EN.prototype;g.k.FO=function(){this.J.Fh()&&this.J.wk()&&this.Xf()&&this.Eb()};
g.k.MG=function(){this.Eb();g.uv("iv-teaser-clicked",null!=this.i);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.HP=function(){g.uv("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.qW=function(a){this.J.V().N("player_new_info_card_format")&&!g.kE(this.J.V())&&this.ri.Eb();this.i||!a||this.J.wk()||this.u&&this.u.isActive()||(this.Ad(a),g.uv("iv-teaser-shown"))};
g.k.Ad=function(a){this.Pa("text",a.teaserText);this.element.setAttribute("dir",g.as(a.teaserText));this.C.show();this.u=new g.I(function(){g.L(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.N("player_new_info_card_format")&&!g.kE(this.J.V())&&this.ri.Eb();this.kH()},0,this);
this.u.start();BN(this.ri,!1);this.i=new g.I(this.Eb,580+a.durationMs,this);this.i.start();this.D.push(this.Ra("mouseover",this.YH,this));this.D.push(this.Ra("mouseout",this.XH,this))};
g.k.kH=function(){if(!this.J.V().N("player_new_info_card_format")&&g.kE(this.J.V())&&this.yb){var a=this.ri.element.offsetLeft,b=g.Sg("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.ri.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.CR=function(){g.kE(this.J.V())&&this.X.vf()&&this.yb&&this.S.start()};
g.k.YH=function(){this.I.stop();this.i&&this.i.isActive()&&this.K.start()};
g.k.XH=function(){this.K.stop();this.i&&!this.i.isActive()&&this.I.start()};
g.k.cV=function(){this.i&&this.i.stop()};
g.k.bV=function(){this.Eb()};
g.k.Ii=function(){this.Eb()};
g.k.Eb=function(){!this.i||this.B&&this.B.isActive()||(g.uv("iv-teaser-hidden"),this.C.hide(),g.Nr(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.I(function(){for(var a=g.q(this.D),b=a.next();!b.done;b=a.next())this.qc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);BN(this.ri,!0)},330,this),this.B.start())};
g.k.Xf=function(){return this.yb&&4!==this.C.state};
g.k.ya=function(){var a=this.J.getRootNode();a&&g.Nr(a,"ytp-cards-teaser-shown");(0,g.se)(this.u,this.B,this.i);g.W.prototype.ya.call(this)};var X2={},FN=(X2.BUTTON="ytp-button",X2.TITLE_NOTIFICATIONS="ytp-title-notifications",X2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",X2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",X2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",X2);g.w(GN,g.W);GN.prototype.onClick=function(){this.api.Cb(this.element);var a=!this.i;this.Pa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Pa("pressed",a);uya(this,a)};g.w(g.IN,g.W);g.IN.prototype.u=function(){g.L(this.element,"ytp-sb-subscribed")};
g.IN.prototype.B=function(){g.Nr(this.element,"ytp-sb-subscribed")};g.w(JN,g.W);g.k=JN.prototype;g.k.iG=function(){yya(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.KD=function(){if(wya(this)&&!this.isExpanded()){this.Pa("flyoutUnfocusable","false");this.Pa("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.gb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Oi&&a.subscribed&&(this.u.show(),this.api.gb(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.oD=function(){this.Pa("flyoutUnfocusable","true");this.Pa("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Qa=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.dc&&!!a.Qh:g.kE(b)&&(c=!!a.videoId&&!!a.dc&&!!a.Qh&&!(a.D&&b.pfpChazalUi)&&!b.kc&&!(b.C&&200>this.api.getPlayerSize().width));var d=g.TE(this.api.V())+a.dc;g.kE(this.api.V())&&(d=g.Ui(d,g.$L("emb_ch_name_ex")));var e=a.dc,f=a.Qh;b=g.kE(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.TE(this.api.V())+e,this.K!==
f&&(this.i.style.backgroundImage="url("+f+")",this.K=f),this.Pa("channelLink",e),this.Pa("channelLogoLabel",g.AH("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.L(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Nr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.gb(this.i,c&&this.oa);this.subscribeButton&&(this.subscribeButton.channelId=a.bj);this.Pa("expandedTitle",a.expandedTitle);this.Pa("channelTitleLink",d);this.Pa("expandedSubtitle",a.expandedSubtitle)};g.w(g.LN,g.qK);g.LN.prototype.Pa=function(a,b){g.qK.prototype.Pa.call(this,a,b);this.ea("size-change")};g.w(ON,g.qK);ON.prototype.tM=function(){this.ea("size-change")};
ON.prototype.focus=function(){this.content.focus()};
ON.prototype.iU=function(){this.ea("back")};g.w(g.PN,ON);g.PN.prototype.Fc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.nc(this.items,a,zya);if(0<=b)return;b=~b;g.ic(this.items,b,0,a);g.fh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.FF,this);this.menuItems.ea("size-change")};
g.PN.prototype.If=function(a){a.unsubscribe("size-change",this.FF,this);this.isDisposed()||(g.$b(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.PN.prototype.FF=function(){this.menuItems.ea("size-change")};
g.PN.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.w(RN,g.LN);RN.prototype.i=function(a){g.bv(a)||39!==g.cv(a)||(this.element.click(),g.av(a))};g.w(TN,g.LN);TN.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
TN.prototype.getValue=function(){return this.checked};
TN.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(UN,g.W);g.k=UN.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Pa("userInfoFocusable","0");this.Pa("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.Pa("userInfoFocusable","-1");this.Pa("userInfoFocusable2","-1")};
g.k.IP=function(a){var b=Yu(a),c=g.ih(this.element,b);a=this.i&&g.ih(this.i,b)&&g.nL(a);b&&(c||a)||this.hide()};
g.k.JP=function(){g.zL(function(){window.location.reload()},"user_info_panel",g.EE(this.Ta.V()))};
g.k.Qa=function(){var a=this.Ta.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.jh};this.Pa("icon",Sva());this.Pa("watchingAsUsername",g.AH("Watching as $USER_NAME",a));this.Pa("watchingAsEmail",g.AH("($USER_EMAIL)",a))};g.w(VN,g.PN);g.k=VN.prototype;g.k.yU=function(){eN(this.Zr.element)};
g.k.JU=function(){XN(this,this.J.getDebugText(!0))&&zN(this.wc,tK())};
g.k.KU=function(){XN(this,this.J.getVideoEmbedCode())&&zN(this.wc,Mva());this.J.Cb(this.rj.element);wL("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.LU=function(){XN(this,this.J.getVideoUrl(!0,!0))&&zN(this.wc,yK());this.J.Cb(this.getVideoUrl.element);wL("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.MU=function(){XN(this,this.J.getVideoUrl(!1,!0))&&zN(this.wc,yK());this.J.Cb(this.uj.element);wL("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.EM=function(a){var b;null===(b=this.Ei)||void 0===b?void 0:b.setValue(a)};
g.k.VU=function(){this.J.setLoopVideo(this.Ei.getValue());this.Ab.Eb();this.J.Cb(this.Ei.element)};
g.k.LV=function(a){this.J.reportPlaybackIssue();if(g.bN(a,this.J,!HE(this.J.V()))){a=this.J;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Ab.Eb()};
g.k.eW=function(){this.J.showVideoInfo();this.Ab.Eb()};
g.k.dW=function(){this.Ui&&(this.Jx||(this.Jx=new UN(this.J,this.Ui.element),g.H(this,this.Jx),g.sM(this.J,this.Jx.element,4)),this.Jx.show(),this.Ab.Eb(),this.J.Cb(this.Ui.element))};
g.k.onVideoDataChange=function(a,b){Bya(this,b)};
g.k.Yb=function(a){g.PN.prototype.Yb.call(this,a);this.J.gb(this.rj.element,a);this.J.gb(this.getVideoUrl.element,a);this.J.gb(this.uj.element,a);this.Ei&&this.J.gb(this.Ei.element,a);this.Ui&&this.J.gb(this.Ui.element,a)};g.w(g.YN,g.oN);g.k=g.YN.prototype;g.k.show=function(){g.oN.prototype.show.call(this);this.Ut()};
g.k.hide=function(){g.oN.prototype.hide.call(this);1<this.i.length&&g.$N(this)};
g.k.Ut=function(){Dya(this);this.yb&&(Cya(this),g.$m(this.element,this.size))};
g.k.qh=function(){var a=this.i.pop();ZN(this,a,this.i[this.i.length-1],!0)};
g.k.KP=function(a){if(!g.bv(a))switch(g.cv(a)){case 27:this.Eb();g.av(a);break;case 37:1<this.i.length&&this.qh();g.av(a);break;case 39:g.av(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.ya=function(){g.oN.prototype.ya.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.w(g.aO,g.YN);g.k=g.aO.prototype;g.k.MP=function(a){var b,c=Yu(a);c&&(sh(c,"a")||sh(c,null,"ytp-no-contextmenu",void 0))||this.yb||(this.xa=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.wg(a.clientX,a.clientY):new g.wg(0,0),this.Z.start())};
g.k.bN=function(){this.Z.stop()};
g.k.wW=function(){this.open(this.xa)};
g.k.show=function(){this.D||(this.D=new VN(this.J,this.Aa,this,this.wc),g.H(this,this.D),g.WN(this,this.D));this.D.EM(this.J.getLoopVideo());g.YN.prototype.show.call(this);this.J.gb(this.element,!0);this.D.Yb(!0)};
g.k.hide=function(){Fya(this);g.YN.prototype.hide.call(this);this.J.gb(this.element,!1);this.D&&this.D.Yb(!1)};
g.k.vU=function(a){var b=Yu(a);this.yb||b&&(sh(b,"a")||sh(b,null,"ytp-no-contextmenu",void 0))||(g.av(a),this.open($u(a)))};
g.k.open=function(a){Gya(this);var b=this.J.getVideoData();g.M(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.Ad();var c=document.body;b=new zm(0,Infinity,Infinity,0);var d=Ng(c);for(var e=d.i.body,f=d.i.documentElement,h=Wg(d.i);c=Hca(c);)if(!(g.Jc&&0==c.clientWidth||g.Yg&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Mm(c,"overflow")){var l=g.Qm(c),m=new g.wg(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=Vg(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.Dm(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Om(this.element,new g.wg(d.left,d.top));g.Ex(this.B);this.B.T(document,"contextmenu",this.EU);this.B.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.J,"pageTransition",this.LP)};
g.k.EU=function(a){if(!g.bv(a)){var b=Yu(a);g.ih(this.element,b)||this.Eb();this.J.V().disableNativeContextMenu&&g.av(a)}};
g.k.onFullscreenToggled=function(){this.Eb();Gya(this)};
g.k.LP=function(){this.Eb()};g.w(g.bO,g.W);g.bO.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.i)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.x(f,Iya(a,e),2);f.u&&Hya(a);a.api.Cb(a.element);g.ta(f)})};
g.bO.prototype.Qa=function(){var a=this.api.V(),b=this.api.getVideoData();this.Pa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.Pa("title-attr","Copy link");var c=this.api.eb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.gk&&!(b.D&&a.pfpChazalUi);g.M(this.element,"ytp-copylink-button-visible",this.visible);g.pK(this,this.visible);dO(this.tooltip);this.api.gb(this.element,this.visible&&this.oa)};
g.bO.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
g.bO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Nr(this.element,"ytp-copylink-button-visible")};g.w(eO,g.W);g.k=eO.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Fr(this.i)};
g.k.hide=function(){this.u.stop();g.Nr(this.element,"ytp-chapter-seek");g.Nr(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.zt=function(a,b,c,d){this.At(a,d)};
g.k.At=function(a,b){g.Hr(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Nr(this.element,"ytp-chapter-seek");this.Pa("chapterSeekText","");a=g.AH("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Pa("seekTime",a)};
g.k.WA=function(a,b){g.Hr(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-chapter-seek");this.Pa("chapterSeekText",b);this.Pa("seekTime","")};g.w(fO,g.W);g.k=fO.prototype;g.k.show=function(){g.W.prototype.show.call(this);g.Fr(this.u)};
g.k.hide=function(){this.B.stop();g.Nr(this.element,"ytp-chapter-seek");g.Nr(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.k.zt=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.J.Cb(e);g.Hr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.eb().getPlayerSize().height;e=this.J.eb().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.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.J.eb().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.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Jya(this,d)};
g.k.At=function(a,b){var c=this.J.eb().getPlayerSize();g.Hr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.L(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";Jya(this,b)};
g.k.WA=function(a,b){g.Hr(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.L(this.element,"ytp-chapter-seek");this.Pa("seekText",b);this.Pa("seekTime","")};var OQa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(OQa).reduce(function(a,b){a[OQa[b]]=b;return a},{});
var PQa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(PQa).reduce(function(a,b){a[PQa[b]]=b;return a},{});
var QQa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(QQa).reduce(function(a,b){a[QQa[b]]=b;return a},{});var Y2,RQa;Y2=[{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"}];RQa=[{option:0,text:gO(0)},{option:.25,text:gO(.25)},{option:.5,text:gO(.5)},{option:.75,text:gO(.75)},{option:1,text:gO(1)}];
g.kO=[{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:Y2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:gO(.5)},{option:-1,text:gO(.75)},{option:0,text:gO(1)},{option:1,text:gO(1.5)},{option:2,text:gO(2)},
{option:3,text:gO(3)},{option:4,text:gO(4)}]},{option:"background",text:"Background color",options:Y2},{option:"backgroundOpacity",text:"Background opacity",options:RQa},{option:"windowColor",text:"Window color",options:Y2},{option:"windowOpacity",text:"Window opacity",options:RQa},{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:gO(.25)},{option:.5,text:gO(.5)},{option:.75,text:gO(.75)},{option:1,text:gO(1)}]}];g.w(g.jO,g.JC);g.k=g.jO.prototype;
g.k.RK=function(a){var b=!1,c=g.cv(a),d=Yu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.bv(a)?(e=!1,h=!0):l.Bf&&(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);AN(this.wc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);AN(this.wc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.tf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.tf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&iO(this,!0);(b||h)&&this.yd.jl();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.av(a);l.B&&(a={keyCode:g.cv(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.bv(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.k.SK=function(a){this.handleGlobalKeyUp(g.cv(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.qM(this.api.vb());c&&(c=c.Oo)&&c.yb&&(c.NK(a),b=!0);9===a&&(iO(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Bf)return h;var l=g.qM(this.api.vb());if(l&&(l=l.Oo)&&l.yb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.MK(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Mea(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.Cl:[];l=OF?d:c;switch(a){case 80:b&&
!e.Z&&(zN(this.wc,Vva(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Z&&(zN(this.wc,zK(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.tf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.At(-1,10):zN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.tf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.At(1,10):zN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.tf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Lya(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.WA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.At(-1,5):zN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.tf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Kya(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.WA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.At(1,5):zN(this.wc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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(),AN(this.wc,this.api.getVolume(),!1)):(this.api.mute(),AN(this.wc,0,!0));h=!0;break;case 32:case 75:e.Z||(h=!g.zJ(this.api.zb()),this.wc.Kq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Zb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),sya(this.wc,!1),h=!0):this.api.tf()&&(Nya(this,1),h=!0);break;case 188:b?e.Zb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),sya(this.wc,!0),h=!0):this.api.tf()&&(Nya(this,-1),h=!0);break;case 70:$xa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.NM(this.api.vb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),tya(this.wc,!e||e&&!e.displayName),h=!0);break;case 79:lO(this,"textOpacity");break;case 87:lO(this,"windowOpacity");break;case 187:case 61:lO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:lO(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.tf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.yd.jl()}return h};
g.k.ya=function(){g.Hr(this.B);g.JC.prototype.ya.call(this)};g.w(mO,g.W);mO.prototype.Qa=function(){var a=g.kE(this.J.V())&&g.pM(this.J)&&g.T(this.J.zb(),128),b=this.J.getPlayerSize();this.visible=this.i.vf()&&!a&&240<=b.width&&!(this.J.getVideoData().D&&this.J.V().pfpChazalUi);g.M(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&dO(this.tooltip);this.J.gb(this.element,this.visible&&this.oa)};
mO.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};
mO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Nr(this.element,"ytp-overflow-button-visible")};g.w(nO,g.oN);g.k=nO.prototype;g.k.NP=function(a){a=Yu(a);g.ih(this.element,a)&&(g.ih(this.i,a)||g.ih(this.closeButton,a)||pN(this))};
g.k.Eb=function(){g.oN.prototype.Eb.call(this);this.tooltip.qj(this.element)};
g.k.show=function(){this.yb&&this.J.ea("OVERFLOW_PANEL_OPENED");g.oN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Oya(this,!0)};
g.k.hide=function(){g.oN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Oya(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Xf()&&pN(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.yb){b.focus();break}};g.w(pO,g.W);pO.prototype.onClick=function(a){g.bN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(qO,g.oN);g.k=qO.prototype;g.k.show=function(){g.oN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.dC);this.B.T(this.api,"onPlaylistUpdate",this.dC);this.dC()};
g.k.hide=function(){g.oN.prototype.hide.call(this);g.Ex(this.B);this.updatePlaylist(null)};
g.k.dC=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.aB=function(){var a=this.playlist,b=a.B;if(b===this.C)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 pO(this.api,a,d);this.i.push(e);e.Ea(this.items)}this.selected=this.i[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.vW=function(a){var b=this.api.getVideoUrl(!0);g.cN(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.aB,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.aB,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.AH(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.aB()}else this.yb&&this.hide();
else this.playlist&&this.aB()};
g.k.focus=function(){this.selected.focus()};
g.k.ya=function(){this.hide();g.oN.prototype.ya.call(this)};g.w(rO,g.W);
rO.prototype.Qa=function(){var a=g.kE(this.api.V());g.M(this.element,"ytp-playlist-menu-button-tiny",400>this.api.eb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.AH("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.AH("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.yb||(this.show(),dO(this.tooltip)),this.visible=!0,this.Yb(!0)):
this.yb&&(this.hide(),this.Yb(!1),dO(this.tooltip))};
rO.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
rO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Qa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Qa,this);this.Qa()};g.w(sO,g.W);g.k=sO.prototype;
g.k.eC=function(a,b){if(!this.C){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.bn(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.mK({G:"span",L:"ytp-promotooltip-details-icon",U:[SQa[this.tooltipRenderer.targetId]]});g.H(this,r);for(var t=[],u=g.q(p),v=u.next();!v.done;v=u.next())v=new g.mK({G:"span",L:"ytp-promotooltip-details-component",va:v.value}),g.H(this,v),t.push(v);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.eh(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.bn(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.bn(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.bn(this.dismissButton,f)}b&&(this.B=b);this.i=Pya(this);this.D=!1;this.J.V().N("web_player_hide_nitrate_promo_tooltip")||g.pK(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.J.Le()?g.pK(this,!1):(b=g.an(this.i),b.width&&b.height?(this.K.zq(this.element,this.i),l=this.J.eb().getPlayerSize().height-g.an(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Fa("ytp-promotooltip-pointer"),m=g.Zm(this.i,this.J.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.J.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.pK(this,!1));this.I||(this.I=!0,uO(this,0));this.u&&this.J.gb(this.element,this.yb)}};
g.k.xU=function(){tO(this);this.D=!0};
g.k.FT=function(){this.C=!0;uO(this,1);this.J.ea("promotooltipacceptbuttonclicked",this.acceptButton);tO(this);this.u&&this.J.Cb(this.acceptButton)};
g.k.DU=function(){this.C=!0;uO(this,2);tO(this);this.u&&this.J.Cb(this.dismissButton)};
g.k.OP=function(a){var b,c;if(1===this.J.getPresentingPlayerType()){var d=!0,e=g.Sg("ytp-ad-overlay-ad-info-dialog-container"),f=Yu(a);if(this.B&&f&&g.ih(this.B,f))this.B=null;else{1===this.J.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=Qya(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.ih(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.ih(this.element,f));this.i&&this.yb&&!e&&(!f||d&&g.nL(a))&&(this.C=!0,tO(this))}}};
g.k.xb=function(){this.D||(this.i||(this.i=Pya(this)),this.eC())};
var SQa={"ytp-settings-button":g.CK()};g.w(vO,g.W);vO.prototype.onStateChange=function(a){g.pK(this,g.T(a.state,2))};
vO.prototype.onClick=function(){this.J.zb();this.J.playVideo()};g.w(g.wO,g.W);g.wO.prototype.onClick=function(){var a=this.api.V(),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(Rya)}catch(e){e instanceof Error&&Rya(e)}else this.i.Dk(),pN(this.B,this.element,!1);this.api.Cb(this.element)};
g.wO.prototype.Qa=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.kE(a)&&g.pM(this.api)&&g.T(this.api.zb(),128);this.Pa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.gk||c||b.D&&a.pfpChazalUi;c=this.api.eb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.M(this.element,"ytp-share-button-visible",this.visible);g.pK(this,this.visible);dO(this.tooltip);this.api.gb(this.element,this.visible&&this.oa)};
g.wO.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};
g.wO.prototype.ya=function(){g.W.prototype.ya.call(this);g.Nr(this.element,"ytp-share-button-visible")};g.w(g.xO,g.oN);g.k=g.xO.prototype;g.k.PP=function(a){a=Yu(a);g.ih(this.D,a)||g.ih(this.closeButton,a)||pN(this)};
g.k.Eb=function(){g.oN.prototype.Eb.call(this);this.tooltip.qj(this.element)};
g.k.show=function(){var a=this.yb;g.oN.prototype.show.call(this);this.Qa();a||this.api.Oa("onSharePanelOpened")};
g.k.kT=function(){this.yb&&this.Qa()};
g.k.Qa=function(){var a=this;g.L(this.element,"ytp-share-panel-loading");g.Nr(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&IL(this.api.Xl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Nr(a.element,"ytp-share-panel-loading"),Tya(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.vE(this.api.V())&&(b=g.Ui(b,g.$L("emb_share")));this.Pa("link",b);this.Pa("linkText",b);this.Pa("shareLinkWithUrl",g.AH("Share link $URL",{URL:b}));eN(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.Xf()&&pN(this)};
g.k.focus=function(){this.B.focus()};
g.k.ya=function(){g.oN.prototype.ya.call(this);Sya(this)};g.w(AO,g.W);g.k=AO.prototype;g.k.qF=function(){};
g.k.rF=function(){};
g.k.tx=function(){return!0};
g.k.BX=function(){if(this.expanded){this.Aa.show();var a=this.I.element.scrollWidth}else a=this.I.element.scrollWidth,this.Aa.hide();this.Wa=34+a;g.M(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Wa)+"px";this.xa.start()};
g.k.VR=function(){this.badge.element.style.width=(this.expanded?this.Wa:34)+"px";this.Ka.start()};
g.k.eY=function(){g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Vh=function(){this.tx()?this.S.show():this.S.hide();Uya(this)};
g.k.QP=function(){this.enabled=!1;this.Vh()};
g.k.dY=function(){this.Vh()};
g.k.lU=function(a){this.Sa=1===a;this.Vh();g.M(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.HU=function(){g.M(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Vh()};g.w(BO,AO);g.k=BO.prototype;g.k.ya=function(){CO(this);AO.prototype.ya.call(this)};
g.k.qF=function(a){a.target!==this.dismissButton.element&&(Wya(this,!1),this.J.Oa("innertubeCommand",this.onClickCommand))};
g.k.rF=function(){this.B=!0;Wya(this,!0);this.Vh()};
g.k.tV=function(a){this.Ja=a;this.Vh()};
g.k.lV=function(a){var b=this.J.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.X=a,a||(a=3+this.J.getCurrentTime(),this.Ed(a)))};
g.k.onVideoDataChange=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.X=this.Ba=this.u=this.K=!1,CO(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ja=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.J.Gm(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&
this.J.Gm(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.$y(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Va=g.$y(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;YF(b)?this.X=this.Ba=!0:this.Ed()}Vya(this);zO(this);this.Vh()};
g.k.tx=function(){return!this.Ja&&this.enabled&&!this.B&&!this.Za.vf()&&!this.Sa&&!this.X&&(this.u||this.i)};
g.k.Ge=function(a){(this.u=a)?(yO(this),zO(this,!1)):(CO(this),this.Z.start());this.Vh()};
g.k.Ed=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Ty(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Ty(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.J.Ed(b)};g.w(DO,g.oN);DO.prototype.show=function(){g.oN.prototype.show.call(this);this.C.start()};
DO.prototype.hide=function(){g.oN.prototype.hide.call(this);this.C.stop()};
DO.prototype.Is=function(a,b){"dataloaded"===a&&((this.B=b.VI,this.i=b.TI,isNaN(this.B)||isNaN(this.i))?this.D&&(this.J.Ye("intro"),this.J.removeEventListener(g.Vy("intro"),this.xa),this.J.removeEventListener(g.Wy("intro"),this.Z),this.J.removeEventListener("onShowControls",this.I),this.hide(),this.D=!1):(this.J.addEventListener(g.Vy("intro"),this.xa),this.J.addEventListener(g.Wy("intro"),this.Z),this.J.addEventListener("onShowControls",this.I),a=new g.Ty(this.B,this.i,{priority:9,namespace:"intro"}),
this.J.Ed([a]),this.D=!0))};g.w(EO,g.W);EO.prototype.onClick=function(){this.J.No()};
EO.prototype.Qa=function(){var a=!0,b=this.J.V();(b.N("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.N("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.kE(b)&&(a=a&&480<=this.J.eb().getPlayerSize().width);g.pK(this,a);this.Pa("icon",this.J.rf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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 Qv("yt.autonav");g.w(FO,g.W);g.k=FO.prototype;
g.k.Du=function(){if(3!==this.J.getPresentingPlayerType()&&g.tM(this.J)&&400<=this.J.eb().getPlayerSize().width&&!1!==this.J.getVideoData().nX){if(!this.i){this.i=!0;g.pK(this,this.i);this.u.push(this.T(this.J,"videodatachange",this.Du));this.u.push(this.T(this.J,"videoplayerreset",this.Du));this.u.push(this.T(this.J,"onPlaylistUpdate",this.Du));this.u.push(this.T(this.J,"autonavchange",this.ZH));var a=this.J.getVideoData();this.ZH(a.autonavState);this.J.gb(this.element,this.i)}}else{this.i=!1;g.pK(this,
this.i);a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.qc(b.value)}};
g.k.ZH=function(a){(a=1!==a)||(g.Mv.getInstance(),a=g.O("web_autonav_allow_off_by_default")&&!g.Nv(0,141)&&g.N("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Nv(0,140));this.isChecked=a;Xya(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.ZA(this.isChecked?2:1);Xya(this);this.J.Cb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.HO,g.W);g.HO.prototype.ya=function(){this.ctx=null;g.W.prototype.ya.call(this)};g.w(IO,g.W);IO.prototype.onClick=function(){this.J.Oa("innertubeCommand",this.B)};
IO.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Xb()};
IO.prototype.updateVideoData=function(a,b){a=b.sY;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.M(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Xb()};
IO.prototype.Xb=function(){var a="",b=this.K.i;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=hO(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.J.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.C&&(this.update({title:a}),this.C=a);a?this.show():this.hide()};g.w(g.KO,g.W);g.KO.prototype.Nc=function(a){g.T(a.state,32)?LO(this,this.api.qg()):this.yb&&(g.T(a.state,16)||g.T(a.state,1))||this.i.hide()};
g.KO.prototype.td=function(){var a=this.api.zb();(g.T(a,32)||g.T(a,16))&&MO(this)};
g.KO.prototype.D=function(){this.B=NaN;MO(this)};
g.KO.prototype.hide=function(){this.u&&LO(this,null);g.W.prototype.hide.call(this)};g.w(NO,g.W);NO.prototype.onClick=function(){this.Ta.Cb(this.element);this.Ta.Oa("onFullerscreenEduClicked")};
NO.prototype.Qa=function(){this.Ta.isFullscreen()?this.u?this.i.hide():this.i.show():this.hide();this.Ta.gb(this.element,this.Ta.isFullscreen()&&!this.u)};g.w(g.OO,g.W);g.k=g.OO.prototype;g.k.onClick=function(){var a=this;if(this.J.V().Va||this.J.V().C){this.J.Cb(this.element);try{this.J.toggleFullscreen().catch(function(b){a.Vv(b)})}catch(b){this.Vv(b)}}else pN(this.message,this.element,!0)};
g.k.Vv=function(a){String(a).includes("fullscreen error")?g.cy(a):g.by(a);this.zF()};
g.k.zF=function(){this.disable();this.message.Ad(this.element,!0)};
g.k.wm=function(){zx()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.xR=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.zF()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Su(["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.oN(this.J,{G:"div",Ha:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.V().I},va:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.rs(a.message,c)});
g.sM(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.Qa=function(){var a=$xa(this.J),b=this.J.V().C&&250>this.J.getPlayerSize().width;g.pK(this,a&&!b);this.J.gb(this.element,this.yb)};
g.k.Ri=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=fN(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path",
Pb:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=fN(this.J,"Full screen","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});dO(this.u.jc())};
g.k.ya=function(){this.message||((0,this.i)(),this.i=null);g.W.prototype.ya.call(this)};g.w(PO,g.W);PO.prototype.onClick=function(){this.J.Oa("onCollapseMiniplayer");this.J.Cb(this.element)};
PO.prototype.Qa=function(){this.visible=!this.J.isFullscreen();g.pK(this,this.visible);this.J.gb(this.element,this.visible&&this.oa)};
PO.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};g.w(QO,g.W);QO.prototype.onVideoDataChange=function(a){this.Qa("newdata"===a)};
QO.prototype.Qa=function(a){var b=this.J.getVideoData(),c=b.hd,d=this.J.zb();d=(g.zJ(d)||g.T(d,4))&&0<c.length;g.pK(this,d);a&&(this.i=!0);if(d){this.i&&g.Fr(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.AH("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.Ke("default.jpg")});dO(this.tooltip)}else this.u.stop()};
QO.prototype.B=function(){cO(this.tooltip,this.element,"More cameras available");this.i=!1};g.w(RO,g.oN);g.k=RO.prototype;g.k.show=function(){var a=this.yb;g.oN.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Qa),this.B.T(this.api,"videodatachange",this.Qa),this.Qa())};
g.k.hide=function(){this.B&&(g.Ex(this.B),g.oN.prototype.hide.call(this))};
g.k.Qa=function(){var a=this,b=this.api.getVideoData(),c=b.hd,d,e={};for(d=0;d<c.length;e={FB:e.FB},d++){var f=this.i[d];f||(f=new g.W({G:"button",Ha:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",va:"{{cameraName}}"}]}),e.FB=d,f.Ra("click",function(n){return function(){var p=n.FB,r=a.api.getVideoData(),t=a.api,u=r.hd[p];p=g.uM(t.app,1).getVideoData();r=t.getCurrentTime();u.id===p.videoId?(u=g.uM(t.app,
1),g.uM(t.app)!==u&&(t.app.dl(1),p.isLivePlayback||t.seekTo(r))):(t.app.dl(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.EH}}}},4))}}(e)),f.Ea(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=GE(this.api.V(),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.zb();b=c.length||!b.isLoaded();g.zJ(d)||g.T(d,4)||b||!this.Xf()||pN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.hd,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.ya=function(){(0,g.se)(this.i);g.oN.prototype.ya.call(this)};g.w(SO,g.E);SO.prototype.i=function(){var a=(0,g.P)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.cs(TQa,a));1>a&&this.delay.start()};
var TQa=new g.bs(0,0,.4,0,.2,1,1,1),bza=/[0-9.-]+|[^0-9.-]+/g;g.w(g.UO,g.W);g.k=g.UO.prototype;g.k.aI=function(a){this.visible=300<=a.width;g.pK(this,this.visible);this.J.gb(this.element,this.visible&&this.oa)};
g.k.dV=function(){this.J.V().X?this.J.isMuted()?this.J.unMute():this.J.mute():pN(this.message,this.element,!0);this.J.Cb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.Z;isNaN(f)?eza(this,a):TO(this.Aa,function(l){eza(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.S;isNaN(h)?fza(this,d):TO(this.X,function(l){fza(c,h+(c.C-h)*l)},250);
this.C=d}e.X&&(e=fN(this.J,"Mute","m"),d=fN(this.J,"Unmute","m"),b=b?d:e,this.Pa("title",b),this.Pa("label",b),dO(this.tooltip))};
g.k.Yb=function(a){g.W.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};
var cza=["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"],dza=["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.w(VO,g.W);VO.prototype.onClick=function(){this.J.togglePictureInPicture()};g.w(g.WO,g.W);g.WO.prototype.onStateChange=function(a){gza(this,a.state);a=g.T(a.state,2);OE(this.J.V())&&(!this.u&&!a||this.u&&a?(this.hide(),this.J.gb(this.element,!1)):(this.show(),this.J.gb(this.element,!0)))};
g.WO.prototype.onVideoDataChange=function(){g.M(this.element,"ytp-play-button-playlist",g.pM(this.J))};
g.WO.prototype.Nt=function(a){var b;this.J.Cb(this.element);if(g.zJ(this.J.zb()))this.J.pauseVideo();else{if(this.J.Le()&&this.J.zb().isCued()){var c={};!this.J.N("web_player_csi_ctt_killswitch")&&(null===(b=this.J.getVideoData())||void 0===b?0:b.X)&&(c.cttAuthInfo={token:this.J.getVideoData().X,videoId:this.J.getVideoData().videoId});zz("direct_playback",c)}this.J.Jp().timerName="direct_playback";this.J.playVideo()}this.J.V().N("miniplayer_disable_play_button_click_focus")&&this.J.Le()&&a&&"click"===
a.type&&this.element.blur()};g.w(g.YO,g.W);g.k=g.YO.prototype;g.k.onVideoDataChange=function(){iza(this);this.C&&(this.qc(this.C),this.C=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.J,"progresssync",this.RP);this.B=jza(this);XO(this);this.fC(this.J.eb().getPlayerSize())};
g.k.fC=function(a){a=void 0===a?this.J.eb().getPlayerSize():a;a=(g.pM(this.J)||this.i&&g.tM(this.J)||kza(this))&&(this.i||400<=a.width);g.pK(this,a);this.J.gb(this.element,a)};
g.k.onClick=function(a){this.J.Cb(this.element);var b=!0;this.isLinkable?b=g.bN(a,this.J):g.av(a);b&&(this.i&&5===this.J.getPresentingPlayerType()?this.J.ea("ytoprerollinternstitialnext"):this.i?this.J.nextVideo(!0):this.B?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.RP=function(){var a=jza(this);a!==this.B&&(this.B=a,XO(this))};
g.k.ya=function(){this.u&&(this.u(),this.u=null);iza(this);g.W.prototype.ya.call(this)};g.w(lza,g.W);g.w(mza,g.W);g.w(nza,g.W);g.w($O,g.W);qza.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.i=b-c-d;this.position=g.sg(a,c,c+this.i);this.C=this.position-c;this.B=this.C/this.i};g.w(rza,g.W);g.w(g.eP,g.qK);g.k=g.eP.prototype;g.k.xb=function(){g.fP(this);iP(this);wza(this,this.Ba)};
g.k.onClickCommand=function(a){if(a=null===a||void 0===a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&gP(this,b)}};
g.k.uW=function(a){this.api.Oa("innertubeCommand",this.Pe[a.id])};
g.k.Xb=function(){iP(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.TA()};
g.k.TP=function(a){if(!g.bv(a)){var b=!1;switch(g.cv(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.av(a)}};
g.k.Is=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.yS=function(){this.Is("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(tG(a)||lP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?this.Nb=!1:this.Nb=a.allowLiveDvr,g.M(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!tG(a))));Hza(this,this.api.tf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,oP(this),jP(this,this.X,this.Za);0<this.D.length;)this.D.pop().dispose();else this.TA();g.hQ(this.tooltip)}if(a){b=a.watchNextResponse;
if(b=!a.isLivePlayback&&b)b=this.api.getVideoData(),c=b.uE,b=null!=b.multiMarkersPlayerBarRenderer||null!=c&&0<c.length;if(!b||this.Sb||this.Sb)sza(this),tza(this);else{b=this.api.getVideoData();if(c=b.multiMarkersPlayerBarRenderer){var d;b=this.api.getVideoData();b.Hp=(null===(d=c.visibleOnLoad)||void 0===d?void 0:d.key)||b.Hp;d=g.q(c.markersMap);for(c=d.next();!c.done;c=d.next())c=c.value,c.key&&c.value&&(this.Fb[c.key]=c.value);null!=b.Hp&&gP(this,b.Hp)}else if(d=b.uE)vza(this,d),b.Cl=this.i,uza(this);
a.TB&&(d=a.TB,b=d.key,d.isVisible&&b&&gP(this,b),a.TB=void 0)}}iP(this)};
g.k.SP=function(a){this.S&&!g.T(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.S.cancel()};
g.k.bI=function(a){var b=!!this.Sb!==!!a;(this.Sb=a)?(this.Pa("clipstarticon",Qva()),this.Pa("clipendicon",Qva()),this.Pa("clipstarttitle",null),this.Pa("clipendtitle",null)):(this.Pa("clipstarticon",Lva()),this.Pa("clipendicon",Kva()),this.Pa("clipstarttitle","Watch full video"),this.Pa("clipendtitle","Watch full video"));oP(this);jP(this,this.X,this.Za);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.fP(this))};
g.k.wV=function(a,b,c){var d,e=g.Qm(this.element),f=hP(this).i,h=c?c.getAttribute("data-tooltip"):void 0,l=c?c.getAttribute("data-position"):void 0,m=c?c.getAttribute("data-offset-y"):void 0;m=m?Number(m):0;l&&(a=tL(this.u,Number(c.getAttribute("data-position")),0)*f+g.Qm(this.Hc).x);this.wb.x=a-e.x;this.wb.y=b-e.y;a=hP(this);e=nP(this,a);b=0;if(null===(d=this.api.getVideoData())||void 0===d?0:tG(d))(b=this.api.getProgressState().seekableEnd)&&e>b&&(e=b,c=-this.Aa,b=tL(this.u,b)*hP(this).i+c,a.position=
b),b=this.u.u;lP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.mL(this.Nb?e-this.u.i:e-b);c=a.position+this.Ae;e-=this.api.dd();if(this.api.qg()){if(1<this.i.length){f=mP(this,this.wb.x,!0);for(l=0;l<this.i.length;)g.M(this.i[l].i,"ytp-exp-chapter-hover-effect",l===f),l++;l=this.i[f].startTime;for(var n=f===this.i.length-1?Infinity:this.i[f+1].startTime,p=g.q(this.Ba),r=p.next();!r.done;r=p.next())r=r.value,g.M(r.element,"ytp-timed-marker-hover",r.timeRangeStartMillis>=
l&&r.timeRangeStartMillis<n);if(1<this.D.length)for(l=0;l<this.i.length;l++)g.M(this.D[l].element,"ytp-heatmap-hover",l===f)}l=this.tooltip.scale;m=(isNaN(m)?0:m)-45*l;f=hO(this.i,1E3*e);(f=this.i[f].title)||(m+=16*l);.6===this.tooltip.scale&&(m=f?110:126);l=hO(this.i,1E3*e);this.Wa=Bza(this,e,l)?l:Bza(this,e,l+1)?l+1:-1;g.M(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.i.length);l=!1;n=g.q(this.heatMarkersDecorations);for(p=n.next();!p.done;p=n.next())p=p.value,r=1E3*e,r>=p.visibleTimeRangeStartMillis&&
r<=p.visibleTimeRangeEndMillis&&(f=p.label,b=g.mL(p.decorationTimeMillis/1E3),l=!0);this.kc!==l&&(this.kc=l,this.api.gb(this.Wd,this.kc));g.M(this.api.getRootNode(),"ytp-progress-bar-decoration",l);l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.C-a.position&&(p=2);this.api.V().C&&(m-=10);this.D.length&&this.D[0].isValid&&(m-=14*(this.B?2:1),this.Ka||(this.Ka=!0,this.api.gb(this.Z,this.Ka)));dP(this)&&(this.ub||
0<this.I)&&(m-=this.ub?this.B?135:90:this.I);aAa(this.tooltip,c,e,b,!!h,m,f,p)}else aAa(this.tooltip,c,e,b,!!h,m);g.L(this.api.getRootNode(),"ytp-progress-bar-hover");Aza(this)};
g.k.vV=function(){g.hQ(this.tooltip);g.Nr(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ka&&(this.Ka=!1,this.api.gb(this.Z,this.Ka))};
g.k.uV=function(a,b){var c,d;if(dP(this)){if(null===(c=this.xa)||void 0===c)void 0;else{var e=this.api.getPlayerSize().width;c.i||(c.i=c.api.qg());if(c.i){for(var f;0<c.thumbnails.length;)null===(f=c.thumbnails.pop())||void 0===f?void 0:f.dispose();var h=c.u?1.5:1;f=160*h;a=90*h;var l=c.api.getCurrentTime();h=wF(c.i,160*h);l=BF(c.i,h,l);e/=f;for(h=l;h<e+l;h++){var m=new mza,n=c.i,p=h,r;if(r=0<p){r=p;var t=(t=n.levels[0])?t.Tx():-1;r=r>=t}r&&(n=(n=n.levels[0])?n.Ar():-1,r=p<=n);r?(n=yF(c.i,h,f),JO(m.element,
n,f,f,!0)):(m.element.style.width=f+"px",m.element.style.backgroundColor="black");m.element.style.height=a+"px";c.thumbnails.push(m);m.Ea(c.element);g.H(c,m)}}}null===(d=this.xa)||void 0===d?void 0:d.show()}this.K&&(this.K.dispose(),this.K=null);this.Gc=b;1<this.i.length&&-1!==this.Wa?this.api.seekTo(this.i[this.Wa].startTime/1E3,!1):this.api.seekTo(nP(this,hP(this)),!1);g.L(this.element,"ytp-drag");(this.hd=g.zJ(this.api.zb()))&&this.api.pauseVideo()};
g.k.xV=function(){var a=this,b;if(dP(this))this.I===(this.B?135:90)?(this.ub=!0,this.Z.style.bottom=this.I+(this.B?8:5)+"px"):(this.ub=!1,this.I=0,this.Z.style.removeProperty("bottom"),this.Hc.style.removeProperty("bottom"),this.fc.style.removeProperty("height"),null===(b=this.xa)||void 0===b?void 0:b.hide()),this.Z.style.removeProperty("display");else if(this.Gb=0,g.Nr(this.element,"ytp-pull-ui"),g.Nr(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0<this.I){var c=(0,g.P)();this.K=
new g.Dr(function(){var d=a.I,e=hP(a).position,f=1-Math.pow(1-((0,g.P)()-c)/200,3);e+=f*(a.X*a.C-e);if(0>f||1<f)f=1;Cza(a,(1-f)*d,e,a.X);1>f&&a.K.start()});
this.K.start()}if(g.T(this.api.zb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.Wa?this.api.seekTo(this.i[this.Wa].startTime/1E3):this.api.seekTo(nP(this,hP(this))),g.Nr(this.element,"ytp-drag"),this.hd&&!g.T(this.api.zb(),2)&&this.api.playVideo()};
g.k.yV=function(a,b){var c=this,d=!1,e=!1;a=hP(this);1===this.i.length&&!dP(this)&&3600<=rL(this.u)&&(Cza(this,this.Gc-b-10,a.position,a.B),e=!0,d=this.I>.1*(this.B?60:40),a=hP(this));g.M(this.element,"ytp-pull-ui",e);d&&g.L(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Gb!==d&&(this.Gb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.P)();this.K=new g.Dr(function(){var h=c.C*(c.Va-1);c.Aa=g.sg(c.Aa+c.Gb*((0,g.P)()-f)*.3,0,h);kP(c);c.api.seekTo(nP(c,
hP(c)),!1);0<c.Aa&&c.Aa<h&&c.K.start()});
this.K.start()}this.api.seekTo(nP(this,a),!1);dP(this)&&(this.I=g.sg(this.Gc-b-10,0,this.B?135:90),this.Hc.style.bottom=this.I+"px",this.Z.style.display="none",this.fc.style.height=this.I+"px")};
g.k.qM=function(){this.Sb||(this.Pa("clipstarticon",Jva()),this.Pa("clipendicon",Jva()),g.L(this.element,"ytp-clip-hover"))};
g.k.pM=function(){this.Sb||(this.Pa("clipstarticon",Lva()),this.Pa("clipendicon",Kva()),g.Nr(this.element,"ytp-clip-hover"))};
g.k.TA=function(){this.clipStart=0;this.clipEnd=Infinity;oP(this);jP(this,this.X,this.Za)};
g.k.IO=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.La[c]){var d=g.ch("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Db[c]=d;g.Kr(d,b.style);Dza(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.i[0].B.appendChild(d)}}else Gza(this,b)};
g.k.dX=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())Gza(this,b.value)};
g.k.ya=function(){Hza(this,!1);g.qK.prototype.ya.call(this)};g.w(sP,g.W);sP.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
sP.prototype.Qa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.pK(this,a&&400<=this.J.eb().getPlayerSize().width);this.J.gb(this.element,this.yb);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Pa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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.Pa("icon",g.Iva())}g.M(this.element,"ytp-remote-button-active",this.isActive())}};
sP.prototype.u=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Ab,b=this.element;if(a.Xf())a.Eb();else{a.initialize();a:{var c=g.q(a.Xd.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.Ad(b));a.Ad(b)}}this.J.Cb(this.element)};g.w(tP,g.W);tP.prototype.i=function(a){var b=400;this.J.V().C&&(b=200);a=this.u&&a.width>=b;g.pK(this,a);this.J.gb(this.element,a)};
tP.prototype.B=function(){if(this.Ab.yb)this.Ab.Eb();else{var a=g.NM(this.J.vb());a&&!a.loaded&&(a.kf("tracklist",{includeAsr:!0}).length||a.load());this.J.Cb(this.element);this.Ab.Ad(this.element)}};
tP.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.rM(this.J),e=c&&!!g.qM(this.J.vb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.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.w(vP,TN);vP.prototype.isLoaded=function(){var a=g.UM(this.J.vb());return void 0!==a&&a.loaded};
vP.prototype.Qa=function(){void 0!==g.UM(this.J.vb())&&3!==this.J.getPresentingPlayerType()?this.i||(this.Ab.Fc(this),this.i=!0):this.i&&(this.Ab.If(this),this.i=!1);this.setValue(this.isLoaded())};
vP.prototype.u=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.ea("annotationvisibility",a)};
vP.prototype.ya=function(){this.i&&this.Ab.If(this);TN.prototype.ya.call(this)};g.w(g.wP,g.LN);g.k=g.wP.prototype;g.k.open=function(){g.WN(this.Ab,this.B)};
g.k.Xh=function(a){Jza(this);this.options[a].element.setAttribute("aria-checked","true");this.od(this.pj(a));this.u=a};
g.k.eD=function(a,b,c){var d=this;b=new g.LN({G:"div",Ha:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ha:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.pj(a,!0));b.Ra("click",function(){d.Af(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.Cr(!1)):a&&(this.C=!0,this.Cr(!0))};
g.k.Cr=function(a){a?this.Ab.Fc(this):this.Ab.If(this)};
g.k.Af=function(a){this.ea("select",a)};
g.k.pj=function(a){return a.toString()};
g.k.UP=function(a){g.bv(a)||39!==g.cv(a)||(this.open(),g.av(a))};
g.k.ya=function(){this.C&&this.Ab.If(this);g.LN.prototype.ya.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.w(yP,g.wP);yP.prototype.Qa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.xP(this,g.pn(a,this.D)),this.tracks=g.tc(a,this.D,this),this.i.od(a.length?" ("+a.length+")":""),this.ea("size-change"),this.Xh(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
yP.prototype.Af=function(a){g.wP.prototype.Af.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Ab.qh()};
yP.prototype.D=function(a){return a.toString()};g.w(zP,TN);
zP.prototype.u=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.tM(this.J))this.i||(this.Ab.Fc(this),this.i=!0,this.B.push(this.T(this.J,"videodatachange",this.u)),this.B.push(this.T(this.J,"videoplayerreset",this.u)),this.B.push(this.T(this.J,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.J,"autonavchange",this.C)),a=this.J.getVideoData(),this.C(a.autonavState),this.J.gb(this.element,this.i));else if(this.i){this.Ab.If(this);this.i=!1;a=g.q(this.B);for(var b=a.next();!b.done;b=a.next())this.qc(b.value)}};
zP.prototype.C=function(a){this.setValue(1!==a)};
zP.prototype.D=function(a){this.J.ZA(a?2:1);this.i&&(this.J.gb(this.element,this.i),this.J.Cb(this.element))};
zP.prototype.ya=function(){this.i&&this.Ab.If(this);TN.prototype.ya.call(this)};g.w(AP,g.oN);AP.prototype.Ad=function(){g.oN.prototype.Ad.call(this);this.dialog.focus()};g.w(BP,g.LN);BP.prototype.Yb=function(a){this.u&&this.J.gb(this.element,this.i&&a)};
BP.prototype.C=function(){var a,b,c=null===(b=null===(a=this.J.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.J.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.KN(this,CP(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.B=new AP(this.J,CP(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),CP(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),CP(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.H(this,this.B);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.u=!!d)this.J.Pg(this.element,this,!0),this.J.Gm(this.element,d);this.Ab.Fc(this);this.i=!0}else!c&&this.i&&(this.Ab.If(this),this.i=!1)};
BP.prototype.onClick=function(){this.u&&this.J.Cb(this.element);this.Ab.Eb();this.B&&this.B.Ad()};g.w(DP,g.wP);g.k=DP.prototype;g.k.Eu=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.Gn(),a=this.J.getAvailableQualityLevels(),g.pxa(this.J)&&g.qxa(this.J)&&a.unshift("missing-qualities"),rxa(this.J)&&a.unshift("inline-survey"),g.xP(this,a),a.length)){this.cI();this.enable(!0);return}this.enable(!1)};
g.k.cI=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.i=this.J.getPlaybackQuality(),this.Xh(a),"auto"===a&&this.od(this.pj(a)))};
g.k.Af=function(a){"missing-qualities"!==a&&(g.wP.prototype.Af.call(this,a),this.J.setPlaybackQuality(a),this.Ab.Eb(),this.Eu())};
g.k.open=function(){g.wP.prototype.open.call(this);this.J.Cb(this.element)};
g.k.eD=function(a,b,c){var d=this;if("inline-survey"!==a)return g.wP.prototype.eD.call(this,a,b,c);a=[{G:"span",va:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Qx:c.Qx},f=e.next())c.Qx=f.value,f=new g.W({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.Qx?g.xK():Nva()],W:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.Qx,m=g.uM(d.J.app);m&&(m.Ca("iqsr",l?"0":"1"),m.getVideoData().uH=!0);d.Ab.Eb();d.Eu()}}(c)),a.push(f);
return new g.LN({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ha:["ytp-menuitem-label"],U:a}]},b)};
g.k.pj=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.V().I},va:"Missing options?"};if("inline-survey"===a)return"";var c=[Kza(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(Kza(this,this.i,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(EP,g.W);g.k=EP.prototype;g.k.init=function(){this.Iq(this.i);this.Pa("minvalue",this.minimumValue);this.Pa("maxvalue",this.maximumValue)};
g.k.XP=function(a){if(!g.bv(a)){switch(g.cv(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Iq(this.i+b);g.av(a)}};
g.k.VP=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Iq(b);g.av(a)};
g.k.WP=function(a){a=(a-g.Qm(this.u).x)/this.K*this.range+this.minimumValue;this.Iq(a)};
g.k.Iq=function(a,b){b=void 0===b?"":b;a=g.sg(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Pa("valuenow",a);this.Pa("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.i=a};
g.k.focus=function(){this.xa.focus()};g.w(GP,EP);GP.prototype.X=function(){this.J.setPlaybackRate(this.i,!0)};
GP.prototype.Iq=function(a){EP.prototype.Iq.call(this,a,HP(this,a).toString());this.B&&(FP(this),this.Aa())};
GP.prototype.Ba=function(){var a=this.J.getPlaybackRate();HP(this,this.i)!==a&&(this.Iq(a),FP(this))};g.w(IP,g.qK);IP.prototype.focus=function(){this.i.focus()};g.w(Lza,ON);g.w(JP,g.wP);g.k=JP.prototype;g.k.pj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Qa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);Oza(this)};
g.k.Cr=function(a){g.wP.prototype.Cr.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),Oza(this),Mza(this,this.J.getPlaybackRate())):(this.qc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||Nza(this,b);Mza(this,a)};
g.k.Af=function(a){g.wP.prototype.Af.call(this,a);a===this.i?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Ab.qh()};g.w(LP,g.wP);g.k=LP.prototype;g.k.Xh=function(a){g.wP.prototype.Xh.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.pj=function(a){return this.getOption(a).text||""};
g.k.Af=function(a){g.wP.prototype.Af.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(MP,g.PN);MP.prototype.zf=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.jo[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Xh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
MP.prototype.lh=function(a,b){this.ea("settingChange",a,b)};g.w(NP,g.wP);NP.prototype.getKey=function(a){return a.languageCode};
NP.prototype.pj=function(a){return this.languages[a].languageName||""};
NP.prototype.Af=function(a){this.ea("select",a);this.J.Cb(this.element);g.$N(this.Ab)};g.w(OP,g.wP);g.k=OP.prototype;g.k.getKey=function(a){return g.Se(a)?"__off__":a.displayName};
g.k.pj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Af=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.ZL(this.J.V(),this.J.getVideoData()),g.yL(a)):(this.J.Cb(this.element),this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.wP.prototype.Af.call(this,a),this.Ab.qh())};
g.k.Qa=function(){var a,b=this.J.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.J.getVideoData();c=c&&c.bp;var d=!(null===(a=this.J.getVideoData())||void 0===a||!g.qG(a)),e={};if(b||c){if(b){var f=this.J.getOption("captions","track");e=this.J.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.tc(e,this.getKey,this);d=g.pn(e,this.getKey);if(h.length&&!g.Se(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
l.languageName;l=h.findIndex(function(n){return n.languageName===m});
raa(h,l)}Qza(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.xP(this,d);this.Xh(h);f&&f.translationLanguage?this.i.Xh(this.i.getKey(f.translationLanguage)):Jza(this.i);b&&this.D.zf(this.J.getSubtitlesUserSettings());this.K.od(e&&e.length?" ("+e.length+")":"");this.ea("size-change");this.J.gb(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.YP=function(a){var b=this.J.getOption("captions","track");b=g.We(b);b.translationLanguage=this.i.languages[a];this.J.setOption("captions","track",b)};
g.k.lh=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}Rza(this,!0);this.I.start();this.D.zf(this.J.getSubtitlesUserSettings())};
g.k.cW=function(a){a||g.Hr(this.I)};
g.k.ya=function(){g.Hr(this.I);g.wP.prototype.ya.call(this)};g.w(PP,g.YN);g.k=PP.prototype;g.k.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.TE=new BP(this.J,this);g.H(this,this.TE);var a=new DP(this.J,this);g.H(this,a);a=new OP(this.J,this);g.H(this,a);a=new vP(this.J,this);g.H(this,a);this.J.V().Zb&&(a=new JP(this.J,this),g.H(this,a));this.J.V().Fb&&!this.J.V().N("web_player_move_autonav_toggle")&&(a=new zP(this.J,this),g.H(this,a));a=new yP(this.J,this);g.H(this,a);uP(this.settingsButton,this.Xd.items.length)}};
g.k.Fc=function(a){this.initialize();this.Xd.Fc(a);uP(this.settingsButton,this.Xd.items.length)};
g.k.If=function(a){this.yb&&1>=this.Xd.items.length&&this.hide();this.Xd.If(a);uP(this.settingsButton,this.Xd.items.length)};
g.k.Ad=function(a){this.initialize();0<this.Xd.items.length&&g.YN.prototype.Ad.call(this,a)};
g.k.show=function(){g.YN.prototype.show.call(this);g.L(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.YN.prototype.hide.call(this);g.Nr(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Ge=function(a){var b;this.J.gb(this.element,a);null===(b=this.TE)||void 0===b?void 0:b.Yb(a)};g.w(QP,g.W);QP.prototype.onClick=function(){var a=this.J.app;a.Ta.Oa("SIZE_CLICKED",!a.JE);this.J.Cb(this.element)};
QP.prototype.Qa=function(){g.pK(this,this.J.HE()&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.yb){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Pb:!0,W:{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.Pa("icon",b):aza(this.transition,this.element,b);this.isWidescreen=a;b=fN(this.J,"Default view","t");var c=fN(this.J,"Theater mode","t");this.Pa("title",a?b:c);dO(this.tooltip)}}this.J.gb(this.element,this.yb)};g.w(g.RP,g.W);g.RP.prototype.onClick=function(){if(null!=g.NM(this.J.vb())&&(this.J.toggleSubtitles(),this.J.Cb(this.element),!this.isEnabled())){var a=!1,b=g.Nv(g.Mv.getInstance(),65);g.NE(this.J.V())&&null!=b&&(a=!b);a&&this.J.V().N("web_player_nitrate_promo_tooltip")&&this.J.ea("showpromotooltip",this.element)}};
g.RP.prototype.i=function(a){var b,c;null===(c=null===(b=g.iM(this.J))||void 0===b?void 0:b.Ln())||void 0===c?void 0:c.Ad(a)};
g.RP.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.RP.prototype.Qa=function(){var a,b,c=null!=g.NM(this.J.vb()),d=300;this.J.V().C&&(d=480);if(this.J.V().N("web_player_unavailable_subtitles_button")){c?(null===(a=g.Sg("ytp-subtitles-button-icon"))||void 0===a?void 0:a.removeAttribute("fill-opacity"),this.Pa("title",fN(this.J,"Subtitles/closed captions","c"))):(null===(b=g.Sg("ytp-subtitles-button-icon"))||void 0===b?void 0:b.setAttribute("fill-opacity","0.3"),this.Pa("title","Subtitles/closed captions unavailable"));var e=!0}else this.Pa("title",
fN(this.J,"Subtitles/closed captions","c")),e=c;dO(this.tooltip);e=e&&this.J.eb().getPlayerSize().width>=d;g.pK(this,e);this.J.gb(this.element,e);c&&this.Pa("pressed",this.isEnabled())};g.w(g.SP,g.W);g.k=g.SP.prototype;
g.k.Xb=function(){var a=this.api.eb().getPlayerSize().width,b=this.K;this.api.V().C&&(b=400);b=a>=b&&(!UP(this)||!g.T(this.api.zb(),64));g.pK(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=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);TP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Sb.startTimeMs/1E3);
c=g.mL(c);this.B!==c&&(this.Pa("currenttime",c),this.B=c);b=TP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?g.mL((this.Sb.endTimeMs-this.Sb.startTimeMs)/1E3):g.mL(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Pa("duration",b),this.C=b)}a=a.isAtLiveHead;!UP(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.Xb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.od(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.DN(this.tooltip,this.liveBadge.element)));this.gC(this.api.getLoopRange())};
g.k.gC=function(a){var b=!!this.Sb!==!!a;this.Sb=a;b&&Tza(this)};
g.k.LW=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Xb();Tza(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.rb;this.u=tG(a);this.isPremiere=a.isPremiere;g.M(this.element,"ytp-live",UP(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ya=function(){this.i&&this.i();g.W.prototype.ya.call(this)};g.w(XP,g.W);g.k=XP.prototype;g.k.wm=function(){var a=this.i.Te();this.C!==a&&(this.C=a,WP(this,this.api.getVolume(),this.api.isMuted()))};
g.k.dI=function(a){g.pK(this,350<=a.width)};
g.k.bQ=function(a){if(!g.bv(a)){var b=g.cv(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.sg(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.av(a))}};
g.k.ZP=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.sg(b/10,-10,10));g.av(a)};
g.k.hW=function(){VP(this,this.u,!0,this.B,this.i.Bi());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.aQ=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Qm(this.S).x;this.api.setVolume(100*g.sg((a-c/2)/(b-c),0,1))};
g.k.gW=function(){VP(this,this.u,!1,this.B,this.i.Bi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.onVolumeChange=function(a){WP(this,a.volume,a.muted)};
g.k.LJ=function(){VP(this,this.u,this.isDragging,this.B,this.i.Bi())};
g.k.ya=function(){g.W.prototype.ya.call(this);g.Nr(this.K,"ytp-volume-slider-active")};g.w(g.YP,g.W);g.YP.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.pK(this,this.visible);this.api.gb(this.element,this.visible&&this.oa);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Pa("url",a))};
g.YP.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.nL(a),!1,!0,!0);if(g.kE(this.api.V())||g.vE(this.api.V()))b=g.Ui(b,g.$L("emb_logo"));g.cN(b,this.api,a);this.api.Cb(this.element)};
g.YP.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Pb:!0,L:"ytp-svg-fill",W:{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.vE(this.api.V())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{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.Pa("logoSvg",a)};
g.YP.prototype.Yb=function(a){g.W.prototype.Yb.call(this,a);this.api.gb(this.element,this.visible&&a)};g.w($P,g.JC);g.k=$P.prototype;g.k.td=function(){this.Hc.Xb();this.Gg.Xb()};
g.k.Gj=function(){var a,b;this.hC();this.yd.u?(this.td(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.hQ(this.Hc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())};
g.k.qq=function(){this.td();this.Md.start()};
g.k.hC=function(){var a=!this.J.V().isMobile&&300>g.Iza(this.Hc)&&this.J.zb().Ec()&&!!window.requestAnimationFrame,b=!a;this.yd.u||(a=b=!1);b?this.I||(this.I=this.T(this.J,"progresssync",this.td)):this.I&&(this.qc(this.I),this.I=null);a?this.Md.isActive()||this.Md.start():this.Md.stop()};
g.k.xb=function(){var a=this.u.Te(),b=this.J.eb().getPlayerSize(),c=aQ(this),d=Math.max(b.width-2*c,100);if(this.Ka!==b.width||this.Ja!==a){this.Ka=b.width;this.Ja=a;var e=Wza(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.rP(this.Hc,c,e,a);this.u.jc().iC=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-bQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Zx=e;c.Ut();this.hC();!this.J.V().N("html5_player_bottom_linear_gradient")&&this.J.V().N("html5_player_dynamic_bottom_gradient")&&
g.GO(this.La,b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.xa.style.background=a.D?a.Wa:"";g.pK(this.X,a.vC)};g.w(cQ,AO);g.k=cQ.prototype;g.k.qF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.k.rF=function(){this.B=!0;this.S.hide()};
g.k.onVideoDataChange=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,dQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=ZO(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.Ty(e,d,{priority:9,namespace:"suggested_action_button_visible"}));this.J.Ed(b)}this.onClickCommand=a.tapCommand;Vya(this);
zO(this);this.Vh()}};
g.k.tx=function(){return!this.B&&this.enabled&&(this.u||this.i)};
g.k.Ge=function(a){this.B||((this.u=a)?yO(this):(dQ(this),this.Z.start()),this.Vh())};
g.k.ya=function(){dQ(this);AO.prototype.ya.call(this)};var Z2={},eQ=(Z2.CHANNEL_NAME="ytp-title-channel-name",Z2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Z2.LINK="ytp-title-link",Z2.SESSIONLINK="yt-uix-sessionlink",Z2.SUBTEXT="ytp-title-subtext",Z2.TEXT="ytp-title-text",Z2.TITLE="ytp-title",Z2);g.w(fQ,g.W);fQ.prototype.onClick=function(a){this.api.Cb(this.element);var b=this.api.getVideoUrl(!g.nL(a),!1,!0);g.kE(this.api.V())&&(b=g.Ui(b,g.$L("emb_title")));g.cN(b,this.api,a)};
fQ.prototype.Qa=function(){var a=this.api.getVideoData(),b=this.api.V();this.Pa("title",a.title);Xza(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.dc&&c.Qh?(this.Pa("channelLink",c.dc),this.Pa("channelName",c.author),this.Pa("channelTitleFocusable","0")):Xza(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Tg;g.M(this.link,eQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.D&&b.pfpChazalUi||b.kc?this.i&&(this.Pa("url",null),this.qc(this.i),
this.i=null):(this.Pa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.T(this.link,"click",this.onClick)))};g.w(g.gQ,g.W);g.k=g.gQ.prototype;g.k.AM=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,Zza(this,a))};
g.k.gT=function(){Cra(this.i,this.B,160*this.scale)};
g.k.bk=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.C);bAa(this);break;case 3:bAa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.AM,this),this.i=null),this.api.removeEventListener("videoready",this.Z),this.xa.stop()}this.type=null;this.K&&this.D.hide()};
g.k.qj=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.ih(arguments[a],this.u)&&this.bk()};
g.k.ya=function(){null!=this.type&&this.bk();this.i&&this.i.dispose();g.W.prototype.ya.call(this)};g.w(g.iQ,g.W);g.k=g.iQ.prototype;g.k.by=function(){var a=this.J.getPlayerSize(),b=this.J.V(),c=this.J.getVideoData(),d=g.kE(b)&&g.pM(this.J)&&g.T(this.J.zb(),128);this.visible=b.Xj&&240<=a.width&&!c.isAd()&&c.Of&&!d&&!(c.D&&b.pfpChazalUi);g.pK(this,this.visible);this.icon&&fAa(this,this.icon);this.J.gb(this.element,this.visible&&this.oa)};
g.k.eI=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.J.Cb(this.element);var b=this.J.V(),c=this.eI();b.authUser?cAa(this):this.J.iB()?this.J.requestStorageAccess(function(){g.Wv("embedsItpWatchLaterResult",{accepted:!0});zv();dAa(a,c)},function(){g.Wv("embedsItpWatchLaterResult",{accepted:!1});
eAa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):dAa(this,c)};
g.k.cQ=function(){this.isRequestPending=this.i=!1;this.Qa(2)};
g.k.Qa=function(a,b){var c=this.J.V();fAa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.AH("Added as $USER_NAME",a):g.AH("Watch later as $USER_NAME",a),image:SE(c)})):this.update({title:"Watch later",image:null});dO(this.tooltip)};
g.k.Yb=function(a){g.W.prototype.Yb.call(this,a);this.J.gb(this.element,this.visible&&a)};g.w(jQ,g.sN);g.k=jQ.prototype;g.k.jc=function(){return this.tooltip};
g.k.IK=function(){return this.dg};
g.k.xn=function(a,b){b?this.Ak=a:this.Ak=null;this.aj()};
g.k.rs=function(a,b){if(b)this.qo.push(a);else for(b=this.qo.length;0<=b;b--)if(this.qo[b]===a){this.qo.splice(b,1);break}YM(this.yd,64,0<this.qo.length)};
g.k.Mo=function(){this.api.Fh()&&this.api.wk();return!!this.Ak||gAa(this)||g.sN.prototype.Mo.call(this)};
g.k.aj=function(){var a=!this.Mo(),b=a&&this.api.Fh()&&!g.T(this.api.zb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi),c=this.Xp&&g.pM(this.api)&&g.T(this.api.zb(),128);a||c?(this.UG.show(),this.VG.show()):(this.UG.hide(),this.VG.hide(),this.tooltip.qj(this.Th.element));b?this.ri.Ad():this.ri.Eb();this.dg&&Vza(this.dg,!a);g.sN.prototype.aj.call(this)};
g.k.zq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.an(a),h=d||this.dg&&g.ih(this.dg.i.element,b),l=d=null;null!=c&&h||(d=g.an(b),l=g.Zm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.dg,d=aQ(b),l=Wza(b),h=this.api.eb().getPlayerSize().height,c=g.sg(c,d,d+l-f.width),f=h-bQ(b)-f.height):g.ih(this.Th.element,b)?(b=this.api.eb().getPlayerSize().width,c=g.sg(c,12,b-f.width-12),f=this.Te()?this.nD:this.mD,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Xp&&(f-=this.Te()?26:18)):(b=this.api.eb().getPlayerSize(),c=g.sg(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.Gj=function(a){a&&(this.tooltip.qj(this.Th.element),this.dg&&this.tooltip.qj(this.dg.i.element));this.Mz&&(g.M(this.contextMenu.element,"ytp-autohide",a),g.M(this.contextMenu.element,"ytp-autohide-active",!0));g.sN.prototype.Gj.call(this,a)};
g.k.pF=function(){g.sN.prototype.pF.call(this);this.Mz&&(g.M(this.contextMenu.element,"ytp-autohide-active",!1),this.Mz&&(this.contextMenu.hide(),this.Zf&&this.Zf.hide()))};
g.k.tj=function(a,b){var c=this.api.eb().getPlayerSize();c=new g.Dm(0,0,c.width,c.height);if(a||this.yd.u&&!this.Mo()){if(this.api.V().Uj||b)a=this.Te()?this.nD:this.mD,c.top+=a,c.height-=a;this.dg&&(c.height-=bQ(this.dg))}return c};
g.k.wm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.Zy.element,b),b.parentElement.insertBefore(this.Yy.element,b.nextSibling))):g.vt(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Zy.detach(),this.Yy.detach());this.xb();this.Nm()};
g.k.Te=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.C||!1};
g.k.showControls=function(a){this.Ly=!a;this.aj()};
g.k.xb=function(){var a=this.Te();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.M(this.contextMenu.element,"ytp-big-mode",a);this.aj();if(this.vf()&&this.Zf)this.Ah&&oO(this.Zf,this.Ah),this.shareButton&&oO(this.Zf,this.shareButton),this.Og&&oO(this.Zf,this.Og);else{if(this.Zf){a=this.Zf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Ah&&!g.ih(this.Hg.element,this.Ah.element)&&this.Ah.Ea(this.Hg.element);this.shareButton&&!g.ih(this.Hg.element,
this.shareButton.element)&&this.shareButton.Ea(this.Hg.element);this.Og&&!g.ih(this.Hg.element,this.Og.element)&&this.Og.Ea(this.Hg.element)}this.Nm();g.sN.prototype.xb.call(this)};
g.k.aE=function(){if(gAa(this)&&!g.pM(this.api))return!1;var a=this.api.getVideoData();return!g.kE(this.api.V())||2===this.api.getPresentingPlayerType()||!this.jg||((a=this.jg||a.jg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.sN.prototype.aE.call(this):!1};
g.k.Nm=function(){g.sN.prototype.Nm.call(this);this.api.gb(this.title.element,!!this.Pk);this.qt&&this.qt.Yb(!!this.Pk);this.channelAvatar.Yb(!!this.Pk);this.overflowButton&&this.overflowButton.Yb(this.vf()&&!!this.Pk);this.shareButton&&this.shareButton.Yb(!this.vf()&&!!this.Pk);this.Ah&&this.Ah.Yb(!this.vf()&&!!this.Pk);this.Og&&this.Og.Yb(!this.vf()&&!!this.Pk);if(!this.Pk){this.tooltip.qj(this.Th.element);for(var a=0;a<this.Gx.length;a++){var b=this.Gx[a];b.Xf()&&b.Eb()}}};
g.k.Ub=function(a){this.dg&&Vza(this.dg,this.Mo());this.aj();g.sN.prototype.Ub.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.lm?this.lm.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.lm?this.lm.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Dk=function(){return this.contextMenu.yb?(this.contextMenu.Eb(),!0):this.qo.length?(this.qo[this.qo.length-1].Eb(),!0):this.Ak?(this.Ak.Eb(),!0):g.sN.prototype.Dk.call(this)};
g.k.fB=function(a,b){this.xG=b;this.rs(a,b);this.MO()};
g.k.MO=function(){var a=this.xG||this.contextMenu.Xf();this.bD!==a&&(this.bD=a,this.api.Oa("onAutonavPauseRequest",this.bD))};
g.k.fS=function(){kQ(this,this.api.getRootNode(),!0).focus()};
g.k.gS=function(){kQ(this,this.api.getRootNode(),!1).focus()};
g.k.Ln=function(){return this.dg&&this.dg.settingsMenu};
g.k.jl=function(){this.yd.jl()};
g.k.Ez=function(){this.wc.hide()};
g.k.Kq=function(a){this.wc.Kq(!g.zJ(a))};
g.k.zt=function(a,b,c,d){this.uv.zt(a,b,c,d)};
g.k.FN=function(a,b){this.uv.WA(a,b)};
g.k.wU=function(){hAa(this,!0)};
g.k.XU=function(a){hAa(this,!1,a)};g.w(g.lQ,g.FM);g.lQ.prototype.Si=function(){return!1};
g.lQ.prototype.create=function(){var a=this.player.V();g.tE(a)&&a.isMobile?this.chrome=new g.sN(this.player):this.chrome=new jQ(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Pd("ux")};
g.lQ.prototype.Ev=function(){return this.chrome};var UQa={NZ:"captionTrack",B5:"ytMainChannelEntity",C5:"ytMainDownloadedVideoEntity",D5:"ytMainVideoEntity",p8:"offlineOrchestrationActionWrapperEntity",y8:"offlineVideoPolicy",z8:"offlineVideoStreams",k9:"playbackData",Iaa:"transfer",e$:"orchestrationWebSamplingEntity"};mQ.prototype.getState=function(){return this.store.getState()};
mQ.prototype.dispatch=function(a){return this.store.dispatch(a)};
mQ.prototype.subscribe=function(a){return this.store.subscribe(a)};
mQ.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
mQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var lAa={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,liveChatPollStateEntity:217,logoEntity:245,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,transfer:120,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,
ytMainVideoEntity:151},kAa={},VQa=g.q(Object.entries(lAa)),$2=VQa.next();!$2.done;$2=VQa.next()){var WQa=g.q($2.value),XQa=WQa.next().value,YQa=WQa.next().value,ZQa=XQa,$Qa=YQa;$Qa&&(kAa[$Qa]=ZQa)};var nAa=!1,GQ,HQ,IQ,JQ,KQ;LQ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;d<e;)pAa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(pAa(this),this.i=0;d<b;)a[d++]^=c[this.i++];return a};var qAa=!1;(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})();NQ.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.i){d=MQ();if(!d)return f.return(c.i(a,b));ua(f,3);return g.x(f,c.u(a,b,d),5)}if(3!=f.i)return f.return(f.u);e=wa(f);g.cy(e);qAa=!0;return f.return(c.i(a,b))})};
NQ.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.i){case 1:if(d.D){l.fb(2);break}e=d;return g.x(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.x(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
NQ.prototype.i=function(a,b){this.B||(this.B=new LQ(this.C));oAa(this.B,b);return this.B.encrypt(a)};
NQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
OQ.prototype.encrypt=function(a,b){this.i||(this.i=new LQ(this.u));oAa(this.i,b);return this.i.encrypt(a)};
OQ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};PQ.prototype.reset=function(){tAa(this);this.update(this.B)};
PQ.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,sAa(this,this.I,0));for(;b+64<=c;b+=64)sAa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var rAa=[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];var a3={},vAa=(a3.INVALID_ENCODER_VERSION="Invalid encoder version",a3.KEY_CREATION_FAILED="Failed to create encoder key",a3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",a3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",a3.WRONG_DATA_TYPE="Encoder cannot process the data type",a3);g.w(QQ,g.aw);g.w(SQ,AAa);SQ.prototype.B=function(a,b){b=RQ(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.i.encrypt(a,b)};
SQ.prototype.u=function(a,b){if(!(a instanceof Uint8Array))throw wAa(1);var c=new TextDecoder;b=RQ(b);a=this.i.decrypt(a,b);return JSON.parse(c.decode(a))};g.w(TQ,AAa);TQ.prototype.B=function(a){return a};
TQ.prototype.u=function(a){if(a instanceof Uint8Array)throw wAa(0);return a};var EAa={captionTrack:dt,channelHandle:Es,commerceCartListEntity:kt,downloadQualityPickerEntity:Xs,fakeChannel:Ns,fakePlaylist:Os,fakePlaylistEntryCollection:Ps,fakeVideo:Rs,fakeVideoDescription:Ss,liveChatPollStateEntity:Us,logoEntity:Ts,offlineOrchestrationActionWrapperEntity:et,offlineVideoPolicy:ft,offlineVideoStreams:gt,offlineabilityEntity:Ys,orchestrationWebSamplingEntity:Zs,pinnedProductEntity:ct,playbackData:ht,transfer:jt,ytMainChannelEntity:at,ytMainDownloadedVideoEntity:$s,ytMainVideoEntity:bt};var VQ;g.w(cR,g.E);cR.prototype.B=function(a){RAa(this,a.data)};
cR.prototype.ya=function(){this.channel.close()};
var iR,UAa=void 0;aBa.prototype.request=function(a,b,c){b=void 0===b?{}:b;return this.locks.request(a,b,function(d){return c(d)})};fBa.prototype.Ge=function(){this.i&&lR(this)};g.w(mR,g.E);mR.prototype.i=function(a){this.api.Oa("onOfflineOperationFailure",a.data)};
mR.prototype.ya=function(){var a;null===(a=this.channel)||void 0===a?void 0:a.close()};var sR=g.B.caches,rR,tR;oR.prototype.open=function(a){return sR.open(qR(a))};
oR.prototype.has=function(a){return sR.has(qR(a))};
oR.prototype.delete=function(a){return sR.delete(qR(a))};
oR.prototype.match=function(a,b){var c=this,d,e,f,h,l,m;return g.A(function(n){switch(n.i){case 1:return g.x(n,c.keys(),2);case 2:d=n.u,e=g.q(d),f=e.next();case 3:if(f.done){n.fb(5);break}h=f.value;return g.x(n,c.open(h),6);case 6:return l=n.u,g.x(n,l.match(a,b),7);case 7:if(m=n.u)return n.return(m);f=e.next();n.fb(3);break;case 5:return n.return()}})};
g.w(pR,oR);pR.prototype.keys=function(){var a,b,c,d,e,f,h,l,m;return g.A(function(n){if(1==n.i)return a=[],b=bw("CacheStorage keys"),g.x(n,sR.keys(),2);c=n.u;d=g.q(c);for(e=d.next();!e.done;e=d.next()){f=e.value;var p=f.indexOf(":");h=-1===p?{zA:f}:{zA:f.substring(0,p),datasyncId:f.substring(p+1)};l=h.zA;m=h.datasyncId;m===b&&a.push(l)}return n.return(a)})};Object.keys(UQa).map(function(a){return UQa[a]});
var sBa="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var iAa=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{sfa(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],v=(0,c[t])(u,m);if("undefined"===typeof v)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]=v;n=n||v!==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,l,m=null===(l=e.options)||void 0===l?void 0:l.persistenceOption;if(m&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==m&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==m)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.aw("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var n=Ie(e.payload);return EQ(d,n,
e.entityKey,e.payload[n])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var p=BQ(e).entityType;n=EQ(d,p,e,void 0)}catch(r){if(r instanceof Error)g.by(new g.aw("Failed to deserialize entity key",{entityKey:e,originalMessage:r.message})),n=d;else throw r;}return n}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.by(new g.aw("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;n=Ie(e.payload);return mAa(d,n,e.entityKey,e.payload[n],null===(h=null===
(f=e.fieldMask)||void 0===f?void 0:f.mergeOptions)||void 0===h?void 0:h.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return EQ(a,c.entityType,c.key,c.XR);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 EQ(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,mAa(a,c.entityType,c.key,c.XR,c.xda);default:return a}}}),WAa=new mQ;g.w(DR,BR);DR.prototype.B=function(a){return xR(a)?xBa(this,a):yR(a)?yBa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.w(FR,BR);FR.prototype.B=function(a){return xR(a)?BBa(this,a):yR(a)?CBa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
FR.prototype.handleUpdate=function(a){var b=this,c,d,e;return g.A(function(f){switch(f.i){case 1:return c=wR(a),g.x(f,gR(b.i,a.entityKey,"transfer"),2);case 2:d=f.u;if(!d||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==d.transferState)return f.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c));ua(f,3);d.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.x(f,fR(b.i,d,"transfer"),5);case 5:e=BQ(d.key).entityId;vR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_PLAYER_RESPONSE_REFRESH",
statusType:"ADDED_TO_QUEUE"},{videoId:e,Lm:d});va(f,4);break;case 3:return wa(f),f.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",c,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return f.return(new CR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",c))}})};g.w(GR,BR);GR.prototype.B=function(a){return xR(a)?HBa(this,a):yR(a)?IBa(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?JBa(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var LBa=[10];var aCa=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"];var JR;TBa.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.w(MR,g.E);MR.prototype.ya=function(){this.K&&this.K();g.E.prototype.ya.call(this)};
MR.prototype.createAction=function(a,b){var c=BQ(a.entityKey).entityType,d=Px();return new HR(c,d,a,b.actionId,b.rootActionId)};
MR.prototype.Z=function(a){var b=this,c,d,e,f,h,l,m,n,p;return g.A(function(r){if(1==r.i){if(b.isDisposed())return r.return();d=null!==(c=a.offlineOrchestrationActionWrapperEntity)&&void 0!==c?c:new Set;e=[];f=g.q(d);for(h=f.next();!h.done;h=f.next())l=h.value,m=BQ(l),n=m.entityId,VBa(b.i,n)||e.push(l);return g.x(r,cCa(b,e),2)}p=r.u;return g.x(r,OR(b,p),0)})};
MR.prototype.retry=function(){var a=this;return g.A(function(b){return g.x(b,dCa(a),0)})};jCa.prototype.info=function(){};g.k=kCa.prototype;
g.k.FU=function(a){var b=this,c,d,e;return g.A(function(f){if(!g.T(a.state,128))return f.fb(0);var h=null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,l=null===(d=a.state.getData())||void 0===d?void 0:d.aG;e="net.retryexhausted"===h&&(null===l||void 0===l?0:l.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null===h||void 0===h?0:h.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.x(f,b.rq(b.player.getVideoData().videoId,e),
0)})};
g.k.rq=function(a,b){var c=this;return g.A(function(d){if(1==d.i){if(c.u)return d.return();c.u=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(QR(c,a,!1,!0),d.fb(0)):g.x(d,PR(c,a),3)}jF(a,4);return g.x(d,c.i.rq(b),0)})};
g.k.Zs=function(a){2===a.status?(a.status!==this.B&&(VR(this.i),jF(a.videoId,2)),a.Uw&&FCa(this.i,a.videoId,a.Uw)):4===a.status?(PR(this,a.videoId),this.rq(a.videoId,a.Gz?"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&ECa(this.i);this.B=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})};
g.k.CF=function(){var a=this,b;return g.A(function(c){if(1==c.i){if(a.u)return c.return();a.u=!0;b=a.player.getVideoData().videoId;return g.x(c,PR(a,b),2)}return g.x(c,a.i.CF(),0)})};
g.k.N=function(a){return this.api.V().N(a)};g.w(RR,g.E);RR.prototype.ya=function(){this.u&&this.u();g.E.prototype.ya.call(this)};
RR.prototype.B=function(a){var b=this,c,d,e,f,h,l,m,n;return g.A(function(p){d=null!==(c=a.transfer)&&void 0!==c?c:new Set;e=[];f=g.q(d);for(h=f.next();!h.done;h=f.next())l=h.value,m=BQ(l),n=m.entityId,e.push(n);return 0===e.length?p.return():g.x(p,rCa(b,e),0)})};g.w(SR,g.E);g.k=SR.prototype;g.k.ya=function(){this.K&&this.K();this.S.dispose();this.C.dispose();this.oa&&bf(this.D.B,this.oa);this.Z&&bf(this.D.B,this.Z);g.E.prototype.ya.call(this)};
g.k.SW=function(a){this.i&&this.B&&QR(this.I,this.B,void 0===a?!1:a);this.C.stop()};
g.k.mX=function(){this.i?xCa(this,this.i):TR(this)};
g.k.dQ=function(a){var b=this,c;return g.A(function(d){switch(d.i){case 1:if(!b.i){d.fb(2);break}if("TRANSFER_STATE_COMPLETE"===b.i.transferState||"TRANSFER_STATE_FAILED"===b.i.transferState||!a.transfer||!a.transfer.has(b.i.key)){d.fb(3);break}c=b;return g.x(d,gR(b.u,b.i.key,"transfer"),4);case 4:c.i=d.u;if(b.i){d.fb(3);break}return g.x(d,yCa(b),3);case 3:if(b.i)return d.return();case 2:return g.x(d,TR(b),0)}})};
g.k.rq=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.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 h=!1;break a;default:h=!0}return h&&GCa(c)?g.x(f,ZR(c,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),5):g.x(f,HCa(c,a),3)}3!=f.i&&(d=BQ(c.i.key).entityId,vR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_RETRY",statusType:"ADDED_TO_QUEUE"},
{videoId:d,Lm:c.i}));UR(c);e=TR(c,!0);b&&b(e);g.ta(f)})};
g.k.CF=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){if(1==m.i)return GCa(b)?g.x(m,ZR(b,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.x(m,HCa(b,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=m.i)return c=BQ(b.i.key).entityId,vR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:c,Lm:b.i}),d=NBa(),d.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},e=CQ(c,"playbackData"),f={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
entityKey:e,actionMetadata:d},h=IR(new HR("playbackData",c,f)),g.x(m,fR(b.u,h,"offlineOrchestrationActionWrapperEntity"),3);UR(b);l=TR(b,!0);a&&a(l);g.ta(m)})};
var b3={},$R=(b3.TRANSFER_STATE_TRANSFERRING=1,b3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,b3);g.k=LCa.prototype;g.k.isOrchestrationLeader=function(){return this.u.i};
g.k.refreshAllVideos=function(){var a=this,b,c;return g.A(function(d){if(1==d.i){if(!a.K.Ee())return d.return(RCa());b=a;c=b.Ww;return g.x(d,QCa(),2)}return d.return(c.call(b,d.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})};
g.k.deleteVideos=function(a){var b=this;return g.A(function(c){return c.return(b.Ww(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.k.deleteAllVideos=function(){var a=this;return g.A(function(b){return b.return(a.Ww(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})};
g.k.Ww=function(a,b,c){var d=this,e,f,h;return g.A(function(l){if(1==l.i)return g.x(l,jR(),2);e=l.u;if(!e||!d.Y.N("woffle_orchestration"))return l.return([]);f=a.map(function(m){var n=CQ(m,"ytMainDownloadedVideoEntity");n={actionType:b,entityKey:n,actionMetadata:Object.assign(Object.assign({},NBa()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(n.actionMetadata.priority=0);m=new HR("ytMainDownloadedVideoEntity",m,n);return IR(m)});
h=SAa(e,f);gBa(d.u);return l.return(h)})};var bS=[],dKa=!1;g.oW=yf(function(){var a="";try{var b=g.ch("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.cS,pJ);g.k=g.cS.prototype;g.k.isView=function(){return!0};
g.k.hG=function(){var a=this.ra.getCurrentTime();if(a<this.start)try{var b=this.ra.Uf(),c=UC(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Qp=function(){return WC(this.ra.Qp(),this.start,this.end)};
g.k.Uf=function(){return WC(this.ra.Uf(),this.start,this.end)};
g.k.Rv=function(){return WC(this.ra.Rv(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.ra.getCurrentTime()-this.start};
g.k.Xx=function(a){this.ra.Xx(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.ra.getDuration()-this.start};
g.k.play=function(){if(this.hG()){this.ra.getCurrentTime();try{this.ra.Xx(this.start)}catch(a){}}return this.ra.play()};
g.k.Kb=function(){var a=pJ.prototype.Kb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.ra.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.ra.removeEventListener(a,b)};
g.k.Ux=function(){return this.ra.Ux()};
g.k.Pr=function(a){this.ra.Pr(a)};
g.k.Op=function(){return this.ra.Op()};
g.k.playVideo=function(){return this.ra.playVideo()};
g.k.DD=function(){this.ra.DD()};
g.k.BD=function(){this.ra.BD()};
g.k.Yo=function(){return this.ra.Yo()};
g.k.xe=function(){return this.ra.xe()};
g.k.Df=function(){return this.ra.Df()};
g.k.Yx=function(a){this.ra.Yx(a)};
g.k.VA=function(){this.ra.VA()};
g.k.getPlaybackRate=function(){return this.ra.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.ra.setPlaybackRate(a)};
g.k.Np=function(){return this.ra.Np()};
g.k.setLoop=function(a){this.ra.setLoop(a)};
g.k.canPlayType=function(a,b){return this.ra.canPlayType(a,b)};
g.k.ul=function(){return this.ra.ul()};
g.k.Bu=function(){return this.ra.Bu()};
g.k.Sk=function(){return this.ra.Sk()};
g.k.oz=function(){return this.ra.oz()};
g.k.Ft=function(a){this.ra.Ft(a)};
g.k.Vx=function(){return this.ra.Vx()};
g.k.load=function(){this.ra.load()};
g.k.pause=function(){this.ra.pause()};
g.k.Ch=function(){return this.ra.Ch()};
g.k.pz=function(){return this.ra.pz()};
g.k.nj=function(){return this.ra.nj()};
g.k.oe=function(){return this.ra.oe()};
g.k.Wx=function(){return this.ra.Wx()};
g.k.rf=function(){return this.ra.rf()};
g.k.No=function(){return this.ra.No()};
g.k.togglePictureInPicture=function(){this.ra.togglePictureInPicture()};
g.k.Kn=function(){return this.ra.Kn()};
g.k.getSize=function(){return this.ra.getSize()};
g.k.setSize=function(a){this.ra.setSize(a)};
g.k.getVolume=function(){return this.ra.getVolume()};
g.k.setVolume=function(a){this.ra.setVolume(a)};
g.k.setAttribute=function(a,b){this.ra.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.ra.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.ra.hasAttribute(a)};
g.k.Qu=ba(22);g.k.Ax=ba(24);g.k.Bx=ba(26);g.k.Wr=ba(28);g.k.yv=function(){return this.ra.yv()};
g.k.Wm=function(a){this.ra.Wm(a)};
g.k.getStyle=function(a){return this.ra.getStyle(a)};
g.k.FE=function(){return this.ra.FE()};
g.k.stopVideo=function(){this.ra.stopVideo()};
g.k.FD=function(a){this.ra.FD(a)};
g.k.audioTracks=function(){return this.ra.audioTracks()};eS.prototype.Xk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.B+=a;var d=a/b;dS.forEach(function(e,f){d<e||(c.u[f]+=b)})};
eS.prototype.toString=function(){return""};
var dS=[20,100,500,2E3];g.k=ZCa.prototype;g.k.isActive=function(){return!0};
g.k.Lz=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.JB=a.prototype[e],d.MB=b[e],a.prototype[e]=function(f){return function(){var h=g.Ba.apply(0,arguments),l=(0,g.P)();h=f.JB.apply(this,h);fS(c,f.MB,(0,g.P)()-l);return h}}(d)),d={JB:d.JB,
MB:d.MB}}};
g.k.Po=function(a){return new YCa(a)};
g.k.Cn=function(a,b){b=void 0===b?1:b;a instanceof YCa&&(fS(this,a.name,(0,g.P)()-a.startTimeMs,b),a.i=!0)};
g.k.cG=function(a,b){var c=void 0===c?1:c;var d=(0,g.P)();b();fS(this,a,(0,g.P)()-d,c)};
g.k.pK=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.B).toString(),e=0;e<dS.length;++e)if(0<c.u[e])d+="."+dS[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new XCa;return a};
g.k.toString=function(){return""};g.k=gS.prototype;g.k.isActive=function(){return!1};
g.k.Lz=function(){};
g.k.Po=function(){};
g.k.Cn=function(){};
g.k.cG=function(a,b){b()};
g.k.pK=function(){return{}};
g.k.toString=function(){return""};var c3,rX,d3,HT,kKa;c3=new gS;rX=pt("html5_enable_profiler")||pt("html5_onesie_enable_profiler")||pt("html5_offline_encryption_enable_profiler")||0<pt("html5_performance_impact_profiling_timer_ms")?new ZCa:new gS;g.jS=pt("html5_enable_profiler")?rX:c3;d3=pt("html5_onesie_enable_profiler")?rX:c3;HT=pt("html5_offline_encryption_enable_profiler")?rX:c3;kKa=pt("html5_performance_impact_profiling_timer_ms")?rX:c3;hS.prototype.then=function(a,b){return this.promise.then(a,b)};
hS.prototype.resolve=function(a){this.u(a)};
hS.prototype.reject=function(a){this.i(a)};g.w(iS,g.E);g.k=iS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.kp=function(){var a=this.i.getVideoData(),b=this.u.getVideoData();if(a.C){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.ld()){f=WCa(this.policy,this.i,this.u,this.Qj);h=$Ca(this);c=h.JR;e=h.gM;d=h.ZJ;h=h.fM;if(!this.I){var l=1E3*this.u.Gh(),m=this.i.Gh();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=
0);a=a.isAd();this.u.ax(l,m,a);this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Ne(b,f)):2===this.status.status?gDa(this):(a=this.i.Op())?a.i||a.u?!eD(a)&&g.Cu()?this.Ne("mse_closed"):b.i&&AA(b.i)&&a.u&&!a.u.lz()?this.Ne("encr_upgrade"):(b=this.i.ld(),b.Sk()?this.Ne("elem_ended"):0>e?this.Ne("next_player_future"):(this.D=d,this.B=Koa(a,c,d,!0),this.C=Koa(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ca("gaplessPrep","cpn."+a),lS(this.i,this.B),this.i.setMediaElement(aDa(b,c,d,
!this.i.getVideoData().isAd())),kS(this,2),gDa(this))):this.ma():this.ma()}else this.Ne("no-elem")}else this.ma()};
g.k.Dr=function(a){var b=fDa(this).VN,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;TC(a.lf(),d-.01)&&(kS(this,4),b.isActive=!1,b.Nx=b.Nx||b.isActive,this.u.Ca("sbh","1"),c.isActive=!0,c.Nx=c.Nx||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&kS(this,5)}};
g.k.GM=function(){4<=this.status.status&&6>this.status.status&&this.Ne("player-reload-after-handoff")};
g.k.Ne=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.ma();var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.i.md(new g.ZC("dai.transitionfailure",!1,Object.assign(b,{cpn:d,transitionTimeMs:this.Qj,msg:a})));a=this.i;a.videoData.La=!1;c&&ZV(a);a.Ya&&ZFa(a.Ya)}this.il.reject(void 0);this.dispose()}};
g.k.ya=function(){eDa(this);this.i.unsubscribe("newelementrequired",this.GM,this);if(this.B){var a=this.B.u;this.B.i.Dd.unsubscribe("updateend",this.Dr,this);a.Dd.unsubscribe("updateend",this.Dr,this)}g.E.prototype.ya.call(this)};
g.k.Nc=function(a){g.lH(a,128)&&this.Ne("player-error-event")};
g.k.ma=function(){};g.w(nS,g.E);nS.prototype.clearQueue=function(){this.ma();this.C&&this.C.reject("Queue cleared");oS(this)};
nS.prototype.Qs=function(){return!this.u};
nS.prototype.ya=function(){oS(this);g.E.prototype.ya.call(this)};
nS.prototype.ma=function(){};g.w(rS,g.Q);g.k=rS.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:kDa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Ri=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ge())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ge())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ge())};
g.k.Gt=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ge())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ge())};
g.k.rf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.As=function(){return this.fullscreen};
g.k.Le=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return kDa()};
g.k.Os=function(){return this.pictureInPicture};
g.k.Ms=function(){return this.u};
g.k.Ge=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.rf(),this.isFullscreen(),this.Le(),this.isInline(),this.Os(),this.Ms());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.k.ya=function(){nDa(this.C);g.Q.prototype.ya.call(this)};g.w(g.vS,g.E);g.k=g.vS.prototype;
g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId(),c=""===b;this.Sa.add(a.u);c||this.Da.Ca("sdai","enterAdCueRange");if(this.Va){this.Va=!1;if(!c){var d=this.u.get(b);d&&(this.Y.N("web_player_ss_record_join_mid_ad_break_killswitch")||this.Da.dG(d.cpn,d.videoData.videoId,d.videoData.Nb),this.api.ea("serverstitchedvideochange",d.Bc,d.Vm),this.Da.Ca("sdai",{ssvc:"midab"}),this.pn=1)}this.C=!1}else if(this.i){if(this.i.Yp)this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,
transitionTime:this.i.Lf,cpn:b,currentTime:this.Da.getCurrentTime()}),this.Y.N("web_player_same_transition_fallback_killswitch")||(d=this.Da.getCurrentTime(),a={Gd:a,isAd:!c,Yp:!0,Lf:d,adCpn:b},d={Gd:this.i.Gd,isAd:this.i.isAd,Yp:!1,Lf:d,adCpn:this.i.adCpn},this.Sa.delete(this.i.Gd.u),zS(this,a,d));else{if(this.i.Gd===a){this.Da.Ca("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Lf,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&
this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}d={Gd:a,isAd:!c,Yp:!0,Lf:this.Da.getCurrentTime(),adCpn:b};zS(this,d,this.i)}this.i=void 0;this.C=!1}else this.i={Gd:a,isAd:!c,Yp:!0,Lf:this.Da.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Y.N("web_player_same_transition_fallback_killswitch")||this.Sa.has(a.u)){this.Sa.delete(a.u);this.La=this.La.filter(function(d){return d!==a});
this.Va&&(this.C=this.Va=!1,this.Da.Ca("sdai","cref"));var b=a.getId(),c=""===b;if(this.i){if(this.i.Yp){if(this.i.Gd===a){this.Da.Ca("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.Lf,cpn:b,currentTime:this.Da.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Da.Ca("sdai",{dchtsc:b});this.i=void 0;return}c={Gd:a,isAd:!c,Yp:!1,Lf:this.Da.getCurrentTime(),adCpn:b};zS(this,this.i,c)}else this.Da.Ca("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn,
transitionTime:this.i.Lf,upcomingCpn:b,contentCpn:this.Da.getVideoData().clientPlaybackNonce,currentTime:this.Da.getCurrentTime()});this.i=void 0;this.C=!1}else this.i={Gd:a,isAd:!c,Yp:!1,Lf:this.Da.getCurrentTime(),adCpn:b};this.Y.N("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.Da.getCurrentTime()<this.Da.sj()&&sS(this,Infinity))}else this.Da.Ca("sdai","ignore_single_exit")};
g.k.isAdPlaying=function(a){return!!BS(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.C=!0;if(void 0===b?0:b)sS(this,a);else{b=this.api.Jc();var d=b===this.Ba?this.bb:null;CS(this,!1);this.rb=a;null!=c&&this.jb.start(c);b&&(this.bb=d||b.getPlayerState(),JX(b),this.Ba=b)}};
g.k.ya=function(){CS(this,!1);ES(this);wDa(this);g.E.prototype.ya.call(this)};
g.k.ma=function(){};
g.k.wG=function(a){this.Db=a;this.Da.Ca("sdai","swebm."+a)};
g.k.vj=function(a,b,c){if(c&&b){var d=this.Aa.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.EA(c);this.oa&&this.Da.Ca("sdai",{hdlredir:1,itag:b,seg:a,hostport:HA(c)});d.locations.set(e,c)}}};
g.k.Kp=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.yDa(this,b))return this.oa&&this.Da.Ca("sdai",{gdu:"undec",seg:b,itag:l}),null;a=HS(this,a,b);this.oa&&this.Da.Ca("sdai",{gdu:1,seg:b,itag:l,pb:""+!!a});if(!a)return JS(this,b,m),null;if(this.Gc&&a.errorCount>=this.Gc)return this.Da.Ca("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),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.Da.Ca("sdai",{gdu:"noadpfmts",seg:b,itag:l}),JS(this,b,m),null;var p=n.find(function(t){return t.itag===l});
if(!p||!p.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:l,fullitag:c,itags:""};if(!this.Y.N("html5_ssdai_log_missing_itags_killswitch")){a=[];d=g.q(n);for(n=d.next();!n.done;n=d.next())a.push(n.value.itag);c.itags=a.join(",")}this.Da.Ca("sdai",c);JS(this,b,m);return null}n=!this.Y.N("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.EA(p.url,n))}n=a.locations.get(l);if(!n)return this.Da.Ca("sdai",{gdu:"nourl",seg:b,itag:l}),JS(this,b,m),null;p=new BB(n);this.Db&&p.set("dvc","webm");
this.Y.experiments.kb("ssdai_return_original_content")&&p.set("dairoc","1");(n=this.kz(b-1,d))&&p.set("daistate",n);a.EG&&b>=a.EG&&p.set("skipsq",""+a.EG);var r=this.Da.getVideoData().clientPlaybackNonce;r&&p.set("cpn",r);n=[];a.qk&&(n=zDa(this,a.qk),0<n.length&&p.set("acpns",n.join(",")));m||this.Aa.set(b,a);this.Y.N("web_player_ssdai_acpns_aids_logging_killswitch")||(m=p.get("aids"),((null===(h=null===m||void 0===m?void 0:m.split(","))||void 0===h?void 0:h.length)||0)!==n.length&&(a.qk?this.Da.Ca("sdai",
{acpns_aids_nm:1,ids:BDa(this,a.qk).join("_"),aids:null===m||void 0===m?void 0:m.replace(/,/g,"_"),cpn:r,trackType:d}):this.Da.Ca("sdai",{acpns_aids_nm:"noAdBreakId",cpn:r})));m=g.CB(p);2048<(null===m||void 0===m?void 0:m.length)&&this.Da.Ca("sdai",{urltoolong:1,sq:b,itag:l,len:m.length});this.oa&&(m&&(p=a.cpn,d=a.qk,DDa(this,p,d),d&&!this.ac.has(d)&&(p=ADa(this,p,d),r=CDa(this,d),this.Da.Ca("sdai",{iofa:p}),this.Da.Ca("sdai",{noawnzd:r-p}),this.Da.Ca("sdai",{acpns:n.join(".")}),this.ac.add(d))),
this.Da.Ca("sdai",{gdu:"v",seg:b,itag:c,ast:a.Cc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return m};
g.k.DG=function(a,b){if(a=HS(this,a,b))if(a=a.qk)if(this.Da.Ca("sdai",{skip_adbreakid:a}),a=this.K.get(a)){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c.value.EG=b}};
g.k.kz=function(a,b){return 1===b&&this.Ja.has(a)?this.Ja.get(a)||"":2===b&&this.Za.has(a)?this.Za.get(a)||"":3===b&&this.Ka.has(a)?this.Ka.get(a)||"":""};
g.k.Ix=ba(31);
g.k.KF=function(a,b,c,d,e,f,h,l){l&&(h?this.Za.set(a,l):this.Ja.set(a,l));if(h){if(d.length&&e.length)for(a=b+GS(this),h=g.q(d.entries()),l=h.next();!l.done;l=h.next()){var m=g.q(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.Vm=null!=n.Vm?Math.min(n.Vm,l):l}if(!uS(this))if(d.length&&e.length)for(b=1E3*(b+GS(this)),d=g.q(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.q(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.Da.getVideoData().clientPlaybackNonce)IS(this,b,
b+f,!1),b+=f;else if(this.Nb.has(c)||(this.Da.Ca("sdai","adCpnFromEmsg"),this.Nb.add(c)),(a=this.D.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=tDa(b,b+f,c),this.D.set(c,a),this.Da.Ca("sdai","newAdCR"),h=!0),b=a.end,IS(this,a.start,a.end,!0),h)for(this.Da.addCueRange(a),c=this.Da.zv("serverstitchedcuerange",36E5),c=g.q(c),f=c.next();!f.done;f=c.next())this.D.delete(f.value.getId())}else 5!==c&&4!==c||IS(this,1E3*(b+GS(this)),1E3*(b+GS(this))+
5E3,!1)}};
g.k.Gv=ba(33);g.k.Bj=function(a){this.Da.Ca("timelineerror",a);this.ma()};
g.k.Uv=function(a){this.X&&this.S&&this.xa.push(this.S);!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.S&&this.wb.push(this.S);this.S=null;this.Da.Uv(a)};
g.k.mE=function(a){var b;a.identifier&&this.fc.has(a.identifier)?(this.oa&&this.Da.Ca("sdai",{startnoad:a.identifier}),KS(this)):lo(this.xa,function(c){return c.identifier===a.identifier})?(this.Da.Ca("sdai",{timedoutcp:1}),this.Z.start(0)):!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&lo(this.wb,function(c){return c.identifier===a.identifier})?(this.Da.Ca("sdai","fetchedcp"),KS(this)):this.Z.isActive()?this.Da.Ca("sdai","racingcp_"+(null===(b=this.S)||void 0===b?void 0:b.identifier)+
"_"+a.identifier):(this.Fb=(new Date).getTime()/1E3,this.oa&&this.Da.Ca("sdai",{adf:1}),this.X=!1,this.Z.start(),this.S=a,this.Ja.clear(),this.Za.clear(),this.Ka.clear(),this.Y.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Aa.clear(),this.Wa=[])};
g.k.Wv=function(a,b){(a=HS(this,a,b))&&a.errorCount++};
g.k.Do=function(a){var b;this.fc.add(a);(null===(b=this.S)||void 0===b?void 0:b.identifier)===a&&KS(this)};
g.k.JF=function(a,b,c,d){if(uS(this)){var e=this.Da.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?xS(this):this.u.get(a),h=b===e?xS(this):this.u.get(b);f&&h?(yS(this.Da,f,h,this.C?c:d,d,this.C),b===e?(this.api.ea("serverstitchedvideochange"),this.pn=0):(this.api.ea("serverstitchedvideochange",h.Bc,h.Vm),this.pn++)):this.Da.Ca("sdai",{unknowntrans:"1",old:a,"new":b});this.C=!1}}};
var rDa=0;g.w(LS,g.E);g.k=LS.prototype;g.k.onCueRangeEnter=function(a){if(this.i===this.api.Jc()){var b=this.I.get(a);if(b){var c=b.target;this.ma();KDa(this,c,b.Qj,a)}else this.md("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cid:a.getId()})}else if(b=this.u.find(function(e){return e.zn.Gd===a})){var d=b.zn;
this.ma();c=d.target;d=d.Qj;c?KDa(this,c,d,a):JDa(this,b.Wc,d,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.K;PS(this);if(a){if(!OS(this,a)){var b=this.api.Jc();this.md("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null===b||void 0===b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}b=this.api.Jc();a=a.zn;this.ma();b.addCueRange(a.Gd)}};
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)EDa(this,a);else{b=this.api.Jc();var d=b===this.C?this.D:null;RS(this,!1);this.X=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),JX(b),this.C=b)}};
g.k.Nh=function(a){g.lH(a,128)&&NDa(this)};
g.k.isManifestless=function(){return MF(this.i.getVideoData())};
g.k.ya=function(){RS(this,!1);TS(this);g.E.prototype.ya.call(this)};
g.k.ma=function(){};
g.k.md=function(a,b){this.i.md(new g.ZC(a,!1,b))};
var FDa=0;var PDa="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.w(WS,g.E);WS.prototype.get=function(a){US(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
WS.prototype.set=function(a,b,c){this.remove(a,!0);US(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.B;)(c=this.data.shift())&&XS(this,c,!0);VS(this)};
WS.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(XS(this,c,b),g.ac(this.data,function(d){return d.key===a}),VS(this))};
WS.prototype.ya=function(){var a=this;g.E.prototype.ya.call(this);this.data.forEach(function(b){XS(a,b,!0)});
this.data=[]};g.w(YS,g.gs);YS.prototype.ea=function(a){var b=g.Ba.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.gs.prototype.ea.call.apply(g.gs.prototype.ea,[this,a].concat(g.ma(b.shift())))}finally{this.D.delete(a)}return c};ZS.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
ZS.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)};
ZS.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.i=this.data.length-1};g.w($S,g.E);$S.prototype.start=function(){this.u.start()};
$S.prototype.stop=function(){this.u.stop()};
$S.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
$S.prototype.sample=function(){for(var a=g.q(this.B),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new cT(aRa.has(b)));this.i.get(b).update(c())}this.u.start()};
var aRa=new Set(["networkactivity"]);cT.prototype.update=function(a){this.u?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
cT.prototype.clear=function(){this.buffer.clear();this.i=0};g.w(dT,g.E);dT.prototype.ya=function(){g.E.prototype.ya.call(this);this.i=null;this.u&&this.u.disconnect()};g.bRa=yf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var e3;e3={};g.eT=(e3.STOP_EVENT_PROPAGATION="html5-stop-propagation",e3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",e3.IV_DRAWER_OPEN="ytp-iv-drawer-open",e3.MAIN_VIDEO="html5-main-video",e3.VIDEO_CONTAINER="html5-video-container",e3.HOUSE_BRAND="house-brand",e3);g.w(fT,g.W);g.k=fT.prototype;g.k.Wm=function(){g.Mr(this.element,g.Ba.apply(0,arguments))};
g.k.Cg=function(){this.Lb&&(this.Lb.removeEventListener("focus",this.yF),g.gh(this.Lb),this.Lb=null)};
g.k.zD=function(){this.isDisposed();var a=this.app.V();a.ij||this.Wm("tag-pool-enabled");a.D&&this.Wm(g.eT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Wm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.bb&&(this.rD=g.rv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.mx=function(a){pE(this.app.V());this.Dz=!a;gT(this)};
g.k.resize=function(){if(this.Lb){var a=this.rg();if(!a.isEmpty()){var b=!g.zg(a,this.vt.getSize()),c=YDa(this);b&&(this.vt.width=a.width,this.vt.height=a.height);a=this.app.V();(c||b||a.bb)&&this.app.Ta.ea("resize",this.getPlayerSize())}}};
g.k.Is=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Lb){var b=this.app.V();Iu&&(this.Lb.setAttribute("x-webkit-airplay","allow"),a.title?this.Lb.setAttribute("title",a.title):this.Lb.removeAttribute("title"));csa(a)?this.Lb.setAttribute("disableremoteplayback",""):this.Lb.removeAttribute("disableremoteplayback");this.Lb.setAttribute("controlslist","nodownload");b.Hl&&a.videoId&&(this.Lb.poster=a.Ke("default.jpg"))}b=g.$F(a,"yt:bgcolor");this.bv.style.backgroundColor=b?b:"";this.eF=dE(g.$F(a,"yt:stretch"));this.fF=
dE(g.$F(a,"yt:crop"),!0);g.M(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.kE=dE(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.FJ=a;this.resize()};
g.k.Ri=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&Bu())return new g.yg(window.outerWidth,window.outerHeight);if(b||a.jk){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.ow&&this.ow.media===a||(this.ow=window.matchMedia(a));var c=this.ow&&this.ow.matches}if(c)return new g.yg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Cv.width)&&!isNaN(this.Cv.height))return this.Cv.clone();return new g.yg(this.element.clientWidth,
this.element.clientHeight)};
g.k.rg=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize();return a&&this.VF&&768<b.width?new g.yg(.46*b.width,b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.eF)?WDa(this):this.eF};
g.k.getVideoContentRect=function(a){var b=this.rg();a=XDa(this,b,this.getVideoAspectRatio(),a);return new g.Dm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.eB=function(a){this.VF=a;this.resize()};
g.k.Oz=function(){return this.IA};
g.k.onMutedAutoplayChange=function(){gT(this)};
g.k.setInternalSize=function(a){g.zg(this.Cv,a)||(this.Cv=a,this.resize())};
g.k.ya=function(){this.rD&&g.tv(this.rD);this.Cg();g.W.prototype.ya.call(this)};g.k=ZDa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Vx();c&&a.visualElement&&g.my(c,a.visualElement,b)};
g.k.Hb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=zla(c);a.visualElement=c;var f=g.Vx(),h=g.Ux();f&&h&&g.gy(void 0,f,h,[c]);g.te(b,function(){$Da(e,a)});
d&&this.u.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.te(b,function(){$Da(d,a)});
c&&this.u.add(a)};
g.k.Gm=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Rx(b))};
g.k.Zv=function(a){return this.elements.has(a)};g.w(kT,g.W);
kT.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.C[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.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(mT,g.W);g.k=mT.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.Qa()};
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.Qa()};
g.k.Qa=function(){var a=(0,g.P)(),b=this.Ta.getStatsForNerds();lT(this.i,b.bandwidth_samples);lT(this.C,b.network_activity_samples);lT(this.B,b.live_latency_samples);lT(this.u,b.buffer_health_samples);this.update(b);a=25<(0,g.P)()-a?5E3:500;this.delay.start(a)};nT.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
nT.prototype.getPlaybackRate=function(){return this.playbackRate};rT.prototype.seek=function(a){a!==this.B&&(this.seekCount=0);this.B=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.Wb,e=iEa(this,this.videoTrack,a,this.videoTrack.Wb);d=iEa(this,this.audioTrack,this.policy.xa?a:e,d);a=Math.max(a,e,d);this.i=!0;this.u.isManifestless&&(gEa(this,this.videoTrack,b),gEa(this,this.audioTrack,c));return a};
rT.prototype.ma=function(){};
var hEa=2/24;nEa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.P)()};g.w(wT,g.Q);g.k=wT.prototype;
g.k.EF=function(a,b,c){if(this.D){var d=[],e=[],f=[],h=void 0;b&&(d=b.i,e=b.u,f=b.C,h=b.B);this.D.KF(a.Ma,a.startTime,this.i,d,e,f,c,h)}if(c){if(b&&!this.oa.has(a.Ma)){c=a.startTime;d=[];e=g.q(b.i.entries());for(f=e.next();!f.done;f=e.next()){h=g.q(f.value);f=h.next().value;h=h.next().value;var l=c;c=l+b.u[f];d.push({startTime:l,endTime:c,adCpn:h})}this.oa.set(a.Ma,d)}this.policy.kc&&(c=this.Z&&a.Ma===this.Z.Ma+1,this.Z=a,d=this.u&&a.Ma===this.u.Ma+1,d=this.u&&c&&d&&"stop"!==this.u.me.event&&"predictStart"!==
this.u.me.event,e=a.me||null,f=this.I.i.index.getLastSegmentNumber()<=a.Ma,h=this.S.isManifestless&&this.policy.El,e?(this.u={me:e,Ma:a.Ma,Yv:!!b},f?xT(this,e,a.Ma):h&&(c?d?xT(this,e,a.Ma):"continue"===e.event||"stop"===e.event?rEa(this,a):xT(this,e,a.Ma):xT(this,e,a.Ma))):d&&rEa(this,a))}};
g.k.DF=function(a,b,c){var d=this.I.i.index.getLastSegmentNumber()<=b;this.u={me:a,Ma:b,Yv:c};d&&xT(this,a,b)};
g.k.Ca=function(a,b){this.Ya.Ca(a,b)};
g.k.xx=function(a,b){var c,d=this.I.i.index.getSegmentNumberForTime(a);return 0<=d&&(null===(c=this.D)||void 0===c?0:c.kz(d,2))?(this.Ca("sdai","skipad_on"+d+"_t"+a.toFixed(3)),b.DG(a,d),qEa(this,a,a,d),!0):!1};
g.k.Gs=function(a){var b="",c=this.I.i.index.getSegmentNumberForTime(a);if(c=this.oa.get(c)){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};zT.prototype.Rt=function(a){var b,c,d=this.policy.S;this.policy.S=wD(a,{},this.I);d!==this.policy.S&&(AT(this,this.B),CT(this),d>this.policy.S&&(null===(b=this.i)||void 0===b?0:FC(b.info))&&(null===(c=this.nextVideo)||void 0===c||!FC(c.info))&&(this.S=!0))};
zT.prototype.ma=function(){};IT.prototype.dispose=function(){this.Z=!0};
IT.prototype.isDisposed=function(){return this.Z};QT.prototype.skip=function(a){this.offset+=a};
QT.prototype.getOffset=function(){return this.offset};ST.prototype.Rh=function(a){var b=this.u.shift();a.info.equals(b.info)};
ST.prototype.Qk=function(){return!!this.D.info.audio};
ST.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};
ST.prototype.ma=function(){};g.k=bU.prototype;g.k.VD=function(){return 0};
g.k.fI=function(){return null};
g.k.AK=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.i[0].i.I=!1;cU(this,-1)};g.w(fU,bU);g.k=fU.prototype;g.k.onStateChange=function(){this.isDisposed()&&(PIa(this.Fe,this.i),this.B.dispose())};
g.k.Iv=function(){return{}};
g.k.xK=function(){return 0};
g.k.Fu=function(){return!0};
g.k.jC=function(){this.On();this.S=!0;return fFa(this.u)};
g.k.gI=function(){this.On();return this.u.ge};
g.k.ut=function(){var a,b;return!(null===(b=null===(a=this.u)||void 0===a?void 0:a.ge)||void 0===b||!b.length)||this.Fe.Yf(this.i)};
g.k.On=function(){for(;this.Fe.Yf(this.i);){var a=this.u,b=this.Fe.Rh(this.i),c=this.Fe.Oe.get(this.i);eFa(a,b,c.sf&&!c.ge.totalLength&&hFa(this.Fe,this.i))}};gU.prototype.ag=function(){return QEa(this.C)};
gU.prototype.Rh=function(a){this.C.Rh(a);a=a.info;var b=a.i.info.Ob;this.policy.Lu&&a.Td&&a.duration&&(b=Math.max(b,(a.Bb+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
gU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
gU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Ma:!1};g.k=uU.prototype;g.k.jt=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.kt()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.callbacks.Eo())};
g.k.Qn=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.Fv=function(){return+this.getResponseHeader("content-length")};
g.k.Hk=function(){return this.B};
g.k.Yw=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Yf=function(){return 0<this.i.totalLength};
g.k.Rh=function(){var a=this.i;this.i=new kC;return a};
g.k.ag=function(){return this.i};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Lt=function(){return!0};
g.k.QA=function(){return this.C};
g.k.oe=function(){return""};g.k=uFa.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.Fv=function(){return this.range.length};
g.k.Hk=function(){return this.loaded};
g.k.Yw=function(){return!!this.loaded};
g.k.Yf=function(){return!!this.u.totalLength};
g.k.Rh=function(){var a=this.u;this.u=new kC;return a};
g.k.ag=function(){return this.u};
g.k.Lt=function(){return!0};
g.k.QA=function(){return!!this.error};
g.k.oe=function(){return this.error};var vFa=0;g.k=vU.prototype;g.k.Hn=function(){this.oa||(this.oa=this.callbacks.Hn?this.callbacks.Hn():1);return this.oa};
g.k.kt=function(){this.La=this.now();this.callbacks.kt()};
g.k.tq=function(a,b){xU(this,a,b);50>a-this.C&&zU(this)||zFa(this,a,b);this.callbacks.tq(a,b)};
g.k.Eo=function(){this.callbacks.Eo()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.now=function(){return(0,g.P)()};var GFa=0;g.k=DU.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Aa);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ja,this.onError).then(void 0,Vv)};
g.k.onDone=function(){if(!this.isDisposed()){this.ma();this.X=!0;if(FFa(this)&&!this.i.totalLength&&!this.D&&this.u){jA(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.callbacks.Eo()}};
g.k.getResponseHeader=function(a){return this.K?this.K.get(a):null};
g.k.Qn=function(){return!!this.K};
g.k.Hk=function(){return this.u};
g.k.Fv=function(){return+this.getResponseHeader("content-length")};
g.k.Yw=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.ma=function(){};
g.k.Yf=function(){if(this.X||this.policy.i)return!!this.i.totalLength;if(!this.Qn()||this.oa+10>Date.now())return!1;var a=16384;this.xa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.fg&&jA(this))&&(a=1);return this.i.totalLength>=a};
g.k.Rh=function(){this.Yf();this.oa=Date.now();this.xa=!0;var a=this.i;this.i=new kC;return a};
g.k.ag=function(){this.Yf();return this.i};
g.k.isDisposed=function(){return this.S};
g.k.abort=function(){this.ma();this.B&&this.B.cancel().catch(function(){});
this.C&&this.C.abort();this.S=!0};
g.k.Lt=function(){return!0};
g.k.QA=function(){return this.D};
g.k.oe=function(){return this.errorMessage};g.k=EU.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.callbacks.Eo()}};
g.k.jt=function(){2===this.xhr.readyState&&this.callbacks.kt()};
g.k.td=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.callbacks.tq((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 xt(Error("Could not read XHR header "+a)),""}};
g.k.Fv=function(){return+this.getResponseHeader("content-length")};
g.k.Hk=function(){return this.u};
g.k.Yw=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u};
g.k.Yf=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Rh=function(){this.Yf();var a=this.response;this.response=void 0;return new kC([new Uint8Array(a)])};
g.k.ag=function(){this.Yf();return new kC([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Lt=function(){return!1};
g.k.QA=function(){return!1};
g.k.oe=function(){return""};g.w(HU,bU);g.k=HU.prototype;g.k.Iv=function(){var a=wU(this.timing);a.shost=HA(this.i.Cf);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.hc();a.ml=""+ +this.info.i[0].i.Ue();a.sq=""+this.info.i[0].Ma;this.i&&(a.ifi=""+ +pna(this.i.Cf));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.oe()&&(a.msg=this.xhr.oe());this.zx&&(a.smb="1");if(this.u){var b=this.u.ge;b.length&&uoa(b[0],a)}this.info.Kp()&&(a.sdai="1");return a};
g.k.xK=function(){return DFa(this.timing)};
g.k.oe=function(){return this.xhr.oe()||""};
g.k.Fu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.AA&&AU(a,a.u));return a};
g.k.tq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.ut()?dU(this,2):!this.Aa&&this.Fu()&&(dU(this),this.Aa=!0))};
g.k.kt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.Qn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.P)()-a)/1E3}this.xhr.Qn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.hq&&!tpa()&&g.qy("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.I=a||this.I;this.K=b||this.K}};
g.k.Eo=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=LFa(this,a),5===a?GU(this):cU(this,a))};
g.k.canRetry=function(){this.isDisposed();var a=FU(this);return a.timedOut<this.policy.Sq&&a.i<this.policy.ij};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Id?IU(this):this.timing.deactivate())};
g.k.gX=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.P)(),b=!1;zU(this.timing)?(a=this.timing.I,xFa(this.timing),this.timing.I-a>=.8*this.xa?(this.C++,this.ma(),b=5<=this.C):this.C=0):(b=this.timing,b.ih&&CU(b,b.now()),a-=b.Z,this.policy.Fb&&0<a&&(this.C+=1),b=Sna(FU(this),this.policy,!1)*this.policy.Zj,(b=a>1E3*b)&&this.ma());this.C&&this.callback&&this.callback(this,this.state);b?MFa(this,!1):this.X.start()}};
g.k.dispose=function(){bU.prototype.dispose.call(this);this.X.dispose();this.policy.Id||IU(this)};
g.k.jC=function(){if(!this.gI().length)return[];this.S=!0;return fFa(this.u)};
g.k.ut=function(){var a;return 1>this.state?!1:this.u&&this.u.ge.length||(null===(a=this.xhr)||void 0===a?0:a.Yf())?!0:!1};
g.k.gI=function(){this.On(!1);return this.u?this.u.ge:[]};
g.k.On=function(a){if(a||this.xhr.Qn()&&this.xhr.Yf()&&!JFa(this)&&!this.D){if(!this.u){if(this.xhr.Lt())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Hk();this.u=new dFa(this.info.i,b)}for(;this.xhr.Yf();)eFa(this.u,this.xhr.Rh(),a&&!this.xhr.Yf())}};
g.k.Hk=function(){return this.xhr.Hk()};
g.k.VD=function(){return this.Z};
g.k.Hn=function(){return NFa(this)?2:1};
g.k.ma=function(){};
g.k.fI=function(){this.xhr&&(this.I=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.I};
g.k.AK=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};
var KFa=-1;JU.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};
JU.prototype.ma=function(){};g.w(g.LU,g.E);g.k=g.LU.prototype;
g.k.initialize=function(a,b,c){this.ma();a=a||0;this.Da.qA(AEa(this.u));if(this.i.isManifestless){if(this.policy.Oi){b=lna(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.B=b)}XFa(this)}this.D&&PFa(this.D,this.videoTrack.i);this.policy.La&&iA()&&this.Ca("streaming","ac."+(!!window.AbortController||kA()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.oa&&(WFa(this,this.videoTrack),WFa(this,this.audioTrack),QIa(this.oa),
delete this.oa,this.policy.Ir&&(a=HB(this.audioTrack.i.u,!1),ND("https://"+a+"/generate_204","oprobe")));c?(this.policy.Yc?(this.jb=c,RU(this,c)):RU(this,!1),g.Fr(this.La)):(c=0===this.currentTime,MU(this,this.videoTrack,this.videoTrack.i,c),MU(this,this.audioTrack,this.audioTrack.i,c),this.seek(this.currentTime).yh(function(){}),this.timing.tick("gv"));
(this.i.re||this.i.wg||this.i.I||this.i.D||this.i.K)&&this.Ca("minMaxSq","minSq."+this.i.re+";maxSq."+this.i.wg+";minDvrTime."+this.i.I+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)};
g.k.resume=function(){if(this.isSuspended||this.Aa){this.ma();this.Wa=this.Aa=this.isSuspended=!1;try{this.Dh()}catch(a){g.by(a)}}};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new yT(b.K,b.i,"m");this.ma();YU(this.Da,a.reason,a.audio.info);$U(this.Da)}};
g.k.setPlaybackRate=function(a){a!==this.I.getPlaybackRate()&&this.I.setPlaybackRate(a)};
g.k.Wv=function(a){var b=a.info.i[0].i,c=a.lastError;if(IA(b.u.i)){var d=g.Fc(a.oe());this.Ca("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Ma,this.K.Wv(oEa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!FT(this.u)&&!IA(b.u.i);var e=a.Iv(),f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(!1,c,e);this.isDisposed()||(d&&(this.ma(),ET(this.u,b)),this.policy.Sg&&1===a.info.i.length&&0<a.info.i[0].Bb&&b!==f.i&&this.Aa?
$U(this.Da,Object.assign({reattachOnStuckRequest:1},e)):(rU(f,a),this.Dh()))}else this.handleError(!1,c,a.Iv()),!a.info.zk()||this.policy.u||IA(b.u.i)?this.handleError(!0,"net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()}):(b.C=c,this.Dh())};
g.k.Dh=function(){TU(this);if(this.mediaSource&&eD(this.mediaSource)&&!this.mediaSource.dh()){var a=iU(this.videoTrack);a=this.policy.Wj&&a&&a.B;this.i.isManifestless&&this.i.S&&pD(this.i)?(this.S=pD(this.i),this.mediaSource.Nj(this.S)):this.i.isLive&&!a?isNaN(this.S)?(this.S=this.currentTime+3600,this.mediaSource.Nj(this.S)):this.S<=this.currentTime+1800&&(this.S=Math.max(this.S+1800,this.currentTime+3600),this.mediaSource.Nj(this.S)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==a)&&0<a&&(this.mediaSource.Nj(a),this.S=a))}if(!this.isDisposed())if(oD(this.i)&&this.i.isFailed())this.handleError(!0,"manifest.net.retryexhausted",{rc:this.i.oa.toString()});else if(!this.i.B||!qFa(this.videoTrack)&&!qFa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Va?a=!1:(OU(this),this.Da.seekTo(Infinity,{Ud:"checkLoaderTracksSync",lp:!0}),a=!0),!a&&(TU(this),kU(this.videoTrack),!this.isDisposed()&&(kU(this.audioTrack),
!this.isDisposed()))){this.i.isManifestless&&(rFa(this.videoTrack),rFa(this.audioTrack),lEa(this.C),(a=this.videoTrack.ag())&&a.u&&(a=a.u.D&&!this.policy.Rl,this.Ca(a===this.policy.D.fg?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.D.fg?"1":"0")+";dfs."+(this.policy.Rl?"1":"0"),!0)));if(this.mediaSource)YFa(this);else if(this.policy.u){(a=this.videoTrack.ag())&&this.videoTrack.Rh(a);var b=this.audioTrack.ag();b&&this.audioTrack.Rh(b);mU(this.videoTrack)&&mU(this.audioTrack)?this.ma():
(a||b)&&g.Fr(this.X)}QU(this);MU(this,this.videoTrack,this.videoTrack.i,!1);MU(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";this.handleError(!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||eD(this.mediaSource)&&!this.policy.Wa)&&!this.C.i&&sU(a)&&a.i.Ue()&&
this.u.S)a:{if(b=this.currentTime,c=this.I,d=pT(c,a.i.info.Ob,d.i.info.Ob,0),c=UD(c.schedule)+d/WD(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Ob),this.ma(),a.B.length){if(a.B[0].info.i[0].startTime<=b)break a;sT(a)}c=a.C;for(d=c.u.length-1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.Rb(g.Rb(a.B).info.i):a.C.u.length?a.u=TT(a.C).info:a.u=iU(a);a.u&&b<a.u.startTime&&(a.Z=0,a.i.Ue()?a.u=a.i.cm(b,!0).i[0]:a.u=null)}cGa(this,this.videoTrack,this.audioTrack);cGa(this,this.audioTrack,this.videoTrack);
this.policy.nk&&this.Ka&&!this.isSuspended&&Vpa(this.schedule)&&(jGa(this,this.Ka),this.Ka="");this.D&&(a=this.D,a.C?(b=a.I+a.policy.fh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.fc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.Fr(this.wb,a));g.Fr(this.rb)}}};
g.k.eQ=function(a){if(this.policy.ob&&this.mediaSource){var b=a===this.mediaSource.i,c=a.mz();c&&(!c.Bb||c.Td)&&this.Ca("sbu",a.Kb({a:""+ +b}))}this.Dh()};
g.k.bU=function(a){if(this.mediaSource){a=iU(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=UB(a));this.handleError(!0,"fmt.unplayable",b)}};
g.k.gt=function(a){this.Da.gt(a)};
g.k.EF=function(a,b,c){this.i.isManifestless&&ZEa(this,b,c,!!a.info.video)};
g.k.DF=function(a,b,c,d){a.info.video&&this.B.DF(b,c,d)};
g.k.Sv=ba(6);g.k.seek=function(a){if(this.isDisposed())return Kh();if(this.videoTrack.K||this.audioTrack.K)return Kh("seeking to head");TU(this);this.bb=(0,g.P)();QU(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.u&&(this.mediaSource.i.isLocked()||this.mediaSource.u.isLocked())&&$U(this.Da,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.i.isLocked()});var b=this.currentTime;this.currentTime=this.C.seek(a);sEa(this.B,a,b);g.Fr(this.X);return Jh(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.WD=function(){return this.audioTrack.i.info.i};
g.k.XD=function(){return this.videoTrack.i.info.i};
g.k.ya=function(){try{SU(this),sT(this.audioTrack),sT(this.videoTrack),g.E.prototype.ya.call(this)}catch(a){g.by(a)}};
g.k.handleError=function(a,b,c){this.isDisposed()||(c=new g.ZC(b,a,c),g.Qa(this),g.YC(c.details),this.Da.handleError(c),"html5.invalidstate"!==b&&"fmt.unplayable"!==c.errorCode&&"fmt.unparseable"!==b&&a&&this.dispose())};
g.k.ma=function(){};
g.k.Kb=function(){var a=iU(this.audioTrack),b=iU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.C.i,lmf:GT(this.u),lbw:VD(this.schedule).toFixed(3),lhd:UD(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.pg()||0)).toFixed(3),laa:a?OB(a):"",lva:b?OB(b):"",lar:this.audioTrack.u?OB(this.audioTrack.u):"",lvr:this.videoTrack.u?OB(this.videoTrack.u):"",laq:""+nU(this.audioTrack),lvq:""+nU(this.videoTrack)};this.mediaSource&&!this.mediaSource.sf()&&this.mediaSource.i&&this.mediaSource.u&&
(a.lab=RC(this.mediaSource.i.lf()),a.lvb=RC(this.mediaSource.u.lf()));this.xa&&(a.lapt=((0,g.P)()-this.xa).toFixed(0),a.lapr=fGa(this));return a};
g.k.TD=function(){return oT(this.I)};
g.k.Ca=function(a,b,c){this.Da.Ca(a,b,void 0===c?!1:c)};
g.k.lp=function(a,b){a/=b;isNaN(this.timestampOffset)&&nGa(this,a-Math.min(a,this.policy.Ae));return(a-this.timestampOffset)*b};
g.k.Rt=function(a){this.u.Rt(a)};
g.k.xx=function(a,b){return this.K&&this.B.xx(a,this.K)?(nGa(this,this.timestampOffset-b),!0):!1};
g.k.Gs=function(a){return this.B.Gs(a)};
var bGa=2/24;g.k=g.aV.prototype;g.k.Kp=function(a,b,c,d){return this.pd.Kp(a,b,c,d)};
g.k.mE=function(a){this.pd.mE(a)};
g.k.Wv=function(a,b){this.pd.Wv(a,b)};
g.k.DG=function(a,b){this.pd.DG(a,b)};
g.k.Gv=ba(32);g.k.vj=function(a,b,c){this.pd.vj(a,b,c)};
g.k.Ix=ba(30);g.k.KF=function(a,b,c,d,e,f,h,l){this.pd.KF(a,b,c,d,e,f,h,l)};
g.k.wG=function(a){this.pd.wG(a)};
g.k.kz=function(a,b){return this.pd.kz(a,b)};
g.k.JF=function(a,b,c,d){this.pd.JF(a,b,c,d)};g.w(bV,g.Q);g.w(cV,bV);cV.prototype.I=function(a,b){if(a&&b){var c=1*Number(Yi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.i={}):(c>this.B&&(this.B=c,g.Se(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.Fr(this.u))}};
cV.prototype.D=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,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="+Bg(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 NT(d,"fairplay",!0))}this.i={}};
cV.prototype.ya=function(){this.i={};bV.prototype.ya.call(this)};var f3={},wGa=(f3.DRM_TRACK_TYPE_AUDIO="AUDIO",f3.DRM_TRACK_TYPE_SD="SD",f3.DRM_TRACK_TYPE_HD="HD",f3.DRM_TRACK_TYPE_UHD1="UHD1",f3);g.w(dV,g.E);dV.prototype.ma=function(){};g.w(fV,g.Q);g.k=fV.prototype;g.k.Co=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=BD(b.u)?d:c;d=new Uint8Array(BD(b.u)?c:d);BD(b.u)&&LGa(d);c=g.Ec(d,4);LGa(d);d=g.Ec(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: "+IGa(this,",")),eV(this,"onkeystatuschange"),this.status="kc",this.ea("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ea("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ya=function(){this.i={};g.Q.prototype.ya.call(this)};
g.k.Kb=function(){var a={requestedKeyIds:this.xa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.mf=function(){var a=this.D.join();if(gV(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.w(EV,g.E);g.k=EV.prototype;g.k.fQ=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Co=function(){this.K&&this.K(this.i.keyStatuses)};
g.k.PM=function(a){this.D&&this.D(a.message,"license-request")};
g.k.OM=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.MM=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,wt(function(c){PGa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return nu()};
g.k.ya=function(){this.i&&this.i.close();this.element=null;g.E.prototype.ya.call(this)};g.w(OV,g.E);g.k=OV.prototype;g.k.attach=function(){var a=this;if(this.i.keySystemAccess)return this.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
AD(this.i)?this.B=new (zD())(this.i.keySystem):CD(this.i)?(this.B=new (zD())(this.i.keySystem),this.element.webkitSetMediaKeys(this.B)):(Dx(this.D,this.element,["keymessage","webkitkeymessage"],this.iQ),Dx(this.D,this.element,["keyerror","webkitkeyerror"],this.hQ),Dx(this.D,this.element,["keyadded","webkitkeyadded"],this.gQ));return null};
g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();DD(this.i)&&(c=QGa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new EV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},wt(function(f){PGa(e,"t.generateRequest",f)}));
return e}if(AD(this.i))return SGa(this,c);if(CD(this.i))return RGa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new EV(this.element,this.i,c,null,null)};
g.k.iQ=function(a){var b=QV(this,a);b&&b.PM(a)};
g.k.hQ=function(a){var b=QV(this,a);b&&b.OM(a)};
g.k.gQ=function(a){var b=QV(this,a);b&&b.MM(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ya=function(){var a;this.B=this.u=null;null===(a=this.C)||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.ya.call(this);delete this.element};g.w(RV,g.E);
RV.prototype.init=function(){var a=this,b,c;return g.A(function(d){if(1==d.i)return g.Hm(a.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.i.src=a.B.D,document.body.appendChild(a.i),a.C.T(a.i,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new OV(a.i,
a.B);g.H(a,a.u);a.u.attach();g.ta(d)})};
RV.prototype.I=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new NT(c,a.initDataType);var d=oGa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.ma()});
f&&(g.H(this,f),this.D.push(f),zGa(f,function(h){NGa(h,f.i,d,e)},function(){b.ma()},function(){},function(){}))}};
RV.prototype.ma=function(){};
RV.prototype.ya=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.E.prototype.ya.call(this)};g.w(SV,bV);
SV.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.i.length)for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}b=!b}if(b){b=(0,g.P)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.q(this.B.values());for(var 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.ea("log_qoe","wvagt.delay."+
c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?TGa(this,a):(this.i.push({time:b+c,info:a}),g.Fr(this.u,c))}};
SV.prototype.ya=function(){this.i=[];bV.prototype.ya.call(this)};TV.prototype.get=function(a){a=VV(this,a);return-1!==a?this.values[a]:null};
TV.prototype.remove=function(a){a=VV(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
TV.prototype.set=function(a,b){var c=VV(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.w(WV,g.Q);g.k=WV.prototype;g.k.jQ=function(a){this.Jg("onecpt");a.initData&&YGa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.fV=function(a){this.Jg("onndky");YGa(this,a.initData,a.contentType)};
g.k.gt=function(a){this.Jg("onneedkeyinfo");this.Y.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));XGa(this,a)};
g.k.hJ=function(a){this.B.push(a);XV(this)};
g.k.createSession=function(a){var b=ZGa(this)?MEa(a):g.Ec(a.initData);this.u.get(b);this.xa=!0;a=new fV(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.oM,this);a.subscribe("keystatuseschange",this.Co,this);a.subscribe("licenseerror",this.pA,this);a.subscribe("newlicense",this.IM,this);a.subscribe("newsession",this.JM,this);a.subscribe("sessionready",this.XM,this);a.subscribe("fairplay_next_need_key_info",this.zM,this);BGa(a,this.C)};
g.k.IM=function(a){this.isDisposed()||(this.ma(),this.Jg("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.k.JM=function(){this.isDisposed()||(this.ma(),this.Jg("newlcssn"),this.B.shift(),this.xa=!1,XV(this))};
g.k.XM=function(){if(AD(this.i)&&(this.ma(),this.Jg("onsnrdy"),this.Ja--,0===this.Ja)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.k.Co=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&($Ga(this),this.Ba=!0);this.ma();this.Jg("onksch");if(!gV(a)&&g.Hw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(gV(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(!gV(a)||c)b=a.D;b=g.Wb(b,"UHD2")||g.Wb(b,"UHD2HDR")?
"highres":g.Wb(b,"UHD1")||g.Wb(b,"UHD1HDR")?"hd2160":g.Wb(b,"HD")||g.Wb(b,"HDHDR")?"hd1080":g.Wb(b,"HD720")||g.Wb(b,"HD720HDR")?"hd720":"large"}a:{c=oA("auto",b,!1,"l");if(this.videoData.Tg){if(this.S.equals(c))break a}else if(ana(this.S,b))break a;this.S=c;this.ea("qualitychange");this.ma();this.Jg("updtlq"+b)}this.ea("keystatuseschange",a)}};
g.k.oM=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.k.zM=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.k.pA=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&$Ga(this),this.ea("licenseerror",a,b,c,d))};
g.k.Cs=function(){return this.S};
g.k.ya=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.q(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.oM,this),b.unsubscribe("keystatuseschange",this.Co,this),b.unsubscribe("licenseerror",this.pA,this),b.unsubscribe("newlicense",this.IM,this),b.unsubscribe("newsession",this.JM,this),b.unsubscribe("sessionready",this.XM,this),b.unsubscribe("fairplay_next_need_key_info",this.zM,this),b.dispose();
this.u.clear();UV(this.I);UV(this.K);this.heartbeatParams=null;g.Q.prototype.ya.call(this)};
g.k.Kb=function(){for(var a={systemInfo:this.i.Kb(),sessions:[]},b=g.q(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Kb());return a};
g.k.mf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.mf()+(this.D?"/KR":"")};
g.k.Jg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.ma(),(this.videoData.oa||b)&&this.ea("ctmp","drmlog",a))};
g.k.ma=function(){};g.w($V,g.E);$V.prototype.Qz=function(){return this.B};
$V.prototype.handleError=function(a){var b=this,c;eHa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!bW(this,a.errorCode,a.details))&&!gHa(this,a))if(a.i){var d=null===(c=this.Da.Ya)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f=
"6"}this.Da.Jf(a.errorCode,e,g.YC(a.details),f)}else this.Da.ea("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.md(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)(),ND(a,"manifest",function(h){b.I=!0;b.Ca("pathprobe",h)},function(h){b.md(h.errorCode,h.details)}))};
$V.prototype.Ca=function(a,b){this.Da.Rb.Ca(a,b)};
$V.prototype.md=function(a,b){b=g.YC(b);this.Da.Rb.md(a,b)};cW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
cW.prototype.N=function(a){return this.Y.N(a)};g.w(fW,g.E);fW.prototype.Nc=function(a){zHa(this);this.playerState=a.state;0<=this.B&&g.lH(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
fW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(cRa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
fW.prototype.send=function(){if(!(this.C||0>this.u)){zHa(this);var a=g.pS(this.i)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=ZF(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=AHa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.Y.La+36E5<(0,g.P)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.XF(this.i.videoData),isGapless:this.i.videoData.La,isServerStitchedDai:this.i.videoData.enableServerStitchedDai};!a&&this.i.N("html5_health_to_gel")&&g.Wv("html5PlayerHealthEvent",b);this.i.N("html5_health_to_qoe")&&(b.muted=a,this.K(b));this.C=!0;this.dispose()}};
fW.prototype.ya=function(){this.C||this.send();g.E.prototype.ya.call(this)};
var cRa=/\bnet\b/;var EHa=window;var CHa=/[?&]cpn=/;g.w(g.jW,g.E);g.k=g.jW.prototype;g.k.AS=function(){var a=g.pS(this.i);kW(this,a)};
g.k.Lv=function(){return this.Ba};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.pS(this.i),-1<["PL","B","S"].indexOf(this.Bd)&&(!g.Se(this.u)||a>=this.C+30)&&(g.iW(this,a,"vps",[this.Bd]),this.C=a),!g.Se(this.u))){7E3===this.sequenceNumber&&g.cy(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){lW(this,a);var b=a,c=this.i.Da.Tv(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.bb,h=e&&!this.rb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+
";tf."+c.totalVideoFrames);else(0<f||h)&&g.iW(this,b,"df",[f]);this.bb=d;this.rb=e;!this.i.Y.N("disable_webgl_reporting")&&0<this.X&&(g.iW(this,a,"glf",[this.X]),this.X=0);a={event:"streamingstats"};this.i.videoData.B&&(a.fmt=this.i.videoData.B.hc(),(b=this.i.videoData.K)&&b.hc()!==a.fmt&&(a.afmt=b.hc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.D&&(a.addocid=this.D);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;a.el=jG(this.i.videoData);
a.docid=this.i.videoData.videoId;a.content_v=kG(this.i.videoData);a.ns=this.i.Y.oa;a.fexp=this.i.Y.experiments.experimentIds.toString();a.cl=(411797165).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=ZF(this.i.videoData))&&(a.live=b);PF(this.i.videoData)&&(a.drm=1,this.i.videoData.I&&(a.drm_system=wQa[this.i.videoData.I.flavor]||0),this.i.videoData.LE&&(a.drm_product=this.i.videoData.LE));Ht()&&this.i.videoData.X&&(a.ctt=this.i.videoData.X,a.cttype=this.i.videoData.Wh,
this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));nG(this.i.videoData)?a.dai=this.i.videoData.enableServerStitchedDai?"ss":"cs":this.i.videoData.Bc?a.dai="cs":this.i.videoData.oH&&(a.dai="disabled");a.seq=this.sequenceNumber++;g.Ze(a,this.i.Y.deviceParams);if(!this.i.videoData.yN&&this.i.N("html5_log_server_url_param")&&a){b=this.i.videoData.pY;c=new Set("docid ei event live ns drm_product".split(" "));d=new Set("osid plid feature referrer sdetail sourceid q".split(" "));
e=new Set(["cl","fexp","drm"]);for(var l in b)d.has(l)||e.has(l)||(a[l]?a[l]!==b[l]?g.cy(new g.aw("b161906944_qoe_diff",l,a[l],b[l])):c.has(l)||g.cy(new g.aw("b161906944_qoe_same",l,b[l])):g.cy(new g.aw("b161906944_qoe_pass",l,b[l])));l=new Set("fmt afmt cpn el seq cbrand cbr cbrver c cver ctheme cplayer cos cosver cplatform".split(" "));c=g.q(Object.keys(a));for(d=c.next();!d.done;d=c.next())d=d.value,l.has(d)||a[d]&&b&&!b[d]&&g.cy(new g.aw("b161906944_qoe_missing",d,a[d]));this.i.videoData.yN=!0}l=
g.Ui("//"+this.i.Y.lj+"/api/stats/qoe",a);a=b="";c=g.q(Object.keys(this.u));for(d=c.next();!d.done;d=c.next())d=d.value,null===this.u[d]?g.cy(new g.aw("Stats report key has invalid value",d)):(d="&"+d+"="+this.u[d].join(","),100<d.length?a+=d:b+=d);l+=b;a=a.replace(/ /g,"%20");e=this.i.videoData.nf();c=!1;if(l.includes("&dt=")||l.includes("&cotn=")){if(this.i.Y.N("kevlar_woffle")||this.i.Y.N("qoe_nwl_downloads"))c=!0}else this.i.Y.N("qoe_with_networkless")&&(c=!0);b=this.i.Y.N("qoe_send_and_write");
d=this.i.Y;f=this.i.N("web_player_vss_pageid_header")?this.i.Y.pageId:void 0;(e=gW(l,d,f,this.i.Y.sendVisitorIdHeader?this.i.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,hW(l,e,{token:this.i.videoData.X,SG:this.i.videoData.Wh,mdxEnvironment:this.i.videoData.mdxEnvironment},d,void 0,c,b&&this.Aa)):c?(c=this.i.Y.N("networkless_ajax"),d={method:"POST",postBody:a},b&&this.Aa?this.i.Y.N("use_new_nwl")?jx().sendAndWrite(l,d):rx(l,d):c?g.hu(l,{method:"POST",postBody:a}):this.i.Y.N("use_new_nwl")?
jx().sendThenWrite(l,d):qx(l,d)):lv(l,void 0,a)}this.u={}}};
g.k.Zw=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.TN=function(){if(this.i.videoData.I){var a=this.i.videoData.I;nW(this,"eme-"+(a.keySystemAccess?"final":AD(a)?"ms":DD(a)?"ytfp":CD(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.pS(this.i);this.md(c,a,b);lW(this,c);mW(this)};
g.k.md=function(a,b,c){var d=this.i.Da.getCurrentTime();b=[b,d.toFixed(3)];c&&b.push(MHa(c));g.iW(this,a,"error",b);this.I=!0};
g.k.Nc=function(a){var b=a.state,c=g.pS(this.i),d=this.getPlayerState(a.state);if(d!==this.Bd){if(!(c<this.C)){if("PL"===this.Bd)this.playTimeSecs+=c-this.C;else if("B"===this.Bd&&this.xa){this.xa=!1;var e=g.S(this.i.Y.experiments,"html5_disable_last_state_change")?this.C:this.Va;this.rebufferTimeSecs+=c-e;!this.Sa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.Da.Hw(),this.u.qoealert=["1"],this.Sa=!0)}"B"!==d||"PL"!==this.Bd&&"PB"!==this.Bd||(this.xa=!0);this.C=c}"PL"===this.Bd&&("B"===
d||"S"===d)||this.i.videoData.oa?lW(this,c):kW(this,c);"PL"===d&&g.Fr(this.Db);this.i.N("html5_unstarted_buffering")&&this.i.videoData.oa&&g.T(a.state,64)&&"N"!==d&&this.Ca("unstub",d);g.iW(this,c,"vps",[d]);this.Bd=d;this.C=this.Va=c;this.I=!0}a=b.getData();g.T(b,128)&&a&&this.md(c,a.errorCode,a.aG);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.Ec()&&!this.K&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.K=!0);mW(this)};
g.k.Nw=function(a){var b=g.pS(this.i);g.iW(this,b,"vfs",[a.i.id,a.u,this.ub,a.reason]);this.ub=a.i.id;var c=this.i.Da.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.IE();1<d&&c.push(d);g.iW(this,b,"view",c)}this.La||(this.i.videoData.oa&&nW(this,"rqs"),this.i.videoData.i&&tA(this.i.videoData.i)&&(this.u.preload=["1"]));this.I=this.La=!0;"m"===a.reason&&100===++this.Gb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.iW(this,b,"vps",[this.Bd]);
this.reportStats(b)};
g.k.Fw=function(a){var b=g.pS(this.i);a.i.id!==this.Ja&&(g.iW(this,b,"afs",[a.i.id,this.Ja,a.reason]),this.Ja=a.i.id)};
g.k.Bo=ba(36);g.k.Ao=ba(39);g.k.onPlaybackRateChange=function(a){var b=g.pS(this.i);a&&a!==this.jb&&(g.iW(this,b,"rate",[a]),this.jb=a);this.reportStats(b)};
g.k.Ij=ba(15);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";if(g.zJ(a)&&g.T(a,64))return"B";var b=dRa[CJ(a)];g.zE(this.i.Y)&&"B"===b&&3===this.i.Da.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b};
g.k.ya=function(){g.E.prototype.ya.call(this);Pt(this.Wa)};
g.k.Ca=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Fb.indexOf(a);e||this.Fb.push(a);if(!c||!e){b="string"!==typeof b?g.YC(b):b;b=MHa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.pS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ma();this.u.ctmp=d;mW(this);return f}};
g.k.ax=function(a,b,c){this.S={oX:Number(this.Ca("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),hM:a,bX:b,isAd:c}};
g.k.xt=function(a,b,c){g.iW(this,g.pS(this.i),"ad_playback",[a,b,c])};
g.k.dG=function(a,b,c){this.adCpn=null!==a&&void 0!==a?a:"";this.D=null!==b&&void 0!==b?b:"";this.adFormat=null!==c&&void 0!==c?c:""};
g.k.ma=function(){};
var g3={},dRa=(g3[5]="N",g3[-1]="N",g3[3]="B",g3[0]="EN",g3[2]="PA",g3[1]="PL",g3);NHa.prototype.update=function(){if(this.S){var a=this.i.Da.getCurrentTime()||0;this.i.Y.N("html5_vss_media_time_killswitch")||(a=this.i.Da.Gh()||0);var b=g.pS(this.i);if(a!==this.u||RHa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||RHa(this,a,b))){var d=this.i.Hh();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.X?(this.X=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(qW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};rW.prototype.send=function(a){if(!this.La){var b=tW(this);b=g.Ui(this.uri,b);if(this.rb)this.attestationResponse&&(a=sW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.Z?this.oa?this.xa?jx().sendAndWrite(b,a):rx(b,a):this.xa?jx().sendThenWrite(b,a):qx(b,a):g.hu(b,a));else{var c=sW(this,a);hW(b,c,{token:this.S,SG:this.ob,mdxEnvironment:this.mdxEnvironment},this.Y,a,this.Z,this.isFinal&&this.Id||this.oa||this.C&&this.Wd)}this.La=!0}};
rW.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var h3={},THa=(h3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,h3.LIVING_ROOM_APP_MODE_MAIN=1,h3.LIVING_ROOM_APP_MODE_KIDS=2,h3.LIVING_ROOM_APP_MODE_MUSIC=3,h3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,h3.LIVING_ROOM_APP_MODE_GAMING=5,h3);g.w(vW,g.E);g.k=vW.prototype;g.k.td=function(){this.u.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Zb&&this.C&&!this.Z)a=this.u,a=(a.i.Y.N("html5_vss_media_time_killswitch")?a.I+a.i.Da.getCurrentTime()-a.B:a.I+a.i.Da.Gh()-a.B)>=this.i.videoData.Zb;a&&(this.C&&this.i.videoData.Zb&&(a=wW(this,"delayplay"),a.hd=!0,a.send(),this.Z=!0),VHa(this))};
g.k.Nc=function(a){this.isDisposed()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.lH(a,2)&&this.C&&zW(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&xW(this,!1)):this.currentPlayerState="paused")};
g.k.ya=function(){g.E.prototype.ya.call(this);g.Ot(this.B);this.B=NaN;PHa(this.u)};
g.k.Kb=function(){return tW(wW(this,"playback"))};
g.k.Tt=function(){this.i.videoData.S.eventLabel=jG(this.i.videoData);this.i.videoData.S.playerStyle=this.i.Y.playerStyle;this.i.videoData.Gb&&(this.i.videoData.S.feature="pyv");this.i.videoData.S.vid=this.i.videoData.videoId;var a=this.i.videoData.S;var b=this.i.videoData;b=b.isAd()||!!b.Gb;a.isAd=b};
g.k.Xg=function(a){var b=wW(this,"engage");b.X=a;return SHa(b,$Ha(this.i))};ZHa.prototype.isEmpty=function(){return this.endTime===this.startTime};BW.prototype.N=function(a){return this.Y.N(a)};
var aIa={other:1,none:2,wifi:3,cellular:7};g.w(g.CW,g.E);g.k=g.CW.prototype;g.k.Nc=function(a){var b;if(g.lH(a,1024)||g.lH(a,512)||g.lH(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.K||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Sf?null===(b=this.C.get(this.Sf))||void 0===b?void 0:b.Nc(a):this.i&&this.i.Nc(a);this.qoe&&this.qoe.Nc(a);this.B&&this.B.Nc(a)};
g.k.td=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Sf?null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.td():this.i&&this.i.td()};
g.k.md=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
g.k.Nw=function(a){this.qoe&&this.qoe.Nw(a)};
g.k.Fw=function(a){this.qoe&&this.qoe.Fw(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Bo=ba(35);g.k.Ca=function(a,b,c){this.qoe&&this.qoe.Ca(a,b,c)};
g.k.ax=function(a,b,c){this.qoe&&this.qoe.ax(a,b,c)};
g.k.Zw=function(a){this.qoe&&this.qoe.Zw(a)};
g.k.xt=function(a,b,c){this.qoe&&this.qoe.xt(a,b,c)};
g.k.Ao=ba(38);g.k.Ij=ba(14);g.k.Lv=function(){if(this.qoe)return this.qoe.Lv()};
g.k.Kb=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Sf)null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.Kb();else if(this.i)return this.i.Kb();return{}};
g.k.Xg=function(a){return this.i?this.i.Xg(a):function(){}};
g.k.Tt=function(){this.i&&this.i.Tt()};g.w(DW,g.E);g.k=DW.prototype;g.k.Ed=function(a,b){this.vl();b&&2E3<=this.i.i.length&&this.zv("captions",1E4);b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.u);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.u(c,b.i[b.i.length-1])?b.i.push(c):g.rc(b.i,c,b.u)}this.u=NaN;this.vl()};
g.k.Hf=function(a){1E4<a.length&&g.cy(new g.aw("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
oIa(this.i,b);this.vl()}};
g.k.zv=function(a,b){var c=(isNaN(this.u)?g.T(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-b;b=this.Wl().filter(function(d){return d.namespace===a&&d.end<c});
this.Hf(b);return b};
g.k.Wl=function(){return this.isDisposed()?[]:this.i.i};
g.k.reset=function(){this.started=!1;this.C.stop();this.i.i=[];this.B=[];this.vl()};
g.k.Ye=function(a){var b=this.Wl().filter(function(c){return c.namespace===a});
this.Hf(b);return b};
g.k.Nc=function(a){this.started&&(this.vl(),g.T(a.uo,16)&&(a=nIa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.GD=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.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.JD=function(a){var b=[];if(!a.length)return b;a.sort(g.Uy);a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.vl=function(){this.I=!0;if(!this.K){for(var a=3;this.I&&a;)this.I=!1,this.K=!0,this.lL(),this.K=!1,a--;this.D().Ec()&&(a=nIa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.lL=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.T(a,32)&&this.Z.start();for(var b=g.T(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.T(a,2),d=[],e=[],f=g.q(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.JD(e));f=e=null;c?(a=lIa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=mIa(this.i)):a=this.u<=b&&AJ(a)?kIa(this.i,this.u,b):lIa(this.i,b);
d=d.concat(this.GD(a));e&&(d=d.concat(this.JD(e)));f&&(d=d.concat(this.GD(f)));this.u=b;pIa(this,d)}};
g.k.ya=function(){this.B=[];this.i.i=[];g.E.prototype.ya.call(this)};
g.jS.Lz(DW,{Ed:"crmacr",GD:"crmncr",JD:"crmxcr",lL:"crmis",Hf:"crmrcr"});g.w(HW,g.Q);HW.prototype.im=function(){return this.K};
HW.prototype.sj=function(){return Math.max(this.S()-vIa(this,!0),this.videoData.getMinSeekableTime())};
HW.prototype.ma=function(){};g.w(MW,g.E);MW.prototype.Nc=function(){g.Fr(this.B)};
MW.prototype.D=function(){var a=this,b=this.Da.ld(),c=this.Da.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.T(c,8)&&g.T(c,16),h=this.Da.Sp().isBackground()||c.isSuspended();NW(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.i)&&0<this.i&&Rta(b,this.i);var l=!d||10<Math.abs(d-this.i);NW(this,this.Ja,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
var m=f&&TC(b.Uf(),this.i);f=this.Da.Ya;l=!f||!f.policy.Zb;var n=function(){b.seekTo(a.i+.001)};
NW(this,this.oa,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return ZV(a.Da)};
NW(this,this.xa,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=AJ(c);m=g.BJ(c);var r=b.Uf(),t=SC(r,d);yIa(this,b,r,d,h,p,m);r=0<=t&&r.end(t)>d+5;r=p&&m&&r;NW(this,this.K,r&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");NW(this,this.S,r&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Qp();n=Hoa(n,u);n=!f.C.i&&d===n;NW(this,this.Va,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}NW(this,this.X,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.Wb(this.Da.Mj,"ad")&&!n;NW(this,this.I,n,!n,"qoe.start15s",function(){a.Da.Pd("ad")},"ads_preroll_timeout");
n=this.Da.getVideoData();r=.5>d-this.C;t=n.isAd()&&p&&!m&&r;p=function(){var v=a.Da,y=v.uy.Jc();(!y||!v.videoData.isAd()||y.getVideoData().Bc!==v.getVideoData().Bc)&&v.videoData.Sd||v.Jf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+v.videoData.videoId)};
NW(this,this.Ka,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&TC(b.Uf(),d+5)&&r;NW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");NW(this,this.Sa,g.zJ(c)&&g.T(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
NW(this,this.Z,!!f&&!f.mediaSource&&g.zJ(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
MW.prototype.md=function(a,b,c){b=this.Kb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Da.md(new g.ZC(a,!1,b));this.u[a]=!0};
MW.prototype.Kb=function(a){a=Object.assign(this.Da.Kb(!0),a.Kb());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
KW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
KW.prototype.Kb=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.w(PW,g.E);g.k=PW.prototype;g.k.setMediaElement=function(a){g.Ex(this.Ka);(this.ra=a)?(MIa(this),OW(this)):RW(this)};
g.k.Nc=function(a){var b;this.Z.Nc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Ec()?g.Fr(this.oa):this.oa.stop());if(this.ra)if(8===a.uo.state&&AJ(a.state)&&g.BJ(a.state)){if(this.policy.B){a=this.ra.getCurrentTime();var c=this.ra.Uf();var d=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?SC(c,Math.max(a-3.5,0)):SC(c,a-3.5);0<=d&&a>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(this.Va-d)||(this.Da.Ca("seekover","b."+RC(c,
"_")+";cmt."+a),this.Va=d,this.seekTo(d,{Vp:!0,Ud:"playbacktimeline_postLiveDisc"})))}}else(null===(b=a.state)||void 0===b?0:8===b.state)&&!this.videoData.ob&&0<this.videoData.limitedPlaybackDurationInSeconds&&tX(this.Da,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&JIa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0};
g.k.Gh=function(){return this.getCurrentTime()-this.dd()};
g.k.sj=function(){return this.u?this.u.sj():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return JW(this.u,a)};
g.k.im=function(){return!!this.u&&this.u.im()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.AO?!1:c.AO;var d=void 0===c.BO?0:c.BO,e=void 0===c.Vp?!1:c.Vp,f=void 0===c.TG?0:c.TG,h=void 0===c.Ud?"":c.Ud;if(void 0===c.lp?0:c.lp)a+=this.dd();c=a;var l=!isFinite(c)||(this.u?JW(this.u,c):c>=this.kd())||!g.bG(this.videoData);l||this.Da.Ca("seeknotallowed",c+";"+this.kd());if(!l)return this.C&&(this.C=null,UW(this)),Jh(this.getCurrentTime());this.ma();if(.005>Math.abs(a-this.i)&&this.S)return this.ma(),this.D;h&&(c=a,(g.RF(this.videoData)||
this.N("html5_log_seek_reasons"))&&this.Da.Ca("seekreason","reason."+h+";tgt."+c));this.S&&RW(this);this.D||(this.D=new hS);a&&!isFinite(a)&&QW(this,!1);h=a;(TW(this)&&!(this.ra&&0<this.ra.Ch()&&0<qJ(this.ra))||MF(this.videoData)&&this.getMinSeekableTime()===this.kd(!1)?0:isFinite(h)||!MF(this.videoData))&&(a=IIa(this,a,e));a&&!isFinite(a)&&QW(this,!1);this.B=a;this.Ba=f;this.i=a;this.u&&(e=this.u,f=a,wIa(e,f,!1),xIa(e,f));e=this.Da;f=a;e.Oc.B=f;h=e.Vu;h.mediaTime=f;h.i=!0;b&&JX(e);e.Tl&&f>e.videoData.endSeconds&&
isFinite(f)&&DX(e);f<e.kd()-.01&&(h=wJ(e.playerState,2),g.T(h,8)&&(h=wJ(h,4)),e.Ub(h));e.ea("SEEK_TO",e,f);this.D&&(b?d&&this.Ja.start(d):(this.ma(),this.S=!0,CIa(this)));(b=this.Da.Tl)&&a>b.start&&DX(this.Da);return this.D};
g.k.kd=function(a){var b;if(!this.videoData.isLivePlayback)return this.videoData.kd();if(!this.N("html5_linear_live_max_seekable_killswitch")&&tG(this.videoData)&&(null===(b=this.ra)||void 0===b?0:b.ul())&&this.videoData.i)return a=this.getCurrentTime(),rsa(1E3*this.getIngestionTime(a))+a;if(MF(this.videoData)&&this.videoData.mj&&this.videoData.i)return this.videoData.i.kd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.i){if(!a&&this.u)return this.u.sj();a=this.videoData.kd();this.policy.i&&
this.ra&&(a=Math.max(a,Sta(this.ra)));return a+this.timestampOffset}return this.ra?Du()?rsa(this.ra.Vx().getTime()):qJ(this.ra)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a,b=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(tG(this.videoData)&&this.videoData.i){var c=Number(null===(a=this.videoData.progressBarStartPosition)||void 0===a?void 0:a.utcTimeMillis)/1E3,d=this.getCurrentTime();d=this.getIngestionTime(d)-d;if(!isNaN(c)&&!isNaN(d))return Math.max(b,c-d)}return b};
g.k.ya=function(){SW(this,null);this.Z.dispose();g.E.prototype.ya.call(this)};
g.k.Kb=function(){var a={};this.Ya&&Object.assign(a,this.Ya.Kb());this.ra&&Object.assign(a,this.ra.Kb());return a};
g.k.LF=function(a){this.N("html5_unrewrite_timestamps")?this.timestampOffset=a:this.Sa=a};
g.k.getStreamTimeOffset=function(){return MF(this.videoData)?this.Sa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.dd=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.k.Mp=function(){if(!this.ra)return 0;if(cG(this.videoData)){var a=Sta(this.ra)+this.timestampOffset-this.getMinSeekableTime(),b=this.kd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.ra.Mp()};
g.k.qA=function(a){this.I&&(this.I.i=a.audio.index)};
g.k.N=function(a){return this.Y&&this.Y.N(a)};
g.k.ma=function(){};VW.prototype.isFinished=function(){return this.finished};
VW.prototype.start=function(){this.started=!0};
VW.prototype.reset=function(){this.finished=this.started=!1};g.w(WW,NQ);WW.prototype.i=function(a,b){var c=d3.Po("oap");b=NQ.prototype.i.call(this,a,b);d3.Cn(c,Math.ceil(a.length/16));return b};
WW.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.i)return e=d3.Po("oan2"),g.x(h,NQ.prototype.u.call(d,a,b,c),2);f=h.u;d3.Cn(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(XW,OQ);XW.prototype.encrypt=function(a,b){var c=d3.Po("oap");b=OQ.prototype.encrypt.call(this,a,b);d3.Cn(c,Math.ceil(a.byteLength/16));return b};YW.prototype.encrypt=function(a){return(new XW(this.i.i)).encrypt(a,this.iv)};
YW.prototype.decrypt=function(a,b){return(new XW(this.i.i)).decrypt(a,b)};g.w(ZW,g.E);g.k=ZW.prototype;g.k.Yf=function(a){var b;return!(null===(b=this.Oe.get(a))||void 0===b||!b.ge.totalLength)};
g.k.Rh=function(a){a=this.Oe.get(a);var b=a.ge;a.fD+=b.totalLength;a.ge=new kC;return b};
g.k.sf=function(a){return this.Oe.get(a).sf};
g.k.ma=function(){};
g.k.ya=function(){g.E.prototype.ya.call(this);for(var a=g.q(this.Oe.keys()),b=a.next();!b.done;b=a.next())$W(this,b.value);this.Oe.clear()};var i3={},UIa=(i3.f="video",i3["1"]="video",i3["1h"]="video",i3.h="video",i3.H="video",i3["9"]="video",i3["("]="video",i3["9h"]="video",i3["(h"]="video",i3.o="audio",i3.O="audio",i3.a="audio",i3.ah="audio",i3.A="audio",i3.m="audio",i3.M="audio",i3.mac3="audio",i3.MAC3="audio",i3.meac3="audio",i3.MEAC3="audio",i3.so="audio",i3.sa="audio",i3["8"]="unknown",i3["*"]="unknown",i3.w="unknown",i3["3"]="unknown",i3["6"]="unknown",i3[""]="unknown",i3);$Ia.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.i){case 1:if(b.i.length&&!b.i[0].isEncrypted)return m.return();b.u=!0;c=new Uint8Array(16);MQ()?d=new WW(a):e=new XW(a);case 2:if(!b.i.length||!b.i[0].isEncrypted){m.fb(3);break}f=b.i.shift();if(!d){h=e.decrypt(f.buffer,c);m.fb(4);break}return g.x(m,d.decrypt(f.buffer,c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}aJa(b.ao.wd,f.IG,l);m.fb(2);break;case 3:b.ao.ue("omdf"),
aX(b),b.u=!1,g.ta(m)}})};g.k=cJa.prototype;
g.k.feed=function(a,b){var c=b.totalLength;this.ma();switch(a){case 10:var d=rQ(new oQ(b),1);this.ma();a=!1;switch(d){case 5:c=this.wd;c.ue("orfb");if(c.N("html5_onesie_host_probing")&&c.xhr){var e={rc:c.xhr.status,lb:c.xhr.Hk(),rt:(1E3*DFa(c.Zk)).toFixed(),shost:g.Ji(c.nt),trigger:"o1"};c.Ca("pathprobe",g.YC(e))}break;case 0:this.iv=(new SIa(b)).i.iv;break;case 16:this.vA(b);break;case 2:break;case 23:c=new WIa(b);e=this.wd;c.videoId!==e.videoData.videoId?e.Ca("ompp","vid."+c.videoId):e.cF=!0;break;
case 24:c=this.wd;c.cF=!1;c.hx=!1;bX(c);break;default:a=!0}this.wd.wj&&this.wd.Ca("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.u=d;break;case 11:eJa(this,b);break;case 20:c=new VIa(b);e=c.B;a=c.u;var f=c.Qk,h=void 0!==this.i[a];this.wd.wj&&this.wd.Ca("ombup","id.20;len."+b.totalLength+";hid."+e+";fid"+a);this.ma();this.B[e]=a;h?(b=this.i[a].headers,b.push(c),c.i&&2===b.length&&this.wd.vA(a,b[0].i+b[1].i)):(this.i[a]={XK:!1,Qk:f,headers:[c]},null===(d=this.wd.Fe)||void 0===
d?void 0:(b=f,b=void 0===b?!1:b,d.Oe.set(a,{ge:new kC,fD:0,bytesReceived:0,sf:!1,Qk:b}),d.ma()));break;case 21:fJa(this,b,!1);break;case 12:fJa(this,b,!0);break;case 22:d=pC(b,0);this.wd.wj&&this.wd.Ca("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.B[d]||null;this.ma();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||bJa(this.queue,b));break;case 37:b=new TIa(b);b.i&&(this.wd.OD=b);break;default:this.wd.wj&&this.wd.Ca("ombup","id."+a+";len."+c+";ignored.1"),this.ma()}};
g.k.vA=function(a){a=new ZIa(a);this.wd.vA(a.i,a.u);this.ma()};
g.k.wF=function(a){var b=this,c,d,e,f,h,l,m,n,p,r,t;return g.A(function(u){if(1==u.i){b.wd.wF();c=oC(a);var v=b.wd;var y=b.iv;v=MQ()?OIa(v.NF,c,y):Promise.resolve(v.NF.decrypt(c,y));return g.x(u,v,2)}d=u.u;try{e=new XIa(new kC([d]))}catch(G){return f=G instanceof Error?{name:G.name,message:G.message}:{},f.webcrypto=""+ +!!MQ(),h=new g.ZC("onesie.response.parse",!1,f),u.return(Promise.reject(h))}if(1!==e.onesieProxyStatus)return l={st:e.onesieProxyStatus,webcrypto:""+ +!!MQ(),textencoder:""+ +!!g.B.TextEncoder},
m=new g.ZC("onesie.response.badproxystatus",!1,l),u.return(Promise.reject(m));if(200!==e.httpStatus)return n={st:e.httpStatus},p=new g.ZC("onesie.response.badstatus",!1,n),u.return(Promise.reject(p));r=e.body;if(b.wd.N("html5_onesie_faster_string_decode"))a:if(PA)v=PA.decode(r);else{if("FetchInternal"in window)try{v=FetchInternal.decodeFromUTF8(r);break a}catch(G){}v=0;y=[];for(var z=r.length;v<z;){for(var C=0;1024>C&&v<z;){var F=r[v++];if(128>F)y2[C++]=F;else{if(224>F)F=(F&31)<<6|r[v++]&63;else if(240>
F)F=(F&15)<<12|(r[v++]&63)<<6|r[v++]&63;else{if(1024===C+1){--v;break}F=(F&7)<<18|(r[v++]&63)<<12|(r[v++]&63)<<6|r[v++]&63;F-=65536;y2[C++]=55296|F>>10;F=56320|F&1023}y2[C++]=F}}F=String.fromCharCode.apply(String,y2);1024>C&&(F=F.substr(0,C));y.push(F)}v=y.join("")}else v=g.B.TextDecoder?(new TextDecoder).decode(r):g.fb(r);t=v;b.ma();b.ma();return u.return(t)})};
g.k.ue=function(a){this.wd.ue(a)};
g.k.ma=function(){};g.w(dX,cX);dX.prototype.u=function(a){AQ(a,1,this.name);AQ(a,2,this.value)};g.w(eX,cX);eX.prototype.u=function(a){AQ(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,yQ(a,2),c.u(a),zQ(a);AQ(a,3,this.postBody)};g.w(fX,cX);fX.prototype.u=function(a){this.i.kJ&&wQ(a,1,this.i.kJ);this.i.numChannels&&wQ(a,2,this.i.numChannels);this.i.XE&&wQ(a,3,this.i.XE)};
var j3={},eRa=(j3.a=1,j3.o=3,j3.meac3=5,j3.mac3=7,j3);g.w(gX,cX);gX.prototype.u=function(a){this.i.QO&&wQ(a,1,this.i.QO);this.i.SL&&wQ(a,3,this.i.SL);this.i.TL&&wQ(a,4,this.i.TL);this.i.maxFramerate&&wQ(a,11,this.i.maxFramerate);this.i.XE&&wQ(a,12,this.i.XE)};
var k3={},fRa=(k3["1"]=8,k3["9"]=4,k3.h=2,k3);var hX,l3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},gRa=[["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],hRa=[["140"],["251"]],mJa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},l3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",
type:'video/mp4; codecs="av01.0.08M.08"'},l3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},l3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},l3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"140",
type:'audio/mp4; codecs="mp4a.40.2"'},l3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},l3)],m3=["136","135","134","133","160"],n3=["247","244","243","242"],o3={},lJa=(o3["137"]=m3,o3["248"]=n3,o3["399"]=["398","397","396","395","394"],o3["298"]=m3,o3["302"]=n3,o3["299"]=["298","137"].concat(m3),o3["303"]=["302","248"].concat(n3),o3["140"]=[],o3["251"]=["250"],o3),p3={},iRa=(p3["140"]={numChannels:2},p3["251"]={audioSampleRate:48E3,numChannels:2},p3),q3={},
jRa=(q3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},q3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},q3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},q3["302"]={width:1280,height:720,bitrate:25E5,fps:60},q3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},q3["298"]={width:1280,height:720,bitrate:35E5,fps:60},q3["401"]={width:3840,height:2160,bitrate:5E6,fps:60},q3["400"]={width:2560,height:1440,bitrate:2E6,fps:60},q3["399"]={width:1920,height:1080,bitrate:1E6,fps:60},q3["313"]=
{width:3840,height:2160,bitrate:8E6,fps:30},q3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},q3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},q3["247"]={width:1280,height:720,bitrate:15E5,fps:30},q3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},q3["136"]={width:1280,height:720,bitrate:3E6,fps:30},q3),r3={},jJa=(r3["133"]=240,r3["134"]=360,r3["135"]=480,r3["136"]=720,r3["137"]=1080,r3["242"]=240,r3["243"]=360,r3["244"]=480,r3["247"]=720,r3["248"]=1080,r3["298"]=720,r3["299"]=1080,r3["302"]=
720,r3["303"]=1080,r3["395"]=240,r3["396"]=360,r3["397"]=480,r3["398"]=720,r3["399"]=1080,r3),s3={},kRa=(s3["1"]='video/mp4; codecs="av01.0.08M.08"',s3["9"]='video/webm; codecs="vp9"',s3.h='video/mp4; codecs="avc1.64001e"',s3.o='audio/webm; codecs="opus"',s3.a='audio/mp4; codecs="mp4a.40.2"',s3);g.w(iX,cX);iX.prototype.u=function(a){if(this.i.RO)for(var b=g.q(this.i.RO),c=b.next();!c.done;c=b.next())c=c.value,yQ(a,1),c.u(a),zQ(a);if(this.i.lJ)for(b=g.q(this.i.lJ),c=b.next();!c.done;c=b.next())c=c.value,yQ(a,2),c.u(a),zQ(a)};g.w(jX,cX);
jX.prototype.u=function(a){this.i.oO&&wQ(a,13,this.i.oO);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;vQ(a,112);vQ(a,b<<1^b>>31)}this.i.BL&&wQ(a,16,this.i.BL);this.i.viewportHeight&&this.i.viewportWidth&&(wQ(a,18,this.i.viewportWidth),wQ(a,19,this.i.viewportHeight));this.i.fO&&wQ(a,21,this.i.fO);this.i.sJ&&wQ(a,23,this.i.sJ);void 0!==this.i.visibilityState&&wQ(a,34,this.i.visibilityState);this.i.mediaCapabilities&&(yQ(a,38),this.i.mediaCapabilities.u(a),zQ(a));void 0!==
this.i.nO&&wQ(a,39,this.i.nO);this.i.Un&&wQ(a,40,1)};g.w(kX,cX);kX.prototype.u=function(a){xQ(a,2,this.i);xQ(a,5,this.encryptedClientKey);xQ(a,6,this.iv);xQ(a,7,this.hmac);wQ(a,10,this.serializeResponseAsJson?1:0)};g.w(lX,cX);lX.prototype.u=function(a){yQ(a,2);this.B.u(a);zQ(a);yQ(a,3);this.C.u(a);zQ(a);this.onesieUstreamerConfig&&xQ(a,4,this.onesieUstreamerConfig);this.i&&xQ(a,9,this.i)};mX.prototype.feed=function(a){lC(this.i,a);oJa(this)};
mX.prototype.dispose=function(){this.i=new kC};g.w(nX,g.E);g.k=nX.prototype;g.k.ue=function(a){this.Da.ue(a)};
g.k.wF=function(){this.ue("orpr");this.WK=!0};
g.k.vA=function(a,b){var c;null===(c=this.Fe)||void 0===c?void 0:(c.Oe.get(a).Ek=b,c.ma());bX(this)};
g.k.Ca=function(a,b){this.Da.Ca(a,b)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,r,t;return g.A(function(u){if(1==u.i){a.ma();a.yA.start();a.fN&&a.xA.start();a.ue("ogpd");var v=a.playerRequest,y=a.Y,z=a.videoData,C=y.Vg;C="https://youtubei.googleapis.com/youtubei/"+C.innertubeApiVersion+"/player?key="+C.innertubeApiKey;var F=[new dX({name:"Content-Type",value:"application/json"})],G=z.nf();G&&F.push(new dX({name:"Authorization",value:"Bearer "+G}));F.push(new dX({name:"User-Agent",value:g.yb()}));(z=z.visitorData||g.N("VISITOR_DATA",
void 0))&&F.push(new dX({name:"X-Goog-Visitor-Id",value:z}));(y=g.xD(y.experiments,"debug_sherlog_username"))&&F.push(new dX({name:"X-Youtube-Sherlog-Username",value:y}));v=JSON.stringify(v);d=new eX({url:C,httpHeaders:F,postBody:v});try{var J=a.Y,U=a.videoData,K=a.Da.getPlayerSize(),X=a.Da.getVisibilityState(),la=a.XJ.onesieUstreamerConfig,Ea=null===(b=a.videoData.Pq)||void 0===b?void 0:b.i,qb=a.NF;var ib=qb.encrypt(gJa(d));var Ab=qb.i.encryptedClientKey,lc=qb.iv,Sa=qb.iv,cc=new PQ(qb.i.u);cc.update(ib);
cc.update(Sa);var Kb=uAa(cc);cc.update(cc.D);cc.update(Kb);var jh=uAa(cc);cc.reset();var Be=new kX(ib,Ab,lc,jh);v={};var kh=tD(0);if(kh){v.BL=kh;v.lastManualDirection=ppa();var pj=Yla()||0;0<pj&&(v.oO=(0,g.P)()-pj)}v.fO=tD();if(J.schedule.X||!J.N("html5_onesie_enable_server_side_badwidth_estimation"))v.sJ=WD(J.schedule,!0);var Uk=g.IE();v.viewportHeight=K.height*Uk;v.viewportWidth=K.width*Uk;v.visibilityState=X;v.nO=jv();J.N("html5_onesie_audio_only_playback")&&(v.Un=U.Un());if(J.N("html5_onesie_media_capabilities")){var qj=
QF(U),Je=J.u;C=[];J=[];for(var lh=g.q(gRa),Rc=lh.next();!Rc.done;Rc=lh.next())for(var od=g.q(Rc.value),Fg=od.next();!Fg.done;Fg=od.next()){var zf=Fg.value,rj=kRa[BC[zf]],sj=jRa[zf],Tf=sj&&rj?new CC(zf,rj,{video:new yC(sj.height,sj.width,sj.fps)}):null;if(Tf&&Tf.video&&!0===uA(qj,Tf,Je)){var Hd=Tf.video.height,Op=Tf.video.width,Pp=Tf.video.fps;U={};U.QO=fRa[Tf.i];U.SL=Hd;U.TL=Op;U.maxFramerate=Pp;C.push(new gX(U));break}}for(var Vk=g.q(hRa),Wk=Vk.next();!Wk.done;Wk=Vk.next()){var ni=g.q(Wk.value);
for(Fg=ni.next();!Fg.done;Fg=ni.next()){var tj=Fg.value,Xk=kRa[BC[tj]],Yk=iRa[tj],mh=Yk&&Xk?new CC(tj,Xk,{audio:new wC(Yk.audioSampleRate,Yk.numChannels)}):null;if(mh&&mh.audio&&!0===uA(qj,mh,Je)){var Um=mh.audio.numChannels;lh={};lh.kJ=eRa[BC[tj]];Um&&(lh.numChannels=Um);J.push(new fX(lh));break}}}v.mediaCapabilities=new iX({RO:C,lJ:J})}c=new lX(Be,new jX(v),la,Ea)}catch(nh){return a.ma(),nh instanceof g.ZC?a.fail(nh):(e=nh instanceof Error?{name:nh.name,message:nh.message}:{},f=new g.ZC("onesie.request",
!1,e),a.fail(f)),u.return(a.il)}a.ue("osor");h=Kxa(a.Y);l=gJa(c);m={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}};v=a.videoData;var Qd,Gc,pd;la=v.V();C=la.Yc;(null===C||void 0===C?0:C.baseUrl)&&(la=g.xD(la.experiments,"debug_bandaid_hostname")||(null===(Gc=null===(Qd=la.Oh)||void 0===Qd?void 0:Qd.i)||void 0===Gc?void 0:Gc.primary))&&(pd=qJa(new g.EA("https://"+la+C.baseUrl),v));if(pd)Qd=pd;else{var dc;Qd=null!==(dc=v.Pq)&&void 0!==dc&&dc.url?new g.EA(v.Pq.url):
null}return(n=Qd)?u.fb(2):g.x(u,rJa(a.videoData),3)}2!=u.i&&(n=u.u);if(!n)return a.ma(),p={url:"0"},r=new g.ZC("onesie.unavailable.hotconfig",!1,p),a.fail(r),u.return(a.il);dc=n;Qd=a.videoData;a:{if(a.Fe){Gc=kJa(a.Da.getVideoData());pd=Gc.video;Gc=Gc.audio;Ea=a.Da;la=Ea.Ag;Ea=Ea.videoData;la=la.N("html5_onesie_sticky_server_side")?dW(la).compose(eW(la,Ea)):mHa(la).compose(dW(la)).compose(eW(la,Ea));if(a.N("html5_onesie_format_constraint")){Ea=[];pd=g.q(pd);for(Be=pd.next();!Be.done;Be=pd.next())Be=
Be.value,qj=jJa[Be]||0,la.i&&qj>la.i||Ea.push(Be);pd=Ea}if(pd.length){Gc={video:pd,audio:Gc};break a}a.Ca("ombspf","l."+la.u+";u."+la.i+";o."+la.B+";r."+la.reason)}Gc=void 0}dc.set("ack","1");dc.set("cpn",Qd.clientPlaybackNonce);dc.set("opr","1");dc.set("oaad","0");dc.set("oavd","0");dc.set("por","1");MQ()||dc.set("onem","1");Gc?(Qd=Gc.audio,dc.set("pvi",Gc.video.join(",")),dc.set("pai",Qd.join(",")),iA()||dc.set("osh","1")):(dc.set("pvi","135"),dc.set("pai","140"),dc.set("oad","0"),dc.set("ovd",
"0"));a.ma();a.wj&&a.Ca("ombrs","1");t=a.Da.V().schedule;a.Zk=new vU(a,{Mg:t,ED:a.wj});n.set("rn",""+a.Zk.requestNumber);a.nt=FA(n);yFa(a.Zk,a.nt);a.ue("ocs");iA()?kA()?a.xhr=new uU(a.nt,h,a.Zk,m):a.xhr=new DU(a.nt,h,a.Zk,m):a.xhr=new EU(a.nt,a.Zk,m);a.N("html5_onesie_host_probing")&&a.Fz&&(dc=a.Fz,(Qd=null===(C=dc.i)||void 0===C?void 0:C.secondary)&&Npa(dc,Qd,"o2"),Qd=null===(v=dc.i)||void 0===v?void 0:v.primary)&&(v=Opa(Qd),Npa(dc,v,"o3"));return u.return(a.il)})};
g.k.kt=function(){};
g.k.tq=function(){this.On();this.xA.isActive()&&this.xA.start()};
g.k.Eo=function(){var a=this,b,c;this.ma();this.On();var d=sJa(this),e=this.xhr;if(e.oe()){var f="onesie.net";d.msg=e.oe()}else 400<=e.status?f="onesie.net.badstatus":e.Yw()?this.WK||(f="onesie.response.noplayerresponse"):f=204===e.status?"onesie.net.nocontent":"onesie.net.connect";f?this.fail(new g.ZC(f,!1,d)):(this.ue("orf"),AFa(this.Zk,(0,g.P)(),e.Hk(),0),this.wj&&this.Ca("rqs",d));this.wj&&this.Ca("ombre","ok."+ +!f);this.hx=!1;bX(this);dJa(this.ao);null===(c=null===(b=this.Fz)||void 0===b?void 0:
Ppa(b))||void 0===c?void 0:c.forEach(function(h){a.Ca("pathprobe",h)})};
g.k.N=function(a){return this.Y.N(a)};
g.k.TK=function(){this.ma();this.hx=!1;if(!bX(this)){var a=sJa(this);a.timeout="1";this.fail(new g.ZC("onesie.request",!1,a))}};
g.k.fail=function(a){var b=this,c,d;this.il.reject(a);this.yA.stop();this.ue("ore");null===(d=null===(c=this.Fz)||void 0===c?void 0:Ppa(c))||void 0===d?void 0:d.forEach(function(e){b.Ca("pathprobe",e)});
this.dispose()};
g.k.ya=function(){var a;this.playerResponse="";null===(a=this.xhr)||void 0===a?void 0:a.abort();dJa(this.ao);this.CO.dispose();g.E.prototype.ya.call(this)};
g.k.On=function(){var a=this.xhr;102400<a.Hk()&&!this.mL&&(this.ue("or100k"),this.mL=!0);for(;a.Yf();){var b=a.Rh(),c=b.totalLength;this.ma();this.wj&&this.Ca("ombrss","len."+c);this.CO.feed(b)}};
g.k.ma=function(){};g.w(g.sX,g.Q);g.k=g.sX.prototype;g.k.ya=function(){this.ma();this.HN();this.MA.stop();Pt(this.FA);nDa(this.Ge);this.visibility.unsubscribe("visibilitystatechange",this.Ge);dIa(this.Rb);(0,g.re)(this.Rb);yX(this);g.iv.oi(this.Cq);this.Cg();this.He=null;(0,g.re)(this.videoData);(0,g.re)(this.Ck);(0,g.se)(this.DT);this.Tl=null;g.Q.prototype.ya.call(this)};
g.k.Zw=function(a){this.Rb.Zw(a)};
g.k.xt=function(a,b,c,d){this.Rb.xt(a,b,c);this.N("html5_log_media_perf_info")&&this.Ca("adloudness","ld."+d.toFixed(3)+";cpn."+a)};
g.k.WD=function(){var a;return null===(a=this.Ya)||void 0===a?void 0:a.WD()};
g.k.XD=function(){var a;return null===(a=this.Ya)||void 0===a?void 0:a.XD()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Sp=function(){return this.visibility};
g.k.ld=function(){return this.ra};
g.k.lD=function(){if(this.videoData.isLoaded()){var a=this.Ck;0<g.S(a.i.experiments,"html5_player_min_build_cl")&&411797165<g.S(a.i.experiments,"html5_player_min_build_cl")&&fHa(a,"oldplayer");JJa(this)}else this.videoData.xd||this.videoData.Wj?this.Ps&&g.zE(this.Y)&&this.videoData.isLivePlayback||(this.videoData.xd?bsa(this.videoData):(a=this.Rb,a.qoe&&(a=a.qoe,nW(a,"protected"),a.i.videoData.I?a.TN():a.i.videoData.subscribe("dataloaded",a.TN,a)),Xra(this.videoData))):!this.videoData.Ja&&this.uR&&
IJa(this)};
g.k.Es=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.qG(!0),dIa(this.Rb),(0,g.re)(this.Rb),g.iv.oi(this.Cq))};
g.k.Rq=function(){cIa(this.Rb)};
g.k.Jf=function(a,b,c,d,e){this.ma();var f,h;g.Pe(FQa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Owa());(b=h)||(b=g.iN[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,HD:f,xi:e||"",aG:c};wX(this,"dataloaderror");this.Ub(uJ(this.playerState,128,a));g.iv.oi(this.Cq);yX(this);this.Bm()};
g.k.Pd=function(a){this.Mj=this.Mj.filter(function(b){return a!==b});
this.ma();this.zm.started&&xX(this)};
g.k.gm=function(){var a;(a=!!this.Mj.length)||(a=this.Rg.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.im=function(){return this.Oc.im()};
g.k.Ec=function(){return this.playerState.Ec()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.He){var a=this.He;a=a.videoData.vr.compose(a.videoData.DN);a=rA(a)}else a="auto";return a};
g.k.Ov=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()};
g.k.setMediaElement=function(a){this.ma();if(this.ra&&a.xe()===this.ra.xe()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.Ex(this.Wt),this.ra=a,SJa(this),this.Oc.setMediaElement(this.ra)}else{this.ra&&this.Cg();if(!this.playerState.isError()){var b=wJ(this.playerState,512);g.T(b,8)&&!g.T(b,2)&&(b=vJ(b,1));a.isView()&&(b=wJ(b,64));this.Ub(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);SJa(this);this.Oc.setMediaElement(this.ra)}};
g.k.Cg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ma();if(this.ra){var c=this.getCurrentTime();0<c&&(this.Oc.B=c);this.Oc.setMediaElement(null);HX(this);this.Ya&&(g.Fr(this.Ya.X),IX(this,b));this.kq.stop();if(this.ra&&(!this.zm.started||this.playerState.isError()||g.T(this.playerState,2)||this.Ub(vJ(this.playerState,512)),this.ra)){g.Ex(this.Wt);if(a||!this.ra.isView())this.ra.stopVideo(),MX(this);this.ra=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.i){a.ma();if(!a.N("html5_clear_globalcache_killswitch")){var h=window.google_image_requests;h&&10<h.length&&(window.google_image_requests=h.slice(-10))}if(g.T(a.playerState,128))return f.return();if(a.Ck.Qz())return a.ea("signatureexpired"),f.return();a.ra&&bIa(a.Rb);CX(a);g.T(a.playerState,64)&&a.Ub(vJ(a.playerState,8));return a.zm.isFinished()&&a.ra?a.He||!a.Pw?f.fb(2):g.x(f,a.Pw,2):f.return()}if(!a.videoData.C)return b=
a.videoData.isLivePlayback&&!g.LD(a.Y.u,!0)?"html5.unsupportedlive":PF(a.videoData)?"fmt.unplayable":"fmt.noneavailable",g.cy(Error("selectableFormats")),a.Jf(b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f.return();if(a.rf()&&a.videoData.C.i)return a.ma(),f.return(vX(a));if(a.videoData.isLivePlayback){c=a.getCurrentTime()<a.getMinSeekableTime()-15;d=g.bG(a.videoData)&&g.T(a.playerState,4);e=!a.N("html5_dompaused_unpause_killswitch")&&g.T(a.playerState,1024);e||!c&&!d||(d?(a.ma(),
a.seekTo(Infinity,{Ud:"videoplayer_unpauseLiveOnly"})):(a.ma(),a.seekTo(a.getMinSeekableTime(),{Ud:"videoplayer_outOfWindow"})));!a.isAtLiveHead(void 0,!0)&&a.im()&&(a.ma(),a.seekTo(Infinity,{Ud:"videoplayer_peggedToLive"}));if(h=g.T(a.playerState,256)&&a.videoData.ob)h=a.Oc,h=h.S&&!isFinite(h.i);if(h)return a.Ub(xJ(a.playerState,8,4)),f.return()}g.T(a.playerState,4)&&g.T(a.playerState,16)&&a.Ub(xJ(a.playerState,9,4));if(qX(a))return YJa(a),f.return();LX(a);g.ta(f)})};
g.k.Gn=function(){if(!this.He)return[];var a=kHa(this.Ag,this.He,this.Cs());return this.He.i.Gn(a)};
g.k.Cs=function(){var a=this.Ld?this.Ld.Cs():NF(this.videoData)&&this.videoData.i&&AA(this.videoData.i)?this.videoData.Tg?EF:UGa:EF;this.lG&&(a=a.compose(uQa));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.i?rA(this.videoData.vr):qA[tD()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.ze!==a&&(this.videoData.ze=a,g.qy("yt-player-audio51",a,2592E3),aW(this))};
g.k.getUserAudio51Preference=function(){var a;return null!==(a=g.ry("yt-player-audio51"))&&void 0!==a?a:1};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(this.N("html5_native_audio_track_switching")){var a=OJa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Op=function(){return this.mediaSource};
g.k.gt=function(a){this.ma();this.ot.set(a.initData,a);this.Ld&&(this.Ld.gt(a),this.N("html5_eme_loader_sync")||this.ot.remove(a.initData))};
g.k.qA=function(a){FX(this,a.reason,a.video.info,a.audio.info);this.Oc.qA(a)};
g.k.Zs=function(a){this.ea("localmediachange",a)};
g.k.Rt=function(){var a;null===(a=this.Ya)||void 0===a?void 0:a.Rt(this.Y)};
g.k.Qz=function(){return this.Ck.Qz()};
g.k.handleError=function(a){this.Ck.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.playerState,64)||g.T(this.playerState,2))&&!a)if(g.T(this.playerState,8))this.Ub(xJ(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.xx()||(g.T(this.playerState,128)||(a?this.Ub(vJ(this.playerState,256)):this.Ub(xJ(this.playerState,4,8))),this.ra&&this.ra.pause(),g.bG(this.videoData)&&this.Ya&&IX(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.Ya&&(IX(this,!1),OU(this.Ya))};
g.k.Bm=function(a){a=void 0===a?!1:a;var b;null===(b=this.ra)||void 0===b?void 0:b.stopVideo();MX(this);yX(this);g.T(this.playerState,128)||(a?this.Ub(wJ(wJ(vJ(this.playerState,4),8),16)):this.Ub(uJ(this.playerState)));this.videoData.videoId&&this.Y.S.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.ma("SeekTo "+a+", "+JSON.stringify(b));g.T(this.playerState,2)&&qX(this);if(this.pd){var c=this.pd;isFinite(a)&&a<c.Da.sj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Oc.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.Oc.getCurrentTime()};
g.k.Gh=function(){return this.Oc.Gh()};
g.k.sj=function(){return this.Oc.sj()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.dd())};
g.k.Ds=function(){var a=NaN;this.ra&&(a=this.ra.Ds());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;if(null===(a=this.videoData.i)||void 0===a?0:a.getIngestionTime)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.dd());if((!this.N("html5_disable_limit_ingestion_tvos")||Du())&&this.ra){var b=this.ra.Vx();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.dd():this.kd()?this.kd():0};
g.k.wz=function(){var a=new hIa;if(this.Ya){var b=this.Y.schedule;a.u=b.Z;a.C=b.oa;a.bandwidthEstimate=WD(b);a.i={d:UD(b).toFixed(2),st:(1E9*(b.i.pg()||0)).toFixed(2),bw:b.B.pg().toFixed(0),abw:b.I.pg().toFixed(0),v50:SD(b.u,.5).toFixed(2),v92:SD(b.u,.92).toFixed(2),v96:SD(b.u,.96).toFixed(2),v98:SD(b.u,.98).toFixed(2)};b=this.Ya;if(b.mediaSource&&!b.mediaSource.sf()&&(a.qp=oU(b.videoTrack,b.currentTime),a.B=oU(b.audioTrack,b.currentTime),b.policy.bb)){var c=nU(b.videoTrack),d=nU(b.audioTrack),e=
RC(b.mediaSource.u.lf(),"_",5),f=RC(b.mediaSource.i.lf(),"_",5);Object.assign(a.i,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=oT(b.I);b.ma(g.YC(a.i))}else this.ra&&(a.qp=rJ(this.ra));a.D=this.isAtLiveHead()&&this.Ec()?pX(this):NaN;return a};
g.k.Mp=function(){return this.ra?g.bG(this.videoData)?1:cG(this.videoData)?this.isAtLiveHead()||this.im()?1:this.Oc.Mp():this.ra.Mp():0};
g.k.Kb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Rb.Kb());this.ra&&(Object.assign(b,this.ra.Kb()),Object.assign(b,this.Tv()));this.Ya&&Object.assign(b,this.Ya.Kb());this.Ld&&(b.drm=JSON.stringify(this.Ld.Kb()));b.state=this.playerState.state.toString(16);g.T(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.gm()&&(b.prerolls=this.Mj.join(","));this.videoData.Vj&&(b.ismb=this.videoData.Vj);"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.uy.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&rD(this.videoData.i)&&(b.segduration=rD(this.videoData.i)),a=this.Oc,b.lat=a.I?RDa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.ye.toFixed(3);if(a=g.EX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
tD();b.release_version="youtube.player.web_20211121_00_RC02"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Pu([a])};
g.k.removeCueRange=function(a){this.Rg.Hf([a])};
g.k.zv=function(a,b){return this.Rg.zv(a,b)};
g.k.Pu=function(a,b){this.Rg.Ed(a,b)};
g.k.UA=function(a){this.Rg.Hf(a)};
g.k.Wl=function(){return this.Rg.Wl()||[]};
g.k.rf=function(){return this.visibility.rf()};
g.k.No=function(){this.ra&&this.ra.No()};
g.k.HW=function(){wX(this)};
g.k.togglePictureInPicture=function(){this.ra&&this.ra.togglePictureInPicture()};
g.k.MF=function(a){this.pB.stop();var b=a.target.Df();if(this.ra&&this.ra.Df()&&this.ra.Df()===b){aKa(this,a.type);switch(a.type){case "error":var c=sJ(this.ra)||"";if("capability.changed"===c){vX(this);return}if(0<this.ra.nj()&&bW(this.Ck,c,{msg:this.ra.oe()}))return;if(this.isBackground()&&4===this.ra.nj()){this.Bm();zX(this,"unplayable");return}break;case "durationchange":c=this.ra.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.Nj(c);break;case "ratechange":this.Ya&&this.Ya.setPlaybackRate(this.ra.getPlaybackRate());
c=this.Rg;c.started=!0;c.vl();this.Rb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":cKa(this);this.ea("onLoadedMetadata");VJa(this);break;case "loadstart":VJa(this);break;case "progress":case "suspend":this.Xb();this.ea("onLoadProgress",this,this.Mp());break;case "playing":if(this.N("html5_force_manifestless_seeking_state")&&MF(this.videoData)&&this.Ya&&this.Ya.C.i){this.Ca("mflForceSeek","reason.play");return}this.Qb.tick("plev");UJa(this);Ez("plev",void 0,"video_to_ad");
this.nG&&(this.nG=!1,this.isAtLiveHead()||(this.ma(),this.seekTo(Infinity,{Ud:"videoplayer_onPlaying"})));break;case "timeupdate":UJa(this);c=this.ra&&!this.ra.getCurrentTime();var d=this.ra&&0===this.ra.Ch();if(c&&(!this.mA||d))return;this.mA=this.mA||!!this.ra.getCurrentTime();KX(this);this.Xb();if(!this.ra||this.ra.Df()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.ra.Qp().length&&0===this.ra.Uf().length&&0<this.ra.getCurrentTime()&&5>this.ra.getCurrentTime()&&
this.Ya)return;break;case "resize":cKa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.qJ&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&0===this.getCurrentTime()&&g.Gj){zX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.Df()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.T(b,128)){c=this.Vu;var e=this.ra,f=this.Y.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();
if(!g.T(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Sk()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!EW(c,h);if("pause"===a.type&&e.Sk()||l&&h)0<e.pz()&&e.Df()&&(d=14);else switch(a.type){case "error":sJ(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&f.kb("html5_playing_clears_unstarted_killswitch")||(d&=-65);
EW(c,e.getCurrentTime())&&(d&=-2);g.T(b,1)&&FW(c,e.getCurrentTime(),(0,g.P)(),rJ(e))&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);FW(c,e.getCurrentTime(),(0,g.P)(),rJ(e));break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&EW(c,e.getCurrentTime())&&(d=8),FW(c,e.getCurrentTime(),(0,g.P)(),rJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=sJ(d))?(f="GENERIC_WITHOUT_LINK",l=d.Kb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.oe())&&
(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.iN[f]||"",HD:f,aG:g.YC(l)}):d=null);b=uJ(b,c,d)}!g.T(this.playerState,1)&&g.T(b,1)&&NX(this,"evt"+a.type);this.Ub(b)}}};
g.k.tW=function(){this.Ca("misstimeupdate","");TJa(this)&&!g.T(this.playerState,2)&&qS(this,!0,!1)};
g.k.UT=function(a){a="available"===a.i.availability;a!==this.ew&&(this.ew=a,this.ea("airplayavailabilitychange"))};
g.k.VT=function(){var a=(0,g.P)(),b=this.ra.rf();this.Ca("airplay",b?"on":"off");if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.Sz)||!(2E3>a-this.Sz))this.Sz=a,b!==this.rf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Ge()),this.Ca("airplay","rbld_"+b),aW(this)),this.ea("airplayactivechange")};
g.k.Uv=function(a){if(this.Ya){var b=this.Ya,c=b.B,d=b.currentTime;c.Ca("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&qEa(c,d,c.C,c.B);c.i=4;g.Fr(b.X)}};
g.k.Xb=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){EIa(this.Oc,this.Ec());var c=this.getCurrentTime();this.Ya&&(g.T(this.playerState,4)&&g.bG(this.videoData)||lGa(this.Ya,c));5<c&&(this.Oc.B=c);var d=g.yu();d?g.iv.oi(this.Cq):g.Ot(this.Cq);var e=this.ra.ul();if((g.BJ(this.playerState)||!e||tG(this.videoData))&&!g.T(this.playerState,128)){var f=function(){if(b.ra&&!g.T(b.playerState,128)){b.videoData.oa&&g.S(b.Y.experiments,"html5_log_rebuffer_events")&&aKa(b,"pfx");var h=
b.getCurrentTime(),l=rJ(b.ra),m=g.T(b.playerState,8),n=EW(b.Vu,h),p=FW(b.Vu,h,(0,g.P)(),l);m&&n?b.Ub(wJ(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.N("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-h)?(b.Ca("setended","ct."+h+";bh."+l+";dur."+m+";live."+ +n),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.ra.Np()?(b.ma(),b.seekTo(0,{Ud:"videoplayer_loop"})):qS(b))):(g.BJ(b.playerState)||NX(b,"progress_fix"),b.Ub(vJ(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-
b.Vz)/1E3,n=b.getDuration(),h>n-1&&b.Ca("misspg","t:"+h.toFixed(2)+";d:"+n.toFixed(2)+";r:"+m.toFixed(2)+";bh:"+l.toFixed(2))),g.T(b.playerState,4)&&g.BJ(b.playerState)&&5<rJ(b.ra)&&b.Ub(wJ(b.playerState,1)));b.Xb()}};
0===this.ra.Qp().length?this.Cq=d?g.iv.Qf(f,100):g.Mt(f,100):this.Cq=d?g.iv.Qf(f,500):g.Mt(f,500)}this.videoData.Ku=c;!a&&this.Ec()&&XJa(this);tHa(this.Ag,this.He,this.ld(),this.isBackground())&&XU(this);uHa(this.Ag,this.videoData.B)&&(this.Rb.md("qoe.restart","droprate."+this.Ag.K),this.Y.u.K=!1,aW(this));this.ea("progresssync",this,a);!this.N("html5_progress_event_linear_paused_killswitch")&&e&&tG(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
g.k.pS=function(){this.Jf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Lv=function(){return this.Rb.Lv()};
g.k.TD=function(){return this.Ya?this.Ya.TD():WD(this.Y.schedule,!0)};
g.k.yR=function(){g.BJ(this.playerState)&&rHa(this.Ag,this.He)&&XU(this)};
g.k.Ub=function(a){if(!g.yJ(this.playerState,a)){this.ma();var b=new g.jH(a,this.playerState);this.playerState=a;bKa(this);var c=!this.HA.length;this.HA.push(b);var d=this.ra&&this.ra.Bu();g.lH(b,1)&&!g.T(b.uo,16)&&!d&&g.T(this.playerState,8)&&!g.T(this.playerState,64)&&this.Ya&&(d=this.Ya,d.ma(),d.Aa=!0,this.ra&&5<=rJ(this.ra)&&((d=g.S(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.iM.start(d):rHa(this.Ag,this.He)&&XU(this)));(d=g.S(this.Y.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.T(a,1)&&(g.T(a,8)||g.T(a,16))?this.PC.start(d):this.PC.stop();(0>kH(b,8)||g.lH(b,1024))&&this.kq.stop();!g.lH(b,8)||this.videoData.ob||g.T(b.state,1024)||this.kq.start();g.T(b.state,8)&&0>kH(b,16)&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&cG(this.videoData)&&(this.Nj(this.getCurrentTime()),this.Xb(!0));g.lH(b,2)&&this.qG(!0);g.lH(b,128)&&this.Bm();this.videoData.i&&this.videoData.isLivePlayback&&!this.HO&&(0>kH(b,8)?(a=this.videoData.i,a.C&&a.C.stop()):
g.lH(b,8)&&this.videoData.i.resume());this.Oc.Nc(b);this.Rb.Nc(b);if(c&&!this.isDisposed())try{for(var e=g.q(this.HA),f=e.next();!f.done;f=e.next()){var h=f.value;this.Rg.Nc(h);this.ea("statechange",h)}}finally{this.HA.length=0}}};
g.k.Hw=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.k.IF=function(){this.Qb.tick("qoes")};
g.k.pA=function(a,b,c,d){a:{var e=this.Ck;d=void 0===d?"LICENSE":d;c=c.substr(0,256);"drm.keyerror"===a&&this.Ld&&1<this.Ld.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",b=!1);if(b)if(e.videoData.B&&e.videoData.B.video.isHdr())hHa(e,a);else{if(e.Da.Jf(a,d,c),e.videoData.N("html5_exile_on_drm_fatal")&&aHa(e,{detail:c}))break a}else e.md(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ca("retrydrm",{sessionLimitExhausted:1}),e.D++,$Ja(e.Da))}};
g.k.QU=function(){var a=this,b=g.S(this.Y.experiments,"html5_license_constraint_delay"),c=Mu();b&&c?(b=new g.I(function(){AX(a);wX(a)},b),g.H(this,b),b.start()):(AX(this),wX(this))};
g.k.Kw=function(a){this.ea("heartbeatparams",a)};
g.k.Co=function(a){this.Ca("keystatuses",JGa(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=KGa(b,c);d=gV(a)?hV(a,d):a.D.includes(d)}else{a:{b=KGa(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.Z&&d;c&&!b?hHa(this.Ck):d||hV(a,"AUDIO")&&hV(a,"SD")||(this.ma(),this.lG?(this.ma(),this.ea("drmoutputrestricted")):
(this.lG=!0,this.Ca("retrydrm","o"),BX(this),$Ja(this)))};
g.k.TU=function(){var a,b;if(!this.videoData.ob&&this.ra&&!this.isBackground()){var c="0";0<this.ra.Ch()&&5<=rJ(this.ra)&&this.videoData.C&&this.videoData.C.i&&(this.Ub(vJ(this.playerState,1)),NX(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),c="1");bKa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.gm()&&(c.prerolls=this.Mj.join(",")),this.Ya&&Object.assign(c,this.Ya.Kb()),this.ra&&Object.assign(c,this.ra.Kb());else{var d=this.videoData.C;c={restartmsg:c,
mfmt:NF(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Fd&&!this.Ld?"1":"0",mfmtinfo:this.videoData.B?"0":"1",prerolls:this.gm()?this.Mj.join(","):"0"};if(this.Ld){d=c;var e=this.Ld;if(0>=e.u.size){var f="ns;";e.X||(f+="nr;");e=f+="ql."+e.B.length}else e=JGa(e.u.values().next().value);d.drmp=e}Object.assign(c,(null===(a=this.Ya)||void 0===a?void 0:a.Kb())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Kb())||{})}this.Rb.md("qoe.start15s",g.YC(c));
this.ea("loadsofttimeout")}};
g.k.Nj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,wX(this))};
g.k.qG=function(a){var b=this;a=void 0===a?!1:a;if(!this.vy){Dz("att_s","player_att")||Ez("att_s",void 0,"player_att");var c=new g.bxa(this.videoData);if(fxa(c)&&(Ez("att_wb",void 0,"player_att"),2===this.ZC&&.01>Math.random()&&g.cy(Error("Botguard not available after 2 attempts")),!a&&5>this.ZC)){g.Fr(this.aD);this.ZC++;return}if("c1b"in c.i){var d=fIa(this.Rb);d&&exa(c).then(function(e){e&&!b.vy&&d?(Ez("att_f",void 0,"player_att"),d(e),b.vy=!0):Ez("att_e",void 0,"player_att")},function(){Ez("att_e",
void 0,"player_att")})}else(a=g.cxa(c))?(Ez("att_f",void 0,"player_att"),eIa(this.Rb,a),this.vy=!0):Ez("att_e",void 0,"player_att")}};
g.k.kd=function(a){return this.Oc.kd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.Oc.getMinSeekableTime()};
g.k.dd=function(){return this.Oc?this.Oc.dd():0};
g.k.getStreamTimeOffset=function(){return this.Oc?this.Oc.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32<this.videoData.C.videoInfos[0].video.fps&&g.zE(this.Y);this.playbackRate!==a&&b&&(this.Ag.setPlaybackRate(a),BX(this));this.playbackRate=a;this.ra&&this.ra.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.ra)){var b=gH(this);b&&0<b.videoHeight&&(a=xC(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.Tt=function(){this.Rb.Tt()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Rb;c.i?(c=wW(c.i,"engage"),c.X=a,c.send(b)):b&&b()};
g.k.Xg=function(a){return this.Rb.Xg(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.VK||(void 0===b?0:b))?this.Oc.isAtLiveHead(a):!1};
g.k.In=function(){var a=this.kd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Oc,c=!(c.u&&c.u.B));return c||this.im()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Ij=ba(13);g.k.Bo=ba(34);g.k.Ao=ba(37);g.k.Tv=function(){return this.ra?this.ra.Wx():{}};
g.k.setLoop=function(a){this.loop=a;this.ra&&this.ra.setLoop(a)};
g.k.Np=function(){return this.ra?this.ra.Np():this.loop};
g.k.LF=function(a){var b=this.N("html5_unrewrite_timestamps");this.Ca("timestamp","enabled."+b+";t."+a.toString());this.Oc.LF(a)};
g.k.ue=function(a){this.Qb.tick(a)};
g.k.Ca=function(a,b,c){this.Rb.Ca(a,b,void 0===c?!1:c)};
g.k.md=function(a){this.Rb.md(a.errorCode,g.YC(a.details))};
g.k.ax=function(a,b,c){this.Rb.ax(a,b,c)};
g.k.dG=function(a,b,c){var d;if(null===(d=this.videoData.i)||void 0===d?0:d.isLive){var e=this.Rb;e.qoe&&e.qoe.dG(a,b,c)}};
g.k.getPlayerSize=function(){return this.wx.getPlayerSize()};
g.k.rg=function(){return this.wx.rg()};
g.k.ma=function(){};
g.k.N=function(a){return this.Y.N(a)};
g.k.YC=function(){if(SF(this.videoData,"html5_set_debugging_opt_in")){var a=g.Mv.getInstance();if(!g.Nv(0,183)){var b="f"+(Math.floor(183/31)+1),c=zja(b)||0;c|=268435456;0==c?delete Lv[b]:(c=c.toString(16),Lv[b]=c.toString());a.save()}}};
g.k.HN=function(){if(g.zJ(this.playerState)){var a=rX.pK();0!==Object.keys(a).length&&this.Rb.Ca("profile",a)}this.MA.start()};
g.k.xx=function(){var a,b=this.getCurrentTime();return(null===(a=this.Ya)||void 0===a?0:a.xx(b,100))?(NIa(this.Oc,b+100+5),!0):!1};
g.k.Gs=function(a){return this.Ya?this.Ya.Gs(a):""};g.w(g.RX,g.E);g.RX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Qa(a),e=t3[d];if(e){try{e.dispose()}catch(h){g.by(h)}t3[d]=null}var f=new g.RX(a,b,c);g.te(f,function(){t3[d]=null;f.DO&&f.DO()});
return t3[d]=f}catch(h){throw g.by(h),h.stack;}};
g.k=g.RX.prototype;g.k.Sp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Xl=function(){this.EE||(this.EE=g.RL(RJ(),Lwa()));return this.EE};
g.k.isVideoInfoVisible=function(){return!(!this.dj||!this.dj.yb)};
g.k.Cg=function(){if(this.ra){this.au&&(this.events.qc(this.au),this.au=null);g.Ex(this.Zn);this.sb&&this.sb.Cg(!0);this.template.Cg();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.ra.VA()}catch(a){}this.ra=null}};
g.k.dl=function(a){if(this.N("html5_skip_setPresenting"))1===a&&this.sb&&YX(this,this.sb);else{var b=g.uM(this,a);if(!b||b.isDisposed())b=new FF(this.Y),b=this.Pl(a,b);WX(this,b)}};
g.k.Jc=function(){return this.sb};
g.k.Jo=function(a){this.N("html5_skip_setPresenting")?this.sb&&YX(this,this.sb):(a=g.uM(this,a))&&YX(this,a)};
g.k.Pl=function(a,b,c){var d=this,e=this.Qb;2===a&&(e=new wM(this.Y));return new g.sX(this.Y,a,e,this.template,function(f){return d.Am.ea.apply(d.Am,[f].concat(g.ma(g.Ba.apply(1,arguments))))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.og=$D(!1,a)};
g.k.cU=function(){SX(this)||(this.ma(),this.bl(5))};
g.k.pV=function(a){SX(this)||(this.ma(),KKa(this),g.zJ(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return LC(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.sb.getVideoData()};
g.k.Sv=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.uM(this,a);return a?g.qG(a.getVideoData())?1:(a=a.ld())?a.Mp():0:0};
g.k.eb=function(){return this.template};
g.k.vb=function(){return this.Vc};
g.k.Jp=function(){return this.Qb};
g.k.Ht=function(a){var b=g.uM(this,1);b&&qS(b,a)};
g.k.Hh=function(){var a=this.Vc.iE();a.fs=this.Ta.isFullscreen();a.volume=Math.round(this.Ta.getVolume());a.muted=this.Ta.isMuted()?1:0;a.mos=a.muted;if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.kE(this.Y)){if(this.mH){var b=this.mH;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.IE();1<c&&b.push(c);a.size=b.join(":")}}this.sb===this.tb&&this.Sb&&(a.clipid=
this.Sb.postId);return a};
g.k.Ni=function(a){1===a&&(this.Qb.tick("vr"),this.So||(this.So=Ww(hA,this.uM,this)),WJa(this.sb),sxa(this.Qb,this.sb.getVideoData(),JKa(this)));var b=this.Y;(RE(b)&&b.B||g.sE(b))&&(this.Sd()||this.Ta.Oa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.sb===this.tb&&this.sb.Np()!==a&&(this.sb.setLoop(a),this.Ta.ea("loopchange",a))};
g.k.getLoopVideo=function(){return this.sb.Np()};
g.k.setLoopRange=function(a){var b=!1;!!this.Sb!==!!a?b=!0:this.Sb&&a&&(b=this.Sb.startTimeMs!==a.startTimeMs||this.Sb.endTimeMs!==a.endTimeMs||this.Sb.postId!==a.postId);b&&(this.tb.Rg.Ye("applooprange"),a?(b=new g.Ty(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.tb.addCueRange(b)):OX(this).clipConfig=void 0,this.Sb=a,this.Ta.Oa("onLoopRangeChange",a||void 0),this.sb===this.tb&&(this.cB(),this.sb.Rq()))};
g.k.getLoopRange=function(){return this.Sb};
g.k.cB=function(){this.Sb&&this.sb===this.tb&&(xKa(this,this.tb.getCurrentTime())||yKa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=lKa(this,a),this.tb.getPlaybackRate()!==a&&(this.tb.setPlaybackRate(a),b&&!this.Y.i&&g.qy("yt-player-playback-rate",a),this.Ta.Oa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return oM(this.Vc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.uM(this):g.uM(this,a);if(!a)return 0;if(b){if(c&&this.Ic&&(b=this.Ic.ob/1E3,0!==b))return b;a=$X(this,a);return iY(this,a.getCurrentTime(),a)}c&&this.Ic?(b=this.Ic,a=a.getCurrentTime(),uS(b)?(b=BS(b,a))&&b.Vm&&(a-=b.Vm):(b=uDa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.Ds=function(){var a=g.uM(this,void 0);if(!a)return 0;a=$X(this,a);return iY(this,a.Ds(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c,d,e=this.getVideoData(),f=2===a&&e.enableServerStitchedDai;a=f?g.uM(this):g.uM(this,a);if(!a)return 0;if(this.N("enable_linear_player_handling")&&e.hasProgressBarBoundaries()){var h=Number(null===(c=e.progressBarStartPosition)||void 0===c?void 0:c.utcTimeMillis);e=Number(null===(d=e.progressBarEndPosition)||void 0===d?void 0:d.utcTimeMillis);if(!isNaN(h)&&!isNaN(e))return(e-h)/1E3}if(b)return b=ZX(this,a),iY(this,b.getDuration(),b);f&&this.Ic?
(b=a.getCurrentTime(),b=(b=BS(this.Ic,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.uM(this,a);if(!a)return 0;a=ZX(this,a);return iY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.uM(this,a);return b?this.Sd(b)?(b=ZX(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.zD=function(){this.template.zD();var a=this.J;a.element=this.template.element;var b=a.element,c;for(c in a.u)a.u.hasOwnProperty(c)&&(b[c]=a.u[c]);(a=Bx(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.OV)};
g.k.getDebugText=function(a){var b=this.tb.Kb(a);if(this.sb&&this.sb!==this.tb){for(var c=this.sb.Kb(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=Og("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Sg("video-ads");f?(PKa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Sg("videoAdUiSkipContainer"),l=g.Sg("ytp-ad-skip-button-container"),m=h||l;m?(PKa(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.ra&&(b["0sz"]=""+(0===+Ag(this.ra.getSize())),b.op=this.ra.getStyle("opacity"),c=this.ra.Kn().y+this.ra.getSize().height,b.yof=""+(0>=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.oW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.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.V().experiments.experimentIds.join(", ")},b=this.zb().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.appState?1:SX(this)?3:a&&(null===(b=this.Ic)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.uM(this).getPlayerType()};
g.k.zb=function(a){return 3===this.getPresentingPlayerType()?oM(this.Vc).Bd:g.uM(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.MF=function(a){var b=this;switch(a.type){case "loadedmetadata":Dz("fvb",this.Qb.timerName)||this.Qb.tick("fvb");Ez("fvb",void 0,"video_to_ad");this.bB.start();g.sc(this.Dt,function(c){HKa(b,c.id,c.lY,c.kY,!1)});
this.Dt=[];break;case "loadstart":Dz("gv",this.Qb.timerName)||this.Qb.tick("gv");Ez("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!Dz("l2s",this.Qb.timerName)&&2<=VC(a.target.Uf())&&this.Qb.tick("l2s");break;case "playing":g.PE&&this.bB.start(),AKa(this)&&(this.sb.Ca("hidden","1",!0),this.getVideoData().Db||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Db=1,this.HM(null),this.sb.playVideo()):VX(this,"hidden",!0)))}};
g.k.onLoadProgress=function(a,b){this.Ta.Oa("onLoadProgress",b)};
g.k.kW=function(){this.Ta.ea("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=$X(this,a);b=iY(this,a.getCurrentTime(),a);this.Ta.Oa("onVideoProgress",b)};
g.k.onDompaused=function(){this.Ta.Oa("onDompaused")};
g.k.onAutoplayBlocked=function(){this.Ta.Oa("onAutoplayBlocked")};
g.k.AV=function(){this.Ta.ea("progresssync")};
g.k.eU=function(a){if(1===this.getPresentingPlayerType()){g.lH(a,1)&&!g.T(a.state,64)&&OX(this).isLivePlayback&&this.tb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.lH(a,2)){if(this.Sb&&this.Sb.endTimeMs>=1E3*(this.getDuration()-1)){yKa(this);return}sKa(this)}if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Oa("onError",MQa[b.errorCode]||5);this.Ta.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.HD});6048E5<(0,g.P)()-this.Y.La&&this.Ta.Oa("onReloadRequired")}b={};if(a.state.Ec()&&!g.BJ(a.state)&&!Dz("pbresume","ad_to_video")&&Dz("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);Cz(b,"ad_to_video");Bz("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}};
g.k.eN=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)};
g.k.Nh=function(a){XX(this,CJ(a.state));g.T(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(gM(this,{muted:!1,volume:this.gg.volume},!1),gY(this,!1))};
g.k.rV=function(a){a.state.Ec()&&!g.BJ(a.state)&&(Sxa(this.Vc),g.Ex(this.gF))};
g.k.aU=function(a,b,c){"newdata"===a&&PX(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.Fw=function(){this.Ta.Oa("onPlaybackAudioChange",this.Ta.getAudioTrack().zc.name)};
g.k.Nw=function(a){var b=this.sb.getVideoData();a===b&&this.Ta.Oa("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.ma("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.tb&&(this.Y.Pe=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Ic?this.Ic=new g.vS(this.Ta,this.Y,this.tb):!this.getVideoData().enableServerStitchedDai&&this.Ic&&(this.Ic.dispose(),this.Ic=null);if("newdata"===a)this.ma(),QM(this.Vc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.sb===this.tb)if(xE(c.u,c.zI),
this.ma(),this.tb.getPlayerState().isError())this.ma();else{var d=SX(this);OX(this).isLoaded();d&&this.bl(6);vKa(this);uKa(this)}else vKa(this);if(1===b.getPlayerType()&&(this.Y.X&&OKa(this),this.getVideoData().isLivePlayback&&!this.Y.Fl&&this.Ne("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.Gb||c.WB||c.fh||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().Fl)d=this.getVideoData(),lY(this,"part2viewed",1,0x8000000000000),lY(this,"engagedview",Math.max(1,1E3*d.Zb),0x8000000000000),
d.isLivePlayback||(d=1E3*d.lengthSeconds,lY(this,"videoplaytime25",.25*d,d),lY(this,"videoplaytime50",.5*d,d),lY(this,"videoplaytime75",.75*d,d),lY(this,"videoplaytime100",d,0x8000000000000),lY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null===(e=this.getVideoData().progressBarEndPosition)||void 0===e?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.NA.progressEndBoundary,(null===d||void 0===
d?void 0:d.start)!==e&&(d&&this.UA([d]),e=new g.Ty(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.tb.addCueRange(e),this.NA.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.cB();if(b=c.kx){if(a=this.Tn,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=JJ();var f=void 0===f?{}:f;Object.values(fQa).includes(c)||(g.cy(new g.aw("createClientScreen() called with a non-page VE",
c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.bK?dua(b,c,f):cua(b,c,f);aEa(a)}}else aEa(this.Tn)};
g.k.Vr=function(){aY(this,null);this.Ta.Oa("onPlaylistUpdate")};
g.k.mM=function(a){var b=a.getId(),c=OX(this);if("part2viewed"===b){if(c.JI&&g.kv(c.JI),c.WB&&rY(this,c.WB),c.fh)if(this.V().N("html5_enable_cpn_macro_substitution_for_trv_discovery_ads"))for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.q(c.fh),f=e.next();!f.done;f=e.next())rY(this,g.zr(f.value,d));else sY(this,c.fh)}else"conversionview"===b?this.tb.Tt():"engagedview"===b&&c.Gb&&(this.V().N("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")?(d={CPN:this.getVideoData().clientPlaybackNonce},
g.kv(g.zr(c.Gb,d))):g.kv(c.Gb));c.NI&&(d=a.getId(),d=Et(c.NI,{label:d}),g.kv(d));switch(b){case "videoplaytime25":c.GI&&rY(this,c.GI);c.gr&&sY(this,c.gr);c.SI&&g.kv(c.SI);break;case "videoplaytime50":c.HI&&rY(this,c.HI);c.ir&&sY(this,c.ir);c.UI&&g.kv(c.UI);break;case "videoplaytime75":c.II&&rY(this,c.II);c.jr&&sY(this,c.jr);c.WI&&g.kv(c.WI);break;case "videoplaytime100":c.FI&&rY(this,c.FI),c.er&&sY(this,c.er),c.QI&&g.kv(c.QI)}(b=this.getVideoData().Fl)&&FKa(b,a.getId())&&FKa(b,a.getId()+"gaia");this.tb.removeCueRange(a)};
g.k.zV=function(a){delete this.NA[a.getId()];this.tb.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,r,t,u,v,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(r=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)||
void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===r?void 0:r.sets);if(y)for(c=g.q(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(v=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===v?0:v.continuePlayback)){b=d;break a}b=null}t=
null===b||void 0===b?void 0:b.watchEndpoint;this.N("enable_linear_player_handling")&&t&&this.Ta.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})};
g.k.bl=function(a){a!==this.appState&&(this.ma(),2===a&&1===this.getPresentingPlayerType()&&(XX(this,-1),XX(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))};
g.k.Ne=function(a,b,c,d){this.tb.Jf(a,b,c,d)};
g.k.fl=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.uM(this,a);if(!c)return!1;a=ZX(this,c);c=$X(this,c);return a!==c?a.isAtLiveHead(iY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.In=function(){var a=g.uM(this,void 0);return a?ZX(this,a).In():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.uM(this,d))2===this.appState&&eY(this),this.Sd(d)?this.Ic?this.Ic.seekTo(a,b,c):this.pd.seekTo(a,b,c):d.seekTo(a,{AO:!b,BO:c,Ud:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.tA=function(){this.Ta.Oa("SEEK_COMPLETE")};
g.k.ZV=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.T(a.getPlayerState(),512)||eY(this):this.Ta.Oa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.Y.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayActiveChange",this.Ta.rf())};
g.k.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.Y.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayAvailabilityChange",this.Ta.ew())};
g.k.showAirplayPicker=function(){var a;null===(a=this.sb)||void 0===a?void 0:a.No()};
g.k.sF=function(){this.Ta.ea("beginseeking")};
g.k.xF=function(){this.Ta.ea("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.uM(this,a))?ZX(this,a).getVideoData().getStoryboardFormat():null};
g.k.qg=function(a){return(a=g.uM(this,a))?ZX(this,a).getVideoData().qg():null};
g.k.Sd=function(a){if(a=a||this.sb){a=a.getVideoData();if(this.Ic)a=a===this.Ic.Da.getVideoData();else a:{var b=this.pd;if(a===b.i.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Bc===c.value.Bc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.Rr=function(a,b,c,d,e,f){var h;this.ma();if(!this.Y.N("web_player_ssdai_add_to_timeline_logging_killswitch")){var l=this.getVideoData().enableServerStitchedDai;null===(h=this.sb)||void 0===h?void 0:h.Ca("sdai","app.attl."+(null!=this.Ic)+"_"+l+"_"+SX(this))}a=this.Ic?sDa(this.Ic,a,b,c,d,e,f):IDa(this.pd,a,b,c,d,e);this.ma();return a};
g.k.cw=function(a,b,c,d,e,f){var h;this.Y.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.sb)||void 0===h?void 0:h.Ca("sdai","app.attlr."+(null!=this.Ic)));this.Ic&&(sDa(this.Ic,a,b,c,d,e,f),this.ma());return""};
g.k.Do=function(a){var b;null===(b=this.Ic)||void 0===b?void 0:b.Do(a)};
g.k.xp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Ic?this.Y.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&ES(this.Ic,a,b):TS(this.pd,a,b)};
g.k.St=function(a,b,c){if(this.Ic){var d=this.Ic,e=c;(c=d.ub.get(a))?(d.ma(),void 0===e&&(e=c.Wc),a=e,d.ma(),c.durationMs=b,c.Wc=a,d.Y.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&vDa(d,c)):d.Bj("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.pd;e=null;for(var f=g.q(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Bc===a){e=h;break}e?(d.ma(),void 0===c&&(c=e.Wc),ODa(d,e,b,c)):MS(d,"e.InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Sd();a=new FF(this.Y,a);d&&(a.Bc=d);c=void 0===c?Infinity:c;this.ma();b=b||this.sb.getPlayerType();var e;this.Y.N("html5_gapless_preloading")&&(e=hY(this,b,a,!0));e||(e=this.Pl(b,a));2===b&&this.tb&&(a=e.getVideoData(),this.tb.xt(a.clientPlaybackNonce,a.Nb||"",a.breakType||0,a.ye));this.Qy(e,c)};
g.k.Qy=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.uM(this);e&&(ZX(this,e).HO=!0);iDa(this.Yt,a,b,c).then(function(){d.Ta.Oa("onQueuedVideoLoaded")},function(){})};
g.k.Qs=function(){return this.Yt.Qs()};
g.k.clearQueue=function(){this.ma();this.Yt.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new FF(this.Y,a),m=null!==(f=l.ub)&&void 0!==f?f:"";this.Qb.timerName=m;if(!this.N("web_player_load_video_context_killswitch")&&e){for(;l.Ci.length&&l.Ci[0].isExpired();)l.Ci.shift();h=l.Ci.length-1;h=0<h&&e.u(l.Ci[h])&&e.u(l.Ci[h-1]);l.Ci.push(e)}c||(a&&yM(a)?(HE(this.Y)&&!this.og&&(a.fetch=0),aY(this,a)):this.playlist&&aY(this,null),a&&this.setIsExternalPlaylist(a.external_list),HE(this.Y)&&!this.og&&bY(this));a=this.Xn(l,
b,d);h&&this.Ne("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.Ci.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=eE(a);if(this.Sw.get(b+"_"+d+"_"+e))this.ma();else{a=new FF(this.Y,a);e&&(a.Bc=e);e=b+"_"+a.videoId+"_"+a.Bc;this.ma();if(d=this.sb){d=this.sb.getPlayerType();var f=this.sb.getVideoData().videoId,h=this.sb.getVideoData().Bc;d=e===d+"_"+f+"_"+h}d?(WR(this.sb,!0),a.dispose()):(a.Id=!0,a=this.Pl(b,a),1===b&&KE(this.Y)||WR(a,!0),this.Sw.set(e,a,c||3600))}};
g.k.Yu=function(a){if(this.N("html5_skip_setPresenting"))WX(this,a);else{var b=a.getPlayerType();a!==g.uM(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.tb.getVideoData().autonavState,mKa(this,a)):(b=g.uM(this,b))&&b.dispose(),this.sb.getPlayerType()===a.getPlayerType()?WX(this,a):rKa(this,a))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Vc;a=a.J.V().showMiniplayerUiWhenMinimized?a.Hd.get("miniplayer"):void 0;a&&(this.Le()?a.load():a.unload());this.Ta.ea("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Vc;a=a.J.V().showInlinePreviewUi?a.Hd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.Oa("onInlinePreviewModeChange"))};
g.k.Gt=function(a){var b=this.Y.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.Qi&&this.Y.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.PD&&b?this.PD.start():this.yJ():this.visibility.Gt(a)};
g.k.yJ=function(){var a,b=null===(a=this.ra)||void 0===a?void 0:a.xe();b&&Ax(b).catch(function(c){return g.cy(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.WV=function(){"picture-in-picture"===this.ra.xe().webkitPresentationMode?this.Gt(!0):this.Gt(!1)};
g.k.togglePictureInPicture=function(){var a=g.uM(this);a&&a.togglePictureInPicture()};
g.k.Xn=function(a,b,c){b=void 0===b?1:b;this.ma();Dz("_start",this.Qb.timerName)||(yz("p",void 0,this.Qb.timerName),this.Qb.info("srt",0));var d=hY(this,b,a,!1);d?a.dispose():(d=this.Pl(b,a,c),this.N("html5_onesie")&&uX(d)&&WR(d),this.bB.stop(),this.N("html5_cancel_presenting_in_loadVideo")&&1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),WX(this,d),this.Yu(d));d===this.tb&&(this.Y.Pe=a.oauthToken);if(!uX(d))return!1;if(d===this.tb)return this.bl(1),eY(this);
CX(d);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&yM(a))if(this.bq=!0,aY(this,a),(a=g.zM(this.playlist))&&a.isValid())nY(this,a,b);else this.playlist.onReady(function(){dY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Vr();var d=new FF(this.Y,a);!g.kE(this.Y)||this.Y.K||d.isAd()||d.Nb||!this.Y.N("embeds_enable_iframe_apis_through_oneplatform")?nY(this,d,b):Gxa(d,a?a:{}).then(function(e){nY(c,e,b)})}};
g.k.Tj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(mE(this.Y)||g.LE(this.Y))return b=b||{},b.lact=jv(),b.vis=this.Ta.getVisibilityState(),this.Ta.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.Qb;b.i&&(e=b.i,e.i={},e.ev={});b.u=!1;this.Qb.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.bq=!0;GKa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.bq=!1;GKa(this,a,b,c,d)};
g.k.Dv=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;HE(this.Y)&&!this.og&&bY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Ip=ba(1);
g.k.nextVideo=function(a,b){var c=this.tb.getVideoData().suggestions;g.tM(this.Ta)&&c&&0<c.length?(a=c[0],this.Tj(a.videoId,b?a.wv:a.sessionData,a.playlistId,b,void 0,a.pJ||void 0)):this.og?this.Ta.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?oM(this.Vc).nextVideo():this.playlist&&(HE(this.Y)&&!this.Ta.isFullscreen()?kY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&AM(this.playlist,txa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.N("html5_player_autonav_logging"),this.Xn(g.zM(this.playlist,
void 0,b,a),1)):this.bq=!1))};
g.k.previousVideo=function(a){this.og?this.Ta.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?oM(this.Vc).KA():this.playlist&&(HE(this.Y)&&!this.Ta.isFullscreen()?kY(this,"yt.www.watch.lists.prev"):(this.playlist.Lk(a)&&AM(this.playlist,uxa(this.playlist)),this.playlist.loaded?this.Xn(g.zM(this.playlist),1):this.bq=!1))};
g.k.playVideoAt=function(a){this.og?this.Ta.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Xn(g.zM(this.playlist,a),1):this.bq=!1,AM(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Pv=ba(11);g.k.XT=function(a){this.Ta.Oa("onCueRangeEnter",a.getId())};
g.k.ZT=function(a){this.Ta.Oa("onCueRangeExit",a.getId())};
g.k.Pu=function(a,b,c){var d=g.uM(this,b);d&&(d.Pu(a,c),b&&this.getPresentingPlayerType()!==b||UX(this,"cuerangesadded",a))};
g.k.UA=function(a,b){var c=g.uM(this,b);c&&(c.UA(a),b&&this.getPresentingPlayerType()!==b||UX(this,"cuerangesremoved",a))};
g.k.dU=function(){var a=this;this.getPresentingPlayerType();this.So||(this.So=Ww(hA,this.uM,this));sxa(this.Qb,this.sb.getVideoData(),JKa(this));QX(this)&&this.Y.i&&"embedded"===jG(OX(this))&&this.ML&&.01>Math.random()&&g.Wv("autoplayTriggered",{intentional:this.kL});this.ML=!1;this.Ta.Oa("onPlaybackStartExternal");this.Y.N("mweb_client_log_screen_associated");(function(){var c=g.Vx(a.PN||(a.Le()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.Y.N("web_playback_associated_ve")&&
a.getVideoData().Za){var e=g.Rx(a.getVideoData().Za);g.hy(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().X&&(c.cttAuthInfo={token:a.getVideoData().X,videoId:a.getVideoData().videoId});g.Wv("playbackAssociated",d,c)}})();
var b={};!this.N("web_player_csi_ctt_killswitch")&&this.getVideoData().X&&(b.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});zz("player_att",b);this.getVideoData().botguardData&&(g.JE(this.Y)||"MWEB"===this.Y.deviceParams.c?vu(xu(),function(){fY(a)}):fY(this));
this.cB()};
g.k.BF=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||jY(this)};
g.k.uM=function(a){a=a.i;!isNaN(a)&&0<a&&this.tb&&this.tb.Zw(a)};
g.k.onApiChange=function(){this.Y.B&&this.sb?this.Ta.Oa("onApiChange",this.sb.getPlayerType()):this.Ta.Oa("onApiChange")};
g.k.aV=function(){var a=this.ra;a={volume:g.sg(Math.floor(100*a.getVolume()),0,100),muted:a.oz()};a.muted||gY(this,!1);this.gg=g.We(a);this.Ta.Oa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ta.Oa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=pY(this);this.Ri(a?1:0);MKa(this,!!a)};
g.k.Ri=function(a){var b=!!a,c=!!this.As()!==b;this.visibility.Ri(a);this.template.Ri(b);this.N("html5_media_fullscreen")&&!b&&this.ra&&pY(this)===this.ra.xe()&&this.ra.yv();this.template.resize();c&&this.Qb.tick("fsc");c&&(this.Ta.ea("fullscreentoggled",b),a=OX(this),b={fullscreen:b,videoId:a.HC||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.Oa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.As=function(){return this.visibility.As()};
g.k.OV=function(){this.sb&&(0!==this.As()&&1!==this.As()||this.Ri(pY(this)?1:0),this.Y.Qi&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.ra&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.yv())};
g.k.SU=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)};
g.k.playVideo=function(a){this.ma();if(a=g.uM(this,a))2===this.appState?eY(this):(null!=this.dj&&this.dj.yb&&this.dj.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.uM(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.ma();var a=this.tb.getVideoData(),b=new FF(this.Y,{video_id:a.HC||a.videoId,oauth_token:a.oauthToken});b.Z=g.We(a.Z);this.cancelPlayback(6);nY(this,b,1);null!=this.dj&&this.dj.stop()};
g.k.cancelPlayback=function(a,b){this.ma();Vw(this.So);this.So=0;var c=g.uM(this,b);c?(this.Y.N("html5_high_res_logging")&&c.Ca("canclpb","r."+a),1===this.appState||2===this.appState?this.ma():(c===this.sb&&(this.ma(),QM(this.Vc,a)),1===b&&(c.stopVideo(),jY(this)),c.Bm(),UX(this,"cuerangesremoved",c.Wl()),c.Rg.reset(),this.Yt&&c.isGapless()&&(c.Cg(!0),c.setMediaElement(this.ra)))):this.ma()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.uM(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Xg=function(a){var b=g.uM(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Xg(a):null};
g.k.updatePlaylist=function(){HE(this.Y)?bY(this):g.kE(this.Y)&&cY(this);this.Ta.Oa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.ZN=a;this.JE=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.JE};
g.k.Le=function(){return this.visibility.Le()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Os=function(){return this.visibility.Os()};
g.k.Ms=function(){return this.visibility.Ms()};
g.k.HE=function(){return this.ZN};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return oM(this.Vc).getAdState();if(!this.Sd()){var a=RM(this.vb());if(a)return a.getAdState()}return-1};
g.k.NV=function(a){var b=this.template.getVideoContentRect();Em(this.FL,b)||(this.FL=b,this.sb&&AX(this.sb),this.tb&&this.tb!==this.sb&&AX(this.tb),1===this.As()&&this.Ow&&MKa(this,!0));this.PE&&g.zg(this.PE,a)||(this.Ta.ea("appresize",a),this.PE=a)};
g.k.tf=function(){return this.Ta.tf()};
g.k.fW=function(){2===this.getPresentingPlayerType()&&this.pd.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?NDa(this.pd):(this.Ic&&(ES(this.Ic),jY(this)),VX(this,"signature",void 0,!0))};
g.k.HM=function(){this.Cg();TX(this)};
g.k.MV=function(a){lS(a,this.ra.Op())};
g.k.gV=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Oa("onPlayerRequestAuthFailed")};
g.k.Hw=function(){this.Ta.Oa("CONNECTION_ISSUE")};
g.k.Kw=function(a){this.Ta.ea("heartbeatparams",a)};
g.k.ZA=function(a){this.Ta.Oa("onAutonavChangeRequest",1!==a)};
g.k.ld=function(){return this.ra};
g.k.setBlackout=function(a){this.Y.Db=a;this.sb&&(this.sb.Rq(),this.Y.X&&OKa(this))};
g.k.setAccountLinkState=function(a){var b=g.uM(this);b&&(b.getVideoData().OI=a,b.Rq())};
g.k.updateAccountLinkingConfig=function(a){var b=g.uM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.iV=function(){var a=g.uM(this);if(a){var b=!this.Ta.jw();(a.VK=b)||a.kq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.Y.N("html5_suspend_loader")&&a.Ya&&(b?a.Ya.resume():IX(a,!0));a.Y.N("html5_fludd_suspend")&&(g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Ub(wJ(a.playerState,512)):a.Ub(vJ(a.playerState,512)));a=a.Rb;a.qoe&&(a=a.qoe,g.iW(a,g.pS(a.i),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ta.Oa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ta.Oa("onDrmOutputRestricted")};
g.k.YC=function(){this.N("html5_skip_empty_load")&&(GQa=!0);JQa=this.N("html5_ios_force_seek_to_zero_on_stop");HQa=this.N("html5_ios7_force_play_on_stall");IQa=this.N("html5_ios4_seek_above_zero");this.N("html5_mediastream_applies_timestamp_offset")&&($T=!0);this.N("html5_dont_override_default_sample_desc_index")&&(Gna=!0);if(this.N("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.S(this.Y.experiments,"html5_idle_rate_limit_ms");
b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})};
g.k.WE=function(){this.kL=!0};
g.k.ya=function(){this.Vc.dispose();this.pd.dispose();this.Ic&&this.Ic.dispose();this.tb.dispose();this.Cg();(0,g.se)(Me(this.Xt),this.playlist);Vw(this.So);this.So=0;g.E.prototype.ya.call(this)};
g.k.ma=function(){};
g.k.N=function(a){return this.Y.N(a)};
g.k.iB=function(){return this.sx};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.PN=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=hM(this.vb()))||void 0===b?void 0:b.Ev(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.Cl;if(this.N("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.sN&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;e=g.q(e);for(var h=e.next();!h.done;h=e.next())if(h=h.value,h.index===a){d.FN(f,h.title);qY(this,h.startTime/1E3);break}}};
g.k.downloadVideo=function(a,b){var c=this,d;return g.A(function(e){if(1==e.i)return c.Gi&&c.N("woffle_orchestration")?g.x(e,OCa(c.Gi,[a],b),2):e.return(Promise.reject());d=e.u;return e.return(d[0])})};
g.k.pauseVideoDownload=function(){var a=this;return g.A(function(b){a.Gi&&a.N("woffle_pause_video_download");return b.return(Promise.reject())})};
g.k.resumeVideoDownload=function(){var a=this;return g.A(function(b){a.Gi&&a.N("woffle_pause_video_download");return b.return(Promise.reject())})};
g.k.refreshAllVideos=function(){return this.Gi&&this.N("woffle_orchestration")?aS(this.Gi,14400):Promise.reject()};
g.k.deleteVideos=function(a){return this.Gi&&this.N("woffle_orchestration")?this.Gi.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.Gi&&this.N("woffle_orchestration")?this.Gi.deleteAllVideos():Promise.reject()};
g.k.isOrchestrationLeader=function(){return this.Gi&&this.N("woffle_orchestration")?this.Gi.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Ta,b=g.uM(this),c=a.getVideoData(),d=a.ld(),e=d.xe(),f=b.Tv(),h=b.GG,l=8*bT(h,"bandwidth")/1024,m=bT(h,"networkactivity")/1024,n=bT(h,"bufferhealth");if(b.Ld){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Ld.i.mf()+"/"+rA(b.Cs());p+="/"+b.Ld.mf()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=RC(d.Uf(),",",3),v="";if(nG(c)){c.enableServerStitchedDai&&(v+="SS");v+="DAI, ";a:{if(b.pd){var y=b.pd.pn;if(0<y){y=
"AD"+y+", ";break a}}y=""}y&&(v+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}v+="vd:"+y+", "}v+="s:"+r+" t:"+t+" b:"+u+" ";d.Bu()&&(v+="S");d.ul()&&(v+="P");d.Sk()&&(v+="E");a.isOrchestrationLeader()&&(v+=" L");(d=b.Lv())&&(v+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.LC;d&&d>r.start&&d<r.end&&(v+=" as");d=v;v=g.IE();r=g.rM(a).VS;t=c.C&&!c.C.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var z="",C=0;10>C;C++)if(y=
(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(C)),4==C%5){for(var F="",G=0;6>G;G++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+F,y>>=5;z+=F}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.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<v?"*"+v.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=qsa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.ye.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.B)if(e=a.video)f=e.fps,1<f&&(l.resolution+=
"@"+f),(f=g.EX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=SDa(a),!c.K||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+SDa(c.K),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.bf;l.live_mode_style=e||a?"":"display:none";
l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(MF(c)?" Manifestless":"");else if(e){a=bT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=MF(c)?"Manifestless, ":"";c.mj&&(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=aT(h,"bandwidth");l.network_activity_samples=aT(h,"networkactivity");l.live_latency_samples=aT(h,"livelatency");l.buffer_health_samples=aT(h,"bufferhealth");c.N("woffle_orchestration")&&
(b=g.qG(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";SF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20211121_00_RC02",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.Sb&&this.Sb.postId?(a=this.Y.getVideoUrl(a),a=Zi(a,"v"),a.replace("/watch","/clip/"+this.Sb.postId)):this.Y.getVideoUrl(a,b,c,d,e)};
var t3={};g.Ia("yt.player.Application.create",g.RX.create,void 0);g.Ia("yt.player.Application.createAlternate",g.RX.create,void 0);Hla(Yx(),{qm:[{uw:/Unable to load player module/,weight:20},{uw:/Failed to fetch/,weight:500},{uw:/XHR API fetch failed/,weight:10},{uw:/JSON parsing failed after XHR fetch/,weight:10},{uw:/Retrying OnePlatform request/,weight:10}]});var lRa=g.Ja("ytcsi.tick");lRa&&lRa("pe");var mRa={U9:"replaceUrlMacros",w4:"isExternalShelfAllowedFor",B8:"onAboutThisAdPopupClosed"};tY.prototype.Gk=function(){return"adLifecycleCommand"};
tY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":(0,g.Ah)(function(){b.controller.yn()});
break;case "END_LINEAR_AD_PLACEMENT":(0,g.Ah)(function(){b.controller.Bk()});
break;case "FILL_ABOVE_FEED_SLOT":(0,g.Ah)(function(){a.elementId&&b.controller.Vy(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":(0,g.Ah)(function(){b.controller.Gy()})}};
tY.prototype.fm=function(a){this.handle(a)};uY.prototype.Gk=function(){return"clearCueRangesCommand"};
uY.prototype.handle=function(){var a=this.tD();(0,g.Ah)(function(){a.Hf(Array.from(a.hp))})};
uY.prototype.fm=function(a){this.handle(a)};vY.prototype.Gk=function(){return"muteAdEndpoint"};
vY.prototype.handle=function(a){RKa(this,a)};
vY.prototype.fm=function(a,b){RKa(this,a,b)};wY.prototype.Gk=function(){return"openPopupAction"};
wY.prototype.handle=function(){};
wY.prototype.fm=function(a){this.handle(a)};xY.prototype.Gk=function(){return"pingingEndpoint"};
xY.prototype.handle=function(){};
xY.prototype.fm=function(a){this.handle(a)};yY.prototype.Gk=function(){return"urlEndpoint"};
yY.prototype.handle=function(a,b){b=g.zr(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.yL(b,void 0,void 0,a)};
yY.prototype.fm=function(){R("Trying to handle UrlEndpoint with no macro in controlflow")};zY.prototype.Gk=function(){return"adPingingEndpoint"};
zY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.ip.send(a,b,c)};
zY.prototype.fm=function(a,b){JMa(this.Ua.get(),a,b,void 0)};AY.prototype.Gk=function(){return"changeEngagementPanelVisibilityAction"};
AY.prototype.handle=function(a){this.J.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
AY.prototype.fm=function(a){this.handle(a)};BY.prototype.Gk=function(){return"loggingUrls"};
BY.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.Ph.send(d.baseUrl,b,c,d.headers)};
BY.prototype.fm=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,JMa(this.Ua.get(),c.baseUrl,b,c.headers)};g.w(TKa,g.E);var fLa=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 oLa=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 XKa=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"]]),VKa=new Map([["normal",{Bt:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Bt:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Bt:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Bt:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Bt:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Bt:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(IY,g.E);g.k=IY.prototype;g.k.fE=function(a,b){return this.i.fE(a,b)};
g.k.Mh=function(a,b){EZ(this.u,"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.Mh(a,b)};
g.k.df=function(a){if(MY(this.i,a)){dJ(this.u,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.df(a);for(var b=g.q(this.Jd),c=b.next();!c.done;c=b.next())c.value.df(a);bLa(this,a)}};
g.k.gf=function(a){if(MY(this.i,a)){dJ(this.u,"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);MY(this.i,a)&&NY(this.i,a).D&&KY(this,a,!1)}};
g.k.uA=function(a){dJ(this.u,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);MY(this.i,a)&&(this.i.uA(a),KY(this,a,!1))};
g.k.Kc=function(a,b){if(MY(this.i,a)){OY(this.u,"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.Sc=function(a,b,c){if(MY(this.i,a)){OY(this.u,WKa(c),a,b);this.i.Sc(a,b);for(var d=g.q(this.Jd),e=d.next();!e.done;e=d.next())e.value.Sc(a,b,c);(c=aZ(this.i,a))&&b.layoutId===c.layoutId&&lLa(this,a,!1)}};
g.k.xf=function(a,b,c){R(c,a,b,void 0,c.jp);KY(this,a,!0)};
g.k.ya=function(){var a=nLa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())KY(this,b.value,!1);g.E.prototype.ya.call(this)};mLa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(PY,Wa);g.w(YY,Wa);g.w(dZ,g.E);g.k=dZ.prototype;g.k.fE=function(a,b){b=$Y(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.nh=function(a){a=NY(this,a);"not_scheduled"!==a.i&&bZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.Bv=function(a){a=NY(this,a);a.C="fill_requested";a.K.Bv()};
g.k.df=function(a){a=NY(this,a);"enter_requested"!==a.i&&bZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.uA=function(a){NY(this,a).C="fill_canceled"};
g.k.gf=function(a){a=NY(this,a);"exit_requested"!==a.i&&bZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Sc=function(a,b){a=NY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&bZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(hZ,g.E);hZ.prototype.B=function(){return this.u};g.w(iZ,g.E);iZ.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.u());return this.i};g.w(DZ,g.E);g.w(GZ,g.E);GZ.prototype.onCueRangeEnter=function(){};
GZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),By(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=Iy(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Vb:c.Vb?yMa(c.slotId,d,c.Vb):void 0,uc:zMa(c.slotId,d,c.uc),tc:zMa(c.slotId,d,c.tc)})]},c.slotId))};
GZ.prototype.kh=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()};
GZ.prototype.Hj=function(){};g.w(HZ,g.E);g.k=HZ.prototype;g.k.nh=function(){};
g.k.Mi=function(){};
g.k.df=function(){};
g.k.Li=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.Ki=function(a,b){this.Sh.has(a)&&this.Sh.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.Sh.set(a,b)};
g.k.Sc=function(a){this.Sh.delete(a)};
g.k.Mh=function(){};SZ.prototype.clone=function(a){var b=this;return new SZ(function(){return b.triggerId},a)};TZ.prototype.clone=function(a){var b=this;return new TZ(function(){return b.triggerId},a)};UZ.prototype.clone=function(a){var b=this;return new UZ(function(){return b.triggerId},a)};VZ.prototype.clone=function(a){var b=this;return new VZ(function(){return b.triggerId},a)};WZ.prototype.clone=function(a){var b=this;return new WZ(function(){return b.triggerId},a)};g.w(ZZ,g.E);ZZ.prototype.logEvent=function(a){EZ(this,a)};g.w($Z,ZZ);a_.prototype.clear=function(){this.i.clear()};g.w(b_,g.E);g.k=b_.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.kh=function(a,b,c,d,e,f,h){var l;if(""===a)R("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ia.get().kh(a,b,c,d,e,f,h);this.C.get().kh(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().kh(a,b,c,d,e,f,h);this.B.kh(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.kh(a,b,c,d,e,f,h)}};
g.k.BF=function(){this.i&&this.Hj(this.i)};
g.k.Hj=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hj(a)};g.w(c_,g.E);c_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3: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 FMa(a,b,c,d,f),this.i.set(a.id,{Gd:a,listener:e,Sj:h}),this.J.Ed([a],h))};
c_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.J.Hf([b.Gd],b.Sj),this.i.delete(a)):R("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
c_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)};
c_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)};
g.w(FMa,g.Ty);d_.prototype.Ni=function(a){this.J.Ni(a)};
d_.prototype.Oa=function(a){this.J.Oa.apply(this.J,[a].concat(g.ma(g.Ba.apply(1,arguments))))};g.k=h_.prototype;g.k.Ze=function(a,b){if(!this.i.has(a))return{};if("seek"===b)return b=this.J.V().N("html5_dai_enable_active_view_creating_completed_adblock"),yr(a,b),{};b=Usa(b);if(null===b||this.J.V().N("enable_server_stitched_dai")&&2!==this.J.getPresentingPlayerType(!0))return{};var c=this.J.Jc();c=c&&(this.J.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&gH(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ia.get().isFullscreen()};return xr(b,a,c)};
g.k.Dw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Dw()};
g.k.Cw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Cw()};
g.k.Ew=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Ew()};
g.k.Aw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Aw()};
g.k.Bw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Bw()};g.w(l_,UG);l_.prototype.nf=function(){return this.u()};
l_.prototype.i=function(){return this.B()};m_.prototype.Xg=function(){var a=this.J.Jc();return a&&(a=a.Xg(1))?a:null};
m_.prototype.Di=function(a,b){this.J.getVideoData(1).Ca(a,b)};g.w(r_,g.E);g.k=r_.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.kh=function(){this.SC.clear();this.RE=null;this.J.V().N("html5_clear_timeline_storage_killswitch")||this.i.get().clear()};
g.k.Hj=function(){};
g.k.GW=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Di("ads_ssm_vdc_s","pt."+c+";dvt."+a);(f_(this.Na.get())||this.Na.get().J.V().N("html5_debug_client_stitched"))&&"dataloaded"!==a||PMa(this,b,c)};
g.k.aW=function(a,b){void 0!==a&&(this.RE=a,void 0===b?R("Expected ad video start time on SS video changed"):this.SC.set(a,b));b=this.J.getPresentingPlayerType(!0);var c=this.J.getVideoData(b);this.J.getVideoData(1).Ca("ads_ssvc","pt."+b+";cpn."+(null===c||void 0===c?void 0:c.clientPlaybackNonce));c?PMa(this,c,b):R("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ya=function(){this.listeners.length=0;this.Cp=null;g.E.prototype.ya.call(this)};
g.k.Di=function(a,b){this.J.getVideoData(1).Ca(a,b)};g.w(s_,g.E);g.k=s_.prototype;g.k.kh=function(){var a=this;this.Fp=Bf(function(){a.J.isDisposed()||a.J.Pd("ad",1)})};
g.k.Hj=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.jm(a)&&this.J.playVideo()};
g.k.jm=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.i.get().RE;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):t_(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.BV=function(){if(2===this.J.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hi(a)};
g.k.sV=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.yg=function(){for(var a=this.J.Le(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yg(a)};
g.k.xb=function(){for(var a=this.J.eb().rg(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Fj(a)};g.w(SMa,g.E);w_.prototype.executeCommand=function(a,b){fK(this.i(),a,b)};
w_.prototype.zd=function(a,b){Yua(this.i(),a,b)};x_.prototype.addListener=function(a){this.listeners.add(a)};
x_.prototype.removeListener=function(a){this.listeners.delete(a)};z_.prototype.Bv=function(){var a=this;VMa(this.i,function(){var b=V(a.slot.Ga,"metadata_type_ad_break_request_data");return a.u.get().fetch({NO:b.getAdBreakUrl,YJ:new g.Ty(b.BN,b.AN),fv:V(a.slot.Ga,"metadata_type_cue_point")})},function(){XMa(a)},function(b){b=b.Il;
2<=b.length&&R("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!(null===(f=null===(e=null===(d=c.renderer)||void 0===d?void 0:d.linearAdSequenceRenderer)||void 0===e?void 0:e.linearAds)||void 0===f||!f.length)||!(null===(h=c.renderer)||void 0===h||!h.instreamVideoAdRenderer)})||XMa(a)})};
z_.prototype.hD=function(){WMa(this.i)};A_.prototype.Bv=function(){var a=this;VMa(this.i,function(){var b=V(a.slot.Ga,"metadata_type_ad_break_request_data");return a.u.get().fetch({NO:b.getAdBreakUrl,YJ:new g.Ty(b.BN,b.AN)})})};
A_.prototype.hD=function(){WMa(this.i)};B_.prototype.Bv=function(){cLa(this.callback,this.slot,V(this.slot.Ga,"metadata_type_fulfilled_layout"))};
B_.prototype.hD=function(){LY(this.callback,this.slot,new YY("Got CancelSlotFulfilling request for "+this.slot.qb+" in DirectFulfillmentAdapter."))};D_.prototype.Qe=function(a,b){return C_(b,{Qd:["metadata_type_fulfilled_layout"]})?new B_(a,b):this.C(a,b)};g.w(E_,D_);E_.prototype.C=function(a,b){if(C_(b,{Qd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],qb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new z_(a,b,this.i,this.B,this.u,this.D);if(C_(b,{Qd:["metadata_type_ad_break_request_data"],qb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new A_(a,b,this.i,this.B,this.u);throw new YY("Unsupported slot with type: "+b.qb+" and client metadata: "+xH(b.Ga)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(F_,D_);F_.prototype.C=function(a,b){throw new YY("Unsupported slot with type: "+b.qb+" and client metadata: "+xH(b.Ga)+" in DefaultFulfillmentAdapterFactory.");};g.k=YMa.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=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.xf(this.slot,a,new PY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=V(a.Ga,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.qb?(this.callback.Kc(this.slot,a),hma(this.i,this.slot,b)):R("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.hf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Sc(this.slot,a,b)};H_.prototype.Qe=function(a,b,c,d){if(G_(d,{Qd:["metadata_type_ad_break_response_data"],We:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new YMa(a,c,d,this.i);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};I_.prototype.Ze=function(a){var b=this.D.get(a)||[];ZMa(this,a,b);this.C.add(a)};g.k=$Ma.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("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),L_(this.u,"impression"),a0(this.i,a.layoutId))};
g.k.hf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Sc(this.slot,a,b)};O_.prototype.Qe=function(a,b,c,d){if(G_(d,aNa()))return new $Ma(a,c,d,this.Ua,this.i);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(P_,g.Q);g.k=P_.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){this.u.get().addListener(this)};
g.k.release=function(){this.u.get().removeListener(this);this.dispose()};
g.k.qE=function(){};
g.k.oE=function(){};
g.k.nE=function(){};
g.k.Az=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),BNa(a,this.i,1))};
g.k.hf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.xf(this.slot,a,new PY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();BNa(c,this.i,3);this.i=[];this.callback.Sc(this.slot,a,b)}};
g.k.ya=function(){this.u.get().removeListener(this);g.Q.prototype.ya.call(this)};g.w(bNa,zG);g.w(S_,P_);g.k=S_.prototype;g.k.qf=function(a,b){R_("action-companion",a,this.I.get().Sh,this.Ua.get(),this.B,this.C,this.rd(),this.Ib(),b)};
g.k.startRendering=function(a){Q_(this.D,this.rd(),this.Ib(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new bNa(b,c,d,e,f)},this.i);
P_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?L_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Xg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.ya=function(){this.le().Jd.delete(this);P_.prototype.ya.call(this)};g.w(T_,P_);T_.prototype.init=function(){P_.prototype.init.call(this);var a=V(this.layout.Ga,"metadata_type_ad_action_interstitial_renderer"),b=K_(this.B);this.i.push(new qH(a,b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0))};
T_.prototype.startRendering=function(a){P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
T_.prototype.qf=function(){};
T_.prototype.ya=function(){P_.prototype.ya.call(this)};g.w(U_,P_);g.k=U_.prototype;g.k.init=function(){P_.prototype.init.call(this);var a=V(this.layout.Ga,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Dc},c=!V(this.layout.Ga,"metadata_type_player_bytes_callback").Nz;this.i.push(new jL(a,this.layout.layoutId,V(this.layout.Ga,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.xo=function(){this.B||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.C.Or=this};
g.k.hf=function(a,b){P_.prototype.hf.call(this,a,b);O1(this.C,this)};
g.k.qf=function(a){if(qMa(this.D.get(),this.I))switch(a){case "visit-advertiser":this.Ua.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ia.get().jm(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();V(this.layout.Ga,"metadata_type_player_bytes_callback").XA();
break;case "skip-button":a=V(this.layout.Ga,"metadata_type_player_bytes_callback"),a.Nz&&a.Mw(this.rd(),this.layout)}};
g.k.ya=function(){P_.prototype.ya.call(this)};W_.prototype.Qe=function(a,b,c,d){if(a=V_(a,c,d,this.u,this.Ia,this.Ua,this.B,this.i))return a;throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(X_,g.E);g.k=X_.prototype;g.k.init=function(){var a=V(this.Ib().Ga,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sn()};
g.k.release=function(){var a=V(this.Ib().Ga,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Io()};
g.k.startRendering=function(a){a.layoutId!==this.Ib().layoutId?this.callback.xf(this.rd(),a,new PY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ib().layoutId+("and LayoutType: "+this.Ib().layoutType))):(this.Ia.get().addListener(this),JY(this.le(),this),this.Ia.get().J.dl(2),Kta(this.jd.get()),this.Im(a))};
g.k.hf=function(a,b){this.xE=!0;this.Qo(a,b);this.Ia.get().J.Jo(2);this.Kd.get().J.cueVideoByPlayerVars({},2);a=i_(this.Ia.get(),1);g.T(a,4)&&!g.T(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.xE&&this.RL()};
g.k.Sc=function(a,b){b.layoutId===this.Ib().layoutId&&(this.xE=!1,this.le().Jd.delete(this))};
g.k.Jj=function(a,b){var c,d;if(a.state.isError()){if(this.Na.get().J.V().N("html5_ignore_organic_playback_error_when_ads_presenting")&&(R("Presenting player state error caught in PlayerBytes layout.",this.rd(),this.Ib(),{playerType:String(b)}),1===b))return;this.xf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new PY("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.QM(a)};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};g.w(Y_,X_);g.k=Y_.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.Sn=function(){if(1>=this.u.length)throw new YY("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),UY(this.B,this.slot,b.Ib())};
g.k.Io=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,eJ(this.B,this.slot,b.Ib()),b.release()};
g.k.xq=function(a,b){var c=this.u[this.i];b.layoutId!==Z_(c,a,b)?R("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.xq()};
g.k.Gq=function(a,b){var c=this.u[this.i];b.layoutId!==Z_(c,a,b)?R("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Gq()};
g.k.Mw=function(a,b){var c=this.u[this.i];b.layoutId!==Z_(c,a,b)?R("onSkipRequested for a PlayerBytes layout that is not currently active",c.rd(),c.Ib(),{requestingSlot:a,requestingLayout:b}):$_(this,c.rd(),c.Ib(),"skipped")};
g.k.Im=function(){-1===this.i&&fNa(this)};
g.k.mW=function(a,b){VY(this.B,a,b)};
g.k.Qo=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.hf(a.Ib(),b),this.D=function(){c.callback.Sc(c.slot,c.layout,b)}):this.callback.Sc(this.slot,this.layout,b)};
g.k.Kc=function(a,b){var c=this.u[this.i];c&&c.Kc(a,b)};
g.k.Sc=function(a,b,c){X_.prototype.Sc.call(this,a,b,c);var d=this.u[this.i];d&&d.Sc(a,b,c)};
g.k.RL=function(){var a=this.u[this.i];a&&a.zz()};
g.k.Hi=function(a){var b=this.u[this.i];b&&b.Hi(a)};
g.k.QM=function(a){var b=this.u[this.i];b&&b.Jj(a)};
g.k.xf=function(a,b){-1===this.i&&(this.callback.Kc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.yw(a,b):R("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Ib().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.i];if(b)b.onFullscreenToggled(a)};
g.k.yg=function(a){var b=this.u[this.i];b&&b.yg(a)};
g.k.Fj=function(a){var b=this.u[this.i];b&&b.Fj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.i];if(a)a.onVolumeChange()};
g.k.oW=function(a,b,c){$_(this,a,b,c)};
g.k.nW=function(a,b){$_(this,a,b,"error")};g.w(e0,g.E);g.k=e0.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=V(this.layout.Ga,"metadata_type_video_length_seconds");V(this.layout.Ga,"metadata_type_active_view_traffic_type");j_(this.oa.get(),this.layout.layoutId,a,this);p_(this.Ua.get(),this);this.Sn()};
g.k.release=function(){k_(this.oa.get(),this.layout.layoutId);q_(this.Ua.get(),this);this.Io()};
g.k.xq=function(){};
g.k.Gq=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",wsa(this.La.get(),1)?this.Na.get().J.V().N("html5_fix_csi_event_order_in_pacf")?(this.I(-1),this.Im(a),this.rp(!1)):(this.rp(!1),this.I(-1),this.Im(a)):this.yw("ui_unstable",new PY("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.u="rendering",L_(this.i,"impression"),L_(this.i,"start"),this.Ia.get().isMuted()&&(L_(this.i,"mute"),a=(null===(c=d0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().zd(a,this.layout.layoutId)),this.Ia.get().isFullscreen()&&(this.i.Ze("fullscreen"),a=(null===(d=d0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().zd(a,this.layout.layoutId)),this.S=this.Ia.get().isMuted()||0===this.Ia.get().getVolume(),
f0(this,"unmuted_impression"),f0(this,"unmuted_start"),this.Ia.get().isFullscreen()&&h0(this,"unmuted_fullscreen"),Mta(this.jd.get()),this.I(1),this.CM(),a=(null===(e=d0(this))||void 0===e?void 0:e.impressionCommands)||[],this.B.get().zd(a,this.layout.layoutId))};
g.k.yw=function(a,b,c){this.Ka={EB:3,Kx:"load_timeout"===a?402:400,errorMessage:b.message};var d;V(this.layout.Ga,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&R("There is a player error in this survey ads",this.rd(),this.Ib(),{playerType:String(c)});L_(this.i,"error");f0(this,"unmuted_error");a=(null===(d=d0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().zd(a,this.layout.layoutId);this.callback.xf(this.slot,this.layout,b)};
g.k.zz=function(){this.K()};
g.k.OK=function(){var a;if("rendering"===this.u){this.i.Ze("pause");h0(this,"unmuted_pause");var b=(null===(a=d0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().zd(b,this.layout.layoutId);this.I(2)}};
g.k.PK=function(){var a;if("rendering"===this.u){this.i.Ze("resume");h0(this,"unmuted_resume");var b=(null===(a=d0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.hf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.xf(this.slot,a,new PY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.X=b,this.Qo(a,b))};
g.k.Sc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.X=void 0,this.Na.get().J.V().N("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ja)&&this.rp(a):this.rp(!0),this.DM(c),this.I(0),c){case "abandoned":var d;if(N_(this.i,"impression")){L_(this.i,"abandon");f0(this,"unmuted_abandon");var e=(null===(d=d0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().zd(e,this.layout.layoutId)}break;case "normal":L_(this.i,
"complete");f0(this,"unmuted_complete");d=(null===(e=d0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().zd(d,this.layout.layoutId);break;case "skipped":var f;L_(this.i,"skip");d=(null===(f=d0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().zd(d,this.layout.layoutId)}};
g.k.Mv=function(){return this.layout.layoutId};
g.k.QD=function(){return this.Ka};
g.k.Jj=function(a){if("not_rendering"!==this.u){this.Ba||(a=new g.jH(a.state,new g.tJ),this.Ba=!0);var b=2===this.Ia.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&b0(a)&&this.Aa():b?g.lH(a,2)?this.hI():(b0(a)?this.I(1):g.lH(a,4)&&!g.lH(a,2)&&this.OK(),0>kH(a,4)&&!(0>kH(a,2))&&this.PK()):this.zz()}};
g.k.Dw=function(){var a;if("rendering"===this.u){L_(this.i,"active_view_measurable");var b=(null===(a=d0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.Cw=function(){var a;if("rendering"===this.u){L_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=d0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.Ew=function(){var a;if("rendering"===this.u){L_(this.i,"active_view_viewable");var b=(null===(a=d0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.Aw=function(){var a;if("rendering"===this.u){L_(this.i,"audio_audible");var b=(null===(a=d0(this))||void 0===a?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.Bw=function(){var a;if("rendering"===this.u){L_(this.i,"audio_measurable");var b=(null===(a=d0(this))||void 0===a?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().zd(b,this.layout.layoutId)}};
g.k.rp=function(a){this.jd.get().rp(V(this.layout.Ga,"metadata_type_ad_placement_config").kind,a,this.position,this.Ja,!1)};
g.k.onFullscreenToggled=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Ze("fullscreen"),h0(this,"unmuted_fullscreen"),a=(null===(b=d0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().zd(a,this.layout.layoutId)):(this.i.Ze("end_fullscreen"),h0(this,"unmuted_end_fullscreen"),a=(null===(c=d0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().zd(a,this.layout.layoutId)))};
g.k.onVolumeChange=function(){var a,b;if("rendering"===this.u)if(this.Ia.get().isMuted()){L_(this.i,"mute");f0(this,"unmuted_mute");var c=(null===(a=d0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().zd(c,this.layout.layoutId)}else L_(this.i,"unmute"),f0(this,"unmuted_unmute"),c=(null===(b=d0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().zd(c,this.layout.layoutId)};
g.k.yg=function(){};
g.k.Fj=function(){};g.w(j0,e0);g.k=j0.prototype;g.k.Sn=function(){};
g.k.Io=function(){var a=this.Ua.get();a.nB===this&&(a.nB=null);g_(this.Na.get())?this.D.stop():this.timer.stop()};
g.k.Im=function(){this.Ua.get().nB=this;WI();this.Aa()};
g.k.CM=function(){kNa(this)};
g.k.hI=function(){};
g.k.xq=function(){g_(this.Na.get())?this.D.stop():this.timer.stop();e0.prototype.OK.call(this)};
g.k.Gq=function(){kNa(this);e0.prototype.PK.call(this)};
g.k.Zl=function(){return V(this.Ib().Ga,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Qo=function(){g_(this.Na.get())?this.D.stop():this.timer.stop()};
g.k.Xb=function(){var a=Date.now(),b=a-this.Z;this.Z=a;this.C+=b;this.C>=this.Zl()?(this.C=this.Zl(),g0(this,this.C/1E3,!0),i0(this,this.C),this.K()):(g0(this,this.C/1E3),i0(this,this.C))};
g.k.DM=function(){};
g.k.Hi=function(){};g.w(k0,e0);g.k=k0.prototype;g.k.Sn=function(){V(this.Ib().Ga,"metadata_type_player_bytes_callback_ref").current=this};
g.k.Io=function(){V(this.Ib().Ga,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.Z.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
g.k.Im=function(a){var b=V(a.Ga,"metadata_type_ad_video_id"),c=V(a.Ga,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Sa.get().J.V().S.add(b,{Xu:c});(b=V(a.Ga,"metadata_type_sodar_extension_data"))&&TMa(this.Va.get(),b);RMa(this.Ia.get(),!1);b=this.Kd.get();a=V(a.Ga,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.D.start();this.Kd.get().J.playVideo(2)};
g.k.CM=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Ib().layoutId;this.Z.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=(null===(a=Cy(this.xa.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||R("Media layout confirmed started, but ad CPN not set.");this.Mc.get().Oa("onAdStart",this.adCpn)};
g.k.hI=function(){this.K()};
g.k.Zl=function(){var a;return null===(a=Cy(this.xa.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.XA=function(){this.i.Ze("clickthrough")};
g.k.Qo=function(){this.D.stop();RMa(this.Ia.get(),!0)};
g.k.onCueRangeEnter=function(a){a!==this.C?R("Received CueRangeEnter signal for unknown layout.",this.rd(),this.Ib(),{cueRangeId:a}):(this.Z.get().removeCueRange(this.C),this.C=void 0,a=V(this.Ib().Ga,"metadata_type_video_length_seconds"),g0(this,a,!0),L_(this.i,"complete"))};
g.k.DM=function(a){"abandoned"!==a&&this.Mc.get().Oa("onAdComplete");this.Mc.get().Oa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Hi=function(a){"rendering"===this.u&&g0(this,a)};g.w(l0,X_);g.k=l0.prototype;g.k.rd=function(){return this.i.rd()};
g.k.Ib=function(){return this.i.Ib()};
g.k.Sn=function(){this.i.init()};
g.k.Io=function(){this.i.release()};
g.k.xq=function(){this.i.xq()};
g.k.Gq=function(){this.i.Gq()};
g.k.Mw=function(a,b){R("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.rd(),this.Ib(),{requestingSlot:a,requestingLayout:b})};
g.k.Im=function(a){this.i.startRendering(a)};
g.k.Qo=function(a,b){this.i.hf(a,b)};
g.k.Kc=function(a,b){this.i.Kc(a,b)};
g.k.Sc=function(a,b,c){X_.prototype.Sc.call(this,a,b,c);this.i.Sc(a,b,c);b.layoutId===this.Ib().layoutId&&oJ(this.jd.get())};
g.k.RL=function(){this.i.zz()};
g.k.Hi=function(a){this.i.Hi(a)};
g.k.QM=function(a){this.i.Jj(a)};
g.k.xf=function(a,b,c){this.i.yw(a,b,c)};
g.k.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)};
g.k.yg=function(a){this.i.yg(a)};
g.k.Fj=function(a){this.i.Fj(a)};
g.k.onVolumeChange=function(){this.i.onVolumeChange()};m0.prototype.Qe=function(a,b,c,d){if(a=nNa(a,b,c,d,this.le,this.I,this.Ua,this.D,this.S,this.Kd,this.K,this.Ia,this.B,this.jd,this.Mc,this.i,this.u,this.C,this.Na))return a;throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(n0,g.E);g.k=n0.prototype;g.k.FM=function(a){var b;this.i?oNa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().Do(a.identifier)};
g.k.vM=function(){};
g.k.kh=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.Hj=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.ya=function(){g.E.prototype.ya.call(this);this.i=null};g.w(o0,g.E);g.k=o0.prototype;g.k.Kc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&CY(b,this.S)){var d=Cy(this.C.get(),2),e=this.I(b,d);e?By(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[BMa(c.u.get(),e.contentCpn,e.Ot,function(h){return c.K(h.slotId,"core",e,GY(c.i.get(),h))},e.dL)];
e.instreamAdPlayerUnderlayRenderer&&HMa(c.Na.get())&&f.push(pNa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):R("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.df=function(){};
g.k.Li=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.Sc=function(){};var m1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=tNa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.Ry=function(){this.callback.df(this.slot)};
g.k.Sy=function(){this.callback.gf(this.slot)};
g.k.release=function(){};q0.prototype.Qe=function(a,b){return new tNa(a,b)};g.k=uNa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.Ry=function(){u_(this.Ia.get(),"ad-showing");this.callback.df(this.slot)};
g.k.Sy=function(){this.callback.gf(this.slot);v_(this.Ia.get(),"ad-showing")};
g.k.release=function(){};g.k=vNa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.Ry=function(){u_(this.Ia.get(),"ad-showing");u_(this.Ia.get(),"ad-interrupting");this.u=this.Ia.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.df(this.slot)};
g.k.Sy=function(){v_(this.Ia.get(),"ad-showing");v_(this.Ia.get(),"ad-interrupting");var a=this.u?Infinity:this.Ia.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ia.get().J.seekTo(a,void 0,void 0,1);this.callback.gf(this.slot)};
g.k.release=function(){};g.k=wNa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.Ry=function(){u_(this.Ia.get(),"ad-showing");u_(this.Ia.get(),"ad-interrupting");this.callback.df(this.slot)};
g.k.Sy=function(){this.Ia.get().Fp();v_(this.Ia.get(),"ad-showing");v_(this.Ia.get(),"ad-interrupting");this.callback.gf(this.slot)};
g.k.release=function(){this.Ia.get().Fp()};r0.prototype.Qe=function(a,b){if(Ey(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new uNa(a,b,this.Ia);if(b.Vb instanceof FZ&&Ey(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new vNa(a,b,this.Ia);if(Ey(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new wNa(a,b,this.Ia);throw new YY("Unsupported slot with type "+b.qb+" and client metadata: "+(xH(b.Ga)+" in PlayerBytesSlotAdapterFactory."));};g.w(t0,g.E);t0.prototype.i=function(a){for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof pZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Ie===a&&b.push(d)}b.length?WY(this.kC(),b):R("Mute requested but no registered triggers can be activated.")};g.w(u0,t0);g.k=u0.prototype;g.k.qf=function(a,b){if(b)if("survey-submit"===a)xNa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof pZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Ie===b&&a.push(d)}a.length&&WY(this.kC(),a)}else"survey-single-select-answer-button"===a&&xNa(this,b)};
g.k.qE=function(a){t0.prototype.i.call(this,a)};
g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof qZ||b instanceof pZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Jb.set(b.triggerId,new s0(a,b,c,d))};
g.k.Zi=function(a){this.Jb.delete(a.triggerId)};
g.k.oE=function(){};
g.k.nE=function(){};
g.k.Az=function(){};g.w(v0,g.E);g.k=v0.prototype;
g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof SZ||b instanceof TZ||b instanceof UZ||b instanceof VZ||b instanceof WZ||b instanceof JZ||b instanceof PZ||b instanceof oZ||b instanceof wZ||b instanceof IZ||b instanceof OZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new s0(a,b,c,d);this.Jb.set(b.triggerId,a);b instanceof WZ&&this.D.has(b.Ig)&&
WY(this.i(),[a]);b instanceof SZ&&this.B.has(b.Ig)&&WY(this.i(),[a]);b instanceof PZ&&this.u.has(b.Ie)&&WY(this.i(),[a])};
g.k.Zi=function(a){this.Jb.delete(a.triggerId)};
g.k.nh=function(a){this.D.add(a.slotId);for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WZ&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&WY(this.i(),b)};
g.k.Mi=function(a){this.D.delete(a.slotId);a=[];for(var b=g.q(this.Jb.values()),c=b.next();!c.done;c=b.next());0<a.length&&WY(this.i(),a)};
g.k.Li=function(a){for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JZ&&e.qb===a.qb&&e.i!==a.slotId&&b.push(d)}0<b.length&&WY(this.i(),b)};
g.k.df=function(a){this.B.add(a.slotId);for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SZ&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&WY(this.i(),b)};
g.k.gf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof TZ)a.slotId===d.trigger.Ig&&b.push(d);else if(d.trigger instanceof OZ){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Ie)&&b.push(d)}0<b.length&&WY(this.i(),b)};
g.k.Kj=function(a){for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof UZ&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&WY(this.i(),b)};
g.k.Lj=function(a){for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VZ&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&WY(this.i(),b)};
g.k.Ji=function(a,b){this.I.add(b.layoutId)};
g.k.Ki=function(a,b){this.I.delete(b.layoutId)};
g.k.Kc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.q(this.Jb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof PZ)b.layoutId===e.trigger.Ie&&c.push(e);else if(e.trigger instanceof IZ){var f=e.trigger;a.qb===f.qb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof OZ&&(f=e.trigger,b.layoutId===f.Ie&&this.C.has(f.slotId)&&c.push(e));0<c.length&&WY(this.i(),c)};
g.k.Sc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.q(this.Jb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof oZ&&b.layoutId===e.trigger.Ie&&a.push(e),e.trigger instanceof wZ&&b.layoutId===e.trigger.Ie&&"error"===c&&a.push(e);0<a.length&&WY(this.i(),a)};
g.k.Mh=function(){};
g.k.kh=function(){this.C.clear()};
g.k.Hj=function(){};g.w(w0,g.E);w0.prototype.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof Fy||b instanceof KZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Jb.set(b.triggerId,new s0(a,b,c,d))};
w0.prototype.Zi=function(a){this.Jb.delete(a.triggerId)};
w0.prototype.kh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.q(this.Jb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof Fy&&l.trigger.To===a&&f.push(l);e.call(d,b,g.ma(f));b.push.apply(b,g.ma(yNa(this.Jb,a,!1,c)));b.length&&WY(this.i(),b)};
w0.prototype.Hj=function(a){var b=[];b.push.apply(b,g.ma(yNa(this.Jb,a,!0,!1)));b.length&&WY(this.i(),b)};g.w(x0,g.E);g.k=x0.prototype;
g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof FZ)y0(this,a,b,c,d,e,b.i.start,b.i.end,b.To,b.visible);else if(b instanceof QZ)y0(this,a,b,c,d,e,b.i.start,b.i.end,b.To,!1);else if(b instanceof NZ)y0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.To,b.visible);else throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Zi=function(a){var b=this.Jb.get(a.triggerId);b&&this.B.get().removeCueRange(b.My);this.Jb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){if(a=zNa(this,a))if(a=this.Jb.get(a))if(g.T(i_(this.Ia.get()),32))this.i.add(a.My);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof FZ||b instanceof NZ)&&WY(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=zNa(this,a))if(a=this.Jb.get(a))this.i.delete(a.My),a.bundle.trigger instanceof QZ&&WY(this.u(),[a.bundle])};
g.k.Jj=function(a){if(0>kH(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}};
g.k.Hi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(){};
g.k.Fj=function(){};
g.k.onVolumeChange=function(){};g.w(z0,g.E);g.k=z0.prototype;g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof sZ||b instanceof RZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Jb.set(b.triggerId,new s0(a,b,c,d))};
g.k.Zi=function(a){this.Jb.delete(a.triggerId)};
g.k.yn=function(){};
g.k.Bk=function(){};
g.k.Kc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null!=this.i?R("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Sc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(this.i=null)};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null!=this.u?R("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.gf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.qb&&(null===this.u?R("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.Gy=function(){null!=this.i&&a0(this,this.i)};
g.k.Vy=function(a){if(null===this.u){for(var b=[],c=g.q(this.Jb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof RZ&&d.trigger.slotId===a&&b.push(d);b.length&&WY(this.B(),b)}};g.w(A0,g.E);g.k=A0.prototype;g.k.Mh=function(a,b){for(var c=[],d=g.q(this.Jb.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&&WY(this.i(),c)};
g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof sMa))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Jb.set(b.triggerId,new s0(a,b,c,d))};
g.k.Zi=function(a){this.Jb.delete(a.triggerId)};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Kc=function(){};
g.k.Sc=function(){};g.w(B0,g.E);B0.prototype.ya=function(){this.B.get().removeListener(this);g.E.prototype.ya.call(this)};g.w(C0,g.E);C0.prototype.ya=function(){this.D.get().removeListener(this);g.E.prototype.ya.call(this)};D0.prototype.fetch=function(a){var b=a.YJ;return this.fp.fetch(a.NO,{fv:void 0===a.fv?void 0:a.fv,Gd:b}).then(function(c){return ANa(c,b)})};g.w(E0,g.E);g.k=E0.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){F0(this,function(c){c.qf(a,b)})};
g.k.oF=function(a){F0(this,function(b){b.oE(a)})};
g.k.nF=function(a){F0(this,function(b){b.nE(a)})};
g.k.ST=function(a){F0(this,function(b){b.Az(a)})};g.w(G0,g.E);g.k=G0.prototype;g.k.kh=function(){this.C=new hJ(this,GMa(this.Na.get()));this.u=new iJ;CNa(this)};
g.k.Hj=function(a){null!=this.i&&a===this.i.clientPlaybackNonce&&(this.i.unsubscribe("cuepointupdated",this.Iw,this),this.i=null)};
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.HF=function(a){this.tB.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.FM(a)};
g.k.xM=function(a){g.rc(this.u.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.vM(a)};
g.k.Iw=function(a){var b=Cy(this.D.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||CZ(this.Na.get()))&&o_(this.Ua.get(),{cuepointTrigger:{event:DNa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),b?this.C.reduce(e):CZ(this.Na.get())&&0!==this.J.getCurrentTime(1)&&"start"===e.event&&this.HF(e)};
g.k.ya=function(){null!=this.i&&(this.i.unsubscribe("cuepointupdated",this.Iw,this),this.i=null);this.listeners.length=0;this.B.clear();this.tB.length=0;g.E.prototype.ya.call(this)};J0.prototype.addListener=function(a){this.listeners.push(a)};
J0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=K0.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a;this.D.get().addListener(this);this.Ia.get().addListener(this);this.Sn();var b=V(this.layout.Ga,"metadata_type_layout_enter_ms"),c=V(this.layout.Ga,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().Cp)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Dc.adClientDataEntry;o_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.D.get();f=jJ(f.u,b,c);null!==f&&(o_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:f-
b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().xp(f,c))};
g.k.release=function(){this.Io();this.D.get().removeListener(this);this.Ia.get().removeListener(this)};
g.k.startRendering=function(){this.Im();this.callback.Kc(this.slot,this.layout)};
g.k.hf=function(a,b){this.Qo(b);null!==this.driftRecoveryMs&&(L0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(FNa(this)-V(this.layout.Ga,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ia.get().J.In()).toString()}),this.driftRecoveryMs=null);this.callback.Sc(this.slot,this.layout,b)};
g.k.FM=function(){};
g.k.vM=function(a){var b,c=V(this.layout.Ga,"metadata_type_layout_enter_ms"),d=V(this.layout.Ga,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(o_(this.Ua.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.B.get().Cp)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Dc.adClientDataEntry}}),this.K.get().xp(a,d))};
g.k.Hi=function(a){this.lM(a);a=this.Ia.get().getCurrentTimeSec(2,!0);if(qMa(this.S.get(),this.layout.layoutId)){var b=V(this.layout.Ga,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=FNa(this),e=this.Ia.get().J.In(),f=Math.min(a+e,d/1E3);f<=a?L0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(L0(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.Ia.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.yg=function(){};
g.k.Fj=function(){};
g.k.onVolumeChange=function(){};g.w(M0,K0);g.k=M0.prototype;g.k.Sn=function(){this.B.get().addListener(this);this.I.forEach(function(a){a.init()});
null!=this.C&&this.Ua.get().Di("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.k.Io=function(){this.B.get().removeListener(this);this.u=null;this.I.forEach(function(a){a.release()})};
g.k.Im=function(){var a;if(this.u)R("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var b=null===(a=this.B.get().Cp)||void 0===a?void 0:a.layoutId;HNa(this,b)}};
g.k.Qo=function(a){var b,c,d,e;null===(c=null===(b=this.u)||void 0===b?void 0:b.di)||void 0===c?void 0:c.hf(null===(e=null===(d=this.u)||void 0===d?void 0:d.di)||void 0===e?void 0:e.Ib(),a);this.u=null};
g.k.LM=function(a){var b=a.videoId;a=a.layoutId;var c,d,e,f,h;"nPpU29QrbiU"===b&&this.Ua.get().Di("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null===(d=null===(c=this.u)||void 0===c?void 0:c.di)||void 0===d?void 0:d.Ib().layoutId));this.u&&(null===(e=this.u.di)||void 0===e?void 0:e.Ib().layoutId)!==a&&(null===(f=this.u.di)||void 0===f?void 0:f.hf(null===(h=this.u.di)||void 0===h?void 0:h.Ib(),"normal"),HNa(this,a))};
g.k.lM=function(){};
g.k.Jj=function(){};
g.k.onFullscreenToggled=function(){};g.k=SNa.prototype;g.k.rd=function(){return this.slot};
g.k.Ib=function(){return this.layout};
g.k.init=function(){var a=this;V(this.layout.Ga,"metadata_type_player_bytes_callback_ref").current=this;this.Bc=INa(this.slot,this.layout,V(this.layout.Ga,"metadata_type_player_vars"),V(this.layout.Ga,"metadata_type_layout_enter_ms"),V(this.layout.Ga,"metadata_type_layout_exit_ms"),1E3*V(this.layout.Ga,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var c=Object,d=c.assign,e=Object.assign({layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},Q0(a.layout));var f=V(a.slot.Ga,
"metadata_type_fulfilled_layout");f=Object.assign(Object.assign({},Q0(f)),{adPlacementConfig:V(f.Ga,"metadata_type_ad_placement_config"),subLayouts:V(f.Ga,"metadata_type_sub_layouts").map(Q0)});return d.call(c,e,{compositeLayout:f,hasSurveyOverlay:Dy(a.layout.Ga,"metadata_type_survey_overlay"),surveyOverlay:V(a.layout.Ga,"metadata_type_survey_overlay")})},this.Ua.get());
this.Ia.get().addListener(this);var b=V(this.layout.Ga,"metadata_type_video_length_seconds");V(this.layout.Ga,"metadata_type_active_view_traffic_type");j_(this.B.get(),this.layout.layoutId,b,this);UY(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ia.get().removeListener(this);k_(this.B.get(),this.layout.layoutId);this.Na.get().J.V().N("html5_unschedule_dai_media_sublayout_killswitch")||eJ(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;Dy(this.layout.Ga,"metadata_type_survey_overlay")&&this.Ua.get().Di("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)R("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Dy(this.layout.Ga,"metadata_type_survey_overlay"),surveyOverlay:V(this.layout.Ga,"metadata_type_survey_overlay")});else{this.u={Aj:null,lx:!1};JNa(this.slot,this.layout,this.I.get());L_(this.i,"start");if(f_(this.Na.get())){var b=i_(this.Ia.get()),
c=V(this.layout.Ga,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);KNa(this.i,this.u.Aj,b,c,d,function(){return void UNa(a,"teois")})}VY(this.callback,this.slot,this.layout);
Dy(this.layout.Ga,"metadata_type_survey_overlay")&&this.Ua.get().Di("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.hf=function(a,b){var c=this;if(this.u){if(f_(this.Na.get()))if(null===this.Bc)R("Unexpected media sub layout exited without a timeline playback ID");else{a=V(this.layout.Ga,"metadata_type_video_length_seconds");var d=t_(this.Ia.get(),this.Bc);this.i.B=d;O0(this.i,null,this.u.Aj,a,d,function(e){return void TNa(c,e,"fue")})}this.u=null;
cJ(this.callback,this.slot,this.layout,b)}else R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.yw=function(){};
g.k.zz=function(){};
g.k.Hi=function(a){var b=this;if(this.u){if(N_(this.i,"impression")){var c=i_(this.Ia.get()),d=V(this.layout.Ga,"metadata_type_video_length_seconds");P0(this.i,c,a,this.u.Aj,d,function(e){return void TNa(b,e,"tpaqe")})}this.u.Aj=a}};
g.k.Jj=function(a){var b=this;if(this.u){f_(this.Na.get())||this.u.lx||(this.u.lx=!0,a=new g.jH(a.state,new g.tJ));var c=V(this.layout.Ga,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);N0(this.i,this.u.Aj,a,c,d,!f_(this.Na.get()),function(){return void UNa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){LNa(this.i,a)};
g.k.yg=function(){};
g.k.Fj=function(){};
g.k.Mw=function(){};
g.k.onVolumeChange=function(){};
g.k.Kc=function(){};
g.k.Sc=function(){};
g.k.xq=function(){};
g.k.Gq=function(){};
g.k.XA=function(){MNa(this.i)};
g.k.Dw=function(){NNa(this.i)};
g.k.Cw=function(){ONa(this.i)};
g.k.Ew=function(){PNa(this.i)};
g.k.Aw=function(){QNa(this.i)};
g.k.Bw=function(){RNa(this.i)};g.w(R0,K0);g.k=R0.prototype;
g.k.Sn=function(){var a=this;V(this.layout.Ga,"metadata_type_player_bytes_callback_ref").current=this;var b=V(this.layout.Ga,"metadata_type_layout_enter_ms"),c=V(this.layout.Ga,"metadata_type_layout_exit_ms");this.Bc=INa(this.slot,this.layout,V(this.layout.Ga,"metadata_type_player_vars"),b,c,1E3*V(this.layout.Ga,"metadata_type_video_length_seconds"),this.K.get(),this.X.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:V(a.layout.Ga,"metadata_type_ad_placement_config")}},
this.Ua.get());
var d=V(this.layout.Ga,"metadata_type_video_length_seconds");V(this.layout.Ga,"metadata_type_active_view_traffic_type");j_(this.C.get(),this.layout.layoutId,d,this)};
g.k.Io=function(){k_(this.C.get(),this.layout.layoutId)};
g.k.Im=function(){var a=this;if(this.u)R("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Aj:null,lx:!1},JNa(this.slot,this.layout,this.I.get()),L_(this.i,"start"),f_(this.Na.get())){var b=i_(this.Ia.get()),c=V(this.layout.Ga,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);KNa(this.i,this.u.Aj,b,c,d,function(){return void VNa(a,"teois")})}};
g.k.Qo=function(){var a=this;if(this.u){if(f_(this.Na.get()))if(null===this.Bc)R("Unexpected single media layout exited without a timeline playback ID");else{var b=V(this.layout.Ga,"metadata_type_video_length_seconds"),c=t_(this.Ia.get(),this.Bc);this.i.B=c;O0(this.i,null,this.u.Aj,b,c,function(d){return void WNa(a,d,"fue")})}this.u=null}else R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.lM=function(a){var b=this;if(this.u){if(N_(this.i,"impression")){var c=i_(this.Ia.get()),d=V(this.layout.Ga,"metadata_type_video_length_seconds");P0(this.i,c,a,this.u.Aj,d,function(e){return void WNa(b,e,"tpaqe")})}this.u.Aj=a}};
g.k.Jj=function(a){var b=this;if(this.u){f_(this.Na.get())||this.u.lx||(this.u.lx=!0,a=new g.jH(a.state,new g.tJ));var c=V(this.layout.Ga,"metadata_type_video_length_seconds"),d=this.Ia.get().getCurrentTimeSec(2,!1);N0(this.i,this.u.Aj,a,c,d,!f_(this.Na.get()),function(){return void VNa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){LNa(this.i,a)};
g.k.XA=function(){MNa(this.i)};
g.k.Dw=function(){NNa(this.i)};
g.k.Cw=function(){ONa(this.i)};
g.k.Ew=function(){PNa(this.i)};
g.k.Aw=function(){QNa(this.i)};
g.k.Bw=function(){RNa(this.i)};S0.prototype.Qe=function(a,b,c,d){if(Dy(c.Ga,"metadata_type_dai")){var e=V(d.Ga,"metadata_type_ad_placement_config");G_(d,{Qd:"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 metadata_type_content_cpn".split(" "),We:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new I_(d.pc,this.Ua,e,d.layoutId,null),e=new R0(a,c,d,this.i,this.B,this.K,this.D,this.Ia,e,this.Ua,this.C,this.I,this.u,this.Na)):e=null;
if(e)return e;a:{var f=V(d.Ga,"metadata_type_sub_layouts"),h=V(d.Ga,"metadata_type_ad_placement_config");if(G_(d,{Qd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],We:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.q(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=V(l.Ga,"metadata_type_media_sub_layout_index");if(!G_(l,{Qd:"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 metadata_type_content_cpn".split(" "),
We:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new I_(l.pc,this.Ua,h,l.layoutId,m);e.push(new SNa(b,c,l,this.B,m,this.Ia,this.K,this.u,this.C,this.Na,this.Ua,this.i))}b=new I_(d.pc,this.Ua,h,d.layoutId);a=new M0(a,c,d,this.i,this.B,this.D,this.Ia,b,this.Ua,this.I,e)}else a=null}if(a)return a}else if(a=nNa(a,b,c,d,this.le,this.xa,this.Ua,this.u,this.C,this.Kd,this.i,this.Ia,this.Z,this.jd,this.Mc,this.S,this.X,this.oa,this.Na))return a;throw new PY("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+xH(d.Ga)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(T0,g.E);T0.prototype.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof zZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Jb.set(b.triggerId,new s0(a,b,c,d))};
T0.prototype.Zi=function(a){this.Jb.delete(a.triggerId)};g.w(V0,g.E);
V0.prototype.Pi=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new YY("Tried to re-register the trigger.");a=new s0(a,b,c,d);if(a.trigger instanceof xMa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof rZ)this.B.set(a.trigger.triggerId,a);else throw new YY("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&WY(this.C(),[a])};
V0.prototype.Zi=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
V0.prototype.LM=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.ma(XNa(this.B,this.i)));null!=a&&b.push.apply(b,g.ma(XNa(this.u,a)));this.i=a;b.length&&WY(this.C(),b)}};g.k=W0.prototype;g.k.Rr=function(a,b,c,d,e,f){return this.J.Rr(a,b,c,d,e,f)};
g.k.xp=function(a,b){this.J.xp(a,b)};
g.k.St=function(a,b,c){this.J.St(a,b,c)};
g.k.Do=function(a){this.J.Do(a)};
g.k.cw=function(a,b,c,d,e,f){this.J.cw(a,b,c,d,e,f)};g.w(YNa,zG);g.w(X0,P_);g.k=X0.prototype;g.k.qf=function(a,b){R_("image-companion",a,this.I.get().Sh,this.Ua.get(),this.B,this.C,this.rd(),this.Ib(),b)};
g.k.startRendering=function(a){Q_(this.D,this.rd(),this.Ib(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new YNa(b,c,d,e,f)},this.i);
P_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?L_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Xg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.ya=function(){this.le().Jd.delete(this);P_.prototype.ya.call(this)};g.w($Na,zG);g.w(Y0,P_);g.k=Y0.prototype;g.k.qf=function(a,b){R_("shopping-companion",a,this.I.get().Sh,this.Ua.get(),this.B,this.C,this.rd(),this.Ib(),b)};
g.k.startRendering=function(a){Q_(this.D,this.rd(),this.Ib(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new $Na(b,c,d,e,f)},this.i);
P_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?L_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Xg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.ya=function(){this.le().Jd.delete(this);P_.prototype.ya.call(this)};g.w(bOa,zG);g.w(Z0,P_);g.k=Z0.prototype;g.k.qf=function(a,b){R_("ads-engagement-panel",a,this.I.get().Sh,this.Ua.get(),this.B,this.C,this.rd(),this.Ib(),b)};
g.k.startRendering=function(a){Q_(this.D,this.rd(),this.Ib(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new bOa(b,c,d,e,f)},this.i);
P_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?L_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ua.get().Xg():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Sc=function(){};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=function(){};
g.k.ya=function(){this.le().Jd.delete(this);P_.prototype.ya.call(this)};dOa.prototype.Qe=function(a,b,c,d){if(G_(d,cOa()))return new Z0(a,c,d,this.i,this.Ua,this.le,this.B,this.u);if(G_(d,cNa()))return new S_(a,c,d,this.i,this.Ua,this.le,this.B,this.u);if(G_(d,ZNa()))return new X0(a,c,d,this.i,this.Ua,this.le,this.B,this.u);if(G_(d,aOa()))return new Y0(a,c,d,this.i,this.Ua,this.le,this.B,this.u);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w($0,zG);g.w(a1,P_);a1.prototype.init=function(){P_.prototype.init.call(this);var a=V(this.layout.Ga,"metadata_type_player_underlay_renderer");this.i.push(new $0(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Dc}))};
a1.prototype.qf=function(){};
a1.prototype.startRendering=function(a){P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
a1.prototype.ya=function(){P_.prototype.ya.call(this)};eOa.prototype.Qe=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.q(J_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(G_(d,{Qd:b,We:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new a1(a,c,d,this.i);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(b1,P_);b1.prototype.startRendering=function(a){var b=K_(this.B),c={adsClientData:this.layout.Dc};this.i.push(new YI(V(this.layout.Ga,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Ib().layoutId,c,!0,!0));P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
b1.prototype.qf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=V(this.layout.Ga,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Mw(this.slot,this.layout):R("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
b1.prototype.ya=function(){P_.prototype.ya.call(this)};var d1=new g.yg(320,63);g.w(g1,zG);g.w(h1,P_);g.k=h1.prototype;g.k.Hi=function(){};
g.k.Jj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(a){a&&U0(this.B,this.layout)};
g.k.Fj=function(a){var b=f1(this.layout);if(this.I=e1(a,QMa(this.Ia.get())))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),U0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Mv=function(){return this.Ib().layoutId};
g.k.QD=function(){return this.I};
g.k.qf=function(a){this.C.qf(a);"in_video_overlay_close_button"===a&&U0(this.B,this.layout)};
g.k.Az=function(a){"invideo-overlay"===a&&U0(this.B,this.layout)};
g.k.xo=function(){this.C.xo()};
g.k.startRendering=function(a){P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.D.Or=this};
g.k.hf=function(a,b){P_.prototype.hf.call(this,a,b);O1(this.D,this)};
g.k.init=function(){P_.prototype.init.call(this);p_(this.Ua.get(),this);this.Ia.get().addListener(this);this.i.push(new g1(f1(this.layout),K_(this.S),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.release=function(){P_.prototype.release.call(this);this.Ia.get().removeListener(this);q_(this.Ua.get(),this)};g.w(i1,P_);g.k=i1.prototype;g.k.init=function(){P_.prototype.init.call(this);p_(this.Ua.get(),this);this.Ia.get().addListener(this);this.i.push(new g1(f1(this.layout),K_(this.X),this.layout.layoutId,{adsClientData:this.layout.Dc}))};
g.k.xo=function(){this.C.xo()};
g.k.startRendering=function(a){P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.D.Or=this};
g.k.hf=function(a,b){P_.prototype.hf.call(this,a,b);O1(this.D,this)};
g.k.qf=function(a){this.C.qf(a);"in_video_overlay_close_button"===a&&U0(this.B,this.layout)};
g.k.oE=function(a){if("invideo-overlay"===a){a=jOa(this.K,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Az=function(a){"invideo-overlay"===a&&U0(this.B,this.layout)};
g.k.nE=function(a){if("invideo-overlay"===a){a=jOa(this.K,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Hi=function(){};
g.k.Jj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(a){a&&U0(this.B,this.layout)};
g.k.Fj=function(a){var b=f1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=QMa(this.Ia.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Xb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.yg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.yg(0,0)}if(this.I=e1(a,d,c))b.onErrorCommand&&this.S.get().executeCommand(b.onErrorCommand,this.layout.layoutId),U0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Mv=function(){return this.Ib().layoutId};
g.k.QD=function(){return this.I};
g.k.release=function(){P_.prototype.release.call(this);this.Ia.get().removeListener(this);q_(this.Ua.get(),this)};j1.prototype.qf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Ia.get().jm(1))||this.Ia.get().pauseVideo())};
j1.prototype.xo=function(){this.i||this.Ia.get().resumeVideo(1)};g.w(k1,P_);g.k=k1.prototype;g.k.init=function(){P_.prototype.init.call(this);this.Ia.get().addListener(this)};
g.k.startRendering=function(a){var b=V(this.layout.Ga,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new UI(b,this.layout.layoutId,{adsClientData:this.layout.Dc},!0,!0));P_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
g.k.Kc=function(){};
g.k.qf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=V(this.layout.Ga,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.xq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Gq(this.slot,this.layout):R("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Fj=function(a){450>a.width&&U0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Hi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(){};
g.k.Jj=function(){};
g.k.ya=function(){P_.prototype.ya.call(this)};
g.k.release=function(){P_.prototype.release.call(this);this.Ia.get().removeListener(this)};iOa.prototype.Qe=function(a,b,c,d){if(b=V_(a,c,d,this.i,this.Ia,this.Ua,this.K,this.u))return b;if(G_(d,hOa()))return new i1(c,d,this.Ua,this.D,this.i,a,this.B,this.I,this.Ia,this.C,this.Na,this.u,new j1(this.Ia));if(G_(d,gOa()))return new h1(c,d,this.Ua,this.D,this.i,a,this.B,this.Ia,this.C,this.Na,this.u,new j1(this.Ia));if(G_(d,{Qd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],We:["LAYOUT_TYPE_SURVEY"]}))return new k1(c,d,a,this.i,this.B,this.Ia,this.Na);if(G_(d,{Qd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],We:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new b1(c,d,a,this.i,this.Ua);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(l1,g.E);g.k=l1.prototype;g.k.Pi=function(a,b,c,d){if(this.Jb.has(b.triggerId))throw new YY("Tried to register duplicate trigger for slot.");if(!(b instanceof vZ))throw new YY("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Jb.set(b.triggerId,new s0(a,b,c,d));a=this.i.has(b.Ie)?this.i.get(b.Ie):new Set;a.add(b);this.i.set(b.Ie,a)};
g.k.Zi=function(a){this.Jb.delete(a.triggerId);if(!(a instanceof vZ))throw new YY("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.i.get(a.Ie))b.delete(a),0===b.size&&this.i.delete(a.Ie)};
g.k.nh=function(){};
g.k.Mi=function(){};
g.k.Li=function(){};
g.k.df=function(){};
g.k.gf=function(){};
g.k.Kj=function(){};
g.k.Lj=function(){};
g.k.Ji=function(){};
g.k.Ki=function(){};
g.k.Mh=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={ju:a.ju},d=b.next())a.ju=d.value,d=new g.I(function(e){return function(){var f=c.Jb.get(e.ju.triggerId);WY(c.B(),[f])}}(a),a.ju.durationMs),d.start(),this.u.set(a.ju.triggerId,d)}};
g.k.Sc=function(){};g.w(kOa,g.E);lOa.prototype.Qe=function(a,b,c,d){if(b=V_(a,c,d,this.u,this.Ia,this.Ua,this.K,this.i))return b;if(G_(d,hOa()))return new i1(c,d,this.Ua,this.D,this.u,a,this.B,this.I,this.Ia,this.C,this.Na,this.i,new j1(this.Ia));if(G_(d,gOa()))return new h1(c,d,this.Ua,this.D,this.u,a,this.B,this.Ia,this.C,this.Na,this.i,new j1(this.Ia));throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(mOa,g.E);g.w(nOa,g.E);g.w(oOa,g.E);g.w(n1,U_);n1.prototype.startRendering=function(a){U_.prototype.startRendering.call(this,a);V(this.layout.Ga,"metadata_ad_video_is_listed")&&(a=V(this.layout.Ga,"metadata_type_ad_info_ad_metadata"),this.K.get().J.Oa("onAdMetadataAvailable",a))};qOa.prototype.Qe=function(a,b,c,d){if(G_(d,pOa()))return new n1(a,c,d,this.B,this.Ia,this.Ua,this.C,this.u,this.i);throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(rOa,g.E);sOa.prototype.Qe=function(a,b,c,d){if(G_(d,pOa()))return new n1(a,c,d,this.u,this.Ia,this.Ua,this.B,this.C,this.i);if(a=V_(a,c,d,this.u,this.Ia,this.Ua,this.B,this.i))return a;throw new PY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+xH(d.Ga)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(tOa,g.E);g.w(o1,g.E);o1.prototype.B=function(){return this.u};q1.prototype.Vy=function(a){this.rk.Vy(a)};
q1.prototype.Gy=function(){try{this.rk.Gy()}catch(a){}};
q1.prototype.yn=function(){this.i().yn()};
q1.prototype.Bk=function(){this.i().Bk()};g.w(r1,PK);
r1.prototype.C=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.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.i});break;case 3:this.i.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Oa("updateEngagementPanelAction",b.addAction);this.i.Oa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.Oa("changeEngagementPanelVisibility",b.hideAction),this.i.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(s1,WK);g.k=s1.prototype;g.k.init=function(a,b,c){WK.prototype.init.call(this,a,b,c);g.Hm(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){YK(this);WK.prototype.hide.call(this)};
g.k.show=function(){XK(this);WK.prototype.show.call(this)};
g.k.Bq=function(){this.hide()};
g.k.Go=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Hm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(t1,rK);g.k=t1.prototype;
g.k.init=function(a,b,c){rK.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.kb(g.Eg(e[0].url))&&(e[0].url=d.Qh);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.kb(g.Eg(e[0].url))&&(e[0].url=d.Ke());e=b.headline;null!=e&&g.kb(g.Eg(e.text))&&(e.text=d.author)}this.D.init(yG("ad-image"),b.image,c);this.S.init(yG("ad-text"),b.headline,c);this.I.init(yG("ad-text"),b.description,c);this.Z.init(yG("ad-image"),b.backgroundImage,c);this.actionButton=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.H(this,
this.actionButton);this.actionButton.Ea(this.La);this.actionButton.init(yG("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.Ka,"click",this.ID,this),this.C.T(this.Ja,"click",this.ID,this),this.C.T(this.Ba,"click",this.ID,this));this.u=this.Eg?new kL(this.api,a):new lL(a);g.H(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new fL(this.api,this.Xa,this.layoutId,this.i,this.u,this.Ti),
g.H(this,this.skipButton),this.skipButton.Ea(this.element),this.skipButton.init(yG("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new aL(this.api,this.Xa,this.layoutId,this.i,this.u,!1),g.H(this,this.B),this.B.Ea(this.element),this.B.init(yG("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new s1(this.api,this.Xa,this.layoutId,this.i,this.u),g.H(this,c),c.Ea(this.element),
c.init(yG("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.Ex(this.C);this.hide()};
g.k.show=function(){vOa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();rK.prototype.show.call(this)};
g.k.hide=function(){vOa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();rK.prototype.hide.call(this)};
g.k.ID=function(){this.navigationEndpoint&&this.Xa.executeCommand(this.navigationEndpoint,this.macros)};var v1={iconType:"CLOSE"},z1=new g.yg(320,63);g.w(u1,rK);g.k=u1.prototype;
g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);this.D=b;this.S=g.fc(this.D.onClickCommands||[]);this.Ka=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.Sg("ytp-ad-overlay-ad-info-button-container",this.C.element),x1(this,b),a=AOa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.Sg("ytp-ad-overlay-ad-info-button-container",this.B.element),
x1(this,b),a=BOa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.Sg("ytp-ad-overlay-ad-info-button-container",this.u.element),x1(this,b),a=COa(this,a.imageOverlayAdContentRenderer)):(g.by(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),DOa(this,!0))};
g.k.clear=function(){DOa(this,!1);this.Ja.reset();this.Z=0;this.C.hide();this.gb(this.C.element,!1);this.B.hide();this.gb(this.B.element,!1);this.u.hide();this.gb(this.u.element,!1);this.hide();this.dispose()};
g.k.rW=function(){this.Wa&&this.Xa.executeCommand(this.Wa,this.macros);this.api.pauseVideo()};
g.k.Ii=function(){var a=this;zOa(this).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.KT=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.GF=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.GF("invideo-overlay")};
g.k.LT=function(a){a.target===this.I&&g.Sg("ytp-ad-button",this.Za.element).click()};g.w(A1,WK);g.k=A1.prototype;g.k.init=function(a,b,c){WK.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(yG("ad-text"),d,c);this.messageText.Ea(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){EOa(this,!1);WK.prototype.hide.call(this);this.B.hide();this.messageText.hide();YK(this)};
g.k.show=function(){EOa(this,!0);WK.prototype.show.call(this);XK(this);this.B.show();this.messageText.show()};
g.k.Bq=function(){this.hide()};
g.k.Go=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.S&&a>=this.C?(this.I.hide(),this.S=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(VK(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.w(B1,rK);g.k=B1.prototype;
g.k.init=function(a,b,c){rK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.u.init(yG("ad-image"),b.image,c),this.C.init(yG("ad-text"),b.headline,c),this.B.init(yG("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new FK(this.api,this.Xa,this.layoutId,this.i,a),g.H(this,
this.actionButton),this.actionButton.Ea(this.I),this.actionButton.init(yG("button"),b.actionButton.buttonRenderer,c),this.api.V().N("place_shrunken_video_on_left_of_player")?(b=this.D,g.Nr(b,"ytp-ad-underlay-left-container"),g.L(b,"ytp-ad-underlay-right-container")):(b=this.D,g.Nr(b,"ytp-ad-underlay-right-container"),g.L(b,"ytp-ad-underlay-left-container")),this.api.eB(!0),this.api.Oz()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iI.bind(this))):g.by(Error("InstreamAdPlayerUnderlayRenderer has no button.")):
g.by(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.by(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.by(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){FOa(!0);this.actionButton&&this.actionButton.show();rK.prototype.show.call(this)};
g.k.hide=function(){FOa(!1);this.actionButton&&this.actionButton.hide();rK.prototype.hide.call(this)};
g.k.clear=function(){this.api.eB(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.iI.bind(this));this.hide()};
g.k.onClick=function(a){rK.prototype.onClick.call(this,a);this.actionButton&&g.ih(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.iI=function(a){a?this.show():this.hide()};g.w(C1,rK);
C1.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(yG("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new NK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.u.Ea(this.answer),
g.H(this,this.u),this.u.init(yG("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
C1.prototype.clear=function(){this.hide()};g.w(D1,rK);D1.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new NK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.u),this.button.init(yG("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(E1,FK);E1.prototype.init=function(a,b,c){FK.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.$y(b.text),a=!g.kb(b));a||g.cy(Error("No submit text was present in the renderer."))};
E1.prototype.onClick=function(a){this.ea("l");FK.prototype.onClick.call(this,a)};g.w(F1,rK);
F1.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new gL(this.api,this.Xa,this.layoutId,this.i,this.C,this.Ti),c.Ea(this.I),c.init(yG("skip-button"),a,this.macros),g.H(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new aL(this.api,this.Xa,this.layoutId,this.i,this.C,!1),c.Ea(this.I),c.init(yG("ad-preview"),a,this.macros),bL(c),g.H(this,c),this.u=c);null==this.u&&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 E1(this.api,this.Xa,this.layoutId,this.i),c.Ea(this.submitButton),c.init(yG("survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new iL(this.api,this.Xa,this.layoutId,this.i,!0),c.Ea(this.D),c.init(yG("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new oL(this.api,this.Xa,this.layoutId,this.i,this.C,void 0),c.Ea(this.D),
c.init(yG("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new TK(this.api,this.Xa,this.layoutId,this.i,this.element),g.H(this,a),a.Ea(this.D),a.init(yG("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
F1.prototype.clear=function(){this.hide()};g.w(G1,rK);G1.prototype.init=function(a,b,c){rK.prototype.init.call(this,a,b,c);JOa(this)};
G1.prototype.show=function(){this.C=g.Ta();rK.prototype.show.call(this)};
G1.prototype.EN=function(){};g.w(H1,G1);g.k=H1.prototype;g.k.init=function(a,b,c){var d=this;G1.prototype.init.call(this,a,b,c);b.questionText&&g.oh(this.questionText,g.$y(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&GOa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&KOa(this,a,c);b.surveyAdQuestionCommon&&IOa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.EN=function(){I1(this,!1);this.D.B.subscribe("l",this.pW,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?LOa(this):this.I.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),I1(this,!0))};
g.k.pW=function(){var a=this,b=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Xe(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.Xa.executeCommand(d,a.macros)})};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(J1,G1);J1.prototype.init=function(a,b,c){var d=this;G1.prototype.init.call(this,a,b,c);b.questionText&&g.oh(this.questionText,g.$y(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&GOa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?IOa(this,b.surveyAdQuestionCommon):g.by(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
J1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(K1,rK);
K1.prototype.init=function(a,b,c){var d=this;rK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new J1(d.api,d.Xa,d.layoutId,d.i,d.Eg,d.Ti);f.Ea(d.u);f.init(yG("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new H1(d.api,d.Xa,d.layoutId,d.i,d.Eg,d.Ti),
f.Ea(d.u),f.init(yG("survey-question-multi-select"),e,c),d.questions.push(f),g.H(d,f))});
this.show()};
K1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(L1,rK);
L1.prototype.init=function(a,b,c){var d=this;rK.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){NOa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
NOa(this.logoImage,b.brandImage);g.oh(this.text,g.$y(b.text));this.actionButton=new FK(this.api,this.Xa,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ea(this.B);this.actionButton.init(yG("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Eg?new kL(this.api,1E3*a):new lL(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Eg){for(var h=g.q(e),l=h.next();!l.done;l=
h.next())d.Xa.executeCommand(l.value,c);d.Xa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.H(this,this.u);this.T(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.AG)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())d.Xa.executeCommand(m.value,d.macros)});
this.transition.show(100);if(!this.Eg&&b.impressionCommands){a=g.q(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())this.Xa.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"))};
L1.prototype.clear=function(){this.hide()};
L1.prototype.show=function(){OOa(!0);rK.prototype.show.call(this)};
L1.prototype.hide=function(){OOa(!1);rK.prototype.hide.call(this)};var nRa="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.w(M1,PK);
M1.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!nRa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof qH||c instanceof UI||c instanceof YI?c.Eg:!1,m=c instanceof qH||c instanceof jL||c instanceof UI?c.Ti:!1,n=c instanceof YI?c.AG:!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 u1(e,a,f,h);break;case "player-overlay":a=new vL(e,a,f,h,new wN(e),m);break;case "survey":a=
new K1(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new t1(e,a,f,h,l,m);break;case "survey-interstitial":a=new L1(e,a,f,h,l,n);break;case "ad-message":a=new A1(e,a,f,h,new wN(e,1));break;case "player-underlay":a=new B1(e,a,f,h);break;default:a=null}if(!a){g.cy(Error("No UI component returned from ComponentFactory for type: "+d));break}Oe(this.u,b)?g.cy(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof $0?this.B?this.B.append(a.mG):g.by(Error("Underlay view was not created but UnderlayRenderer was created")):
this.I.append(a.mG);break;case 2:b=POa(this,a);if(null==b)break;b.bind(c);break;case 3:c=POa(this,a),null!=c&&((0,g.re)(c),Oe(this.u,b)?(c=this.u,b in c&&delete c[b]):g.cy(Error("Ad UI component does not exist: "+b)))}};
M1.prototype.ya=function(){(0,g.se)(Object.values(this.u));this.u={};PK.prototype.ya.call(this)};g.w(N1,g.FM);g.k=N1.prototype;g.k.create=function(){if(eZ(p1(this.i).Tf))try{QOa(this),this.load(),this.created=!0,QOa(this)}catch(a){R(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
g.k.load=function(){g.FM.prototype.load.call(this);var a=p1(this.i).Tf;lma(a.J.V().N("html5_reduce_ecatcher_errors"));if(eZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){R(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),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.uf()||!1;a=UOa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.tp||!1;h=1E3*this.player.getDuration(1);this.Xa=new gK(this,this.player,this.fp,b,p1(this.i));qva(this.Xa,a.Wu);this.i.i.zo.kh(f,h,c,a.CA,a.CA.concat(a.Wu),e,d);hK(this.Xa)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.zo.Hj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.FM.prototype.unload.call(this);lma(!1);if(eZ(p1(this.i).Tf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){R(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Xa){var a=this.Xa;this.Xa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.fp.reset()};
g.k.Si=function(){return!1};
g.k.BG=function(){return null===this.Xa?!1:this.Xa.BG()};
g.k.Uk=function(a){null!==this.Xa&&this.Xa.Uk(a)};
g.k.getAdState=function(){return this.Xa?this.Xa.Jz:-1};
g.k.getOptions=function(){return Object.values(mRa)};
g.k.kf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=QG(this.player),Object.assign(b,a.Xca),this.Xa&&!b.AD_CPN&&(b.AD_CPN=this.Xa.gz()),a=g.zr(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.xo(b);
break;default:return null}};
g.k.xo=function(a){a.isMuted&&gva(this.Xa,p1(this.i).gh,p1(this.i).Fi,a.layoutId);this.Or&&this.Or.xo()};
g.k.Vn=function(){return null===this.Xa?!1:this.Xa.Vn()};g.EM("ad",N1);var WOa=g.Jc&&VOa();g.w(g.Q1,g.W);g.Q1.prototype.onClick=function(){this.J.Oa("onExpandMiniplayer")};})(_yt_player);
