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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ca,ea,aaa,ka,la,ma,na,ra,sa,ta,baa,caa,Ba,Ca,daa,eaa,Ea,Fa,Ga,Ha,Ia,Ma,Na,gaa,haa,Xa,Ya,Za,$a,ab,bb,iaa,cb,db,ib,lb,ub,wb,yb,Cb,Db,Eb,Fb,Ib,Jb,Kb,Lb,Nb,Mb,Ob,laa,maa,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,naa,Zb,ec,oaa,lc,paa,qc,nc,qaa,oc,raa,saa,taa,yc,zc,Ac,Cc,Mc,Oc,Lc,Hc,Rc,Qc,Vc,Yc,Zc,ad,bd,cd,id,nd,od,sd,rd,td,ud,zd,Ad,Cd,Dd,Ed,Fd,Hd,yaa,Jd,Ld,Md,zaa,Pd,Qd,Rd,Sd,Td,Xd,Yd,Zd,$d,ae,be,de,ee,ce,fe,Aaa,je,ne,oe,pe,re,ve,we,xe,ye,ze,Ae,Be,Ce,Ee,Ge,Je,Baa,Ke,Le,Oe,Qe,Te,Caa,Daa,Ue,Me,Ne,Eaa,Faa,
Gaa,Haa,We,Iaa,Jaa,Kaa,Laa,Re,Se,Xe,gf,Maa,Naa,hf,jf,kf,Oaa,mf,Paa,nf,Qaa,of,Raa,vf,wf,xf,yf,Saa,Df,Ff,Hf,If,Kf,Uaa,Lf,Of,Tf,Vf,Wf,$f,ag,kg,lg,ng,rg,Vaa,og,zg,Ag,wg,Xaa,sg,qg,Eg,Fg,Gg,Hg,Yaa,Jg,Kg,Zaa,Mg,Pg,Qg,Tg,Vg,Wg,bba,Xg,ah,kh,lh,gba,hba,fba,iba,nba,oba,oh,rh,qba,rba,qh,sba,tba,uh,vh,xba,zh,Bh,Eh,Gh,Jh,Kh,yba,zba,Aba,Bba,Nh,Dba,Sh,Fba,Hba,Gba,Th,Vh,Iba,Uh,Jba,Mh,di,Lba,fi,ei,Lh,hi,Mba,Nba,ii,ji,Oba,Qba,ni,Sba,qi,ri,si,Wba,ui,Xba,ti,aca,oi,Uba,cca,$ba,Yba,Zba,dca,bca,vi,yi,fca,gca,hca,ica,jca,
kca,mca,pca,rca,sca,uca,tca,vca,Fi,Gi,Hi,xca,yca,Ii,Ji,Ki,Aca,Ni,Bca,Eca,Pi,Qi,Fca,Ri,Si,Hca,Ica,Wi,Jca,Kca,Xi,Yi,Lca,mj,oj,Mca,pj,qj,Pca,Qca,Sca,Tca,Vca,Uca,Wca,sj,Xca,wj,Zca,$ca,vj,Aj,bda,Cj,Dj,eda,gda,hda,Fj,jda,kda,lda,nda,mda,oda,ida,Ej,pda,Gj,qda,rda,sda,tda,Hj,Ij,Jj,Kj,Lj,uda,vda,Mj,Oj,wda,xda,Pj,yda,Qj,zda,Ada,Bda,Sj,Cda,Eda,Dda,Fda,Gda,Hda,Uj,Vj,Wj,Ida,Jda,Lda,Mda,Yj,Zj,ak,bk,Nda,ck,dk,ek,fk,gk,hk,Sda,Pda,kk,Rda,lk,Qda,jk,ik,nk,Tda,pk,ok,Uda,Vda,vk,wk,yk,Yda,xk,Bk,Zda,Ck,Wda,bea,cea,dea,
Ok,Pk,Qk,eea,Rk,Uk,Vk,Wk,fea,Xk,Yk,Zk,gea,hea,$k,iea,Xj,lea,mea,nea,oea,jea,al,pea,cl,qea,bl,rea,sea,el,fl,tea,hl,il,jl,gl,kl,dl,vea,wea,uea,xea,yea,zea,ll,ml,nl,ol,pl,ql,rl,Aea,sl,tl,ul,Bea,Dea,Eea,wl,yl,xl,Gea,Al,Hea,Bl,Iea,Jea,Cl,Dl,El,Lea,Nea,Qea,Oea,Rea,Vea,Fl,Uea,Sea,Gl,Hl,Wea,Il,Yea,Xea,Jl,$ea,Zea,afa,bfa,Nl,Ol,cfa,dfa,efa,Pl,ffa,ifa,jfa,Rl,kfa,lfa,qfa,Xl,Yl,rfa,sfa,tfa,ufa,$l,vfa,wfa,xfa,gm,em,dm,yfa,zfa,Afa,hm,im,jm,Cfa,tm,um,vm,wm,xm,ym,Efa,Ffa,Gfa,zm,Bm,Cm,Gm,Hm,Km,Ifa,Kfa,Jfa,Lfa,Mfa,
Qm,Nfa,Ofa,Rm,Pfa,Qfa,Rfa,Sfa,Vm,Tm,Wm,Xm,Ym,Tfa,Ufa,Vfa,Zm,$m,an,Wfa,Xfa,Yfa,bn,Zfa,cn,dn,$fa,aga,cga,dga,ega,fga,gga,fn,gn,hn,kn,jga,ln,mn,kga,iga,jn,lga,nn,on,pn,qn,nga,rn,tn,sn,oga,pga,qga,un,sga,vn,uga,vga,wga,xga,yga,zga,Aga,Bga,An,Bn,Cn,Dga,Cga,En,Ega,Fn,Fga,Gn,Gga,Hga,Hn,In,Jn,Iga,Xn,Yn,Zn,$n,ao,bo,co,eo,fo,Jga,Kga,Lga,Mga,go,Nga,Pga,Oga,io,jo,Rga,Qga,Wga,Vga,ko,Xga,Yga,Zga,aha,$ga,bha,lo,cha,dha,no,eha,fha,gha,hha,oo,iha,po,jha,qo,ro,lha,so,mha,to,uo,nha,oha,vo,yo,qha,zo,pha,rha,sha,tha,
vha,Ao,wha,Do,Eo,yha,zha,Cha,Dha,Fo,Eha,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,So,Iha,Hha,Jha,Lha,Kha,Nha,Gha,Mha,Fha,To,Uo,Pha,Qha,Rha,Yo,Zo,$o,Vo,Tha,ap,Oha,Vha,Wha,Xha,Uha,bp,cp,dp,ep,Yha,Sha,Zha,fp,$ha,aia,bia,cia,dia,gia,hia,iia,hp,jia,mia,oia,lp,qia,pia,kp,np,ria,sia,tia,tp,uia,via,up,wia,Dp,Ap,Bp,Cp,xia,Gp,Fp,yia,Ip,zia,Bia,Dia,Kp,Eia,Fia,Kia,Gia,Pp,Pia,Qp,Rp,Ria,Up,Sia,Tia,Vp,Via,Xp,Yp,Zp,Wia,aq,bq,cq,dq,fq,gq,Yia,hq,iq,Zia,$ia,jq,aja,bja,lq,ija,oq,hja,jja,qq,rq,sq,tq,mja,vq,wq,xq,qja,yq,rja,
sja,zq,Aq,tja,vja,wja,Bq,xja,Cq,yja,zja,Aja,Dq,Cja,Eq,Fq,Gq,Dja,Iq,Jq,Kq,Mq,Lq,Gja,Hja,Nq,Oq,Ija,Pq,Qq,Kja,Lja,Rq,Sq,Tq,Uq,Wq,Xq,Yq,Zq,ar,Mja,br,Nja,er,fr,gr,hr,ir,jr,lr,mr,Rja,nr,or,pr,Oja,qr,Uja,Xja,rr,Zja,aka,Br,bka,cka,dka,rma,pma,qma,Cr,Fr,Er,Ama,Hr,Ir,Jr,Cma,Or,Dma,Rr,Pr,Ur,Ema,Fma,Wr,Gma,Yr,Zr,Hma,$r,as,bs,ds,fs,gs,Vr,hs,js,is,Mma,Kma,Lma,Nma,Oma,Pma,ls,Rma,ps,qs,Sma,Tma,Vma,Xma,Yma,dna,Zma,$ma,ana,bna,cna,gna,us,ws,hna,Ds,Es,Is,Js,Ls,Ms,Os,mna,nna,Qs,ona,pna,Ss,qna,rna,Us,sna,Vs,tna,Ys,una,
wna,xna,Ws,yna,zna,Cna,Bna,at,vna,Ena,Fna,dt,Gna,Hna,ft,Ina,gt,Jna,Kna,kt,Lna,Mna,Nna,Ona,ot,Pna,Qna,Rna,Sna,Tna,Una,Vna,Wna,qt,Xna,rt,$na,Zna,Yna,tt,aoa,ut,vt,xt,coa,Ct,Bt,wt,Dt,doa,eoa,Gt,Ht,goa,hoa,It,Jt,ioa,joa,foa,loa,moa,noa,ooa,poa,Mt,Nt,Pt,roa,soa,Qt,voa,uoa,toa,woa,yoa,St,Tt,Boa,Aoa,zoa,Coa,Doa,$t,au,Eoa,Yt,Foa,Vt,Zt,Xt,Wt,Goa,Hoa,iu,ju,Joa,Koa,Noa,ou,pu,qu,Ooa,vu,wu,Qoa,yu,xu,Au,Soa,Roa,Toa,Voa,Woa,Uoa,Yoa,Zoa,Iu,Ou,Xoa,Pu,Qu,cpa,dpa,bpa,gpa,hpa,apa,fpa,epa,Wu,lpa,npa,ppa,qpa,opa,Xu,$u,
av,spa,Zu,bv,cv,gv,jv,kv,hv,upa,lv,mv,vpa,ov,qv,rv,uv,ypa,zpa,Apa,Bpa,Cpa,Dpa,Cv,Fpa,Ev,Fv,Gpa,Hpa,Ipa,Iv,Kpa,Lpa,Mpa,Kv,Npa,Ppa,Lv,Qpa,Mv,Nv,zs,Xpa,$pa,Qv,dqa,eqa,fqa,gqa,Rv,hqa,Zv,iqa,lqa,oqa,mqa,iw,hw,pqa,gw,jw,kw,sqa,uqa,ow,pw,wqa,T,qw,rw,tw,uw,vw,ww,xqa,xw,yw,zw,Bqa,Dqa,Fqa,Aw,Jqa,Lqa,Nqa,Pqa,Qqa,Cw,Sqa,Tqa,Iw,Jw,Uqa,Vqa,Kw,Nw,Wqa,Xqa,Yqa,Zqa,Rw,Qw,Sw,Tw,Uw,Ow,Vw,Ww,ara,Xw,$qa,dra,era,fra,Yw,Zw,$w,gra,ax,mra,bx,cx,ex,fx,jx,ix,vx,hx,pra,qra,wx,xx,yx,gx,ura,sra,vra,tra,rra,Bx,Cx,Ex,Hx,Jx,wra,Kx,
Ara,Mx,zra,Qx,Nx,Cra,Gra,Sx,yra,xra,Tx,Hra,Ira,Jra,Wx,Yx,Zx,Lra,Mra,$x,Xx,Kra,Nra,ay,Pra,by,cy,Qra,dy,Rra,ey,fy,gy,hy,Sra,Tra,iy,Ura,jy,Vra,ky,ly,ny,ry,sy,ty,uy,vy,wy,yy,zy,Wra,Ay,Cy,Yra,Zra,By,asa,bsa,Dy,csa,Gy,dsa,Hy,Jy,esa,Iy,Ky,fsa,My,isa,Oy,Py,Uy,ksa,Ry,Vy,Xy,lsa,Zy,Ty,Wy,msa,$y,nsa,az,osa,Qy,Sy,jsa,Yy,bz,psa,qsa,dz,rsa,ssa,tsa,ez,usa,gz,vsa,fz,wsa,hz,iz,jz,kz,lz,xsa,nz,ysa,pz,zsa,qz,rz,sz,Asa,tz,Bsa,mz,uz,Csa,Dsa,Esa,vz,wz,xz,yz,Fsa,Gsa,Hsa,Az,Isa,Bz,Cz,Jsa,Ksa,Dz,Lsa,Msa,Qsa,Rsa,Nsa,Osa,Psa,
Ez,Gz,Fz,Hz,Iz,Ssa,Tsa,Jz,Kz,Lz,Mz,Usa,Vsa,Wsa,Xsa,Zsa,Ysa,Oz,$sa,ata,bta,cta,Pz,Qz,Rz,dta,Tz,Sz,Xz,Yz,Zz,$z,aA,eta,bA,Vz,fta,gta,eA,fA,hta,gA,iA,jA,kA,lA,mA,nA,oA,ita,pA,qA,jta,rA,sA,tA,uA,vA,wA,lta,mta,xA,yA,zA,nta,ota,AA,BA,Era,Rx,sta,tta,uta,vta,wta,xta,Lx,yta,CA,zta,Ata,DA,Cta,Dta,EA,Hta,Eta,Fta,Jta,Kta,GA,Ita,Lta,HA,IA,JA,Mta,Nta,Ota,KA,FA,Pta,Bta,Rta,Sta,MA,Tta,Uta,Vta,OA,NA,Wta,Xta,Yta,Zta,$ta,bua,Fra,Dra,PA,RA,TA,UA,VA,WA,SA,ZA,dua,aB,fua,bB,hua,gua,eua,iua,jua,kua,cB,Bra,dB,lua,Ox,mua,nua,
oua,pua,rua,fB,uua,sua,gB,xB,zB,AB,BB,vua,DB,CB,xua,yua,EB,wua,zua,GB,Aua,FB,HB,IB,JB,PB,Cua,Dua,RB,UB,Fua,Hua,Gua,XB,Iua,Jua,Kua,YB,ZB,$B,aC,Lua,bC,Mua,cC,dC,Nua,eC,Oua,gC,Pua,hC,iC,jC,kC,Qua,Rua,Sua,Uua,lC,Vua,Tua,mC,nC,oC,pC,Wua,qC,rC,OC,KC,$ua,eva,PC,TC,UC,CC,lva,sC,fva,LC,NC,XC,aD,mva,bva,bD,nva,zC,eD,yC,gva,dva,fD,Yua,hD,QC,iD,jD,qva,rva,kD,sva,tva,uva,vva,lD,wva,Bva,Ava,xva,zva,yva,mD,Cva,nD,Dva,Eva,oD,qD,rD,Hva,Jva,uD,Kva,Lva,CD,Vva,Qva,Pva,Rva,Xva,Yva,bwa,dwa,HD,ID,ewa,gwa,hwa,iwa,jwa,pwa,
KD,qwa,swa,rwa,twa,MD,OD,QD,uwa,LD,RD,SD,vwa,zwa,wwa,ywa,bE,cE,fE,Nwa,Hwa,ZD,iE,Mwa,aE,Owa,Pwa,jE,Fwa,Rwa,Qwa,WD,$D,eE,Xwa,Twa,Uwa,Vwa,Wwa,Ywa,kE,Zwa,$wa,mE,nE,pE,VD,hE,Jwa,xwa,Iwa,Lwa,Kwa,rE,Swa,yE,zE,AE,BE,dxa,dE,exa,DE,Gwa,fxa,axa,gE,gxa,Cwa,YD,Bwa,fwa,HE,IE,ixa,JE,KE,LE,NE,ME,OE,jxa,kxa,PE,RE,lxa,mxa,SE,TE,UE,nxa,VE,oxa,WE,XE,YE,ZE,$E,aF,pxa,bF,qxa,cF,eF,txa,dF,uxa,rxa,sxa,vxa,wxa,xxa,fF,gF,hF,iF,jF,Axa,oF,mF,Dxa,Cxa,Exa,rF,Bxa,sF,nF,tF,qF,pF,lF,kF,vF,wF,yF,AF,BF,CF,Gxa,DF,EF,FF,GF,HF,IF,Hxa,
JF,KF,LF,Ixa,MF,Kxa,Jxa,QF,Lxa,Mxa,Nxa,Qxa,Oxa,Pxa,Rxa,RF,Sxa,Txa,Uxa,Vxa,Wxa,SF,TF,UF,VF,WF,XF,YF,ZF,$F,aG,bG,cG,dG,eG,fG,gG,hG,iG,jG,kG,lG,mG,nG,oG,pG,qG,rG,sG,tG,uG,vG,wG,xG,yG,zG,AG,BG,CG,DG,EG,FG,GG,HG,IG,JG,KG,LG,MG,NG,OG,PG,QG,RG,SG,Yxa,Zxa,Xxa,aya,bya,$xa,TG,cya,UG,VG,WG,XG,YG,eya,dya,ZG,$G,aH,fya,gH,hH,gya,iya,iH,jya,jH,kH,kya,lH,lya,mya,nya,oya,pya,mH,nH,rya,sya,tya,oH,qya,vya,uya,pH,qH,yya,zya,rH,Aya,Bya,sH,uH,vH,wH,xH,AH,CH,DH,Cya,Dya,EH,Eya,Fya,FH,Gya,HH,Hya,Iya,IH,JH,Jya,Kya,KH,Mya,
Lya,LH,Oya,MH,Pya,OH,PH,RH,Qya,Rya,Sya,Tya,Uya,SH,UH,Yya,aza,Vya,VH,jza,WH,lza,kza,nza,oza,qza,pza,rza,sza,tza,uza,XH,YH,vza,wza,xza,zza,Aza,Bza,Cza,Dza,eI,Fza,Gza,cI,dI,Eza,Hza,Iza,fI,Lza,Jza,Nza,Mza,Oza,Fxa,Pza,zxa,Qza,Rza,Sza,gI,Yza,Uza,Vza,Wza,Zza,hI,bAa,$za,cAa,dAa,aAa,Xza,eAa,GH,gAa,hAa,fAa,iI,jI,iAa,jAa,kAa,kI,mI,mAa,nI,qI,rI,nAa,oAa,pAa,sI,rAa,sAa,tAa,uAa,vAa,wAa,xAa,xI,yAa,yI,zAa,AAa,BAa,AI,CAa,DAa,EAa,DI,EI,FI,FAa,GI,GAa,II,IAa,HAa,JI,KI,LI,MI,JAa,NI,OI,KAa,PI,QI,OAa,LAa,NAa,MAa,PAa,SI,
TI,QAa,RAa,SAa,UI,TAa,VAa,UAa,VI,WI,XI,YI,ZI,aJ,bJ,cJ,dJ,eJ,fJ,gJ,XAa,WAa,hJ,YAa,iJ,jJ,kJ,lJ,mJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,$Aa,bBa,aBa,xJ,eBa,fBa,BJ,CJ,hBa,EJ,iBa,jBa,kBa,FJ,mBa,HJ,nBa,IJ,JJ,KJ,LJ,pBa,NJ,sBa,rBa,qBa,uBa,OJ,PJ,QJ,RJ,SJ,TJ,UJ,YJ,wBa,yBa,zBa,kK,ABa,ys,CBa,BBa,DBa,FBa,EBa,HBa,GBa,nK,IBa,JBa,LBa,MBa,QBa,PBa,XBa,ZBa,$Ba,vK,xK,yK,zK,AK,bCa,BK,CK,cCa,DK,dCa,EK,FK,GK,HK,IK,JK,eCa,fCa,KK,gCa,NK,jCa,kCa,OK,lCa,RK,PK,SK,QK,Tza,mCa,nCa,oCa,pCa,XK,WK,sCa,vCa,hL,iL,jL,wCa,xCa,kL,lL,yCa,zCa,nL,oL,CCa,
ACa,DCa,ECa,FCa,GCa,ICa,yL,MCa,BL,OCa,CL,LCa,PCa,QCa,AL,NCa,DL,EL,FL,aL,UK,HL,JL,TCa,RCa,SCa,KL,NL,VCa,ML,PL,WCa,XCa,SL,TL,UL,YL,ZCa,$Ca,ZL,$L,aDa,bDa,cDa,dDa,aM,fDa,eDa,gDa,bM,hDa,iDa,dM,eM,jDa,hM,lDa,jM,fM,mDa,nDa,kDa,kM,lM,oM,oDa,pDa,nM,qM,pM,sM,uM,qDa,xM,rDa,uDa,sDa,vDa,AM,BM,wDa,xDa,EM,FM,GM,HM,IM,KM,zDa,yDa,ADa,MM,CDa,BDa,DDa,EDa,FDa,GDa,SM,TM,HDa,UM,VM,IDa,JDa,KDa,LDa,WM,ZM,NDa,MDa,$M,aN,bN,ODa,cN,dN,eN,fN,PDa,gN,hN,QDa,iN,RDa,TDa,SDa,nN,lN,mN,UDa,VDa,WDa,oN,pN,qN,rN,sN,XDa,YDa,ZDa,vN,wN,xN,
zN,AN,BN,DN,EN,FN,GN,HN,$Da,cEa,IN,aEa,bEa,gEa,hEa,KN,jEa,iEa,kEa,lEa,mEa,MN,ON,oEa,PN,nEa,QN,pEa,rEa,qEa,RN,SN,TN,UN,sEa,VN,tEa,YN,uEa,aO,wEa,ZN,vEa,yEa,cO,zEa,hO,BEa,CEa,eO,bO,jO,dO,kO,FEa,lO,gO,xEa,EEa,iO,AEa,DEa,GEa,WN,nO,HEa,IEa,fO,oO,pO,qO,rO,sO,tO,uO,vO,wO,xO,yO,KEa,BO,CO,DO,EO,FO,GO,HO,IO,LEa,JO,KO,LO,MO,OO,NO,PO,QO,MEa,RO,NEa,PEa,OEa,SO,TO,QEa,UO,VO,REa,WO,SEa,XO,TEa,YO,$O,cP,bP,fP,eP,UEa,dP,hP,WEa,XEa,iP,jP,kP,lP,nP,YEa,vM,VEa,bFa,QM,ZEa,pP,aFa,RM,$Ea,cFa,eFa,dFa,fFa,gFa,sP,hFa,tP,iFa,jFa,
kFa,lFa,mFa,nFa,oFa,xP,yP,tFa,wFa,uFa,qFa,AP,pFa,vFa,DP,yFa,xFa,EP,AFa,CFa,DFa,BFa,JP,EFa,IFa,PP,JFa,QP,SP,TP,UP,KFa,KP,VP,XP,MFa,LFa,OP,YP,ZP,NFa,$P,PFa,QFa,RFa,SFa,TFa,LP,GFa,aQ,MP,bQ,YFa,dQ,ZFa,$Fa,WFa,fQ,aGa,gQ,UFa,iQ,XFa,bGa,hQ,eQ,cGa,jQ,dGa,cQ,fGa,mQ,gGa,kQ,nQ,lQ,pQ,hGa,qQ,rQ,iGa,sQ,tQ,uQ,vQ,jGa,wQ,kGa,yQ,nGa,oGa,pGa,BQ,AQ,zQ,qGa,rGa,sGa,tGa,EQ,FQ,GQ,uGa,vGa,wGa,HQ,xGa,JQ,yGa,IQ,KQ,LQ,zGa,BGa,FGa,CGa,DGa,EGa,GGa,QQ,RQ,HGa,JGa,KGa,SQ,LGa,TQ,MGa,RGa,SGa,TGa,YQ,ZQ,UGa,QGa,VGa,UQ,NGa,WGa,VQ,WQ,
OGa,PGa,XQ,XGa,YGa,ZGa,Ova,Uva,aR,bR,bHa,$Ga,aHa,cR,cHa,dR,eR,dHa,eHa,fHa,fR,gHa,hHa,hR,iHa,iR,jR,jHa,lR,lHa,mR,pHa,pR,OQ,kHa,rHa,rR,nHa,oHa,mHa,qR,oR,nR,qHa,vHa,tHa,sHa,tR,wHa,uR,xHa,vR,wR,yHa,zHa,AHa,BHa,CHa,yR,zR,AR,BR,CR,DR,FHa,GHa,NQ,PQ,JHa,GR,HR,IGa,KR,FR,KHa,ER,HHa,IHa,LR,LHa,MHa,JR,MQ,IR,NHa,OHa,PHa,MR,RHa,QHa,NR,VHa,OR,XHa,WHa,QR,PR,ZHa,SR,RR,$Ha,THa,UR,YHa,UHa,TR,VR,aIa,WR,$R,bIa,YR,fIa,ZR,gIa,aS,dIa,cIa,hIa,bS,iIa,jIa,mIa,lIa,kIa,cS,nIa,rIa,sIa,hS,iS,jS,uIa,vIa,kS,lS,mS,xIa,pS,yIa,fS,zIa,
tIa,AIa,BIa,DIa,uHa,tS,uS,CIa,kR,nS,wIa,EIa,FIa,GIa,HIa,IIa,oIa,eS,gS,JIa,wS,xS,KIa,LIa,MIa,OIa,NIa,yS,PIa,RIa,QIa,TIa,AS,XIa,UIa,WIa,YIa,BS,bJa,$Ia,aJa,dJa,eJa,fJa,CS,zS,gJa,ZIa,iJa,DS,jJa,VIa,kJa,ES,mJa,nJa,GS,lJa,HS,IS,oJa,JS,KS,LS,qJa,tJa,sJa,rJa,NS,uJa,MS,vJa,PS,RS,wJa,zJa,xJa,yJa,AJa,CJa,BJa,DJa,EJa,SS,GJa,HJa,IJa,FJa,JJa,LJa,NJa,OJa,KJa,PJa,QJa,SJa,RJa,TJa,MJa,TS,US,UJa,VS,WS,XS,$S,aT,ZJa,bT,$Ja,bKa,aKa,eT,cT,XJa,dKa,cKa,eKa,gT,fKa,hKa,gKa,iKa,hT,iT,jKa,jT,mKa,kT,lT,oKa,nT,mT,pKa,pT,nKa,qT,
qKa,oT,rKa,rT,sKa,YJa,fT,uKa,vKa,wKa,xKa,yKa,zKa,AKa,CKa,DKa,EKa,BKa,FKa,GKa,tT,HKa,IKa,uT,vT,JKa,KKa,LKa,xT,NKa,zT,OKa,PKa,yT,wT,MKa,CT,BT,QKa,DT,AT,RKa,FT,VKa,IT,WKa,TKa,GT,XKa,JT,UKa,YKa,KT,$Ka,ET,aLa,bLa,ZKa,cLa,HT,dLa,eLa,SKa,LT,MT,fLa,NT,xR,pIa,EHa,PT,gLa,qIa,DHa,hLa,QT,OT,iLa,kLa,lLa,jLa,nLa,mLa,qLa,oLa,pLa,sLa,rLa,tLa,uLa,vLa,RT,TT,xLa,BLa,ALa,aU,cU,bU,ELa,GLa,JLa,OLa,LLa,NLa,SLa,eU,TLa,ULa,VLa,gU,YLa,XLa,WLa,hU,ST,ZLa,wLa,fU,aMa,bMa,hMa,eMa,iMa,fMa,cMa,jMa,kMa,dMa,mMa,iU,nMa,pMa,qMa,rMa,
uF,oU,sMa,uMa,FFa,vMa,pU,QS,wMa,xU,rU,HP,nU,yU,AU,rS,sS,BU,$La,vU,wU,qS,AMa,zMa,uU,sU,CU,CMa,BP,DMa,OS,zFa,EU,WP,tMa,qU,EMa,FMa,FU,sFa,GMa,IMa,yMa,jU,JMa,GU,tU,kU,KMa,HU,CP,LMa,IU,RP,MMa,NMa,OMa,rFa,DU,BMa,WMa,SMa,RMa,ZMa,$Ma,OU,IP,bNa,aNa,SU,TU,UU,dNa,JU,LU,VMa,$U,eNa,ZU,QMa,fNa,NU,gNa,hNa,YMa,dV,iNa,jNa,KU,WU,XU,VU,gV,lNa,RU,bV,hV,iV,mNa,YU,cNa,fV,kNa,jV,nNa,oNa,pNa,TK,qNa,aV,kV,sNa,PU,lV,mV,QU,tNa,uNa,UMa,eV,cV,vNa,TMa,nV,oV,mGa,wNa,pV,nw,X,qV,yNa,sV,ANa,rV,BNa,vV,tV,wV,uV,CNa,DNa,xV,yV,zV,ENa,
AV,BV,CV,DV,EV,FV,GNa,FNa,HNa,GV,HV,bH,cH,INa,dH,OF,JV,KNa,SV,TV,fH,UV,NF,QV,VV,ONa,PNa,QNa,RNa,JNa,SNa,IV,TNa,UNa,YV,NV,XV,cW,ZV,LV,VNa,KV,LNa,WV,$V,eW,OV,PV,bW,aW,XNa,fW,gW,YNa,hW,Y,iW,RI,jW,ZNa,bOa,cOa,gOa,kW,hOa,dOa,iOa,lW,mW,nW,kOa,nOa,lOa,qOa,yOa,xOa,rOa,zOa,tOa,uOa,sOa,COa,EOa,GOa,JOa,KOa,MOa,NOa,QOa,SOa,OOa,AW,TOa,WOa,YOa,VOa,$Oa,aPa,bPa,CW,tqa,dPa,cPa,FW,lw,HW,IW,qqa,JW,fPa,gPa,BW,yW,pW,sW,KW,LW,uW,tW,hPa,pOa,qW,rW,xW,iPa,jPa,MW,kPa,NW,lPa,EW,wW,vW,oW,HOa,LOa,zW,UOa,AOa,vOa,OW,PW,QW,mPa,
RW,SW,TW,UW,VW,WW,XW,$Na,YW,aOa,oPa,nPa,jOa,IOa,pPa,ZOa,qPa,rPa,FOa,oOa,mOa,fOa,BOa,eOa,wOa,POa,ROa,tPa,XOa,DOa,uPa,ZW,sPa,$W,eH,MV,MNa,GW,aX,bX,cX,dX,vPa,eX,fX,DW,gX,dW,RV,wPa,hX,xPa,yPa,iX,kX,lX,mX,nX,APa,pX,qX,rX,zPa,oX,BPa,CPa,sX,mw,GPa,FPa,tX,uX,jX,HPa,IPa,vX,wX,JPa,xX,yX,KPa,LPa,MPa,NPa,zX,OPa,AX,BX,WX,fY,hY,iY,PPa,jY,kY,lY,mY,nY,oY,pY,qY,QPa,RPa,SPa,rY,sY,tY,uY,TPa,vY,UPa,wY,VPa,xY,WPa,yY,zY,AY,BY,CY,DY,XPa,FY,GY,YPa,ZPa,$Pa,IY,HY,KY,LY,JY,NY,aQa,bQa,EPa,MY,OY,cQa,PY,eQa,dQa,QY,RY,ePa,fQa,
SY,gQa,TY,iQa,jQa,hQa,kQa,UY,lQa,mQa,nQa,VY,WY,XY,oQa,YY,ZY,$Y,pQa,aZ,bZ,qQa,cZ,EY,dZ,eZ,fZ,hya,gZ,rQa,hZ,sQa,iZ,jZ,tQa,kZ,lZ,mZ,uQa,nZ,vQa,oZ,pZ,xQa,wQa,yQa,zQa,AQa,qZ,rZ,sZ,BQa,CQa,DQa,EQa,FQa,GQa,HQa,IQa,JQa,KQa,tZ,uZ,LQa,MQa,vZ,wZ,xZ,yZ,NQa,zZ,OQa,AZ,PQa,QQa,BZ,RQa,SQa,CZ,TQa,UQa,DZ,EZ,VQa,WQa,XQa,FZ,GZ,IZ,YQa,JZ,KZ,LZ,ZQa,MZ,$Qa,NZ,OZ,aRa,PZ,bRa,cRa,dRa,eRa,fRa,gRa,RZ,hRa,iRa,jRa,kRa,lRa,SZ,TZ,mRa,UZ,VZ,WZ,XZ,nRa,YZ,oRa,pRa,qRa,a_,rRa,sRa,tRa,b_,$Z,uRa,d_,vRa,e_,wRa,f_,g_,h_,i_,j_,xRa,zRa,yRa,
ARa,k_,BRa,CRa,l_,DRa,m_,n_,o_,ERa,FRa,p_,GRa,q_,HRa,r_,IRa,JRa,KRa,rqa,LRa,MRa,ba,ha,fa,tj,Qa,faa;ca=function(a){return function(){return ba[a].apply(this,arguments)}};
g.da=function(a,b){return ba[a]=b};
ea=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");};
ka=function(a,b){if(b)a:{var c=fa;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&&ha(c,a,{configurable:!0,writable:!0,value:b})}};
la=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ea(a)}};
ma=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.u=function(a){return a instanceof Array?a:ma(g.r(a))};
na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=pa(b.prototype);a.prototype.constructor=a;if(qa)qa(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.xe=b.prototype};
ra=function(){this.K=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.J=0;this.X=this.B=null};
sa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
ta=function(a,b){a.B={VL:b,eN:!0};a.j=a.J||a.D};
g.A=function(a,b,c){a.j=c;return{value:b}};
g.ua=function(a){a.j=0};
g.va=function(a,b,c){a.J=b;void 0!=c&&(a.D=c)};
g.wa=function(a,b){a.j=b;a.J=0};
g.xa=function(a){a.J=0;var b=a.B.VL;a.B=null;return b};
g.ya=function(a){a.X=[a.B];a.J=0;a.D=0};
g.Aa=function(a,b){var c=a.X.splice(0)[0];(c=a.B=a.B||c)?c.eN?a.j=a.J||a.D:void 0!=c.Za&&a.D<c.Za?(a.j=c.Za,a.B=null):a.j=a.D:a.j=b};
baa=function(a){this.j=new ra;this.u=a};
caa=function(a,b){sa(a.j);var c=a.j.C;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ca(a)};
Ba=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.K=!1,e;var f=e.value}catch(k){return a.j.C=null,ta(a.j,k),Ca(a)}a.j.C=null;d.call(a.j,f);return Ca(a)};
Ca=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.K=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,ta(a.j,c)}a.j.K=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.eN)throw b.VL;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){sa(a.j);a.j.C?b=Ba(a,a.j.C.next,b,a.j.N):(a.j.N(b),b=Ca(a));return b};
this.throw=function(b){sa(a.j);a.j.C?b=Ba(a,a.j.C["throw"],b,a.j.N):(ta(a.j,b),b=Ca(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(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
g.B=function(a){return eaa(new daa(new baa(a)))};
g.Da=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ea=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{QM:e,GQ:f}}return{QM:-1,GQ:void 0}};
Fa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ga=function(a,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+""};
Ha=function(a){return a?a:Array.prototype.fill};
Ia=function(a){return a?a:Array.prototype.copyWithin};
g.Ja=function(a,b,c){a=a.split(".");c=c||g.C;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.Ka=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.La=function(){};
Ma=function(a){a.bf=void 0;a.getInstance=function(){return a.bf?a.bf:a.bf=new a}};
Na=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Oa=function(a){var b=Na(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Sa=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Ta=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Ta=gaa:g.Ta=haa;return g.Ta.apply(null,arguments)};
g.Ua=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.Va=function(){return Date.now()};
g.Wa=function(a,b){function c(){}
c.prototype=b.prototype;a.xe=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.fg=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
Xa=function(a){return a};
Ya=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Za=function(){return Error("Failed to read varint, encoding is invalid.")};
$a=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
ab=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ab);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.HT=b)};
bb=function(a,b){var c=ab.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(ab,this,d+a[e])};
iaa=function(){};
cb=function(){throw Error("Invalid UTF8");};
db=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.fb=function(a){var b=!1;b=void 0===b?!1:b;if(jaa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(eb||(eb=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var k=a.charCodeAt(++e);if(56320<=k&&57343>=k){f=1024*(f-55296)+k-56320+65536;d[c++]=f>>
18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=d.subarray(0,c)}return a};
g.gb=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};
ib=function(a,b){return 0==a.lastIndexOf(b,0)};
lb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.nb=function(a){return/^[\s\xa0]*$/.test(a)};
ub=function(a,b){if(b)a=a.replace(ob,"&amp;").replace(pb,"&lt;").replace(qb,"&gt;").replace(rb,"&quot;").replace(sb,"&#39;").replace(tb,"&#0;");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ob,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(pb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(qb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(rb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(sb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(tb,"&#0;"))}return a};
g.vb=function(a,b){return-1!=a.indexOf(b)};
wb=function(a,b){return g.vb(a.toLowerCase(),b.toLowerCase())};
g.zb=function(a,b){var c=0;a=xb(String(a)).split(".");b=xb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",k=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==f[0].length&&0==k[0].length)break;c=yb(0==f[1].length?0:parseInt(f[1],10),0==k[1].length?0:parseInt(k[1],10))||yb(0==f[2].length,0==k[2].length)||yb(f[2],k[2]);f=f[3];k=k[3]}while(0==c)}return c};
yb=function(a,b){return a<b?-1:a>b?1:0};
g.Ab=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
Cb=function(a){var b=Bb;return b?b.brands.some(function(c){return(c=c.brand)&&g.vb(c,a)}):!1};
Db=function(a){return g.vb(g.Ab(),a)};
Eb=function(){var a=Bb;return!!a&&0<a.brands.length};
Fb=function(){return Eb()?!1:Db("Opera")};
Ib=function(){return Eb()?!1:Db("Trident")||Db("MSIE")};
Jb=function(){return Eb()?!1:Db("Edge")};
Kb=function(){return Eb()?Cb("Microsoft Edge"):Db("Edg/")};
Lb=function(){return Db("Firefox")||Db("FxiOS")};
Nb=function(){return Db("Safari")&&!(Mb()||(Eb()?0:Db("Coast"))||Fb()||Jb()||Kb()||(Eb()?Cb("Opera"):Db("OPR"))||Lb()||Db("Silk")||Db("Android"))};
Mb=function(){return Eb()?Cb("Chromium"):(Db("Chrome")||Db("CriOS"))&&!Jb()||Db("Silk")};
Ob=function(){return Db("Android")&&!(Mb()||Lb()||Fb()||Db("Silk"))};
laa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
maa=function(a){var b=g.Ab();if("Internet Explorer"===a){if(Ib())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=laa(c);switch(a){case "Opera":if(Fb())return b(["Version","Opera"]);if(Eb()?Cb("Opera"):Db("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Jb())return b(["Edge"]);if(Kb())return b(["Edg"]);break;case "Chromium":if(Mb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Lb()||"Safari"===a&&Nb()||"Android Browser"===a&&Ob()||"Silk"===a&&Db("Silk")?(b=c[2])&&b[1]||"":""};
Pb=function(a){if(Eb()&&"Silk"!==a){var b=Bb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=maa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Qb=function(){var a=Bb;return!!a&&!!a.platform};
Rb=function(){return Qb()?"Android"===Bb.platform:Db("Android")};
Sb=function(){return Db("iPhone")&&!Db("iPod")&&!Db("iPad")};
Tb=function(){return Sb()||Db("iPad")||Db("iPod")};
Ub=function(){return Qb()?"macOS"===Bb.platform:Db("Macintosh")};
Vb=function(){return Qb()?"Windows"===Bb.platform:Db("Windows")};
Wb=function(){var a=g.Ab(),b="";if(Vb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Tb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Ub())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(wb(g.Ab(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Rb())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Qb()?"Chrome OS"===Bb.platform:Db("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Yb=function(a){return a[a.length-1]};
naa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.$b=function(a,b,c){b=Zb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Zb=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.ac=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.cc=function(a,b){return 0<=bc(a,b)};
g.dc=function(a){return 0==a.length};
ec=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.gc=function(a,b){b=bc(a,b);var c;(c=0<=b)&&g.fc(a,b);return c};
g.fc=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.hc=function(a,b){b=Zb(a,b,void 0);0<=b&&g.fc(a,b)};
oaa=function(a,b){var c=0;naa(a,function(d,e){b.call(void 0,d,e,a)&&g.fc(a,e)&&c++})};
g.ic=function(a){return Array.prototype.concat.apply([],arguments)};
g.jc=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[]};
g.kc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Oa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.mc=function(a,b,c,d){Array.prototype.splice.apply(a,lc(arguments,1))};
lc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
paa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Pa(e)?"o"+g.Sa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.pc=function(a,b,c){return nc(a,c||oc,!1,b)};
qc=function(a,b){return nc(a,b,!0,void 0,void 0)};
nc=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+(k-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:-f-1};
g.tc=function(a,b){a.sort(b||oc)};
qaa=function(a,b){var c=oc;g.tc(a,function(d,e){return c(b(d),b(e))})};
g.uc=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=raa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
oc=function(a,b){return a>b?1:a<b?-1:0};
raa=function(a,b){return a===b};
g.vc=function(a,b,c){c=g.pc(a,b,c);0>c&&g.mc(a,-(c+1),0,b)};
g.xc=function(a,b,c){var d={};(0,g.wc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
saa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
taa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
yc=function(a){yc[" "](a);return a};
zc=function(a,b){try{return yc(a[b]),!0}catch(c){}return!1};
Ac=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Cc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.Fc=function(a){return Ac(uaa,a,function(){return 0<=g.zb(Ec,a)})};
g.Gc=function(a){return Number(vaa)>=a};
g.Jc=function(a,b){void 0===b&&(b=0);Hc();b=Ic[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var k=a[e],l=a[e+1],m=a[e+2],n=b[k>>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+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.Kc=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.Jc(b,3)};
Mc=function(a){var b=[];Lc(a,function(c){b.push(c)});
return b};
Oc=function(a){!g.Nc||g.Fc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.vb("=.",a[b-1])&&(c=g.vb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Lc(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Lc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Pc[n];if(null!=p)return p;if(!g.nb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Hc();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
Hc=function(){if(!Pc){Pc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Ic[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Pc[f]&&(Pc[f]=e)}}}};
Rc=function(a){return null==a||Qc(a)?a:"string"===typeof a?Oc(a):null};
Qc=function(a){return Tc&&null!=a&&a instanceof Uint8Array};
Vc=function(){return Uc||(Uc=new Uint8Array(0))};
Yc=function(a){if(a!==Wc)throw Error("illegal external caller");};
Zc=function(a,b){Yc(b);this.Vc=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
ad=function(){return $c||($c=new Zc(null,Wc))};
bd=function(a){Yc(Wc);return a.Vc=Rc(a.Vc)};
cd=function(a){if("string"===typeof a)return{buffer:Oc(a),Ft:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Ft:!1};if(a.constructor===Uint8Array)return{buffer:a,Ft:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Ft:!1};if(a.constructor===Zc)return{buffer:bd(a)||Vc(),Ft:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Ft:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
g.fd=function(a){var b=+("-"===a[0]);g.dd=g.ed=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),g.dd*=1E6,g.ed=1E6*g.ed+d,4294967296<=g.ed&&(g.dd+=g.ed/4294967296|0,g.ed%=4294967296);b&&(a=g.ed,b=g.dd,b=~b,a?a=~a+1:b+=1,b=g.r([a,b]),a=b.next().value,b=b.next().value,g.ed=a,g.dd=b)};
g.gd=function(a){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,void 0)};
g.jd=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.j++],id(a),c|=(b&127)<<7*e;128<=b&&(b=a.u[a.j++],id(a),c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.j++],id(a),d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}throw Za();};
id=function(a){if(a.j>a.B)throw $a(a.B,a.j);};
g.kd=function(a){var b=a.u,c=b[a.j+0],d=c&127;if(128>c)return a.j+=1,id(a),d;c=b[a.j+1];d|=(c&127)<<7;if(128>c)return a.j+=2,id(a),d;c=b[a.j+2];d|=(c&127)<<14;if(128>c)return a.j+=3,id(a),d;c=b[a.j+3];d|=(c&127)<<21;if(128>c)return a.j+=4,id(a),d;c=b[a.j+4];a.j+=5;d|=(c&15)<<28;if(128>c)return id(a),d;if(128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++])throw Za();id(a);return d};
g.ld=function(a){var b=a.u[a.j+0],c=a.u[a.j+1],d=a.u[a.j+2],e=a.u[a.j+3];a.j+=4;id(a);return(b<<0|c<<8|d<<16|e<<24)>>>0};
g.md=function(a){for(var b=0,c=a.j,d=c+10;c<d;){var e=a.u[c++];b|=e;if(0===(e&128))return a.j=c,id(a),!!(b&127)}throw Za();};
nd=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);if(a.j+b>a.B)throw $a(b,a.B-a.j);};
od=function(a,b){nd(a,b);if(0==b||0==b)return ad();if(a.xz&&a.D)var c=a.u.subarray(a.j,a.j+b);else{c=a.u;var d=a.j,e=a.j+b;c=d===e?Vc():waa?c.slice(d,e):new Uint8Array(c.subarray(d,e))}a.j+=b;return 0==c.length?ad():new Zc(c,Wc)};
sd=function(a){if(pd.length){var b=pd.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.gd(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;rd(this)};
rd=function(a){var b={};a.JE=void 0===b.JE?!1:b.JE};
td=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.kd(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Ya(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
ud=function(a){switch(a.u){case 0:0!=a.u?ud(a):g.md(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)ud(a);else{var b=g.kd(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!td(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}ud(a)}while(1);break;default:throw Ya(a.u,a.B);}};
g.vd=function(a,b,c){var d=a.j.B,e=g.kd(a.j)>>>0,f=a.j.j+e,k=f-d;0>=k&&(a.j.B=f,c(b,a),k=f-a.j.j);if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.wd=function(a){var b=a.j;a=g.ld(b);var c=g.ld(b);b=2*(c>>31)+1;var d=c>>>20&2047;a=4294967296*(c&1048575)+a;return 2047==d?a?NaN:Infinity*b:0==d?b*Math.pow(2,-1074)*a:b*Math.pow(2,d-1075)*(a+4503599627370496)};
g.yd=function(a){var b=g.kd(a.j)>>>0;a=a.j;nd(a,b);var c=a.j;a.j+=b;a=a.u;var d;if(xaa)(d=xd)||(d=xd=new TextDecoder("utf-8",{fatal:!0})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,k,l,m;c<b;)k=a[c++],128>k?e.push(k):224>k?c>=b?cb():(l=a[c++],194>k||128!==(l&192)?(c--,cb()):e.push((k&31)<<6|l&63)):240>k?c>=b-1?cb():(l=a[c++],128!==(l&192)||224===k&&160>l||237===k&&160<=l||128!==((d=a[c++])&192)?(c--,cb()):e.push((k&15)<<12|(l&63)<<6|d&63)):244>=k?c>=b-2?cb():(l=a[c++],128!==(l&192)||
0!==(k<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,cb()):(k=(k&7)<<18|(l&63)<<12|(d&63)<<6|m&63,k-=65536,e.push((k>>10&1023)+55296,(k&1023)+56320))):cb(),8192<=e.length&&(f=db(f,e),e.length=0);d=db(f,e)}return d};
zd=function(a){var b=g.kd(a.j)>>>0;return od(a.j,b)};
Ad=function(a,b){this.u=a>>>0;this.j=b>>>0};
Cd=function(a){if(!a)return Bd||(Bd=new Ad(0,0));if(!/^-?\d+$/.test(a))return null;g.fd(a);return new Ad(g.ed,g.dd)};
Dd=function(){this.j=[]};
Ed=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
Fd=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Hd=function(a,b){if(0<=b)Fd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.Id=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
yaa=function(){this.B=[];this.u=0;this.j=new Dd};
Jd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Ld=function(a,b){g.Kd(a,b,2);b=a.j.end();Jd(a,b);b.push(a.u);return b};
Md=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
zaa=function(a,b){if(b=b.D){Jd(a,a.j.end());for(var c=0;c<b.length;c++)Jd(a,bd(b[c])||Vc())}};
g.Kd=function(a,b,c){Fd(a.j,8*b+c)};
g.Nd=function(a,b,c){g.Kd(a,b,2);Fd(a.j,c.length);Jd(a,a.j.end());Jd(a,c)};
Pd=function(a,b){Object.isFrozen(a)||(Od?a[Od]|=b:void 0!==a.KA?a.KA|=b:Object.defineProperties(a,{KA:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
Qd=function(a){var b;Od?b=a[Od]:b=a.KA;return null==b?0:b};
Rd=function(a){Pd(a,1);return a};
Sd=function(a){return Array.isArray(a)?!!(Qd(a)&2):!1};
Td=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");Pd(a,2)};
Xd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Yd=function(a){return null==a?ad():a.constructor===Zc?a:"string"===typeof a?a?new Zc(a,Wc):ad():Qc(a)?a.length?new Zc(new Uint8Array(a),Wc):ad():ad()};
Zd=function(a){a instanceof Zc&&(Yc(Wc),a=a.Vc||"");return a};
$d=function(a){if(Sd(a.pe))throw Error("Cannot mutate an immutable Message");};
ae=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
be=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Qc(a))return g.Jc(a);if(a instanceof Zc){var b=a.Vc;b=null==b||"string"===typeof b?b:Tc&&b instanceof Uint8Array?g.Jc(b):null;return(a.Vc=b)||""}}}return a};
de=function(a,b){b=void 0===b?Aaa:b;return ce(a,b)};
ee=function(a,b){if(null!=a){if(Array.isArray(a))a=ce(a,b);else if(Xd(a)){var c={},d;for(d in a)c[d]=ee(a[d],b);a=c}else a=b(a);return a}};
ce=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=ee(c[d],b);Array.isArray(a)&&Qd(a)&1&&Rd(c);return c};
fe=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=be(a);return Array.isArray(a)?de(a,fe):a};
Aaa=function(a){return Qc(a)?new Uint8Array(a):a};
g.ge=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&&(c=a.u[b],null!=c)?c:a.pe[b+a.B]};
g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||$d(a);b<a.C&&!d?a.pe[b+a.B]=c:(a.u||(a.u=a.pe[a.C+a.B]={}))[b]=c;return a};
g.ie=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;var e=g.ge(a,b,d);null==e&&(e=he);if(Sd(a.pe))c&&(Td(e),Object.freeze(e));else if(e===he||Sd(e))e=Rd(e.slice()),g.D(a,b,e,d);return e};
je=function(a,b,c){a=g.ge(a,b);return null==a?c:a};
ne=function(a,b,c){var d=void 0===d?!1:d;return g.D(a,b,null==c?Rd([]):Array.isArray(c)?Rd(c):c,d)};
oe=function(a,b,c){g.D(a,b,void 0,!1,void 0===c?!1:c)};
pe=function(a,b,c,d){$d(a);c!==d?g.D(a,b,c):oe(a,b);return a};
g.qe=function(a,b,c,d){$d(a);a=g.ie(a,b);d&&Qd(a)&4&&(c=Yd(c));a.push(c)};
g.te=function(a,b,c,d){$d(a);(c=re(a,c))&&c!==b&&null!=d&&(a.j&&c in a.j&&(a.j[c]=void 0),g.D(a,c,void 0));return g.D(a,b,d)};
re=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.ge(a,e)&&(0!==c&&oe(a,c,!0),c=e)}return c};
g.ue=function(a,b,c){var d=void 0===d?!1:d;$d(a);a.j||(a.j={});var e=a.j[c];if(e)return e;e=g.ge(a,c,d);b=new b(e);null==e&&g.D(a,c,b.pe,d);return a.j[c]=b};
ve=function(a,b,c,d,e){if(-1===c)return null;a.j||(a.j={});var f=a.j[c];if(f)return f;e=g.ge(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);Sd(a.pe)&&Td(b.pe);return a.j[c]=b};
we=function(a,b,c,d){d=void 0===d?!1:d;a.j||(a.j={});var e=Sd(a.pe),f=a.j[c];if(!f){d=g.ie(a,c,!0,d);f=[];e=e||Sd(d);for(var k=0;k<d.length;k++)f[k]=new b(d[k]),e&&Td(f[k].pe);e&&(Td(f),Object.freeze(f));a.j[c]=f}return f};
xe=function(a,b,c,d){d=void 0===d?!1:d;$d(a);a.j||(a.j={});var e=c?c.pe:c;a.j[b]=c;return g.D(a,b,e,d)};
ye=function(a,b,c,d){$d(a);a.j||(a.j={});var e=d?d.pe:d;a.j[b]=d;g.te(a,b,c,e)};
ze=function(a,b,c,d){d=void 0===d?!1:d;$d(a);if(c){var e=Rd([]);for(var f=0;f<c.length;f++)e[f]=c[f].pe;a.j||(a.j={});a.j[b]=c}else a.j&&(a.j[b]=void 0),e=he;return g.D(a,b,e,d)};
Ae=function(a,b,c,d,e){var f=void 0===f?!1:f;$d(a);f=we(a,c,b,f);c=d?d:new c;a=g.ie(a,b);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.pe)):(f.push(c),a.push(c.pe));return c};
Be=function(a,b,c,d){Ae(a,b,c,d,void 0)};
Ce=function(a,b,c){return je(a,b,void 0===c?0:c)};
Ee=function(a,b,c){a||(a=De);De=null;var d=this.constructor.j;a||(a=d?[d]:[]);this.B=(d?0:-1)-(this.constructor.u||0);this.j=void 0;this.pe=a;a:{d=this.pe.length;a=d-1;if(d&&(d=this.pe[a],Xd(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=void 0):this.C=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.C)a+=this.B,(d=this.pe[a])?Array.isArray(d)&&Rd(d):this.pe[a]=he;else{d=this.u||(this.u=this.pe[this.C+this.B]={});var e=d[a];e?Array.isArray(e)&&
Rd(e):d[a]=he}};
Ge=function(a){Fe=!0;try{return JSON.stringify(a.toJSON(),Baa)}finally{Fe=!1}};
Je=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected to deserialize an Array but got "+Na(b)+": "+b);De=b;a=new a(b);De=null;return a};
Baa=function(a,b){return be(b)};
Ke=function(a,b){b.D&&(a.D=b.D.slice());var c=b.j;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),k=+d;if(Array.isArray(e)){if(e.length)for(f=we(a,e[0].constructor,k,f),k=0;k<Math.min(f.length,e.length);k++)Ke(f[k],e[k])}else(f=ve(a,e.constructor,k,void 0,f))&&Ke(f,e)}}}};
Le=function(){Ee.apply(this,arguments)};
Oe=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],k=f.O_;k||(d.Uu=f.sha||f.tZ.AC,f.hL?(d.LC=Me(f.hL),k=function(l){return function(m,n,p){return l.Uu(m,n,p,l.LC)}}(d)):f.JN?(d.MC=Ne(f.VE.u,f.JN),k=function(l){return function(m,n,p){return l.Uu(m,n,p,l.MC)}}(d)):k=d.Uu,f.O_=k);
k(b,a,f.VE);d={Uu:d.Uu,LC:d.LC,MC:d.MC}}}zaa(b,a)};
Qe=function(a,b,c){return a[Pe]||(a[Pe]=function(d,e){return b(d,e,c)})};
Te=function(a){var b=a[Pe];if(!b){var c=Re(a);b=function(d,e){return Se(d,e,c)};
a[Pe]=b}return b};
Caa=function(a){var b=a.hL;if(b)return Te(b);if(b=a.rha)return Qe(a.VE.u,b,a.JN)};
Daa=function(a){var b=Caa(a),c=a.VE,d=a.tZ.Cl;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Ue=function(a,b,c,d,e,f){a=a();var k=0;a.length&&"number"!==typeof a[0]&&(c(b,a[0]),k++);for(;k<a.length;){c=a[k++];for(var l=k+1;l<a.length&&"number"!==typeof a[l];)l++;var m=a[k++];l-=k;switch(l){case 0:d(b,c,m);break;case 1:d(b,c,m,a[k++]);break;case 2:e(b,c,m,a[k++],a[k++]);break;case 3:l=a[k++];var n=a[k++],p=a[k++];Array.isArray(p)?e(b,c,m,l,n,p):f(b,c,m,l,n,p);break;case 4:f(b,c,m,a[k++],a[k++],a[k++],a[k++]);break;default:throw Error("unexpected number of binary field arguments: "+l);}}return b};
Me=function(a){var b=a[Ve];if(!b){var c=We(a);b=function(d,e){return Xe(d,e,c)};
a[Ve]=b}return b};
Ne=function(a,b){var c=a[Ve];c||(c=function(d,e){return Oe(d,e,b)},a[Ve]=c);
return c};
Eaa=function(a,b){a.push(b)};
Faa=function(a,b,c){a.push(b,c.AC)};
Gaa=function(a,b,c,d,e){var f=Me(e),k=c.AC;a.push(b,function(l,m,n){return k(l,m,n,d,f)})};
Haa=function(a,b,c,d,e,f){var k=Ne(d,f),l=c.AC;a.push(b,function(m,n,p){return l(m,n,p,d,k)})};
We=function(a){var b=a[Ye];return b?b:Ue(a,a[Ye]=[],Eaa,Faa,Gaa,Haa)};
Iaa=function(a,b){a[0]=b};
Jaa=function(a,b,c,d){var e=c.Cl;a[b]=d?function(f,k,l){return e(f,k,l,d)}:e};
Kaa=function(a,b,c,d,e,f){var k=c.Cl,l=Te(e);a[b]=function(m,n,p){return k(m,n,p,d,l,f)}};
Laa=function(a,b,c,d,e,f,k){var l=c.Cl,m=Qe(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,k)}};
Re=function(a){var b=a[Ze];return b?b:Ue(a,a[Ze]={},Iaa,Jaa,Kaa,Laa)};
Se=function(a,b,c){for(;td(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=Daa(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,ud(f),!f.JE){var k=f.j.j-d;f.j.j=d;d=od(f.j,k);(f=e.D)?f.push(d):e.D=[d]}}return a};
Xe=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);Oe(a,b,e?c[0]:void 0)};
g.$e=function(a,b){var c=new yaa;Xe(a,c,We(b));Jd(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var k=b[f];a.set(k,e);e+=k.length}c.B=[a];return a};
g.af=function(a,b){return{Cl:a,AC:b}};
g.bf=function(a,b,c){b=g.ge(b,c);if(null!=b){g.Kd(a,c,1);a=a.j;var d=+b;if(0===d)g.dd=0<1/d?0:2147483648,g.ed=0;else if(isNaN(d))g.dd=2147483647,g.ed=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.dd=(c|2146435072)>>>0,g.ed=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.dd=(c|b/4294967296)>>>0,g.ed=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.dd=(c|b+1023<<20|1048576*d&1048575)>>>0;g.ed=4503599627370496*
d>>>0}g.Id(a,g.ed);g.Id(a,g.dd)}};
g.cf=function(a,b,c){b=g.ge(b,c);if(null!=b&&("string"===typeof b&&Cd(b),null!=b))if(g.Kd(a,c,0),"number"===typeof b){a=a.j;var d=b;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));g.ed=b;g.dd=d;Ed(a,g.ed,g.dd)}else c=Cd(b),Ed(a.j,c.u,c.j)};
g.df=function(a,b,c){b=g.ge(b,c);null!=b&&null!=b&&(g.Kd(a,c,0),Hd(a.j,b))};
g.ef=function(a,b,c){b=g.ge(b,c);null!=b&&g.Nd(a,c,g.fb(b))};
g.ff=function(a,b,c,d,e){b=ve(b,d,c);null!=b&&(c=Ld(a,c),e(b,a),Md(a,c))};
gf=function(a,b,c,d){var e=Maa,f=Naa;this.j=a;this.fieldName=b;this.u=c;this.D=d;this.isRepeated=0;this.B=e;this.C=f};
Maa=function(a){var b=this.u,c=this.j;return this.isRepeated?we(a,b,c,!0):ve(a,b,c,void 0,!0)};
Naa=function(a,b){var c=this.j;return this.isRepeated?ze(a,c,b,!0):xe(a,c,b,!0)};
hf=function(a){return null===a?void 0:a};
g.F=function(){Le.apply(this,arguments)};
jf=function(a){if(Sd(a.pe))throw Error("message must be mutable");};
kf=function(a){g.F.call(this,a)};
Oaa=function(){return[1,lf,2,lf]};
mf=function(a){g.F.call(this,a)};
Paa=function(){return[1,lf,2,lf]};
nf=function(a){g.F.call(this,a)};
Qaa=function(){return[1,lf,2,lf]};
of=function(a){g.F.call(this,a)};
Raa=function(){return[1,g.pf,kf,Oaa,uf,2,g.pf,mf,Paa,uf,3,g.pf,nf,Qaa,uf]};
vf=function(a){this.sL=a};
wf=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Js=new Map};
xf=function(a,b){wf.call(this,a,3,b)};
yf=function(a,b){wf.call(this,a,2,b)};
g.zf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Af=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.Af.apply(null,d):g.zf(d)}};
g.G=function(){this.Bi=this.Bi;this.ag=this.ag};
g.H=function(a,b){g.Bf(a,g.Ua(g.zf,b))};
g.Bf=function(a,b){a.Bi?b():(a.ag||(a.ag=[]),a.ag.push(b))};
g.Cf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Saa=function(a){var b=g.Ka("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(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(k){e="Not available",c=!0}b=Df(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,Ef[c])c=Ef[c];else{c=String(c);if(!Ef[c]){var f=/function\s+([^\(]+)/m.exec(c);Ef[c]=f?f[1]:"[Anonymous]"}c=Ef[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}};
Df=function(a,b){b||(b={});b[Ff(a)]=!0;var c=a.stack||"";(a=a.HT)&&!b[Ff(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Df(a,b));return c};
Ff=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Hf=function(a){return g.Gf?"webkit"+a:a.toLowerCase()};
If=function(a,b){g.Cf.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.j=null;a&&this.init(a,b)};
Kf=function(a){return!(!a||!a[Jf])};
Uaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Mc=e;this.key=++Taa;this.Yx=this.Fz=!1};
Lf=function(a){a.Yx=!0;a.listener=null;a.proxy=null;a.src=null;a.Mc=null};
g.Mf=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Nf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Of=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Sf=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Tf=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Uf=function(a){for(var b in a)return b};
Vf=function(a){for(var b in a)return a[b]};
Wf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Xf=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Yf=function(a,b){return null!==a&&b in a};
g.Zf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
$f=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
ag=function(a,b){return(b=$f(a,b,void 0))&&a[b]};
g.bg=function(a){for(var b in a)return!1;return!0};
g.cg=function(a){for(var b in a)delete a[b]};
g.dg=function(a,b){b in a&&delete a[b]};
g.eg=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.fg=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.gg=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.hg=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.hg(a[c]);return b};
g.jg=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<ig.length;f++)c=ig[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
kg=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
lg=function(a){this.src=a;this.listeners={};this.j=0};
g.mg=function(a,b){var c=b.type;c in a.listeners&&g.gc(a.listeners[c],b)&&(Lf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
ng=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Yx&&f.listener==b&&f.capture==!!c&&f.Mc==d)return e}return-1};
g.pg=function(a,b,c,d,e){if(d&&d.once)return og(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.pg(a,b[f],c,d,e);return null}c=qg(c);return Kf(a)?a.Pa(b,c,g.Pa(d)?!!d.capture:!!d,e):rg(a,b,c,!1,d,e)};
rg=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Pa(e)?!!e.capture:!!e,l=sg(a);l||(a[tg]=l=new lg(a));c=l.add(b,c,d,k,f);if(c.proxy)return c;d=Vaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Waa||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(wg(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");yg++;return c};
Vaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Xaa;return a};
og=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)og(a,b[f],c,d,e);return null}c=qg(c);return Kf(a)?a.XA(b,c,g.Pa(d)?!!d.capture:!!d,e):rg(a,b,c,!0,d,e)};
zg=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)zg(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=qg(c),Kf(a)?a.wc(b,c,d,e):a&&(a=sg(a))&&(b=a.Jw(b,c,d,e))&&Ag(b)};
Ag=function(a){if("number"!==typeof a&&a&&!a.Yx){var b=a.src;if(Kf(b))g.mg(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(wg(c),d):b.addListener&&b.removeListener&&b.removeListener(d);yg--;(c=sg(b))?(g.mg(c,a),0==c.j&&(c.src=null,b[tg]=null)):Lf(a)}}};
wg=function(a){return a in Bg?Bg[a]:Bg[a]="on"+a};
Xaa=function(a,b){if(a.Yx)a=!0;else{b=new If(b,this);var c=a.listener,d=a.Mc||a.src;a.Fz&&Ag(a);a=c.call(d,b)}return a};
sg=function(a){a=a[tg];return a instanceof lg?a:null};
qg=function(a){if("function"===typeof a)return a;a[Cg]||(a[Cg]=function(b){return a.handleEvent(b)});
return a[Cg]};
g.Dg=function(){g.G.call(this);this.B=new lg(this);this.jb=this;this.Ja=null};
Eg=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 k=b[f];if(k&&!k.Yx&&k.capture==c){var l=k.listener,m=k.Mc||k.src;k.Fz&&g.mg(a.B,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Fg=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
Gg=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Hg=function(a){return function(){return a}};
g.Ig=function(){};
Yaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Jg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Kg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Zaa=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}};
Mg=function(){if(void 0===Lg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Xa,createScript:Xa,createScriptURL:Xa})}catch(c){g.C.console&&g.C.console.error(c.message)}Lg=a}else Lg=a}return Lg};
Pg=function(a,b){this.j=a===Ng&&b||"";this.u=Og};
Qg=function(a){return a instanceof Pg&&a.constructor===Pg&&a.u===Og?a.j:"type_error:Const"};
g.Rg=function(a){return new Pg(Ng,a)};
Tg=function(a,b){this.j=b===Sg?a:"";this.rl=!0};
Vg=function(a,b){this.j=b===Ug?a:""};
Wg=function(a){return a instanceof Vg&&a.constructor===Vg?a.j:"type_error:TrustedResourceUrl"};
bba=function(a,b){var c=Qg(a);if(!$aa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(aba,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 Pg?Qg(d):encodeURIComponent(String(d))});
return Xg(a)};
Xg=function(a){var b=Mg();a=b?b.createScriptURL(a):a;return new Vg(a,Ug)};
g.Zg=function(a,b){this.j=b===Yg?a:""};
g.$g=function(a){return a instanceof g.Zg&&a.constructor===g.Zg?a.j:"type_error:SafeUrl"};
ah=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(cba)?new g.Zg(a,Yg):null};
g.bh=function(a){a instanceof g.Zg||(a="object"==typeof a&&a.rl?a.Ph():String(a),a=dba.test(a)?new g.Zg(a,Yg):ah(a));return a||eba};
g.ch=function(a,b){if(a instanceof g.Zg)return a;a="object"==typeof a&&a.rl?a.Ph():String(a);if(b&&/^data:/i.test(a)&&(b=ah(a)||eba,b.Ph()==a))return b;dba.test(a)||(a="about:invalid#zClosurez");return new g.Zg(a,Yg)};
kh=function(a,b){this.j=b===dh?a:"";this.rl=!0};
lh=function(a){return a instanceof kh&&a.constructor===kh?a.j:"type_error:SafeStyle"};
gba=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(fba).join(" "):fba(d),b+=c+":"+d+";")}return b?new kh(b,dh):mh};
hba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=lh(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new kh(c,dh):mh};
fba=function(a){if(a instanceof g.Zg)return'url("'+g.$g(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Pg?Qg(a):iba(String(a));if(/[{;}]/.test(a))throw new bb("Value does not allow [{;}], got: %s.",[a]);return a};
iba=function(a){var b=a.replace(jba,"$1").replace(jba,"$1").replace(kba,"url");if(lba.test(b)){if(mba.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||!nba(a))return"zClosurez"}else return"zClosurez";return oba(a)};
nba=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};
oba=function(a){return a.replace(kba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.bh(d).Ph();return c+f+b+f+e})};
oh=function(a,b,c){this.j=c===nh?a:"";this.u=b;this.rl=this.JF=!0};
g.ph=function(a){return a instanceof oh&&a.constructor===oh?a.j:"type_error:SafeHtml"};
rh=function(a){if(a instanceof oh)return a;var b="object"==typeof a,c=null;b&&a.JF&&(c=a.Vr());return qh(ub(b&&a.rl?a.Ph():String(a)),c)};
qba=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=rh(f),e.push(g.ph(f).toString()),f=f.Vr(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=rh(pba),d=c.Vr(),e=[];a.forEach(b);return qh(e.join(g.ph(c).toString()),d)};
rba=function(a){return qba(Array.prototype.slice.call(arguments))};
qh=function(a,b){var c=Mg();a=c?c.createHTML(a):a;return new oh(a,b,nh)};
g.sh=function(a,b){Qg(a);Qg(a);return qh(b,null)};
sba=function(a,b){Qg(a);Qg(a);return new kh(b,dh)};
tba=function(a,b){Qg(a);Qg(a);return Xg(b)};
g.vba=function(a,b){if(uba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ph(b)};
g.th=function(a,b){b=b instanceof g.Zg?b:g.ch(b);a.href=g.$g(b)};
uh=function(a,b,c,d){a=a instanceof g.Zg?a:g.ch(a);b=b||g.C;c=c instanceof Pg?Qg(c):c||"";return void 0!==d?b.open(g.$g(a),c,d):b.open(g.$g(a),c)};
vh=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&wba.test(a))break a;a=""}return a};
xba=function(a,b){return a+Math.random()*(b-a)};
g.wh=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.xh=function(a,b){a%=b;return 0>a*b?a+b:a};
g.yh=function(a,b,c){return a+c*(b-a)};
zh=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Ah=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Bh=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Ch=function(a,b){this.width=a;this.height=b};
g.Dh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Eh=function(a){return a.width*a.height};
g.Fh=function(a){return encodeURIComponent(String(a))};
Gh=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Hh=function(a){return a=ub(a,void 0)};
g.Ih=function(a){return null==a?"":String(a)};
Jh=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Kh=function(a){var b=Number(a);return 0==b&&g.nb(a)?NaN:b};
yba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
zba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Aba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Bba=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};
Nh=function(a){return a?new Lh(Mh(a)):Cba||(Cba=new Lh)};
Dba=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.Oh=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Qh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ph(document,"*",a,b)};
g.Rh=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.Ph(c,"*",a,b)[0]||null}return a||null};
g.Ph=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,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.cc(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
Sh=function(a,b){g.Mf(b,function(c,d){c&&"object"==typeof c&&c.rl&&(c=c.Ph());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Eba.hasOwnProperty(d)?a.setAttribute(Eba[d],c):ib(d,"aria-")||ib(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Fba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Ch(a.clientWidth,a.clientHeight)};
Hba=function(a){var b=Gba(a);a=a.parentWindow||a.defaultView;return g.Nc&&g.Fc("10")&&a.pageYOffset!=b.scrollTop?new g.Ah(b.scrollLeft,b.scrollTop):new g.Ah(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Gba=function(a){return a.scrollingElement?a.scrollingElement:g.Gf||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Th=function(a){return a?a.parentWindow||a.defaultView:window};
Vh=function(a,b,c){var d=arguments,e=document,f=d[1],k=Uh(e,String(d[0]));f&&("string"===typeof f?k.className=f:Array.isArray(f)?k.className=f.join(" "):Sh(k,f));2<d.length&&Iba(e,k,d,2);return k};
Iba=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.Oa(f)||g.Pa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Pa(f)){var k="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){k="function"==typeof f.item;break a}}k=!1}g.wc(k?g.jc(f):f,e)}}};
g.Wh=function(a){return Uh(document,a)};
Uh=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Xh=function(a){return document.createTextNode(String(a))};
g.Yh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Zh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.$h=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Jba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.ai=function(a){var b;if(Kba&&!(g.Nc&&g.Fc("9")&&!g.Fc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.bi=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};
Mh=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ci=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.Yh(a);var c=Mh(a);a.appendChild(c.createTextNode(String(b)))}};
di=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")||Lba(a)):a.hasAttribute("tabindex")&&Lba(a))&&g.Nc){var c;"function"!==typeof a.getBoundingClientRect||g.Nc&&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};
Lba=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
fi=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return ei(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.cc(f.className.split(/\s+/),c))},!0,d)};
ei=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};
Lh=function(a){this.j=a||g.C.document||document};
hi=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Jb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(gi||(gi=Mba()),gi(a)):g.C.setImmediate(a)};
Mba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Db("Presto")&&(a=function(){var e=g.Wh("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ta)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!Ib()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.pL;c.pL=null;e()}};
return function(e){d.next={pL:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Nba=function(a){g.C.setTimeout(function(){throw a;},0)};
ii=function(){this.u=this.j=null};
ji=function(){this.next=this.scope=this.j=null};
g.mi=function(a,b){ki||Oba();li||(ki(),li=!0);Pba.add(a,b)};
Oba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);ki=function(){a.then(Qba)}}else ki=function(){hi(Qba)}};
Qba=function(){for(var a;a=Pba.remove();){try{a.j.call(a.scope)}catch(b){Nba(b)}Gg(Rba,a)}li=!1};
ni=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.pi=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.La)try{var b=this;a.call(void 0,function(c){oi(b,2,c)},function(c){oi(b,3,c)})}catch(c){oi(this,3,c)}};
Sba=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
qi=function(a,b,c){var d=Tba.get();d.u=a;d.onRejected=b;d.context=c;return d};
ri=function(a){if(a instanceof g.pi)return a;var b=new g.pi(g.La);oi(b,2,a);return b};
si=function(a){return new g.pi(function(b,c){c(a)})};
g.Vba=function(a,b,c){Uba(a,b,c,null)||g.mi(g.Ua(b,a))};
Wba=function(a){return new g.pi(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Vba(e,b,c)})};
ui=function(a,b){b=qi(b,b,void 0);b.B=!0;ti(a,b);return a};
Xba=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,k=c.u;k&&(k.B||(d++,k.j==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.j&&1==d?Xba(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Yba(c),Zba(c,e,3,b)))}a.B=null}else oi(a,3,b)};
ti=function(a,b){a.u||2!=a.j&&3!=a.j||$ba(a);a.C?a.C.next=b:a.u=b;a.C=b};
aca=function(a,b,c,d){var e=qi(null,null,null);e.j=new g.pi(function(f,k){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof vi?k(l):f(m)}catch(n){k(n)}}:k});
e.j.B=a;ti(a,e);return e.j};
oi=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Uba(c,a.u_,a.v_,a)||(a.K=c,a.j=b,a.B=null,$ba(a),3!=b||c instanceof vi||bca(a,c)))};
Uba=function(a,b,c,d){if(a instanceof g.pi)return ti(a,qi(b||g.La,c||null,d)),!0;if(ni(a))return a.then(b,c,d),!0;if(g.Pa(a))try{var e=a.then;if("function"===typeof e)return cca(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
cca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
$ba=function(a){a.J||(a.J=!0,g.mi(a.qU,a))};
Yba=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Zba=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,dca(b,c,d);else try{b.B?b.u.call(b.context):dca(b,c,d)}catch(e){eca.call(null,e)}Gg(Tba,b)};
dca=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
bca=function(a,b){a.D=!0;g.mi(function(){a.D&&eca.call(null,b)})};
vi=function(a){ab.call(this,a)};
g.wi=function(a,b){g.Dg.call(this);this.og=a||1;this.Fy=b||g.C;this.iL=(0,g.Ta)(this.i_,this);this.sN=g.Va()};
g.xi=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Ta)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Ta)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
yi=function(a,b){var c=null;return(new g.pi(function(d,e){c=g.xi(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Eh(function(d){g.C.clearTimeout(c);
throw d;})};
g.zi=function(a){this.K=a;this.j=new Map;this.J=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.wi(this.flushInterval);this.u.Pa("tick",this.RP,!1,this);this.D=!1};
fca=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.RP()};
gca=function(a,b){return a.J.has(b)?void 0:a.j.get(b)};
hca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
ica=function(a){this.j=a;this.j.YK("/client_streamz/po/w/rl",{Wn:3,Vn:"mn"},{Wn:2,Vn:"ac"},{Wn:2,Vn:"sc"},{Wn:3,Vn:"rk"})};
jca=function(a){this.j=a;this.j.YK("/client_streamz/po/w/el",{Wn:3,Vn:"en"},{Wn:3,Vn:"rk"})};
kca=function(a){this.j=a;this.j.wz("/client_streamz/po/w/cec",{Wn:2,Vn:"ec"},{Wn:3,Vn:"rk"})};
mca=function(a){g.F.call(this,a,-1,lca)};
g.Ai=function(a){g.F.call(this,a,-1,nca)};
g.Bi=function(a){g.F.call(this,a)};
g.Ci=function(a){g.F.call(this,a)};
pca=function(a){g.F.call(this,a,-1,oca)};
g.qca=function(a){var b=new mca;b=g.D(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Vn);b=ne(b,3,c);c=[];d=[];for(var e=g.r(a.Js.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var k=a.C;for(var l=a.dF(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.sL;var q=new g.Ci;switch(k){case 3:g.te(q,1,g.Di,Number(p));break;case 2:g.te(q,2,g.Di,Number(p))}m.push(q)}k=m;for(l=0;l<k.length;l++){m=k[l];n=new g.Ai;m=xe(n,2,m);n=f;p=[];q=a;for(var t=[],
v=0;v<q.j.length;v++)t.push(q.j[v].Wn);q=t;for(t=0;t<q.length;t++){v=q[t];var x=n[t],y=new g.Bi;switch(v){case 3:g.te(y,1,g.Ei,String(x));break;case 2:g.te(y,2,g.Ei,Number(x));break;case 1:g.te(y,3,g.Ei,"true"==x)}p.push(y)}ze(m,1,p);c.push(m)}}ze(b,4,c);return b};
rca=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};
sca=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=k,v=0;64>v;v+=4)t[v/4]=q[v]<<24|q[v+1]<<16|q[v+2]<<8|q[v+3];for(v=16;80>v;v++)q=t[v-3]^t[v-8]^t[v-14]^t[v-16],t[v]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],E=e[4];for(v=0;80>v;v++){if(40>v)if(20>v){var I=z^x&(y^z);var K=1518500249}else I=x^y^z,K=1859775393;else 60>v?(I=x&y|z&(x|y),K=2400959708):(I=x^y^z,K=3395469782);I=((q<<5|q>>>27)&4294967295)+I+E+K+t[v]&4294967295;E=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=I}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+E&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var v=[],x=0,y=q.length;x<y;++x)v.push(q.charCodeAt(x));q=v}t||(t=q.length);v=0;if(0==n)for(;v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64;for(;v<t;)if(f[n++]=q[v++],p++,64==n)for(n=0,b(f);v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var v=63;56<=v;v--)f[v]=t&255,t>>>=8;b(f);for(v=t=0;5>v;v++)for(var x=24;0<=x;x-=8)q[t++]=e[v]>>x&255;return q}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,fU:function(){for(var q=d(),t="",v=0;v<q.length;v++)t+="0123456789ABCDEF".charAt(Math.floor(q[v]/16))+"0123456789ABCDEF".charAt(q[v]%16);return t}}};
uca=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,tca(rca(d),a,c||null)].join(" "):null};
tca=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.wc(d,function(l){e.push(l)}),vca(e.join(" "));
var f=[],k=[];g.wc(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.dc(f)?[c,b,a]:[f.join(":"),c,b,a];g.wc(d,function(l){e.push(l)});
a=vca(e.join(" "));a=[c,a];g.dc(k)||a.push(k.join(""));return a.join("_")};
vca=function(a){var b=sca();b.update(a);return b.fU().toLowerCase()};
Fi=function(a){this.j=a||{cookie:""}};
Gi=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=xb(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}};
Hi=function(a){return!!wca.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
xca=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Hi(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Fi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Hi(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
yca=function(a,b,c,d){(a=g.C[a])||(a=(new Fi(document)).get(b));return a?uca(a,c,d):null};
Ii=function(a,b){b=void 0===b?!1:b;var c=rca(String(g.C.location.href)),d=[];if(xca(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.C.__SAPISID:g.C.__APISID;e||(e=new Fi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?uca(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Hi(b)&&((b=yca("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=yca("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
Ji=function(a){g.F.call(this,a,-1,zca)};
Ki=function(){};
g.Li=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.J=c||0;this.K=d||2};
g.Mi=function(a){a.j=Math.min(a.D,a.j*a.K);a.B=Math.min(a.D,a.j+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.j):0));a.u++};
g.Oi=function(a){var b=[];Ni(new Aca,a,b);return b.join("")};
Aca=function(){};
Ni=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),Ni(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),Bca(d,c),c.push(":"),Ni(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Bca(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);}}};
Bca=function(a,b){b.push('"',a.replace(Cca,function(c){var d=Dca[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Dca[c]=d);return d}),'"')};
Eca=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"}};
Pi=function(){};
Qi=function(){};
Fca=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};
Ri=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
Si=function(a){return a?decodeURI(a):a};
g.Ui=function(a,b){return b.match(Ti)[a]||null};
g.Vi=function(a){return Si(g.Ui(3,a))};
g.Gca=function(a){a=a.match(Ti);return Ri(a[1],a[2],a[3],a[4])};
Hca=function(a){a=a.match(Ti);return Ri(a[1],null,a[3],a[4])};
Ica=function(a){a=a.match(Ti);return Ri(null,null,null,null,a[5],a[6],a[7])};
Wi=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?Gh(e):"")}}};
Jca=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)]};
Kca=function(a,b){return b?a?a+"&"+b:b:a};
Xi=function(a,b){if(!b)return a;a=Jca(a);a[1]=Kca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Yi=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Yi(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Fh(b)))};
Lca=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Yi(a[b],a[b+1],c);return c.join("&")};
g.lj=function(a){var b=[],c;for(c in a)Yi(c,a[c],b);return b.join("&")};
mj=function(a,b){var c=2==arguments.length?Lca(arguments[1],0):Lca(arguments,1);return Xi(a,c)};
g.nj=function(a,b){b=g.lj(b);return Xi(a,b)};
oj=function(a,b,c){c=null!=c?"="+g.Fh(c):"";return Xi(a,b+c)};
Mca=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};
pj=function(a,b){var c=a.search(Nca),d=Mca(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 Gh(a.substr(d,e-d))};
qj=function(a,b){for(var c=a.search(Nca),d=0,e,f=[];0<=(e=Mca(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(Oca,"$1")};
Pca=function(a,b,c){return oj(qj(a,b),b,c)};
Qca=function(a,b){a=Jca(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]=Kca(d.join("&"),g.lj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.rj=function(a){g.Dg.call(this);this.headers=new Map;this.Z=a||null;this.D=!1;this.ya=this.j=null;this.Qa=this.X="";this.u=0;this.C="";this.J=this.Ia=this.ma=this.Ea=!1;this.N=0;this.va=null;this.Sa="";this.xa=this.K=!1};
Sca=function(a,b,c,d,e,f,k){var l=new g.rj;Rca.push(l);b&&l.Pa("complete",b);l.XA("ready",l.NT);f&&(l.N=Math.max(0,f));k&&(l.K=k);l.send(a,c,d,e)};
Tca=function(a){return g.Nc&&g.Fc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Vca=function(a,b){a.D=!1;a.j&&(a.J=!0,a.j.abort(),a.J=!1);a.C=b;a.u=5;Uca(a);sj(a)};
Uca=function(a){a.Ea||(a.Ea=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Wca=function(a){if(a.D&&"undefined"!=typeof tj)if(a.ya[1]&&4==g.uj(a)&&2==a.getStatus())vj(a,"Local request error detected and ignored");else if(a.ma&&4==g.uj(a))g.xi(a.HO,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){vj(a,"Request complete");a.D=!1;try{if(wj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.uj(a)?a.j.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Uca(a)}}finally{sj(a)}}};
sj=function(a,b){if(a.j){Xca(a);var c=a.j,d=a.ya[0]?g.La:null;a.j=null;a.ya=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Xca=function(a){a.j&&a.xa&&(a.j.ontimeout=null);a.va&&(g.C.clearTimeout(a.va),a.va=null)};
wj=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.Ui(1,String(a.X)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol,a=a.substr(0,a.length-1)),b=!Yca.test(a?a.toLowerCase():"");c=b}return c};
g.uj=function(a){return a.j?a.j.readyState:0};
g.xj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.yj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Sa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
Zca=function(a){return a.j&&a.isComplete()?a.j.getAllResponseHeaders()||"":""};
$ca=function(a){var b={};a=Zca(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.nb(a[c])){var d=Bba(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 Of(b,function(k){return k.join(", ")})};
g.zj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
vj=function(a,b){return b+" ["+a.Qa+" "+a.X+" "+a.getStatus()+"]"};
Aj=function(a){g.F.call(this,a)};
bda=function(a){g.F.call(this,a,-1,ada)};
Cj=function(a){g.F.call(this,a)};
Dj=function(a){g.F.call(this,a,31,cda)};
eda=function(a){g.F.call(this,a,17,dda)};
gda=function(a){g.F.call(this,a,6,fda)};
hda=function(a){g.F.call(this,a)};
Fj=function(a,b,c,d,e,f,k,l,m,n,p){g.Dg.call(this);var q=this;this.Z="";this.u=[];this.Xa="";this.Ya=this.Ea=-1;this.Qa=!1;this.N=this.C=null;this.K=0;this.qb=1;this.timeoutMillis=0;this.ya=!1;g.Dg.call(this);this.Wa=b||function(){};
this.J=new ida(a,f);this.ib=d;this.Sa=p;this.rb=g.Ua(xba,0,1);this.va=e||null;this.X=c||null;this.xa=k||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ia=f||!1;!this.Ia&&(65<=Pb("Chromium")||45<=Pb("Firefox")||12<=Pb("Safari")||Tb()&&g.zb(Wb(),12));a=g.D(new Cj,1,1);Ej(this.J,a);this.D=new g.Li(1E4,3E5,.1);this.j=new g.wi(this.D.getValue());g.H(this,this.j);n=jda(this,n);g.pg(this.j,"tick",n,!1,this);this.ma=new g.wi(6E5);g.H(this,this.ma);g.pg(this.ma,"tick",n,!1,this);this.xa||
this.ma.start();this.Ia||(g.pg(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.WE()}),g.pg(document,"pagehide",this.WE,!1,this))};
jda=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
kda=function(a){a.va||(a.va=.01>a.rb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.va};
lda=function(a,b){a.D=new g.Li(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
nda=function(a){mda(a,function(b,c){b=oj(b,"format","json");b=Th().navigator.sendBeacon(b,Ge(c));a.ya&&!b&&(a.ya=!1);return b})};
mda=function(a,b){if(0!==a.u.length){var c=qj(kda(a),"format");c=mj(c,"auth",a.Wa(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.J.Ae(e,a.K);if(!b(c,f))break;a.K=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
oda=function(){g.Cf.call(this,"event-logged",void 0)};
ida=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new eda;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ej(this,new Cj)};
Ej=function(a,b){xe(a.j,1,b);g.ge(b,1)||g.D(b,1,1);a.B||(b=Gj(a),g.ge(b,5)||g.D(b,5,a.locale));a.u&&(b=Gj(a),ve(b,bda,9)||xe(b,9,a.u))};
pda=function(a,b){b(Th()).then(function(c){a.u=c;c=Gj(a);xe(c,9,a.u);return!0}).catch(function(){return!1})};
Gj=function(a){a=ve(a.j,Cj,1);var b=ve(a,Aj,11);b||(b=new Aj,xe(a,11,b));return b};
qda=function(a,b,c){Sca(a.url,function(d){d=d.target;wj(d)?b(g.xj(d)):c(d.getStatus())},a.requestType,a.body,a.jr,a.timeoutMillis,a.withCredentials)};
rda=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=qda;this.j=""};
sda=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new rda;d.j="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.j=d.Ae()};
tda=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}};
Hj=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};
Ij=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Jj=function(a,b){this.logger=a;this.j=b;this.startMillis=Ij()};
Kj=function(){};
Lj=function(a){this.ek=a;this.C=new sda;this.j=new g.zi(this.C);this.clientError=new kca(this.j);this.u=new jca(this.j);this.B=new ica(this.j)};
uda=function(a){g.F.call(this,a)};
vda=function(a){g.F.call(this,a)};
Mj=function(a){g.F.call(this,a)};
g.Nj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Oj=function(a){this.j=!1;if(a.challenge instanceof Mj){var b=je(a.challenge,4,"");a=je(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new g.Nj;this.u=c.promise;this.B=g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({CT:d,SZ:e})})},!0)).next().value;
this.PZ=c.promise.then(function(){})};
wda=function(a){return tba(g.Rg("From proto message. b/12014412"),g.ge(a,4)||"")};
xda=function(){};
Pj=function(a){this.j=a};
yda=function(){};
Qj=function(a){this.j=a};
zda=function(a){if(a instanceof yda)if(a instanceof Qj)a=a.j;else throw Error("");else a=g.$g(a);return a};
Ada=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Rj=function(a,b){a.src=Wg(b);Ada(a)};
Bda=function(a,b){return a.parseFromString(g.ph(b),"text/xml")};
Sj=function(){this.j={};this.u=null};
Cda=function(){Sj.j||(Sj.j=new Sj);return Sj.j};
Eda=function(a){var b=Cda();return Dda(b,ve(a,uda,1),ve(a,vda,2),je(a,3,""))};
Dda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Fda(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,k){Fda(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
k(l)})}));
return a.j[d]};
Fda=function(a,b){return b?Gda(b):a?Hda(a):Promise.resolve()};
Gda=function(a){return new Promise(function(b,c){var d=g.Wh("SCRIPT"),e=wda(a);g.Rj(d,e);d.onload=function(){g.$h(d);b()};
d.onerror=function(){g.$h(d);c(Error("EWLS"))};
(g.Oh("HEAD")[0]||document.documentElement).appendChild(d)})};
Hda=function(a){return new Promise(function(b){var c=g.Wh("SCRIPT");if(a){var d=g.ge(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=Mg())?void 0:e.createScript(d);e=new Pj(null!=f?f:d,Tj)}}else e=null;if(e instanceof xda)if(e instanceof Pj)e=e.j;else throw Error("");else e=e instanceof Tg&&e.constructor===Tg?e.j:"type_error:SafeScript";c.textContent=e;Ada(c);(g.Oh("HEAD")[0]||document.documentElement).appendChild(c);g.$h(c);b()})};
Uj=function(a){g.F.call(this,a)};
Vj=function(a){g.F.call(this,a)};
Wj=function(a){g.F.call(this,a)};
Ida=function(a,b,c){this.client=a;this.ek=b;this.j=c};
Jda=function(a){var b=Cda().u,c,d,e,f,k;return g.B(function(l){if(1==l.j)return c=new Uj,pe(c,1,a.ek,""),b&&pe(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;jf(e);f=Rc(Zd(je(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.C.TextDecoder)n=(new TextDecoder).decode(n);else if(8192>=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;q<n.length;q+=8192)p+=String.fromCharCode.apply(null,Array.prototype.slice.call(n,
q,q+8192));n=p}n=Je(Mj,n);return m.call(l,n)}k=ve(e,Mj,1);if(!k)throw Error("Missing field");return l.return(k)})};
Lda=function(a,b){var c,d;return g.B(function(e){c=a.j();var f=new Vj;f=pe(f,1,a.ek,"");d=pe(f,2,b,"");f=e.return;var k=Xj(a.client.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Kda);return f.call(e,k)})};
Mda=function(a){this.j=a};
Yj=function(a){g.F.call(this,a)};
Zj=function(a,b,c){this.j=a;this.B=b;this.u=c};
ak=function(a,b,c){c=void 0===c?{}:c;this.EZ=a;this.j=c;this.u=b};
bk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Nda=function(a,b,c){c=void 0===c?{}:c;return new Zj(b,a,c)};
ck=function(a){g.F.call(this,a)};
dk=function(a){jf(a);return Rc(Zd(je(a,1,"")))};
ek=function(a){g.F.call(this,a)};
fk=function(a){g.F.call(this,a)};
gk=function(a){g.F.call(this,a,-1,Oda)};
hk=function(a,b){this.K=a.cW;this.N=b;this.j=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Pda(this)};
Sda=function(a,b){g.pg(a.j,"complete",function(){if(wj(a.j)){var c=g.xj(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.N(c)}catch(f){ik(a,new Hj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=tda(a.j.getStatus());jk(a,kk(a));0==c?Qda(a,d):ik(a,new Hj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.xj(a.j);var e={};d?(e=Rda(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());jk(a,kk(a));ik(a,new Hj(d,c,e))}})};
Pda=function(a){a.K.Qm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.N(c)}catch(e){ik(a,new Hj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Qda(a,d)}if("2"in b)for(b=Rda(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
a.K.Qm("end",function(){jk(a,kk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.Qm("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||wj(a.j)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=tda(a.j.getStatus());break;default:c=14}jk(a,kk(a));ik(a,new Hj(c,Eca(b)+", error: "+a.j.getLastError()))}})};
kk=function(a){var b={},c=$ca(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Rda=function(a,b){var c=2,d={};try{var e=Je(gk,b);c=Ce(e,1);var f=e.getMessage();we(e,fk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.X)):(c=14,f="Unable to parse RpcStatus: "+k)}return{code:c,details:f,metadata:d}};
lk=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Qda=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
jk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
ik=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.mk=function(a){this.D=a.N_||null;this.B=a.WP||!1};
nk=function(a,b){g.Dg.call(this);this.va=a;this.K=b;this.J=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.ma="GET";this.Z="";this.j=!1;this.N=this.C=this.D=null};
Tda=function(a){a.C.read().then(a.JU.bind(a)).catch(a.BA.bind(a))};
pk=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;ok(a)};
ok=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Uda=function(a){if(a.Li&&"function"==typeof a.Li)return a.Li();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.Oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Wf(a)};
Vda=function(a){if(a.ym&&"function"==typeof a.ym)return a.ym();if(!a.Li||"function"!=typeof a.Li){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Oa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Xf(a)}}};
g.qk=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Oa(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Vda(a),e=Uda(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
g.rk=function(a,b){this.j=this.N=this.C="";this.u=null;this.D=this.K="";this.J=!1;var c;a instanceof g.rk?(this.J=void 0!==b?b:a.J,g.sk(this,a.C),this.N=a.N,g.tk(this,a.j),g.uk(this,a.u),this.K=a.getPath(),vk(this,a.B.clone()),this.D=a.D):a&&(c=String(a).match(Ti))?(this.J=!!b,g.sk(this,c[1]||"",!0),this.N=wk(c[2]||""),g.tk(this,c[3]||"",!0),g.uk(this,c[4]),this.K=wk(c[5]||"",!0),vk(this,c[6]||"",!0),this.D=wk(c[7]||"")):(this.J=!!b,this.B=new xk(null,this.J))};
g.sk=function(a,b,c){a.C=c?wk(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.tk=function(a,b,c){a.j=c?wk(b,!0):b};
g.uk=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
vk=function(a,b,c){b instanceof xk?(a.B=b,Wda(a.B,a.J)):(c||(b=yk(b,Xda)),a.B=new xk(b,a.J))};
g.zk=function(a,b,c){a.B.set(b,c)};
g.Ak=function(a){return a instanceof g.rk?a.clone():new g.rk(a,void 0)};
wk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
yk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Yda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Yda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
xk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Bk=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Wi(a.B,function(b,c){a.add(Gh(b),c)}))};
Zda=function(a,b){Bk(a);b=Ck(a,b);return a.j.has(b)};
g.$da=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Ck(a,b),g.jc(c)),a.u=a.u+c.length)};
Ck=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Wda=function(a,b){b&&!a.C&&(Bk(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.$da(this,e,c))},a));
a.C=b};
g.aea=function(a){var b="";g.Mf(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Dk=function(a,b,c){if(g.bg(c))return a;c=g.aea(c);if("string"===typeof a)return oj(a,g.Fh(b),c);g.zk(a,b,c);return a};
g.Ek=function(a){g.G.call(this);this.u=a;this.j={}};
bea=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)bea(a,b,c[k],d,e,f);else{b=og(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.Fk=function(a){g.Mf(a.j,function(b,c){this.j.hasOwnProperty(c)&&Ag(b)},a);
a.j={}};
cea=function(){this.B=!0;this.u=0;this.j=""};
dea=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Ok=function(){this.J=null;this.K=[];this.C=this.u=this.B=this.j=this.X=0;this.D=null;this.N=0};
Pk=function(a,b,c,d){a.j=3;a.J="The stream is broken @"+a.X+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
Qk=function(){this.j=null;this.u=0;this.B=new cea;this.C=new Ok};
eea=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Rk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Uk=function(a){this.X=null;this.J=[];this.C="";this.ma=[];this.B=this.u=0;this.K=!1;this.N=0;this.va=/[\\"]/g;this.j=this.D=0;this.Z=!(!a||!a.eU)};
Vk=function(a,b,c){a.D=3;a.X="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.X);};
Wk=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.J=!1};
fea=function(a){var b=g.zj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Wk:new Uk:b.startsWith("application/x-protobuf")?(a=g.zj(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Qk:null:new Ok:null};
Xk=function(a){this.j=a;this.u=null;this.C=this.B=0;this.X=!1;this.D=this.K=this.J=null;this.N=new g.Ek(this);this.N.Pa(this.j,"readystatechange",this.Z)};
Yk=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
Zk=function(a){g.Fk(a.N);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
gea=function(a){this.B=a;a=(0,g.Ta)(this.UW,this);this.B.D=a;a=(0,g.Ta)(this.EY,this);this.B.K=a;this.u={};this.j={}};
hea=function(a,b){for(var c={},d=0;d<a.length;c={GC:c.GC},d++)c.GC=a[d],b.forEach(function(e){return function(f){try{f(e.GC)}catch(k){}}}(c))};
$k=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
iea=function(a){a=void 0===a?{}:a;this.D=a.Pha||g.Ka("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ka("withCredentials",a)||!1;this.C=a.Nha||[];this.J=a.Qha||[];this.j=a.Tha;this.B=a.Rha||!1};
Xj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return jea(function(k){return new kea(function(l,m){var n={},p=lea(a,k,f);p.Qm("error",function(q){return m(q)});
p.Qm("metadata",function(q){n=q});
p.Qm("data",function(q){var t=n;t=void 0===t?{}:t;l(new ak(q,k.pA(),t))})})},a.J).call(a,Nda(e,c,d)).then(function(k){return k.EZ})};
lea=function(a,b,c){var d=b.pA(),e=b.getMetadata(),f=mea(a,!0);a=nea(a,e,f,c+d.getName());c=oea(f,d.u,!1);Sda(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
mea=function(a,b){b=a.B&&!b;return a.j||b?new g.rj(new g.mk({N_:a.j,WP:b})):new g.rj};
nea=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.K=!0;if(a.D)d=g.Dk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
oea=function(a,b,c){if(c)if(a.isActive(),!g.Nc||g.Gc(10)){c=new Xk(a);var d=new gea(c)}else d=null;return new hk({xhr:a,cW:d},b)};
jea=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
al=function(){var a={format:"jspb"};this.j=new iea(a)};
pea=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("")};
cl=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=qea(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=bl(a,l),d+=bl(a,l+4),e+=bl(a,l+8),b();e+=f;switch(k){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 pea(e)};
qea=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
bl=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
rea=function(a){var b=new al,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Ida(b,a,function(){return c})};
sea=function(a){var b=rea(a.ek);return new dl(Object.assign({},{aA:b},a))};
el=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,el.prototype)};
fl=function(){g.G.apply(this,arguments);this.B=new g.Nj};
tea=function(a,b){gl(b).then(function(){a.B.resolve()})};
hl=function(a,b,c,d,e){fl.call(this);this.logger=a;this.C=c;this.J=d;this.u="m";this.D=0;g.H(this,b);tea(this,e);this.j=new of};
il=function(a,b){fl.call(this);this.j=a;this.u="f";tea(this,b)};
jl=function(a){fl.call(this);this.u="e";if(a instanceof el){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+cl(a.message)+":_"+cl(a.stack)}else b=a.message+":"+a.stack,a="_"+cl(a.message)+":_"+cl(a.stack||"");this.j=new Uint8Array(g.gb(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.gb(("WE:"+a).substring(0,2048)))};
gl=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
kl=function(a,b){return Promise.race([a,gl(12E4).then(b)])};
dl=function(a){this.j=void 0;this.u=new g.Nj;this.aA=a.aA;this.rO=a.rO;this.onError=a.onError;this.logger=a.Eha?new Kj:new Lj(a.ek);var b=new Jj(this.logger,"r");this.ready().finally(function(){return void b.done()});
uea(this)};
vea=function(a,b,c){var d=window.webpocb;if(!d)throw new el(4,Error("PMD:Undefined"));d=d(dk(b));return new hl(a.logger,c,d,Ce(b,3),1E3*Ce(b,2))};
wea=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z;return g.B(function(E){switch(E.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.Li(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){E.Za(4);break}g.va(E,5);return g.A(E,kl(a.logger.jG("c",e,Jda(a.aA)),function(){return Promise.reject(new el(10,"JVZ:Timeout"))}),7);
case 7:return f=E.u,k=new Jj(a.logger,"b"),g.A(E,Eda(f),8);case 8:return l=new Oj({challenge:f}),g.A(E,kl(l.snapshot({}),function(){return Promise.reject(new el(15,"MDA:Timeout"))}),9);
case 9:return m=E.u,k.done(),g.A(E,kl(a.logger.jG("g",e,Lda(a.aA,m)),function(){return Promise.reject(new el(10,"BWB:Timeout"))}),10);
case 10:n=E.u;p=new Jj(a.logger,"i");if(Ce(n,3))var I=vea(a,n,l);else l.dispose(),I=new il(dk(n),1E3*Ce(n,2));q=I;p.done();v=t=void 0;null==(v=(t=a).rO)||v.call(t,dk(n));return E.return(q);case 5:x=g.xa(E);b=x instanceof el?x:x instanceof Hj?new el(11,x):new el(12,x);a.logger.jx(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Hj)switch(x.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(!I)throw b;return g.A(E,gl(d.getValue()),11);case 11:g.Mi(d);case 3:e++;
E.Za(2);break;case 4:throw b;}})};
uea=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.va(f,4),g.A(f,wea(a),6);case 6:b=f.u;g.wa(f,5);break;case 4:if(c=g.xa(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.jx(13);f.Za(0);break}else a.logger.jx(14),b=new jl(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})};
xea=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.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
yea=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.Hh(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=Nh(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=bba(g.Rg("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Hh(a)+".js"});g.Rj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
zea=function(a){var b={};g.wc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
oaa(a,function(c){return null===b[c.event]})};
ll=function(){this.od=0;this.j=!1;this.u=-1;this.Aq=!1;this.Dh=0};
ml=function(){this.Vc=null;this.j=!1};
nl=function(a){ml.call(this);this.u=a};
ol=function(){ml.call(this)};
pl=function(){ml.call(this)};
ql=function(){this.j={};this.u=!0;this.B={}};
rl=function(a,b,c){a.j[b]||(a.j[b]=new nl(c));return a.j[b]};
Aea=function(a){a.j.queryid||(a.j.queryid=new pl)};
sl=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
tl=function(a,b){if(g.Yf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
ul=function(a){var b={},c=g.Nf(a.j,function(d){return d.j});
g.Mf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Vc?String(d.Vc):"";0<d.length&&(b[e]=d)},a);
return b};
Bea=function(a){a=ul(a);var b=[];g.Mf(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Dea=function(a){rl(a,"od",Cea);rl(a,"opac",vl).j=!0;rl(a,"sbeos",vl).j=!0;rl(a,"prf",vl).j=!0;rl(a,"mwt",vl).j=!0;rl(a,"iogeo",vl)};
Eea=function(){this.j=this.Ro=null};
wl=function(){};
yl=function(){if(!xl())throw Error();};
xl=function(){return!(!zl||!zl.performance)};
Gea=function(a){return a?a.passive&&Fea()?a:a.capture||!1:!1};
Al=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Gea(d)),!0):!1};
Hea=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Gea(void 0))};
Bl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Iea=function(){};
Jea=function(){return Bb?Bb.mobile:!Cl()&&(Db("iPod")||Db("iPhone")||Db("Android")||Db("IEMobile"))};
Cl=function(){return Bb?!Bb.mobile&&(Db("iPad")||Db("Android")||Db("Silk")):Db("iPad")||Db("Android")&&!Db("Mobile")||Db("Silk")};
Dl=function(a){try{return!!a&&null!=a.location.href&&zc(a,"foo")}catch(b){return!1}};
El=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Lea=function(){var a=[];El(Kea,function(b){a.push(b)});
return a};
Nea=function(a){return(a=Mea.exec(a))&&a[0]||""};
Qea=function(){var a=Oea("IFRAME"),b={};g.wc(Pea(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Oea=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Rea=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Dl(a)&&(b=a);return b};
Vea=function(a){a=a||Fl();for(var b=new Sea(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Tea.test(f.url)&&(c=f);if(f.url&&!f.VF){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Uea(b,e,c)};
Fl=function(){var a=g.C,b=[],c=null;do{var d=a;if(Dl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Sea(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.C;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.VF=!0);return b};
Uea=function(a,b,c){this.j=a;this.u=b;this.B=c};
Sea=function(a,b){this.url=a;this.VF=!!b;this.depth=null};
Gl=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Hl=function(a,b){var c={};c[a]=b;return[c]};
Wea=function(a,b,c,d,e){var f=[];El(a,function(k,l){(k=Il(k,b,c,d,e))&&f.push(l+"="+k)});
return f.join(b)};
Il=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=[],k=0;k<a.length;k++)f.push(Il(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Wea(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Yea=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Xea(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q});
c=null;for(var e="",f=0;f<a.j.length;f++)for(var k=a.j[f],l=a.u[k],m=0;m<l.length;m++){if(!d){c=null==c?k:c;break}var n=Wea(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?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
Xea=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};
Jl=function(a,b){this.j=a;this.depth=b};
$ea=function(){function a(l,m){return null==l?m:l}
var b=Fl(),c=Math.max(b.length-1,0),d=Vea(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Jl([f.url,f.VF?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Jl([e.url,2],0));b.url&&b!=f&&k.push(new Jl([b.url,0],a(b.depth,c)));d=g.Kl(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=Nea(b.url))&&d.push([new Jl([e,1],a(b.depth,c))]);d.push([]);return g.Kl(d,function(l){return Zea(c,l)})};
Zea=function(a,b){g.Ll(b,function(e){return 0<=e.depth});
var c=Ml(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2);
d[0]=a;g.wc(b,function(e){return d[e.depth+1]=e.j});
return d};
afa=function(){var a=$ea();return g.Kl(a,function(b){return Il(b)})};
bfa=function(a){zl.google_image_requests||(zl.google_image_requests=[]);var b=Oea("IMG",zl.document);b.src=a;zl.google_image_requests.push(b)};
Nl=function(a){var b="bf";if(a.bf&&a.hasOwnProperty(b))return a.bf;var c=new a;a.bf=c;a.hasOwnProperty(b);return c};
Ol=function(){this.u=new Iea;this.j=xl()?new yl:new wl};
cfa=function(){Pl();var a=zl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof zl.setInterval&&"function"===typeof zl.clearInterval&&"function"===typeof zl.setTimeout&&"function"===typeof zl.clearTimeout)};
dfa=function(){Pl();return afa()};
efa=function(){};
Pl=function(){return Nl(efa).getContext()};
ffa=function(a){g.F.call(this,a)};
ifa=function(){return[1,gfa,2,Ql,3,Ql,4,Ql,5,hfa]};
jfa=function(a){this.B=a;this.j=-1;this.u=this.C=0};
Rl=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(-1<a.j)return b.apply(null,g.u(c));try{return a.j=a.B.j.now(),b.apply(null,g.u(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
kfa=function(a,b){this.u=a;this.B=b;this.j=new jfa(a)};
lfa=function(){};
qfa=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.featureSet=new ql;rl(this.featureSet,"mv",mfa).j=!0;rl(this.featureSet,"omid",vl);rl(this.featureSet,"epoh",vl).j=!0;rl(this.featureSet,"epph",vl).j=!0;rl(this.featureSet,"umt",vl).j=!0;rl(this.featureSet,"phel",vl).j=!0;rl(this.featureSet,"phell",vl).j=!0;rl(this.featureSet,"oseid",nfa).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new ol);a.j.sloi.j=!0;rl(this.featureSet,"mm",ofa);rl(this.featureSet,"ovms",pfa).j=!0;rl(this.featureSet,
"xdi",vl).j=!0;rl(this.featureSet,"amp",vl).j=!0;rl(this.featureSet,"prf",vl).j=!0;rl(this.featureSet,"gtx",vl).j=!0;rl(this.featureSet,"mvp_lv",vl).j=!0;rl(this.featureSet,"ssmol",vl).j=!0;this.j=new kfa(Pl(),this.featureSet);this.C=!1;this.flags=new lfa};
Xl=function(){return Nl(qfa)};
Yl=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.j))try{if(c instanceof Gl)var f=c;else f=new Gl,El(c,function(l,m){var n=f,p=n.C++;l=Hl(m,l);n.j.push(p);n.u[p]=l});
var k=Yea(f,a.u,"/pagead/gen_204?id="+b+"&");k&&(Pl(),bfa(k))}catch(l){}};
rfa=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};
sfa=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Va()};
tfa=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
ufa=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
$l=function(){var a=window;this.events=[];this.u=a||g.C;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.j=Zl()||(null!=b?b:1>Math.random())};
vfa=function(a){a&&am&&Zl()&&(am.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),am.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
wfa=function(){var a=bm;this.j=cm;this.UL="jserror";this.YH=!0;this.ZD=null;this.u=this.mG;this.Sb=void 0===a?null:a};
xfa=function(a,b,c,d){return Rl(Xl().j.j,function(){try{if(a.Sb&&a.Sb.j){var e=a.Sb.start(b.toString(),3);var f=c();a.Sb.end(e)}else f=c()}catch(l){var k=a.YH;try{vfa(e),k=a.u(b,new dm(em(l)),void 0,d)}catch(m){a.mG(217,m)}if(!k)throw l;}return f})()};
gm=function(a,b,c){var d=fm;return Rl(Xl().j.j,function(){var e=g.Da.apply(0,arguments);return xfa(d,a,function(){return b.apply(void 0,e)},c)})};
em=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};
dm=function(a){rfa.call(this,Error(a),{message:a})};
yfa=function(){zl&&"undefined"!=typeof zl.google_measure_js_timing&&(zl.google_measure_js_timing||bm.disable())};
zfa=function(a){fm.ZD=function(b){g.wc(a,function(c){c(b)})}};
Afa=function(a,b){return xfa(fm,a,b,void 0)};
hm=function(a,b){return gm(a,b,void 0)};
im=function(a,b,c,d){fm.mG(a,b,c,d)};
jm=function(){return Date.now()-Bfa};
Cfa=function(){var a=Xl().B,b=0<=pm?jm()-pm:-1,c=qm?jm()-rm:-1,d=0<=sm?jm()-sm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];im(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
tm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
um=function(a){return a.right-a.left};
vm=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};
wm=function(a,b,c){b instanceof g.Ah?(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};
xm=function(a,b,c){var d=new tm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
ym=function(a,b,c,d,e,f,k,l){this.C=a;this.N=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=k;this.K=l};
Efa=function(a){var b=a!==a.top,c=a.top===Rea(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),Tf(Dfa,function(k){return"function"===typeof f[k]})||(e=1));
return{Tj:f,compatibility:e,UZ:d}};
Ffa=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Gfa=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ch(b.innerWidth,b.innerHeight)).round():Fba(b||window).round()}catch(d){return new g.Ch(-12245933,-12245933)}};
zm=function(a,b,c){try{a&&(b=b.top);var d=Gfa(a,b,void 0===c?!1:c),e=Hba(Nh(b.document).j);if(-12245933==d.width){var f=d.width;var k=new tm(f,f,f,f)}else k=new tm(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new tm(-12245933,-12245933,-12245933,-12245933)}};
g.Am=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Bm=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};
g.Dm=function(a,b,c){if("string"===typeof b)(b=Cm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Cm(c,d);f&&(c.style[f]=e)}};
Cm=function(a,b){var c=Hfa[b];if(!c){var d=yba(b);c=d;void 0===a.style[d]&&(d=(g.Gf?"Webkit":Em?"Moz":g.Nc?"ms":null)+Aba(d),void 0!==a.style[d]&&(c=d));Hfa[b]=c}return c};
g.Fm=function(a,b){var c=a.style[yba(b)];return"undefined"!==typeof c?c:a.style[Cm(a,b)]||""};
Gm=function(a,b){var c=Mh(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Hm=function(a,b){return Gm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Jm=function(a,b,c){if(b instanceof g.Ah){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Im(d,!1);a.style.top=g.Im(b,!1)};
Km=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Ifa=function(a){if(g.Nc&&!g.Gc(8))return a.offsetParent;var b=Mh(a),c=Hm(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=Hm(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.Lm=function(a){var b=Mh(a),c=new g.Ah(0,0);var d=b?Mh(b):document;d=!g.Nc||g.Gc(9)||"CSS1Compat"==Nh(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Km(a);b=Hba(Nh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Kfa=function(a,b){var c=new g.Ah(0,0),d=Th(Mh(a));if(!zc(d,"parent"))return c;do{var e=d==b?g.Lm(a):Jfa(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.Mm=function(a,b){a=Lfa(a);b=Lfa(b);return new g.Ah(a.x-b.x,a.y-b.y)};
Jfa=function(a){a=Km(a);return new g.Ah(a.left,a.top)};
Lfa=function(a){if(1==a.nodeType)return Jfa(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ah(a.clientX,a.clientY)};
g.Nm=function(a,b,c){if(b instanceof g.Ch)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Im(b,!0);a.style.height=g.Im(c,!0)};
g.Im=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Om=function(a){var b=Mfa;if("none"!=Hm(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};
Mfa=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Gf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Km(a),new g.Ch(a.right-a.left,a.bottom-a.top)):new g.Ch(b,c)};
g.Pm=function(a,b){a.style.display=b?"":"none"};
Qm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Nfa=function(a){return new tm(a.top,a.right,a.bottom,a.left)};
Ofa=function(a){var b=a.top||0,c=a.left||0;return new tm(b,c+(a.width||0),b+(a.height||0),c)};
Rm=function(a){return null!=a&&0<=a&&1>=a};
Pfa=function(){var a=g.Ab();return a?Sm("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return wb(a,b)})||wb(a,"OMI/")&&!wb(a,"XiaoMi/")?!0:wb(a,"Presto")&&wb(a,"Linux")&&!wb(a,"X11")&&!wb(a,"Android")&&!wb(a,"Mobi"):!1};
Qfa=function(){this.B=!Dl(zl.top);this.isMobileDevice=Cl()||Jea();var a=Fl();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Vi(a[a.length-1].url)||"":"";this.j=new tm(0,0,0,0);this.C=new g.Ch(0,0);this.D=new g.Ch(0,0);this.K=new tm(0,0,0,0);this.J=0;this.N=!1;this.u=!(!zl||!Efa(zl).Tj);this.update(zl)};
Rfa=function(a,b){b&&b.screen&&(a.C=new g.Ch(b.screen.width,b.screen.height))};
Sfa=function(a,b){var c=a.j?new g.Ch(um(a.j),a.j.getHeight()):new g.Ch(0,0);b=void 0===b?zl:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,k=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,q=l.offsetWidth;l.clientHeight!=p&&(m=k.scrollHeight,n=k.scrollWidth,p=k.offsetHeight,q=k.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.Ch(e,d)}catch(v){t=new g.Ch(-12245933,-12245933)}a.D=t};
Vm=function(){var a=Tm();if(0<a.J||a.N)return!0;a=Pl().u.isVisible();var b=0===Bl(Um);return a||b};
Tm=function(){return Nl(Qfa)};
Wm=function(a){this.B=a;this.u=0;this.j=null};
Xm=function(a,b,c){this.B=a;this.Ja=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new xm(-1,!0,this);this.j=this;this.N=b;this.Z=this.X=!1;this.ya="uk";this.xa=!1;this.J=!0};
Ym=function(a,b){g.cc(a.D,b)||(a.D.push(b),b.zt(a.j),b.Go(a.C),b.Fl()&&(a.X=!0))};
Tfa=function(a){a=a.j;a.sJ();a.rJ();var b=Tm();b.K=zm(!1,a.B,b.isMobileDevice);Sfa(Tm(),a.B);a.C.j=a.uM()};
Ufa=function(a){a.X=a.D.length?Sm(a.D,function(b){return b.Fl()}):!1};
Vfa=function(a){var b=g.jc(a.D);g.wc(b,function(c){c.Go(a.C)})};
Zm=function(a){var b=g.jc(a.D);g.wc(b,function(c){c.zt(a.j)});
a.j!=a||Vfa(a)};
$m=function(a,b,c,d){this.element=a;this.j=new tm(0,0,0,0);this.C=new tm(0,0,0,0);this.u=b;this.featureSet=c;this.ma=d;this.Z=!1;this.timestamp=-1;this.K=new ym(b.C,this.element,this.j,new tm(0,0,0,0),0,0,jm(),0)};
an=function(a){this.D=!1;this.j=a;this.C=function(){}};
Wfa=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.Vc=null==b?"":b};
Xfa=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Yfa=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.Vc<typeof b.Vc?!0:typeof a.Vc>typeof b.Vc?!1:a.Vc<b.Vc};
bn=function(){this.B=0;this.j=[];this.u=!1};
Zfa=function(a,b){(0,g.wc)(b.j,function(c){a.add(c.j,c.Vc,Xfa(c))})};
cn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;El(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
dn=function(a){var b=$fa;a.u&&(g.tc(a.j,function(c,d){return Yfa(d,c)?1:Yfa(c,d)?-1:0}),a.u=!1);
return Ml(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
$fa=function(a){var b=a.j;a=a.Vc;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.cc(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
aga=function(a){var b=void 0===b?!0:b;this.j=new bn;void 0!==a&&Zfa(this.j,a);b&&this.j.add("v",en,-16)};
cga=function(a){var b=[],c=[];g.Mf(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)};
dga=function(){if(en&&"unreleased"!==en)return en};
ega=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=dga();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Pl();bfa(b)};
fga=function(){this.j=0};
gga=function(a,b,c){(0,g.wc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),k=new bn;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.D);d=Nl(fga);k.add("i",d.j++);k.add("adk",e);cn(k,f);e=new aga(k);ega(e)}})};
fn=function(){this.u=this.B=this.C=this.j=0};
gn=function(a){this.u=a=void 0===a?hga:a;this.j=g.Kl(this.u,function(){return new fn})};
hn=function(a,b){return iga(a,function(c){return c.j},void 0===b?!0:b)};
kn=function(a,b){return jn(a,b,function(c){return c.j})};
jga=function(a,b){return iga(a,function(c){return c.B},void 0===b?!0:b)};
ln=function(a,b){return jn(a,b,function(c){return c.B})};
mn=function(a,b){return jn(a,b,function(c){return c.u})};
kga=function(a){g.wc(a.j,function(b){b.u=0})};
iga=function(a,b,c){a=g.Kl(a.j,function(d){return b(d)});
return c?a:lga(a)};
jn=function(a,b,c){var d=g.ac(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
lga=function(a){return g.Kl(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
nn=function(){this.u=new gn;this.Ja=new fn;this.ma=this.K=-1;this.Wa=1E3;this.Xa=new gn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ya=this.va=-1};
on=function(a,b){return jga(a.u,void 0===b?!0:b)};
pn=function(a){this.isValid=a};
qn=function(a){return new pn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
nga=function(a,b){b=void 0===b?mga:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof pn&&d.isValid(a))return new Qj(a,Tj)}};
rn=function(a,b,c,d){var e=void 0===e?!1:e;c=gm(d,c,void 0);Al(a,b,c,{capture:e})};
tn=function(a,b){b=sn(b);return 0===b?0:sn(a)/b};
sn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
oga=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.ai(a)||a){var d=Mh(a),e=d&&Th(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
pga=function(a,b,c){if(!a||!b)return!1;b=wm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Dl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Ffa())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Mh(c))&&b.defaultView&&b.defaultView.frameElement)&&oga(b,a);var d=a===c;a=!d&&a&&ei(a,function(e){return e===c});
return!(b||d||a)};
qga=function(a,b,c,d){return Tm().B?!1:0>=um(a)||0>=a.getHeight()?!0:c&&d?Afa(208,function(){return pga(a,b,c)}):!1};
un=function(a,b,c){g.G.call(this);this.position=rga.clone();this.dB=this.sA();this.iG=-2;this.j_=Date.now();this.hQ=-1;this.lastUpdateTime=b;this.VA=null;this.Uz=!1;this.lB=null;this.opacity=-1;this.requestSource=c;this.oG=function(){};
this.uQ=function(){};
this.dh=new Eea;this.dh.Ro=a;this.dh.j=a;this.Oo=!1;this.fq={yG:null,wG:null};this.PP=!0;this.yy=null;this.Ct=this.wV=!1;Xl().J++;this.Gf=this.mF();this.eQ=-1;this.je=null;this.tV=!1;this.featureSet=new ql;Dea(this.featureSet);sga(this);1==this.requestSource?sl(this.featureSet,"od",1):sl(this.featureSet,"od",0)};
sga=function(a){a=a.dh.Ro;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:tga&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+zba()):!!a.getAttribute("data-"+zba());b&&(Tm().u=!0)};
vn=function(a,b){b!=a.Ct&&(a.Ct=b,a=Tm(),b?a.J++:0<a.J&&a.J--)};
uga=function(a,b){if(a.je){if(b.getName()===a.je.getName())return;a.je.dispose();a.je=null}b=b.create(a.dh.j,a.featureSet,a.Fl());if(b=null!=b&&b.aD()?b:null)a.je=b};
vga=function(a,b,c){if(!a.VA||-1==a.lastUpdateTime||-1===b.u||-1===a.VA.u)return 0;a=b.u-a.VA.u;return a>c?0:a};
wga=function(a,b,c){if(a.je){a.je.Jn();var d=a.je.K,e=d.C,f=e.j;if(null!=d.J){var k=d.B;a.lB=new g.Ah(k.left-f.left,k.top-f.top)}f=a.fC()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.pM(d);a.VA=d;a.Ka(f,b,c,!1,k,e,d.K)}};
xga=function(a){if(a.Uz&&a.yy){var b=1==tl(a.featureSet,"od"),c=Tm().j,d=a.yy,e=a.je?a.je.getName():"ns",f=new g.Ch(um(c),c.getHeight());c=a.fC();a={XZ:e,lB:a.lB,L_:f,fC:c,od:a.Gf.od,F_:b};if(b=d.u){b.Jn();e=b.K;f=e.C.j;var k=null,l=null;null!=e.J&&f&&(k=e.B,k=new g.Ah(k.left-f.left,k.top-f.top),l=new g.Ch(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={XZ:b.getName(),lB:k,L_:l,fC:c,F_:!1,od:e}}else c=null;c&&gga(d,a,c)}};
yga=function(a,b,c){b&&(a.oG=b);c&&(a.uQ=c)};
g.wn=function(){};
g.xn=function(a){return{value:a,done:!1}};
g.zn=function(a){if(a.done)throw g.yn;return a.value};
zga=function(){this.C=this.j=this.B=this.u=this.D=0};
Aga=function(a){var b={};var c=g.Va()-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.j)&&(b.pns=a);return b};
Bga=function(){ll.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
An=function(a){return Rm(a.volume)&&0<a.volume};
Bn=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 Cga(f,b,c)}};
Cn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Dga=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}};
Cga=function(a,b,c){return void 0===c||c?g.Dn(a,function(d,e){return g.cc(b,e)}):g.Kl(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(k,l){return k+l},0)})};
En=function(){this.u=this.j=""};
Ega=function(){};
Fn=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.jg(c,a);return dn(cn(new bn,c))};
Fga=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.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
Gn=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
Gga=function(a){var b=g.Xf(a.u),c=0,d;for(d in a.j)g.cc(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Hga=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
Hn=function(){this.j=this.u=0};
In=function(){nn.call(this);this.B=new fn;this.Ia=this.X=this.xa=0;this.N=-1;this.Ya=new fn;this.D=new fn;this.j=new gn;this.J=this.C=-1;this.Z=new fn;this.Wa=2E3;this.Ea=new Hn;this.Qa=new Hn;this.Sa=new Hn};
Jn=function(a,b,c){var d=a.Ia;qm||c||-1==a.N||(d+=b-a.N);return d};
Iga=function(){this.u=!1};
Xn=function(a,b){this.u=!1;this.B=a;this.X=b;this.C=0};
Yn=function(a,b){Xn.call(this,a,b);this.K=[]};
Zn=function(a,b,c,d){$m.call(this,a,b,c,d)};
$n=function(a,b,c){$m.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
ao=function(a){return[a.top,a.left,a.bottom,a.right]};
bo=function(a,b,c,d,e,f,k){f=void 0===f?null:f;k=void 0===k?[]:k;un.call(this,b,c,d);this.jH=e;this.HE=0;this.Jf={};this.xf=new Fga;this.HQ={};this.Vf="";this.Qa=null;this.jb=!1;this.j=[];this.Lq=f;this.J=k;this.C=null;this.B=-1;this.Ia=this.X=void 0;this.ma=this.Z=0;this.ya=-1;this.Xa=this.Wa=!1;this.xa=this.N=this.u=this.Ou=this.ib=0;new gn;this.Ea=this.Ja=0;this.Sa=-1;this.Kg=0;this.K=g.Ig;this.va=[this.sA()];this.qb=2;this.Er={};this.Er.pause="p";this.Er.resume="r";this.Er.skip="s";this.Er.mute=
"m";this.Er.unmute="um";this.Er.exitfullscreen="ef";this.D=null;this.Ya=!1};
co=function(a){0!=a.Kg&&(a.Kg=3)};
eo=function(a){return void 0===a?a:Number(a)?Qm(a,3):0};
fo=function(a,b){return a.va[null!=b&&b<a.va.length?b:a.va.length-1]};
Jga=function(a){var b=!!tl(Xl().featureSet,"umt");return a.X||!b&&!a.Ia?0:1};
Kga=function(a,b){a.Im()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.ma+=b,a.Ea+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.Ja+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Sa&&0<d&&(a.Sa=0<=sm?jm()-sm:-1);a.Z=c;return e};
Lga=function(a,b){Sm(a.J,function(c){return c.B==b.B})||a.J.push(b)};
Mga=function(a){var b=kn(a.Fg().j,1);return go(a,b)};
go=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.ya?b>=a.ya:!1:!1};
Nga=function(a){var b=Qm(a.Gf.od,2),c=a.xf.B,d=a.Gf,e=fo(a),f=eo(e.C),k=eo(e.J),l=eo(d.volume),m=Qm(e.K,2),n=Qm(e.ma,2),p=Qm(d.od,2),q=Qm(e.va,2),t=Qm(e.ya,2);d=Qm(d.Dh,2);a=a.zo().clone();a.round();e=on(e,!1);return{K_:b,Ww:c,eB:f,aB:k,Tv:l,fB:m,bB:n,od:p,gB:q,cB:t,Dh:d,position:a,jB:e}};
Pga=function(a,b){Oga(a.j,b,function(){return{K_:0,Ww:void 0,eB:-1,aB:-1,Tv:-1,fB:-1,bB:-1,od:-1,gB:-1,cB:-1,Dh:-1,position:void 0,jB:[]}});
a.j[b]=Nga(a)};
Oga=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
io=function(a,b,c){var d=a.HQ[b];if(null!=d)return d;d=Qga(a,b);var e=$f(ho,function(f){return f==b});
a=Rga(a,d,d,c,Sga[ho[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
jo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Rga=function(a,b,c,d,e){if(a.Oo)return{"if":0,vs:0};var f=a.zo().clone();f.round();var k=Tm(),l=Xl(),m=a.Fg(),n=a.je?a.je.getName():"ns",p={};p["if"]=k.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.j_;p.p=[f.top,f.left,f.bottom,f.right];p.tos=hn(m.u,!1);p.mtos=on(m);p.mcvt=m.Ja.B;p.ps=void 0;f=Jn(m,jm(),a.Im());p.vht=f;p.mut=m.Ya.B;p.a=eo(a.Gf.volume);p.mv=eo(m.J);p.fs=a.Ct?1:0;p.ft=m.Z.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=hn(m.j);p.ssb=hn(m.Xa,!1);p.amtos=jga(m.j,!1);p.uac=a.ib;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=go(a,m.B.j,!0)?1:0;p.efpf=a.qb;if("gsv"==n||"nis"==n)n=a.je,0<n.D&&(p.nnut=n.D);p.tcm=Jga(a);p.nmt=a.Ja;p.bt=a.Ea;p.pst=a.Sa;p.vpaid=a.X;p.dur=a.B;p.vmtime=a.Z;p.is=a.xf.B;1<=a.j.length&&(p.i0=a.j[0].Ww,p.a0=[a.j[0].Tv],p.c0=[a.j[0].od],p.ss0=[a.j[0].Dh],n=a.j[0].position,p.p0=n?ao(n):void 0);2<=a.j.length&&(p.i1=a.j[1].Ww,p.a1=jo(a.j[1].eB,a.j[1].Tv,a.j[1].aB),p.c1=jo(a.j[1].fB,a.j[1].od,a.j[1].bB),p.ss1=jo(a.j[1].gB,a.j[1].Dh,a.j[1].cB),n=a.j[1].position,p.p1=n?ao(n):
void 0,p.mtos1=a.j[1].jB);3<=a.j.length&&(p.i2=a.j[2].Ww,p.a2=jo(a.j[2].eB,a.j[2].Tv,a.j[2].aB),p.c2=jo(a.j[2].fB,a.j[2].od,a.j[2].bB),p.ss2=jo(a.j[2].gB,a.j[2].Dh,a.j[2].cB),n=a.j[2].position,p.p2=n?ao(n):void 0,p.mtos2=a.j[2].jB);4<=a.j.length&&(p.i3=a.j[3].Ww,p.a3=jo(a.j[3].eB,a.j[3].Tv,a.j[3].aB),p.c3=jo(a.j[3].fB,a.j[3].od,a.j[3].bB),p.ss3=jo(a.j[3].gB,a.j[3].Dh,a.j[3].cB),n=a.j[3].position,p.p3=n?ao(n):void 0,p.mtos3=a.j[3].jB);p.cs=Hga(a.xf);b&&(p.ic=Gga(a.xf),p.dvpt=m.B.u,p.dvs=mn(m.u,.5),
p.dfvs=mn(m.u,1),p.davs=mn(m.j,.5),p.dafvs=mn(m.j,1),c&&(m.B.u=0,kga(m.u),kga(m.j)),a.Jm()&&(p.dtos=m.xa,p.dav=m.X,p.dtoss=a.HE+1,c&&(m.xa=0,m.X=0,a.HE++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[k.D.width,k.D.height];p.bs=[um(k.j),k.j.getHeight()];p.scs=[k.C.width,k.C.height];p.dom=k.domain;a.Ou&&(p.vds=a.Ou);if(0<a.J.length||a.Lq)b=g.jc(a.J),a.Lq&&b.push(a.Lq),p.pings=g.Kl(b,function(q){return q.toString()});
b=g.Kl(g.Dn(a.J,function(q){return q.J()}),function(q){return q.getId()});
paa(b);p.ces=b;a.u&&(p.vmer=a.u);a.N&&(p.vmmk=a.N);a.xa&&(p.vmiec=a.xa);p.avms=a.je?a.je.getName():"ns";a.je&&g.jg(p,a.je.uo());d?(p.c=Qm(a.Gf.od,2),p.ss=Qm(a.Gf.Dh,2)):p.tth=jm()-Tga;p.mc=Qm(m.ma,2);p.nc=Qm(m.K,2);p.mv=eo(m.J);p.nv=eo(m.C);p.lte=Qm(a.iG,2);d=fo(a,e);on(m);p.qmtos=on(d);p.qnc=Qm(d.K,2);p.qmv=eo(d.J);p.qnv=eo(d.C);p.qas=0<d.C?1:0;p.qi=a.Vf;p.avms||(p.avms="geo");p.psm=m.Ea.j;p.psv=m.Ea.getValue();p.psfv=m.Qa.getValue();p.psa=m.Sa.getValue();l=Bea(l.featureSet);l.length&&(p.veid=l);
a.D&&g.jg(p,Aga(a.D));p.avas=a.kA();p.vs=a.vM();return p};
Qga=function(a,b){if(g.cc(Uga,b))return!0;var c=a.Jf[b];return void 0!==c?(a.Jf[b]=!0,!c):!1};
Wga=function(){this.j={};var a=Th();ko(this,a,document);var b=Vga();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)ko(this,c,c.document);ko(this,a.top,a.top.document)}}catch(d){}};
Vga=function(){var a=document.documentElement;try{if(!Dl(Th().top))return"2";var b=[],c=Th(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"}};
ko=function(a,b,c){rn(c,"mousedown",function(){return Xga(a)},301);
rn(b,"scroll",function(){return Yga(a)},302);
rn(c,"touchmove",function(){return Zga(a)},303);
rn(c,"mousemove",function(){return $ga(a)},304);
rn(c,"keydown",function(){return aha(a)},305)};
Xga=function(a){g.Mf(a.j,function(b){1E5<b.B||++b.B})};
Yga=function(a){g.Mf(a.j,function(b){1E5<b.j||++b.j})};
Zga=function(a){g.Mf(a.j,function(b){1E5<b.j||++b.j})};
aha=function(a){g.Mf(a.j,function(b){1E5<b.u||++b.u})};
$ga=function(a){g.Mf(a.j,function(b){1E5<b.C||++b.C})};
bha=function(){this.j=[];this.u=[]};
lo=function(a,b){return g.$b(a.j,function(c){return c.Vf==b})};
cha=function(a,b){return b?g.$b(a.j,function(c){return c.dh.Ro==b}):null};
dha=function(a,b){return g.$b(a.u,function(c){return 2==c.fl()&&c.Vf==b})};
no=function(){var a=mo;return 0==a.j.length?a.u:0==a.u.length?a.j:g.ic(a.u,a.j)};
eha=function(a,b){a=1==b.fl()?a.j:a.u;var c=Zb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.je&&b.je.ev(),b.dispose(),!0):!1};
fha=function(a){var b=mo;if(eha(b,a)){switch(a.fl()){case 0:var c=function(){return null};
case 2:c=function(){return dha(b,a.Vf)};
break;case 1:c=function(){return lo(b,a.Vf)}}for(var d=c();d;d=c())eha(b,d)}};
gha=function(a,b){var c=mo;a=g.Dn(a,(void 0===b?0:b)?function(d){return!lo(c,d.Vf)}:function(d){return!cha(c,d.dh.Ro)});
c.j.push.apply(c.j,g.u(a))};
hha=function(a){var b=mo,c=[];g.wc(a,function(d){Sm(b.j,function(e){return e.dh.Ro===d.dh.Ro&&e.Vf===d.Vf})||(b.j.push(d),c.push(d))})};
oo=function(){this.j=this.u=null};
iha=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.$b(a.u,function(d){return null!=d&&d.tJ()});
a.j&&(a.j.init(c)?Tfa(a.j.j):b(a.j.j.Ys(),a.j));return null!=a.j};
po=function(a){a=jha(a);an.call(this,a.length?a[a.length-1]:new Xm(zl,0));this.B=a;this.u=null};
jha=function(a){if(!a.length)return[];a=(0,g.Dn)(a,function(c){return null!=c&&c.bv()});
for(var b=1;b<a.length;b++)Ym(a[b-1],a[b]);return a};
qo=function(a,b,c,d){$m.call(this,a,b,c,d);this.X=this.N=this.D=this.J=this.B=null};
ro=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
lha=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=Xl().j.j;a.B=new c.IntersectionObserver(Rl(d,function(e){return so(a,e)}),kha);
d=Rl(d,function(){a.B.unobserve(b);a.B.observe(b);so(a,ro(a))});
c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);so(a,ro(a));return!0};
so=function(a,b){try{if(b.length){a.N||(a.N=jm());var c=mha(b),d=Kfa(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new tm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=Nfa(c.intersectionRect);a.C=wm(k,a.j.left-k.left,a.j.top-k.top)}}catch(l){a.ev(),im(299,l)}};
mha=function(a){return Ml(a,function(b,c){return b.time>c.time?b:c},a[0])};
to=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))};
uo=function(){var a=nha();Xm.call(this,zl.top,a,"geo")};
nha=function(){Xl();var a=Tm();return a.B||a.u?0:2};
oha=function(){};
vo=function(){this.done=!1;this.j={sT:0,UK:0,Gha:0,PL:0,NF:-1,VT:0,UT:0,XT:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Wm(this)};
yo=function(){var a=xo;a.J||(a.J=!0,pha(a,function(){return a.C.apply(a,g.u(g.Da.apply(0,arguments)))}),a.C())};
qha=function(){Nl(oha);var a=Nl(oo);null!=a.j&&a.j.j?Tfa(a.j.j):Tm().update(zl)};
zo=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{qha();var d=jm(),e=Xl();e.D=d;if(null!=Nl(oo).j)for(e=0;e<b.length;e++)wga(b[e],d,c);else Yl(cm,"",{strategy_not_selected:1,bin:e.u},!0,void 0);for(d=0;d<b.length;d++)xga(b[d]);++a.j.PL}finally{c?g.wc(b,function(f){f.Gf.od=0}):a.u.schedule()}}};
pha=function(a,b){if(!a.D){b=gm(142,b,void 0);Pl();var c;Um.visibilityState?c="visibilitychange":Um.mozVisibilityState?c="mozvisibilitychange":Um.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Al(Um,c,b,{capture:!1})&&(a.D=b)}};
rha=function(){var a=Nl(oo);if(null!=a.j){var b=a.j;g.wc(no(),function(c){return uga(c,b)})}};
sha=function(a,b){a=a.K;qm&&(a+=b-rm);return a};
tha=function(a){var b=xo;a=void 0===a?function(){return{}}:a;
fm.UL="av-js";cm.j=.01;zfa([function(c){var d=Xl(),e={};e=(e.bin=d.u,e.type="error",e);d=ul(d.featureSet);if(!b.B){var f=zl.document,k=0<=pm?jm()-pm:-1,l=jm();-1==b.j.NF&&(k=l);var m=Tm(),n=Xl(),p=ul(n.featureSet),q=no();try{if(0<q.length){var t=m.j;t&&(p.bs=[um(t),t.getHeight()]);var v=m.D;v&&(p.ps=[v.width,v.height]);zl.screen&&(p.scs=[zl.screen.width,zl.screen.height])}else p.url=encodeURIComponent(zl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=pm;p.bin=n.u;void 0!==zl.google_osd_load_pub_page_exp&&(p.olpp=zl.google_osd_load_pub_page_exp);p.deb=[1,b.j.sT,b.j.UK,b.j.PL,b.j.NF,0,b.u.u,b.j.VT,b.j.UT,b.j.XT].join("-");p.tvt=sha(b,l);m.u&&(p.inapp=1);if(null!==zl&&zl!=zl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(zl.location.href.substring(0,512)));var x=m.K;p.is=[um(x),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.gg(b.B);v=Xl().j;1==tl(v.B,"prf")?(x=new ffa,f=v.j,k=0,-1<f.j&&(k=f.B.j.now()-f.j),x=pe(x,1,f.C+k,0),f=
v.j,x=pe(x,5,-1<f.j?f.u+1:f.u,0),x=pe(x,2,v.u.j.B(),0),x=pe(x,3,v.u.j.u(),0),v=pe(x,4,v.u.j.j(),0),x={},v=(x.pf=g.Jc(g.$e(v,ifa)),x)):v={};g.jg(t,v);g.jg(c,e,d,t,a());if(e=dga())d={},g.jg(c,(d.v=encodeURIComponent(e),d))}])};
vha=function(){var a=uha||zl;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("&")};
Ao=function(){var a="youtube.player.web_20220320_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220320_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220320_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220320_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20220320_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
wha=function(){return"av.default_js".includes("ima_html5_sdk")?{Tk:"ima",Wk:null}:"av.default_js".includes("ima_native_sdk")?{Tk:"nima",Wk:null}:"av.default_js".includes("admob-native-video-javascript")?{Tk:"an",Wk:null}:"youtube.player.web_20220320_00_RC00".includes("cast_js_sdk")?{Tk:"cast",Wk:Ao()}:"youtube.player.web_20220320_00_RC00".includes("youtube.player.web")?{Tk:"yw",Wk:Ao()}:"youtube.player.web_20220320_00_RC00".includes("outstream_web_client")?{Tk:"out",Wk:Ao()}:"youtube.player.web_20220320_00_RC00".includes("drx_rewarded_web")?
{Tk:"r",Wk:Ao()}:"youtube.player.web_20220320_00_RC00".includes("gam_native_web_video")?{Tk:"n",Wk:Ao()}:"youtube.player.web_20220320_00_RC00".includes("admob_interstitial_video")?{Tk:"int",Wk:Ao()}:{Tk:"j",Wk:null}};
Do=function(a,b){var c={sv:"922"};null!==Bo&&(c.v=Bo);c.cb=xha;c.nas=mo.j.length;c.msg=a;void 0!==b&&(a=yha(b))&&(c.e=Co[a]);return c};
Eo=function(a){return ib(a,"custom_metric_viewable")};
yha=function(a){var b=Eo(a)?"custom_metric_viewable":a.toLowerCase();return $f(ho,function(c){return c==b})};
zha=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
Cha=function(a){try{var b=a.split(",");return b.length>g.Xf(Aha).length?null:Ml(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Bha[d[0]]||!Bha[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Dha=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?ln(b.j,a.j):ln(b.u,a.j);case "tos":return a.u?kn(b.j,a.j):kn(b.u,a.j)}return 0};
Fo=function(a,b,c,d){Xn.call(this,b,d);this.K=a;this.N=c};
Eha=function(){};
Go=function(){};
Ho=function(){};
Io=function(a){Xn.call(this,"fully_viewable_audible_half_duration_impression",a)};
Jo=function(a){this.j=a};
Ko=function(a,b){Xn.call(this,a,b)};
Lo=function(a){Yn.call(this,"measurable_impression",a)};
Mo=function(){Jo.apply(this,arguments)};
No=function(a,b,c){$n.call(this,a,b,c)};
Oo=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))};
Po=function(a,b,c){$n.call(this,a,b,c)};
Qo=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))};
Ro=function(){Xm.call(this,zl,2,"mraid");this.Ea=0;this.ma=this.va=!1;this.K=null;this.u=Efa(this.B);this.C.j=new tm(0,0,0,0);this.Ia=!1};
So=function(a,b,c){a.kp("addEventListener",b,c)};
Iha=function(a){Xl().C=!!a.kp("isViewable");So(a,"viewableChange",Fha);"loading"===a.kp("getState")?So(a,"ready",Gha):Hha(a)};
Hha=function(a){"string"===typeof a.u.Tj.AFMA_LIDAR?(a.va=!0,Jha(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))};
Jha=function(a){a.ma=!1;var b=1==tl(Xl().featureSet,"rmmt"),c=!!a.kp("isViewable");(b?!c:1)&&Pl().setTimeout(hm(524,function(){a.ma||(Kha(a),im(540,Error()),a.K="mt",a.fail("w"))}),500);
Lha(a);So(a,a.u.Tj.AFMA_LIDAR,Mha)};
Lha=function(a){var b=1==tl(Xl().featureSet,"sneio"),c=void 0!==a.u.Tj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Tj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Tj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Tj.AFMA_LIDAR_EXP_1=!b)};
Kha=function(a){a.kp("removeEventListener",a.u.Tj.AFMA_LIDAR,Mha);a.va=!1};
Nha=function(a,b){if("loading"===a.kp("getState"))return new g.Ch(-1,-1);b=a.kp(b);if(!b)return new g.Ch(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Ch(-1,-1):new g.Ch(a,b)};
Gha=function(){try{var a=Nl(Ro);a.kp("removeEventListener","ready",Gha);Hha(a)}catch(b){im(541,b)}};
Mha=function(a,b){try{var c=Nl(Ro);c.ma=!0;var d=a?new tm(a.y,a.x+a.width,a.y+a.height,a.x):new tm(0,0,0,0);var e=jm(),f=Vm();var k=new xm(e,f,c);k.j=d;k.volume=b;c.Go(k)}catch(l){im(542,l)}};
Fha=function(a){var b=Xl(),c=Nl(Ro);a&&!b.C&&(b.C=!0,c.Ia=!0,c.K&&c.fail("w",!0))};
To=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.eV,a.firstquartile=this.ZU,a.midpoint=this.bV,a.thirdquartile=this.fV,a.complete=this.XU,a.pause=this.iH,a.resume=this.AP,a.skip=this.dV,a.viewable_impression=this.il,a.mute=this.Ju,a.unmute=this.Ju,a.fullscreen=this.aV,a.exitfullscreen=this.YU,a.fully_viewable_audible_half_duration_impression=this.il,a.measurable_impression=this.il,a.abandon=this.iH,a.engagedview=this.il,a.impression=this.il,a.creativeview=this.il,
a.progress=this.Ju,a.custom_metric_viewable=this.il,a.bufferstart=this.iH,a.bufferfinish=this.AP,a.audio_measurable=this.il,a.audio_audible=this.il,a);a={};this.N=(a.overlay_resize=this.cV,a.abandon=this.DF,a.close=this.DF,a.collapse=this.DF,a.overlay_unmeasurable_impression=function(b){return io(b,"overlay_unmeasurable_impression",Vm())},a.overlay_viewable_immediate_impression=function(b){return io(b,"overlay_viewable_immediate_impression",Vm())},a.overlay_unviewable_impression=function(b){return io(b,
"overlay_unviewable_impression",Vm())},a.overlay_viewable_end_of_session_impression=function(b){return io(b,"overlay_viewable_end_of_session_impression",Vm())},a);
Xl().u=3;Oha(this);this.B=!1};
Uo=function(a,b,c,d){b=a.Xx(null,d,!0,b);b.C=c;gha([b],a.B);return b};
Pha=function(a,b,c){zea(b);var d=a.j;g.wc(b,function(e){var f=g.Kl(e.criteria,function(k){var l=Cha(k);if(null==l)k=null;else if(k=new zha,null!=l.visible&&(k.j=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=lb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.B=l,k.C=-1):(k.B=-1,k.C=l);k.D=void 0===m?"tos":m}return k});
Sm(f,function(k){return null==k})||Lga(c,new Fo(e.id,e.event,f,d))})};
Qha=function(){var a=[],b=Xl();a.push(Nl(uo));tl(b.featureSet,"mvp_lv")&&a.push(Nl(Ro));b=[new Oo,new Qo];b.push(new po(a));b.push(new to(zl));return b};
Rha=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=jm(),c=Xl(),d=Tm();pm=b;c.B=79463069;"o"!==a.u&&(uha=Rea(zl));if(cfa()){xo.j.UK=0;xo.j.NF=jm()-b;var e=Qha(),f=Nl(oo);f.u=e;iha(f,function(){Vo()})?xo.done||(rha(),Ym(f.j.j,a),yo()):d.B?Vo():yo()}else Wo=!0}catch(k){throw mo.reset(),k;
}}};
Yo=function(a){xo.u.cancel();Xo=a;xo.done=!0};
Zo=function(a){if(a.u)return a.u;var b=Nl(oo).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
$o=function(a,b,c){if(null==a.j)return b.Ou|=4,!1;a=Sha(a.j,c,b);b.Ou|=a;return 0==a};
Vo=function(){var a=[new to(zl)],b=Nl(oo);b.u=a;iha(b,function(){Yo("i")})?xo.done||(rha(),yo()):Yo("i")};
Tha=function(a,b){if(!a.jb){var c=io(a,"start",Vm());c=a.jH.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="922";null!==Bo&&(d.v=Bo);Wi(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=vha();Wi(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+dn(cn(new bn,d));ega(b);a.jb=!0}};
ap=function(a,b,c){zo(xo,[a],!Vm());Pga(a,c);4!=c&&Oga(a.va,c,a.sA);return io(a,b,Vm())};
Oha=function(a){tha(function(){var b=Uha();null!=a.u&&(b.sdk=a.u);var c=Nl(oo);null!=c.j&&(b.avms=c.j.getName());return b})};
Vha=function(a,b,c,d){if(a.B)var e=lo(mo,b);else e=cha(mo,c),null!==e&&e.Vf!==b&&(a.jw(e),e=null);e||(b=a.Xx(c,jm(),!1,b),0==mo.u.length&&(Xl().B=79463069),hha([b]),e=b,e.C=Zo(a),d&&(e.Qa=d));return e};
Wha=function(a){g.wc(mo.j,function(b){3==b.Kg&&a.jw(b)})};
Xha=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Uha=function(){var a=Tm(),b={},c={},d={};return Object.assign({},(b.sv="922",b),null!==Bo&&(c.v=Bo,c),(d["if"]=a.B?"1":"0",d.nas=String(mo.j.length),d))};
bp=function(a){Xn.call(this,"audio_audible",a)};
cp=function(a){Yn.call(this,"audio_measurable",a)};
dp=function(){Jo.apply(this,arguments)};
ep=function(){};
Yha=function(a){this.j=a};
Sha=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Bo&&(d.v=Bo,d),(e.sv="922",e.cb=xha,e.e=Zha(b),e));e=io(c,b,Vm());g.jg(d,e);c.HQ[b]=e;d=2==c.fl()?cga(d).join("&"):c.jH.j(d).j;try{return a(c.Vf,d,b),0}catch(f){return 2}}else return 1};
Zha=function(a){var b=Eo(a)?"custom_metric_viewable":a;a=$f(ho,function(c){return c==b});
return Co[a]};
fp=function(){To.call(this);this.D=null;this.C=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
$ha=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Pha(a,c,b)};
aia=function(a,b,c){var d=lo(mo,b);d||(d=c.opt_nativeTime||-1,d=Uo(a,b,Zo(a),d),c.opt_osdId&&(d.Qa=c.opt_osdId));return d};
bia=function(a,b,c){var d=lo(mo,b);d||(d=Uo(a,b,"n",c.opt_nativeTime||-1));return d};
cia=function(a,b){var c=lo(mo,b);c||(c=Uo(a,b,"h",-1));return c};
dia=function(a){Xl();switch(Zo(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};
gia=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.jg(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.xA(b,c);c=f?f.jH:a.EE();if(e.opt_bounds)return c.j(Do("ol",d));if(void 0!==d)if(void 0!==yha(d))if(Wo)b=Do("ue",d);else if(Rha(a),"i"==Xo)b=Do("i",d),b["if"]=0;else if(b=a.xA(b,e))if(a.B&&3==b.Kg)b="stopped";else{b:{"i"==Xo&&(b.Oo=!0,a.NH());f=e.opt_fullscreen;void 0!==f&&vn(b,!!f);var k;if(f=!Tm().u)(f=wb(g.Ab(),"CrKey")||wb(g.Ab(),"PlayStation")||wb(g.Ab(),"Roku")||Pfa()||wb(g.Ab(),"Xbox"))||
(f=g.Ab(),f=wb(f,"AppleTV")||wb(f,"Apple TV")||wb(f,"CFNetwork")||wb(f,"tvOS")),f||(f=g.Ab(),f=wb(f,"sdk_google_atv_x86")||wb(f,"Android TV")),f=!f;f&&(Pl(),f=0===Bl(Um));if(k=f){switch(b.fl()){case 1:Tha(b,"pv");break;case 2:a.zH(b)}Yo("pv")}f=d.toLowerCase();if(k=!k)k=tl(Xl().featureSet,"ssmol")&&"loaded"===f?!1:g.cc(eia,f);if(k&&0==b.Kg){"i"!=Xo&&(xo.done=!1);k=void 0!==e?e.opt_nativeTime:void 0;sm=k="number"===typeof k?k:jm();b.Uz=!0;var l=Vm();b.Kg=1;b.Jf={};b.Jf.start=!1;b.Jf.firstquartile=
!1;b.Jf.midpoint=!1;b.Jf.thirdquartile=!1;b.Jf.complete=!1;b.Jf.resume=!1;b.Jf.pause=!1;b.Jf.skip=!1;b.Jf.mute=!1;b.Jf.unmute=!1;b.Jf.viewable_impression=!1;b.Jf.measurable_impression=!1;b.Jf.fully_viewable_audible_half_duration_impression=!1;b.Jf.fullscreen=!1;b.Jf.exitfullscreen=!1;b.HE=0;l||(b.Fg().N=k);zo(xo,[b],!l)}(k=b.Er[f])&&Gn(b.xf,k);g.cc(fia,f)&&b.Lq&&b.Lq.D(b,null);switch(b.fl()){case 1:var m=Eo(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),void 0!==
d)){e=Do(void 0,f);g.jg(e,d);d=e;break b}d=void 0}3==b.Kg&&(a.B?b.je&&b.je.ev():a.jw(b));b=d}else b=Do("nf",d);else b=void 0;else Wo?b=Do("ue"):f?(b=Do(),g.jg(b,Rga(f,!0,!1,!1))):b=Do("nf");return"string"===typeof b?a.B&&"stopped"===b?gp:c.j(void 0):c.j(b)};
hia=function(a,b){b&&(a.J=b)};
iia=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
hp=function(a,b,c){c=void 0===c?{}:c;a=gia(Nl(fp),b,c,a);return iia(a)};
jia=function(a,b){b=void 0===b?!1:b;var c=Nl(fp).xA(a,{});c?co(c):b&&(a=Nl(fp).Xx(null,jm(),!1,a),a.Kg=3,hha([a]))};
mia=function(a){if(g.nb(g.Ih(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.rk(a)}catch(c){return null!=g.$b(kia,function(d){return 0<a.search(d)})}return b.D.match(lia)?!0:null!=g.$b(kia,function(c){return null!=a.match(c)})};
g.ip=function(a,b){return a.replace(nia,function(c,d){try{var e=g.eg(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.nb(g.Ih(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
oia=function(a){if(jp){var b={};Object.defineProperties(a,(b[Symbol.hasInstance]=ae(Object[Symbol.hasInstance]),b))}};
lp=function(a){g.Dg.call(this);var b=this;this.J=this.u=0;this.Qj=null!=a?a:{eg:function(e,f){return setTimeout(e,f)},
Fi:clearTimeout};var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.B(function(e){return g.A(e,kp(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.J||pia(this)};
qia=function(){var a=g.mp;lp.j||(lp.j=new lp(a));return lp.j};
pia=function(a){a.J=a.Qj.eg(function(){var b;return g.B(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Za(3):g.A(c,kp(a),3):g.A(c,kp(a),3);pia(a);g.ua(c)})},3E4)};
kp=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,k;return g.B(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,k=!1,g.va(l,2,3),d&&(a.u=a.Qj.eg(function(){d.abort()},b||2E4)),g.A(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:k=!0;case 3:g.ya(l);a.D=void 0;a.u&&(a.Qj.Fi(a.u),a.u=0);k!==a.j&&(a.j=k,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);g.Aa(l,0);break;case 2:g.xa(l),k=!1,l.Za(3)}})})};
np=function(){this.data_=[];this.j=-1};
ria=function(a){-1==a.j&&(a.j=Ml(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.op=function(a,b,c){g.G.call(this);this.j=null;this.C=!1;this.J=a;this.D=c;this.u=b||window;this.B=(0,g.Ta)(this.DR,this)};
g.pp=function(a){a.isActive()||a.start()};
sia=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
tia=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.L=function(a,b,c){g.G.call(this);this.j=a;this.og=b||0;this.u=c;this.B=(0,g.Ta)(this.vJ,this)};
g.qp=function(a,b){a.isActive()||a.start(b)};
g.rp=function(a){a.stop();a.vJ()};
g.sp=function(a){a.isActive()&&g.rp(a)};
tp=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
uia=function(a,b){return new tp(a,b)};
via=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
up=function(a){return a.classList?a.classList:via(a).match(/\S+/g)||[]};
g.vp=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.wp=function(a,b){return a.classList?a.classList.contains(b):g.cc(up(a),b)};
g.M=function(a,b){if(a.classList)a.classList.add(b);else if(!g.wp(a,b)){var c=via(a);g.vp(a,c+(0<c.length?" "+b:b))}};
g.xp=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.M(a,e)});
else{var c={};Array.prototype.forEach.call(up(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.vp(a,b)}};
g.yp=function(a,b){a.classList?a.classList.remove(b):g.wp(a,b)&&g.vp(a,Array.prototype.filter.call(up(a),function(c){return c!=b}).join(" "))};
g.zp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.yp(a,c)}):g.vp(a,Array.prototype.filter.call(up(a),function(c){return!g.cc(b,c)}).join(" "))};
g.O=function(a,b,c){c?g.M(a,b):g.yp(a,b)};
wia=function(a,b){var c=!g.wp(a,b);g.O(a,b,c)};
Dp=function(a){if(a instanceof Ap||a instanceof Bp||a instanceof Cp)return a;if("function"==typeof a.next)return new Ap(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Ap(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Kh)return new Ap(function(){return a.Kh()});
throw Error("Not an iterator or iterable.");};
Ap=function(a){this.j=a};
Bp=function(a){this.u=a};
Cp=function(a){Ap.call(this,function(){return a});
this.u=a};
g.Ep=function(a,b){this.u={};this.j=[];this.zp=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.Ep)for(c=a.ym(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
xia=function(a,b){return a===b};
Gp=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Fp(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],Fp(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Fp=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Hp=function(){g.Dg.call(this);this.j=0;this.endTime=this.startTime=null};
yia=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.Dm(a,"transition",b.join(","))};
Ip=function(a,b,c,d,e){g.Hp.call(this);this.u=a;this.J=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
zia=function(a,b,c,d){return new Ip(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Bia=function(a){Aia();return qh(a,null)};
g.Jp=function(a){Aia();return Xg(a)};
Dia=function(a){a=xb(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 Cia))return null}return a};
Kp=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Eia=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Fia=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Nc&&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)};
Kia=function(a){if(!a)return mh;var b=document.createElement("div").style;Gia(a).forEach(function(c){var d=g.Gf&&c in Hia?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ib(d,"--")||ib(d,"var")||(c=Fia(Iia,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Dia(c),null!=c&&Fia(Jia,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return sba(g.Rg("Output of CSS sanitizer"),b.cssText||"")};
Gia=function(a){g.Oa(a)?a=g.jc(a):(a=g.Xf(a),g.gc(a,"cssText"));return a};
g.Mp=function(a){var b,c=b=0,d=!1;a=a.split(Lia);for(var e=0;e<a.length;e++){var f=a[e];g.Lp.test(f)?(b++,c++):Mia.test(f)?d=!0:Nia.test(f)?c++:Oia.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Np=function(a,b,c,d,e,f,k,l){this.j=a;this.K=b;this.B=c;this.D=d;this.C=e;this.J=f;this.u=k;this.N=l};
g.Op=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.yh(a.j,a.B,b),d=g.yh(a.B,a.C,b);a=g.yh(a.C,a.u,b);c=g.yh(c,d,b);d=g.yh(d,a,b);return g.yh(c,d,b)};
Pp=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Pia=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
Qp=function(a){return(a=a.exec(g.Ab()))?a[1]:""};
Rp=function(a){return 0<=g.zb(Qia,a)};
g.Sp=function(a){g.G.call(this);this.J=1;this.B=[];this.C=0;this.j=[];this.u={};this.K=!!a};
Ria=function(a,b,c){g.mi(function(){a.apply(b,c)})};
g.Tp=function(a){this.j=a};
Up=function(a){this.j=a};
Sia=function(a){this.data=a};
Tia=function(a){return void 0===a||a instanceof Sia?a:new Sia(a)};
Vp=function(a){this.j=a};
g.Uia=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Va()||!!b&&b>g.Va()};
g.Wp=function(a){this.j=a};
Via=function(){};
Xp=function(){};
Yp=function(a){this.j=a};
Zp=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Wia=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
aq=function(a,b){this.u=a;this.j=null;if(g.Nc&&!g.Gc(9)){$p||($p=new g.Ep);this.j=$p.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),$p.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
bq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Xia[b]})};
cq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
dq=function(a,b){this.u=a;this.j=b+"::"};
g.eq=function(a){var b=new Zp;return b.isAvailable()?a?new dq(b,a):b:null};
fq=function(a,b){this.j=a;this.Vc=b};
gq=function(a){this.j=[];if(a)a:{if(a instanceof gq){var b=a.ym();a=a.Li();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new fq(b[d],a[d]));break a}}else b=g.Xf(a),a=Wf(a);for(d=0;d<b.length;d++)Yia(this,b[d],a[d])}};
Yia=function(a,b,c){var d=a.j;d.push(new fq(b,c));b=d.length-1;a=a.j;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};
hq=function(){gq.call(this)};
iq=function(){};
Zia=function(){var a=g.Da.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.u(g.Da.apply(0,arguments))))}})};
$ia=function(){var a=g.Da.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(k){return e.apply(null,[k].concat(g.u(g.Da.apply(1,arguments))))}};
d=a.map(function(k){return k(f)});
e=Zia.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
jq=function(){return Math.random().toString(36).substring(7).split("").join(".")};
aja=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:kq}))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"+jq()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(kq+' 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.'));})};
bja=function(a,b,c,d){function e(){if(q)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(v){if("function"!==typeof v)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(v);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(v),1);n=null}}}
function k(v){if("object"!==typeof v||null===v)var x=!1;else{for(x=v;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(v)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof v.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,v)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return v}
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(bja)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;k({type:kq});a={};var t=(a.dispatch=k,a.subscribe=f,a.getState=e,a.replaceReducer=function(v){if("function"!==typeof v)throw Error("Expected the nextReducer to be a function.");l=v;k({type:cja});return t},a[dja]=function(){var v={};
return v.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},v[dja]=function(){return this},v},a);
return t};
lq=function(a){g.F.call(this,a,-1,eja)};
ija=function(){return[2,fja,4,lf,7,mq,9,mq,10,mq,11,gja,12,mq,13,fja,14,g.nq,oq,hja,15,g.pq,16,g.pq,17,mq,1,gja,3,g.pq,5,g.pq,6,g.pq,8,lf]};
oq=function(a){g.F.call(this,a)};
hja=function(){return[1,lf,2,lf,3,lf,4,lf,5,mq]};
jja=function(a){var b=a.split(""),c=[1370140905,1553867426,-85315752,1394207392,993020298,667692772,null,-39397387,1438243965,-275028310,1866414572,1002078737,null,b,"reverse",function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(d){d.reverse()},
-410871862,828073558,-1958598018,b,-1438485867,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},
function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
1852564567,-1660270088,-2008085705,-1299459039,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
-813605811,-1767215374,89476155,b,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
1962210300,-1656090753,-762123550,1053735435,null,-272312230,function(d,e,f){var k=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+k--)%f.length])},e.split(""))},
function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
"l5w9Fl",function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
-394584203,-1368677256,1002078737,1373968804];c[6]=c;c[12]=c;c[38]=c;try{c[16](c[6]),c[33](c[42],c[23]),c[19](c[27],c[28]),c[19](c[34],c[40]),c[32](c[34],c[18]),c[31](c[27]),c[3](c[9],c[46]),c[32](c[41],c[42]),c[12](c[39],c[10],c[30]()),c[9](c[39],c[7]),c[37](c[40],c[28]),c[31](c[4],c[23]),c[39](c[35],c[33]),c[34](c[5],c[9]),c[34](c[6],c[10]),c[20](c[35]),c[39](c[35],c[0]),c[39](c[29],c[40]),c[23](c[18],c[35]),c[0](c[36],c[21]),c[0](c[18],c[39]),c[39](c[34],c[2]),c[47](c[41],c[3]),c[11](c[34],c[5]),
c[39](c[16],c[44]),c[22](c[31]),c[43](c[17],c[27]),c[19](c[24],c[42]),c[16](c[31]),c[2](c[24],c[0]),c[12](c[1],c[22]),c[13](c[30],c[29]),c[34](c[38]),c[9](c[1],c[32],c[41]()),c[13](c[30],c[15]),c[33](c[7],c[6]),c[6](c[28]),c[3](c[14],c[47]),c[3](c[28],c[34])}catch(d){return"enhanced_except_gJUB_-r-_w8_"+a}return b.join("")};
qq=function(a){g.F.call(this,a)};
rq=function(a){g.F.call(this,a)};
sq=function(a){g.F.call(this,a)};
tq=function(a){g.F.call(this,a)};
g.uq=function(a){g.F.call(this,a,-1,kja)};
mja=function(a){g.F.call(this,a,-1,lja)};
vq=function(a){g.F.call(this,a)};
wq=function(a){g.F.call(this,a,-1,nja)};
xq=function(a){g.F.call(this,a,-1,oja)};
qja=function(a){g.F.call(this,a,-1,pja)};
yq=function(a){g.F.call(this,a)};
rja=function(a){g.F.call(this,a)};
sja=function(a){g.F.call(this,a)};
zq=function(a){g.F.call(this,a)};
Aq=function(a){g.F.call(this,a)};
tja=function(a){g.F.call(this,a)};
vja=function(a){g.F.call(this,a,-1,uja)};
wja=function(a){g.F.call(this,a)};
Bq=function(a){g.F.call(this,a)};
xja=function(a){g.F.call(this,a)};
Cq=function(a){g.F.call(this,a)};
yja=function(a,b){xe(a,1,b)};
zja=function(a){g.F.call(this,a)};
Aja=function(a,b){xe(a,1,b)};
Dq=function(a){g.F.call(this,a,-1,Bja)};
Cja=function(a,b){xe(a,2,b)};
Eq=function(a){g.F.call(this,a)};
Fq=function(a){g.F.call(this,a)};
Gq=function(a){g.F.call(this,a)};
Dja=function(a){g.F.call(this,a)};
Iq=function(a){g.F.call(this,a,-1,Eja)};
Jq=function(a){g.F.call(this,a)};
Kq=function(a){g.F.call(this,a,-1,Fja)};
Mq=function(a,b){Be(a,68,Lq,b)};
Lq=function(a){g.F.call(this,a)};
Gja=function(a){g.F.call(this,a)};
Hja=function(a){g.F.call(this,a)};
Nq=function(a){g.F.call(this,a)};
Oq=function(a){g.F.call(this,a,428)};
Ija=function(a){g.F.call(this,a)};
Pq=function(a){g.F.call(this,a)};
Qq=function(a){g.F.call(this,a,-1,Jja)};
Kja=function(){return g.Ka("yt.ads.biscotti.lastId_")||""};
Lja=function(a){g.Ja("yt.ads.biscotti.lastId_",a,void 0)};
Rq=function(a){g.F.call(this,a,1)};
Sq=function(a){g.F.call(this,a)};
Tq=function(){Sq.apply(this,arguments)};
Uq=function(){Rq.apply(this,arguments)};
Wq=function(){var a=arguments;1<a.length?Vq[a[0]]=a[1]:1===a.length&&Object.assign(Vq,a[0])};
g.P=function(a,b){return a in Vq?Vq[a]:b};
Xq=function(a){return g.P(a,void 0)};
Yq=function(){return Vq.EXPERIMENT_FLAGS};
Zq=function(a){var b=Yq();return b?b[a]:void 0};
g.Q=function(a){a=Mja(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.$q=function(a,b){a=Mja(a);return void 0===a&&void 0!==b?b:Number(a||0)};
ar=function(){return g.P("EXPERIMENTS_TOKEN","")};
Mja=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
br=function(){var a=[],b=g.P("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.P("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Nja=function(a){cr.forEach(function(b){return b(a)})};
er=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.dr(b)}}:a};
g.dr=function(a,b,c,d){var e=g.Ka("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),Wq("ERRORS",e));Nja(a)};
fr=function(a,b,c,d){var e=g.Ka("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),Wq("ERRORS",e))};
gr=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 k=Oja(f[0]||""),l=Oja(f[1]||"");k in c?Array.isArray(c[k])?g.kc(c[k],l):c[k]=[c[k],l]:c[k]=l}catch(q){var m=q,n=f[0],p=String(gr);m.args=[{key:n,value:f[1],query:a,method:Pja==p?"unchanged":p}];Qja.hasOwnProperty(n)||fr(m)}}return c};
hr=function(a){var b=[];g.Mf(a,function(c,d){var e=g.Fh(d),f;Array.isArray(c)?f=c:f=[c];g.wc(f,function(k){""==k?b.push(e):b.push(e+"="+g.Fh(k))})});
return b.join("&")};
ir=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return gr(a,"&")};
jr=function(a){a=a.split(",");return a=a.map(function(b){return ir(b)})};
g.kr=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),ir(1<a.length?a[1]:a[0])):{}};
lr=function(a,b){return Rja(a,b||{},!0)};
mr=function(a,b){return Rja(a,b||{},!1)};
Rja=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=ir(e[1]||"");for(var f in b)if(c||!g.Yf(e,f))e[f]=b[f];return g.nj(a,e)+d};
nr=function(a){if(!b)var b=window.location.href;var c=g.Ui(1,a),d=g.Vi(a);c&&d?(a=a.match(Ti),b=b.match(Ti),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Vi(b)==d&&(Number(g.Ui(4,b))||null)==(Number(g.Ui(4,a))||null):!0;return a};
or=function(a){a||(a=document.location.href);a=g.Ui(1,a);return null!==a&&"https"==a};
pr=function(a){a=g.Vi(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Oja=function(a){return a&&a.match(Sja)?a:Gh(a)};
qr=function(a){var b=Tja;a=void 0===a?Kja():a;var c=Object,d=c.assign,e=Uja(b);var f=b.j;try{var k=f.screenX;var l=f.screenY}catch(E){}try{var m=f.outerWidth;var n=f.outerHeight}catch(E){}try{var p=f.innerWidth;var q=f.innerHeight}catch(E){}try{var t=f.screenLeft;var v=f.screenTop}catch(E){}try{p=f.innerWidth,q=f.innerHeight}catch(E){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(E){}f=[t,v,k,l,x,y,m,n,p,q];k=Gfa(!1,b.j.top);l={};var z=void 0===z?g.C:z;m=new np;z.SVGElement&&z.document.createElementNS&&
m.set(0);n=Qea();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);z.crypto&&z.crypto.subtle&&m.set(3);z.TextDecoder&&z.TextEncoder&&m.set(4);z=ria(m);b=(l.bc=z,l.bih=k.height,l.biw=k.width,l.brdim=f.join(),l.vis=Bl(b.u),l.wgl=!!zl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Uja=function(a){var b={};b.dt=Vja;b.flash="0";a:{try{var c=a.j.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?zl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=zl.screen)?void 0:f.height;var k;b.u_w=null==(k=zl.screen)?void 0:k.width;var l;b.u_ah=null==(l=zl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=zl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=zl.screen)?void 0:
n.colorDepth}catch(p){}return b};
Xja=function(){if(!Wja)return null;var a=Wja();return"open"in a?a:null};
g.sr=function(a){switch(rr(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
rr=function(a){return a&&"status"in a?a.status:-1};
g.tr=function(a,b){"function"===typeof a&&(a=er(a));return window.setTimeout(a,b)};
g.yr=function(a,b){"function"===typeof a&&(a=er(a));return window.setInterval(a,b)};
g.zr=function(a){window.clearTimeout(a)};
g.Ar=function(a){window.clearInterval(a)};
Zja=function(a,b){b=void 0===b?{}:b;var c=nr(a),d=g.Q("web_ajax_ignore_global_headers_if_set"),e;for(e in Yja){var f=g.P(Yja[e]);!f||!c&&!Br(a,e)||d&&void 0!==b[e]||!g.Q("enable_web_eom_visitor_data")&&"X-Goog-EOM-Visitor-Id"===e||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||Br(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Br(a,"X-YouTube-Time-Zone")){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}k&&
(b["X-YouTube-Time-Zone"]=k)}if(c||Br(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=hr(qr(void 0));return b};
aka=function(a,b){var c=g.Vi(a);g.Q("debug_handle_relative_url_for_query_forward_killswitch")||c||!nr(a)||(c=document.location.hostname);var d=Si(g.Ui(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=ir(b),f={};g.wc($ja,function(k){e[k]&&(f[k]=e[k])});
return mr(a,f)};
Br=function(a){return g.Vi(a)?!1:!0};
g.Dr=function(a,b){var c=b.format||"JSON";a=bka(a,b);var d=cka(a,b),e=!1,f=Cr(a,function(m){if(!e){e=!0;l&&g.zr(l);var n=g.sr(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=dka(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||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var k=b.onTimeout;var l=g.tr(function(){e||(e=!0,f.abort(),g.zr(l),k.call(b.context||g.C,f))},b.timeout)}return f};
bka=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.P("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=lr(a,b);return a};
cka=function(a,b){var c=g.P("XSRF_FIELD_NAME",void 0),d=g.P("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,k=Xq("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Vi(a)&&!b.withCredentials&&g.Vi(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=ir(e),g.jg(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.lj(e));f=e||f&&!g.bg(f);
!eka&&f&&"POST"!=b.method&&(eka=!0,g.dr(Error("AJAX request with postData should use POST")));return e};
dka=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(k){throw d=Error("Error reading responseText"),d.params=a,fr(d),k;}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)?pma(a):null)e={},g.wc(a.getElementsByTagName("*"),function(k){e[k.tagName]=qma(k)})}d&&rma(e);
return e};
rma=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||lb(b,"_html")?a[b]=g.sh(g.Rg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):rma(a[b])};
pma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
qma=function(a){var b="";g.wc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Cr=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&er(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Xja();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Q("debug_forward_web_query_parameters")&&(a=aka(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Zja(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};
Fr=function(a,b){var c=g.gg(b),d;return(new g.pi(function(e,f){c.onSuccess=function(k){g.sr(k)?e(new Ama(k)):f(new Er("Request failed, status="+rr(k),"net.badstatus",k))};
c.onError=function(k){f(new Er("Unknown request error","net.unknown",k))};
c.onTimeout=function(k){f(new Er("Request timed out","net.timeout",k))};
d=g.Dr(a,c)})).Eh(function(e){e instanceof vi&&d.abort();
return si(e)})};
g.Gr=function(a,b,c,d){function e(l,m,n){return l.Eh(function(p){if(0>=m||403===rr(p.xhr))return si(new Er("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<k?Math.min(k,p):p;return f(n).then(function(){return e(Fr(a,b),m-1,q)})})}
function f(l){return new g.pi(function(m){setTimeout(m,l)})}
var k=void 0===k?-1:k;return e(Fr(a,b),c-1,d)};
Er=function(a,b,c){ab.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Ama=function(a){this.xhr=a};
Hr=function(){this.j=0;this.Vc=null};
Ir=function(a){var b=new Hr;a=void 0===a?null:a;b.j=2;b.Vc=void 0===a?null:a;return b};
Jr=function(a){var b=new Hr;a=void 0===a?null:a;b.j=1;b.Vc=void 0===a?null:a;return b};
g.Mr=function(a,b,c,d,e){Kr||Lr.set(""+a,b,{ZA:c,path:"/",domain:void 0===d?"youtube.com":d,KZ:void 0===e?!1:e})};
g.Nr=function(a,b){if(!Kr)return Lr.get(""+a,b)};
g.Bma=function(a,b,c){Kr||Lr.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Cma=function(){if(!Lr.isEnabled())return!1;if(!Lr.isEmpty())return!0;Lr.set("TESTCOOKIESENABLED","1",{ZA:60});if("1"!==Lr.get("TESTCOOKIESENABLED"))return!1;Lr.remove("TESTCOOKIESENABLED");return!0};
Or=function(){};
g.Qr=function(a,b,c){return Pr(b,0,c)};
Dma=function(a,b){Pr(a,2,b)};
Rr=function(){Or.apply(this,arguments)};
g.Sr=function(){Rr.j||(Rr.j=new Rr);return Rr.j};
g.Tr=function(){return!!g.Ka("yt.scheduler.instance")};
Pr=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ka("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.tr(a,c||0)};
Ur=function(a){var b=g.Ka("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Ema=function(){var a=/Chrome\/(\d+)/.exec(g.Ab());return a?parseFloat(a[1]):NaN};
Fma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Ab());if(!a)return NaN;var b=[];a=g.r(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("."))};
Wr=function(){return Vr("android")&&Vr("chrome")&&!(Vr("trident/")||Vr("edge/"))&&!Vr("cobalt")};
Gma=function(){return Vr("armv7")||Vr("aarch64")||Vr("android")};
g.Xr=function(){return Vr("cobalt")};
Yr=function(){return Vr("cobalt")&&Vr("appletv")};
Zr=function(){return Vr("(ps3; leanback shell)")||Vr("ps3")&&g.Xr()};
Hma=function(){return Vr("(ps4; leanback shell)")||Vr("ps4")&&g.Xr()};
g.Ima=function(){return g.Xr()&&(Vr("ps4 vr")||Vr("ps4 pro vr"))};
$r=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ab());return!!(a&&600<=parseInt(a[1],10))};
as=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ab());return!!(a&&602<=parseInt(a[1],10))};
bs=function(){return Vr("iemobile")||Vr("windows phone")&&Vr("edge")};
ds=function(){return cs&&Vr("applewebkit")&&!Vr("version")&&(!Vr("safari")||Vr("gsa/"))};
fs=function(){return g.es&&Vr("version/")};
gs=function(){return Vr("smart-tv")&&Vr("samsung")};
Vr=function(a){var b=g.Ab();return b?0<=b.toLowerCase().indexOf(a):!1};
hs=function(){if(xca()||ds()||fs())return!0;if(g.Q("enable_web_eom_visitor_data"))return g.P("EOM_VISITOR_DATA",void 0)?!1:!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a?!0:(a=g.Nr("CONSENT"))?a.startsWith("YES+"):!0};
js=function(a){ab.call(this,a.message||a.description||a.name);this.isMissing=a instanceof is;this.isTimeout=a instanceof Er&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof vi};
is=function(){ab.call(this,"Biscotti ID is missing from server")};
Mma=function(){if(g.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return si(Error("Biscotti id fetching has been disabled entirely."));if(!hs())return si(Error("User has not consented - not fetching biscotti id."));if("1"==g.eg(g.P("PLAYER_VARS",{}),"privembed",!1))return si(Error("Biscotti ID is not available in private embed mode"));ks||(ks=Fr("//googleads.g.doubleclick.net/pagead/id",Jma).then(Kma).Eh(function(a){return Lma(2,a)}));
return ks};
Kma=function(a){a=a.xhr.responseText;if(!ib(a,")]}'"))throw new is;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new is;a=a.id;Lja(a);ks=Jr(a);Nma(18E5,2);return a};
Lma=function(a,b){b=new js(b);Lja("");ks=Ir(b);0<a&&Nma(12E4,a-1);throw b;};
Nma=function(a,b){g.tr(function(){Fr("//googleads.g.doubleclick.net/pagead/id",Jma).then(Kma,function(c){return Lma(b,c)}).Eh(g.Ig)},a)};
Oma=function(){try{var a=g.Ka("yt.ads.biscotti.getId_");return a?a():Mma()}catch(b){return si(b)}};
Pma=function(a){var b=this;this.j=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.j=c})};
ls=function(){if(!g.C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
Rma=function(){var a=ls();a=Object.keys(Qma).indexOf(a);return-1===a?null:a};
g.ns=function(){this.j=g.P("ALT_PREF_COOKIE_NAME","PREF");this.u=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Nr(this.j);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])&&(ms[d]=c.toString())}}};
g.os=function(a,b){return!!((Sma("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
ps=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
qs=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Sma=function(a){a=void 0!==ms[a]?ms[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Tma=function(){var a=g.C.navigator;return a?a.connection:void 0};
Vma=function(){var a=Tma();if(a){var b=Uma[a.type||"unknown"]||"CONN_UNKNOWN";a=Uma[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}};
Xma=function(){var a=Tma();if(null!=a&&a.effectiveType)return Wma.hasOwnProperty(a.effectiveType)?Wma[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Yma=function(){return"INNERTUBE_API_KEY"in Vq&&"INNERTUBE_API_VERSION"in Vq};
g.rs=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0),FA:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),GA:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),UM:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),QF:g.P("INNERTUBE_CONTEXT_HL",void 0),PF:g.P("INNERTUBE_CONTEXT_GL",void 0),VM:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",XM:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",
!1),RF:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.ts=function(a){var b={client:{hl:a.QF,gl:a.PF,clientName:a.GA,clientVersion:a.innertubeContextClientVersion,configInfo:a.FA}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=ar();""!==c&&(b.client.experimentsToken=c);c=br();0<c.length&&(b.request={internalExperimentFlags:c});Zma(a,void 0,b);$ma(a,void 0,b);ana(void 0,b);bna(a,void 0,b);cna(void 0,b);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&
(b.user={onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries(ir(g.P("DEVICE","")))),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;"cbrand"===k?e.deviceMake=l:"cmodel"===k?e.deviceModel=l:"cbr"===k?e.browserName=l:"cbrver"===k?e.browserVersion=l:"cos"===k?e.osName=l:"cosver"===k?e.osVersion=l:"cplatform"===k&&(e.platform=l)}b.client=c.call(a,d,e);return b};
dna=function(a){var b=new xq,c=new g.uq;g.D(c,1,a.QF);g.D(c,2,a.PF);g.D(c,16,a.UM);g.D(c,17,a.innertubeContextClientVersion);if(a.FA){var d=a.FA,e=new rq;d.coldConfigData&&g.D(e,1,d.coldConfigData);d.appInstallData&&g.D(e,6,d.appInstallData);d.coldHashData&&g.D(e,3,d.coldHashData);d.hotHashData&&g.D(e,5,d.hotHashData);xe(c,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.D(c,65,d);d=ar();""!==d&&g.D(c,54,d);d=br();if(0<d.length){e=new mja;for(var f=0;f<d.length;f++){var k=new qq;g.D(k,1,d[f].key);k.setValue(d[f].value);
Be(e,15,qq,k)}xe(b,5,e)}Zma(a,c);$ma(a,c);ana(c);bna(a,c);cna(c);g.P("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(a=new wq,g.D(a,3,g.P("DELEGATED_SESSION_ID")));a=g.r(Object.entries(ir(g.P("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.r(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.D(c,12,e):"cmodel"===d?g.D(c,13,e):"cbr"===d?g.D(c,87,e):"cbrver"===d?g.D(c,88,e):"cos"===d?g.D(c,18,e):"cosver"===d?g.D(c,19,e):"cplatform"===d&&g.D(c,42,e);xe(b,1,c);return b};
Zma=function(a,b,c){a=a.GA;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=ve(b,sq,96)||new sq;var d=Rma();null!==d&&g.D(c,3,d);xe(b,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=ls())};
$ma=function(a,b,c){a=a.GA;if(("WEB_REMIX"===a||76===a)&&!g.Q("music_web_display_mode_killswitch"))if(b){var d;c=null!=(d=ve(b,tq,70))?d:new tq;d=Rma();null!==d&&g.D(c,10,d);xe(b,70,c)}else if(c){var e;c.client.RN=null!=(e=c.client.RN)?e:{};c.client.RN.webDisplayMode=ls()}};
ana=function(a,b){var c;if(g.Q("web_log_memory_total_kbytes")&&(null==(c=g.C.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.C.navigator)?void 0:d.deviceMemory;a?g.D(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
bna=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=ve(b,rq,62))?d:new rq;g.D(c,6,a.appInstallData);xe(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
cna=function(a,b){var c=Vma();c&&(a?g.D(a,61,ena[c]):b&&(b.client.connectionType=c));g.Q("web_log_effective_connection_type")&&(c=Xma())&&(a?g.D(a,94,fna[c]):b&&(b.client.effectiveConnectionType=c))};
gna=function(a,b,c){c=void 0===c?{}:c;var d={};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.P("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.bL||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ka("gapi.auth.getToken")().Gga:b=Ii([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.Q("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));
return d};
us=function(a){var b;(b=g.eq(a))||(a=new aq(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Vp(a):null;this.u=document.domain||window.location.hostname};
ws=function(){var a;return null==(a=vs())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
hna=function(){var a={};for(xs=new ys(void 0===a.handleError?zs:a.handleError,void 0===a.logEvent?g.As:a.logEvent);0<Bs.length;)switch(a=Bs.shift(),a.type){case "ERROR":xs.Sj(a.payload);break;case "EVENT":xs.logEvent(a.eventType,a.payload)}};
Ds=function(a){Cs||(xs?xs.Sj(a):(Bs.push({type:"ERROR",payload:a}),10<Bs.length&&Bs.shift()))};
Es=function(a,b){Cs||(xs?xs.logEvent(a,b):(Bs.push({type:"EVENT",eventType:a,payload:b}),10<Bs.length&&Bs.shift()))};
g.Fs=function(a){var b=g.Da.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.u(b))};
g.Hs=function(){try{return g.Gs(),!0}catch(a){return!1}};
g.Gs=function(a){if(void 0!==g.P("DATASYNC_ID",void 0))return g.P("DATASYNC_ID",void 0);throw new g.Fs("Datasync ID not set",void 0===a?"unknown":a);};
Is=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Js=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Ks=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?ina[a]:c;d=void 0===d?jna[a]:d;e=void 0===e?kna[a]:e;g.Fs.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.j=e;Object.setPrototypeOf(this,g.Ks.prototype)};
Ls=function(a,b){g.Ks.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},ina.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ls.prototype)};
Ms=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,Ms.prototype)};
Os=function(a,b,c,d){b=Js(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Ks)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.Ks("QUOTA_EXCEEDED",a);if(g.Ns&&"UnknownError"===e.name)return new g.Ks("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Ms)return new g.Ks("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&lna.some(function(f){return e.message.includes(f)}))return new g.Ks("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.Ks("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",yB:e.name})];e.level="WARNING";return e};
g.Ps=function(a,b,c){var d=ws();return new g.Ks("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
mna=function(a){if(!a)throw Error();throw a;};
nna=function(a){return a};
Qs=function(a){this.j=a};
g.Rs=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(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.r(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.onRejected=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
ona=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 g.Rs?Ss(a,b,f,d,e):d(f)}catch(k){e(k)}};
pna=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 g.Rs?Ss(a,b,f,d,e):d(f)}catch(k){e(k)}};
Ss=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.Rs?Ss(a,b,f,d,e):d(f)},function(f){e(f)})};
qna=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(k){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
rna=function(a){return new Promise(function(b,c){qna(a,b,c)})};
g.Ts=function(a){return new g.Rs(new Qs(function(b,c){qna(a,b,c)}))};
Us=function(a,b){return new g.Rs(new Qs(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(k){a=k;e()},d):c()}
e()}))};
sna=function(a,b){this.request=a;this.cursor=b};
Vs=function(a){return g.Ts(a).then(function(b){return b?new sna(a,b):null})};
tna=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.R)());this.u=!1};
g.Xs=function(a,b,c){a=a.j.createObjectStore(b,c);return new Ws(a)};
Ys=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
una=function(a,b){return g.Zs(a,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(c){return g.$s(c.objectStore("LogsRequestsStore"),b,void 0)})};
g.Zs=function(a,b,c,d){var e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){switch(z.j){case 1:var E={mode:"readonly",Kc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Kc?3:1;k=0;case 2:if(l){z.Za(3);break}k++;m=Math.round((0,g.R)());g.va(z,4);n=a.j.transaction(b,e.mode);E=new at(n);E=vna(E,d);return g.A(z,E,6);case 6:return p=z.u,q=Math.round((0,g.R)()),wna(a,m,q,k,void 0,b.join(),e),z.return(p);case 4:t=g.xa(z);v=Math.round((0,g.R)());
x=Os(t,a.j.name,b.join(),a.j.version);if((y=x instanceof g.Ks&&!x.j)||k>=f)wna(a,m,v,k,x,b.join(),e),l=x;z.Za(2);break;case 3:return z.return(Promise.reject(l))}})};
wna=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof g.Ks&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Es("QUOTA_EXCEEDED",{dbName:Js(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof g.Ks&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Es("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),xna(a,!1,d,f,b,k.tag),Ds(e)):xna(a,!0,d,
f,b,k.tag)};
xna=function(a,b,c,d,e,f){Es("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Ws=function(a){this.j=a};
g.bt=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
yna=function(a,b){return g.ct(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.Ana=function(a,b,c){return"getAll"in IDBObjectStore.prototype?g.Ts(a.j.getAll(b,c)):zna(a,b,c)};
zna=function(a,b,c){var d=[];return g.ct(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Cna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Ts(a.j.getAllKeys(void 0,void 0)):Bna(a)};
Bna=function(a){var b=[];return g.Dna(a,{query:void 0},function(c){b.push(c.uA());return c.continue()}).then(function(){return b})};
g.$s=function(a,b,c){return g.Ts(a.j.put(b,c))};
g.ct=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return dt(a).then(function(d){return Us(d,c)})};
g.Dna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return Vs(a).then(function(e){return Us(e,c)})};
at=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Ks;for(var f=b.j.objectStoreNames,k=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");k.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
vna=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.r(d).next().value})};
Ena=function(a){this.j=a};
g.et=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return dt(a).then(function(d){return Us(d,c)})};
Fna=function(a,b){this.request=a;this.cursor=b};
dt=function(a){return g.Ts(a).then(function(b){return b?new Fna(a,b):null})};
Gna=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new tna(k.result,{closed:q}));return t}
var k=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.e_,p=c.upgrade,q=c.closed,t;k.addEventListener("upgradeneeded",function(v){try{if(null===v.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===k.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");v.dataLoss&&"none"!==v.dataLoss&&Es("IDB_DATA_CORRUPTED",{reason:v.dataLossMessage||"unknown reason",dbName:Js(a)});var x=f(),y=new at(k.transaction);
p&&p(x,function(z){return v.oldVersion<z&&v.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
k.addEventListener("success",function(){var v=k.result;m&&v.addEventListener("versionchange",function(){m(f())});
v.addEventListener("close",function(){Es("IDB_UNEXPECTEDLY_CLOSED",{dbName:Js(a),dbVersion:v.version});n&&n()});
d(f())});
k.addEventListener("error",function(){e(k.error)});
l&&k.addEventListener("blocked",function(){l()})})};
Hna=function(a,b,c){c=void 0===c?{}:c;return Gna(a,b,c)};
ft=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.j)return g.va(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,rna(c),4);
if(2!=k.j)return g.wa(k,0);f=g.xa(k);throw Os(f,a,"",-1);})};
Ina=function(a){return new Promise(function(b){Dma(function(){b()},a)})};
gt=function(a,b){this.name=a;this.options=b;this.C=!0;this.J=this.D=0;this.u=500};
Jna=function(a,b){return new g.Ks("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.ht=function(a,b){if(!b)throw g.Ps("openWithToken",Js(a.name));return a.open()};
Kna=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.ht(jt,b),2);c=d.u;return d.return(g.Zs(c,["databases"],{Kc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.$s(f,a).then(function(){})})}))})};
kt=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.ht(jt,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Lna=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.ht(jt,b),2)):3!=e.j?(d=e.u,g.A(e,g.Zs(d,["databases"],{Kc:!0,mode:"readonly"},function(f){c.length=0;return g.ct(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})};
Mna=function(a){return Lna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Nna=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=ws();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(cs&&$r()&&!as()||g.lt)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(e,Kna(d,mt),4);case 4:return g.A(e,kt("yt-idb-test-do-not-use",mt),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})};
Ona=function(){if(void 0!==nt)return nt;Cs=!0;return nt=Nna().then(function(a){Cs=!1;var b;if(null!=(b=vs())&&b.j){var c;b={hasSucceededOnce:(null==(c=ws())?void 0:c.hasSucceededOnce)||a};var d;null==(d=vs())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
ot=function(){return g.Ka("ytglobal.idbToken_")||void 0};
g.pt=function(){var a=ot();return a?Promise.resolve(a):Ona().then(function(b){(b=b?mt:void 0)&&g.Ja("ytglobal.idbToken_",b,void 0);return b})};
Pna=function(a){if(!g.Hs())throw a=new g.Ks("AUTH_INVALID",{dbName:a}),Ds(a),a;var b=g.Gs();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Qna=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.pt(),2);case 2:k=p.u;if(!k)throw l=g.Ps("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Ds(l),l;Is(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Pna(a);g.va(p,3);return g.A(p,Kna(m,k),5);case 5:return g.A(p,Hna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.xa(p),g.va(p,7),g.A(p,kt(m.actualName,
k),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})};
Rna=function(a,b,c){c=void 0===c?{}:c;return Qna(a,b,!1,c)};
Sna=function(a,b,c){c=void 0===c?{}:c;return Qna(a,b,!0,c)};
Tna=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.pt(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Is(a);d=Pna(a);return g.A(e,ft(d.actualName,b),3)}return g.A(e,kt(d.actualName,c),0)})};
Una=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,ft(d.actualName,b),2):g.A(e,kt(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Vna=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.pt(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Is("LogsDatabaseV2");return g.A(d,Mna(b),3)}c=d.u;return g.A(d,Una(c,a,b),0)})};
Wna=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.pt(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Is(a);return g.A(d,ft(a,b),3)}return g.A(d,kt(a,c),0)})};
qt=function(a){this.Be=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.At=function(){};
this.now=Date.now;this.lw=!1;var b;this.dQ=null!=(b=a.dQ)?b:100;var c;this.DP=null!=(c=a.DP)?c:1;var d;this.wP=null!=(d=a.wP)?d:2592E6;var e;this.nP=null!=(e=a.nP)?e:12E4;var f;this.CP=null!=(f=a.CP)?f:5E3;var k;this.hd=null!=(k=a.hd)?k:void 0;this.Vz=!!a.Vz;var l;this.Kz=null!=(l=a.Kz)?l:.1;var m;this.IB=null!=(m=a.IB)?m:10;a.handleError&&(this.handleError=a.handleError);a.At&&(this.At=a.At);a.lw&&(this.lw=a.lw);this.ob=a.ob;this.Qj=a.Qj;this.tf=a.tf;this.jf=a.jf;this.Zm=a.Zm;this.fH=a.fH;this.AG=
a.AG;this.hd&&(!this.ob||this.ob("networkless_logging"))&&Xna(this)};
Xna=function(a){a.hd&&!a.lw&&(a.Be=!0,a.Vz&&Math.random()<=a.Kz&&a.tf.LT(a.hd),Yna(a),a.jf.Ne()&&a.Dy(),a.jf.Pa(a.fH,a.Dy.bind(a)),a.jf.Pa(a.AG,a.nL.bind(a)))};
rt=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!a.hd)throw c=g.Ps("immediateSend"),c;if(void 0===b.id){e.Za(2);break}return g.A(e,a.tf.HV(b.id,a.hd),3);case 3:(d=e.u)?b=d:a.At(Error("The request cannot be found in the database."));case 2:if(Zna(a,b,a.wP)){e.Za(4);break}a.At(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Za(5);break}return g.A(e,a.tf.Ss(b.id,a.hd),5);case 5:return e.return();case 4:b.skipRetry||(b=$na(a,b));if(!b){e.Za(0);
break}if(!b.skipRetry||void 0===b.id){e.Za(8);break}return g.A(e,a.tf.Ss(b.id,a.hd),8);case 8:a.Zm(b.url,b.options,!!b.skipRetry),g.ua(e)}})};
$na=function(a,b){if(!a.hd)throw g.Ps("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:k=aoa(f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&k||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.IB)){n.Za(2);break}if(!a.jf.cn){n.Za(3);break}return g.A(n,a.jf.cn(),3);case 3:if(a.jf.Ne()){n.Za(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Za(6);break}return g.A(n,a.tf.EH(b.id,a.hd,!1),6);case 6:return n.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&&
!k&&a.potentialEsfErrorCounter>a.IB)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Za(8);break}return b.sendCount<a.DP?g.A(n,a.tf.EH(b.id,a.hd),12):g.A(n,a.tf.Ss(b.id,a.hd),8);case 12:a.Qj.eg(function(){a.jf.Ne()&&a.Dy()},a.CP);
case 8:c(e,f),g.ua(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return void 0===(null==(k=b)?void 0:k.id)?l.Za(2):g.A(l,a.tf.Ss(b.id,a.hd),2);a.jf.Pm&&a.ob&&a.ob("vss_network_hint")&&a.jf.Pm(!0);d(e,f);g.ua(l)})};
return b};
Zna=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Yna=function(a){if(!a.hd)throw g.Ps("retryQueuedRequests");a.tf.qM("QUEUED",a.hd).then(function(b){b&&!Zna(a,b,a.nP)?a.Qj.eg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Za(2):g.A(c,a.tf.EH(b.id,a.hd),2);Yna(a);g.ua(c)})}):a.jf.Ne()&&a.Dy()})};
tt=function(a,b){a.IQ&&!a.jf.Ne()?a.IQ(b):a.handleError(b)};
aoa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
ut=function(a,b){this.version=a;this.args=b};
vt=function(a,b){this.topic=a;this.j=b};
xt=function(a,b){var c=wt();c&&c.publish.call(c,a.toString(),a,b)};
coa=function(a,b,c){var d=wt();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ka("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(zt[e])try{if(k&&a instanceof vt&&a!=f)try{var m=a.j,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.zp){var p=new m;m.zp=p.version}var q=m.zp}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.jc(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,k)}catch(t){g.dr(t)}},boa[a.toString()]?g.Tr()?g.mp.eg(l):g.tr(l,0):l())});
zt[e]=!0;At[a.toString()]||(At[a.toString()]=[]);At[a.toString()].push(e);return e};
Ct=function(a,b,c){var d=coa(a,function(e){b.apply(c,arguments);Bt(d)},c);
return d};
Bt=function(a){var b=wt();b&&("number"===typeof a&&(a=[a]),g.wc(a,function(c){b.unsubscribeByKey(c);delete zt[c]}))};
wt=function(){return g.Ka("ytPubsub2Pubsub2Instance")};
Dt=function(a,b){gt.call(this,a,b);this.options=b;Is(a)};
doa=function(a,b){var c;return function(){c||(c=new Dt(a,b));return c}};
g.Et=function(a,b){return doa(a,b)};
eoa=function(){if(Ft)return Ft();var a={};Ft=g.Et("LogsDatabaseV2",{Nq:(a.LogsRequestsStore={Gn:2},a),py:!1,upgrade:function(b,c,d){c(2)&&g.Xs(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.bt(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Ys(b,"sapisid");c(9)&&Ys(b,"SWHealthLog")},
version:9});return Ft()};
Gt=function(a){return g.ht(eoa(),a)};
Ht=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,Gt(b),2);if(3!=k.j)return d=k.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,una(d,e),3);f=k.u;c.o_=(0,g.R)();foa(c);return k.return(f)})};
goa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Gt(b),2);if(3!=n.j)return d=n.u,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,g.Zs(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(p){return g.et(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
a&&(m.status="QUEUED",q.update(m)))})}),3);
c.o_=(0,g.R)();foa(c);return n.return(m)})};
hoa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Gt(b),2);c=d.u;return d.return(g.Zs(c,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",g.$s(f,k).then(function(){return k})})}))})};
It=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,Gt(b),2);d=e.u;return e.return(g.Zs(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.$s(k,l).then(function(){return l})):g.Rs.resolve(void 0)})}))})};
Jt=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Gt(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
ioa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,Gt(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Zs(b,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){return g.ct(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
joa=function(){g.B(function(a){return g.A(a,Vna(),0)})};
foa=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&xt("nwl_transaction_latency_payload",a)};
loa=function(a){return g.ht(koa(),a)};
moa=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,loa(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Zs(b,["SWHealthLog"],{mode:"readwrite",Kc:!0},function(e){return g.ct(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
noa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,loa(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})};
g.Kt=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Xr())a&&(a=g.$g(g.bh(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.ph(rh(a)).toString(),a=g.Fh(g.Oi(a))),g.nb(a)||(a=Vh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Mh(a).body.appendChild(a)));else if(e)Cr(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Cr(a,b,"GET","",d);else{b:{try{var f=new xea({url:a});if(f.B&&f.u||f.C){var k=Si(g.Ui(5,a));var l=!(!k||
!k.endsWith("/aclk")||"1"!==pj(a,"ri"));break b}}catch(m){}l=!1}l?ooa(a)?(b&&b(),c=!0):c=!1:c=!1;c||poa(a,b)}};
ooa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
poa=function(a,b){var c=new Image,d=""+qoa++;Lt[d]=c;c.onload=c.onerror=function(){b&&Lt[d]&&b();delete Lt[d]};
c.src=a};
Mt=function(){this.j=new Map;this.u=!1};
Nt=function(){if(!Mt.j){var a=g.Ka("yt.networkRequestMonitor.instance")||new Mt;g.Ja("yt.networkRequestMonitor.instance",a,void 0);Mt.j=a}return Mt.j};
Pt=function(){Ot||(Ot=new us("yt.offline"));return Ot};
roa=function(a){if(g.Q("offline_error_handling")){var b=Pt().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Pt().set("errors",b,2592E3,!0)}};
soa=function(){if(g.Q("offline_error_handling")){var a=Pt().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Fs(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.dr(c)}Pt().set("errors",{},2592E3,!0)}}};
Qt=function(){g.Dg.call(this);var a=this;this.N=0;this.J=this.C=!1;this.u=this.uF();g.Q("use_shared_nsm")?(this.j=qia(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Pa("networkstatus-online",function(){a.u=!0;a.J&&soa()}),this.j.Pa("networkstatus-offline",function(){a.u=!1}))):(toa(this),uoa(this))};
voa=function(){if(!Qt.j){var a=g.Ka("yt.networkStatusManager.instance")||new Qt;g.Ja("yt.networkStatusManager.instance",a,void 0);Qt.j=a}return Qt.j};
uoa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.cn(),2);a.J&&soa();g.ua(b)})})};
toa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.cn(),0)})})};
woa=function(a){a.N=g.Qr(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.uF()||!a.C?b.Za(3):g.A(b,a.cn(),3):g.A(b,a.cn(),3);woa(a);g.ua(b)})},xoa)};
g.Rt=function(a){a=void 0===a?{}:a;g.Dg.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=voa();var c=g.Ka("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.QL);a.AN&&(c=g.Ka("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.Ka("yt.networkStatusManager.instance.listen").bind(this.j))a.OB?(this.OB=
a.OB,c(this.D,function(){yoa(b,"publicytnetworkstatus-online")}),c(this.C,function(){yoa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
yoa=function(a,b){a.OB?a.u?(g.mp.Fi(a.K),a.K=g.mp.eg(function(){a.J!==b&&(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)())},a.OB-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)()):a.dispatchEvent(b)};
St=function(){qt.call(this,{tf:{LT:ioa,Ss:Jt,qM:goa,HV:hoa,EH:It,set:Ht},jf:zoa(),handleError:g.dr,At:fr,Zm:Aoa,now:g.R,IQ:roa,Qj:g.Sr(),fH:"publicytnetworkstatus-online",AG:"publicytnetworkstatus-offline",Vz:!0,Kz:.1,IB:g.$q("potential_esf_error_limit",10),ob:g.Q,lw:!(g.Hs()&&(g.Q("embeds_web_nwl_disable_nocookie")?"www.youtube-nocookie.com"!==g.Vi(document.location.toString()):1))});this.u=new g.Nj;g.Q("networkless_immediately_drop_all_requests")&&joa();Wna("LogsDatabaseV2")};
Tt=function(){var a=g.Ka("yt.networklessRequestController.instance");a||(a=new St,g.Ja("yt.networklessRequestController.instance",a,void 0),g.Q("networkless_logging")&&g.pt().then(function(b){a.hd=b;Xna(a);a.u.resolve();a.Vz&&Math.random()<=a.Kz&&a.hd&&moa(a.hd);g.Q("networkless_immediately_drop_sw_health_store")&&Boa(a)}));
return a};
Boa=function(a){var b;g.B(function(c){if(!a.hd)throw b=g.Ps("clearSWHealthLogsDb"),b;return c.return(noa(a.hd).catch(function(d){a.handleError(d)}))})};
Aoa=function(a,b,c){g.Q("use_cfr_monitor")&&Coa(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Kt(a):g.Dr(a,b)};
zoa=function(){Ut||(Ut=new g.Rt({AN:!0,QL:!0}));return Ut};
Coa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Nt().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Nt().requestComplete(a,!0);d(e,f)}};
Doa=function(a,b){function c(d){var e=Vt().Ne();if(!Wt()||!d||e&&g.Q("vss_networkless_bypass_write"))Xt(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Ht(f,d).then(function(k){f.id=k;Vt().Ne()&&Yt(f)}).catch(function(k){Yt(f);
Zt(k)})}}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.pt().then(function(d){c(d)}):c(ot())};
$t=function(a,b,c){function d(e){if(Wt()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if(Vt().Ne()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,Ht(f,e).catch(function(p){Zt(p)}),2);
k(l,m);g.ua(n)})}}Xt(a,b,f.skipRetry)}else Ht(f,e).catch(function(l){Xt(a,b,g.Q("nwl_skip_retry")&&c);
Zt(l)})}else Xt(a,b,g.Q("nwl_skip_retry")&&c)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.pt().then(function(e){d(e)}):d(ot())};
au=function(a,b){function c(d){if(Wt()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Nt().requestComplete(e.url,!0);void 0!==e.id?Jt(e.id,d):f=!0;g.Q("vss_network_hint")&&Vt().Pm(!0);k(m,n)};
if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
e.options.onError=function(m,n){Nt().requestComplete(e.url,!1);l(m,n)}}Xt(e.url,e.options);
Ht(e,d).then(function(m){e.id=m;f&&Jt(e.id,d)}).catch(function(m){Zt(m)})}else Xt(a,b)}
b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.pt().then(function(d){c(d)}):c(ot())};
Eoa=function(){var a=ot();if(!a)throw g.Ps("throttleSend");bu||(bu=g.mp.eg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,goa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,Yt(b),3):(g.mp.Fi(bu),bu=0,c.return());bu&&(bu=0,Eoa());g.ua(c)})},100))};
Yt=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=ot();if(!b)throw c=g.Ps("immediateSend"),c;if(void 0===a.id){e.Za(2);break}return g.A(e,hoa(a.id,b),3);case 3:(d=e.u)?a=d:fr(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.Za(4);break}fr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Za(5);break}return g.A(e,Jt(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=Foa(a));
f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.Za(0);break}if(!a.skipRetry||void 0===a.id){e.Za(8);break}return g.A(e,Jt(a.id,b),8);case 8:Xt(a.url,a.options,!!a.skipRetry),g.ua(e)}})};
Foa=function(a){var b=ot();if(!b)throw g.Ps("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:g.Q("use_cfr_monitor")&&Nt().requestComplete(a.url,!1);k=aoa(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&Goa()<=g.$q("potential_esf_error_limit",10))){n.Za(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Nt().isEndpointCFR(a.url))){n.Za(3);break}return g.A(n,Vt().cn(),3);case 3:if(Vt().Ne()){n.Za(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Za(6);break}return g.A(n,It(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!k&&Goa()>g.$q("potential_esf_error_limit",10))return n.return();g.Ka("ytNetworklessLoggingInitializationOptions")&&cu.potentialEsfErrorCounter++;du++;if(void 0===(null==(m=a)?void 0:m.id)){n.Za(8);break}return 1>a.sendCount?g.A(n,It(a.id,b),12):g.A(n,Jt(a.id,b),8);case 12:g.mp.eg(function(){Vt().Ne()&&Eoa()},5E3);
case 8:c(e,f),g.ua(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Nt().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Za(2):g.A(l,Jt(a.id,b),2);g.Q("vss_network_hint")&&Vt().Pm(!0);d(e,f);g.ua(l)})};
return a};
Vt=function(){if(g.Q("use_new_nwl"))return zoa();eu||(eu=new g.Rt({AN:!0,QL:!0}));return eu};
Zt=function(a){Vt().Ne()?g.dr(a):roa(a)};
Xt=function(a,b,c){c&&0===Object.keys(b).length?g.Kt(a):g.Dr(a,b)};
Wt=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?cu.isNwlInitialized:!1};
Goa=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?cu.potentialEsfErrorCounter:du};
g.fu=function(a){this.config_=null;a?this.config_=a:Yma()&&(this.config_=g.rs())};
g.gu=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.TN.bypassNetworkless?(f.method="POST",d.TN.writeThenSend?g.Q("use_new_nwl_wts")?Tt().writeThenSend(n,f):Doa(n,f):g.Q("use_new_nwl_saw")?Tt().sendAndWrite(n,f):au(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Dr(n,f))}catch(q){if("InvalidAccessError"==q.name)fr(Error("An extension is blocking network request."));else throw q;}}
!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&fr(new g.Fs("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Fs("innertube xhrclient not ready",b,c,d),g.dr(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,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
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 k=a.config_.VM;k&&(c=k);k=gna(a.config_.XM||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.RF&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=lr(""+c+b,l);g.Q("use_new_nwl")&&Tt().Be||!g.Q("use_new_nwl")&&
Wt()?Ona().then(function(p){e(p)}):e(!1)};
Hoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=hu+"VisibilityState";if(b in a)return a[b]};
iu=function(a,b){var c;Sm(a,function(d){c=b[d];return!!c});
return c};
ju=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 Ioa||(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.j=a.pageX;this.u=a.pageY}}catch(e){}};
Joa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
Koa=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 $f(ku,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Pa(e[4])&&g.Pa(d)&&g.fg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.lu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Koa(a,b,c,d);if(e)return e;e=++Loa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new ju(l);if(!ei(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new ju(l);
l.currentTarget=a;return c.call(a,l)};
k=er(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Moa()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);ku[e]=[a,b,c,k,d];return e};
Noa=function(a,b){var c=document.body||document;return g.lu(c,"click",function(d){var e=ei(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.mu=function(a){a&&("string"==typeof a&&(a=[a]),g.wc(a,function(b){if(b in ku){var c=ku[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Moa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ku[b]}}))};
g.nu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
ou=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.nu(a)};
pu=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};
qu=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.Ah(b,c)};
g.ru=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.tu=function(a){a=a||window.event;return!1===a.returnValue||a.cN&&a.cN()};
g.uu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Ooa=function(a){return Noa(a,function(b){return g.wp(b,"ytp-ad-has-logging-urls")})};
g.Poa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.lu(a,b,function(){g.mu(e);c.apply(a,arguments)},d)};
vu=function(a){for(var b in ku)ku[b][0]==a&&g.mu(b)};
wu=function(a){this.K=a;this.j=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.lu(window,"mousemove",(0,g.Ta)(this.X,this));this.N=g.yr((0,g.Ta)(this.Z,this),25)};
Qoa=function(){var a={},b=void 0===a.oZ?!1:a.oZ;a=void 0===a.kU?!0:a.kU;if(null==g.Ka("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ja("_lact",c,window);g.Ja("_fact",c,window);-1==c&&xu();g.lu(document,"keydown",xu);g.lu(document,"keyup",xu);g.lu(document,"mousedown",xu);g.lu(document,"mouseup",xu);b?g.lu(window,"touchmove",function(){yu("touchmove",200)},{passive:!0}):(g.lu(window,"resize",function(){yu("resize",200)}),a&&g.lu(window,"scroll",function(){yu("scroll",
200)}));
new wu(function(){yu("mouse",100)});
g.lu(document,"touchstart",xu,{passive:!0});g.lu(document,"touchend",xu,{passive:!0})}};
yu=function(a,b){zu[a]||(zu[a]=!0,g.mp.eg(function(){xu();zu[a]=!1},b))};
xu=function(){null==g.Ka("_lact",window)&&(Qoa(),g.Ka("_lact",window));var a=Date.now();g.Ja("_lact",a,window);-1==g.Ka("_fact",window)&&g.Ja("_fact",a,window);(a=g.Ka("ytglobal.ytUtilActivityCallback_"))&&a()};
Au=function(){var a=g.Ka("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.Fu=function(a,b,c){var d=g.Bu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Cu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Du[a]?k():g.tr(k,0)}catch(l){g.dr(l)}},c);
Cu[e]=!0;Eu[a]||(Eu[a]=[]);Eu[a].push(e);return e}return 0};
g.Gu=function(a){var b=g.Bu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.wc(a,function(c){b.unsubscribeByKey(c);delete Cu[c]}))};
g.Hu=function(a,b){var c=g.Bu();return c?c.publish.apply(c,arguments):!1};
Soa=function(a){var b=g.Bu();if(b)if(b.clear(a),a)Roa(a);else for(var c in Eu)Roa(c)};
g.Bu=function(){return g.C.ytPubsubPubsubInstance};
Roa=function(a){Eu[a]&&(a=Eu[a],g.wc(a,function(b){Cu[b]&&delete Cu[b]}),a.length=0)};
Toa=function(){this.B=this.j=this.u=0};
Voa=function(a,b){if("log_event"===a.endpoint){var c=Iu(a),d=Ju.get(c)||[];Ju.set(c,d);d.push(a.payload);Uoa(b,d,c)}};
Woa=function(a,b){if("log_event"===a.endpoint){var c=Iu(a,!0),d=Ku.get(c)||[];Ku.set(c,d);a=Ge(a.payload);d.push(a);Uoa(b,d,c,!0)}};
Uoa=function(a,b,c,d){d=void 0===d?!1:d;a&&(Lu=new a);a=g.$q("tvhtml5_logging_max_batch")||g.$q("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?Mu.B:Nu.B;b.length>=a?Ou({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Xoa(d),d?Mu.B=e:Nu.B=e)};
Yoa=function(a,b){if("log_event"===a.endpoint){var c=Iu(a),d=new Map;d.set(c,[a.payload]);b&&(Lu=new b);return new g.pi(function(e){Lu&&Lu.isReady()?Pu(d,e,{bypassNetworkless:!0},!0):e()})}};
Zoa=function(a,b){if("log_event"===a.endpoint){var c=Iu(a,!0),d=new Map;d.set(c,[Ge(a.payload)]);b&&(Lu=new b);return new g.pi(function(e){Lu&&Lu.isReady()?Qu(d,e,{bypassNetworkless:!0},!0):e()})}};
Iu=function(a,b){var c="";if(a.hw)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Pq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.te(d,2,Ru,c.playlistId);Su[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Tu[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Ou=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.pi(function(d){c?(g.zr(Mu.u),g.zr(Mu.j),Mu.j=0):(g.zr(Nu.u),g.zr(Nu.j),Nu.j=0);if(Lu&&Lu.isReady())if(void 0!==b)if(c){var e=new Map,f=Ku.get(b)||[];e.set(b,f);Qu(e,d,a);Ku.delete(b)}else e=new Map,f=Ju.get(b)||[],e.set(b,f),Pu(e,d,a),Ju.delete(b);else c?(Qu(Ku,d,a),Ku.clear()):(Pu(Ju,d,a),Ju.clear());else Xoa(c),d()})};
Xoa=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!Nu.j||a&&!Mu.j)){var b=g.tr(function(){Ou({writeThenSend:!0},void 0,a)},6E4);
a?Mu.j=b:Nu.j=b}g.zr(a?Mu.u:Nu.u);b=g.P("LOGGING_BATCH_TIMEOUT",g.$q("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Uu&&(b=$oa);b=g.tr(function(){Ou({writeThenSend:!0},void 0,a)},b);
a?Mu.u=b:Nu.u=b};
Pu=function(a,b,c,d){var e=Lu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.hg({context:g.ts(e.config_||g.rs())});m.events=n;(n=Tu[l])&&apa(m,l,n);delete Tu[l];l="visitorOnlyApprovedKey"===l;bpa(m,f,l);cpa(c);g.gu(e,"log_event",m,dpa(c,l,function(){k--;k||b()},function(){k--;
k||b()},d));
Uu=!1}};
Qu=function(a,b,c,d){var e=Lu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=new Qq;var p=dna(e.config_||g.rs());xe(m,1,p);n=epa(n);for(p=0;p<n.length;p++)Be(m,3,Oq,n[p]);(n=Su[l])&&fpa(m,l,n);delete Su[l];l="visitorOnlyApprovedKey"===l;gpa(m,f,l);cpa(c);m=Ge(m);l=dpa(c,l,function(){k--;k||b()},function(){k--;
k||b()},d);
l.headers={"Content-Type":"application/json+protobuf"};l.postBodyFormat="JSPB";l.postBody=m;g.gu(e,"log_event","",l);Uu=!1}};
cpa=function(a){g.Q("always_send_and_write")&&(a.writeThenSend=!1)};
dpa=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,TN:a,hw:b,Kga:!!e,headers:{},postBodyFormat:"",postBody:""}};
bpa=function(a,b,c){a.requestTimeMs=String(b);g.Q("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&(c=hpa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
gpa=function(a,b,c){g.D(a,2,b);if(!c&&(b=g.P("EVENT_ID",void 0))){c=hpa();var d=new Ija;g.D(d,1,b);g.D(d,2,c);xe(a,5,d)}};
hpa=function(){var a=g.P("BATCH_CLIENT_COUNTER",void 0)||0;a||(a=Math.floor(Math.random()*ipa/2));a++;a>ipa&&(a=1);Wq("BATCH_CLIENT_COUNTER",a);return a};
apa=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}]};
fpa=function(a,b,c){if(c.Hg())var d=1;else if(c.getPlaylistId())d=2;else return;xe(a,4,c);a=a.getContext()||new xq;c=ve(a,wq,3)||new wq;var e=new vq;e.setToken(b);g.D(e,1,d);Be(c,12,vq,e);xe(a,3,c)};
epa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(Je(Oq,String(a[c])))}catch(d){g.dr(new g.Fs("Transport failed to deserialize "+String(a[c])))}return b};
Wu=function(a,b,c,d){d=void 0===d?{}:d;if(g.Q("lr_drop_other_and_business_payloads")){if(jpa[a]||kpa[a])return}else if(g.Q("lr_drop_other_payloads")&&jpa[a])return;var e={},f=Math.round(d.timestamp||(0,g.R)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Au();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Q("log_sequence_info_on_gel_web")&&d.gj&&(a=e.context,b=d.gj,b={index:lpa(b),groupKey:b},a.sequence=b,d.RL&&delete Vu[d.gj]);(d.MH?Yoa:Voa)({endpoint:"log_event",payload:e,
cttAuthInfo:d.cttAuthInfo,hw:d.hw},c)};
lpa=function(a){Vu[a]=a in Vu?Vu[a]+1:0;return Vu[a]};
g.As=function(a,b,c){c=void 0===c?{}:c;var d=g.fu;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.fu==g.fu&&(d=null);Wu(a,b,d,c)};
npa=function(){var a=void 0===a?window.location.href:a;if(g.Q("kevlar_disable_theme_param"))return null;Si(g.Ui(5,a));try{var b=g.kr(a).theme;return mpa.get(b)||null}catch(c){}return null};
ppa=function(a,b,c){a&&(a.dataset?a.dataset[opa(b)]=String(c):a.setAttribute("data-"+b,c))};
qpa=function(a){return a?a.dataset?a.dataset[opa("loaded")]:a.getAttribute("data-loaded"):null};
opa=function(a){return rpa[a]||(rpa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Xu=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()};
$u=function(a){var b;g.Yu()?Zu()==a&&(b=document):b=a;return b&&(a=iu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
av=function(a){return g.$b(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
spa=function(){var a=document;return g.$b(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Yu=function(){return!!iu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Zu=function(a){a=void 0===a?!1:a;var b=iu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
bv=function(a){g.G.call(this);this.J=[];this.Wa=a||this};
cv=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.dv=function(a,b){for(;a.J.length;){var c=a.J.pop(),d=void 0;b&&tpa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.ev=function(a){a=void 0===a?!1:a;g.G.call(this);this.Cd=new g.Sp(a);g.H(this,this.Cd)};
g.fv=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
gv=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.iv=function(a,b,c,d){g.ev.call(this);this.j=!!b;this.J=a;this.X=c||a;this.N=!!d;this.C=new bv(this);g.H(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.Gf&&a.setAttribute("draggable","true"),a.style.touchAction="none");hv(this)};
jv=function(a,b,c){a.C.T(a.X,b,c,void 0,!a.j)};
kv=function(a){g.dv(a.C,!a.j)};
hv=function(a){a.D=null;a.K=null;jv(a,lv("over"),a.QN);jv(a,"touchstart",a.tI);a.j&&jv(a,lv("down"),a.VV)};
upa=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};
lv=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
mv=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.gg(b);this.assets=a.assets||{};this.attrs=a.attrs||g.gg(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||{}};
vpa=function(a){a instanceof mv||(a=new mv(a));return a};
ov=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(nv)for(c=1,d=0;d<nv.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^nv.charCodeAt(d),c++;return b};
g.pv=function(a){a=ov(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.wpa=function(){return g.Kl(ov(16),function(a){return(a&15).toString(16)}).join("")};
qv=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.R)());g.D(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=Au();d=new Nq;g.D(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.Q("log_sequence_info_on_gel_web")&&c.gj){e=c.gj;var f=lpa(e),k=new Hja;g.D(k,2,f);g.D(k,1,e);xe(d,3,k);c.RL&&delete xpa[c.gj]}xe(a,33,d);(c.MH?Zoa:Woa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,hw:c.hw},b)};
rv=function(a,b){b=void 0===b?{}:b;var c=!1;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.fu===g.fu&&(c=!0);qv(a,c?null:g.fu,b)};
uv=function(a,b,c){var d=new Oq;ye(d,72,tv,a);c?qv(d,c,b):rv(d,b)};
ypa=function(a,b,c){var d=new Oq;ye(d,73,tv,a);c?qv(d,c,b):rv(d,b)};
zpa=function(a,b,c){var d=new Oq;ye(d,78,tv,a);c?qv(d,c,b):rv(d,b)};
Apa=function(a,b,c){var d=new Oq;ye(d,208,tv,a);c?qv(d,c,b):rv(d,b)};
Bpa=function(a,b,c){var d=new Oq;ye(d,156,tv,a);c?qv(d,c,b):rv(d,b)};
Cpa=function(a,b,c){var d=new Oq;ye(d,215,tv,a);c?qv(d,c,b):rv(d,b)};
Dpa=function(a,b,c){var d=new Oq;ye(d,111,tv,a);c?qv(d,c,b):rv(d,b)};
Cv=function(a){this.j=a};
g.Dv=function(a){return new Cv({trackingParams:a})};
Fpa=function(a){var b=Epa++;return new Cv({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
Ev=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
Fv=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Gpa=function(a){return g.P(Fv(void 0===a?0:a),void 0)};
g.Gv=function(a){return(a=Gpa(void 0===a?0:a))?new Cv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Hpa=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},Wq("csn-to-ctt-auth-info",a));return a};
g.Hv=function(a){a=g.P(Ev(void 0===a?0:a));if(!a&&!g.P("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Ipa=function(a,b,c){var d=Hpa();(c=g.Hv(c))&&delete d[c];b&&(d[a]=b)};
Iv=function(a){return Hpa()[a]};
Kpa=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(Ev(c))||b!==g.P(Fv(c)))Ipa(a,d,c),Wq(Ev(c),a),Wq(Fv(c),b),b=function(){setTimeout(function(){if(a)if(g.Q("web_time_via_jspb")){var e=new xja;g.D(e,1,Jpa);g.D(e,2,a);g.Q("use_default_heartbeat_client")?Dpa(e):Dpa(e,void 0,g.fu)}else e={clientDocumentNonce:Jpa,clientScreenNonce:a},g.Q("use_default_heartbeat_client")?g.As("foregroundHeartbeatScreenAssociated",e):Wu("foregroundHeartbeatScreenAssociated",e,g.fu)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):
b()};
Lpa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Mpa=function(){this.Kn=[];this.Om=[]};
Kv=function(){if(!Jv){var a=Jv=new Mpa;a.Om.length=0;a.Kn.length=0;Npa(a,Opa)}return Jv};
Npa=function(a,b){b.Om&&a.Om.push.apply(a.Om,b.Om);b.Kn&&a.Kn.push.apply(a.Kn,b.Kn)};
Ppa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Lv(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Lv(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Lv(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)};
Lv=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};
Qpa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Mv(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 k=b;var l=c;k="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Ppa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Mv(e+".ve",f,k,l):0;d+=k;d+=Mv(e,a[e],b,c);if(500<d)break}}else c[b]=Nv(a),d+=c[b].length;else c[b]=Nv(a),d+=c[b].length;return d};
Mv=function(a,b,c,d){c+="."+a;a=Nv(b);d[c]=a;return c.length+a.length};
Nv=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+")"}};
zs=function(a){g.S(a)};
g.Ov=function(a){g.S(a,"WARNING")};
g.S=function(a,b){var c=void 0===c?{}:c;c.name=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{},e=void 0===b?"ERROR":b;e=void 0===e?"ERROR":e;if(a){a.hasOwnProperty("level")&&a.level&&(e=a.level);if(g.Q("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=Rpa)){var k=Spa,l=Saa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.u||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var t=l.lineNumber||"Not available",v=l.fileName||"Not available",x=p,y=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var z=0;z<a.args.length&&!(y=Qpa(a.args[z],"params."+z,d,y),500<=y);z++);else if(a.hasOwnProperty("params")&&
a.params){var E=a.params;if("object"===typeof a.params)for(var I in E){if(E[I]){var K="params."+I,N=Nv(E[I]);d[K]=N;y+=K.length+N.length;if(500<y)break}}else d.params=Nv(E)}if(k.length)for(var aa=0;aa<k.length&&!(y=Qpa(k[aa],"params.context."+aa,d,y),500<=y);aa++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var J={message:m,name:n,lineNumber:t,fileName:v,stack:x,params:d,sampleWeight:1},oa=Number(a.columnNumber);isNaN(oa)||(J.lineNumber=J.lineNumber+":"+oa);
if("IGNORED"===a.level)var ia=0;else a:{for(var za=Kv(),jb=g.r(za.Om),Gb=jb.next();!Gb.done;Gb=jb.next()){var Ra=Gb.value;if(J.message&&J.message.match(Ra.nx)){ia=Ra.weight;break a}}for(var rc=g.r(za.Kn),Xc=rc.next();!Xc.done;Xc=rc.next()){var Hb=Xc.value;if(Hb.callback(J)){ia=Hb.weight;break a}}ia=1}J.sampleWeight=ia;for(var ke=g.r(Tpa),kb=ke.next();!kb.done;kb=ke.next()){var He=kb.value;if(He.CB[J.name])for(var ug=g.r(He.CB[J.name]),Pf=ug.next();!Pf.done;Pf=ug.next()){var le=Pf.value,Ud=J.message.match(le.Ng);
if(Ud){J.params["params.error.original"]=Ud[0];for(var sc=le.groups,eh={},Vd=0;Vd<sc.length;Vd++)eh[sc[Vd]]=Ud[Vd+1],J.params["params.error."+sc[Vd]]=Ud[Vd+1];J.message=He.sG(eh);break}}}J.params||(J.params={});var Gk=Kv();J.params["params.errorServiceSignature"]="msg="+Gk.Om.length+"&cb="+Gk.Kn.length;J.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(J.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Rg("sample").constructor!==
Pg&&(J.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(J);if(0!==J.sampleWeight&&!Upa.has(J.message)){if("ERROR"===e){Pv.ea("handleError",J);if(g.Q("record_app_crashed_web")&&0===Vpa&&1===J.sampleWeight)if(Vpa++,g.Q("errors_via_jspb")){var Zi=new wja;g.D(Zi,1,1);if(!g.Q("report_client_error_with_app_crash_ks")){var $i=new zq;g.D($i,1,J.message);var qd=new Aq;xe(qd,3,$i);var fh=new tja;xe(fh,5,qd);var aj=new vja;xe(aj,9,fh);xe(Zi,4,aj)}var qf=new Oq;ye(qf,
20,tv,Zi);rv(qf,void 0)}else{var bj={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.Q("report_client_error_with_app_crash_ks")||(bj.systemHealth={crashData:{clientError:{logMessage:{message:J.message}}}});g.As("appCrashed",bj)}Wpa++}else"WARNING"===e&&Pv.ea("handleWarning",J);if(g.Q("kevlar_gel_error_routing"))a:{var Gd=e;if(g.Q("errors_via_jspb")){if(Xpa())var cj=void 0;else{var rf=new rja;g.D(rf,1,J.stack);J.fileName&&g.D(rf,4,J.fileName);var Sc=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):
[];0!==Sc.length&&(1!==Sc.length||isNaN(Number(Sc[0]))?2!==Sc.length||isNaN(Number(Sc[0]))||isNaN(Number(Sc[1]))||(g.D(rf,2,Number(Sc[0])),g.D(rf,3,Number(Sc[1]))):g.D(rf,2,Number(Sc[0])));var sf=new zq;g.D(sf,1,J.message);g.D(sf,3,J.name);g.D(sf,6,J.sampleWeight);"ERROR"===Gd?g.D(sf,2,2):"WARNING"===Gd?g.D(sf,2,1):g.D(sf,2,0);var Qf=new sja;g.D(Qf,1,!0);ye(Qf,3,Ypa,rf);var Rf=new qja;g.D(Rf,3,window.location.href);for(var Hq=g.P("FEXP_EXPERIMENTS",[]),gh=0;gh<Hq.length;gh++)g.qe(Rf,5,Hq[gh]);var Hk=
g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0);if(!Zq("web_disable_gel_stp_ecatcher_killswitch")&&Hk)for(var Sl=g.r(Object.keys(Hk)),hh=Sl.next();!hh.done;hh=Sl.next()){var Ik=hh.value,dj=new yq;g.D(dj,1,Ik);dj.setValue(String(Hk[Ik]));Be(Rf,4,yq,dj)}var ej=J.params;if(ej){var Xb=g.r(Object.keys(ej));for(hh=Xb.next();!hh.done;hh=Xb.next()){var Ie=hh.value,Jk=new yq;g.D(Jk,1,"client."+Ie);Jk.setValue(String(ej[Ie]));Be(Rf,4,yq,Jk)}}var Kn=Xq("SERVER_NAME"),Ln=Xq("SERVER_VERSION");if(Kn&&Ln){var Bc=
new yq;g.D(Bc,1,"server.name");Bc.setValue(Kn);Be(Rf,4,yq,Bc);var Kk=new yq;g.D(Kk,1,"server.version");Kk.setValue(Ln);Be(Rf,4,yq,Kk)}var fj=new Aq;xe(fj,1,Rf);xe(fj,2,Qf);xe(fj,3,sf);cj=fj}var gj=cj;if(!gj)break a;var Mn=new Oq;ye(Mn,163,tv,gj);rv(Mn,void 0)}else{if(Xpa())var Nn=void 0;else{var hj={stackTrace:J.stack};J.fileName&&(hj.filename=J.fileName);var tf=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];0!==tf.length&&(1!==tf.length||isNaN(Number(tf[0]))?2!==tf.length||isNaN(Number(tf[0]))||
isNaN(Number(tf[1]))||(hj.lineNumber=Number(tf[0]),hj.columnNumber=Number(tf[1])):hj.lineNumber=Number(tf[0]));var Lk={level:"ERROR_LEVEL_UNKNOWN",message:J.message,errorClassName:J.name,sampleWeight:J.sampleWeight};"ERROR"===Gd?Lk.level="ERROR_LEVEL_ERROR":"WARNING"===Gd&&(Lk.level="ERROR_LEVEL_WARNNING");var ij={isObfuscated:!0,browserStackInfo:hj},ih={pageUrl:window.location.href,kvPairs:[]};g.P("FEXP_EXPERIMENTS")&&(ih.experimentIds=g.P("FEXP_EXPERIMENTS"));var Tl=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",
void 0);if(!Zq("web_disable_gel_stp_ecatcher_killswitch")&&Tl)for(var On=g.r(Object.keys(Tl)),jh=On.next();!jh.done;jh=On.next()){var Pn=jh.value;ih.kvPairs.push({key:Pn,value:String(Tl[Pn])})}var me=J.params;if(me){var Qn=g.r(Object.keys(me));for(jh=Qn.next();!jh.done;jh=Qn.next()){var Rn=jh.value;ih.kvPairs.push({key:"client."+Rn,value:String(me[Rn])})}}var hd=Xq("SERVER_NAME"),Sn=Xq("SERVER_VERSION");hd&&Sn&&(ih.kvPairs.push({key:"server.name",value:hd}),ih.kvPairs.push({key:"server.version",value:Sn}));
Nn={errorMetadata:ih,stackTrace:ij,logMessage:Lk}}var Tn=Nn;if(!Tn)break a;g.As("clientError",Tn)}("ERROR"===Gd||g.Q("errors_flush_gel_always_killswitch"))&&Ou()}if(!g.Q("suppress_error_204_logging")){var jj=J.params||{},vg={urlParams:{a:"logerror",t:"jserror",type:J.name,msg:J.message.substr(0,250),line:J.lineNumber,level:e,"client.name":jj.name},postParams:{url:g.P("PAGE_NAME",window.location.href),file:J.fileName},method:"POST"};jj.version&&(vg["client.version"]=jj.version);if(vg.postParams){J.stack&&
(vg.postParams.stack=J.stack);for(var Wd=g.r(Object.keys(jj)),Ul=Wd.next();!Ul.done;Ul=Wd.next()){var Vl=Ul.value;vg.postParams["client."+Vl]=jj[Vl]}var Mk=g.P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0);if(Mk)for(var Nk=g.r(Object.keys(Mk)),Wl=Nk.next();!Wl.done;Wl=Nk.next()){var Un=Wl.value;vg.postParams[Un]=Mk[Un]}var Vn=g.P("SERVER_NAME",void 0),Wn=g.P("SERVER_VERSION",void 0);Vn&&Wn&&(vg.postParams["server.name"]=Vn,vg.postParams["server.version"]=Wn)}g.Dr(g.P("ECATCHER_REPORT_HOST","")+
"/error_204",vg)}try{Upa.add(J.message)}catch(kj){}Rpa++}}}};
Xpa=function(){for(var a=g.r(Zpa),b=a.next();!b.done;b=a.next())if(Vr(b.value.toLowerCase()))return!0;return!1};
$pa=function(a){var b=g.Da.apply(1,arguments),c=a;c.args||(c.args=[]);c.args.push.apply(c.args,g.u(b))};
Qv=function(a){ut.call(this,1,arguments);this.csn=a};
dqa=function(a,b,c,d,e,f,k){function l(){g.Ov(new g.Fs("newScreen() parent element does not have a VE - rootVe",b))}
var m=aqa();f=new Cv({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,gj:m};if(g.Q("il_via_jspb")){var n=new Cq;n.hj(m);yja(n,f.getAsJspb());c&&c.visualElement?(f=new zja,c.clientScreenNonce&&g.D(f,2,c.clientScreenNonce),Aja(f,c.visualElement.getAsJspb()),k&&g.D(f,4,bqa[k]),xe(n,5,f)):c&&l();d&&g.D(n,3,d);Bpa(n,e,a)}else f={csn:m,pageVe:f.getAsJson()},c&&c.visualElement?(f.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},k&&(f.implicitGesture.gestureType=
k)):c&&l(),d&&(f.cloneCsn=d),a?Wu("screenCreated",f,a,e):g.As("screenCreated",f,e);xt(cqa,new Qv(m));return m};
g.Sv=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:Iv(b),
gj:b};d=g.r(d);for(var k=d.next();!k.done;k=d.next())k=k.value.getAsJson(),(g.bg(k)||!k.trackingParams&&!k.veType)&&g.Ov(Error("Child VE logged with no data"));if(g.Q("il_via_jspb")){var l=new Dq;l.hj(b);Cja(l,c.getAsJspb());g.Kl(e,function(m){m=m.getAsJspb();Be(l,3,Bq,m)});
"UNDEFINED_CSN"==b?Rv("visualElementAttached",l,f):Cpa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Kl(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Rv("visualElementAttached",c,f):a?Wu("visualElementAttached",c,a,f):g.As("visualElementAttached",c,f)};
g.Tv=function(a,b,c){var d={cttAuthInfo:Iv(a),gj:a};if(g.Q("il_via_jspb")){var e=new Fq;e.hj(a);b=b.getAsJspb();xe(e,2,b);g.D(e,4,1);c&&xe(e,3,void 0);"UNDEFINED_CSN"==a?Rv("visualElementShown",e,d):uv(e,d,void 0)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Rv("visualElementShown",e,d):g.As("visualElementShown",e,d)};
eqa=function(a,b,c,d,e,f){var k=(d=void 0===d?!1:d)?16:8,l={cttAuthInfo:Iv(b),gj:b,RL:d};g.Q("il_via_jspb")?(k=new Fq,k.hj(b),c=c.getAsJspb(),xe(k,2,c),g.D(k,4,d?16:8),e&&xe(k,3,f),"UNDEFINED_CSN"==b?Rv("visualElementHidden",k,l):ypa(k,l,a)):(d={csn:b,ve:c.getAsJson(),eventType:k},e&&(d.clientData=e),"UNDEFINED_CSN"==b?Rv("visualElementHidden",d,l):a?Wu("visualElementHidden",d,a,l):g.As("visualElementHidden",d,l))};
fqa=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f={cttAuthInfo:Iv(b),gj:b};if(g.Q("il_via_jspb")){var k=new Eq;k.hj(b);c=c.getAsJspb();xe(k,2,c);g.D(k,4,bqa[e]);d&&xe(k,3,void 0);"UNDEFINED_CSN"==b?Rv("visualElementGestured",k,f):zpa(k,f,a)}else e={csn:b,ve:c.getAsJson(),gestureType:e},d&&(e.clientData=d),"UNDEFINED_CSN"==b?Rv("visualElementGestured",e,f):a?Wu("visualElementGestured",e,a,f):g.As("visualElementGestured",e,f)};
gqa=function(){return g.Kc(Math.random()+"")};
Rv=function(a,b,c){Uv.push({payloadName:a,payload:b,options:c});Vv||(Vv=Ct(cqa,hqa))};
hqa=function(a){if(Uv){for(var b=g.r(Uv),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.Q("il_via_jspb"))switch(c.payload.hj(a.csn),c.payloadName){case "screenCreated":Bpa(c.payload,c.options);break;case "visualElementAttached":Cpa(c.payload,c.options);break;case "visualElementShown":uv(c.payload,c.options);break;case "visualElementHidden":ypa(c.payload,c.options);break;case "visualElementGestured":zpa(c.payload,c.options);break;case "visualElementStateChanged":Apa(c.payload,c.options);
break;default:g.Ov(new g.Fs("flushQueue unable to map payloadName to JSPB setter"))}else c.payload.csn=a.csn,Wu(c.payloadName,c.payload,null,c.options);Uv.length=0}Vv=0};
g.Wv=function(a,b){g.wc(b,function(c){var d={cttAuthInfo:Iv(a),gj:a};if(g.Q("il_via_jspb")){var e=new Fq;e.hj(a);c=c.getAsJspb();xe(e,2,c);g.D(e,4,4);"UNDEFINED_CSN"==a?Rv("visualElementShown",e,d):uv(e,d,void 0)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Rv("visualElementShown",e,d):g.As("visualElementShown",e,d)})};
g.Xv=function(a,b){g.wc(b,function(c){eqa(void 0,a,c,void 0,void 0,void 0)})};
g.Yv=function(a,b,c){fqa(void 0,a,b,c)};
Zv=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.bw=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.$v)():aw())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.cw=function(a){var b=aw(),c=(0,g.$v)();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};
iqa=function(){var a=(0,g.$v)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.dw=function(a){try{var b=aw(),c=(0,g.$v)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.ew=function(){return g.cw("yt-remote-session-screen-id")};
g.fw=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(jqa,""),c=c.replace(kqa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else lqa(a,b,c)};
lqa=function(a,b,c){c=void 0===c?null:c;var d=mqa(a),e=document.getElementById(d),f=e&&qpa(e),k=e&&!f;f?b&&b():(b&&(f=g.Fu(d,b),b=""+g.Sa(b),nqa[b]=f),k||(e=oqa(a,d,function(){qpa(e)||(ppa(e,"loaded","true"),g.Hu(d),g.tr(g.Ua(Soa,d),0))},c)))};
oqa=function(a,b,c,d){d=void 0===d?null:d;var e=g.Wh("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.Rj(e,g.Jp(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
mqa=function(a){var b=document.createElement("a");g.th(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Jh(a)};
iw=function(a){var b=g.Da.apply(1,arguments);if(!gw(a)||b.some(function(e){return!gw(e)}))throw Error("Only objects may be merged.");
var c=a;b=g.r(b);for(var d=b.next();!d.done;d=b.next())hw(c,d.value);return c};
hw=function(a,b){for(var c in b)if(gw(b[c])){if(c in a&&!gw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});hw(a[c],b[c])}else if(jw(b[c])){if(c in a&&!jw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);pqa(a[c],b[c])}else a[c]=b[c];return a};
pqa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,gw(c)?a.push(hw({},c)):jw(c)?a.push(pqa([],c)):a.push(c);return a};
gw=function(a){return"object"===typeof a&&!Array.isArray(a)};
jw=function(a){return"object"===typeof a&&Array.isArray(a)};
kw=function(a,b,c,d,e,f){g.G.call(this);this.j=a;this.u=c;this.B=d;this.D=e;this.C=f};
sqa=function(a,b,c){c.Fu?(lw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),qqa(a.D,b)):rqa(a.C,c.fm,b.slotId)};
uqa=function(a,b,c,d){var e=mw(a.B.get(),1);lw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return tqa(a.u.get(),c,d,e.clientPlaybackNonce,e.AL,e.daiEnabled,e)},b)};
ow=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!nw(a.Fa,c.value))return!1;return!0};
pw=function(a,b){this.yp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
wqa=function(a){vqa=void 0===a?!1:a};
T=function(a,b,c,d,e){d=void 0===d?{}:d;vqa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Fs(a);if(a.args)for(var f=g.r(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Ov(a)}};
qw=function(a,b,c,d,e,f,k){g.G.call(this);this.B=a;this.u=b;this.WD=c;this.La=d;this.C=e;this.j=f;this.Ha=k};
rw=function(){this.u=new Map;this.j=new Map;this.B=new Map};
tw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.pv(16)};
uw=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.pv(16)};
vw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.pv(16)};
ww=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.Gu=f};
xqa=function(a,b,c,d){this.B=a;this.Kd=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
xw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Ov(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
yw=function(a,b){return b&&b.test(a)?!0:!1};
zw=function(a){var b=yqa&&yqa.exec(a);return b?b[0]:g.Q("allow_music_base_url")&&(a=zqa&&zqa.exec(a))?a[0]:""};
Bqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Aqa),a,b,"Nielsen OCR URL")};
Dqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Cqa),a,b,"Active View 3rd Party Integration URL")};
Fqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Eqa),a,b,"Google/YouTube Brand Lift URL")};
Aw=function(a){var b=void 0===b?!1:b;return xw(yw(a,Gqa),a,b,"Trusted Stream URL")};
g.Bw=function(a){var b=void 0===b?!1:b;return xw(yw(a,Hqa),a,b,"Trusted Image URL")};
Jqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Iqa),a,b,"Trusted Ad Domain URL")};
Lqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Kqa),a,b,"Trusted Promoted Video Domain URL")};
Nqa=function(a){var b=void 0===b?!1:b;return xw(yw(a,Mqa),a,b,"Drm Licensor URL")};
Pqa=function(a,b){b=void 0===b?!1:b;return xw(yw(a,Oqa),a,b,"Captions URL")};
Qqa=function(a){a=new g.rk(a);g.sk(a,document.location.protocol);g.tk(a,document.location.hostname);document.location.port&&g.uk(a,document.location.port);return a.toString()};
Cw=function(a){a=new g.rk(a);g.sk(a,document.location.protocol);return a.toString()};
g.Ew=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Rqa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Dw.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.Ll(d.thumbnails,function(e){return g.Bw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Sqa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Tqa=function(a,b){switch(a.style){case Dw.CHAPTER_MARKER:return b?8:5;case Dw.AD_MARKER:return 6;case Dw.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Fw=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.Gw=function(a){return"crn_"+a};
g.Hw=function(a){return"crx_"+a};
Iw=function(a,b,c,d,e){g.Ew.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
Jw=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
Uqa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Vqa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Pp(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Pp(Math.max(0,b.B-b.j),0x7ffffffffffff):new Pp(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.j),a==d))break;return new Pp(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Kd;a=1E3*d.startSecs;if(c){if(a<b.u)return new Pp(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Pp(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Pp(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Kw=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Lw=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.r(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.Mw=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,k=null;var l=d.text;d.bold&&(k=Vh("B",null,k||l));d.italics&&(k=Vh("I",null,k||l));d.strikethrough&&(k=Vh("STRIKE",null,k||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,k=Vh("A",null,k||l),g.th(k,d.url),"TARGET_NEW_WINDOW"==d.target&&(k.target="_blank"));l=k||Vh("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Vh("SPAN",null,b)};
Nw=function(a,b){ut.call(this,1,arguments);this.timer=b};
Wqa=function(a,b){ut.call(this,1,arguments);this.j=a;this.timer=b};
Xqa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Yqa=function(a){var b=Ow(a);if(b.aft)return b.aft;a=g.P((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
Zqa=function(){var a;if(g.Q("csi_use_performance_navigation_timing")){var b,c,d,e=null==Pw?void 0:null==(a=Pw.getEntriesByType)?void 0:null==(b=a.call(Pw,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=Qw(e.requestStart),e.responseEnd=Qw(e.responseEnd),e.redirectStart=Qw(e.redirectStart),e.redirectEnd=Qw(e.redirectEnd),e.domainLookupEnd=Qw(e.domainLookupEnd),e.connectStart=Qw(e.connectStart),e.connectEnd=Qw(e.connectEnd),e.responseStart=Qw(e.responseStart),
e.secureConnectionStart=Qw(e.secureConnectionStart),e.domainLookupStart=Qw(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Pw.timing}else a=Pw.timing;return a};
Rw=function(){return g.Q("csi_use_time_origin")&&Pw.timeOrigin?Math.floor(Pw.timeOrigin):Pw.timing.navigationStart};
Qw=function(a){return Math.round(Rw()+a)};
Sw=function(a,b){g.Ja("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
Tw=function(a){return g.Ka("ytcsi."+(a||"")+"data_")||$qa(a)};
Uw=function(a){a=Tw(a);a.info||(a.info={});return a.info};
Ow=function(a){a=Tw(a);a.tick||(a.tick={});return a.tick};
Vw=function(a){a=Tw(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Ww=function(a){a=Vw(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
ara=function(a){a=Vw(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
Xw=function(a){var b=Tw(a).nonce;b||(b=g.pv(16),Tw(a).nonce=b);return b};
$qa=function(a){var b={tick:{},info:{}};g.Ja("ytcsi."+(a||"")+"data_",b,void 0);return b};
dra=function(a){var b=Ow(a||""),c=Yqa(a);c&&!bra&&(xt(cra,new Nw(Math.round(c-b._start),a)),bra=!0)};
era=function(a,b){for(var c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!era(a[d],b[d]))return!1;return!0};
fra=function(){if(Pw.getEntriesByType){var a=Pw.getEntriesByType("paint");if(a=g.$b(a,function(b){return"first-paint"===b.name}))return Qw(a.startTime)}a=Pw.timing;
return a.aW?Math.max(0,a.aW):0};
Yw=function(){var a=g.Ka("ytcsi.debug");a||(a=[],g.Ja("ytcsi.debug",a,void 0),g.Ja("ytcsi.reference",{},void 0));return a};
Zw=function(a){a=a||"";var b=gra();if(b[a])return b[a];var c=Yw(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
$w=function(a){a=a||"";var b=gra();b[a]&&delete b[a];var c=Yw(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
gra=function(){var a=g.Ka("ytcsi.reference");if(a)return a;Yw();return g.Ka("ytcsi.reference")};
ax=function(a){return hra[a]||"LATENCY_ACTION_UNKNOWN"};
mra=function(a,b,c){c=Vw(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in ira){c=ira[a];g.cc(jra,c)&&(b=!!b);a in kra&&"string"===typeof b&&(b=kra[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},k=0;k<b.length-1;k++){var l=b[k];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return iw({},d)}g.cc(lra,a)||g.Ov(new g.Fs("Unknown label logged with GEL CSI",a))};
bx=function(){this.j=0};
cx=function(){bx.j||(bx.j=new bx);return bx.j};
ex=function(a,b){dx[b]=dx[b]||{count:0};var c=dx[b];c.count++;c.time=(0,g.R)();a.j||(a.j=g.Qr(0,function(){var d=(0,g.R)(),e;for(e in dx)dx[e]&&6E4<d-dx[e].time&&delete dx[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Fs("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Ov(c)),!0):!1};
fx=function(a){$qa(a);nra();a||(g.P("TIMING_ACTION")&&Wq("PREVIOUS_ACTION",g.P("TIMING_ACTION")),Wq("TIMING_ACTION",""))};
jx=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;gx(c);$w(c);fx(c);Tw(c).useGel=!0;Zw(c||"").info.actionType=a;b.cttAuthInfo&&(Tw(c).cttAuthInfo=b.cttAuthInfo);Wq(c+"TIMING_ACTION",a);hx("_start",b.startTime,c);a={actionType:ax(a)};(b=g.Hv())&&"UNDEFINED_CSN"!==b&&(a.clientScreenNonce=b);ix(a,c);Sw(!0,c)};
g.kx=function(a,b,c,d){null!==b&&(Uw(c)[a]=b,(a=mra(a,b,c))&&ix(a,c,d))};
ix=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=Zw(b||""),iw(c.info,a),iw(Ww(b),a),c=Xw(b),b=Tw(b).cttAuthInfo,cx().info(a,c,b);else{c=new Kq;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":g.D(c,1,U[a[e]]);break;case "clientActionNonce":g.D(c,2,a[e]);break;case "clientScreenNonce":g.D(c,4,a[e]);break;case "loadType":g.D(c,3,a[e]);break;case "isPrewarmedLaunch":g.D(c,92,a[e]);break;case "isFirstInstall":g.D(c,55,a[e]);
break;case "networkType":g.D(c,5,lx[a[e]]);break;case "connectionType":g.D(c,26,mx[a[e]]);break;case "detailedConnectionType":g.D(c,27,nx[a[e]]);break;case "isVisible":g.D(c,6,a[e]);break;case "playerType":g.D(c,7,ox[a[e]]);break;case "clientPlaybackNonce":g.D(c,8,a[e]);break;case "adClientPlaybackNonce":g.D(c,28,a[e]);break;case "previousCpn":g.D(c,77,a[e]);break;case "targetCpn":g.D(c,76,a[e]);break;case "isMonetized":g.D(c,9,a[e]);break;case "isPrerollAllowed":g.D(c,16,a[e]);break;case "isPrerollShown":g.D(c,
17,a[e]);break;case "adType":g.D(c,12,a[e]);break;case "adTypesAllowed":g.D(c,36,a[e]);break;case "adNetworks":g.D(c,37,a[e]);break;case "previousAction":g.D(c,13,U[a[e]]);break;case "isRedSubscriber":g.D(c,14,a[e]);break;case "serverTimeMs":g.D(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.D(c,20,a[e]);break;case "targetVideoId":g.D(c,78,a[e]);break;case "adBreakType":g.D(c,21,px[a[e]]);break;case "isNavigation":g.D(c,25,a[e]);break;case "viewportHeight":g.D(c,29,a[e]);
break;case "viewportWidth":g.D(c,30,a[e]);break;case "screenHeight":g.D(c,84,a[e]);break;case "screenWidth":g.D(c,85,a[e]);break;case "browseId":g.D(c,31,a[e]);break;case "isCacheHit":g.D(c,32,a[e]);break;case "httpProtocol":g.D(c,33,a[e]);break;case "transportProtocol":g.D(c,34,a[e]);break;case "searchQuery":g.D(c,41,a[e]);break;case "isContinuation":g.D(c,42,a[e]);break;case "availableProcessors":g.D(c,43,a[e]);break;case "sdk":g.D(c,44,a[e]);break;case "isLocalStream":g.D(c,45,a[e]);break;case "navigationRequestedSameUrl":g.D(c,
64,a[e]);break;case "shellStartupDurationMs":g.D(c,70,a[e]);break;case "appInstallDataAgeMs":g.D(c,73,a[e]);break;case "latencyActionError":g.D(c,71,qx[a[e]]);break;case "actionStep":g.D(c,79,a[e]);break;case "jsHeapSizeLimit":g.D(c,80,a[e]);break;case "totalJsHeapSize":g.D(c,81,a[e]);break;case "usedJsHeapSize":g.D(c,82,a[e]);break;case "sourceVideoDurationMs":g.D(c,90,a[e]);break;case "adPrebufferedTimeSecs":g.D(c,39,a[e]);break;case "isLivestream":g.D(c,47,a[e]);break;case "liveStreamMode":g.D(c,
91,rx[a[e]]);break;case "adCpn2":g.D(c,48,a[e]);break;case "adDaiDriftMillis":g.D(c,49,a[e]);break;case "videoStreamType":g.D(c,53,sx[a[e]]);break;case "playbackRequiresTap":g.D(c,56,a[e]);break;case "performanceNavigationTiming":g.D(c,67,a[e]);break;case "transactionType":g.D(c,74,tx[a[e]]);break;case "playerRotationType":g.D(c,101,ux[a[e]]);break;case "allowedPreroll":g.D(c,10,a[e]);break;case "shownPreroll":g.D(c,11,a[e]);break;case "getHomeRequestId":g.D(c,57,a[e]);break;case "getSearchRequestId":g.D(c,
60,a[e]);break;case "getPlayerRequestId":g.D(c,61,a[e]);break;case "getWatchNextRequestId":g.D(c,62,a[e]);break;case "getBrowseRequestId":g.D(c,63,a[e]);break;case "getLibraryRequestId":g.D(c,66,a[e]);break;default:ora.includes(f)&&g.dr(new g.Fs("Codegen laipb translator asked to translate message field",""+f))}}catch(k){g.dr(Error("Codegen laipb translator failed to set "+f))}}vx(c,b)}};
vx=function(a,b){ara(b).push(a);Zw(b||"").jspbInfo.push(a);var c=Xw(b);b=Tw(b).cttAuthInfo;cx().jspbInfo(a,c,b)};
hx=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;Pw.mark&&(ib(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Pw.mark(d))}Zw(c||"").tick[a]=b||(0,g.R)();d=Vw(c);d.gelTicks&&(d.gelTicks[a]=!0);d=Ow(c);var e=b||(0,g.R)();d[a]=e;e=Xw(c);var f=Tw(c).cttAuthInfo;if("_start"===a){var k=cx();ex(k,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.Q("web_csi_via_jspb")?(f=new Dja,g.D(f,1,e),e=new Oq,ye(e,6,tv,f),rv(e,b)):g.As("latencyActionBaselined",{clientActionNonce:e},b))}else cx().tick(a,e,b,f);dra(c);return d[a]};
pra=function(a){var b="above_the_fold";Pw&&Pw.measure&&(ib(b,"measure_")||(b="measure_"+b),a?Pw.measure(b,a):Pw.measure(b))};
qra=function(a){var b=Uw(a),c=Ww(a);a=ara(a);for(var d=0;d<a.length;d++);return!!("ad_at"in b||"ad_at"in c)};
wx=function(a,b){b=Ow(b);return a in b};
xx=function(a,b,c){wx("_start",c)&&!wx(a,c)&&hx(a,b,c)};
yx=function(){switch(Hoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
gx=function(a){wx("_start",a)&&hx("aa",void 0,a)};
ura=function(){function a(f){var k=Zqa(),l=Rw();l&&(hx("srt",k.responseStart),1!==f.prerender&&hx("_start",l,void 0));f=fra();0<f&&hx("fpt",f);f=Zqa();f.isPerformanceNavigationTiming&&ix({performanceNavigationTiming:!0},void 0);hx("nreqs",f.requestStart,void 0);hx("nress",f.responseStart,void 0);hx("nrese",f.responseEnd,void 0);0<f.redirectEnd-f.redirectStart&&(hx("nrs",f.redirectStart,void 0),hx("nre",f.redirectEnd,void 0));0<f.domainLookupEnd-f.domainLookupStart&&(hx("ndnss",f.domainLookupStart,
void 0),hx("ndnse",f.domainLookupEnd,void 0));0<f.connectEnd-f.connectStart&&(hx("ntcps",f.connectStart,void 0),hx("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=Rw()&&0<f.connectEnd-f.secureConnectionStart&&(hx("nstcps",f.secureConnectionStart,void 0),hx("ntcpe",f.connectEnd,void 0));Pw&&"getEntriesByType"in Pw&&rra()}
var b=g.P("TIMING_INFO",{});if(g.Q("web_csi_via_jspb")){b=sra(b);vx(b);b=new Kq;g.D(b,25,!0);g.D(b,1,U[ax(g.P("TIMING_ACTION",void 0))]);var c=g.P("PREVIOUS_ACTION",void 0);c&&g.D(b,13,U[ax(c)]);(c=g.P("CLIENT_PROTOCOL"))&&g.D(b,33,c);(c=g.P("CLIENT_TRANSPORT"))&&g.D(b,34,c);(c=g.Hv())&&"UNDEFINED_CSN"!==c&&g.D(b,4,c);c=yx();1!==c&&-1!==c||g.D(b,6,!0);c=Uw();if("cold"===c.yt_lt&&(g.D(b,3,"cold"),a(c),c=tra(),0<c.length)){c=g.r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=new Jq;g.D(e,
1,d);Be(b,83,Jq,e)}}vx(b)}else{for(c in b)b.hasOwnProperty(c)&&g.kx(c,b[c]);b={isNavigation:!0,actionType:ax(g.P("TIMING_ACTION",void 0))};if(c=g.P("PREVIOUS_ACTION",void 0))b.previousAction=ax(c);if(c=g.P("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.P("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Hv())&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);c=yx();if(1===c||-1===c)b.isVisible=!0;c=Uw();if("cold"===c.yt_lt&&(b.loadType="cold",a(c),c=tra(),0<c.length))for(b.resourceInfo=[],c=g.r(c),d=c.next();!d.done;d=
c.next())b.resourceInfo.push({resourceCache:d.value});ix(b)}};
sra=function(a){var b=new Kq;a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;switch(c){case "GetBrowse_rid":var e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetGuide_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetHome_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetPlayer_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetSearch_rid":e=new Lq;g.D(e,1,c);g.D(e,2,
String(d));Mq(b,e);break;case "GetSettings_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetTrending_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "GetWatchNext_rid":e=new Lq;g.D(e,1,c);g.D(e,2,String(d));Mq(b,e);break;case "yt_red":g.D(b,14,!!d);break;case "yt_ad":g.D(b,9,!!d)}}return b};
vra=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);vh()&&a.setAttribute("nonce",vh());return c?(a=Pw.getEntriesByName(c))&&a[0]&&(a=a[0],c=Rw(),hx("rsf_"+b,c+Math.round(a.fetchStart)),hx("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
tra=function(){var a=[];if(document.querySelector&&Pw&&Pw.getEntriesByName)for(var b in zx)if(zx.hasOwnProperty(b)){var c=zx[b];vra(b,c)&&a.push(c)}return a};
rra=function(){var a=window.location.protocol,b=Pw.getEntriesByType("resource");b=g.Dn(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Ml(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(hx("wffs",Qw(b.startTime)),hx("wffe",Qw(b.responseEnd)))};
Bx=function(){return g.lt||g.Ax||g.Xr()&&19>Fma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
Cx=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.Dx=function(a,b){this.id=a;this.Fc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
Ex=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.Gx=function(a,b,c,d){return new Ex(g.Fx[a]||0,g.Fx[b]||0,c,d)};
Hx=function(a){var b=g.Fx.auto;return a.u===b&&a.j===b};
Jx=function(a){return Ix[a.j||a.u]||"auto"};
wra=function(a,b){b=g.Fx[b];return a.u<=b&&(!a.j||a.j>=b)};
Kx=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc&&!a.has(c.Fc.id)){var d=new g.Dx(c.id,c.Fc);a.add(c.Fc.id);this.audioTracks.push(d)}}};
Ara=function(a,b,c,d,e){var f={},k=new Set,l={};if(Lx(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Zb(),q=Mx(a,m.info,b,c.isLive,k);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Nx(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=xra(a,l[c]),l[c]=yra(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&&
--k.BP;b=g.Nf(l,function(v){return!!v.length});
e&&d({aftflt:Nx(l)});a.ib=zra(b,a);return b};
Mx=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Zb()||"266"===b.Zb())&&a.Wa)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.N&&b.video&&b.video.j<a.N)return"min"+a.N;if(a.Ya&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if(a.Xa&&b.video&&4320<=b.video.j&&32<b.video.fps)return"blk8khfr";if("(h"===b.j&&!c.D)return"enchdr";var f="MAC3"===b.j||"MEAC3"===b.j||"M"===b.j;if(d&&f&&!a.Ia)return"blk51live";if((a=c.u.get(b.j))&&
0<a.BP)return e.add(b.j),"byerr";e=Bra(c,b);if(!0!==e)return e;var k;return null==(k=b.video)||!(32<k.fps)||c.N&&(c.ma||Ox(c,Px.FRAMERATE))?!0:"capHfr"};
zra=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.J&&!(!a.meac3&&!a.MEAC3);return b.ma&&!(!a.m&&!a.M)||c||d};
Qx=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
Nx=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(Qx(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Zb())}return b.join(".")};
Cra=function(a,b,c,d,e){var f={},k={};g.Mf(b,function(l,m){l=l.filter(function(n){var p=n.Zb();if(!n.Sd)return k[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.Sd[c.flavor]&&!!c.j[q])||(k[p]=n.Sd[c.flavor]?"unspt":"noflv");return q}if(!Ox(a,Px.CRYPTOBLOCKFORMAT)&&!a.va||a.Z)return k[p]=a.Z?"disvp":"vpsub",!1}return c&&n.Sd[c.flavor]&&c.j[n.mimeType]?!0:(k[p]=c?n.Sd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(k).length&&e(k);return f};
Gra=function(a,b,c,d,e){function f(v){return!!l[v]}
var k=a.B||!!d,l=Ara(a,b,c,e,k);Rx(c)&&(l=Cra(b,l,d,k,e),k&&e({enflt:Nx(l)}));if(Lx(c))return e=g.$b(Object.values(l),function(v){return!!v.length&&!!v[0].audio}),k=g.$b(Object.values(l),function(v){return!!v.length&&!!v[0].video}),e&&k||Ir(),Jr(new Kx(k,e));
b=Dra(a);k&&e({audioPrefOrder:b.join("_")});b=g.$b(b,f);if(!b)return k&&e({noaudio:1}),Ir();b=l[b];l["9"]&&l.h&&c.Ef&&!a.Ja&&(k&&e({dltvp9:1}),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.j);p&&p.length&&(a.u.highestVp9Resolution=p[p.length-1].video.j);var q=[],t=[];if(a.xa&&!a.j)for(t=Era(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],k&&e({newhybpref:t.join(".")}),n=g.r(t),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(v){return v});
else 0<a.X&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(v){return v}));
if(q.length&&!a.j){Sx(q,b,t);if(k){k=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())k.push(c.value.Zb());e({hbdfmt:k.join(".")})}return Jr(new Kx(q,b))}q=Fra(a);q=g.$b(q,f);if(!q){if(l[m])return e=l[m],Sx(e,b),Jr(new Kx(e,b));k&&e({novideo:1});return Ir()}a.vb&&("1"===q||"1h"===q)&&l[d]&&(m=Tx(l[q]),Tx(l[d])>m&&(q=d));"9"===q&&l.h&&(d=Tx(l["9"]),Tx(l.h)>1.5*d&&(q="h"));a.jb&&c.isLive&&"("===q&&l.H&&1440>Tx(l["("])&&(q="H");k&&e({vfmly:Qx(q)});a=l[q];if(!a.length)return k&&e({novfmly:Qx(q)}),Ir();Sx(a,
b);return Jr(new Kx(a,b))};
Sx=function(a,b,c){c=void 0===c?[]:c;g.tc(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.j)+1;var k=c.indexOf(e.j)+1;f=0===f||0===k?k||-1:f-k}f||(f=e.Ob-d.Ob);return f});
g.tc(b,function(d,e){return e.Ob-d.Ob})};
yra=function(a){var b=Ml(a,function(c,d){return 32<d.video.fps?Math.min(c,d.video.width):c},Infinity);
Infinity>b&&(a=g.Dn(a,function(c){return 32<c.video.fps||c.video.width<b}));
Zr()&&(a=g.Dn(a,function(c){return"299"!==c.Zb()}));
return a};
xra=function(a,b){return b=g.Dn(b,function(c){return c.video.j<=a.qb})};
Tx=function(a){return Ml(a,function(b,c){return Math.max(b,c.video.j)},0)};
Hra=function(a){a=void 0===a?{}:a;var b=void 0===a.ql?!1:a.ql,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.fI?!1:a.fI;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Bx()?3:2:c&&d?-1:1};
Ira=function(a){return Hra({hasSubfragmentedFmp4:a.D.Fh,ql:a.D.Fh,defraggedFromSubfragments:a.nm,isManifestless:!0,fI:a.Ja})};
Jra=function(a){a=a.split("");Ux.OU(a,1);Ux.kG(a,15);Ux.OU(a,3);Ux.AE(a,66);Ux.AE(a,9);return a.join("")};
g.Vx=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
Wx=function(a){a.url||(a.url=Kra(a));return a.url};
Yx=function(a){Xx(a);return a.C};
Zx=function(a){return a.u?ib(a.u,"local"):"local"===a.B};
Lra=function(a){Xx(a);return g.Sf(a.j,function(b){return null!==b})};
Mra=function(a){Xx(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
$x=function(a,b){b=void 0===b?!1:b;Xx(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=Wx(a);c=new g.rk(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.tk(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.Vx(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.tk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.tk(c,"www.youtube.com"),d=c.toString()):d=Qqa(d);c=new g.Vx(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
Xx=function(a){if(a.u){if(!Aw(a.u)&&!a.u.startsWith("local"))throw new g.Fs("Untrusted URL",a.u);var b=g.Ak(a.u);a.B=b.C;a.C=b.j+(null!=b.u?":"+b.u:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=Nra(c);
Object.assign(a.j,ay(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=Ora[0](b),a.set("n",b),Ora.length||jja(""))}};
Kra=function(a){Xx(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Lra(a)){var c=[];g.Mf(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Nra=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Pra(c,a[b],a[b+1]);return c};
ay=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Pra(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Pra=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};
by=function(a,b,c,d,e,f,k,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Kd=m;this.endTime=b+c;this.j=k||0;this.range=f||null;this.pending=l||!1;this.Kd=m||null};
cy=function(){this.segments=[];this.j=null;this.u=!0};
Qra=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Zb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
dy=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Rra=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
ey=function(a,b){b=g.r(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
fy=function(a,b,c){return a.split(b).Br.split(c).HF};
gy=function(a){a.C=void 0;a.u=0;a.B=0};
hy=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
Sra=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
Tra=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!hy(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.j[k],f),f+=a.j[k].length;a.j.splice(d,a.u-d+1,e);gy(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
iy=function(a,b,c){a=Tra(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Ura=function(a){a=iy(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};
jy=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
Vra=function(a,b){a.focus(b);return hy(a,b,4)?Sra(a).getUint32(b-a.B):256*(256*(256*jy(a,b)+jy(a,b+1))+jy(a,b+2))+jy(a,b+3)};
ky=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
ly=function(a){return String.fromCharCode.apply(null,a)};
ny=function(a){return my?my.decode(a):ly(a)};
g.py=function(a){if(!a.length)return"";try{if(my)return my.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(k){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)oy[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;oy[e++]=55296|f>>10;f=56320|f&1023}oy[e++]=f}}f=String.fromCharCode.apply(String,oy);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
ry=function(a,b){var c;if(null==(c=qy)?0:c.encodeInto)return b=qy.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=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};
sy=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.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
ty=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
uy=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
vy=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
wy=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
yy=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
zy=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return ny(b)};
Wra=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
Ay=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};
Cy=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=By(this,"Sequence-Number");this.J=By(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=By(this,"Ingestion-Walltime-Us")/1E6;this.B=(By(this,"First-Frame-Time-Us")+By(this,"First-Frame-Uncertainty-Us"))/1E6;this.mj=By(this,"Target-Duration-Us")/1E6;this.u="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=By(this,"Crypto-Period-Index");
this.C=By(this,"Crypto-Period-Seconds")};
Yra=function(a){var b;a.data["Cuepoint-Type"]?b=new ww(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Xra[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Zra=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
By=function(a,b){return Number(a.data[b])||0};
g.$ra=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
asa=function(a,b){this.j=a;this.duration=b};
bsa=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
Dy=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};
csa=function(a,b){var c=g.Ey(a,0,1952868452);a=g.Ey(a,0,1953658222);if(c&&a){c.skip(1);var d=ty(c)<<16|uy(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=wy(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=ty(a)<<16|uy(a);if(c&256){d=c&1;e=c&4;var f=c&512,k=c&1024,l=c&2048;c=wy(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(k?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,k=wy(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(k*b):Math.floor(k*b)),a.skip(d)}}};
Gy=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Ey(a,0,1836476516))?g.Fy(a):NaN};
dsa=function(a){var b=g.Ey(a,0,1937011556);if(!b)return null;b=Hy(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Hy(a,b.dataOffset+78,1936995172),d=Hy(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),ty(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=Hy(a,d.dataOffset,1886547818)){var k=Hy(a,d.dataOffset,1886546020),l=Hy(a,d.dataOffset,2037673328);if(!l&&(l=Hy(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
vy(k)/65536,f=vy(k)/65536,e=vy(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new bsa(b,c,f,e,a)}return null};
Hy=function(a,b,c){for(;Iy(a,b);){var d=Jy(a,b);if(d.type===c)return d;b+=d.size}return null};
g.Ey=function(a,b,c){for(;Iy(a,b);){var d=Jy(a,b);if(d.type===c)return d;b=Ky(d.type)?b+8:b+d.size}return null};
g.Ly=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)};
Jy=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new sy(a,b,c,d)};
g.Fy=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
esa=function(a){a=new sy(a.data,a.offset,a.size,a.type,a.u);var b=ty(a);a.skip(7);var c=wy(a);if(0===b){b=wy(a);var d=wy(a)}else b=yy(a),d=yy(a);a.skip(2);for(var e=uy(a),f=[],k=[],l=0;l<e;l++){var m=wy(a);f.push(m);k.push(wy(a));a.skip(4)}return{lI:c,iU:b,uU:d,uZ:f,gI:k}};
Iy=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};
Ky=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
fsa=function(a){a.skip(4);return{JZ:zy(a,0),value:zy(a,0),lI:wy(a),Bha:wy(a),Wga:wy(a),id:wy(a),KN:zy(a),offset:a.offset}};
g.gsa=function(a){var b=Hy(a,0,1701671783);if(!b)return null;var c=fsa(b),d=c.JZ;c=Dy(c.KN);if(a=Hy(a,b.offset+b.size,1701671783))if(a=fsa(a),a=Dy(a.KN),c&&a){b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new Cy(c,d):null};
My=function(a,b){for(var c=Hy(a,0,b);c;)c.markAsSkip(),c=Hy(a,c.offset+c.size,b)};
g.Ny=function(a,b){for(var c=0,d=[];Iy(a,c);){var e=Jy(a,c);e.type===b&&d.push(e);c=Ky(e.type)?c+8:c+e.size}return d};
isa=function(a,b){var c=g.Ey(a,0,1937011556),d=g.Ey(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.Ey(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 Wra(a.byteLength+b);Ay(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;Ay(d,a,c.offset+16,c.size-16);Ay(d,e,e.byteOffset+f.dataOffset+8,b);Ay(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.Ey(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(hsa)return d.data;a=g.Ey(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
Oy=function(a,b){this.u=a;this.j=0;this.start=b||0};
Py=function(a){return a.j>=a.u.byteLength};
Uy=function(a,b,c){var d=new Oy(c);if(!Qy(d,a))return!1;d=Ry(d);if(!Sy(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Ty(d,!0);d=a+(d.start+d.j-b)+e;d=9<d?jsa(d-9,8):jsa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
ksa=function(a){var b=new Oy(a);b.Yw();if(Qy(b,[408125543,374648427,174,224]))b=Ry(b);else return null;for(var c=a=null;!Py(b);){var d=Ty(b,!1);if(21432===d)switch(Vy(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=Ry(b):Wy(b)}if(!c)return null;for(var e,f=d=b=null;!Py(c);)switch(Ty(c,!1)){case 30321:if(3!==Vy(c))return null;break;case 30324:b=Xy(c);break;case 30323:f=Xy(c);break;case 30325:d=Xy(c);break;case 30322:e=Ty(c,!0);e=Yy(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:Wy(c)}return e?new bsa(a,b,f,d,e):null};
Ry=function(a){var b=Ty(a,!0),c=a.u.byteOffset+a.j;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new Oy(c,a.start+a.j);a.j+=b;return c};
Vy=function(a){for(var b=Ty(a,!0),c=Zy(a),d=1;d<b;d++)c=256*c+Zy(a);return c};
Xy=function(a){var b=Ty(a,!0),c=0;4===b?c=a.u.getFloat32(a.j):8===b&&(c=a.u.getFloat64(a.j));a.j+=b;return c};
lsa=function(a){var b=Ty(a,!0);return ny(Yy(a,b))};
Zy=function(a){return a.u.getUint8(a.j++)};
Ty=function(a,b){var c=Zy(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+Zy(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+Zy(a),d*=128;return b?c-d:c};
Wy=function(a){var b=Ty(a,!0);a.j+=b};
msa=function(a){if(!Sy(a,440786851,!0))return null;var b=a.j;Ty(a,!1);var c=Ty(a,!0)+a.j-b;a.j=b+c;if(!Sy(a,408125543,!1))return null;Ty(a,!0);if(!Sy(a,357149030,!0))return null;var d=a.j;Ty(a,!1);var e=Ty(a,!0)+a.j-d;a.j=d+e;if(!Sy(a,374648427,!0))return null;var f=a.j;Ty(a,!1);var k=Ty(a,!0)+a.j-f,l=new Uint8Array(c+12+e+k),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,k),c+12+e);return l};
$y=function(a){var b=a.j;a.j=0;var c=1E6;Qy(a,[408125543,357149030,2807729])&&(c=Vy(a));a.j=b;return c};
nsa=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!az(a)||!Sy(a,160))return a.j=c,NaN;Ty(a,!0);var d=a.j;if(!Sy(a,161))return a.j=c,NaN;Ty(a,!0);Zy(a);var e=Zy(a)<<8|Zy(a);a.j=d;if(!Sy(a,155))return a.j=c,NaN;d=Vy(a);a.j=c;return(e+d)*b/1E9};
az=function(a){if(!osa(a)||!Sy(a,524531317))return!1;Ty(a,!0);return!0};
osa=function(a){if(a.Yw()){if(!Sy(a,408125543))return!1;Ty(a,!0)}return!0};
Qy=function(a,b){for(var c=0;c<b.length;c++){if(!Sy(a,b[c]))return!1;c!==b.length-1&&Ty(a,!0)}return!0};
Sy=function(a,b,c){c=void 0===c?!1:c;if(Py(a))return!1;for(var d=a.j;Ty(a,!1)!==b;)if(Wy(a),d=a.j,Py(a))return!1;c&&(a.j=d);return!0};
jsa=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};
Yy=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.j,b);a.j+=b;return c};
bz=function(a){this.fg=a;this.j={};this.url=""};
psa=function(a,b){var c=b.indexOf("?");if(0<c){var d=ay(b.substr(c+1));g.Mf(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Nra(b);g.Mf(b,function(e,f){this.set(f,e)},a)};
g.cz=function(a){a.url||(a.url=qsa(a));return a.url};
qsa=function(a){var b=Wx(a.fg),c=[];g.Mf(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Lra(a.fg)?"&":"?";return b+a+d};
dz=function(a,b){var c=new g.Vx(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Mf(a.j,function(d,e){c.set(e,null)});
return c};
rsa=function(){this.u=this.j=this.timedOut=this.started=this.B=0};
ssa=function(a){a.B=(0,g.R)();a.started+=1};
tsa=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.hh,d)};
ez=function(a,b){a[b]||(a[b]=new rsa);return a[b]};
usa=function(a){this.K=this.J=this.D=this.u=0;this.j=a;this.C=a.clone()};
gz=function(a,b,c){if(Zx(a.j))return!1;var d=ez(c,Yx(a.j));if(1<=d.timedOut||1<=d.j)if(a=fz(a,b),c=ez(c,Yx(a)),c.timedOut+c.j<=d.timedOut+d.j)return!0;return!1};
vsa=function(a,b,c){a=b?fz(a,c):a.j;return new bz(a)};
fz=function(a,b){b=b?b.vk:!1;a.B||(a.B=$x(a.C,b));return a.B};
wsa=function(a,b){var c=a.D+b.Dq*(a.u-a.D)+.25*a.J;b=c>b.Rf?1E3*Math.pow(b.hh,c-b.Rf):0;return 0===b?!0:a.K+b<(0,g.R)()};
hz=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.J=!1;this.C=null;this.N=0;this.D=this.B=null;this.info=b;this.u=new usa(a)};
iz=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)};
jz=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
kz=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new jz(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
lz=function(a,b){return new jz(a,a+b-1)};
xsa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
nz=function(a,b,c,d,e,f,k,l,m,n,p){this.type=a;this.j=b;this.range=c;this.K=[];this.D="";this.Ma=-1;this.X=!1;this.D=void 0===d?"":d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.Ab=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.N=!!n;a=this.range?this.Ab+this.u===this.range.length:void 0===p?!!this.u:p;this.ge=a;this.range?(this.B=this.startTime+this.duration*this.Ab/this.range.length,this.J=this.duration*this.u/this.range.length,this.C=this.B+this.J):ysa(this);3!==this.type||
0<=this.Ma||!this.j.Oj()||g.Ov(new g.Fs("b168859904",mz(this)))};
ysa=function(a){a.B=a.startTime;a.J=a.duration;a.C=a.B+a.J};
pz=function(a){if(oz){var b=a.X||a.j.index.gN(a.Ma);return a.ge&&b}return a.N};
zsa=function(a,b,c){var d=!(!b||b.j!==a.j||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.Ab+b.u===a.Ab+a.u:d};
qz=function(a){return 1===a.type||2===a.type};
rz=function(a){return 3===a.type||6===a.type};
sz=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ab+a.u===b.range.start+b.Ab:a.Ma===b.Ma?a.Ab+a.u===b.Ab:a.Ma+1===b.Ma&&0===b.Ab&&a.ge:!1};
Asa=function(a,b){return sz(a,b)||zh(a.C,b.B)||a.Ma+1===b.Ma&&0===b.Ab&&a.ge?!0:!1};
tz=function(a){return a.Ma+(a.ge?1:0)};
Bsa=function(a){1===a.length||g.Ll(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new jz(a[0].range.start+a[0].Ab,b.range.start+b.Ab+b.u-1)};
mz=function(a){a=uz(a);var b="";g.Mf(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
uz=function(a){var b={};b.itag=a.j.info.Zb();b.type=""+a.type;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Ab)+"-"+(a.range.start+a.Ab+a.u-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.J).toFixed(1);b.off=String(a.Ab);b.len=String(a.u);a.ge&&(b.end="1");pz(a)&&(b.eos="1");return b};
Csa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Ab>=b.range.start+b.Ab&&a.range.start+a.Ab+a.u<=b.range.start+b.Ab+b.u:a.Ma===b.Ma&&a.Ab>=b.Ab&&(a.Ab+a.u<=b.Ab+b.u||b.ge)};
Dsa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.gf()?(a=a.j.pu(a),Sm(a,function(c){return Dsa(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Ab+b.u>a.Ab&&b.Ab+b.u<=a.Ab+a.u};
Esa=function(a,b){var c=b.j;a.D="updateWithEmsg";a.Ma=c;b.u&&(oz?a.X=b.u:a.N=b.u)};
vz=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,ysa(a)};
wz=function(a,b){this.j=a;this.B=null;this.D=this.Ze=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";this.range=this.j[0].range&&0<this.j[0].u?Bsa(this.j):null};
xz=function(a){return!qz(a.j[a.j.length-1])};
yz=function(a){return 4===a.j[a.j.length-1].type};
g.zz=function(a,b,c){c=null===a.J?gz(a.u,b,c):a.J;if(a.B){b=c?$x(a.B,b.vk):a.B;var d=new bz(b);d.get("alr")||d.set("alr","yes");a.C&&psa(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new bz(new g.Vx(a.C)):(d=vsa(a.u,c,b),a.C&&psa(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Ht()&&1===a.j.length&&a.j[0].Ab&&d.set("range",a.j[0].Ab+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Ze)||d.set("headm",a.Ze.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Mf(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Fsa=function(a){if(a.range)return a.range.length;a=a.j[0];return Math.round(a.J*a.j.info.Ob)};
Gsa=function(a,b,c){if(0!==b.length){var d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=lz(e.Bz,c);d.push(new nz(3,a.j[0].j,f,"extendWithMediaSegments",e.bC-1,e.startTimeMs/1E3,e.durationMs/1E3))}return new wz(a.j.concat(d))}};
Hsa=function(a,b){if(a.B)return null;var c=a.j[0];if(a.range)var d=lz(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=lz(0,4096)}d=new nz(5,c.j,d,"createProbeRequestInfo"+c.D,c.Ma);d=new wz([d],a.C);d.J=b;d.B=a.B;return d};
Az=function(a,b,c,d,e,f){f=void 0===f?0:f;hz.call(this,a,b,d,void 0);this.K=c;this.mj=f;this.index=e||new cy};
Isa=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
Bz=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""};
Cz=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Jsa=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};
Ksa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Dz=function(){this.j=[];this.u=null;this.J=0;this.B=[];this.D=!1;this.K="";this.C=-1};
Lsa=function(a){var b=a.B;a.B=[];return b};
Msa=function(){this.C=[];this.j=null;this.u={};this.B={}};
Qsa=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"===f.nodeName?k=Nsa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",k=Osa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",k=Psa(a,f));if(null==k)return;k.update(e,c);g.kc(d,Lsa(k))}g.kc(a.C,d);qaa(a.C,function(l){return 1E3*l.startSecs+l.Gu})};
Rsa=function(a){a.j&&(a.j.j=[]);g.Mf(a.u,function(b){b.j=[]});
g.Mf(a.B,function(b){b.j=[]})};
Nsa=function(a){a.j||(a.j=new Dz);return a.j};
Osa=function(a,b){a.u[b]||(a.u[b]=new Dz);return a.u[b]};
Psa=function(a,b){a.B[b]||(a.B[b]=new Dz);return a.B[b]};
Ez=function(a){var b=void 0===a?{}:a;a=void 0===b.mj?0:b.mj;var c=void 0===b.Qk?!1:b.Qk,d=void 0===b.pm?0:b.pm,e=void 0===b.Ie?0:b.Ie,f=void 0===b.Jg?Infinity:b.Jg,k=void 0===b.lx?0:b.lx;b=void 0===b.hf?!1:b.hf;cy.call(this);this.B=this.qv=-1;this.C=null;this.Sg=a;this.pm=d;this.Qk=c;this.Ie=e;this.Jg=f;this.lx=k;this.hf=b};
Gz=function(a,b,c){b=Fz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
Fz=function(a,b){return qc(a.segments,function(c){return b-c.Ma})};
Hz=function(a,b,c){c=void 0===c?{}:c;Az.call(this,a,b,"",void 0,void 0,c.mj||0);this.index=new Ez(c)};
Iz=function(a,b,c){hz.call(this,a,b);this.K=c;this.index=new cy;this.index.u=!1};
Ssa=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 k=b===a.index.getLastSegmentNumber()&&0<c;a=new nz(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,k);return new wz([a],d)};
Tsa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.J;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,k=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new by(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}};
Jz=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
Kz=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
Lz=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.J=!1;this.D=this.info.j.Lt()&&!this.info.Ab};
Mz=function(a){return Tra(a.j)};
Usa=function(a,b){if(1!==a.info.j.info.containerType||a.info.Ab||!a.info.ge)return!0;a=Mz(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};
Vsa=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b),d=c.HF;c=c.Br;var e=new nz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ab,b,!1,!1);d=new Lz(e,d,a.B);a=new nz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ab+b,a.info.u-b,pz(a.info),a.info.ge);a=new Lz(a,c,!1);return[d,a]};
Wsa=function(a,b,c){var d;if(!(d=!sz(a.info,b.info)||a.info.ge)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?Rra(a.j,c.j[0]):1);d=c}if(d)return null;c=new nz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ab,a.info.u,pz(a.info),a.info.ge);d=b.info;c.u+=d.u;c.range&&(c.J+=d.J);c.C=d.C;c.ge=d.ge;c.N=pz(c)||pz(d);d=new dy;ey(d,a.j);ey(d,b.j);c=new Lz(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.j,a=!(1===a.j.length&&0<a.j[0].byteOffset);a&&(c.B=!1);return c};
Xsa=function(a){g.Nz(a.info.j.info)||a.info.j.info.De();if(-1!==a.C)return a.C;if(a.u&&Zra(a.u))return a.C=Zra(a.u),a.C;if(g.Nz(a.info.j.info)){var b=Mz(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;Iy(b,f);){var k=Jy(b,f);1936286840===k.type?e=k.data.getUint32(k.dataOffset+8):1836476516===k.type?e=g.Fy(k):1952867444===k.type&&isNaN(d)&&(d=g.Ly(k));f=Ky(k.type)?f+8:f+k.size}!e&&c&&(e=Gy(c));b=d/e}else b=new Oy(Mz(a)),c=a.D?b:new Oy(new DataView(a.info.j.j.buffer)),d=$y(c),c=b.j,b.j=0,az(b)?Sy(b,231)?(d=
Vy(b)*d/1E9,b.j=c,b=d):(b.j=c,b=NaN):(b.j=c,b=NaN);a.C=b||a.info.B;return a.C};
Zsa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Xsa(a)+b;Ysa(a,c);a.timestampOffset=b};
Ysa=function(a,b){g.Nz(a.info.j.info)||a.info.j.info.De();a.C=b;if(g.Nz(a.info.j.info)){var c=Mz(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;Iy(c,f);){var k=Jy(c,f);isNaN(d)&&(1936286840===k.type?d=k.data.getUint32(k.dataOffset+8):1836476516===k.type&&(d=g.Fy(k)));if(1952867444===k.type){!d&&a&&(d=Gy(a));var l=g.Ly(k);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(k.data.getUint8(k.dataOffset)){var m=k.data,n=k.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else k.data.setUint32(k.dataOffset+
4,l)}f=Ky(k.type)?f+8:f+k.size}return!0}c=new Oy(Mz(a));a=a.D?c:new Oy(new DataView(a.info.j.j.buffer));d=$y(a);a=c.j;c.j=0;if(az(c)&&Sy(c,231))if(e=Ty(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.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b};
Oz=function(a,b){b=void 0===b?!1:b;var c=$sa(a);a=b?0:a.info.J;return c||a};
$sa=function(a){g.Nz(a.info.j.info)||a.info.j.info.De();if(a.u&&6===a.info.type)return a.u.mj;if(g.Nz(a.info.j.info)){var b=Mz(a);var c=0;b=g.Ny(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=esa(d.value),c+=d.gI[0]/d.lI;c=c||NaN;if(!(0<=c))a:{c=Mz(a);b=a.info.j.j;for(var e=d=0,f=0;Iy(c,d);){var k=Jy(c,d);if(1836476516===k.type)e=g.Fy(k);else if(1836019558===k.type){!e&&b&&(e=Gy(b));if(!e){c=NaN;break a}var l=Hy(k.data,k.dataOffset,1953653094),m=e,n=Hy(l.data,l.dataOffset,1952868452);
l=Hy(l.data,l.dataOffset,1953658222);var p=vy(n);vy(n);p&2&&vy(n);n=p&8?vy(n):0;var q=vy(l),t=q&1;p=q&4;var v=q&256,x=q&512,y=q&1024;q&=2048;var z=wy(l);t&&vy(l);p&&vy(l);for(var E=t=0;E<z;E++){var I=v?vy(l):n;x&&vy(l);p&&0===E||!y||vy(l);q&&vy(l);t+=I}f+=t/m}d=Ky(k.type)?d+8:d+k.size}c=f||NaN}c||g.Ov(new g.Fs("Missing duration while parsing bmff",mz(a.info)))}else c=new Oy(Mz(a)),a=a.D?c:new Oy(new DataView(a.info.j.j.buffer)),c=nsa(c,$y(a));return c};
ata=function(a){var b=Mz(a);var c=(c=g.Ey(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.Ey(b,0,1836476516))?g.Fy(b):a?Gy(a):NaN);return c};
bta=function(a){if(!a.u){g.Nz(a.info.j.info)||a.info.j.info.De();if(g.Nz(a.info.j.info))var b=g.gsa(Mz(a));else{b=new Oy(Mz(a));var c=b.j;b.j=0;var d=null,e=null;if(Qy(b,[408125543,307544935]))for(var f=b.j+Ty(b,!0);b.j<f;)if(29555!==Ty(b,!1))Wy(b);else for(var k=b.j+Ty(b,!0);b.j<k;)if(26568!==Ty(b,!1))Wy(b);else for(var l=b.j+Ty(b,!0);b.j<l;){var m=Ty(b,!1);if(17543===m){if(m=lsa(b),m=Dy(m))if(e)for(var n=g.r(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=lsa(b),d||(d=m)):Wy(b)}b.j=c;b=e?new Cy(e,d):null}a.u=b}};
cta=function(a){if(!a.J){if(g.Nz(a.info.j.info)){var b=Mz(a);var c=Hy(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=msa(new Oy(Mz(a)));b&&(a.info.j.j=b,a.J=!0)}};
Pz=function(a,b,c,d,e){hz.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new Jz};
Qz=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var k=lz(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-k.start),p=Math.min(k.end+1,c+d)-(k.start+n),q=f===a.index.getLastSegmentNumber()&&n+p===k.length;e.push(new nz(3,a,k,"getRequestInfoForRange",f,l,m,n,p,q));if(k.start+n+p>=c+d)break}e.length||g.S(new g.Fs("b189619593",""+b,""+c,""+d));return new wz(e)};
Rz=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
dta=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Tz=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||Sz(a,b);this.j=g.Fx[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=k)||(a=g.Fx[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||""};
Sz=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=Uz[0];for(var d=0;d<Uz.length;d++){var e=Uz[d],f=g.Fx[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
Xz=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=Vz(b);this.j=Wz[this.Zb()]||""};
Yz=function(a){return"9"===a.j||"("===a.j||"9h"===a.j||"(h"===a.j};
Zz=function(a){return"9h"===a.j||"(h"===a.j};
$z=function(a){return"1"===a.j||"1h"===a.j};
g.Nz=function(a){return 1===a.containerType};
aA=function(a){return"application/x-mpegURL"===a.mimeType};
eta=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.j)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})};
bA=function(a){return a.includes("vtt")||a.includes("text/mp4")};
Vz=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};
fta=function(a,b,c,d,e){var f=new Rz;b in g.Fx||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.Fx[b],d=Math.round(16*e/9));d=new Tz(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new Xz(c,a,{audio:f,video:d})};
gta=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Gs)?void 0:c.toFixed(0))+", "+(null==(d=a.Ob)?void 0:d.toFixed(0))+")"};
g.cA=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.dA=function(){bv.apply(this,arguments)};
eA=function(){var a=g.Ka("yt.player.utils.videoElement_");a||(a=g.Wh("VIDEO"),g.Ja("yt.player.utils.videoElement_",a,void 0));return a};
fA=function(a){var b=eA();return!!(b&&b.canPlayType&&b.canPlayType(a))};
hta=function(a){try{var b=gA('video/mp4; codecs="avc1.42001E"')||gA('video/webm; codecs="vp9"');return(gA('audio/mp4; codecs="mp4a.40.2"')||gA('audio/webm; codecs="opus"'))&&(b||!a)||fA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
gA=function(a){if(/opus/.test(a)&&g.hA&&!Rp("38")&&!g.Xr())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Hma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!fA(a)};
iA=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
jA=function(){var a=eA();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
kA=function(){var a=eA();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
lA=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
mA=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)};
nA=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};
oA=function(a,b){return 0<=nA(a,b)};
ita=function(a,b){if(!a)return NaN;b=nA(a,b);return 0<=b?a.start(b):NaN};
pA=function(a,b){if(!a)return NaN;b=nA(a,b);return 0<=b?a.end(b):NaN};
qA=function(a){return a&&a.length?a.end(a.length-1):NaN};
jta=function(a,b){a=pA(a,b);return 0<=a?a-b:0};
rA=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 lA(d,e)};
sA=function(a,b,c,d){g.ev.call(this);var e=this;this.Id=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.HM={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
g.fv(this.Id,this.HM);this.Ny=this.isActive};
tA=function(a,b,c,d,e){g.ev.call(this);var f=this;this.jc=a;this.Xe=b;this.id=c;this.containerType=d;this.isVideo=e;this.nN=this.UA=this.Ue=null;this.appendWindowStart=this.timestampOffset=0;this.jL=lA([],[]);this.Dz=!1;this.ey=kta?[]:void 0;this.Mc=function(l){return f.ea(l.type,f)};
var k;if(null==(k=this.jc)?0:k.addEventListener)this.jc.addEventListener("updateend",this.Mc),this.jc.addEventListener("error",this.Mc)};
uA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
vA=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
wA=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaSource=a;this.Xe=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.dA(this);g.H(this,this.events);this.mx=new vA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Xe.webkitMediaSourceURL,!0);a=this.mediaSource||this.Xe;cv(this.events,a,["sourceopen","webkitsourceopen"],this.CY);cv(this.events,a,["sourceclose","webkitsourceclose"],this.BY)};
lta=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
mta=function(a,b){xA(a)?g.mi(function(){b(a)}):a.callback=b};
xA=function(a){try{return"open"===yA(a)}catch(b){return!1}};
yA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Xe.webkitSourceState){case a.Xe.SOURCE_OPEN:return"open";case a.Xe.SOURCE_ENDED:return"ended";default:return"closed"}};
zA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
nta=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Id:a.j,f=a.u.isView()?a.u.Id:a.u,k=new wA(a.mediaSource,a.Xe,!0);k.mx=a.mx;e=new sA(e,b,c,d);b=new sA(f,b,c,d);k.j=e;k.u=b;g.H(k,e);g.H(k,b);xA(a)||a.j.dC(a.j.qd());return k};
ota=function(a,b){return AA(function(c,d){return g.Gr(c,d,4,1E3)},a,b)};
g.pta=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=ny(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
AA=function(a,b,c){b.match(qta);return a(b,c).then(function(d){var e=g.pta(d.xhr);return e?AA(a,e,c):d.xhr})};
BA=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.ev.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Ia=this.duration=0;this.hf=this.N=this.isLive=this.u=!1;this.Jg=this.Ie=0;this.isOtf=this.Ef=!1;this.ya=(0,g.R)();this.X=Infinity;this.j={};this.state=this.ma=0;this.timeline=null;this.isManifestless=!1;this.Z=[];this.B=null;this.va=0;this.Ja="";this.xa=NaN;this.J=this.D=this.C=this.timestampOffset=this.K=0;this.Qa=!!b&&b.ob("html5_live_nonzero_first_segment_start_time");
this.Wa=!!b&&b.ob("html5_live_self_init_segments");this.withCredentials=!b||!b.ob("html5_manifest_without_credentials");this.Ea=!!b&&b.ob("disable_html5_manifest_namespace_redux");this.Sa=b&&b.ob("disable_html5_duration_caching")?Infinity:10;rta=!!b&&b.ob("html5_modern_vp9_mime_type");this.Xa=!!b&&b.ob("html5_mfl_skip_index_reset_for_smb")};
Era=function(a){return g.Sf(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
Rx=function(a){return g.Sf(a.j,function(b){return!!b.info.Sd})};
sta=function(a){return g.Sf(a.j,function(b){return bA(b.info.mimeType)})};
tta=function(a){return g.Sf(a.j,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
uta=function(a){return g.Sf(a.j,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
vta=function(a){return g.Sf(a.j,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
wta=function(a){return g.Sf(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
xta=function(a){return Tf(a.j,function(b){return b.info.video?b.lH():!0})};
Lx=function(a){return g.Sf(a.j,function(b){return Zx(b.u.j)})};
yta=function(a){return g.Sf(a.j,function(b){return!(b.index instanceof Jz)})};
CA=function(a,b){a.j[b.info.id]=b};
zta=function(a,b,c,d){c=void 0===c?0:c;var e=new BA("",null==d?void 0:d.experiments,!1);e.duration=c||0;g.wc(a,function(f){var k=DA(f,b,e.duration),l=kz(f.init),m=kz(f.index);(f=EA(f.url,f.sp,f.s))&&CA(e,new Pz(f,k,l,m,null==d?void 0:d.Bj))});
return e};
Ata=function(a,b,c,d){c=void 0===c?0:c;var e=new BA("",d,!1);e.duration=c||0;g.wc(a,function(f){var k=DA(f,b,e.duration),l=EA(f.url,f.sp,f.s);if(l)if(3===k.streamType)CA(e,new Iz(l,k,"sq/0"));else{var m=kz(f.init);f=kz(f.index);CA(e,new Pz(l,k,m,f))}});
e.isOtf=!0;return e};
DA=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 k=(a.size||"640x360").split("x");k=new Tz(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=Bta(d,k)}var l;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var m=new Rz(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(l=new g.cA(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(n=new dta(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var t={};for(var v=g.r(a.drm_families.split(",")),x=v.next();!x.done;x=v.next())x=x.value,t[x]=b[x]}return new Xz(e,d,{audio:m,video:k,Fc:l,Sd:t,Ob:f,Gs:c,contentLength:p,lastModified:q,captionTrack:n,streamType:+a.stream_type})};
Cta=function(a){return Sm(a,function(b){return 3===+b.stream_type})?3:0};
Dta=function(a,b){return a.timeline?lc(a.timeline.C,b):a.Z.length?lc(a.Z,b):[]};
EA=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.Vx(a,!0);a.set("alr","yes");c&&(c=Jra(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Hta=function(a,b){var c=Bz(b,"id");c=c.replace(":",";");var d=Bz(b,"mimeType"),e=Bz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(Bz(b,"bandwidth"))/8;var f=Number(Cz(b,"BaseURL").getAttribute(FA(a,"contentLength"))),k=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(Bz(b,"width"));var m=Number(Bz(b,"height")),n=Number(Bz(b,"frameRate")),p=Eta(Bz(b,FA(a,"projectionType")));a:switch(Bz(b,FA(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new Tz(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(Bz(b,"audioSamplingRate"));var v=Number(Bz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Fta(Bz(b,FA(a,"spatialAudioType")));t=new Rz(t,v,m);a:{v=Bz(b,"lang")||"und";if(m=Cz(b,"Role"))if(p=Bz(m,"value")||"",g.Yf(Gta,p)){m=v+"."+Gta[p];n="main"===p;a=Bz(b,FA(a,"langName"))||v+" - "+p;v=new g.cA(a,m,n);break a}v=void 0}}if(b=Cz(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var x={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new Xz(c,d,{audio:t,video:l,Fc:v,Sd:x,Ob:e,Gs:k,contentLength:f})};
Eta=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}};
Fta=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}};
Jta=function(a,b){b=void 0===b?"":b;a.state=1;a.ya=(0,g.R)();return ota(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.ma=c.status;c=c.responseText;var d=new DOMParser;c=Bda(d,Bia(c)).getElementsByTagName("MPD")[0];a.X=1E3*Jsa(Bz(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ea){b:{if(c.attributes){d=g.r(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.Ja=d}a.isLive=Infinity>a.X&&a.isLivePlayback;a.Ia=Number(Bz(c,FA(a,"earliestMediaSequence")))||0;if(d=Date.parse(Ksa(Bz(c,FA(a,"mpdResponseTime")))))a.va=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Ll(c.getElementsByTagName("Period"),a.hZ,a);a.state=2;a.ea("loaded");Ita(a)}return a}).Eh(function(c){if(c instanceof Er){var d=c.xhr;
a.ma=d.status}a.state=3;a.ea("loaderror");return si(d)})};
Kta=function(a,b,c){return Jta(new BA(a,b,c),a)};
GA=function(a){return a.isLive&&(0,g.R)()-a.ya>=a.X};
Ita=function(a){var b=a.X;isFinite(b)&&(GA(a)?a.refresh():(b=Math.max(0,a.ya+b-(0,g.R)()),a.B||(a.B=new g.L(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))};
Lta=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
HA=function(a){return a.C?a.C-(a.K||a.timestampOffset):0};
IA=function(a){return a.D?a.D-(a.K||a.timestampOffset):0};
JA=function(a){if(!isNaN(a.xa))return a.xa;var b=a.j,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.Sa&&(a.xa=b);return b}if(a.isLive&&(d=b[c],d.mj))return d.mj}return NaN};
Mta=function(a,b){a=ag(a.j,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};
Nta=function(a,b){g.Mf(a.j,function(c){g.Mf(b,function(d,e){var f=c.u;f.j.set(e,d);f.C.set(e,d);f.B&&f.B.set(e,d)})})};
Ota=function(a,b){if(!a.j["0"]){var c=new Xz("0","fakesb",{video:new Tz(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new Az(new g.Vx("http://www.youtube.com/videoplayback"),c,"fake"):new Pz(new g.Vx("http://www.youtube.com/videoplayback"),c,new jz(0,0),new jz(0,0))}};
KA=function(a,b,c){for(var d in a.j){var e=bA(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=Fz(e,b);0<=f&&e.segments.splice(f,1)}}};
FA=function(a,b){return a.Ea?"yt:"+b:a.Ja+":"+b};
Pta=function(a){a.D=0;a.C=0;a.J=0};
Bta=function(a,b){null===LA&&(LA=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(rta&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return!LA&&0<a.indexOf("vp09.00")?a='video/webm; codecs="vp9"':!LA&&0<a.indexOf("vp09.02")&&(a='video/webm; codecs="vp9.2"'),a;if(!LA&&!Qta||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;var c="00",d="08",e="01",f="01",k="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(k=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,k,"00"].join(".")+'"'};
Rta=function(){var a=g.cw("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.wh(Math.floor(b),0,100),muted:!!a.muted}};
Sta=function(a){g.bw("yt-player-bandwidth",a,2592E3)};
MA=function(a){a=void 0===a?2592E3:a;if(0<a&&!(iqa()>(0,g.R)()-1E3*a))return 0;a=g.cw("yt-player-quality");if("string"===typeof a){if(a=g.Fx[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
Tta=function(){var a=g.cw("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};
Uta=function(){var a={values:{},Dm:{}};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};
Vta=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
OA=function(a,b){return+NA()[Vta(a,b)]||8192};
NA=function(){return g.cw("yt-player-performance-cap")||{}};
Wta=function(a){g.bw("yt-player-watch-later-pending",a)};
Xta=function(){return!!g.cw("yt-player-headers-readable")};
Yta=function(a,b){g.bw("yt-player-bandaid-host",{primary:a,secondary:b},864E3)};
Zta=function(a){g.bw("yt-player-playback-on-reload",a)};
$ta=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.aua=function(){var a=g.cw("yt-player-caption-language-preferences");return a?a:[]};
bua=function(){this.rb=this.j=this.Ea=this.J=this.D=this.ma=this.ya=this.Qa=this.Sa=!1;this.N=this.K=0;this.Ya=!1;this.Wa=!0;this.Xa=!1;this.X=0;this.va=!1;this.qb=Infinity;this.bE=!1;this.vb=!0;this.Ja=this.Ia=!1;this.u={};this.jb=this.B=this.xa=!1;this.Qd=0;this.ib=!1};
Fra=function(a){if(a.Qa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.va&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.Z&&(b=(cua[a.Z]||[a.Z]).concat(b));return b};
Dra=function(a){var b=["o","a","A"];1===a.Qd&&(a.ma&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.J&&(b=["meac3","MEAC3"].concat(b)));a.Sa&&(b=["so","sa"].concat(b));!a.rb||a.Ea||a.C||b.unshift("a");a.ya&&b.unshift("ah");a.C&&(b=(cua[a.C]||[a.C]).concat(b));return b};
PA=function(a,b,c){b=void 0===b?{}:b;if(Ox(a.u,Px.AV1_CODECS)&&Ox(a.u,Px.HEIGHT)&&Ox(a.u,Px.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=$ta();if(d)return b.localPref=d}catch(k){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Gma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return $z(k)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(OA("1",c.fps),OA("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=OA("1",30),b.perfCap30=c,a=Math.min(a,c),c=OA("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
RA=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.N=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.QA(d,"html5_hdcp_probing_stream_url"):""};
TA=function(a){return a.N?!1:!a.keySystemAccess&&!!SA()&&"com.microsoft.playready"===a.keySystem};
UA=function(a){return"com.microsoft.playready"===a.keySystem};
VA=function(a){return!a.keySystemAccess&&!!SA()&&"com.apple.fps.1_0"===a.keySystem};
WA=function(a){return"com.youtube.fairplay"===a.keySystem};
g.XA=function(a){return"fairplay"===a.flavor};
SA=function(){var a=window,b=a.MSMediaKeys;$r()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
ZA=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.hA&&!g.Xr())return Rp("45");if(g.lt||g.Nc)return a.ob("edge_nonprefixed_eme");if(g.Ax)return Rp("47");if(g.Ns){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.YA(a,"html5_safari_desktop_eme_min_version"))return Rp(a)}return!0};
dua=function(a,b,c,d){var e=Yr(),f=(c=e||c&&$r())?["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.u(f),g.u($A.playready)):[].concat(g.u($A.playready),g.u(f))};
aB=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Aa=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.Ra()};
fua=function(a,b){a.callback=b;a.B=[];ZA(a.experiments)?bB(a):eua(a)};
bB=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=gua(a,c);a.Ra();navigator.requestMediaKeySystemAccess(b,d).then(er(function(e){if(!a.isDisposed()){a.Ra();c.keySystemAccess=e;if(UA(c)){e=eA();for(var f=g.r(Object.keys(a.C[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.j[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),k=f.next();!k.done;k=f.next())hua(a,c,k.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())hua(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),bB(a)):a.callback(a.B)}}),er(function(){a.Ra();
a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;a.D||a.j.shift();bB(a)}))}};
hua=function(a,b,c){a.S("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
gua=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};UA(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.hA&&Vr("windows nt")&&!a.S("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.S("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.S("html5_query_sw_secure_crypto_for_android")&&(fs()||Wr())&&(a.Aa("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
eua=function(a){if(SA()&&g.Ns)a.Ra(),a.B.push(new RA("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=iua(),c=g.$b(a.j,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k});
c?(a.Ra(),a.B.push(a.u[c])):a.Ra();a.j=[]}a.callback(a.B)};
iua=function(){var a=SA();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=eA();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
jua=function(){this.j=0};
kua=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=gr(b||"","&");var c={};g.wc(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.YA=function(a,b){return Number(a.flags[b])||0};
g.QA=function(a,b){return(a=a.flags[b])?a.toString():""};
cB=function(a,b,c){this.experiments=a;this.ma=b;this.va=void 0===c?!1:c;this.K=!!g.Ka("cast.receiver.platform.canDisplayType");this.J={};this.X=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.ob("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ka("cast.receiver.platform.getValue");this.C=!this.K&&a&&a("max-video-resolution-vpx")||null};
Bra=function(a,b,c){c=void 0===c?1:c;var d=b.Zb();if("0"===d)return!0;var e=b.mimeType;if(b.De()&&Yr()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if($z(b)&&a.X)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Ox(a,Px.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.hA?Rp(53):g.Ax&&Rp(64)))return"dopus";var f=c;f=void 0===
f?1:f;c={};b.video&&(b.video.width&&(c[Px.WIDTH.name]=b.video.width),b.video.height&&(c[Px.HEIGHT.name]=b.video.height),b.video.fps&&(c[Px.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[Px.EOTF.name]=b.video.u),b.Ob&&(c[Px.BITRATE.name]=8*b.Ob*f),"("===b.j&&(c[Px.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[Px.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[Px.CHANNELS.name]=b.audio.numChannels);a.B&&Yz(b)&&
(c[Px.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(Px));for(var k=f.next();!k.done;k=f.next()){k=Px[k.value];var l;if(l=c[k.name])(l=k===Px.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=a.experiments.ob("html5_ignore_h264_framerate_cap")&&k===Px.FRAMERATE&&("H"===l.j||"h"===l.j)),l=!(l||k===Px.DECODETOTEXTURE&&!a.experiments.ob("html5_decode_to_texture_cap"));if(l)if(Ox(a,k))if(a.C){if(a.C[k.name]<c[k.name])return k.name}else e=e+"; "+k.name+"="+c[k.name];else if(Zz(b)&&k===Px.EOTF)return"dvp92"}!a.experiments.ob("disable_html5_cast_hdcp_filter2")&&
a.K&&b.video&&1080<b.video.j&&b.Sd&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.ob("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
dB=function(){var a=Wr()&&!Rp(29),b=Vr("google tv")&&Vr("chrome")&&!Rp(30),c=Yr();return a||b||c?!1:lta()};
lua=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.j)&&Bra(a,e,c)){d=e.video.j;break}return d};
g.eB=function(a,b){b=void 0===b?!1:b;return dB()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(eA(),"application/x-mpegURL")?!0:!1};
Ox=function(a,b){b.name in a.J||(a.J[b.name]=mua(a,b));return a.J[b.name]};
mua=function(a,b){if(a.C)return!!a.C[b.name];if(b===Px.BITRATE&&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===Px.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)};
nua=function(a){a.N=!1;a.j=!0};
oua=function(a){a.B||(a.B=!0,a.j=!0)};
pua=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).tU);a.u.set(b,{tU:c+1,BP:Math.pow(2,c+1)});a.j=!0};
rua=function(a){return qua.then(a)};
fB=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;sua(a)}};
uua=function(a){a.j||(tua(function(){sua(a)}),a.j=!0)};
sua=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.R)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Gr(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.R)();5<a.queue.length&&uua(a)}};
gB=function(){g.ev.call(this);this.items={}};
xB=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(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.yB=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
zB=function(a){return 1===a||2===a};
AB=function(a,b){b=void 0===b?0:b;if(a instanceof g.yB)return a;a=a&&a instanceof Error?a:Error(""+a);zB(b)?g.S(a):g.Ov(a);return new g.yB(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
BB=function(a,b,c,d){function e(k){var l=!(204!==k.status&&200!==k.status&&!k.response),m;k={succ:""+ +l,rc:k.status,lb:(null==(m=k.response)?void 0:m.byteLength)||0,rt:((0,g.R)()-f).toFixed(),shost:g.Vi(a),trigger:b};vua(k,a);c&&c(k);d&&!l&&d(new g.yB("pathprobe.net",k))}
var f=(0,g.R)();g.Dr(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
vua=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed())};
DB=function(a,b,c,d){d=void 0===d?!1:d;g.G.call(this);this.experiments=a;this.K=b;this.N=c;this.u=d;this.j=new Map;this.C=[];CB(this,g.cw("yt-player-bandaid-host"))};
CB=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?wua(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
xua=function(a){var b=a.j.values(),c={};b=g.r(b);for(var d=b.next();!d.done;c={Bp:c.Bp},d=b.next()){c.Bp=d.value;d="https://"+c.Bp.Io+"/initplayback?c="+a.N+"&owc=1";var e=function(f){return function(k){f.Bp.end();k.ht=f.Bp.PM;f.Bp.AV=k}}(c);
c.Bp.start();BB(d,"pw",e)}};
yua=function(a){xua(a);var b=g.YA(a.experiments,"html5_onesie_prewarm_interval_ms"),c=g.YA(a.experiments,"html5_onesie_prewarm_max_lact_ms");b&&c&&(a.D=g.yr(function(){a.K()<c&&xua(a)},b))};
EB=function(a,b,c,d){BB("https://"+b+"/videoplayback?probe=1",c,function(e){d.S("html5_onesie_host_racing")&&!d.S("html5_onesie_probe_ec_hosts")&&(d.NA||d.GM());a.C.push(e)},function(e){a.C.push(e.details)})};
wua=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
zua=function(a){var b=a.C;a.C=[];return b};
GB=function(a){var b,c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j){b="https://redirector.googlevideo.com/initplayback?alr=yes&id=%s";if(1===a||2===a)b+="&cmo=sensitive_content=yes&sc=yes";2===a&&(b+="&cmo=td=c.youtube.com");c={format:"RAW",timeout:5E3};return g.A(n,Fr(b,c),2)}d=n.u;if(200!==d.xhr.status||!d.xhr.responseText)return n.return(Promise.reject(new g.Fs("b204258371_no_host",b,d.xhr.status)));e=d.xhr.responseText;k=(f=e.match(/https:\/\/([^\/]*)/))&&1<f.length?f[1]:null;m=(l=e.match(/[?|&]ms=([^&]*)/))&&
1<l.length?l[1]:null;return k&&Aua(k)?2!==a||FB(k)?n.return(k):n.return(Promise.reject(new g.Fs("b204258371_untrusted",b,k,m))):n.return(Promise.reject(new g.Fs("b204258371_invalid",b,k,m)))})};
Aua=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
FB=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
HB=function(a,b){this.Io=a;this.PM=b;this.endTimestamp=this.startTimestamp=-1};
IB=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
JB=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
PB=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Bua){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);KB=new Uint8Array(256);LB=JB(256);MB=JB(256);NB=JB(256);OB=JB(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;KB[f]=e;b=e<<1^(e>>7&&283);var k=b^e;LB[f]=b<<24|e<<16|e<<8|k;MB[f]=k<<24|LB[f]>>>8;NB[f]=e<<24|MB[f]>>>8;OB[f]=e<<24|NB[f]>>>8}Bua=!0}e=JB(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=(KB[a>>16&255]^d)<<24|KB[a>>8&255]<<16|KB[a&255]<<8|KB[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Cua=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.j=16};
Dua=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],k=3;0<=k&&!(a.counter[k]=-~a.counter[k]);k--);for(var l,m,n=4;40>n;)k=LB[c>>>24]^MB[d>>16&255]^NB[e>>8&255]^OB[f&255]^b[n++],l=LB[d>>>24]^MB[e>>16&255]^NB[f>>8&255]^OB[c&255]^b[n++],m=LB[e>>>24]^MB[f>>16&255]^NB[c>>8&255]^OB[d&255]^b[n++],f=LB[f>>>24]^MB[c>>16&255]^NB[d>>8&255]^OB[e&255]^b[n++],c=k,d=l,e=m;a=a.u;k=b[40];a[0]=KB[c>>>24]^k>>>24;a[1]=KB[d>>16&255]^k>>16&255;a[2]=KB[e>>8&255]^
k>>8&255;a[3]=KB[f&255]^k&255;k=b[41];a[4]=KB[d>>>24]^k>>>24;a[5]=KB[e>>16&255]^k>>16&255;a[6]=KB[f>>8&255]^k>>8&255;a[7]=KB[c&255]^k&255;k=b[42];a[8]=KB[e>>>24]^k>>>24;a[9]=KB[f>>16&255]^k>>16&255;a[10]=KB[c>>8&255]^k>>8&255;a[11]=KB[d&255]^k&255;k=b[43];a[12]=KB[f>>>24]^k>>>24;a[13]=KB[c>>16&255]^k>>16&255;a[14]=KB[d>>8&255]^k>>8&255;a[15]=KB[e&255]^k&255};
RB=function(){if(!Eua&&!g.lt){if(QB)return QB;var a;QB=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=QB)?0:b.importKey)&&(null==(c=QB)?0:c.sign)&&(null==(d=QB)?0:d.encrypt))return QB;QB=void 0}};
g.SB=function(a){this.C=a};
g.TB=function(a){this.u=a};
UB=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=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()};
Fua=function(a,b,c){for(var d=a.K,e=a.j[0],f=a.j[1],k=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,v,x,y=0;64>y;)16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=q+VB[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),v=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&k^f&k),q=t+v,l+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=
d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=p+VB[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),v=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+v,k+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=n+VB[y]+x+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^
~k&m),v=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+v,f+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],v=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[y]=x),t=m+VB[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&k^~f&l),v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=k,k=x,x=n,n=f,f=x,m=e+t,e=t+v,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=k+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
Hua=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 k=e%256;d[c-f]=k;e=(e-k)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Gua(a);return b};
Gua=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0};
XB=function(){this.B=this.j=0;this.u=Array.from({length:WB.length}).fill(0)};
Iua=function(){};
Jua=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1};
Kua=function(){this.profiles=new Iua};
YB=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new XB),a.profiles[b].Dl(c,d))};
ZB=function(){};
$B=function(){g.SB.apply(this,arguments)};
aC=function(){g.TB.apply(this,arguments)};
Lua=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
bC=function(a){try{return Oc(a)}catch(b){return null}};
Mua=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?bC(b.clientKey):null;var c=b.encryptedClientKey?bC(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new Lua(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=bC(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
cC=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
dC=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.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.J=Nua(this);this.B=c;this.D=d};
Nua=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
eC=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.tc(a.J,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.J[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
Oua=function(a){var b=new jua;this.policy=a;this.va=b;this.X=this.ma=0;this.D=-1;this.N=!1;this.Z=this.C=fC();this.K=new dC(4,1,.6,.4);this.j=new dC(10,1,.5,.4);this.B=a.j?new cC(a.u):new dC(a.u,20,.5,.4);this.J=new dC(5,1,.25);this.u=new dC(30,1,.5);a=g.cw("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.N=!0);this.B.Yg(this.policy.D,b);0<a.delay&&this.K.Yg(1,Math.min(a.delay,2));0<a.stall&&this.j.Yg(1,a.stall);0<a.init&&(this.Z=Math.min(a.init,this.Z));this.D=fC()};
gC=function(a){a=a.K.Eg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Pua=function(a,b,c){isNaN(c)||(a.X+=c);isNaN(b)||(a.ma+=b)};
hC=function(a){a=a.B.Eg();return 0<a?a:1};
iC=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=hC(a);d=1/((a.j.Eg()||0)+1/d);var e=a.J.Eg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+gC(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((eC(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
jC=function(a){return{delay:gC(a),stall:a.j.Eg()||0,byterate:hC(a),init:a.Z}};
kC=function(a){-1<a.D&&3E4<fC()-a.D&&(Sta(jC(a)),a.D=fC(),a.N=!0)};
Qua=function(a){return 4E3<=fC()-a.C};
Rua=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
Sua=function(a,b,c){var d=new Rua;a&&(d.j=!0,d.D=.1);c.ob("html5_pctile_bandwidth_estimator")&&(d.j=!1);b&&(d.B=b/8);d.C=480<=MA();return d};
Uua=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.G.call(this);var c=this;this.values=a;this.Dm=b;this.u={};this.B=this.j=0;this.C=new g.L(function(){Tua(c)},1E4);
g.H(this,this.C)};
lC=function(a,b){Vua(a,b);return a.values[b]&&a.Dm[b]?a.values[b]/Math.pow(2,a.j/a.Dm[b]):0};
Vua=function(a,b){a.values[b]||(b=Uta(),a.values=b.values||{},a.Dm=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Tua=function(a){var b=Uta();if(b.values){b=b.values;for(var c={},d=g.r(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]=lC(a,e);a.u=c}b=a.Dm;c={};c.values=a.u;c.halfLives=b;g.bw("yt-player-memory",c,2592E3)};
mC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
nC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
oC=function(a,b){return void 0===b||null===b?a:Number(b)};
pC=function(a,b){return void 0===b||null===b?a:b.toString()};
Wua=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.Ch(a,b)};
qC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Xua))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
rC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Q("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
OC=function(a,b,c){g.G.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ya=this.Xb=this.Ja=this.Rf=this.userDisplayName=this.userDisplayImage=this.Th="";this.deviceParams={};this.controlsType="0";this.rf=NaN;this.Tb=!1;this.Pd=(0,g.R)();this.ib=0;this.qj=this.zk=!1;this.xj=!0;this.nj=this.Wc=!1;this.Bj=null;this.D=!1;this.X=0;a=a?g.gg(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new kua(b?
b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.rb=b?b.serializedForcedExperimentIds:pC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.S("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:pC("",a.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(y){d=""}this.lc=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.j=mC(!1,b?b.isEmbed:a.is_embed);b&&b.device?Yua(this,
b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.S("wpcc_loader_url_killswitch")?this.loaderUrl=this.j||sC(this)&&b.loaderUrl?b.loaderUrl||"":this.lc:this.loaderUrl=this.j||sC(this)&&a.loaderUrl?pC("",a.loaderUrl):this.lc;this.S("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=pC("",a.embedsTokenValue));this.B=yw(this.loaderUrl,Zua);this.Mk=Jqa(this.loaderUrl);this.Qa=mC(!1,a.privembed);this.protocol=0===this.lc.indexOf("http:")?
"http":"https";this.Ea=zw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||zw(this.lc)||this.protocol+"://www.youtube.com/";this.Ia=$ua(this,b?b.eventLabel:a.el);Qoa();d=null;var e=b?b.playerStyle:a.ps,f=g.cc(ava,e);!e||f&&!this.B||(d=e);this.playerStyle=d;this.N=(this.C=g.cc(ava,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Lk=!this.N;this.xa=mC(!1,a.disableplaybackui);this.disablePaidContentOverlay=mC(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=
mC(!1,null==b?void 0:b.disableSeek);this.Dc=this.S("variable_playback_rate")?!0:eA().defaultPlaybackRate?tC||g.es||uC?g.Ax&&Rp("20")||g.hA&&Rp("4")||g.vC&&Rp("11")||as():!(g.vC&&!Vr("chrome")||tC||Vr("android")||Vr("silk")):!1;this.Hk=mC(!1,a.enable_faster_speeds);this.isMobile=mC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Kk=bva(this);this.va=kA();this.Xl=g.wC;this.uj=mC(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.eh=!(!b||!b.embedsEnablePfpImaIntegration||
this.S("embeds_pfp_ima_integration_killswitch"));this.ma=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.S("embeds_web_enable_utm_params"));this.pfpChazalUi=this.eh||mC(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.S("embeds_pfp_chazal_ui_killswitch"));var k;b?void 0!==b.hideInfo&&(k=!b.hideInfo):k=a.showinfo;this.yk=g.xC(this)&&!this.uj||mC(!yC(this)&&!zC(this)&&!this.C,k);this.vk=b?!!b.mobileIphoneSupportsInlinePlayback:mC(!1,a.playsinline);k=this.isMobile&&AC&&null!=BC&&0<BC&&2.3>=BC;d=b?b.useNativeControls:
a.use_native_controls;this.J=g.xC(this)&&this.isMobile;e=this.isMobile&&!this.J;d=CC(this)||!k&&mC(e,d)?"3":"1";e=b?b.controlsType:a.controls;this.controlsType="0"!==e&&0!==e?d:"0";this.oe=this.isMobile;this.color=nC("red",b?b.progressBarColor:a.color,cva);this.Vl="3"===this.controlsType||mC(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Db=!this.j;this.wj=(d=!this.Db&&!zC(this)&&!this.N&&!this.C&&!yC(this))&&!this.Vl&&"1"===this.controlsType;this.Rb=g.DC(this)&&d&&"0"===
this.controlsType&&!this.wj;this.cm=this.Wl=k;this.Gb=("3"===this.controlsType||this.isMobile||mC(!1,a.use_media_volume))&&!this.J;this.yj=EC&&!g.Fc(601)?!1:!0;this.Jk=this.j||!1;this.md=zC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=pC("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||mC(!0,l);k=!0;b&&b.disableMdxCast&&(k=!1);this.jb=this.S("enable_cast_for_web_unplugged")&&g.FC(this)&&k||this.S("enable_cast_on_music_web")&&
g.GC(this)&&k||l&&k&&"1"===this.controlsType&&!this.isMobile&&(zC(this)||g.DC(this)||g.HC(this))&&!g.IC(this);this.Zl=iA()||jA();l=b?!!b.supportsAutoplayOverride:mC(!1,a.autoplayoverride);this.Sh=!this.isMobile&&!Vr("nintendo wiiu")&&!Vr("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:mC(!1,a.mutedautoplay);k=this.S("embeds_enable_muted_autoplay")&&g.xC(this);this.me=l&&k&&this.va&&!CC(this);l=(zC(this)||yC(this))&&"blazer"===this.playerStyle;this.fh=b?!!b.disableFullscreen:!mC(!0,a.fs);this.Xa=!this.fh&&
(l||g.Yu());this.ej=this.S("uniplayer_block_pip")&&(Wr()&&Rp(58)&&!fs()||cs);l=g.xC(this)&&!this.uj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Lb=l||mC(!this.C,m);this.xk=mC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=fs()&&0<BC&&4.4>=BC?"_top":"_blank";this.Ud=g.HC(this);this.oh=mC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "books":m="gb";break;
case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.ya=m;this.authUser=pC("",b?b.authorizedUserIndex:a.authuser);this.bd=g.xC(this)&&(this.Qa||this.S("embeds_web_enable_hiding_login_buttons")&&(!Cma()||fs()||ds())||this.S("embeds_web_enable_always_hiding_login_buttons"));var n;b?void 0!==
b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Ak=((m=!this.bd)||!!this.authUser&&m)&&mC(!this.N,this.B?n:void 0);this.gg=b?b.isMobileDevice||!!b.disableKeyboardControls:mC(!1,a.disablekb);this.loop=mC(!1,a.loop);this.pageId=pC("",!this.S("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Yl=mC(!0,a.canplaylive);this.qb=mC(!1,a.livemonitor);this.disableSharing=mC(this.C,b?b.disableSharing:a.ss);this.zj=Wua(b&&this.S("fill_video_container_size_override_from_wpcc")?
b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:mC(!1,a.mute);this.storeUserVolume=!this.mute&&mC("0"!==this.controlsType,b&&!this.S("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:nC(void 0,n,JC);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":pC("",a.cc_lang_pref);n=nC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,
JC);"3"===this.controlsType&&2===n&&(n=3);this.Wa=n;this.Qf=b?b.hl||"en_US":pC("en_US",a.hl);this.region=b?b.contentRegion||"US":pC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":pC("en",a.host_language);this.Bk=!this.Qa&&Math.random()<g.YA(this.experiments,"web_player_api_logging_fraction");this.Sa=!this.Qa;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:mC(!0,a.deviceHasDisplay);this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.rf=oC(this.rf,a.ismb);
this.Aj=dva(this,a);KC(this,a,!0);this.Z=new gB;g.H(this,this.Z);this.hh=eva(this,a,b);this.wk=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new cB(this.experiments,this.S("html5_force_hfr_support")?!0:LC(this)||Zr()||Hma()||fva(this),g.hA&&g.Fc(56)||g.Ax&&g.Fc(54)||fva(this));this.schedule=new Oua(Sua(g.MC(this),this.rf,this.experiments));var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:mC(!1,a.enable_safety_mode);p=this.xa?!1:zC(this)&&"blazer"!==this.playerStyle;
var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Ub=mC(p,!this.N&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:mC(!1,a.send_visitor_id_header);var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=mC(!1,t);this.Ik=LC(this)&&this.S("enable_skip_intro_button");this.embedConfig=pC("",b?b.serializedEmbedConfig:a.embed_config);this.bj=gva(a);this.D="EMBEDDED_PLAYER_MODE_PFL"===this.bj;this.vb=
mC(!1,a.full_window);this.Hb=!g.FC(this)&&!NC(this)&&!g.IC(this)&&!0;var v;this.livingRoomAppMode=nC("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null==(v=b.device)?void 0:v.livingRoomAppMode:a.living_room_app_mode,hva);this.transparentBackground=b?!!b.transparentBackground:mC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:mC(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:mC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:
mC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=mC(!1,a.showbackbutton);var x;this.xj=null!=(x=a.show_loop_video_toggle)?x:!0;this.Ul=1E-4>Math.random();this.Cd=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Mua(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.S("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Pc=new Uua;g.H(this,this.Pc);this.nj=mC(!1,
a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.Nk=g.P("LOGGED_IN",!1);this.cg=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=pC("",b?b.embedsRct:a.rct);this.cj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;if(this.S("html5_onesie")||this.S("html5_host_selector"))this.Ah=new DB(this.experiments,function(){return Au()},this.deviceParams.c,this.S("html5_onesie_prefer_trusted_host")),g.H(this,this.Ah);
this.S("html5_high_res_logging")?this.X=2:1>4096*Math.random()&&(this.X=1);this.S("html5_ping_queue")&&(this.lh=new fB)};
KC=function(a,b,c){c=void 0===c?!1:c;a.Xb=pC(a.Xb,b.video_id);a.Ja=pC(a.Ja,b.eventid);a.Ja&&(nv=a.Ja);for(var d=[],e=g.r(Object.keys(iva)),f=e.next();!f.done;f=e.next()){f=iva[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0<d.length&&a.Ul&&(d.sort(),g.Ov(new g.Fs("Player client parameters changed after startup",d)));a.userAge=oC(a.userAge,b.user_age);a.Th=pC(a.Th,b.user_display_email);a.userDisplayImage=pC(a.userDisplayImage,b.user_display_image);g.Bw(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=pC(a.userDisplayName,b.user_display_name);a.Rf=pC(a.Rf,b.user_gender);a.csiPageType=pC(a.csiPageType,b.csi_page_type);a.csiServiceName=pC(a.csiServiceName,b.csi_service_name);a.oh=mC(a.oh,b.enablecsi);a.pageId=pC(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Qd=b.living_room_session_po_token.toString())};
$ua=function(a,b){var c="detailpage";"adunit"===b?c=a.j?"embedded":"detailpage":"embedded"===b||a.B?c=nC(c,b,jva):b&&(c="embedded");return c};
eva=function(a,b,c){var d=c?c.innertubeApiKey:pC("",b.innertube_api_key),e=c?c.innertubeApiVersion:pC("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:pC("",b.innertube_context_client_version);d=g.P("INNERTUBE_API_KEY",void 0)||d;e=g.P("INNERTUBE_API_VERSION",void 0)||e;c=g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");var f=a.deviceParams.c;var k="number"===typeof a.deviceParams.c?Number(a.deviceParams.c):Object.keys(kva).indexOf(a.deviceParams.c);return{innertubeApiKey:d,innertubeApiVersion:e,
FA:c,GA:f,UM:k,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,QF:a.hostLanguage,PF:a.region,VM:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",XM:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),RF:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
PC=function(a,b){return!a.C&&Wr()&&Rp(55)&&"3"===a.controlsType&&!b};
g.RC=function(a){a=QC(a.Ea);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.SC=function(a){return g.IC(a)?"music.youtube.com":g.RC(a)};
TC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
UC=function(a){return zC(a)&&!g.FC(a)};
CC=function(a){return EC&&!a.vk||Vr("nintendo wiiu")||Vr("nintendo 3ds")?!0:!1};
g.IC=function(a){return"music-embed"===a.playerStyle};
g.MC=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
lva=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
sC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
fva=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.VC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
LC=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.WC=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
NC=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.FC=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
XC=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.YC=function(a){return g.FC(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||XC(a)};
g.GC=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.ZC=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
g.$C=function(a){return!a.S("web_player_i_see_captions_killswitch")&&g.WC(a)};
aD=function(a){return a.S("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.WC(a)};
mva=function(a){return!a.S("web_player_larger_tap_buttons_killswitch")&&g.WC(a)&&!g.DC(a)};
bva=function(a){if(a.isMobile)return!a.C;var b=Number(Date.now()/1E3),c=g.ns.getInstance();return a.S("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
bD=function(a){return a.S("html5_device_is_audio_only")?a.deviceIsAudioOnly:!a.deviceHasDisplay};
g.dD=function(a){var b;(b=bD(a)||!g.hA||cs||"3"===a.controlsType?!1:g.es?a.j&&g.Fc(51):!0)||(b=bD(a)||!g.Ax||cs||"3"===a.controlsType?!1:g.es?a.j&&g.Fc(48):g.Fc(38));b||(b=bD(a)||!g.vC||cs||"3"===a.controlsType?!1:g.es?a.j&&g.Fc(37):g.Fc(27));return b||!bD(a)&&g.cD&&!bs()&&g.Fc(11)||!bD(a)&&g.Ns&&g.Fc("604.4")};
nva=function(a){if(g.DC(a)&&AC)return!1;if(g.Ax){if(!g.Fc(47)||!g.Fc(52)&&g.Fc(51))return!1}else if(g.Ns)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
zC=function(a){return"detailpage"===a.Ia};
g.DC=function(a){return"embedded"===a.Ia};
eD=function(a){return"leanback"===a.Ia};
yC=function(a){return"adunit"===a.Ia||"gvn"===a.playerStyle};
g.HC=function(a){return"profilepage"===a.Ia};
g.xC=function(a){return a.j&&g.DC(a)&&!yC(a)&&!a.C};
gva=function(a){var b=a.raw_embedded_player_response;b||(a=a.embedded_player_response)&&(b=JSON.parse(a));return b?nC("EMBEDDED_PLAYER_MODE_UNKNOWN",b.embeddedPlayerMode,ova):"EMBEDDED_PLAYER_MODE_UNKNOWN"};
dva=function(a,b){a.Lk?(b=b.vss_host||"s.youtube.com","s.youtube.com"===b&&(b=QC(a.Ea)||"www.youtube.com")):b="video.google.com";return b};
fD=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.Ov(new g.Fs("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.gD=function(a){var b=g.SC(a);!a.S("yt_embeds_disable_new_error_lozenge_url")&&pva.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Yua=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)};
hD=function(a){return 1<=a.X};
QC=function(a){var b=g.Vi(a);return(a=Number(g.Ui(4,a))||null)?b+":"+a:b};
iD=function(a){this.j=a};
jD=function(a,b,c){if(c)return Ir();var d={};c=eA();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Af().mimeType)){var f=e.j.video.quality;if(!d[f]||d[f].Af().De())d[f]=e}var k=[];d.auto&&k.push(d.auto);g.wc(Uz,function(l){(l=d[l])&&k.push(l)});
return k.length?Jr(k):Ir()};
qva=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.j=""};
rva=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Fc)?void 0:d.getId())===b});
a.j=b};
kD=function(a,b,c){a.cpn&&(b=g.nj(b,{cpn:a.cpn}));c&&(b=g.nj(b,{xha:c}));return b};
sva=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
tva=function(a){for(var b=[],c=[],d=g.r(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,k){return k.bitrate-f.bitrate});
c.sort(function(f,k){return f.bitrate-k.bitrate});
a.u=b.concat(c)};
uva=function(a){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;var b;this.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.Su=a.Su;this.Sd=a.Sd||"";this.Fc=a.Fc;this.audioChannels=a.audioChannels;this.j=""};
vva=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.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var k=f.type;f.audio_channels&&(k=k+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(k)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){k=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&&(k=new g.cA(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new uva({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,Su:n?l[n]:void 0,Sd:f.drm_families,Fc:k,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
lD=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
wva=function(a,b){if(!(cs||$r()||Yr()))return null;a=vva(b,a.S("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var k=f.value;k.Fc&&(f=k.Fc.getId(),c[f]||(k=new g.Dx(f,k.Fc),c[f]=k,b.push(k)))}}return 0<b.length?b:null};
Bva=function(a,b,c,d,e,f,k){if(!(cs||$r()||Yr()))return Ir();var l={},m=xva(c),n=vva(c,a.S("html5_filter_fmp4_in_hls"),a.u.D,l);if(!n)return k({noplst:1}),Ir();yva(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],v=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new uva({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Fc:new g.cA("English","en",!1)}):null;for(var z=g.r(Object.keys(n)),E=z.next();!E.done;E=z.next())if(E=E.value,!a.S("html5_disable_drm_hfr_1080")||
"383"!==E&&"373"!==E){E=g.r(n[E]);for(var I=E.next();!I.done;I=E.next())if(I=I.value,I.width){for(var K=g.r(I.u),N=K.next();!N.done;N=K.next())if(N=N.value,n[N]){I.j=N;break}I.j||(I.j=zva(n,I));if(K=n[I.j])if(c.push(I),"fairplay"===I.Sd&&(q=p),N="","PQ"===I.Su?N="smpte2084":"HLG"===I.Su&&(N="arib-std-b67"),N&&(y=N),v.push(Ava(K,[I],d,f,I.itag,I.width,I.height,I.fps,m,void 0,void 0,q,N)),!x||I.width*I.height*I.fps>x.width*x.height*x.fps)x=I}else t.push(I)}else l[E]="disdrmhfr";v.reduce(function(aa,
J){return J.Af().isEncrypted()&&aa},!0)&&(q=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.S("html5_native_audio_track_switching");v.push(Ava(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return jD(a.u,v,PC(a,b))};
Ava=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){for(var x=0,y="",z=g.r(a),E=z.next();!E.done;E=z.next())E=E.value,y||(y=E.itag),E.audioChannels&&E.audioChannels>x&&(x=E.audioChannels,y=E.itag);e=new Xz(e,"application/x-mpegURL",{audio:new Rz(0,x,null,y),video:new Tz(f,k,l,null,void 0,n,void 0,t),Sd:q});a=new qva(a,b,c?[c]:[],d,!!v);a.C=p?p:1369843;return new lD(e,a,m)};
xva=function(a){a=g.r(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};
zva=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Sd===b.Sd&&!e.audioChannels)return d}return""};
yva=function(a){for(var b=new Set,c=g.r(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.r(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.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
mD=function(a,b){this.j=a;this.u=b};
Cva=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.Vx(k.url,!0);if(k.s){var l=k.sp,m=Jra(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=fta(k.type,k.quality,k.itag,k.width,k.height);e.push(new mD(k,f))}}return jD(a.u,e,PC(a,b))};
nD=function(a,b){this.j=a;this.u=b};
Dva=function(a){var b=[];g.wc(a,function(c){if(c&&c.url){var d=fta(c.type,"medium","0");b.push(new nD(d,c.url))}});
return b};
Eva=function(a,b,c){c=Dva(c);return jD(a.u,c,PC(a,b))};
oD=function(a,b){this.type=a||"";this.id=b||""};
g.pD=function(a){return new oD(a.substr(0,2),a.substr(2))};
qD=function(a,b){for(var c={},d=g.r(Object.keys(Fva)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Bw(f)&&(c[Fva[e]]=f)}return c};
rD=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.r(Object.keys(Gva)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Gva[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Hva(k.url);g.Bw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Hva(a.url),g.Bw(a)&&(b["maxresdefault.jpg"]=a));return b};
Hva=function(a){return a.startsWith("//")?"https:"+a:a};
g.sD=function(a,b){this.u=a;this.author="";this.pw=null;this.playlistLength=0;this.j=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=gr(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=qD(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new oD("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.pD(c).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.tD=function(a,b){this.j=a;this.Hn=this.author="";this.pw=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Iq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Hn=b.Hn||"";if(a=b.endscreen_autoplay_session_data)this.pw=gr(a,"&");this.qw=b.qw;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.Iq=b.Iq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=gr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=qD(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Jva=function(a,b){var c=g.Ka("ytDebugData.callbacks");c||(c={},g.Ja("ytDebugData.callbacks",c,void 0));if(g.Q("web_dd_iu")||Iva.includes(a))c[a]=b};
uD=function(a){this.j=new Vp(a)};
Kva=function(){try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.eq(g.Gs()+"::yt-player")))return new uD(a)};
Lva=function(){var a=g.vD;if(void 0===wD)if(a){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}wD=Kva()}else g.Ov(new g.Fs("b215858349 yt-player-lv used",a)),(a=Kva())&&a.remove("yt-player-lv"),wD=g.eq();return wD};
g.xD=function(){var a=Lva();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.Mva=function(a){var b=Lva();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.yD=function(a){return g.xD()[a]||0};
g.zD=function(a,b){var c=g.xD();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Mva(c))};
g.AD=function(a){return g.B(function(b){return b.return(g.ht(Nva(),a))})};
CD=function(a,b,c,d,e,f,k){var l,m,n,p,q,t,v;return g.B(function(x){switch(x.j){case 1:return l=g.yD(a),4===l?x.return(4):g.A(x,g.pt(),2);case 2:m=x.u;if(!m)throw g.Ps("wiac");if(!k||void 0===f){x.Za(3);break}return g.A(x,Ova(k,f),4);case 4:f=x.u;case 3:return n=c.lastModified||"0",Pva("Writing data to iDB: "+a+" "+b.id+" "+n+" "+e+" "+(null==(p=f)?void 0:p.length)),g.A(x,g.AD(m),5);case 5:return q=x.u,g.va(x,6),BD++,g.A(x,g.Zs(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",
Kc:!0},function(y){if(void 0!==e&&void 0!==f){var z=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");z=g.$s(y.objectStore("media"),f,z)}else z=g.Rs.resolve(void 0);var E=Qva(a,b.isVideo()),I=Qva(a,!b.isVideo()),K={fmts:Rva(d),format:c||{}};E=g.$s(y.objectStore("index"),K,E);var N=-1===d.downloadedEndTime;y=N?y.objectStore("index").get(I):g.Rs.resolve(void 0);return g.Rs.all([y,z,E]).then(function(aa){aa=g.r(aa).next().value;BD--;var J=g.yD(a);4!==J&&N&&void 0!==aa&&g.Sva(aa.fmts)&&(J=1,g.zD(a,J));
return J})}),8);
case 8:return x.return(x.u);case 6:t=g.xa(x);BD--;v=g.yD(a);if(4===v)return x.return(v);g.zD(a,4);throw t;}})};
g.Tva=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.pt(),2);if(3!=d.j){b=d.u;if(!b)throw g.Ps("ri");return g.A(d,g.AD(b),3)}c=d.u;return d.return(g.Zs(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.Ana(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})};
Vva=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.j)return g.A(m,g.pt(),2);if(3!=m.j){f=m.u;if(!f)throw g.Ps("rc");return g.A(m,g.AD(f),3)}k=m.u;l=g.Zs(k,["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 Uva(e,n)})):m.return(l)})};
g.Sva=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Qva=function(a,b){return""+a+"|"+(b?"v":"a")};
Pva=function(){};
Rva=function(a){var b={};return hr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Xva=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Wva)?(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.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(",");
return c};
Yva=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.LI=bC(a.ustreamerConfig)||void 0)};
g.DD=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.j=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.FD=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.ED(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.GD=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.ED=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("")};
bwa=function(a,b,c,d){a||(a=b&&Zva.hasOwnProperty(b)&&$va.hasOwnProperty(b)?$va[b]+"_"+Zva[b]:void 0);b=a;if(!b)return null;a=b.match(awa);if(!a||5!==a.length)return null;if(a=b.match(awa)){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};
dwa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return cwa[a];return null};
HD=function(a){return a&&a.baseUrl||""};
ID=function(a){a=g.kr(a);for(var b=g.r(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};
ewa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Qa=b)};
gwa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=fwa(d.baseUrl);if(!e)return;d=new g.DD({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Lw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.RD=b.audioTracks||[];a.JQ=b.defaultAudioTrackIndex||0;a.SD=b.translationLanguages?g.Kl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Lw(f.languageName)}}):
[];
a.Pp=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
hwa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},ir(k))});
d=g.r(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,qk:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,qk: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,
qk:0===f?5:7})}}};
iwa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
jwa=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)};
pwa=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=ir(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=kwa[c]);(c=a.projectionType)&&(b.projection_type=lwa[c]);(c=a.stereoLayout)&&(b.stereo_layout=mwa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=nwa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(JD[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=dwa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=owa[a])&&(b.primaries=a);return g.lj(b)};
KD=function(a){g.ev.call(this);this.j=null;this.B=new hq;this.j=null;this.K=new Set;this.D=a||""};
qwa=function(a,b,c){for(c=LD(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(MD(d,b))&&(d=g.ND(d,b)))return d;c--}return g.ND(a.levels[0],b)};
swa=function(a,b,c){c=LD(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=MD(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.K.has(k)||(d.K.add(k),d.B.enqueue(f,{vN:f,MN:e}))}rwa(a)};
rwa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=twa(a,b)}};
twa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=OD(a.levels[b.vN],b.MN);c.onload=function(){var d=b.vN,e=b.MN;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);rwa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.dD()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.PD=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
MD=function(a,b){return Math.floor(b/(a.columns*a.rows))};
OD=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.nj(c,{sigh:a.signature}));return Cw(c)};
g.ND=function(a,b){b>=a.eD()&&a.Hp();var c=MD(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Hp()+1-d*c;if(f<a.columns){var k=f;d=1}else k=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:OD(a,c),column:b,columns:k,row:e,rows:d,ox:a.width*k,Mq:a.height*d}};
QD=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;KD.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
uwa=function(a,b,c){return(a=a.levels[b])?a.Yy(c):-1};
LD=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};
RD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.PD.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
SD=function(a,b,c,d){QD.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].yJ(c)};
vwa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.nj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.UD=function(a,b){g.ev.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.ZN=this.Zl=this.adQueryId=this.Yl=null;this.Mv={start:NaN,end:NaN};this.ariaLabel="";this.Sd=null;this.UE=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Sa="";this.QD=this.cm=!1;this.oK=null;this.me=this.oe=this.nj=this.RI=!1;this.J=null;this.SO=this.cg=!1;this.Pd=NaN;this.oh=!1;this.Jv=0;this.mN=!1;this.Ir={};this.ID=this.cycToken=null;
this.author="";this.Gv=0;this.wj=!1;this.Fv=null;this.LD=[];this.bq=this.kE=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Lb=this.Hb="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Gb=0;this.FN=this.Dc=this.u=null;this.sH="";this.Ia=!1;this.wk=this.vk=0;this.Pv=this.pipable=this.wl=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.qb=this.isPrivate=this.isListed=this.AI=this.mP=this.mutedAutoplay=this.Al=
!1;this.OC="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.OI=this.hh=this.hf=!1;this.latencyClass="UNKNOWN";this.cJ=this.hI=this.enablePreroll=this.enableServerStitchedDai=this.qe=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.vb=0;this.reloadReason="";this.QI=this.eJ=this.rf=!1;this.keywords={};this.rb="";this.zk=0;this.Gp=!1;this.liveChunkReadahead=NaN;this.lh=null;this.Vl=this.lengthSeconds=0;this.playerParams=
this.musicVideoType=null;this.SI=this.paygated=!1;this.Oi=[];this.va=[];this.racyCheckOk=!1;this.zK={};this.gy=0;this.C=null;this.autonavState=1;this.eL=null;this.shortDescription="";this.ib=this.DD=!1;this.Fp=this.Tb=this.startSeconds=0;this.Qr=this.pQ=this.ej=TD;this.suggestions=null;this.Wl=this.Xl=void 0;this.bj=null;this.GD=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.wq=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.TD=void 0;this.yk=[];this.hlsFormats=
this.cj="";this.Dr=this.Ep=this.Rf=this.Db=this.Ya=this.Gk=this.er=null;this.wi="vvt";this.Pc=!1;this.OD=null;this.EP="";this.Nk=NaN;this.As=this.Ur=this.Lk=this.Tr=this.Sr=this.qj=this.Kk=this.zs=this.Mk=this.ys="";this.uj=null;this.MM=!1;this.K={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.UI=this.TI=NaN;this.md=this.Bj=this.bd=this.bJ=this.VI=!1;this.Hk=!0;this.Z={};this.captionTracks=[];this.RD=[];this.JQ=0;this.SD=[];this.Pp=!1;this.xj=new g.Dx("und",new g.cA("Default",
"und",!0));this.NC=0;this.N=null;this.Dp=[];this.nG=!1;this.Wc=[];this.Rr=this.Xb="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.LQ=this.Jr=this.zj=this.Cg=this.ZF=this.Nv=this.Lv=null;this.Dq=!1;this.ma=null;this.isInlinePlaybackNoAd=this.gg=this.useCobaltWidevine=this.kN=this.Bq=!1;this.YF=!0;this.LK=this.NK=NaN;this.defraggedFromSubfragments=this.ql=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Hv=this.MD=this.Ud=!1;this.interstitials=
[];this.D=this.MI=!1;this.Wa="";this.allowImaMonetization=!1;this.Cc=this.Bk=this.sK="";this.Ea=this.WI=!1;this.Qd=0;this.rK=this.Jk="";this.RC=this.QC=this.vH=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Ik=!1;this.Th=this.Qf=!0;this.errorDetail=this.userGenderAge="";this.JD=this.KD=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=
this.Ji=this.errorReason=this.errorCode=null;this.iq=this.Qp="";this.yj=!1;this.Ul=[];this.uN=this.bM=this.PK=this.Jg=this.Ie=0;this.fetchType=null;this.AK=!0;this.LN=void 0;this.lP=-1;this.Sh=this.lc=!1;this.Rb=null;this.xa="";this.fh=!1;this.watchUrl=null;this.Cr=[];this.visibleOnLoadKeys=[];this.S("web_player_ux_module_wait")&&this.B.Hb&&this.va.push("ux");this.lc=this.S("web_new_autonav_countdown");this.Sh=this.S("web_new_big_thumbnail_endscreen");wwa(this,b)};
g.XD=function(a,b,c,d){b&&b.cpn&&g.Ov(new g.Fs("CPN provided in VideoData update",{tha:b.cpn,hg:a.clientPlaybackNonce,bha:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.Ji=null);c?(rC(b),wwa(a,b),VD(a)&&WD(a)):(b=b||{},xwa(a,b),ywa(a,b),zwa(a,b),a.ea("dataupdated"))};
zwa=function(a,b){a.fflags=pC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Sa=Cw(c));a.cm=mC(a.cm,b.iv_ads_only);a.QD=mC(a.QD,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.P_=c;a.isPharma=mC(a.isPharma,b.is_pharma);a.author=pC(a.author,b.author);a.Hb=fwa(b.ttsurl)||a.Hb;a.wj=mC(a.wj,b.cc_asr);a.Lb=pC(a.Lb,b.channel_path);a.channelBanner=pC(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=pC(a.profilePicture,c);a.videoCountText=pC(a.videoCountText,b.video_count_text);
a.autonavState=nC(a.autonavState,b.autonav_state,Awa);a.clientPlaybackNonce=pC(a.clientPlaybackNonce,b.cpn);a.subscribed=mC(a.subscribed,b.subscribed);a.rawViewCount=oC(a.rawViewCount,b.view_count);a.shortViewCount=pC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=pC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=pC(a.lengthText||"",b.lengthText);a.Iq=pC(a.Iq||"",b.Iq);a.Hn=pC(a.Hn||"",b.Hn);a.title=pC(a.title,b.title);a.subtitle=pC(a.subtitle,b.subtitle);a.expandedTitle=
pC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=pC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=pC(a.ariaLabel,b.aria_label);a.ypcPreview=pC(a.ypcPreview,b.ypc_preview);a.PD=pC(a.PD,b.ypc_origin);a.Pc=mC(a.Pc,b.ypc_is_premiere_trailer);a.Jk=pC(a.Jk,b.ypc_clickwrap_message);a.paygated=mC(a.paygated,b.paygated);a.MM=mC(a.MM,b.requires_purchase);a.showShareButton=!mC(!a.showShareButton,b.ss);a.Qf=mC(a.Qf,b.showwatchlater);a.Th=mC(a.Th,b.shownotifybutton);a.Ik=mC(a.Ik,b.copy_share);a.S("web_player_mutable_event_label")&&
(c=b.el)&&(a.eventLabel=c);if(c=b.keywords)a.keywords=Bwa(c.split(","));if(c=b.rvs)a.suggestions=jr(c).map(function(d){return d.playlist||d.list||d.api?new g.sD(a.B,d):new g.tD(a.B,d)});
a.contentCheckOk=mC(a.contentCheckOk,b.cco);a.racyCheckOk=mC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=mC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=pC(a.oauthToken,b.oauth_token);a.rb=pC(a.rb,b.kpt);a.visitorData=pC(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=gr(c,"&");a.Gq=pC(a.Gq,b.endscreen_ad_tracking_data);a.XN=mC(a.XN,b.wait_for_vast_info_cards_xml);a.ED=mC(a.ED,b.suppress_creator_endscreen);a.dJ=mC(a.dJ,b.is_trueview_action);a.wN=pC(a.wN,b.tracking_list);
a.Qp=pC(a.Qp,b.clip);a.iq=pC(a.iq,b.clipt);Cwa(a,b)};
wwa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="150");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Ji=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.pv(16));a.qb=mC(a.B.qb,b.livemonitor);xwa(a,b);var k=b.raw_player_response;if(!k){var l=b.player_response;l&&(k=JSON.parse(l))}k&&(a.playerResponse=k);if(a.playerResponse){var m=a.playerResponse.annotations;if(m)for(var n=
g.r(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.cm=!0);q.allowInPlaceSwitch&&(a.QD=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=Dwa[t]);var v=q.invideoUrl;v&&(a.Sa=Cw(v));a.RI=!0;break}}var x=a.playerResponse.attestation;x&&ewa(a,x);var y=a.playerResponse.cotn;y&&(a.cotn=y);var z=a.playerResponse.heartbeatParams;if(z){var E=z.heartbeatToken;E&&(a.drmSessionId=z.drmSessionId||"",a.heartbeatToken=E,a.TI=Number(z.intervalMilliseconds),a.UI=
Number(z.maxRetries),a.VI=!!z.softFailOnError,a.bJ=!!z.useInnertubeHeartbeatsForDrm,a.nj=!0);a.heartbeatServerData=z.heartbeatServerData;a.S("heartbeat_iff_heartbeat_params_filled")&&(a.nj=!0);var I;a.oh=!(null==(I=z.heartbeatAttestationConfig)||!I.requiresAttestation)}var K=a.playerResponse.messages;K&&iwa(a,K);var N=a.playerResponse.multicamera;if(N){var aa=N.playerLegacyMulticameraRenderer;if(aa){var J=aa.metadataList;J&&(a.rK=J,a.Wc=jr(J))}}var oa=a.playerResponse.overlay;if(oa){var ia=oa.playerControlsOverlayRenderer;
if(ia){var za=ia.controlBgHtml;null!=za?(a.Wa=za,a.D=!0):(a.Wa="",a.D=!1);if(ia.mutedAutoplay){var jb=ia.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(jb&&jb.endScreen){var Gb=jb.endScreen.playerMutedAutoplayEndScreenRenderer;Gb&&Gb.text&&(a.sK=g.Lw(Gb.text))}}else a.mutedAutoplay=!1}}var Ra=a.playerResponse.playabilityStatus;if(Ra){var rc=Ra.backgroundability;rc&&rc.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Xc,Hb;if(null==(Xc=Ra.offlineability)?0:null==(Hb=Xc.offlineabilityRenderer)?
0:Hb.offlineable)a.offlineable=!0;var ke=Ra.contextParams;ke&&(a.contextParams=ke);var kb=Ra.pictureInPicture;kb&&kb.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);Ra.playableInEmbed&&(a.allowEmbed=!0);var He=Ra.ypcClickwrap;if(He){var ug=He.playerLegacyDesktopYpcClickwrapRenderer,Pf=He.ypcRentalActivationRenderer;if(ug)a.Jk=ug.durationMessage||"",a.me=!0;else if(Pf){var le=Pf.durationMessage;a.Jk=le?g.Lw(le):"";a.me=!0}}var Ud=Ra.errorScreen;if(Ud){if(Ud.playerLegacyDesktopYpcTrailerRenderer){var sc=
Ud.playerLegacyDesktopYpcTrailerRenderer;a.As=sc.trailerVideoId||"";var eh=Ud.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Vd=eh&&eh.ypcTrailerRenderer}else if(Ud.playerLegacyDesktopYpcOfferRenderer)sc=Ud.playerLegacyDesktopYpcOfferRenderer;else if(Ud.ypcTrailerRenderer){Vd=Ud.ypcTrailerRenderer;var Gk=Vd.fullVideoMessage;a.Kk=Gk?g.Lw(Gk):""}sc&&(a.Lk=sc.itemTitle||"",sc.itemUrl&&(a.Ur=sc.itemUrl),sc.itemBuyUrl&&(a.Sr=sc.itemBuyUrl),a.Tr=sc.itemThumbnail||"",a.zs=sc.offerHeadline||"",a.Mk=
sc.offerDescription||"",a.qj=sc.offerId||"",a.ys=sc.offerButtonText||"",a.OD=sc.offerButtonFormattedText||null,a.Nk=sc.overlayDurationMsec||NaN,a.Kk=sc.fullVideoMessage||"",a.oe=!0);if(Vd){var Zi=Vd.unserializedPlayerResponse;if(Zi)a.uj={raw_player_response:Zi};else{var $i=Vd.playerVars;a.uj=$i?ir($i):null}a.oe=!0}}}var qd=a.playerResponse.playbackTracking;if(qd){var fh=b,aj=HD(qd.googleRemarketingUrl);aj&&(a.googleRemarketingUrl=aj);var qf=HD(qd.youtubeRemarketingUrl);qf&&(a.youtubeRemarketingUrl=
qf);var bj=HD(qd.ptrackingUrl);if(bj){var Gd=ID(bj),cj=Gd.oid;cj&&(a.xK=cj);var rf=Gd.pltype;rf&&(a.yK=rf);var Sc=Gd.ptchn;Sc&&(a.wK=Sc);var sf=Gd.ptk;sf&&(a.Hr=encodeURIComponent(sf));var Qf=Gd.m;Qf&&(a.Eq=Qf)}var Rf=HD(qd.ppvRemarketingUrl);Rf&&(a.ppvRemarketingUrl=Rf);var Hq=HD(qd.qoeUrl);if(Hq){for(var gh=g.kr(Hq),Hk=g.r(Object.keys(gh)),Sl=Hk.next();!Sl.done;Sl=Hk.next()){var hh=Sl.value,Ik=gh[hh];gh[hh]=Array.isArray(Ik)?Ik.join(","):Ik}a.rP=gh;var dj=gh.cat;dj&&(a.Bk=dj);var ej=gh.live;ej&&
(a.OC=ej);var Xb=gh.drm_product;Xb&&(a.UE=Xb)}var Ie=HD(qd.remarketingUrl);if(Ie){a.remarketingUrl=Ie;var Jk=ID(Ie);Jk.foc_id&&(a.K.focEnabled=!0);var Kn=Jk.data;Kn&&(a.K.rmktEnabled=!0,Kn.engaged&&(a.K.engaged="1"));a.K.baseUrl=Hca(Ie)+Si(g.Ui(5,Ie))}var Ln=HD(qd.videostatsPlaybackUrl);if(Ln){var Bc=ID(Ln);a.JK=Bc;var Kk=Bc.adformat;if(Kk&&(fh.adformat=Kk,!a.S("process_video_data_ad_format_in_player_tracking_killswitch"))){var fj=a.V(),gj=bwa(Kk,a.Rr,fj.j,fj.B);gj&&(a.adFormat=gj)}var Mn=Bc.aqi;
Mn&&(fh.ad_query_id=Mn);var Nn=Bc.autoplay;Nn&&(a.Al="1"==Nn);var hj=Bc.autonav;hj&&(a.wl="1"==hj);var tf=Bc.delay;tf&&(a.Gb=Kh(tf));var Lk=Bc.ei;Lk&&(a.eventId=Lk);"adunit"===Bc.el&&(a.Al=!0);var ij=Bc.feature;ij&&(a.lN=ij);var ih=Bc.list;ih&&(a.playlistId=ih);var Tl=Bc.of;Tl&&(a.I_=Tl);var On=Bc.osid;On&&(a.osid=On);var jh=Bc.referrer;jh&&(a.referrer=jh);var Pn=Bc.sdetail;Pn&&(a.jN=Pn);var me=Bc.sourceid;me&&(a.c6=me);var Qn=Bc.ssrt;Qn&&(a.Iv="1"==Qn);var Rn=Bc.subscribed;Rn&&(a.subscribed="1"==
Rn,a.K.subscribed=Rn);var hd=Bc.uga;hd&&(a.userGenderAge=hd);var Sn=Bc.upt;Sn&&(a.M_=Sn);var Tn=Bc.vm;Tn&&(a.videoMetadata=Tn)}var jj=HD(qd.videostatsWatchtimeUrl);if(jj){var vg=ID(jj).ald;vg&&(a.QZ=vg)}if(qd.promotedPlaybackTracking){var Wd=qd.promotedPlaybackTracking;Wd.startUrls&&(a.Ak=Wd.startUrls);Wd.firstQuartileUrls&&(a.VC=Wd.firstQuartileUrls);Wd.secondQuartileUrls&&(a.WC=Wd.secondQuartileUrls);Wd.thirdQuartileUrls&&(a.AD=Wd.thirdQuartileUrls);Wd.completeUrls&&(a.UC=Wd.completeUrls);Wd.engagedViewUrls&&
(1<Wd.engagedViewUrls.length&&g.Ov(new g.Fs("There are more than one engaged_view_urls.")),a.Ub=Wd.engagedViewUrls[0])}}a:{var Ul=a.playerResponse.adPlacements;if(Ul)for(var Vl=g.r(Ul),Mk=Vl.next();!Mk.done;Mk=Vl.next()){var Nk=Mk.value;if(Nk.adPlacementRenderer&&Nk.adPlacementRenderer.renderer&&Nk.adPlacementRenderer.renderer.videoAdTrackingRenderer){var Wl=Nk.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}Wl=null}var Un=Wl;qd&&qd.promotedPlaybackTracking&&Un&&g.Ov(new g.Fs("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
Un&&(a.SI=!0);var Vn=a.playerResponse.playerAds;if(Vn)for(var Wn=b,kj=g.r(Vn),vv=kj.next();!vv.done;vv=kj.next()){var wv=vv.value;if(wv){var hB=wv.playerLegacyDesktopWatchAdsRenderer;if(hB){var km=hB.playerAdParams;if(km){"1"==km.autoplay&&(a.Al=!0);a.Zl=km.encodedAdSafetyReason||null;void 0!==km.showContentThumbnail&&(a.Hk=!!km.showContentThumbnail);Wn.enabled_engage_types=km.enabledEngageTypes;break}}}}var se=a.playerResponse.playerConfig;if(se){var lm=se.manifestlessWindowedLiveConfig;if(lm){var iB=
Number(lm.minDvrSequence),jB=Number(lm.maxDvrSequence),kB=Number(lm.minDvrMediaTimeMs),lB=Number(lm.maxDvrMediaTimeMs),mB=Number(lm.startWalltimeMs);iB&&(a.Ie=iB);kB&&(a.bM=kB/1E3);jB&&(a.Jg=jB);lB&&(a.PK=lB/1E3);mB&&(a.uN=mB/1E3)}var wo=se.daiConfig;if(wo){if(wo.enableDai){a.qe=!0;var nB=wo.enableServerStitchedDai;nB&&(a.enableServerStitchedDai=nB);var oB=wo.enablePreroll;oB&&(a.enablePreroll=oB)}"DAI_TYPE_SS_DISABLED"===wo.daiType&&(a.hI=!0)}var ur=se.audioConfig;if(ur){var xv=ur.loudnessDb;null!=
xv&&(a.Pd=xv);ur.audioMuted&&(a.cg=!0);ur.muteOnStart&&(a.SO=!0)}var pB=se.playbackEndConfig;if(pB){var qB=pB.endSeconds;qB&&a.mutedAutoplay&&(a.endSeconds=qB)}var vr=se.fairPlayConfig;if(vr){var rB=vr.certificate;rB&&(a.Dc=bC(rB));var wr=Number(vr.keyRotationPeriodMs);0<wr&&(a.t_=wr);var sB=Number(vr.keyPrefetchMarginMs);0<sB&&(a.h_=sB)}var mm=se.playbackStartConfig;if(mm){a.RC=Number(mm.startSeconds);var yv=mm.liveUtcStartSeconds,nm=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;yv&&!nm&&(a.liveUtcStartSeconds=
Number(yv));var zv=mm.startPosition;if(zv){var fka=zv.utcTimeMillis;fka&&!nm&&(a.liveUtcStartSeconds=.001*Number(fka));var gka=zv.streamTimeMillis;gka&&(a.Fp=.001*Number(gka))}a.progressBarStartPosition=mm.progressBarStartPosition;a.progressBarEndPosition=mm.progressBarEndPosition}else{var CX=se.skippableSegmentsConfig;if(CX){var hka=CX.introSkipDurationMs;hka&&(a.vH=Number(hka)/1E3);var ika=CX.outroSkipDurationMs;ika&&(a.QC=Number(ika)/1E3)}}var DX=se.skippableIntroConfig;if(DX){var jka=Number(DX.startMs),
kka=Number(DX.endMs);isNaN(jka)||isNaN(kka)||(a.NK=jka,a.LK=kka)}var lka=se.streamSelectionConfig;lka&&(a.wk=Number(lka.maxBitrate));var mka=se.vrConfig;mka&&(a.Bq="1"==mka.partialSpherical);var tB=se.webDrmConfig;if(tB){tB.skipWidevine&&(a.kN=!0);var nka=tB.widevineServiceCert;nka&&(a.FN=bC(nka));tB.useCobaltWidevine&&(a.useCobaltWidevine=!0);tB.startWithNoQualityConstraint&&(a.gg=!0)}var oka=se.mediaCommonConfig;if(oka){var ZJ=oka.dynamicReadaheadConfig;ZJ&&(a.maxReadAheadMediaTimeMs=ZJ.maxReadAheadMediaTimeMs||
NaN,a.minReadAheadMediaTimeMs=ZJ.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=ZJ.readAheadGrowthRateMs||NaN)}var pka=se.inlinePlaybackConfig;pka&&(a.YF=!!pka.showAudioControls)}var om=a.playerResponse.streamingData;if(om){var qka=om.adaptiveFormats;if(qka){for(var rka=[],ska=g.r(qka),Bj=ska.next();!Bj.done;Bj=ska.next()){var $J=Bj.value;rka.push(pwa($J));var tka=$J.loudnessDb;$J.itag&&null!=tka&&(a.Ir[$J.itag.toString()]=tka)}a.adaptiveFormats=rka.join(",")}var EX=om.formats;if(EX){var uB=
[],uka=g.r(EX);for(Bj=uka.next();!Bj.done;Bj=uka.next()){var FX=Bj.value;uB.push(FX.itag+"/"+FX.width+"x"+FX.height)}a.sH=uB.join(",");uB=[];var vka=g.r(EX);for(Bj=vka.next();!Bj.done;Bj=vka.next()){var Av=Bj.value,vB={itag:Av.itag,type:Av.mimeType,quality:Av.quality},wka=Av.url;wka&&(vB.url=wka);var xka=Av.cipher||Av.signatureCipher;if(xka){var GX=ir(xka);vB.sp=GX.sp;vB.s=GX.s;vB.url=GX.url}uB.push(g.lj(vB))}a.cj=uB.join(",")}var HX=om.hlsFormats;if(HX){var yka=se||null,aK={};if(yka){var IX=yka.audioPairingConfig;
if(IX&&IX.pairs)for(var zka=g.r(IX.pairs),JX=zka.next();!JX.done;JX=zka.next()){var Aka=JX.value,KX=Aka.videoItag;aK[KX]||(aK[KX]=[]);aK[KX].push(Aka.audioItag)}}for(var Bka={},Cka=g.r(HX),xr=Cka.next();!xr.done;xr=Cka.next()){var Dka=xr.value;Bka[Dka.itag]=Dka.bitrate}var Eka=[],Fka=g.r(HX);for(xr=Fka.next();!xr.done;xr=Fka.next()){var xg=xr.value,Sk={itag:xg.itag,type:xg.mimeType,url:xg.url,bitrate:xg.bitrate,width:xg.width,height:xg.height,fps:xg.fps},bK=xg.audioTrack;if(bK){var Gka=bK.displayName;
Gka&&(Sk.name=Gka,Sk.audio_track_id=bK.id,bK.audioIsDefault&&(Sk.is_default="1"))}if(xg.drmFamilies){for(var Hka=[],Ika=g.r(xg.drmFamilies),LX=Ika.next();!LX.done;LX=Ika.next())Hka.push(JD[LX.value]);Sk.drm_families=Hka.join(",")}var cK=aK[xg.itag];if(cK&&cK.length){Sk.audio_itag=cK.join(",");var Jka=Bka[cK[0]];Jka&&(Sk.bitrate+=Jka)}var Kka=dwa(xg);Kka&&(Sk.eotf=Kka);xg.audioChannels&&(Sk.audio_channels=xg.audioChannels);Eka.push(g.lj(Sk))}a.hlsFormats=Eka.join(",")}var MX=om.licenseInfos;if(MX&&
0<MX.length){for(var Lka={},Mka=g.r(MX),NX=Mka.next();!NX.done;NX=Mka.next()){var Nka=NX.value,Oka=Nka.drmFamily,Pka=Nka.url;Oka&&Pka&&(Lka[JD[Oka]]=Pka)}a.Sd=Lka}var Qka=om.drmParams;Qka&&(a.drmParams=Qka);var Rka=om.dashManifestUrl;Rka&&(a.jb=g.nj(Rka,{cpn:a.clientPlaybackNonce}));var Ska=om.hlsManifestUrl;Ska&&(a.hlsvp=Ska);var Tka=om.probeUrl;Tka&&(a.probeUrl=Cw(g.nj(Tka,{cpn:a.clientPlaybackNonce})))}var Uka=a.playerResponse.trackingParams;Uka&&(a.Xa=Uka);var Dc=a.playerResponse.videoDetails;
if(Dc){var Tk=b,OX=Dc.videoId;OX&&(a.videoId=OX,Tk.video_id||(Tk.video_id=OX));var Vka=Dc.channelId;Vka&&(a.K.uid=Vka.substr(2));var PX=Dc.title;PX&&(a.title=PX,Tk.title||(Tk.title=PX));var QX=Dc.lengthSeconds;QX&&(a.lengthSeconds=Number(QX),Tk.length_seconds||(Tk.length_seconds=QX));var Wka=Dc.keywords;Wka&&(a.keywords=Bwa(Wka));var RX=Dc.channelId;RX&&(a.tj=RX,Tk.ucid||(Tk.ucid=RX));var Xka=Dc.viewCount;Xka&&(a.rawViewCount=Number(Xka));var SX=Dc.author;SX&&(a.author=SX,Tk.author||(Tk.author=SX));
var Yka=Dc.shortDescription;Yka&&(a.shortDescription=Yka);var Zka=Dc.isCrawlable;Zka&&(a.isListed=Zka);var $ka=Dc.musicVideoType;$ka&&(a.musicVideoType=$ka);var TX=Dc.isLive;null!=TX&&(a.isLivePlayback=TX);if(TX||Dc.isUpcoming)a.isPremiere=!Dc.isLiveContent;var ala=Dc.thumbnail;ala&&(a.Z=rD(ala));var bla=se||null,UX=b;Dc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Dc.isUpcoming&&(a.isUpcoming=!0);if(Dc.isPostLiveDvr)a.hf=!0;else{var VX=!1;if(a.qb)a.allowLiveDvr=YD(!0),a.isLivePlayback=!0;
else if(Dc.isLive){UX.livestream="1";a.allowLiveDvr=YD(!!Dc.isLiveDvrEnabled);a.ya=27;Dc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var dla=Dc.latencyClass;dla&&(a.latencyClass=Ewa[dla]||"UNKNOWN");var ela=Dc.liveChunkReadahead;ela&&(a.liveChunkReadahead=ela);var wB=bla&&bla.livePlayerConfig;if(wB){wB.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);wB.hasSubfragmentedWebm&&(a.ql=!0);wB.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var fla=wB.liveExperimentalContentId;fla&&
(a.liveExperimentalContentId=Number(fla))}VX=!0}else Dc.isUpcoming&&(VX=!0);VX&&(a.isLivePlayback=!0,UX.adformat&&"8"!==UX.adformat.split("_")[1]||a.va.push("heartbeat"),a.S("heartbeat_iff_heartbeat_params_filled")||(a.nj=!0))}var gla=Dc.isPrivate;gla&&(a.isPrivate=mC(a.isPrivate,gla))}if(Ra){var hla=Dc||null,ila=!1,Bv=Ra.errorScreen;ila=Bv&&(Bv.playerLegacyDesktopYpcOfferRenderer||Bv.playerLegacyDesktopYpcTrailerRenderer||Bv.ypcTrailerRenderer)?!0:hla&&hla.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
"FULLSCREEN_ONLY"].includes(Ra.status);if(!ila){a.errorCode="150";var dK=Bv&&Bv.playerErrorMessageRenderer;if(dK){a.playerErrorMessageRenderer=dK;var jla=dK.reason;jla&&(a.errorReason=g.Lw(jla));var XX=dK.subreason;XX&&(a.Ji=g.Lw(XX),a.Vq=XX)}else a.errorReason=Ra.reason||null;var YX=Ra.status;if("LOGIN_REQUIRED"===YX)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===YX)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===YX){var kla=Ra.errorScreen,lla=kla&&kla.playerKavRenderer;a.errorDetail=lla&&
lla.kavUrl?"4":"3"}else a.errorDetail=Ra.isBlockedInRestrictedMode?"5":"0"}}var mla=a.playerResponse.interstitialPods;mla&&hwa(a,mla);a.Sa&&a.eventId&&(a.Sa=mr(a.Sa,{ei:a.eventId}));var ZX=a.playerResponse.captions;ZX&&ZX.playerCaptionsTracklistRenderer&&gwa(a,ZX.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.RC=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.HK=a.accountLinkingConfig.alsParam);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&jwa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}ywa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var nla=b.hlsdvr;null!=nla&&(a.allowLiveDvr=YD("1"==nla));a.adQueryId=b.ad_query_id||null;a.Zl||(a.Zl=b.encoded_ad_safety_reason||null);
a.ZN=b.agcid||null;a.Lv=b.ad_id||null;a.Nv=b.ad_sys||null;a.ZF=b.encoded_ad_playback_context||null;a.cg=mC(a.cg,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=mC(a.mutedAutoplay,b&&b.playmuted)&&a.S("embeds_enable_muted_autoplay");a.endSeconds=oC(a.endSeconds,a.QC||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=oC(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.Xa=pC(a.Xa,b.itct);a.AI=mC(a.AI,b.noiba);a.OI=mC(a.OI,b.is_live_destination);
a.isLivePlayback=mC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=mC(a.isUpcoming,b.isUpcoming));a.hf=mC(a.hf,b.post_live_playback);a.isMdxPlayback=mC(a.isMdxPlayback,b.mdx);var eK=b.mdx_control_mode;eK&&(a.mdxControlMode="number"===typeof eK?eK:Kh(eK));a.isInlinePlaybackNoAd=mC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.vb=oC(a.vb,b.reload_count);a.reloadReason=pC(a.reloadReason,b.reload_reason);a.Hk=
mC(a.Hk,b.show_content_thumbnail);a.QI=mC(a.QI,b.utpsa);a.GD=mC(a.GD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.ID=b.tkn||null;var ola=qD(b);0<Object.keys(ola).length&&(a.Z=ola);a.Ja=pC(a.Ja,b.vvt);a.mdxEnvironment=pC(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.RQ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=pC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?
oC(0,b.index):oC(a.playlistIndex,b.index));a.KK=b.pyv_view_beacon_url;a.QK=b.pyv_quartile25_beacon_url;a.gL=b.pyv_quartile50_beacon_url;a.uL=b.pyv_quartile75_beacon_url;a.OK=b.pyv_quartile100_beacon_url;var pla=b.remarketing_url;pla&&(a.remarketingUrl=pla);var qla=b.ppv_remarketing_url;qla&&(a.ppvRemarketingUrl=qla);var rla=b.session_data;!a.ML&&rla&&(a.ML=gr(rla,"&").feature);a.isFling=1==oC(a.isFling?1:0,b.is_fling);a.vnd=oC(a.vnd,b.vnd);a.eh=pC(a.eh,b.force_ads_url);a.xg=pC(a.xg,b.ctrl);a.Og=pC(a.Og,
b.ytr);a.jm=b.ytrcc;a.wM=b.ytrexp;a.CD=b.ytrext;a.Xb=pC(a.Xb,b.adformat);a.Rr=pC(a.Rr,b.attrib);a.slotPosition=oC(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Iv=mC(a.Iv,b.ssrt);a.videoId=rC(b)||a.videoId;a.X=pC(a.X,b.vss_credentials_token);a.wi=pC(a.wi,b.vss_credentials_token_type);a.Ud=mC(a.Ud,b.audio_only);a.MD=mC(a.MD,b.aac_high);a.Hv=mC(a.Hv,b.prefer_low_quality_audio);a.Bk=pC(a.Bk,b.qoe_cat);a.yj=mC(a.yj,b.download_media);a.Ea=mC(a.Ea,b.prefer_gapless);a:{var $X=a.playerResponse;if($X&&
$X.adPlacements)for(var sla=g.r($X.adPlacements),aY=sla.next();!aY.done;aY=sla.next()){var fK=aY.value.adPlacementRenderer;if(null!=fK&&"AD_PLACEMENT_KIND_START"==(fK.config&&fK.config.adPlacementConfig&&fK.config.adPlacementConfig.kind)){var tla=!0;break a}}tla=!1}tla&&(a.adModule=!0,a.va.push("ad"));var ula=b.adaptive_fmts;ula&&(a.adaptiveFormats=ula);var vla=b.allow_embed;vla&&(a.allowEmbed="1"==vla);var wla=b.backgroundable;wla&&(a.backgroundable="1"==wla);var xla=b.autonav;xla&&(a.wl="1"==xla);
var yla=b.autoplay;yla&&(a.Al="1"==yla);var zla=b.iv_load_policy;zla&&(a.annotationsLoadPolicy=nC(a.annotationsLoadPolicy,zla,JC));var Ala=b.cc_lang_pref;Ala&&(a.captionsLanguagePreference=pC(Ala,a.captionsLanguagePreference));var Bla=b.cc_load_policy;Bla&&(a.Fv=nC(a.Fv,Bla,JC));var Cla;a.deviceCaptionsOn=null!=(Cla=b.device_captions_on)?Cla:void 0;var Dla;a.KQ=null!=(Dla=b.device_captions_lang_pref)?Dla:"";var Ela;a.LD=null!=(Ela=b.viewer_selected_caption_langs)?Ela:[];var Fla=b.cached_load;Fla&&
(a.bq=mC(a.bq,Fla));"0"==b.dash&&(a.kE=!0);var Gla=b.dashmpd;Gla&&(a.jb=g.nj(Gla,{cpn:a.clientPlaybackNonce}));var Hla=b.delay;Hla&&(a.Gb=Kh(Hla));var Ila=a.QC||b.end;void 0!=Ila&&(a.clipEnd=oC(a.clipEnd,Ila));var Jla=b.fmt_list;Jla&&(a.sH=Jla);b.heartbeat_preroll&&a.va.push("heartbeat");a.vk=-Math.floor(10*Math.random());a.Vl=-Math.floor(40*Math.random());var Kla=b.is_listed;Kla&&(a.isListed=mC(a.isListed,Kla));var Lla=b.is_private;Lla&&(a.isPrivate=mC(a.isPrivate,Lla));var Mla=b.is_dni;Mla&&(a.D=
mC(a.D,Mla));var Nla=b.dni_color;Nla&&(a.Wa=pC(a.Wa,Nla));var Ola=b.pipable;Ola&&(a.pipable=mC(a.pipable,Ola));a.Pv=a.pipable&&a.B.Zl;a.DD=a.Pv&&(!a.B.showMiniplayerButton||a.S("web_player_pip"));var Pla=b.paid_content_overlay_duration_ms;Pla&&(a.paidContentOverlayDurationMs=Kh(Pla));var Qla=b.paid_content_overlay_text;Qla&&(a.paidContentOverlayText=Qla);var Rla=b.url_encoded_fmt_stream_map;Rla&&(a.cj=Rla);var Sla=b.hls_formats;Sla&&(a.hlsFormats=Sla);var Tla=b.hlsvp;Tla&&(a.hlsvp=Tla);var gK=b.length_seconds;
gK&&(a.lengthSeconds="string"===typeof gK?Kh(gK):gK);var hK=b.live_start_walltime;hK&&(a.PC="number"===typeof hK?hK:Kh(hK));var iK=b.live_manifest_duration;iK&&(a.lh="number"===typeof iK?iK:Kh(iK));var Ula=b.player_params;Ula&&(a.playerParams=Ula);var Vla=b.partnerid;Vla&&(a.ya=oC(a.ya,Vla));var Wla=b.probe_url;Wla&&(a.probeUrl=Cw(g.nj(Wla,{cpn:a.clientPlaybackNonce})));var bY=b.pyv_billable_url;bY&&Lqa(bY)&&(a.Ub=bY);var cY=b.pyv_conv_url;cY&&Lqa(cY)&&(a.MK=cY);Cwa(a,b);0<a.startSeconds||(a.startSeconds=
oC(a.startSeconds,a.RC||a.vH||b.start||b.startSeconds),a.Tb=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Xla=b.live_utc_start;if(null!=Xla)a.liveUtcStartSeconds=Number(Xla);else{var dY=a.startSeconds;dY&&isFinite(dY)&&1E9<dY&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Yla=b.utc_start_millis;Yla&&(a.liveUtcStartSeconds=.001*Number(Yla))}var Zla=b.stream_time_start_millis;Zla&&(a.Fp=.001*Number(Zla));var $la=a.vH||b.start;
void 0==$la||"1"==b.resume||a.isLivePlayback||(a.clipStart=oC(a.clipStart,$la));var ama=b.url_encoded_third_party_media;ama&&(a.bj=jr(ama));var eY=b.ypc_offer_button_formatted_text;if(eY){var bma=JSON.parse(eY);a.OD=null!=bma?bma:null;a.EP=eY}var cma=b.ypc_offer_button_text;cma&&(a.ys=cma);var dma=b.ypc_offer_description;dma&&(a.Mk=dma);var ema=b.ypc_offer_headline;ema&&(a.zs=ema);var fma=b.ypc_full_video_message;fma&&(a.Kk=fma);var gma=b.ypc_offer_id;gma&&(a.qj=gma);var hma=b.ypc_buy_url;hma&&(a.Sr=
hma);var ima=b.ypc_item_thumbnail;ima&&(a.Tr=ima);var jma=b.ypc_item_title;jma&&(a.Lk=jma);var kma=b.ypc_item_url;kma&&(a.Ur=kma);var lma=b.ypc_vid;lma&&(a.As=lma);b.ypc_overlay_timeout&&(a.Nk=Number(b.ypc_overlay_timeout));var mma=b.ypc_trailer_player_vars;mma&&(a.uj=ir(mma));var nma=b.ypc_original_itct;nma&&(a.bR=nma);a.tj=pC(a.tj,b.ucid);b.baseUrl&&(a.K.baseUrl=b.baseUrl);b.uid&&(a.K.uid=b.uid);b.oeid&&(a.K.oeid=b.oeid);b.ieid&&(a.K.ieid=b.ieid);b.ppe&&(a.K.ppe=b.ppe);b.engaged&&(a.K.engaged=b.engaged);
b.subscribed&&(a.K.subscribed=b.subscribed);a.K.focEnabled=mC(a.K.focEnabled,b.focEnabled);a.K.rmktEnabled=mC(a.K.rmktEnabled,b.rmktEnabled);a.Ep=b.storyboard_spec||null;a.Dr=b.live_storyboard_spec||null;a.oK=b.iv_endscreen_url||null;a.RI=mC(a.RI,b.iv3_module);a.nj=mC(a.nj,b.ypc_license_checker_module);a.oe=mC(a.oe,b.ypc_module);a.me=mC(a.me,b.ypc_clickwrap_module);a.oe&&a.va.push("ypc");a.me&&a.va.push("ypc_clickwrap");a.zK={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};zwa(a,b);var oma=b.cotn;oma&&(a.cotn=oma);if(Fwa(a))ZD(a)&&(a.isLivePlayback&&a.jb&&(a.bd=!0),a.Dc&&(a.Bj=!0));
else if(Gwa(a))a.bd=!0;else{var sma=Hwa(a,a.adaptiveFormats);if(sma){$D(a,sma);var tma=!0}else tma=!1;tma?a.S("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&aE(a)):a.jb&&(a.bd=!0)}var gY=b.adpings;gY&&(a.Yl=gY?ir(gY):null);var uma=b.feature;uma&&(a.lN=uma);var vma=b.referrer;vma&&(a.referrer=vma);a.clientScreenNonce=pC(a.clientScreenNonce,b.csn);a.gy=oC(a.gy,b.root_ve_type);a.zk=oC(a.zk,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=
b.kids_app_info);a.Gp=mC(a.Gp,b.upg_content_filter_mode);var wma=b.unplugged_location_info;wma&&(a.ma=wma);var xma=b.unplugged_partner_opt_out;xma&&(a.Kv=pC("",xma));a.Dq=mC(a.Dq,b.disable_watch_next);a.Aj=pC(a.Aj,b.internal_ip_override);a.MI=!!b.is_yto_interstitial;(a.interstitials.length||a.MI)&&a.va.push("yto");var yma=b.Oi;yma&&(a.Oi=yma);b.gC&&(a.gC=b.gC);var zma;a.xa=null!=(zma=b.csi_timer)?zma:"";a.fh=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.S("html5_attach_watch_endpoint_ustreamer_config")&&
b.watch_endpoint&&Iwa(a,b.watch_endpoint)};
ywa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;var e=a.watchNextResponse.contents;if(e){var f=e.singleColumnWatchNextResults;if(f){var k=oC(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.tD(a.B),p=null,q;if(l){for(var t=g.r(l),v=t.next();!v.done;v=t.next()){var x=v.value.autoplayVideoRenderer;if(x&&x.compactVideoRenderer){p=x.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var y=q.clickTrackingParams;y&&(m.itct=y);m.autonav="1";m.playnext=String(k)}}else m.feature="related-auto";if(p){n.videoId=p.videoId;var z=p.shortBylineText;z&&(n.author=g.Lw(z));var E=p.title;E&&(n.title=g.Lw(E))}else{var I,K;if(null==(I=q)?0:null==(K=I.watchEndpoint)?0:K.videoId)n.videoId=q.watchEndpoint.videoId}n.pw=m;a.suggestions=[n]}}var N=e.twoColumnWatchNextResults}var aa,J;a.R_=!!(null==(aa=N)?0:null==(J=aa.autoplay)?0:J.autoplay);var oa=a.watchNextResponse.playerOverlays;
if(oa){var ia=oa.playerOverlayRenderer;if(ia){var za=ia.autonavToggle;za&&(a.autoplaySwitchButtonRenderer=za.autoplaySwitchButtonRenderer,a.S("web_player_autonav_use_server_provided_state")&&bE(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var jb=ia.endScreen;if(jb){var Gb=jb.watchNextEndScreenRenderer;if(Gb)var Ra=Gb.results}var rc=ia.videoDetails;if(rc){var Xc=rc.embeddedPlayerOverlayVideoDetailsRenderer;var Hb=rc.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Hb&&(a.kH=Hb.title,
a.zG=Hb.byline);var ke=rc.playerOverlayVideoDetailsRenderer;ke&&(ke.title&&(b.title=g.Lw(ke.title)),ke.subtitle&&(b.subtitle=g.Lw(ke.subtitle)))}var kb=ia.actions;if(kb)for(var He=g.r(kb),ug=He.next();!ug.done;ug=He.next()){var Pf=ug.value;Pf.likeButtonRenderer&&(a.likeButtonRenderer=Pf.likeButtonRenderer)}var le,Ud,sc=null==(le=ia.suggestedActionsRenderer)?void 0:null==(Ud=le.suggestedActionsRenderer)?void 0:Ud.suggestedActions;if(sc)for(var eh=g.r(sc),Vd=eh.next();!Vd.done;Vd=eh.next()){var Gk=
Vd.value,Zi=void 0,$i=void 0;if(null==(Zi=Gk.suggestedActionRenderer)?0:null==($i=Zi.trigger)?0:$i.suggestedActionTimeRangeTrigger)a.suggestedAction=Gk.suggestedActionRenderer}var qd,fh=null==(qd=ia.decoratedPlayerBarRenderer)?void 0:qd.decoratedPlayerBarRenderer;if(fh){var aj;a.multiMarkersPlayerBarRenderer=null==(aj=fh.playerBar)?void 0:aj.multiMarkersPlayerBarRenderer;var qf,bj;a.TD=null==(qf=fh.playerBar)?void 0:null==(bj=qf.chapteredPlayerBarRenderer)?void 0:bj.chapters;var Gd;a.VQ=null==(Gd=
fh.playerBarActionButton)?void 0:Gd.buttonRenderer}g.DC(a.B)&&(a.Qf=!!ia.addToMenu);Jwa(a,ia.shareButton);var cj=ia.productsInVideoOverlayRenderer;cj&&(a.shoppingOverlayRenderer=cj.shoppingOverlayRenderer);var rf=ia.autoplay;if(rf)var Sc=rf.playerOverlayAutoplayRenderer;a.progressBarStartPosition=ia.startPosition;a.progressBarEndPosition=ia.endPosition}}if(!Ra&&N){var sf=N.endScreen&&N.endScreen.endScreen;sf&&(Ra=sf.results)}if(N){var Qf=N.desktopOverlay&&N.desktopOverlay.desktopOverlayConfigRenderer;
Qf&&(Qf.suppressShareButton&&(a.showShareButton=!1),Qf.suppressWatchLaterButton&&(a.Qf=!1))}Xc&&Kwa(a,b,Xc);var Rf=oC(0,b.autoplay_count);if(Ra){for(var Hq=N||null,gh=Sc||null,Hk=[],Sl=!0,hh=g.r(Ra),Ik=hh.next();!Ik.done;Ik=hh.next()){var dj=Ik.value,ej=void 0,Xb=null;if(dj.endScreenVideoRenderer){var Ie=dj.endScreenVideoRenderer,Jk=Ie.title;Xb=new g.tD(a.B);Xb.videoId=Ie.videoId;Xb.lengthSeconds=Ie.lengthInSeconds||0;var Kn=Ie.publishedTimeText;Kn&&(Xb.publishedTimeText=g.Lw(Kn));var Ln=Ie.shortBylineText;
Ln&&(Xb.author=g.Lw(Ln));var Bc=Ie.shortViewCountText;Bc&&(Xb.shortViewCount=g.Lw(Bc));if(Jk){Xb.title=g.Lw(Jk);var Kk=Jk.accessibility;if(Kk){var fj=Kk.accessibilityData;fj&&fj.label&&(Xb.ariaLabel=fj.label)}}var gj=Ie.navigationEndpoint;if(gj){ej=gj.clickTrackingParams;var Mn=gj.watchEndpoint;Mn?Xb.qw=Mn:gj.urlEndpoint&&(Xb.watchUrl=gj.urlEndpoint.url)}var Nn=Ie.thumbnailOverlays;if(Nn)for(var hj=g.r(Nn),tf=hj.next();!tf.done;tf=hj.next()){var Lk=tf.value.thumbnailOverlayTimeStatusRenderer;if(Lk)if("LIVE"===
Lk.style){Xb.isLivePlayback=!0;break}else if("UPCOMING"===Lk.style){Xb.isUpcoming=!0;break}}Xb.Z=rD(Ie.thumbnail)}else if(dj.endScreenPlaylistRenderer){var ij=dj.endScreenPlaylistRenderer,ih=ij.navigationEndpoint;if(!ih)continue;var Tl=ih.watchEndpoint;if(!Tl)continue;var On=Tl.videoId;Xb=new g.sD(a.B);Xb.playlistId=ij.playlistId;Xb.playlistLength=Number(ij.videoCount)||0;Xb.j=On||null;Xb.videoId=On;var jh=ij.title;jh&&(Xb.title=g.Lw(jh));var Pn=ij.shortBylineText;Pn&&(Xb.author=g.Lw(Pn));ej=ih.clickTrackingParams;
Xb.Z=rD(ij.thumbnail)}Xb&&(ej&&(Xb.sessionData={itct:ej}),Sl?(Lwa(Xb,Hq,gh,Rf),Hk.splice(0,0,Xb),Sl=!1):Hk.push(Xb))}a.suggestions=Hk}if(Sc){a.AK=!!Sc.preferImmediateRedirect;a.lc=a.lc||!!Sc.webShowNewAutonavCountdown;a.Sh=a.Sh||!!Sc.webShowBigThumbnailEndscreen;if(a.lc||a.Sh){var me=Sc,Qn=Ra||null,Rn=N||null,hd=new g.tD(a.B);hd.videoId=me.videoId;var Sn,Tn,jj=null==Qn?void 0:null==(Sn=Qn[0])?void 0:null==(Tn=Sn.endScreenVideoRenderer)?void 0:Tn.navigationEndpoint;if(jj){var vg=jj.clickTrackingParams;
vg&&(hd.sessionData={itct:vg})}var Wd=me.videoTitle;if(Wd){hd.title=g.Lw(Wd);var Ul=Wd.accessibility;if(Ul){var Vl=Ul.accessibilityData;Vl&&Vl.label&&(hd.ariaLabel=Vl.label)}}var Mk=me.byline;Mk&&(hd.author=g.Lw(Mk));var Nk=me.publishedTimeText;Nk&&(hd.publishedTimeText=g.Lw(Nk));var Wl=me.shortViewCountText;Wl&&(hd.shortViewCount=g.Lw(Wl));var Un=me.thumbnailOverlays;if(Un)for(var Vn=g.r(Un),Wn=Vn.next();!Wn.done;Wn=Vn.next()){var kj=Wn.value.thumbnailOverlayTimeStatusRenderer;if(kj)if("LIVE"===
kj.style){hd.isLivePlayback=!0;break}else if("UPCOMING"===kj.style){hd.isUpcoming=!0;break}else if("DEFAULT"===kj.style&&kj.text){hd.lengthText=g.Lw(kj.text);var vv=kj.text.accessibility;if(vv){var wv=vv.accessibilityData;wv&&wv.label&&(hd.Iq=wv.label||"")}break}}hd.Z=rD(me.background);var hB=me.nextButton;if(hB){var km=hB.buttonRenderer;if(km){var se=km.navigationEndpoint;if(se){var lm=se.watchEndpoint;lm&&(hd.qw=lm)}}}if(me.topBadges){var iB=me.topBadges[0];if(iB){var jB=iB.metadataBadgeRenderer;
jB&&"BADGE_STYLE_TYPE_PREMIUM"==jB.style&&(hd.gC=!0)}}var kB=me.alternativeTitle;kB&&(hd.Hn=g.Lw(kB));Lwa(hd,Rn,me,Rf);a.suggestions||(a.suggestions=[]);a.suggestions[0]=hd}null!=Sc.countDownSecs&&(a.lP=1E3*Sc.countDownSecs);var lB;a.Q_=null==(lB=Sc.cancelButton)?void 0:lB.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Z=rD(a.watchNextResponse.currentVideoThumbnail));if(!a.S("player_parse_profile_picture_from_watch_next_killswitch")){var mB,wo,nB,oB,ur,xv=null==(mB=a.watchNextResponse)?
void 0:null==(wo=mB.contents)?void 0:null==(nB=wo.twoColumnWatchNextResults)?void 0:null==(oB=nB.results)?void 0:null==(ur=oB.results)?void 0:ur.contents;if(xv&&xv[1]){var pB,qB,vr,rB,wr=null==(pB=xv[1].videoSecondaryInfoRenderer)?void 0:null==(qB=pB.owner)?void 0:null==(vr=qB.videoOwnerRenderer)?void 0:null==(rB=vr.thumbnail)?void 0:rB.thumbnails;wr&&wr.length&&(a.profilePicture=wr[wr.length-1].url)}}var sB=a.watchNextResponse.onResponseReceivedEndpoints;if(sB)for(var mm=g.r(sB),yv=mm.next();!yv.done;yv=
mm.next()){var nm=yv.value;nm.changeKeyedMarkersVisibilityCommand&&(a.qK=nm.changeKeyedMarkersVisibilityCommand);var zv=void 0;a.S("web_key_moments_markers")&&(null==(zv=nm.loadMarkersCommand)?0:zv.entityKeys)&&(a.Cr=nm.loadMarkersCommand.entityKeys,nm.loadMarkersCommand.visibleOnLoadKeys&&(a.visibleOnLoadKeys=nm.loadMarkersCommand.visibleOnLoadKeys))}}};
bE=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
cE=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
fE=function(a){if(a.S("html5_single_format_policy")&&a.Rb)return a.Rb;var b=a.Ea,c=!!a.j&&a.j.Ef,d=a.B,e=a.UF(),f=dE(a),k=a.MD,l=a.isOtf(),m=a.bE(),n=a.qb,p=a.Qd,q=new bua;if(hD(d)||d.S("html5_logging_format_selection"))q.B=!0;q.Qa=f;q.ya=k&&d.B;q.Qd=p;Vr("windows nt 5.1")&&!g.Ax&&(q.j=!0);if(f=e)f=d.S("disable_html5_ambisonic_audio")||!(g.dD(d)||d.S("html5_enable_spherical")||d.S("html5_enable_spherical3d"))?!1:nva(d);f&&(q.Sa=!0);b&&(q.j=!0,q.rb=!0);l&&!d.S("html5_otf_prefer_vp9")&&(q.j=!0);n&&
(q.j=!0);Ox(d.u,Px.CHANNELS)&&(d.S("html5_enable_aac51")&&(q.ma=!0),d.S("html5_enable_ac3")&&(q.D=!0),d.S("html5_enable_eac3")&&(q.J=!0),d.S("html5_enable_ac3_gapless")&&(q.Ea=!0));d.S("html5_block_8k_hfr")&&(q.Xa=!0);q.K=g.YA(d.experiments,"html5_max_selectable_quality_ordinal");q.N=g.YA(d.experiments,"html5_min_selectable_quality_ordinal");!d.S("html5_kaios_hd_killswitch")&&uC&&(q.qb=480);if(c||e)q.Wa=!1;q.Ya=!1;b=PA(d,q.u);0<b&&2160>b&&(uA()||d.S("html5_format_hybridization"))&&(q.u.supportsChangeType=
+uA(),q.X=b);2160<=b&&(q.va=!0);$ta()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.vb=!1);q.bE=m;m=g.lt||gs()&&!m?!1:!0;q.Ja=m;q.xa=d.S("html5_format_hybridization");q.jb=d.S("html5_disable_encrypted_vp9_live_non_2k_4k");Yr()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.J=!0);a.Ea&&a.isAd()&&(a.Xl&&(q.Z=a.Xl),a.Wl&&(q.C=a.Wl));q.Ia=a.isLivePlayback&&eE(a)&&a.B.S("html5_drm_live_audio_51");
return a.Rb=q};
Nwa=function(a){hx("drm_pb_s",void 0,a.xa);a.Dc||a.j&&Rx(a.j);var b={};a.j&&(b=Ara(fE(a),a.B.u,a.j,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new aB(b,a.B.experiments,a.kN,Mwa(a),function(c,d){a.Aa(c,d)});
g.H(a,b);a.Bj=!1;a.Ia=!0;fua(b,function(c){hx("drm_pb_f",void 0,a.xa);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Dc;e.K=a.t_;e.J=a.h_;break;case "widevine":e.B=a.FN}a.Dp=c;if(0<a.Dp.length&&(a.N=a.Dp[0],2<=a.B.X)){c={};d=g.r(Object.entries(a.N.j));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var k="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(k=e[2]);c[k]=f}a.Aa("drmProbe",c)}WD(a)})};
Hwa=function(a,b){var c;(c=!b)||(c=!(!a.S("html5_manifestless_unplugged")&&a.isLivePlayback&&g.YC(a.B)&&g.MC(a.B)?0:!ZD(a)&&a.adaptiveFormats));if(c)return null;gE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Qta=!0);b=hE(b);c=Date.now();var d=a.Sd;var e=a.lengthSeconds,f=a.isLivePlayback,k=a.hf,l=a.B,m=Cta(b);if(f||k){e=new BA("",null==l?void 0:l.experiments,!0);f=g.r(b);for(l=f.next();!l.done;l=f.next()){var n=l.value;l=DA(n,d);m=EA(n.url,n.sp,n.s);var p=Number(n.target_duration_sec)||5;
n=Number(n.max_dvr_duration_sec)||14400;var q=Number(m.get("mindsq")||m.get("min_sq")||"0"),t=Number(m.get("maxdsq")||m.get("max_sq")||"0")||Infinity;e.Ie=e.Ie||q;e.Jg=e.Jg||t;var v=!bA(l.mimeType);m&&CA(e,new Hz(m,l,{mj:p,Qk:v,pm:n,Ie:q,Jg:t,lx:300,hf:k}))}e.u=!k;e.Ef=!0;e.isManifestless=!0;e.isLive=!k;e.hf=k;e.N=!!e.Ie&&!!e.Jg&&isFinite(e.Jg);d=e}else d=3===m?Ata(b,d,e,null==l?void 0:l.experiments):zta(b,d,e,l);c=Date.now()-c;a.S("html5_log_manifest_performance")&&(k=yta(d)?1:0,a.Aa("mfsp",{wasm:k,
t:c}));0<b.length&&(b=b[0],b.url&&b.sp&&b.s&&(b=EA(b.url,b.sp,b.s),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.hh=!0)));return d};
ZD=function(a){return Yr()?!iE(a):$r()?!(!a.Dc||!a.S("html5_enable_safari_fairplay")):!1};
iE=function(a){return gE(a,"html5_enable_tvos_dash_dogfood")||a.S("html5_enable_tvos_dash")&&(a.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Mwa=function(a){return a.useCobaltWidevine?Yr()?iE(a):!1:!1};
aE=function(a){return!(!a.j||!a.j.isManifestless)};
Owa=function(a){if(!Bx())return!1;if(a.S("html5_streaming_debug")||aE(a)&&("ULTRALOW"==a.latencyClass||21530001==jE(a)))return!0;if(!window.AbortController&&!Cx()||a.Ea)return!1;if(a.S("html5_streaming_xhr"))return!0;var b;return a.S("html5_streaming_xhr_vod")&&!1===(null==(b=a.j)?void 0:b.Ef)?!0:!1};
Pwa=function(a){return Hra({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,ql:a.ql,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:aE(a),fI:Owa(a)})};
jE=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=JA(a.j)?21530001:a.liveExperimentalContentId};
Fwa=function(a){return Yr()&&iE(a)?!1:ZD(a)&&g.YC(a.B)&&!a.isLivePlayback||!dB()||a.kE?!0:!1};
Rwa=function(a){a.Ia=!0;a.bd=!1;if(Gwa(a))g.Tva(a.videoId).then(function(d){Qwa(a,d)}).then(function(){WD(a)});
else{Aw(a.jb)||g.Ov(new g.Fs("DASH MPD Origin invalid: ",a.jb));var b=a.jb,c=g.YA(a.B.experiments,"dash_manifest_version")||4;b=g.nj(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.nj(b,{pacing:0}));Kta(b,a.B.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||($D(a,d,!0),hx("mrc",void 0,a.xa),WD(a))},function(d){a.isDisposed()||(a.Ia=!1,a.ea("dataloaderror",new g.yB("manifest.net.retryexhausted",{backend:"manifest",
rc:d.status},1)))});
hx("mrs",void 0,a.xa)}};
Qwa=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 pwa(e)}).join(",");
d=Hwa(a,d);$D(a,d);a.Aa("dlr",{})};
WD=function(a){a.isDisposed()||(a.Ia=!1,a.ea("dataloaded"))};
$D=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.H(a,b);b.Ie=a.Ie;b.Jg=a.Jg;b.D=a.bM;b.C=a.PK;a.S("html5_start_walltime_min_seekable_killswitch")||(b.J=a.uN);Swa(a)&&a.va.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.lh=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Aa,a),c?b.subscribe("refresh",a.oO,a):b.subscribe("cuepointsadded",a.vL,a));Rx(b)&&(a.Bj=!0)};
eE=function(a){return a.Sd?!0:!!a.j&&Rx(a.j)};
Xwa=function(a,b){if(a.isDisposed())return Ir();a.C=null;a.Ya=null;a.Db=null;if(gE(a,"html5_high_res_logging")||gE(a,"html5_high_res_logging_live_infra"))a.B.X=2;return Twa(a,b).then(void 0,function(){return Uwa(a,b)}).then(void 0,function(){return Vwa(a)}).then(void 0,function(){return Wwa(a)})};
Twa=function(a,b){var c=b||Fwa(a);if(!a.j||c)return a.Aa("skipDash",{dm:!!a.j,air:b,dd:a.kE,mss:dB()}),Ir();dE(a)&&Ota(a.j,a.isLivePlayback);gE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&oua(a.B.u);return Jr().then(function(){return Gra(fE(a),a.B.u,a.j,a.N,function(d){return a.ea("ctmp","fmtflt",d)}).then(function(d){Ywa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Rb&&a.Aa("av1",a.Rb.u)})})};
Uwa=function(a,b){if(b&&a.hlsvp)return Ir();if(a.hlsFormats){b=hE(a.hlsFormats);var c;if((null==(c=a.Rb)?0:c.B)&&b){c=[];for(var d=g.r(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.Aa("hlsfmt",{itags:c.join(".")})}a.er=wva(a.B,b);c=a.clientPlaybackNonce;var f,k,l,m;return Bva(a.B,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(k=f.captions)?void 0:null==(l=k.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.wk,c,function(n){return a.ea("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.r(n),v=t.next();!v.done;v=t.next()){v=v.value;
var x=void 0;q.push(null==(x=v.Af())?void 0:x.Zb());var y=x=void 0;(null==(x=v.Af())?void 0:null==(y=x.audio)?void 0:y.numChannels)>p&&(p=v.Af().audio.numChannels)}2<p&&a.Aa("hlschl",{mn:p});var z;(null==(z=a.Rb)?0:z.B)&&a.Aa("hlsfmtaf",{itags:q.join(".")});kE(a,n)})}return Ir()};
Vwa=function(a){return a.bj&&a.eJ?Eva(a.B,a.isAd(),a.bj).then(function(b){kE(a,b)}):Ir()};
Wwa=function(a){var b=hE(a.cj,a.sH);if(a.hlsvp){var c=vwa(a.hlsvp,a.clientPlaybackNonce,a.wk);b.push(c)}return Cva(a.B,a.isAd(),b,Zwa(a)).then(function(d){kE(a,d)})};
Ywa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.xj);for(var c=0;c<a.RD.length;c++)for(var d=a.RD[c],e=0;e<b.length;e++){var f=b[e],k=f.Fc.id==d.audioTrackId;if(f.Fc.isDefault&&c==a.JQ||k){if(d.captionTrackIndices)for(k=0;k<d.captionTrackIndices.length;k++)f.captionTracks[k]=a.captionTracks[d.captionTrackIndices[k]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.N&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=aA(a.C.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.r(a.Dp),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}};
kE=function(a,b){a.Db=b;Ywa(a,new Kx(g.Kl(a.Db,function(c){return c.Af()})))};
Zwa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Hr&&(b.ptk=a.Hr,b.oid=a.xK,b.ptchn=a.wK,b.pltype=a.yK,a.Eq&&(b.m=a.Eq));return b};
g.lE=function(a){return ZD(a)&&a.Dc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Sd||null};
$wa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Lw(b.text):a.paidContentOverlayText};
mE=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Kh(b.durationMs):a.paidContentOverlayDurationMs};
nE=function(a){var b="";if(a.OC)return a.OC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.hf?"post":a.hh?"window":"live");return b};
g.oE=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
pE=function(a){return!!(a.jb||a.adaptiveFormats||a.cj||a.bj||a.hlsvp)};
VD=function(a){if(a.S("html5_onesie")&&a.errorCode)return!1;var b=g.cc(a.va,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ia&&(pE(a)||g.cc(a.va,"heartbeat")||b)};
hE=function(a,b){a=jr(a);var c={};if(b){b=g.r(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.r(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};
Jwa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Ik=!!e.copyTextEndpoint)};
xwa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Cg=c);if(a.Cg){if(c=a.Cg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Cg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Wa=d,a.D=!0):(a.Wa="",a.D=!1);if(d=c.defaultThumbnail)a.Z=rD(d),a.sampledThumbnailColor=
d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Kwa(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.kH=e.title,a.zG=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Qf=!!c.addToWatchLaterButton;Jwa(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)?
void 0:m.watchEndpoint)Iwa(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Kh(c.videoDurationSeconds));c.webPlayerActionsPorting&&jwa(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m<f;m++)if(e=k.contents[m].playlistPanelVideoRenderer)c=e.shortBylineText?g.Lw(e.shortBylineText):"",d=e.title?g.Lw(e.title):"",n.push({author:c,encrypted_id:e.videoId,
title:d,channel_path:m===l?b.channel_path:"",profile_picture:m===l?b.profile_picture:"",is_private:m===l?a.isPrivate:!1,is_dni:m===l?a.D:!1,dni_color:m===l?a.Wa:""});b={index:k.currentIndex,list:k.playlistId,playlist_length:k.totalVideos,video:n};k.titleText&&(b.title=g.Lw(k.titleText));k.shortBylineText&&(b.author=g.Lw(k.shortBylineText));a.LQ=b}}if(a.Cg.previewPlayabilityStatus){if(a.Jr=a.Cg.previewPlayabilityStatus,b=a.Jr,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){n=b.errorScreen;if(k=null==
n?void 0:n.playerErrorMessageRenderer){a.GF=k;if(l=k.reason)a.errorReason=g.Lw(l);if(k=k.subreason)a.Ji=g.Lw(k)}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":var p;(null==n?0:null==(p=n.playerKavRenderer)?0:p.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Cg.playabilityStatus&&(a.zj=a.Cg.playabilityStatus,
axa(a)&&(a.errorDetail="0",a.zj&&((p=a.zj.embeddedPlayerErrorMessageRenderer)?a.GF=p.embeddedPlayerErrorMessageRenderer:a.S("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.zj.reason||null))));(p=a.Cg.attestation)&&ewa(a,p);(p=a.Cg.permissions)&&p.allowImaMonetization&&(a.allowImaMonetization=!0)}};
Iwa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.Gr=new Yva(b)};
Lwa=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,k,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(k=f.sets)?void 0:null==(l=k[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=m.watchEndpoint)&&(a.eL=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.pw=d};
Kwa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e,f,k;if(d=null==c?void 0:null==(e=c.channelThumbnailEndpoint)?void 0:null==(f=e.channelThumbnailEndpoint)?void 0:null==(k=f.urlEndpoint)?void 0:k.urlEndpoint)b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=e.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){if(f=e.title)b.title=g.Lw(f);if(e=e.subtitle)b.subtitle=g.Lw(e)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(e=
c.title)b.expanded_title=g.Lw(e);if(e=c.subtitle)b.expanded_subtitle=g.Lw(e);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Th=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.KD=b.toggledServiceEndpoint||null,a.JD=b.defaultServiceEndpoint||null):(a.KD=b.defaultServiceEndpoint||null,
a.JD=b.toggledServiceEndpoint||null))}};
g.qE=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
rE=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.sE=function(a){return!!a.j&&tta(a.j)};
g.tE=function(a){return!!a.j&&uta(a.j)};
Swa=function(a){return a.UF()||g.uE(a)};
g.vE=function(a){return!!a.j&&vta(a.j)};
g.uE=function(a){return!!a.j&&wta(a.j)};
g.bxa=function(a){if(a.ED)return null;var b=a.oK;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.cxa=function(a){return a.ED?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.wE=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.xE=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.r(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};
yE=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.B.Ia};
zE=function(a){if(a.isAd()&&a.videoId!=a.B.Xb)return a.B.Xb};
AE=function(a){return a.Al||"detailpage"==yE(a)||"shortspage"==yE(a)||a.mutedAutoplay};
BE=function(a){if(AE(a)){if("detailpage"==yE(a)||"shortspage"==yE(a))return a.wl||0<a.vb;if(!("17_8"===a.adFormat&&!a.wl||a.mP||"adunit"==yE(a)&&a.Ub))return!0}return!1};
g.CE=function(a){return a.oauthToken||a.B.Ya};
dxa=function(a){var b=1,c=g.YA(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Pd;a.C&&a.C.j&&a.C.j[0]&&a.Ir[a.C.j[0].id]&&(c=a.Ir[a.C.j[0].id]);if(a.S("html5_stateful_audio_normalization")&&null!=c){if(a.mN)return Math.min(1,Math.pow(10,-a.Jv/20))||b;var d=0;a.S("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.cj,g.YA(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.Jv=c}return Math.min(1,Math.pow(10,-c/20))||b};
dE=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.B.deviceParams.c&&"MUSIC"===a.B.deviceParams.ctheme;!a.Ud&&(g.GC(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Ud=!0);if(b=g.Xr())b=/Starboard\/([0-9]+)/.exec(g.Ab()),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;
!a.Ud&&(c||lva(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.S("cast_prefer_audio_only_for_atv_and_uploads")||a.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Ud=!0);return!a.B.deviceHasDisplay||a.Ud&&a.B.B};
exa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
DE=function(a){return!(!a.yj||!a.B.B)&&!!a.adaptiveFormats};
Gwa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.yD(b);return b&&!a.yj};
g.EE=function(a){if(!a.j||!a.u||!a.J)return!1;var b=a.j.j;return!!b[a.u.id]&&Zx(b[a.u.id].u.j)&&!!b[a.J.id]&&Zx(b[a.J.id].u.j)};
fxa=function(a){return a.Jr?["OK","LIVE_STREAM_OFFLINE"].includes(a.Jr.status):!0};
axa=function(a){return(a=a.zj)&&a.showError?a.showError:!1};
gE=function(a,b){return a.S(b)?!0:(a.fflags||"").includes(b+"=true")};
gxa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Cwa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.TC=b.quartile_0_url,a.FK=b.quartile_25_url,a.GK=b.quartile_50_url,a.IK=b.quartile_75_url,a.BK=b.quartile_100_url,a.Ak=b.quartile_0_urls,a.VC=b.quartile_25_urls,a.WC=b.quartile_50_urls,a.AD=b.quartile_75_urls,a.UC=b.quartile_100_urls};
YD=function(a){return a?dB()?!0:FE&&5>GE?!1:!0:!1};
Bwa=function(a){var b={};a=g.r(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};
fwa=function(a){if(a){if(Pqa(a))return a;a=Qqa(a);if(Pqa(a,!0))return a}return""};
g.hxa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.oE(a,"yt:cc_default_lang")||a.B.Qf};
HE=function(a){return!!(a.S("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
IE=function(a,b){this.j=a;this.Z=b||{};this.J=String(Math.floor(1E9*Math.random()));this.D={};this.X=this.N=0};
ixa=function(a){return JE(a)&&1==a.getPlayerState(2)};
JE=function(a){a=a.Lc();return void 0!==a&&2==a.getPlayerType()};
KE=function(a){a=a.V();return LC(a)&&!g.YC(a)&&"desktop-polymer"==a.playerStyle};
LE=function(a,b){var c=a.V();CC(c)||"3"!=c.controlsType||a.eb().jy(b)};
NE=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.j=e;this.u=f;this.id=ME(a)};
ME=function(a){return a+(":"+(iq.getInstance().j++).toString(36))};
OE=function(a){this.Y=a};
jxa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Ns?0:a.Y.isMobile||g.YC(a.Y)||g.MC(a.Y)||NC(a.Y)||!g.Ns))return!0;a=g.Rh("video-ads");return null!=a&&"none"!==Gm(a,"display")};
kxa=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}};
PE=function(){g.ev.call(this);var a=this;this.j={};g.Bf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
RE=function(){if(null===QE){QE=new PE;Nl(fp).u="b";var a=Nl(fp),b="h"==Zo(a)||"b"==Zo(a),c=!(Xl(),!1);b&&c&&(a.C=!0,a.D=new Wga)}return QE};
lxa=function(a,b,c){a.j[b]=c};
mxa=function(){};
SE=function(a,b,c){this.j=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};
TE=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
UE=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.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?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||[]]])};
nxa=function(a){return(a=a.pings)?Object.fromEntries(UE(a)):{}};
VE=function(a,b,c,d,e){IE.call(this,a,nxa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ia=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new SE(0,[]);this.xa=null;this.C={};this.va=null;this.u=0;this.K=null;this.ma=e;this.Ea=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.va=c);this.C=ir(this.j.playerVars||"");this.K=this.j.externalVideoId||null;this.u=oC(this.u,this.C.length_seconds);this.ma&&this.K&&(this.Ea=this.ma(this.K));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.S(f)}this.xa=this.j.clickthroughEndpoint||null;this.B=new SE(0,[this.u])};
oxa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
WE=function(){this.j=[];this.u=0};
XE=function(a,b){b&&a.j.push(b)};
YE=function(a){if(!a)return[];var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.r(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
ZE=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};
$E=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
aF=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
pxa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=YE(a.impressionCommands)||[];b.error=YE(a.errorCommands)||[];b.mute=YE(a.muteCommands)||[];b.unmute=YE(a.unmuteCommands)||[];b.pause=YE(a.pauseCommands)||[];b.rewind=YE(a.rewindCommands)||[];b.resume=YE(a.resumeCommands)||[];b.skip=YE(a.skipCommands)||[];b.close=YE(a.closeCommands)||[];b.clickthrough=YE(a.clickthroughCommands)||[];b.fullscreen=YE(a.fullscreenCommands)||[];b.active_view_viewable=YE(a.activeViewViewableCommands)||
[];b.active_view_measurable=YE(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=YE(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=YE(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=YE(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=YE(a.endFullscreenCommands)||[];b.channel_clickthrough=YE(a.channelClickthroughCommands)||[];b.abandon=YE(a.abandonCommands)||
[];b.progress=ZE(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=ZE(a.progressCommands.filter(function(c){return aF(c)&&zh($E(c),0)}));
b.first_quartile=ZE(a.progressCommands.filter(function(c){return aF(c)&&zh($E(c),.25)}));
b.midpoint=ZE(a.progressCommands.filter(function(c){return aF(c)&&zh($E(c),.5)}));
b.third_quartile=ZE(a.progressCommands.filter(function(c){return aF(c)&&zh($E(c),.75)}));
b.complete=ZE(a.progressCommands.filter(function(c){return aF(c)&&zh($E(c),1)}));
return b};
bF=function(a){IE.call(this,a,pxa(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};
qxa=function(a,b,c,d){this.id=b;this.C=d.Kd;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Vqa(b,d);if(null==f)d=new Iw(b,new Pp(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(iq.getInstance().j++).toString(36);
var k=d.daiEnabled||d.Kd;f=new Iw(b,f,d.visible&&!k,"adcuerange:"+e,3);k=null;if(d.Kd||0<d.j)if(d=Vqa(b,d,!0))k=new Iw(b,d,!1,"prefetch:"+e,5),f.C=k,k.C=f;d=[k,f]}this.j=d[1];this.u=c;this.J=!1;this.N={};this.K=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
cF=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
eF=function(a,b){var c={};rxa(a,c,b);sxa(c);c.LACT=dF(function(){return Au().toString()});
c.VIS=dF(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=dF(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
txa=function(a){var b={};if(!a.kind)return g.S(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.S(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=dF(Hg(Math.round(Kh(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=dF(Hg("0"));return b};
dF=function(a){return{toString:function(){return a()}}};
uxa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=k(m))}
if(!c||g.bg(c))return a;var f=Object.assign({},a),k=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};
rxa=function(a,b,c){b.CPN=dF(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Ov(Error("Video data is null.")),d=null);return d});
b.AD_MT=dF(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=dF(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=dF(function(){return a.eb().Gg().height.toString()});
b.P_W=dF(function(){return a.eb().Gg().width.toString()});
b.PV_H=dF(function(){return a.eb().getVideoContentRect().height.toString()});
b.PV_W=dF(function(){return a.eb().getVideoContentRect().width.toString()})};
sxa=function(a){a.CONN=dF(Hg("0"));a.WT=dF(function(){return Date.now().toString()})};
vxa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=cF(a)?dF(Hg(Math.round(a.j.start/1E3).toString())):dF(Hg("0"));return b};
wxa=function(a){var b={};b.SLOT_POS=dF(Hg(a.B.j.toString()));return b};
xxa=function(a){var b=a&&g.vb(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
fF=function(a){for(var b={},c=g.r(yxa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
gF=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.Da.apply(0,arguments))));return a};
hF=function(){};
iF=function(a){this.lm=a};
jF=function(a){this.Up=a};
Axa=function(a,b,c,d,e,f){e=void 0===e?new jF(new iF(d.getVideoData(1))):e;f=void 0===f?!1:f;g.G.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.Yh=e;this.daiEnabled=f;this.u={SC:.25,SECOND:.5,ND:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.Z.progress||[]);this.progressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.Z.unmuted_progress||[]);this.unmutedProgressPings.sort(function(k,l){return k.offsetMilliseconds-l.offsetMilliseconds});
zxa(TE(a.j.pings))};
oF=function(a,b){kF(a)||(lF(a)?(mF(a,0,!0),Bxa(a,b,b)):(mF(a,0,!0),Cxa(a,0,0,!0)),nF(a,"complete"))};
mF=function(a,b,c){for(c=void 0===c?!1:c;a.ad.N<a.progressPings.length;){var d=pF(a,"progress"),e=a.progressPings[a.ad.N];if(e.offsetMilliseconds<=1E3*b||c)qF(a,e,d),a.ad.N++;else break}};
Dxa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.X<a.unmutedProgressPings.length;){var d=pF(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.X];if(e.offsetMilliseconds<=1E3*b||c)qF(a,e,d),a.ad.X++;else break}};
Cxa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.SC||d)&&nF(a,"first_quartile");(b>=c*a.u.SECOND||d)&&nF(a,"midpoint");(b>=c*a.u.ND||d)&&nF(a,"third_quartile")};
Exa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.SC||d)&&nF(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&nF(a,"unmuted_midpoint");(b>=c*a.u.ND||d)&&nF(a,"unmuted_third_quartile")};
rF=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;nF(a,b)};
Bxa=function(a,b,c){if(0<c&&0<b){var d=a.j.zb(a.j.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(rF(a,"first_quartile",b,c*a.u.SC),rF(a,"midpoint",b,c*a.u.SECOND),rF(a,"third_quartile",b,c*a.u.ND))}a.lastUpdatedTimeSecs=b};
sF=function(a,b){for(var c=pF(a,b),d=g.r(a.ad.Z[b]||[]),e=d.next();!e.done;e=d.next())qF(a,e.value,c);a.ad.D[b]=!0};
nF=function(a,b){a.ad.D.hasOwnProperty(b)||sF(a,b)};
tF=function(a,b){return a.ad.D.hasOwnProperty(b)};
qF=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Yh,f=e.send,k={},l=eF(a.j),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,k[n]=l[n].toString();a.j.V().S("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")&&(l=a.j.getVideoData(2))&&(k.AD_CPN=l.clientPlaybackNonce);a=Object.assign(k,a.macros);f.call(e,d,a,c,b)}};
pF=function(a,b){var c=a.B;a=a.ad;if(a.Zw())if(b=Fxa(b),null==b)c={};else{var d;(d=a.ya()())||(d=(d=c.I)&&d.Lc?(d=d.Lc())&&2==d.getPlayerType()?uF(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=hp(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
lF=function(a){return!a.j.V().S("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
kF=function(a){return lF(a)&&!tF(a,"impression")};
vF=function(a){return lF(a)&&tF(a,"seek")};
wF=function(a,b){lF(a)?sF(a,b):nF(a,b)};
g.xF=function(a,b){this.state=a;this.Wo=b};
yF=function(a,b){return g.V(a.state,b)&&!g.V(a.Wo,b)?1:!g.V(a.state,b)&&g.V(a.Wo,b)?-1:0};
g.zF=function(a,b){return 0<yF(a,b)};
AF=function(a,b,c,d,e,f){f=void 0===f?0:f;g.ev.call(this);this.I=a;this.j=d;this.u=e;this.u.j[b.J]=this;this.u.subscribe("adactiveviewmeasurable",this.eP,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.fP,this);this.u.subscribe("adoverlaymeasurableimpression",this.gP,this);this.u.subscribe("adoverlayunviewableimpression",this.hP,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.iP,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.jP,
this);this.u.subscribe("adviewableimpression",this.kP,this);this.ad=b;this.va=[];this.macros=c;this.N=!1;this.xa=!jxa(new OE(this.I.V()),f);this.C=!1};
BF=function(a,b){g.kc(a.va,b);Gxa(a,b,1)};
CF=function(a,b){if(a.N){var c=a.j,d=a.getDuration();!kF(c)&&0<d&&(mF(c,b),lF(c)?Bxa(c,b,d):Cxa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!kF(c)&&0<a&&(Dxa(c,b),Exa(c,b,a,!1)))}};
Gxa=function(a,b,c){0!=b.length&&(b=g.Kl(b,function(d){return new Kw(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
DF=function(a){var b={};b.abandon=a.abandonCommands&&YE(a.abandonCommands.commands)||[];IE.call(this,a,b)};
EF=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;NE.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.Rg=e;this.jj=f};
FF=function(a,b,c,d,e,f){AF.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.Sb=null;this.J=f};
GF=function(a){IE.call(this,a);this.u=ir(this.j.playerVars||"")};
HF=function(){IE.apply(this,arguments)};
IF=function(){IE.apply(this,arguments)};
Hxa=function(a,b,c,d,e,f){this.J=a;this.C=b;this.j=c;this.D=d;this.B=e;this.u=f};
JF=function(a,b,c,d,e){AF.call(this,a,b,c,d,e);var f=this;this.J=b;this.B=new g.L(function(){f.kh("load_timeout")},1E4);
g.H(this,this.B);this.D=new bv(this);g.H(this,this.D)};
KF=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!nw(a.Fa,c.value))return!1;return!0};
LF=function(a){return!!(a.qV&&a.slot&&a.layout)};
Ixa=function(a){NE.call(this,"ad-message",a)};
MF=function(a,b,c,d,e,f,k,l){AF.call(this,a,b,c,d,e);var m=this;this.D=b;this.X=b.j.durationMs||0;this.B=l;this.Z=!1;this.K=this.J=0;this.ma=function(){var n=m.I.getProgressState().current;n<m.J?m.Ig():n>m.K&&m.Hh()}};
Kxa=function(a,b){if(a.B&&a.Z)if(a.Z=!1,a.I.V().experiments.ob("html5_externally_manage_ad_notify_layout")){var c=a.D.j;if(LF(c)){var d=c.slot;c=c.layout;b=Jxa(b);a=g.r(a.B.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;NF(e.j(),f,k,l);OF(e.j(),f)}}else g.Ov(Error("adMessageRenderer is not augmented on termination"))}else for(d=g.r(a.B.listeners),c=d.next();!c.done;c=d.next())c=c.value,c.B?(b=c.B,c.B=void 0,c.u=void 0,OF(c.j(),b)):T("Received AdNotify terminated event when no slot is active")};
Jxa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Ov(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.PF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={JC:c.JC},e=d.next())e=e.value,c.JC=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.JC}}(c));
return a};
QF=function(a){return a?g.Lw(a):null};
Lxa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(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};
Mxa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Nxa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Qxa=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&&(Oxa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=QF(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Pxa(a,b,c,d))}};
Oxa=function(a,b,c){var d=QF(b.confirmLabel)||"",e=QF(b.title)||"",f=[];if(b.adReasons)for(var k=g.r(b.adReasons),l=k.next();!l.done;l=k.next())f.push(QF(l.value)||"");k=b.headerTitle?g.Lw(b.headerTitle):"";d={closeButton:d,menuTitle:k,targetingReasonHeader:e,targetingReasons:f,dialogMessage:QF(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
Pxa=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:QF(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Lxa(b.navigationEndpoint);var k=Nxa(b[1]),l=[Nxa(b[0])];(b=Mxa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(k)};
a.muteAd=function(){m||c(k);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)};
Rxa(a,e,d)}}};
Rxa=function(a,b,c){a.muteAdInfo.goneText=QF(b.title)||"";a.muteAdInfo.questionText=QF(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=QF(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=QF(e.reason)||"";e=Lxa(e.endpoint)[0];a.push({label:d,url:e})}};
RF=function(a,b,c,d,e,f){this.u=a;this.D=b;this.j=eF(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.j[b]=f[b];this.B=c;this.C=e};
Sxa=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.Ld(e):a.B.tq()};
b.skipShown=function(){a.Ld(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
Txa=function(a,b,c){Qxa(b,c,function(d){a.Ld(d)},function(d){a.sendAdsPing(d)})};
Uxa=function(a){for(var b={},c=g.r(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.j[d].toString();return Object.assign(b,a.D)};
Vxa=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}};
Wxa=function(a,b,c,d,e){new RF(a,b,c,d,e,void 0)};
SF=function(a){this.value=a};
TF=function(a){this.value=a};
UF=function(a){this.value=a};
VF=function(a){this.value=a};
WF=function(a){this.value=a};
XF=function(){SF.apply(this,arguments)};
YF=function(a){this.value=a};
ZF=function(a){this.value=a};
$F=function(a){this.value=a};
aG=function(a){this.value=a};
bG=function(a){this.value=a};
cG=function(a){this.value=a};
dG=function(){SF.apply(this,arguments)};
eG=function(){SF.apply(this,arguments)};
fG=function(a){this.value=a};
gG=function(a){this.value=a};
hG=function(a){this.value=a};
iG=function(a){this.value=a};
jG=function(a){this.value=a};
kG=function(a){this.value=a};
lG=function(a){this.value=a};
mG=function(a){this.value=a};
nG=function(a){this.value=a};
oG=function(a){this.value=a};
pG=function(a){this.value=a};
qG=function(a){this.value=a};
rG=function(a){this.value=a};
sG=function(a){this.value=a};
tG=function(a){this.value=a};
uG=function(a){this.value=a};
vG=function(a){this.value=a};
wG=function(a){this.value=a};
xG=function(a){this.value=a};
yG=function(a){this.value=a};
zG=function(a){this.value=a};
AG=function(a){this.value=a};
BG=function(a){this.value=a};
CG=function(a){this.value=a};
DG=function(a){this.value=a};
EG=function(a){this.value=a};
FG=function(a){this.value=a};
GG=function(a){this.value=a};
HG=function(a){this.value=a};
IG=function(a){this.value=a};
JG=function(a){this.value=a};
KG=function(a){this.value=a};
LG=function(a){this.value=a};
MG=function(a){this.value=a};
NG=function(){SF.apply(this,arguments)};
OG=function(){SF.apply(this,arguments)};
PG=function(){SF.apply(this,arguments)};
QG=function(){SF.apply(this,arguments)};
RG=function(){SF.apply(this,arguments)};
SG=function(){SF.apply(this,arguments)};
Yxa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return Xxa(d)?!0:!1};
Zxa=function(a){a=((null==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.surveyAdQuestionCommon,b=Xxa(a)):b=!1:b=!1;return b};
Xxa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
aya=function(a,b,c,d,e,f){this.j=new RF(a,b,c,d,e,$xa(f))};
bya=function(a,b){var c=Vxa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.j.Ld(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":Sxa(a.j,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Txa(a.j,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.j.sendAdsPing(d)};
return c};
$xa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=dF(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=dF(a);return b};
TG=function(a,b,c){g.ev.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Sb=new g.wi(200);this.Sb.Pa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.j+=f;d.j>=d.u&&(d.j=d.u,d.Sb.stop());e=d.j/1E3;d.D&&d.D.Qb(e);cya(d,{current:e,duration:d.u/1E3})});
g.H(this,this.Sb);this.j=0;this.B=null;g.Bf(this,function(){d.B=null});
this.C=0};
cya=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b};
UG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;NE.call(this,"survey",a,{},b,c);this.Rg=d;this.jj=e};
VG=function(a,b,c){g.ev.call(this);var d=this;this.durationMs=a;this.C=b;this.D=c;this.u=!1;this.B=this.j=0;this.timer=new g.wi(200);g.H(this,this.timer);this.timer.Pa("tick",function(){d.Qb()})};
WG=function(){wx("pbp")||wx("pbs")||xx("pbp");wx("pbp","watch")||wx("pbs","watch")||xx("pbp",void 0,"watch")};
XG=function(a,b,c){wx(a,c)||xx(a,b,c);wx(a,"video_to_ad")||xx(a,b,"video_to_ad");wx(a,"ad_to_video")||xx(a,b,"ad_to_video");wx(a,"ad_to_ad")||xx(a,b,"ad_to_ad")};
YG=function(a,b,c,d,e,f,k){AF.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new bv;g.H(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.eb().Gg().width&&(g.dv(l.J),l.Ig())});
this.Z=0;this.K=null;this.X=k(this,function(){return""+(Date.now()-l.Z)});
if(this.B=g.MC(a.V())?new TG(1E3*b.u,a,f):null)g.H(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&dya(l)})};
eya=function(a,b){b=bya(a.X,b);a.I.Oa("onAdInfoChange",b)};
dya=function(a){var b=a.D.j;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.Ld(b&&b.timeoutCommands)):g.S(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
ZG=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;NE.call(this,"survey-interstitial",a,b,c,d);this.Rg=e;this.WH=f};
$G=function(a,b,c,d,e){AF.call(this,a,b,c,d,e,1);this.B=b};
aH=function(a,b,c,d,e,f,k,l,m){AF.call(this,a,b,c,d,e,1);var n=this;this.OA=!0;this.K=m;this.B=b;this.D=f;this.Z=new bv(this);g.H(this,this.Z);this.J=new g.L(function(){n.kh("load_timeout")},1E4);
g.H(this,this.J);this.X=k};
fya=function(a){if(a.X&&(a.I.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.I.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
gH=function(a,b){if(null!==a.K){var c=gya(a);a=g.r(a.K.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.j||"aderror"!==f||(hya(d,e,[],!1),bH(d.B(),d.u),cH(d.B(),d.u),dH(d.B(),d.u),k=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}NF(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;eH(e.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.Vd);for(f=e.next();!f.done;f=e.next())f.value.Yi(k);OF(d.B(),
d.u)}d.La.get().I.V().S("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&fH(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
hH=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
gya=function(a){if(a=a.B.j.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
iya=function(a){function b(l,m){l=a.nZ;var n=Object.assign({},{});n.FINAL=dF(Hg("1"));n.SLOT_POS=dF(Hg("0"));return gF(l,fF(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n);
n=a.qC(m,q);m=l(m,q,n,p);g.H(m,n);return m}}}
var d=c(function(l,m,n){return new FF(a.I,l,m,n,a.kq,a.fb)}),e=c(function(l,m,n){return new $G(a.I,l,m,n,a.kq)}),f=c(function(l,m,n){return new MF(a.I,l,m,n,a.kq,a.fb,a.Nj,a.Mm)}),k=c(function(l,m,n){return new JF(a.I,l,m,n,a.kq,a.fb)});
this.tT=new Hxa({create:function(l,m){var n=gF(b(l,m),fF(wxa(l)));m=a.qC(l,n);l=new aH(a.I,l,n,m,a.kq,a.fb,a.daiEnabled,function(p){return new Wxa(a.fb,n,p,a.I,a.Yh)},a.Nm,a.Sf);
g.H(l,m);return l}},{create:function(l,m){var n=a.qC(l,m);
l=new YG(a.I,l,m,n,a.kq,a.fb,function(p,q){return new aya(a.fb,m,p,a.I,a.Yh,q)});
g.H(l,n);return l}},d,e,f,k)};
iH=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
jya=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{ZT:new Pp(b,c),pV:new ww(b,c-b,a.context,a.identifier,a.event,a.Gu)}};
jH=function(){this.j=[]};
kH=function(a,b,c){var d=g.pc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
kya=function(){this.j=new jH};
lH=function(a){this.j=a};
lya=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
mya=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
nya=function(a,b,c){a.j&&mH({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
oya=function(a,b){a.j&&mH({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.AT}})};
pya=function(a,b){mH({daiStateTrigger:{errorType:a,contentCpn:b}})};
mH=function(a){g.As("adsClientStateChange",a)};
nH=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Be=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
rya=function(a,b,c,d,e,f){f();var k=a.I.getVideoData(1),l=a.I.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.j=k.X);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(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.Be=!0,(a.I.S("send_csi_info_for_ad_to_video_killswitch")||wx("_start",a.actionType))&&
qya(a)))};
sya=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});jx("video_to_ad",b,void 0)};
tya=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});jx("ad_to_ad",b,void 0)};
oH=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});jx("ad_to_video",b,void 0);a.I.S("html5_csi_delay_pbresume")&&(a.I.Ki().u=a.I.getCurrentTime(1));a.I.S("send_csi_info_for_ad_to_video_killswitch")||qya(a)};
qya=function(a){if(a.Be)if(a.I.S("web_csi_via_jspb")){var b=new Kq,c=uya(a.B);g.D(b,21,c);g.D(b,7,4);c=new Iq;g.D(c,8,2);xe(b,22,c);g.D(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.D(b,76,a.contentCpn),a.videoId&&g.D(b,78,a.videoId)):(a.adCpn&&g.D(b,76,a.adCpn),a.adVideoId&&g.D(b,78,a.adVideoId));c=qra(a.actionType);a.adFormat&&!c&&g.D(b,12,a.adFormat);a.contentCpn&&g.D(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.D(b,28,a.adCpn);a.adVideoId&&g.D(b,20,a.adVideoId);
vx(b,a.actionType)}else b={adBreakType:uya(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)),c=qra(a.actionType),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),ix(b,a.actionType)};
vya=function(a){a.Be&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&(hx("apbs",void 0,a.actionType),g.Q("finalize_all_timelines")&&(a=a.actionType,gx(a),$w(a),fx(a))))};
uya=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.xya=function(a){return(a=wya[a.toString()])?a:"LICENSE"};
pH=function(){g.G.call(this);this.u=null;this.K=this.J=!1;this.C=new g.Dg;g.H(this,this.C)};
qH=function(a){a=a.Ow();return 1>a.length?NaN:a.end(a.length-1)};
yya=function(a,b,c){a.Pl()||a.getCurrentTime()>b||10<c||(a.play(),g.tr(function(){yya(a,a.getCurrentTime(),c+1)},500))};
zya=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
rH=function(a){return jta(a.jg(),a.getCurrentTime())};
Aya=function(a,b){if(0===a.Ih()||0<a.Cj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Ow(),a.length||!c)?oA(a,b):c};
Bya=function(a){var b=a.jg();return 0<qA(b)&&a.getDuration()?b.end(b.length-1):0};
sH=function(a){switch(a.Cj()){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.tH=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
uH=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.tH(b,c)};
vH=function(a,b){return uH(a,a.state|b)};
wH=function(a,b){return uH(a,a.state&~b)};
xH=function(a,b,c){return uH(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.yH=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.zH=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
AH=function(a){return a.Jc()&&!g.V(a,16)&&!g.V(a,32)};
g.BH=function(a){return g.V(a,1)&&!g.V(a,2)};
CH=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
DH=function(a,b,c,d,e,f,k,l){g.ev.call(this);this.dg=a;this.I=b;this.u=d;this.K=this.u.u instanceof IE?this.u.u:null;this.j=null;this.Z=!1;this.D=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.va=0;this.xa=!1;this.mm=e;this.Rs=f;this.Sp=k;this.ma=!1;this.daiEnabled=l};
Cya=function(a){if(JE(a.I)){var b=a.I.getVideoData(2);b=a.u.N[b.Cc]||null;if(!b)return a.Xk(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.vv(b)}else if(1===a.I.getPresentingPlayerType()&&a.j)return a.Xk(),!0;return!1};
Dya=function(a,b){a.D.Is(a.u.j.j,b,a.eM(),a.fM(),a.isLiveStream())};
EH=function(a){var b=a.dg,c=a.u.j;if(c instanceof Iw){if(b.N&&Uqa(c)&&g.V(b.j.zb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.S(Error(c.toString()+" has already been seen")):(b.Tp.add(c),b.B.set(c,a),Jw(c)||b.j.Rd([c],1))}else g.S(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.J&&(Eya(a,a.gM()),a.u.J=!0)};
Eya=function(a,b){for(var c=FH(a),d=a.u.j.start,e=[],f=g.r(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=Fya(k);e.push({externalVideoId:k.Hg(),originalMediaDurationMs:(1E3*k.u).toString(),trimmedMediaDurationMs:(parseInt(k.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);k.B.C=a.u.j.start;k.B.B=c;if(!Gya(a,k,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Fya(p)},0);
nya(a.mm,a.u.j.Ew(),b);oya(a.mm,{cueIdentifier:a.u.C&&a.u.C.identifier,AT:e})};
Fya=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
FH=function(a){var b=a.u.j.end;a=kH(a.Rs,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
Gya=function(a,b,c,d){var e=a.Sp.create(b,fF(vxa(a.u)),a.u.j.j);c=e.SL(c,d);g.zf(e);if(!c)return!1;a.u.N[c]=b;return!0};
HH=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.zf(a.j);oH(a.D);var c=a.u.K;if(null!==c){var d=a.mm,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,k=FH(a);d.j&&mH({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(k-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.qo()).toString()}});a.u.K=null}b||a.daiEnabled?GH(a.dg,!0):a.X&&a.nJ()&&a.gx()?GH(a.dg,!1,Hya(a)):GH(a.dg,!1);Dya(a,!0)};
Hya=function(a){if(a.xa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Va()/1E3)-a.va;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
Iya=function(a,b,c){this.j=a;this.u=b;this.B=c};
IH=function(){this.D=[];this.K=[];this.j=[];this.C=[];this.J=[];this.u=new Set;this.N=new Map};
JH=function(){IH.j||(IH.j=new IH);return IH.j};
Jya=function(a,b,c){c=void 0===c?0:c;b.then(function(d){a.u.has(c)&&a.B&&a.B();var e=g.Hv(c),f=g.Gv(c);if(e&&f){var k;(null==d?0:null==(k=d.response)?0:k.trackingParams)&&g.Sv(a.client,e,f,[g.Dv(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Sv(a.client,e,f,[g.Dv(d.playerResponse.trackingParams)])}})};
Kya=function(a,b){KH(a,g.Dv(b),void 0,void 0)};
KH=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.Hv(d);c=c||g.Gv(d);e&&c&&g.Sv(a.client,e,c,[b])}};
Mya=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){Lya(a,b,c);var f=g.Gv(c.layer);if(f){for(var k=g.r(a.D),l=k.next();!l.done;l=k.next())l=l.value,KH(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(k=f.next();!k.done;k=f.next()){var m=k.value;k=void 0;k=void 0===k?0:k;l=g.Hv(k);var n=m[0]||g.Gv(k);if(l&&n){k=a.client;var p=m[1];m={cttAuthInfo:Iv(l),gj:l};g.Q("il_via_jspb")?(p=new Gq,p.hj(l),n=n.getAsJspb(),xe(p,2,n),"UNDEFINED_CSN"==l?Rv("visualElementStateChanged",p,m):Apa(p,m,k)):(n=
{csn:l,ve:n.getAsJson(),clientData:p},"UNDEFINED_CSN"==l?Rv("visualElementStateChanged",n,m):k?Wu("visualElementStateChanged",n,k,m):g.As("visualElementStateChanged",n,m))}}}};
g.Hv(c.layer)||a.B();if(c.LL)for(var d=g.r(c.LL),e=d.next();!e.done;e=d.next())Jya(a,e.value,c.layer);else g.S(Error("Delayed screen needs a data promise."))};
Lya=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.gZ?c.gZ:c.layer;var e=g.Hv(d);d=g.Gv(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var k,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(k={servletData:{serializedServletEventId:l}});try{var m=dqa(a.client,b,f,c.GL,c.cttAuthInfo,k,c.fha)}catch(n){$pa(n,{gy:b,rootVe:d,parentVisualElement:void 0,Qga:e,yha:f,GL:c.GL});g.S(n);return}Kpa(m,
b,c.layer,c.cttAuthInfo);if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=g.r(Object.values(Nya));for(f=b.next();!f.done;f=b.next())if(g.Hv(f.value)===e){b=!0;break a}b=!1}b=!b}b&&eqa(a.client,e,d,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=m||"");ix({clientScreenNonce:m});Zv.getInstance().clear();d=g.Gv(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Q("web_mark_root_visible")||g.Q("music_web_mark_root_visible"))&&g.Tv(m,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.N);for(m=e.next();!m.done;m=
e.next())b=g.r(m.value),m=b.next().value,b=b.next().value,b.has(c.layer)&&d&&KH(a,m,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(n){g.S(n)}}for(c=a.C.length=0;c<a.J.length;c++){e=a.J[c];try{e()}catch(n){g.S(n)}}};
LH=function(){this.j={};if(this.u=Cma()){var a=g.Nr("CONSISTENCY");a&&Oya(this,{encryptedTokenJarContents:a})}};
Oya=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Mr("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
MH=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Pya(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Pya=function(a){return void 0===a.localStorage?new us("yt-client-location"):a.localStorage};
g.NH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.P("INNERTUBE_CONTEXT");if(!d)return g.S(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.hg(d);g.Q("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.P("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.ns.getInstance();var k="USER_INTERFACE_THEME_LIGHT";g.os(0,165)?k="USER_INTERFACE_THEME_DARK":g.os(0,174)?k="USER_INTERFACE_THEME_LIGHT":!g.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(k="USER_INTERFACE_THEME_DARK");f=f?k:npa()||k;e.userInterfaceTheme=
f;if(!b){if(f=Vma())e.connectionType=f;g.Q("web_log_effective_connection_type")&&(f=Xma())&&(d.client.effectiveConnectionType=f)}var l;if(g.Q("web_log_memory_total_kbytes")&&(null==(l=g.C.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.C.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.kr(g.C.location.href);!g.Q("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo=
{graftUrl:g.C.location.href},g.Q("kevlar_woffle")&&Pma.j&&(e.mainAppWebInfo.pwaInstallabilityStatus=Pma.j.j?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ls(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.Q("web_lr_app_quality_killswitch")&&(m=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.P("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Q("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(E){}n=void 0}n&&(e.timeZone=n)}(n=ar())?e.experimentsToken=n:delete e.experimentsToken;n=br();LH.j||(LH.j=new LH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Wf(LH.j.j)});!g.Q("web_prequest_context_killswitch")&&(n=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&
(d.request.externalPrequestContext=n);e=g.ns.getInstance();n=g.os(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Q("warm_op_csn_cleanup")?c&&(b=g.Hv())&&(d.clientScreenNonce=b):!b&&(b=g.Hv())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ka("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Q("web_enable_client_location_service")&&MH.getInstance().setLocationOnInnerTubeContext(d);try{var p=qr(void 0),
q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var t=g.r(Object.entries(p)),v=t.next();!v.done;v=t.next()){var x=g.r(v.value),y=x.next().value,z=x.next().value;p=y;q=z;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(E){g.S(E)}return d};
OH=function(){this.aQ=!0};
PH=function(){OH.apply(this,arguments);this.jr={}};
RH=function(){QH||(QH=new PH);return QH};
Qya=function(a,b){b?a.jr.Authorization="Bearer "+b:delete a.jr.Authorization};
Rya=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Sya=function(){var a=null;Oma().then(function(b){return a=b},function(b){return a=Rya(b)});
return a};
Tya=function(){var a=yi(1E3,"NO_BID");return ui(Wba([Oma(),a]).Eh(Rya),function(){return a.cancel()})};
Uya=function(a){return a.Ub?g.os(g.ns.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
SH=function(a){this.player=a;this.u=this.j=1};
UH=function(a,b,c,d){c=void 0===c?{}:c;var e=c.ew,f=c.Dd;d=void 0===d?"":d;c=a.player.getVideoData(1);var k=a.player.V().Gk,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:Uya(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.qo(),LACT:Au(),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().Gg().height,
P_W:a.player.eb().Gg().width,YT_REMOTE:k?k.join(","):""},m=Uja(Tja);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};pr(b)&&(d.sts="19072",(e=a.player.V().rb)&&(d.forced_experiments=e));b=mr(g.ip(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return si(Error("Invalid AdBreakInfo URL"));if((d=null==c?void 0:c.oauthToken)&&or()){var n=RH();Qya(n,d)}n=a.player.dl(n);a=Vya(a,b,l,c.isMdxPlayback);return g.TH(n,a,"/youtubei/v1/player/ad_break")};
Yya=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=nr(b),f=Wya(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=Wya(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var k={};b=hr(qr(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")&&(k.bid=l.get("bid"));k.params=[];Xya.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},k.params.push(m))});
a.adSignalsInfo=k}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};
aza=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:""},k="ACTIVE";"!"===d[0]&&(d=d.substring(1),k="INACTIVE");d=d.split("-");3>d.length||(d[0]in Zya&&(f.clientName=Zya[d[0]]),d[1]in $ya&&(f.platform=$ya[d[1]]),f.applicationState=k,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Vya=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=bza.exec(b);f=null!=f&&2<=f.length?f[1]:"";var k=cza.test(b),l=dza.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=eza.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=fza.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.V();var q=QC(p.Ea);p=p.S("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.NH(a.player.getVideoData(1).Xa,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Yya(q,b,t.toString(),a.player.V());var v={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19072,autonavState:Uya(a.player.V())};d&&(d={},aza(d,c.YT_REMOTE)&&(v.mdxContext=d));if(d=gza.includes(p)?void 0:g.Nr("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,z=x.length;y<z;y++){var E=x[y].split("=");if(("SML"===
E[0].toUpperCase()||"GSML"===E[0].toUpperCase())&&1<E.length&&"TRUE"===E[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in hza)for(d=d.split(RegExp("[:&]")),y=hza.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,E=d.length;z<E;z++){var I=d[z].split("=");if(I[0]===x&&parseInt("0x"+I[1],16)&y){d=!0;break a}}d=!1}v.autoCaptionsDefaultOn=d}b=iza.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:v};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:k,context:q,adSignalsInfoString:hr(qr(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());f.currentMediaTimeMs=
Math.round(1E3*a.player.getCurrentTime(1));return f};
VH=function(a,b,c,d,e,f){g.ev.call(this);this.J=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
jza=function(a,b){var c={isEmpty:!0,hN:!1,fm:[]};if(!b)return c;b&&b.trackingParams&&Kya(JH(),b.trackingParams);if(b&&b.adThrottled)return c.hN=!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.dc(b))return c;if(0<a.j.j.end){var d=a.j.j.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.fm=b;
c.isEmpty=!1;return c};
WH=function(a,b,c,d,e,f,k,l){DH.call(this,a,b,c,d,e,f,k,l);this.B=d.u;this.C=-1;this.J=null;this.N=kza(this.tA())};
lza=function(a){a.C++;var b=a.tA();b?(0<a.C&&tya(a.D),a.vv(b)):HH(a)};
kza=function(a){return a?mza.some(function(b){return a instanceof b}):!1};
nza=function(a){this.j=new Iya(function(b){b=new DH(a.dg,a.I,a.FL(),b,a.mm,a.Rs,a.Sp,a.daiEnabled);EH(b);return b},function(b){return new VH(a.WD,a.dg,a.I,a.Rp,b,a.mm)},function(b){b=new WH(a.dg,a.I,a.FL(),b,a.mm,a.Rs,a.Sp,a.daiEnabled);
EH(b);return b})};
oza=function(a,b){WE.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.As("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),XE(this,new HF(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.r(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);XE(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new DF(d.adActionInterstitialRenderer),
XE(this,d)):d.adIntroRenderer&&(d=new GF(d.adIntroRenderer),XE(this,d),this.u=1);this.j.filter(function(f){return f instanceof VE}).forEach(function(f,k){f instanceof VE&&(k=new SE(k,c),f.B=k)})}}};
qza=function(a,b){WE.call(this);XE(this,pza(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new bF(c.instreamSurveyAdRenderer);break a}}b=null}XE(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new DF(a.adActionInterstitialRenderer)):a=null:a=null;XE(this,a)};
pza=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new DF(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.As("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new HF(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new IF(b.surveyTextInterstitialRenderer):null};
rza=function(a,b){this.B=new mxa;this.j=a;this.u=b};
sza=function(a){this.j=a};
tza=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,k=e?a.j.create(e,f):null;return new qxa(b,c,k,d)}catch(l){g.S(l)}};
uza=function(a){var b=new sza(a.uT);return{dM:function(){return b}}};
XH=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.Bf(this,function(){return b.j=null});
var c=av(a);if(c){var d=function(){b.j&&b.j(!!Zu())};
this.u.addEventListener(c,d);g.Bf(this,function(){b.u.removeEventListener(c,d)})}};
YH=function(a){g.G.call(this);this.j=a};
vza=function(a){var b=window.document;return g.YC(a.V())?new XH(b):new YH(a)};
wza=function(a){g.G.call(this);this.HR=new mya(a.I,a.contentCpn,a.daiEnabled)};
xza=function(a){ZH=a&&a.data};
zza=function(a){yza=a&&a.data};
Aza=function(a){$H=a&&a.data};
Bza=function(a){aI=a&&a.data};
Cza=function(a){bI=a&&a.data};
Dza=function(){bI=aI=$H=ZH=null};
eI=function(a){g.G.call(this);var b=this;this.Qc=a;this.ke=new Map;this.j=new Map;cI(this,"commandExecutorCommand",function(c,d,e){b.Ld(c.commands,d,e)});
dI(this,"commandExecutorCommand",function(c,d){Eza(b,c.commands,d)});
cI(this,"clickTrackingParams",function(){});
dI(this,"clickTrackingParams",function(){})};
Fza=function(a,b){cI(a,b.bl(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Gza=function(a,b){dI(a,b.bl(),function(c,d){b.Em(c,d)})};
cI=function(a,b,c){a.isDisposed();a.ke.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.ke.set(b,c)};
dI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Eza=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.r(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.r(d);for(b=d.next();!b.done;b=d.next())fI(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())fI(a,b.value,c)};
Hza=function(a,b){a.Qc.get().Oa("innertubeCommand",{openPopupAction:b})};
Iza=function(a,b){a.Qc.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
fI=function(a,b,c){a.isDisposed();b.loggingUrls&&Jza(a,"loggingUrls",b.loggingUrls,c);b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Hza(a,e):"confirmDialogEndpoint"===d?Iza(a,e):Kza.hasOwnProperty(d)||Jza(a,d,e,c)}};
Lza=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.ke.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.S(f)}else b=new g.Fs("Unhandled field",b),g.Ov(b)};
Jza=function(a,b,c,d){(a=a.j.get(b))||new g.Fs("Unhandled field",b);try{a(c,d)}catch(e){g.S(e)}};
Nza=function(a,b,c,d){for(var e=!1,f=g.r(b.di.entries()),k=f.next();!k.done;k=f.next())k=g.r(k.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===k.slotType&&"core"===k.gb&&(e=!0);e?(d=Mza(b,d))?c.BF(d):T("No triggering layout ID available when attempting to mute."):g.mi(function(){a.Xk()})};
Mza=function(a,b){if(b)return b;a=g.r(a.di.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.gb)return c.layoutId}};
Oza=function(a){var b=new iF(a.lm),c=new jF(b);return{yU:function(){return b},
nF:function(){return c}}};
Fxa=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}};
Pza=function(a){this.I=a;var b=Nl(fp),c=a.qe();b.B!==c&&((b.B=c)||Wha(b));a.V().S("active_view_stop_starting_measurement_on_loaded")&&sl(Xl().featureSet,"ssmol",1)};
zxa=function(a){hia(Nl(fp),a)};
Qza=function(a){g.G.call(this);this.j=a;this.u=new Pza(a.I)};
Rza=function(a){return function(){return new nH(a.j.I)}};
Sza=function(a){return function(b,c){return new Axa(b,a.u,c,a.j.I,a.j.Yh,a.j.daiEnabled)}};
gI=function(a,b,c,d,e){g.ev.call(this);var f=this;this.j=b;this.ya=null;this.Wa=c;this.Ya=e.Sf;this.Qa=e.gp;this.u=null;this.B=new Map;c=this.j.V().experiments;var k=Oza({lm:b.getVideoData(1)}),l=new Qza({Yh:k.nF(),I:b,daiEnabled:!1});g.H(this,l);this.Tp=new Set;this.HA=-1;this.X=[];this.Z=new Map;this.J=new Map;this.K=new Set;this.C=new bv(this);g.H(this,this.C);this.D=new bv(this);g.H(this,this.D);this.ma=this.Sa=this.va=!1;this.N=g.YC(b.V());this.ib=d;b=new wza({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
Oga:this,daiEnabled:!1,I:this.j});g.H(this,b);this.Xa=b.HR;this.Ia=(new kya({Pga:this,Dha:c.ob("html5_recognize_predict_start_cue_point"),zha:c.ob("html5_persist_cue_range_killswitch")})).j;var m=kg(fF(eF(this.j)));e=new iya({fb:this,kq:RE(),Yh:k.nF(),I:this.j,nZ:m,qC:Sza(l),daiEnabled:!1,Nm:e.Nm,Sf:this.Ya,Nj:e.Nj,Mm:e.Mm});this.xa=(new nza({Rp:this.Wa,Sp:e.tT,WD:a,dg:this,kq:RE(),FL:Rza(l),mm:this.Xa,Rs:this.Ia,I:this.j,Mha:m,qC:function(n){return Sza(l)(n,m)},
daiEnabled:!1})).cM();this.Ea=uza({uT:new rza(c,function(n){return f.J.has(n)?f.J.get(n):null})}).dM();
this.Ja=vza(this.j);g.H(this,this.Ja);this.jb=eD(this.j.V())?this.j.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit")};
Yza=function(a,b){if(a.j.getVideoData(1).bq||g.P("SERVED_VIA_SPF_HISTORY"))hI(a);else{if(KE(a.j)){var c=Tza(a.j);c.addEventListener("updateKevlarOrC3Companion",xza);c.addEventListener("onPlaShelfInfoCardsReady",zza);c.addEventListener("updateEngagementPanelAction",Aza);c.addEventListener("changeEngagementPanelVisibility",Bza);c.addEventListener("scrollToEngagementPanel",Cza);window.addEventListener("yt-navigate-start",Dza)}a.C.T(a.j,"applicationplayerstatechange",a.EW);a.C.T(a.j,g.Gw("ad"),a.JG,a);
a.C.T(a.j,g.Hw("ad"),a.TW,a);a.C.T(a.j,"aduxclicked",a.qW);a.C.T(a.j,"videodatachange",a.WY);b=Uza(b);b=Vza(a,b);b=Wza(a,b);0<b.length&&Xza(a,b);g.mi(a.A_,a)}};
Uza=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(T("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
Vza=function(a,b){a.Z=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.Z.set(c.elementId,c),!1):!0})};
Wza=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
Zza=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.S(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof VH?!1:c instanceof DH?!c.yq():!0})};
hI=function(a){var b=$za(a);if(0<b.length){var c=g.YA(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.N&&g.MC(a.j.V())?(c=new g.L(function(){aAa(a,b)},c),g.H(a,c),c.start()):g.mi(function(){aAa(a,b)})}};
bAa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.Zw()?pF(a.j,b):{}):b={};return b};
$za=function(a){for(var b=cAa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Tp.delete(d.value);return b};
cAa=function(a){var b=[];a=g.r(a.Tp);for(var c=a.next();!c.done;c=a.next())c=c.value,Jw(c)&&b.push(c);return b};
dAa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ea,e=d.create;var f=1E3*a.j.getDuration(1);f=new xqa(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.ob("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.X.length,c);a.X=a.X.concat(b);return b};
aAa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.JG(c.value)}};
Xza=function(a,b){b=dAa(a,b);0==b.length||b.map(function(c){return a.xa.create(c)})};
eAa=function(a){a.va||(a.D.T(a.j,"presentingplayerstatechange",a.IR),a.D.T(a.j,"internalAbandon",a.eW),a.D.T(a.j,"progresssync",a.ZY),a.D.T(a.j,"onVolumeChange",a.aZ),a.D.T(a.Ja,"fullscreentoggled",a.dX),a.va=!0);g.M(a.j.getRootNode(),"ad-showing");g.M(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.ob("enable_html5_teal_ad_badge")&&KE(a.j)&&g.M(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
GH=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.yq()&&(JE(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&fAa(a,a.u);a.u=null;a.HA=-1;e&&gAa(a,c);a.ma||a.Qa.jq();b&&d&&(d.mJ().B=!1,EH(d))};
gAa=function(a,b){g.dv(a.D);a.va=!1;g.yp(a.j.getRootNode(),"ad-showing");a.jb?(a.ma||a.Qa.jq(),hAa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),hAa(a));g.yp(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.ob("enable_html5_teal_ad_badge")&&g.yp(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
hAa=function(a){if(a.Sa)!a.N&&g.MC(a.j.V())&&a.j.Vm();else if(a.j.Vm(),!a.N){var b=a.j.zb(1);g.V(b,4)&&!g.V(b,2)&&a.j.playVideo()}};
fAa=function(a,b){a=a.B;for(var c=g.r(a),d=c.next();!d.done;d=c.next()){d=g.r(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.zf(b)};
iI=function(a){g.G.call(this);this.u=a};
jI=function(a){iI.call(this,!0);this.j=a};
iAa=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.Zl||null});
d.EI=c(function(){return e&&e.eventId||null});
a.V().S("get_ad_cpn_from_video_data_on_html5")?d.AD_CPN=c(function(){var f,k=(null==(f=a.getVideoData(2))?void 0:f.clientPlaybackNonce)||"";f=b.zw();k!==f&&g.Ov(new g.Fs("Mismatched macro for AD_CPN found.",{adCpnFromPlayer:k||"empty_from_player",adCpnFromAdService:f||"empty_from_ad_service"}));return k}):d.AD_CPN=c(function(){return b.zw()});
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 Au().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
jAa=function(a,b){g.G.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.J=this.C=!1;this.Z=null;var d=(0,g.Ta)(a,b);this.j=new g.L(function(){return d(c.Z)},300);
g.H(this,this.j);this.X=this.N=Infinity};
kAa=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};
kI=function(){var a="ytp-id-"+lAa.toString();lAa++;return a};
g.lI=function(a){g.G.call(this);this.vb={};this.Pd={};this.element=this.createElement(a)};
mI=function(a,b,c,d){if("{{"===d.substr(0,2))a.Pd[d]=[b,c];else return d};
mAa=function(a,b){var c=[];if(!b)return c;b=g.r(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,k){0<k&&c.push(g.Wh("BR"));c.push(g.Xh(f))}):c.push(g.Xh(d))}return c};
nI=function(a,b,c,d){if("child"===c){g.Yh(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=mAa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Dm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.$g(g.bh(a))),b.setAttribute(c,a))};
g.W=function(a){g.lI.call(this,a);this.ub=!0;this.va=!1;this.listeners=[]};
g.oI=function(a,b){b?a.show():a.hide()};
g.pI=function(a){g.W.call(this,a);this.Wa=new g.ev;g.H(this,this.Wa)};
qI=function(a,b,c,d,e,f,k,l){l=void 0===l?null:l;g.pI.call(this,c);this.api=a;this.fb=b;this.macros={};this.componentType=d;this.K=null;this.ib=l;this.layoutId=e;this.j=f;this.kb=k;this.Sa=null;this.GH=new jI(this.element);g.H(this,this.GH);this.Ya=this.T(this.element,"click",this.onClick);this.xa=[];this.ma=new jAa(this.onClick,this);g.H(this,this.ma);this.jb=!1;this.X=null};
rI=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Ov(Error("Got null or undefined adText object")),"";var c=g.Ih(a.text);if(!a.isTemplated)return c;if(null==b)return g.Ov(Error("Missing required parameters for a templated message")),c;a=g.r(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.r(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
nAa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.dc(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Ih(a.thumbnails[0].url)};
oAa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.dc(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Ch(0,0):new g.Ch(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
pAa=function(){return{G:"svg",W:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},U:[{G:"path",W:{d:"M22,20h-8v-1h7V5H3v3H2V4h20V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79c2.51,0,4.55,2,4.55,4.46 h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12C12,14.57,7.52,10.18,2,10.18z",fill:"white"}}]}};
g.qAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
sI=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.tI=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.uI=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"}}]}};
rAa=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"}}]}};
sAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
tAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.vI=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"}}]}};
uAa=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"}}]}};
vAa=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"}}]}};
wAa=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"}}]}};
xAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.wI=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"}}]}};
xI=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"}}]}};
yAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
yI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.zI=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"}}]}};
zAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
AAa=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"}}]}};
BAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
AI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
CAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.BI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.CI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
DAa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
EAa=function(){return{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v22h38V12H5z M15.21,27.29l-1.41,1.41L8.09,23l5.71-5.71l1.41,1.41L10.91,23  L15.21,27.29z M34.21,28.71l-1.41-1.41L37.09,23l-4.29-4.29l1.41-1.41L39.91,23L34.21,28.71z",fill:"white"}}]}};
DI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}}]}};
EI=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.vI();case "INFO_OUTLINE":return wAa();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 yI();case "LIKE":return g.wI();case "DISLIKE":return vAa();default:return g.Ov(new g.Fs("Unexpected icon:",a)),null}};
FI=function(a,b,c,d,e,f,k,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={G:"button",Ga:["ytp-ad-button"].concat(f)};null!=m&&(f.W={tabindex:m});qI.call(this,a,b,f,void 0===k?"button":k,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
FAa=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||[]};
GI=function(){g.G.call(this);var a=this;this.j=new Map;this.u=Ooa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Kt(b[c],void 0,void 0)})};
GAa=function(){null==HI&&(HI=new GI);return HI};
II=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=HAa(a))){b=Vh("SPAN",null,b);break a}b=g.Xh(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(IAa(e,b))}return 1==c.length?c[0]:Vh("SPAN",null,c)};
IAa=function(a,b){var c=null,d=a.text;b&&(d=HAa(d)||d);a.bold&&(c=Vh("B",null,c||d));a.italics&&(c=Vh("I",null,c||d));a.strikethrough&&(c=Vh("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=Vh("A",null,c||d),g.th(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),GAa().register(c,a),g.M(c,"ytp-ad-has-logging-urls"));
return c||Vh("SPAN",null,d)};
HAa=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(Vh("BR")),b.push(a[c]);return b}return null};
JI=function(a,b,c,d,e,f,k,l,m){k=void 0===k?!1:k;l=void 0===l?[]:l;qI.call(this,a,b,{G:"span",Ga:["ytp-ad-hover-text-button"].concat(l)},void 0===m?"ad-hover-text-button":m,c,d,e);this.button=this.B=null;this.J=k;this.D=f;this.hide()};
KI=function(a){return a&&a.thumbnails&&!g.dc(a.thumbnails||null)&&a.thumbnails[0].url?g.Ih(a.thumbnails[0].url):""};
LI=function(a,b,c,d,e,f,k){k=void 0===k?!1:k;qI.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=k;this.hide()};
MI=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;qI.call(this,a,b,{G:"div",Ga:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ga:["ytp-ad-confirm-dialog"].concat(f),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",oa:"{{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",oa:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
oa:"{{confirmLabel}}"}]}]}]},{G:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.vI()]}]}]},void 0===k?"confirm-dialog":k,c,d,e);this.N=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Da("ytp-ad-confirm-dialog-cancel-button");this.J=this.Da("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Da("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new bv;g.H(this,this.u);this.B=null;this.hide()};
JAa=function(a,b){if(b.title){var c=g.Lw(b.title);a.Na("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=II(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.Lw(b.cancelLabel),a.Na("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.fD(e)}));
b.confirmLabel&&(b=g.Lw(b.confirmLabel),a.Na("confirmLabel",b),a.u.T(a.J,"click",function(e){return a.IG(e)}));
a.u.T(a.N,"click",function(e){return a.HG(e)})};
NI=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;k=void 0===k?"toggle-button":k;var l=ME("ytp-ad-toggle-button-input");qI.call(this,a,b,{G:"div",Ga:["ytp-ad-toggle-button"].concat(f),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":l},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",oa:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",oa:"{{toggledIconTemplateSpec}}"}]},
{G:"input",L:"ytp-ad-toggle-button-input",W:{id:l,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",oa:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",oa:"{{tooltipText}}"}]}]},k,c,d,e);this.C=this.Da("ytp-ad-toggle-button");this.u=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.Z=this.Da("ytp-ad-toggle-button-icon");this.J=this.Da("ytp-ad-toggle-button-untoggled-icon");this.D=this.Da("ytp-ad-toggle-button-toggled-icon");this.ya=this.Da("ytp-ad-toggle-button-text");
this.B=null;this.N=!1;this.hide()};
OI=function(a){a.N&&(a.isToggled()?(g.Pm(a.J,!1),g.Pm(a.D,!0)):(g.Pm(a.J,!0),g.Pm(a.D,!1)))};
KAa=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||[]};
PI=function(a){bv.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.N)};
QI=function(a,b,c,d,e){qI.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",oa:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",oa:"{{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",
oa:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.J=this.Da("ytp-ad-feedback-dialog-cancel-button");this.N=this.Da("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Da("ytp-ad-info-dialog-feedback-options");this.ya=this.Da("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
OAa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new FI(a.api,a.fb,a.layoutId,a.j,a.kb,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(ME("button"),c,a.macros),a.u.Pa("click",a.iO,a),a.u.Ba(a.element));b.title&&(c=g.Lw(b.title),a.Na("title",c));b.reasonsTitle&&(c=g.Lw(b.reasonsTitle),a.Na("reasonsTitle",c));b.reasons&&LAa(a,b.reasons);b.cancelLabel&&(c=g.Lw(b.cancelLabel),a.Na("cancelLabel",c),g.lu(a.J,"click",function(){return a.iO()}));
b.confirmLabel&&(c=g.Lw(b.confirmLabel),a.Na("confirmLabel",c),g.lu(a.N,"click",function(){return MAa(a)}));
b.undoRenderer&&NAa(a,b.undoRenderer)};
LAa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.Ov(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.Ov(Error("AdFeedbackReason.endpoint was not set.")):(c=new PAa(c,d),g.H(a,c),a.Z.appendChild(c.j.element),a.D.push(c)))}};
NAa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new FI(a.api,a.fb,a.layoutId,a.j,a.kb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(ME("ad-feedback-undo-mute-button"),b,a.macros),a.B.Pa("click",a.VY,a),a.B.Ba(a.ya)):g.Ov(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
MAa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(RI(a.kb,b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
PAa=function(a,b){this.u=b;this.j=new g.pI({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",oa:g.Lw(a)}]});this.B=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
SI=function(a,b,c,d,e){MI.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
TI=function(a,b,c,d,e,f){qI.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",oa:"{{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",oa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.N=this.Da("ytp-ad-info-dialog-confirm-button");this.Qa=this.Da("ytp-ad-info-dialog-mute-container");this.Ja=this.Da("ytp-ad-info-dialog-message");this.Ea=this.Da("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.ya=f;this.J=null;this.Ia=!1;this.Z=null;this.hide()};
QAa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new QI(a.api,a.fb,a.layoutId,a.j,a.kb),g.H(a,a.B),a.B.init(ME("ad-feedback-dialog"),b,a.macros),a.B.Ba(a.ya),a.B.subscribe("a",function(){return a.ea("c")})};
RAa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new SI(a.api,a.fb,a.layoutId,a.j,a.kb),g.H(a,a.D),a.D.init(ME("ad-mute-confirm-dialog"),b,a.macros),a.D.Ba(a.ya),a.D.subscribe("b",function(){return a.ea("c")})};
SAa=function(a){a.u&&a.u.Pa("click",a.AJ,a);g.lu(a.N,"click",function(){return a.AJ()})};
UI=function(a,b,c,d,e,f,k){JI.call(this,a,b,c,d,e,void 0===k?!0:k,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
TAa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.S(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new TI(a.api,a.fb,a.layoutId,a.j,a.kb,a.C),g.H(a,a.u),a.u.init(ME("ad-info-dialog"),b,c),a.u.Ba(a.C),a.u.subscribe("d",function(){return a.ea("f")}),a.u.subscribe("c",function(){return a.ea("e")}))};
VAa=function(a,b,c){null==a.button?g.S(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.M(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(TAa(a,b,c),a.button.Pa("click",function(){a.u&&!a.u.ub&&(a.u.show(),UAa(a))})):a.button.Pa("click",function(){return UAa(a)}))};
UAa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
VI=function(a,b,c,d,e,f,k){qI.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===k?"ad-text":k,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
WI=function(a,b){b&&g.ci(a.element,rI(a.u,b))};
XI=function(a,b,c,d,e,f,k,l){qI.call(this,a,b,c,d,e,f,k);this.u=l;g.H(this,this.u);this.Ea=this.D=-1};
YI=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.hp,a),a.Ea=a.u.subscribe("g",a.Xq,a),a.hp())};
ZI=function(a){null!=a.u&&-1!==a.D&&(a.u.Nf(a.D),a.u.Nf(a.Ea),a.Ea=-1,a.D=-1)};
g.$I=function(a,b,c,d,e,f){g.G.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.L(this.wC,0,this);g.H(this,this.delay)};
aJ=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
bJ=function(a,b,c,d,e,f,k){XI.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Ja=-1;this.B=new g.pI({G:"span",L:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ba(this.B.element);this.N=new g.pI({G:"span",L:"ytp-ad-preview-image"});g.H(this,this.N);this.J=new LI(this.api,this.fb,this.layoutId,this.j,this.kb);g.H(this,this.J);this.J.Ba(this.N.element);this.N.Ba(this.B.element);
this.B.Ba(this.element);this.Z=new g.$I(this.B,400,!1,100,function(){return l.hide()});
g.H(this,this.Z);this.ya=0;this.Ia=!1;this.Qa=k;this.hide()};
cJ=function(a){a.Z.show(100);a.show()};
dJ=function(a,b,c,d,e,f){XI.call(this,a,b,{G:"div",Ga:["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,f);this.N=new LI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-flyout-cta-icon");g.H(this,this.N);
this.N.Ba(this.Da("ytp-flyout-cta-icon-container"));this.J=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-flyout-cta-headline");g.H(this,this.J);this.J.Ba(this.Da("ytp-flyout-cta-headline-container"));this.C=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ba(this.Da("ytp-flyout-cta-description-container"));this.B=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-flyout-cta-action-button"]);g.H(this,this.B);this.B.Ba(this.Da("ytp-flyout-cta-action-button-container"));
this.Z=null;this.ya=0;this.hide()};
eJ=function(a,b,c,d,e,f){qI.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var k=this;this.u=null;this.C=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ba(this.element);this.B=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ba(this.element);this.D=new g.$I(this,400,!1,500,
function(){return k.hide()});
g.H(this,this.D);this.hide()};
fJ=function(a,b,c,d,e){e=void 0===e?0:e;g.G.call(this);this.B=a;this.u=!1;this.X=d;this.J=!1;this.j=null;0<b&&(this.j=new g.L(this.cL,b,this),g.H(this,this.j));this.D=new g.L(this.cL,c,this);g.H(this,this.D);this.N=zia(this.B,e,1,d);g.H(this,this.N);this.K=zia(this.B,0,d,1);g.H(this,this.K);this.C=new bv;g.H(this,this.C)};
gJ=function(a,b,c,d,e,f,k){XI.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.N=null;this.ya=!1;this.Ia=k;this.C=new g.pI({G:"span",Ga:["ytp-ad-skip-button-container"]});g.H(this,this.C);this.C.Ba(this.element);this.B=this.J=null;this.Ja=new g.$I(this.C,500,!1,100,function(){return l.hide()});
g.H(this,this.Ja);this.Z=new fJ(this.C.element,15E3,5E3,.5,.5);g.H(this,this.Z);this.hide()};
XAa=function(a){var b=a.N&&a.N.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.V().S("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?WAa(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
WAa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
hJ=function(a,b,c,d,e,f,k){XI.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.Z=k;this.J=!1;this.N=0;this.C=this.B=null;this.hide()};
YAa=function(a,b){a.J||(a.J=!0,a.B&&(b?a.B.Z.hide():a.B.hide()),b?(a=a.C,a.Ja.show(),a.show()):a.C.show())};
iJ=function(a,b,c,d,e){FI.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
jJ=function(a,b,c,d,e,f){f=void 0===f?!1:f;qI.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
kJ=function(a,b,c,d,e){e=void 0===e?!1:e;NE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.jj=e};
lJ=function(a,b){g.ev.call(this);this.api=a;this.durationMs=b;this.j=null;this.Mc=new bv(this);g.H(this,this.Mc);this.u=ZAa;this.Mc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Mc.T(this.api,"onAdPlaybackProgress",this.Qb)};
mJ=function(a,b){g.ev.call(this);this.fb=b;this.u=!1;this.j=0;this.Mc=new bv(this);g.H(this,this.Mc);this.durationMs=a;this.timer=new g.wi(100);g.H(this,this.timer);this.Mc.T(this.timer,"tick",this.Qb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.nJ=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.oJ=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)};
pJ=function(a,b,c,d,e,f,k){XI.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.B=null;this.hide()};
qJ=function(a,b,c,d,e){VI.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
rJ=function(a,b){this.u=a;this.j=b};
sJ=function(a){return a.j-a.u};
tJ=function(a,b){return a.u+b*sJ(a)};
uJ=function(a,b,c){return sJ(a)?g.wh((b-a.u)/sJ(a),0,1):null!=c?c:Infinity};
vJ=function(a,b){g.pI.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.Ic=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
wJ=function(a,b,c,d,e,f,k){qI.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,e);this.J=k;this.N=this.Da("ytp-ad-player-overlay-flyout-cta");this.B=this.Da("ytp-ad-player-overlay-instream-info");this.C=null;$Aa(this)&&
(a=Vh("div"),g.M(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 qJ(this.api,this.fb,this.layoutId,this.j,this.kb),c.Ba(a),c.init(ME("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Da("ytp-ad-player-overlay-skip-or-preview");this.ya=this.Da("ytp-ad-player-overlay-progress-bar");this.Z=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.H(this,this.u);
this.hide()};
$Aa=function(a){a=a.api.V();return g.GC(a)&&a.isMobile};
bBa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Vi(window.location.href);e&&d.push(e);e=g.Vi(a);if(g.cc(d,e)||!e&&ib(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.th(d,a),a=d.href),a&&(a=Ica(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.Hv()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&aBa(a,b,f)}else aBa(a,b)};
aBa=function(a,b,c){a="ST-"+Jh(a).toString(36);b=b?g.lj(b):"";c=c||5;hs()&&g.Mr(a,b,c)};
xJ=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.nj("/sharing_services",a);g.Kt(d)};
g.dBa=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.nj(a,b)+c;var e=void 0===e?mga:e;e=nga(a,e)||cBa;d.href=zda(e)};
g.yJ=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.P("EVENT_ID");d&&(b.ei||(b.ei=d));b&&bBa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.dBa(a))};
g.zJ=function(a,b,c,d){c&&bBa(a,c);c=g.bh(a);c=g.$g(c);a!=c&&fr(Error("Unsafe window.open URL: "+a));a=c;b=b||Jh(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=eBa(a);var k=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,k);return}catch(l){}window.open(a,b)};
eBa=function(a){return"www.googleadservices.com"!==g.Vi(a)?a:a+"&nis=3"};
g.AJ=function(a,b,c){b=fBa(null,b,c);if(b=uh(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Fu("LOGGED_IN",function(d){g.Gu(g.P("LOGGED_IN_PUBSUB_KEY",void 0));Wq("LOGGED_IN",!0);a(d)}),Wq("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
fBa=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=mj(c,"mode",a));a=mj(d,"next",c);b&&(a=mj(a,"feature",b));return a};
BJ=function(a){this.name=a};
CJ=function(){this.key=gBa};
hBa=function(){this.providers=new Map;this.j=new Map};
EJ=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.j.has(b))return a.j.get(b);if(!a.providers.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.providers.get(b);c.push(b);if(d.E_)var e=d.E_;else if(d.D_)e=d[DJ]?iBa(a,d[DJ],c):[],e=d.D_.apply(d,g.u(e));else if(d.EQ){e=d.EQ;var f=e[DJ]?iBa(a,e[DJ],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.u(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Lha||a.j.set(b,
e);return e};
iBa=function(a,b,c){return b?b.map(function(d){return d instanceof CJ?EJ(a,d.key,c,!0):EJ(a,d,c)}):[]};
jBa=function(a,b){if(!a)return!1;var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.yr)return!!b.yr[a.signalServiceEndpoint.signal];var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.yE)return!!b.yE[a.continuationCommand.request];for(var e in a)if(b.vE[e])return!0;return!1};
kBa=function(a,b){var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.yr&&(c=b.yr[a.signalServiceEndpoint.signal]))return c();var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.yE&&(d=b.yE[a.continuationCommand.request]))return d();for(var e in a)if(b.vE[e]&&(a=b.vE[e]))return a()};
FJ=function(a){return function(){return new a}};
mBa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=lBa[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(lBa).forEach(function(k){var l=g.r(k);k=l.next().value;l=l.next().value;b!==k&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(k,l){return k.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.GJ=function(a){return"/youtubei/v1/"+mBa(a)};
HJ=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Ica(a)));return a};
nBa=function(a,b){var c={};g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.P("INNERTUBE_API_KEY"));g.Q("json_condensed_response")&&(c.prettyPrint="false");return a=mr(a,c)};
IJ=function(a,b){return{method:void 0===b?"POST":b,mode:nr(a)?"same-origin":"cors",credentials:nr(a)?"same-origin":"include"}};
JJ=function(){};
KJ=function(){};
LJ=function(a,b,c,d){this.C=a;this.jf=b;this.j=c;this.D=d;this.B=void 0;this.u=new Map;a.yr||(a.yr={});a.yr=Object.assign({},oBa,a.yr)};
pBa=function(a,b,c,d){if(void 0!==LJ.j){if(d=LJ.j,a=[a!==d.C,b!==d.jf,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Fs("InnerTubeTransportService is already initialized",a);
}else LJ.j=new LJ(a,b,c,d)};
NJ=function(a,b,c){var d=void 0===d?MJ:d;var e=kBa(b,a.C);if(!e)return si(new g.Fs("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.pi(function(k){var l,m,n;return g.B(function(p){if(1==p.j)return m="cors"===(null==(l=f.lr)?void 0:l.mode)?"cors":void 0,a.j.aQ?(n=qBa(a,f.config,m),p.Za(2)):g.A(p,rBa(a,f.config,m),3);2!=p.j&&(n=p.u);k(sBa(a,f,n));g.ua(p)})}):si(new g.Fs("Error: Failed to build request for command.",b))};
g.TH=function(a,b,c,d,e){e=void 0===e?{Yp:{identity:MJ}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.NH(d,f));return new g.pi(function(k){var l,m,n,p,q;return g.B(function(t){if(1==t.j)return l=HJ(c),m=nr(l)?"same-origin":"cors",a.j.aQ?(n=qBa(a,e,m),t.Za(2)):g.A(t,rBa(a,e,m),3);2!=t.j&&(n=t.u);var v=n;p=nBa(HJ(c),v);q={input:p,lr:IJ(p),ul:b,config:e};k(sBa(a,q,n));g.ua(t)})})};
sBa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I,K,N;return g.B(function(aa){switch(aa.j){case 1:aa.Za(2);break;case 3:if((d=aa.u)&&!d.isExpired())return aa.return(Promise.resolve(d.j()));case 2:if((f=null==(e=b.config)?void 0:e.ek)&&a.u.has(f)&&g.Q("web_memoize_inflight_requests"))return aa.return(a.u.get(f));if(null==(k=b)?0:null==(l=k.ul)?0:l.context)for(m=g.r([]),n=m.next();!n.done;n=m.next())p=n.value,p.Cha(b.ul.context);if(null==(q=a.B)?0:q.C(b.input,b.ul))return aa.return(a.B.B(b.input,
b.ul));t=JSON.stringify(b.ul);b.lr=Object.assign({},b.lr,{headers:c});v=Object.assign({},b.lr);"POST"===b.lr.method&&(v=Object.assign({},v,{body:t}));(null==(x=b.config)?0:x.CZ)&&hx(b.config.CZ);y=a.jf.fetch(b.input,v,b.config);f&&a.u.set(f,y);return g.A(aa,y,4);case 4:z=aa.u;f&&a.u.has(f)&&a.u.delete(f);(null==(E=b.config)?0:E.FZ)&&hx(b.config.FZ);if(z||null==(I=a.B)||!I.j(b.input,b.ul)){aa.Za(5);break}return g.A(aa,a.B.u(b.input,b.ul),6);case 6:z=aa.u;case 5:if(z&&a.D)for(K=g.r(tBa),n=K.next();!n.done;n=
K.next())N=n.value,a.D[N]&&a.D[N].handleResponse(z,b);return aa.return(z)}})};
rBa=function(a,b,c){var d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Yp)?void 0:e.identity)||MJ;m=null==(k=b)?void 0:null==(l=k.Yp)?void 0:l.sessionIndex;var q=ri(a.j.lA(f,{sessionIndex:m}));return g.A(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},uBa(c),n)))})};
qBa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Yp)?void 0:d.identity)||MJ,f;b=null==b?void 0:null==(f=b.Yp)?void 0:f.sessionIndex;a=a.j.lA(e,{sessionIndex:b});return Object.assign({},uBa(c),a)};
uBa=function(a){var b={"Content-Type":"application/json"};g.Q("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"):g.P("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));"cors"!==a&&((a=g.P("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.P("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.P("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.Q("forward_domain_admin_state_on_embeds")&&
(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
OJ=function(){};
PJ=function(){};
QJ=function(){};
RJ=function(){};
SJ=function(){};
TJ=function(){};
UJ=function(a){this.j=a};
g.XJ=function(a,b){if(!VJ){WJ||(WJ=new hBa);var c=WJ;var d={sZ:vBa,EQ:UJ};c.providers.set(d.sZ,d);d={vE:{feedbackEndpoint:FJ(QJ),modifyChannelNotificationPreferenceEndpoint:FJ(RJ),playlistEditEndpoint:FJ(SJ),subscribeEndpoint:FJ(OJ),unsubscribeEndpoint:FJ(PJ),webPlayerShareEntityServiceEndpoint:FJ(TJ)}};var e=g.Q("web_enable_client_location_service")?MH.getInstance():void 0,f={};e&&(f.client_location=e);void 0===a&&(OH.j||(OH.j=new OH),a=OH.j);void 0===b&&(b=c.resolve(vBa));pBa(d,b,a,f);VJ=LJ.j}return VJ};
YJ=function(){};
wBa=function(){YJ.j||(YJ.j=new YJ);return YJ.j};
yBa=function(){if(!g.Q("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q("disable_biscotti_fetch_entirely_for_all_web_clients")&&hs()&&"1"!=g.eg(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){jK=!0;"google_ad_status"in window?Wq("DCLKSTAT",1):Wq("DCLKSTAT",2)};
try{g.fw("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}xBa.push(g.mp.eg(function(){if(!(jK||"google_ad_status"in window)){try{if(a){var b=""+g.Sa(a),c=nqa[b];c&&g.Gu(c)}}catch(d){}jK=!0;Wq("DCLKSTAT",3)}},5E3))}};
zBa=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
kK=function(){};
ABa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
ys=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.$q("ytidb_transaction_ended_event_rate_limit",.02)};
CBa=function(a,b){kK.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:BBa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:BBa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
BBa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
DBa=function(){this.state=1;this.j=null};
FBa=function(a,b,c,d,e,f){var k=void 0===k?"trayride":k;c?(a.state=2,g.fw(c,function(){if(window[k])EBa(a,d,k,e);else{a.state=3;var l=mqa(c),m=document.getElementById(l);m&&(Soa(l),m.parentNode.removeChild(m));g.Ov(new g.Fs("Unable to load Botguard","from "+c))}},f)):b?(f=g.Wh("SCRIPT"),f.textContent=b,f.nonce=vh(),document.head.appendChild(f),document.head.removeChild(f),window[k]?EBa(a,d,k,e):(a.state=4,g.Ov(new g.Fs("Unable to load Botguard from JS")))):g.Ov(new g.Fs("Unable to load VM; no url or JS provided"))};
EBa=function(a,b,c,d){a.state=5;try{var e=new Oj({program:b,globalName:c});e.PZ.then(function(){a.state=6;d&&d(b)});
GBa(a,e)}catch(f){a.state=7,f instanceof Error&&g.Ov(f)}};
HBa=function(a,b){var c=g.lK;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.j?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.j?c.j.snapshot({dw:a}).then(d):d(null)})]):Promise.resolve(null)};
GBa=function(a,b){g.zf(a.j);a.j=b};
nK=function(a){return!mK||(0,g.R)()-mK>a};
g.pK=function(a,b){var c=g.YA(b.experiments,"bg_vm_reinit_threshold");b.S("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.lK.state?0:nK(c))&&(xx("bg_i",void 0,"player_att"),g.lK.initialize(a,function(){var d=a.serverEnvironment;xx("bg_l",void 0,"player_att");mK=(0,g.R)();for(var e=0;e<oK.length;e++){var f=oK[e];try{f(d)}catch(k){}}},b.cspNonce))};
IBa=function(a){a=void 0===a?{}:a;return g.lK.invoke(a)};
JBa=function(a){var b=g.$q("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return HBa(a,b)};
LBa=function(a,b,c,d){var e=window.location.search;if(38===b.ya&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.nj("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.RQ});if(30===b.ya&&"docs"===a.playerStyle)return g.nj("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.md});if(33===b.ya&&"google-live"===a.playerStyle)return g.nj("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.ya&&g.S(Error("getVideoInfoUrl for invalid namespace: "+a.ya));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.md,ps:a.playerStyle,el:yE(b),hl:a.Qf,list:b.playlistId,agcid:b.ZN,aqi:b.adQueryId,sts:19072,lact:Au()};Object.assign(f,a.deviceParams);a.rb&&(f.forced_experiments=a.rb);b.Ja?(f.vvt=b.Ja,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.CE(b)&&(f.access_token=g.CE(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Lv&&(f.ad_id=b.Lv);null!==b.Nv&&(f.ad_sys=b.Nv);null!==b.ZF&&(f.encoded_ad_playback_context=b.ZF);b.GD&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Wa&&2!==a.Wa&&(f.cc_load_policy=a.Wa);var k=g.os(g.ns.getInstance(),65);g.$C(a)&&null!=k&&!k&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Gq&&(f.endscreen_ad_tracking=
b.Gq);(k=a.Z.get(b.videoId))&&k.Hy&&(f.ic_track=k.Hy);b.Xa&&(f.itct=b.Xa);BE(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.wl&&(f.autonav="1");b.AI&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Og);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.jm&&(f.ytrcc=b.jm);b.QI&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.eh&&(k=3===b.eh.split("|").length,f.force_ad_params=k?b.eh:"||"+b.eh);b.md&&(f.preload=
b.md);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.rf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");zE(b)&&(f.content_v=zE(b));b.qb&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Ja&&(f.ei=a.Ja);a.j&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.PC&&(f.live_start_walltime=b.PC);a.B&&b.lh&&(f.live_manifest_duration=b.lh);a.B&&b.playerParams&&(f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);
a.B&&b.ID&&(f.tkn=b.ID);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.rb&&(f.kpt=b.rb);b.zk&&(f.kids_age_up_mode=b.zk);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Gp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ma?(c=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+","+b.ma.longitudeE7:",",c+=","+(b.ma.clientPermissionState||0)+","+(b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):
c=null;c&&(f.uloc=c);b.Aj&&(f.internalipoverride=b.Aj);a.embedConfig&&(f.embed_config=a.embedConfig);a.xk&&(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.Qp&&b.iq&&(f.clip=b.Qp,f.clipt=b.iq);b.Dq&&
(f.disable_watch_next="1");b.fh&&(f.forced_by_var="1");for(var l in f)!KBa.has(l)&&f[l]&&512<String(f[l]).length&&(g.Ov(Error("GVI param too long: "+l)),f[l]="");b=a.Ea;g.FC(a)&&(b=zw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Ea);a=g.nj(b+"get_video_info",f);e&&(a=aka(a,e));return a};
g.qK=function(a,b){return a.Ea+"timedtext_video?ref=player&v="+b.videoId};
g.rK=function(a,b){a.feature=b;return a};
g.sK=function(a,b){a.utm_source="yt-embeds-web";a.utm_medium=b};
MBa=function(a){var b={};a.CD&&(b.ytrext=a.CD);return g.bg(b)?void 0:b};
g.NBa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.lK.isInitialized()){var d="";b.videoData&&b.videoData.Qa&&(d=b.videoData.Qa+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);xx("bg_v",void 0,"player_att");d=IBa(d);xx("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else xx("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.lK.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^zBa())},a);
this.videoData&&this.videoData.Qa?this.j=ir(this.videoData.Qa):this.j={}};
g.OBa=function(a){if(a.videoData&&a.videoData.Qa){for(var b=[a.videoData.Qa],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
QBa=function(a){var b={};Object.assign(b,a.u);g.Q("player_attestation_bg_async")&&(b.c1a=function(){return PBa(a)});
if(a.videoData&&a.videoData.Qa){for(var c=[a.videoData.Qa],d=g.r(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,k){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},k)})}return Promise.resolve(null)};
PBa=function(a){function b(e){return e+"&r1d="+g.lK.getState()}
if(!g.lK.isInitialized())return xx("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Qa&&(c=a.videoData.Qa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){xx("bg_v",void 0,"player_att");JBa(d).then(function(f){f?(xx("bg_s",void 0,"player_att"),e(b("r1a="+f))):(xx("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){xx("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.uK=function(a){var b=a.V(),c=g.tK(b),d=a.Xa;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=yE(a);"leanback"===f?e="WATCH":b.S("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.qb?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.zk)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:RBa[e]}});a.Gp&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.md&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=SBa[b];c.request=d;d=c.user||{};if(b=a.Ja)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.rb)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};
g.tK=function(a){var b=g.NH(),c=b.client||{};if(a.rb){var d=a.rb.split(","),e=[];d=g.r(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({},c.tvAppInfo,{livingRoomAppMode:e});if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};
a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.md)b.thirdParty={embedUrl:a};return b};
XBa=function(a,b,c){var d=a.videoId,e=g.uK(a),f=a.V(),k={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Au()),referer:document.location.toString(),signatureTimestamp:19072};g.ns.getInstance();a.wl&&(k.autonav=!0);g.os(0,141)&&(k.autonavState=g.os(0,140)?"STATE_OFF":"STATE_ON");k.autoCaptionsDefaultOn=g.os(0,66);BE(a)&&(k.autoplay=!0);f.B&&a.cycToken&&(k.cycToken=a.cycToken);f.enablePrivacyFilter&&(k.enablePrivacyFilter=!0);a.isFling&&(k.fling=!0);var l=a.eh;if(l){var m={},n=[];l=l.split(",");
l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var v=g.r(t.value.split("="));t=v.next().value;v=ma(v);p[t]=v.join("=")}q=p.url;t=p.presetad;v=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),v&&(m.viralAdResponseUrl=v),x&&(m.viralCampaignId=String(x));
else if("video_ad"===p.adtype){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=TBa[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);v&&(y.viralAdResponseUrl=v);x&&(y.viralCampaignId=String(x));n.push(y)}}k.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(k.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(k.isLivingRoomDeeplink=!0);m=a.PC;if(null!=m){m={startWalltime:String(m)};if(n=a.lh)m.manifestDuration=String(n||14400);k.liveContext=
m}a.mutedAutoplay&&(k.mutedAutoplay=!0);a.rf&&(k.splay=!0);m=a.vnd;5===m&&(k.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.jm)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Og){n=a.CD;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:UBa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:VBa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:WBa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){v=void 0;try{v=JSON.parse(n)}catch(z){g.Ov(z)}v&&(t={params:[{key:"ms",value:v.ms}]},q.osName=v.os_name,q.userAgent=v.user_agent,q.windowHeightPoints=v.window_height_points,q.windowWidthPoints=v.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext=m;m=b.width;0<
m&&(k.playerWidthPixels=Math.round(m));if(b=b.height)k.playerHeightPixels=Math.round(b);0!==c&&(k.vis=c);if(c=f.widgetReferrer)k.widgetReferrer=c.substring(0,128);g.xC(f)&&!f.S("embeds_enable_sending_ancestor_origins_killswitch")&&k&&(k.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:k}};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.os(g.ns.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.$C(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.KQ&&(d.captionParams.deviceCaptionsLangPref=a.KQ);a.LD.length?d.captionParams.viewerSelectedCaptionLangs=a.LD:g.WC(e)&&e.S("web_player_i_see_captions_2")&&(f=g.aua(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&
a.S("html5_onesie_attach_po_token");k="onesie"!==a.fetchType&&a.S("html5_non_onesie_attach_po_token");if(f||k)a=a.V(),a.Qd&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Qd);e.S("fetch_att_independently")?d.attestationRequest={omitBotguardData:!0}:e.S("html5_exclude_bg_vm_data")&&(a=g.YA(e.experiments,"bg_vm_reinit_threshold"),d.attestationRequest={omitBotguardData:!nK(a)});return d};
ZBa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.tK(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.GJ(YBa),g.A(f,g.TH(b,c,d,void 0,void 0),2);e=f.u;return f.return(e)})};
$Ba=function(a,b,c){var d=g.YA(b.experiments,"bg_vm_reinit_threshold");nK(d)&&ZBa(a,c).then(function(e){e.botguardData&&g.pK(e.botguardData,b)},function(e){a.isDisposed()||(e=AB(e),a.Aa("attf",{error:e.errorCode}))})};
vK=function(){var a=aCa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Zia.apply(null,[$ia.apply(null,g.u(b))].concat(g.u(c)));this.store=bja(a,void 0,b)};
g.wK=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(k)&&g.Pa(k))d[f]=g.wK(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.Fs("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,vha:k,Na:l}),g.S(b),a}return d};
xK=function(a){this.u=a;this.C=this.j=0;this.B=-1};
yK=function(a){var b=jy(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=jy(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c};
zK=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=yK(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:yK(a);break;case 1:a.j+=8;break;case 2:d=yK(a);a.j+=d;break;case 5:a.j+=4}}return!1};
AK=function(a,b){if(zK(a,b))return yK(a)};
bCa=function(a,b){if(zK(a,b))return!!yK(a)};
BK=function(a,b){if(zK(a,b)){b=yK(a);var c=iy(a.u,a.j,b);a.j+=b;return c}};
CK=function(a,b){if(a=BK(a,b))return g.py(a)};
cCa=function(a,b,c){if(a=BK(a,b))return c(new xK(new dy([a])))};
DK=function(a,b){a=a instanceof Uint8Array?new dy([a]):a;return b(new xK(a))};
dCa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
EK=function(a,b){b=a.j+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.j));a.u=b;a.view=new DataView(a.u.buffer)}};
FK=function(a,b){if(268435455<b){EK(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(EK(a,4);127<b;)a.view.setUint8(a.j,b&127|128),b>>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1};
GK=function(a,b,c){void 0!==c&&(FK(a,b<<3|0),FK(a,c))};
HK=function(a,b,c){void 0!==c&&GK(a,b,c?1:0)};
IK=function(a,b,c){void 0!==c&&(FK(a,b<<3|2),b=c.length,FK(a,b),EK(a,b),a.u.set(c,a.j),a.j+=b)};
JK=function(a,b,c){void 0!==c&&(eCa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),EK(a,1.2*c.length),b=ry(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(EK(a,b),b=ry(c,a.u.subarray(a.j))),a.j+=b,fCa(a))};
eCa=function(a,b,c){c=void 0===c?2:c;FK(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c};
fCa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
KK=function(a,b,c,d,e){c&&(eCa(a,b,void 0===e?3:e),d(a,c),fCa(a))};
gCa=function(a,b){var c=new dCa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)};
g.LK=function(a){var b=new xK(new dy([Oc(decodeURIComponent(a))]));a=CK(b,2);b=AK(b,4);var c=hCa[b];if("undefined"===typeof c)throw a=new g.Fs("Failed to recognize field number",{name:"EntityKeyHelperError",Zga:b}),g.S(a),a;return{pU:b,entityType:c,entityId:a}};
g.MK=function(a,b){var c=new dCa;JK(c,2,a);a=iCa[b];if("undefined"===typeof a)throw b=new g.Fs("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;GK(c,4,a);GK(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.Jc(b))};
NK=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
jCa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.wK(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
kCa=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 OK(a)};
OK=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};
lCa=function(a,b,c,d){if(g.Pa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
RK=function(a,b){g.G.call(this);var c=this;this.app=a;this.playerType=b;this.j=!0;this.element=null;this.D={};this.K={};this.u={};this.N=[];this.J={};this.C={};this.B=null;this.X=new Set;PK(this,"cueVideoById",this.cueVideoById);PK(this,"loadVideoById",this.loadVideoById);PK(this,"cueVideoByUrl",this.cueVideoByUrl);PK(this,"loadVideoByUrl",this.loadVideoByUrl);PK(this,"playVideo",this.playVideo);PK(this,"pauseVideo",this.pauseVideo);PK(this,"stopVideo",this.stopVideo);PK(this,"clearVideo",this.clearVideo);
PK(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);PK(this,"getVideoBytesTotal",this.getVideoBytesTotal);PK(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);PK(this,"getVideoStartBytes",this.getVideoStartBytes);PK(this,"cuePlaylist",this.cuePlaylist);PK(this,"loadPlaylist",this.loadPlaylist);PK(this,"nextVideo",this.nextVideo);PK(this,"previousVideo",this.previousVideo);PK(this,"playVideoAt",this.playVideoAt);PK(this,"setShuffle",this.setShuffle);PK(this,"setLoop",this.setLoop);PK(this,
"getPlaylist",this.DU);PK(this,"getPlaylistIndex",this.getPlaylistIndex);PK(this,"getPlaylistId",this.getPlaylistId);PK(this,"loadModule",this.loadModule);PK(this,"unloadModule",this.unloadModule);PK(this,"setOption",this.setOption);PK(this,"getOption",this.getOption);PK(this,"getOptions",this.getOptions);PK(this,"mute",this.mute);PK(this,"unMute",this.unMute);PK(this,"isMuted",this.isMuted);PK(this,"setVolume",this.setVolume);PK(this,"getVolume",this.getVolume);PK(this,"seekTo",this.seekTo);PK(this,
"getPlayerMode",this.getPlayerMode);PK(this,"getPlayerState",this.getPlayerState);PK(this,"getPlaybackRate",this.getPlaybackRate);PK(this,"setPlaybackRate",this.setPlaybackRate);PK(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);PK(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
PK(this,"setPlaybackQuality",this.setPlaybackQuality);PK(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);PK(this,"getCurrentTime",this.getCurrentTime);PK(this,"getDuration",this.getDuration);PK(this,"addEventListener",this.zT);PK(this,"removeEventListener",this.xZ);PK(this,"getDebugText",this.getDebugText);PK(this,"getVideoData",function(){return c.yA()});
PK(this,"addCueRange",this.addCueRange);PK(this,"removeCueRange",this.removeCueRange);PK(this,"setSize",this.setSize);PK(this,"getApiInterface",this.getApiInterface);PK(this,"destroy",this.destroy);PK(this,"showVideoInfo",this.showVideoInfo);PK(this,"hideVideoInfo",this.hideVideoInfo);PK(this,"isVideoInfoVisible",this.isVideoInfoVisible);PK(this,"getSphericalProperties",this.getSphericalProperties);PK(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.C||(PK(this,"getVideoEmbedCode",
this.getVideoEmbedCode),PK(this,"getVideoUrl",this.getVideoUrl));PK(this,"getMediaReferenceTime",this.getMediaReferenceTime);PK(this,"getSize",this.getSize);a.C||PK(this,"logImaAdEvent",this.logImaAdEvent);QK(this,"getInternalApiInterface",this.getInternalApiInterface);QK(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);QK(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);QK(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);QK(this,"getAdState",this.getAdState);QK(this,"sendAbandonmentPing",
this.sendAbandonmentPing);QK(this,"setLoopRange",this.setLoopRange);QK(this,"getLoopRange",this.getLoopRange);QK(this,"setAutonavState",this.setAutonavState);QK(this,"seekToLiveHead",this.seekToLiveHead);QK(this,"seekToStreamTime",this.seekToStreamTime);QK(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);QK(this,"startSeekCsiAction",this.startSeekCsiAction);QK(this,"getStreamTimeOffset",this.getStreamTimeOffset);QK(this,"getVideoData",this.yA);QK(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
QK(this,"downloadVideo",this.downloadVideo);QK(this,"queueOfflineAction",this.queueOfflineAction);QK(this,"pauseVideoDownload",this.pauseVideoDownload);QK(this,"resumeVideoDownload",this.resumeVideoDownload);QK(this,"refreshAllVideos",this.refreshAllVideos);QK(this,"deleteVideos",this.deleteVideos);QK(this,"deleteAllVideos",this.deleteAllVideos);QK(this,"isOrchestrationLeader",this.isOrchestrationLeader);QK(this,"getAppState",this.getAppState);QK(this,"addInfoCardXml",this.addInfoCardXml);QK(this,
"updateLastActiveTime",this.updateLastActiveTime);QK(this,"setBlackout",this.setBlackout);QK(this,"setAccountLinkState",this.setAccountLinkState);QK(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);QK(this,"setUserEngagement",this.setUserEngagement);QK(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);QK(this,"getPresentingPlayerType",this.getPresentingPlayerType);QK(this,"canPlayType",this.canPlayType);QK(this,"updatePlaylist",this.updatePlaylist);QK(this,"updateVideoData",
this.updateVideoData);QK(this,"updateEnvironmentData",this.updateEnvironmentData);QK(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);QK(this,"setCardsVisible",this.setCardsVisible);QK(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);QK(this,"setSafetyMode",this.setSafetyMode);QK(this,"isAtLiveHead",function(d){return c.isAtLiveHead(void 0,d)});
QK(this,"getVideoAspectRatio",this.getVideoAspectRatio);QK(this,"getPreferredQuality",this.getPreferredQuality);QK(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);QK(this,"onAdUxClicked",this.onAdUxClicked);QK(this,"getFeedbackProductData",this.getFeedbackProductData);QK(this,"getStoryboardFrame",this.getStoryboardFrame);QK(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);QK(this,"getStoryboardLevel",this.getStoryboardLevel);QK(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
QK(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);QK(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);QK(this,"addUtcCueRange",this.addUtcCueRange);QK(this,"showAirplayPicker",this.showAirplayPicker);QK(this,"addBgVersionChangeCallback",this.addBgVersionChangeCallback);QK(this,"dispatchReduxAction",this.dispatchReduxAction);QK(this,"getPlayerResponse",this.getPlayerResponse);QK(this,"setAutonav",this.setAutonav);QK(this,"isNotServable",this.isNotServable);QK(this,
"channelSubscribed",this.channelSubscribed);QK(this,"channelUnsubscribed",this.channelUnsubscribed);QK(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);QK(this,"togglePictureInPicture",this.togglePictureInPicture);QK(this,"supportsGaplessAudio",this.supportsGaplessAudio);QK(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
QK(this,"clearQueue",this.clearQueue);QK(this,"isFastLoad",function(){return!1});
QK(this,"getAudioTrack",this.rU);QK(this,"setAudioTrack",this.setAudioTrack);QK(this,"getAvailableAudioTracks",this.sU);QK(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);QK(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);QK(this,"getStatsForNerds",this.getStatsForNerds);QK(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);QK(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);QK(this,"setMinimized",this.setMinimized);QK(this,"confirmYpcRental",
this.confirmYpcRental);QK(this,"setInlinePreview",this.setInlinePreview);QK(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);QK(this,"handleExternalCall",this.handleExternalCall);QK(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);QK(this,"setScreenLayer",this.setScreenLayer);QK(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);QK(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);QK(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);
QK(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);QK(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);QK(this,"setGlobalCrop",this.setGlobalCrop);QK(this,"getVisibilityState",this.getVisibilityState);QK(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);QK(this,"setInternalSize",this.setInternalSize)};
PK=function(a,b,c){a.D[b]=function(){var d=g.Da.apply(0,arguments);a.Ra();return c.apply(a,d)};
a.u.hasOwnProperty(b)||QK(a,b,c);a.N.push(b)};
SK=function(a,b,c){a.K[b]=function(){var d=g.Da.apply(0,arguments);a.Ra();return c.apply(a,d)};
a.u.hasOwnProperty(b)||QK(a,b,c);a.N.push(b)};
QK=function(a,b,c){a.u[b]=function(){var d=g.Da.apply(0,arguments);a.Ra();return c.apply(a,d)}};
Tza=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){mCa(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Sa(c));
var d=a.C[c];d&&(a.app.tm.unsubscribe(b,d),g.dg(a.C,c))});
return a.B};
mCa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Sa(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var k=g.Da.apply(0,arguments);g.Ka(c).apply(window,k)}:e=c;
var f=function(k){e({target:a.B,data:k})};
a.C[d]=f;a.app.tm.subscribe(b,f)}};
nCa=function(a,b,c){b=g.wh(Math.floor(b),0,100);isFinite(b)&&TK(a.app,{volume:b,muted:a.isMuted()},c)};
oCa=function(a,b){TK(a.app,{muted:!0,volume:a.getVolume()},b)};
pCa=function(a,b){TK(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.VK=function(a){var b=UK(a.app.tb());if(b)return b.Bw();a=a.app.tb();a=g.IC(a.I.V())?a.Nd.get("music"):void 0;return a?a.Bw():null};
XK=function(a,b){RK.call(this,a,b);var c=this;this.j=!1;SK(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(WK(c,d),e)});
SK(this,"loadVideoByPlayerVars",function(d,e,f,k){c.loadVideoByPlayerVars(WK(c,d),e,f,k)});
SK(this,"preloadVideoByPlayerVars",function(d,e,f,k){return void c.preloadVideoByPlayerVars(WK(c,d),e,f,k)});
SK(this,"seekBy",this.seekBy);SK(this,"mutedAutoplay",this.mutedAutoplay);SK(this,"showControls",this.showControls);SK(this,"hideControls",this.hideControls);SK(this,"cancelPlayback",this.cancelPlayback);SK(this,"getProgressState",this.getProgressState);SK(this,"isInline",this.isInline);SK(this,"setInline",this.setInline);SK(this,"setLoopVideo",this.setLoopVideo);SK(this,"getLoopVideo",this.getLoopVideo);SK(this,"getStoryboardFormat",this.getStoryboardFormat);SK(this,"getVideoContentRect",this.getVideoContentRect);
SK(this,"toggleFullscreen",this.toggleFullscreen);SK(this,"isFullscreen",this.isFullscreen);SK(this,"getVideoStats",this.getVideoStats);SK(this,"getPlayerSize",this.getPlayerSize);SK(this,"toggleSubtitles",this.toggleSubtitles);SK(this,"setCenterCrop",this.setCenterCrop);SK(this,"setFauxFullscreen",this.setFauxFullscreen);SK(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);SK(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);SK(this,"setSizeStyle",this.setSizeStyle);SK(this,"wakeUpControls",this.wakeUpControls)};
WK=function(a,b){var c={};if(a.app.V().N){a=g.r(qCa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.r(rCa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
sCa=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.YK=function(a){XK.call(this,a);this.gD=this.settingsMenu=null};
g.ZK=function(a){a=a.tb();var b=a.Nd.get("endscreen");return b&&b.wr()?!0:a.qy()||g.IC(a.I.V())};
g.$K=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.bL=function(a){var b=aL(a.tb());return a.app.Dg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.ol()||!!a.getPlaylist()};
g.dL=function(a){return(a=g.cL(a.tb()))?a.vA():{}};
g.tCa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.uCa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.jb)};
g.eL=function(a,b,c){a=a.eb().element;var d=qc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Zh(a,b,d);b.setAttribute("data-layer",String(c))};
g.fL=function(a){var b=a.V();if(!b.Ub)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.S("allow_poltergust_autoplay"))&&!HE(c);d=c.isLivePlayback&&(!b.S("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.S("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.cc(c.va,"ypc")&&!a&&(!g.xC(b)||f)};
vCa=function(a){a=g.gL(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.WI)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Aa("iqss",{trigger:d},!0),!0):!1};
hL=function(a){this.Y=a;this.u=this.j=NaN;this.B=g.YA(this.Y.experiments,"h5_csi_seek_latency_action_sampling")||1};
iL=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new hL(a);this.j=b||null;this.C=!1};
jL=function(a,b){XG(b,void 0,a.timerName)};
wCa=function(a,b,c){var d=g.DC(b.B)&&!b.B.C;if(b.B.oh&&(zC(b.B)||"shortspage"===b.B.Ia||eD(b.B)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.P("TIMING_ACTION")||Wq("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&Wq("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Ki();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,hx(f,d[f],a.timerName);d=a.j.Rz;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.kx(f,d[f],a.timerName);d=a.j;d.j={};d.Rz={}}g.kx("yt_pvis",
yx(),a.timerName);g.kx("yt_pt","html5",a.timerName);a.J!==b.clientPlaybackNonce||Number.isNaN(a.B)||(wx("_start",a.timerName)?c=Ow(a.timerName)._start+a.B:g.Ov(new g.Fs("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!wx("pbs",a.timerName)&&a.tick("pbs",c)}};
xCa=function(a){if(a.j){var b=a.j;b.j={};b.Rz={}}a.C=!1;a.J=void 0;a.B=NaN};
kL=function(a,b){g.ev.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.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=gr(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 oD("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.pD(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.r(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=qD(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
lL=function(a){return!!(a.playlist||a.list||a.api)};
yCa=function(a){var b=a.index+1;return b>=a.length?0:b};
zCa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.mL=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 g.UD(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
nL=function(a,b){a.index=g.wh(b,0,a.length-1);a.startSeconds=0};
oL=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.mL(a);a.items=[];for(var d=g.r(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;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
CCa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=g.XJ();var n=a.V(),p={context:g.uK(a)};n.S("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var v,x,y,z,
E,I,K;q=(null==(v=q)?void 0:null==(x=v.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(E=z.buttonRenderer)?void 0:null==(I=E.navigationEndpoint)?void 0:null==(K=I.watchEndpoint)?void 0:K.videoId)||null}else q=null}v=(v=q)?v:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var N;"user_uploads"===y?N={username:x}:N={playlistId:x};ACa(n,v,b,N);p.playlistRequest=N}else b.playlist?(N={templistVideoIds:b.playlist.toString().split(",")},ACa(n,
v,b,N),p.playlistRequest=N):v&&(N={videoId:v},n&&(N.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=N);d=p;e=g.GJ(BCa);g.va(m,2);return g.A(m,g.TH(c,d,e),4)}if(2!=m.j)return f=m.u,k=a.V(),b.raw_embedded_player_response=f,m.return(new g.UD(k,b));l=g.xa(m);g.S(l);return m.return(a)})};
ACa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.qL=function(a,b){pL.get(a);pL.set(a,b)};
g.rL=function(a){g.ev.call(this);this.loaded=!1;this.player=a};
DCa=function(){this.u=[];this.j=[]};
g.sL=function(a,b){return b?a.j.concat(a.u):a.j};
g.tL=function(a,b){switch(b.kind){case "asr":ECa(b,a.u);break;default:ECa(b,a.j)}};
ECa=function(a,b){g.$b(b,function(c){return a.equals(c)})||b.push(a)};
g.uL=function(a){g.G.call(this);this.Y=a;this.u=new DCa;this.C=[]};
g.vL=function(a,b,c){g.uL.call(this,a);this.audioTrack=c;this.j=null;this.C=b.SD};
FCa=function(){this.j=10;this.Fh=!1};
GCa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.ql?!1:c.ql;b=new FCa;b.Fh=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.YA(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b};
g.HCa=function(a){this.j=a;this.D=new FCa;this.Vl=this.Ul=!1;this.Ik=2;this.K=20971520;this.X=8388608;this.J=120;this.rb=3145728;this.ya=62914560;this.vb=10485760;this.Jk=g.YA(this.j.experiments,"html5_min_readbehind_secs");this.Gv=g.YA(this.j.experiments,"html5_min_readbehind_cap_secs");this.Fv=g.YA(this.j.experiments,"html5_max_readbehind_secs");this.Lv=this.j.S("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.oh=0;this.Qp=this.cj=this.Fp=2;this.Ia=2097152;this.Pp=1048576;this.Wa=!1;this.ag=
1800;this.Gk=5;this.xa=15;this.Cd=1;this.B=1.15;this.C=1.05;this.nj=1;this.Mk=!0;this.Ja=!1;this.iq=.8;this.Rb=!1;this.Pv=this.j.S("html5_update_representation_init_boxes");this.Aj=!1;this.Db=6;this.Z=this.jb=!1;this.Kk=this.Xb=0;this.Rr=this.j.S("html5_append_init_while_paused");this.Wl=g.YA(this.j.experiments,"html5_post_interrupt_readahead");this.Hb=5E3;this.Ep=100;this.yj=10;this.Cr=g.YA(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.vk=this.j.experiments.ob("html5_clone_original_for_fallback_location");
this.Kv=this.j.experiments.ob("html5_ssdai_reset_on_video_only_killswitch");this.Rf=1;this.hh=1.6;this.ib=!1;this.ma=.5;this.Dc=2;this.lc=this.Ir=0;this.Jr=1.5;this.Dp=this.lh=.5;this.Ud=15;this.Bk=1;this.Gq=this.Gb=!1;this.Hk=0;this.nm=this.Dr=this.zk=this.Yl=this.Nk=!1;this.Lb=2;this.er=this.uj=!1;this.Bi=0;this.cg=this.Gp=this.va=this.Hr=this.gg=!1;this.Qa=!0;this.bd=this.Ub=this.Xl=this.Sa=!1;this.wj=!0;this.fh=!1;this.u="";this.ys=1048576;this.Wc=[];this.zs=this.j.S("html5_woffle_resume");this.Pd=
!1;this.Xa=!0;this.Bj=this.Sh=this.md=!1;this.rf=46800;this.yk=this.Eq=this.qj=this.ej=this.cm=this.Qd=this.qb=!1;this.N=0;this.xj="";this.Ur=this.j.S("html5_disable_codec_for_playback_on_error");this.Th=this.Qr=this.zj=this.eh=!1;this.oe=0;this.Iv=as();this.Vq=this.Ak=!1;this.Sr=this.j.S("html5_skip_buffer_check_seek_to_head");this.Pc=!1;this.wq=!this.j.S("html5_reset_media_stream_discontinuity_killswitch");this.bj=!1;this.Qf=8192;this.Ea=this.Tb=!1;this.Dq=1;this.Nv=this.j.S("html5_update_readahead_from_real_byterates");
this.Mv=this.j.S("html5_onesie_live");this.Hv=g.YA(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Lk=g.YA(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.wk=this.j.experiments.ob("html5_onesie_consume_media_slices");this.Jv=this.j.S("html5_self_init_consolidation");this.Gr=this.j.S("html5_stream_metadata");this.Ya=this.j.S("html5_onesie_ads");this.xk=this.j.S("html5_create_source_buffer_with_pending_slice");this.As=this.j.S("html5_match_smb_cuepoints_start_secs");this.Zl=
this.j.S("html5_prepare_buffer_before_init_append");this.Tr=this.j.S("html5_live_partial_response_resumable");this.me=this.j.S("html5_ssdai_log_ad_transition_info")};
ICa=function(a,b){1080<b.video.j&&!a.Ul&&(a.K=36700160,a.X=5242880,a.rb=10485760,a.Ia=4194304,a.Ul=!0);2160<b.video.j&&!a.Vl&&(a.K=104857600,a.Ob=13107200,a.Vl=!0);b.isEncrypted()&&g.Xr()&&Vr("kant")&&(a.Ob=1310720);b.Ob&&(a.Pp=Math.max(65536,Math.min(a.Ia,5*b.Ob)))};
g.wL=function(a,b){return bA(a.info.mimeType)?b?a.info.Zb()===b:!0:!1};
g.JCa=function(a,b){if(null!=a.j&&g.YC(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Ef())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.wL(c,"386")});
a=!!a.j&&!a.j.isManifestless&&sta(a.j);return b||a};
g.xL=function(a,b,c,d,e){g.uL.call(this,a);this.videoId=c;this.SM=e;this.D={};this.j=null;a=d||g.kr(b).hl||"";a=a.split("_").join("-");this.B=lr(b,{hl:a})};
yL=function(a,b){g.G.call(this);this.I=a;this.C=b;this.Rz={};this.j={};this.u=null;this.D=this.I.S("web_player_defer_modules");this.B=new Set;this.Nd=new Map};
g.zL=function(a){return a.Nd.get("captions")};
MCa=function(a,b){switch(b){case "ad":return AL(a);case "annotations_module":return b=a.I.V(),a=a.I.getVideoData(),a.dJ||"3"===b.controlsType?!1:b.Z.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Sa||!!g.wE(a)||!!g.xE(a):!0;case "attribution":return a=a.I.V(),a.S("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.I.V(),b.D||"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.I.getVideoData(),
a=!!a&&(!!g.bxa(a)||!!g.cxa(a))),a;case "embed":return g.xC(a.I.V());case "endscreen":return g.KCa(a);case "heartbeat":return a.UH();case "inline_preview":return a.I.V().showInlinePreviewUi;case "kids":return NC(a.I.V());case "remote":return a.I.V().jb;case "miniplayer":return a.I.V().showMiniplayerUiWhenMinimized;case "music":return g.IC(a.I.V());case "offline":return a.I.V().cg;case "captions":return b=a.I.getVideoData(),!!b.Hb||!!b.captionTracks.length||g.JCa(b,a.I);case "unplugged":return g.FC(a.I.V());
case "ux":return a.I.V().Hb;case "webgl":return LCa(a);case "ypc":return a.qy();case "ypc_clickwrap":return a=a.I.getVideoData(),a.me&&!a.MI;case "yto":return!!a.I.getVideoData().va.includes("yto");default:return g.S(Error("Module descriptor "+b+" does not match")),!1}};
BL=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var k=a.Nd.get(b);if(!k||d)if(e||(e=function(){BL(a,b,c,d)}),f||(f=function(){a.I.Je(b)}),k=k||NCa(a,b,MCa(a,b),e,f))a.Nd.set(b,k),k.create(),c&&a.I.Oa("onApiChange")};
OCa=function(a){CL(a)&&a.CE();a.D&&(BL(a,"captions",!0),BL(a,"endscreen"),a.DE(),BL(a,"creatorendscreen",!0))};
CL=function(a){a=a.I.getVideoData();return a.S("web_player_defer_ad")&&!g.cc(a.va,"ad")};
g.KCa=function(a){var b=a.I.V();if(eD(b)||b.C||!b.Lb&&!b.Ud)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.S("desktop_enable_autoplay");a=a.I.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.S("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.S("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.S("allow_live_autoplay_on_mweb");return!c||b};
g.cL=function(a){return a.Nd.get("webgl")};
LCa=function(a){var b=a.I.getVideoData();a=a.I.V();var c=g.Ima(),d=a.S("enable_spherical_kabuki"),e=g.dD(a);if(g.vE(b))return c||d||e||a.S("html5_enable_spherical");if(g.sE(b))return e||c||d||a.S("html5_enable_spherical");if(g.tE(b))return e||c||a.S("html5_enable_spherical3d");if(g.uE(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.lE(b)&&!c&&(a.S("enable_webgl_noop")||a.S("html5_enable_bicubicsharp"))};
PCa=function(a){a.I.V().S("web_player_ux_module_wait")&&a.Nd.get("ux")&&a.I.Je("ux")};
QCa=function(a){PCa(a);BL(a,"ux",!0)};
AL=function(a){if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
NCa=function(a,b,c,d,e){try{if(c){var f=pL.get(b);if(f)return new f(a.I);RCa(a,b,d,e)}else a.I.Je(b)}catch(k){a.I.Je(b),g.S(k)}return null};
DL=function(a,b,c){for(var d=g.r(a.Nd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.ai(b))&&(g.zf(f),a.Nd.delete(e))}};
EL=function(a){return a.Nd.get("ad")};
FL=function(a){if(NC(a.I.V()))return a.Nd.get("kids")};
aL=function(a){if(a.I.V().jb)return a.Nd.get("remote")};
g.GL=function(a){if(g.FC(a.I.V()))return a.Nd.get("unplugged")};
UK=function(a){if(a.I.V().Hb)return a.Nd.get("ux")};
HL=function(a){if(a.I.V().cg)return a.Nd.get("offline")};
g.IL=function(a){return a.Nd.get("annotations_module")};
JL=function(a){return a.Nd.get("creatorendscreen")};
TCa=function(a){var b=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){SCa(a,b,function(){var e,f;return g.B(function(k){if(1==k.j)return e=g.C.loadWasm,"function"!==typeof e?(d("noloadwasm"),k.Za(0)):g.A(k,e(),3);f=k.u;c(f);g.ua(k)})},function(){d("player wasm load failure")})})};
RCa=function(a,b,c,d){if(a.C){var e=UCa[b];SCa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
SCa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var k=g.Oh("SCRIPT"),l=!1,m,n=0;n<k.length;n++){var p=k[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Wh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){hi(f);q&&q.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var z=new g.Fs("Unable to load player module",b,document.location&&document.location.origin);g.S(z)}hi(e);t&&t(y)};
var v=m,x=v.onreadystatechange;v.onreadystatechange=function(y){switch(v.readyState){case "loaded":case "complete":hi(f)}x&&x(y)};
l&&((k=a.I.V().cspNonce)&&m.setAttribute("nonce",k),g.Rj(m,g.Jp(b)),k=g.Oh("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.Bf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
KL=function(a,b,c){g.Cf.call(this,b,a);this.j=c};
g.LL=function(a){pH.call(this);var b=this;this.j=a;this.D={};this.listener=function(c){b.dispatchEvent(new KL(b,c.type,c))}};
NL=function(a,b,c,d,e){g.ev.call(this);var f=this;this.target=a;this.Iz=b;this.u=0;this.J=!1;this.C=new g.Ah(NaN,NaN);this.j=new g.dA(this);this.xa=this.B=this.K=null;g.H(this,this.j);b=d||e?4E3:3E3;this.X=new g.L(function(){ML(f,1,!1)},b,this);
g.H(this,this.X);this.Z=new g.L(function(){ML(f,2,!1)},b,this);
g.H(this,this.Z);this.ma=new g.L(function(){ML(f,512,!1)},b,this);
g.H(this,this.ma);this.va=c&&0<c.Wc.length?5E3:3E3;d||(this.B=this.j.T(a,"mouseover",this.iB),this.j.T(a,"mousemove",this.WV),this.j.T(a,"mouseleave",this.XV));Em?this.j.T(a,"keypress",this.yV):this.j.T(a,"focusin",this.vU);this.D=this.j.T(a,"mousedown",this.NN);this.N=this.j.T(a,"touchstart",this.kQ,void 0,!0);ML(this,640,!0)};
VCa=function(a){ML(a,4,!1);a.K&&(a.j.wc(a.K),a.K=null,a.B=a.j.T(a.target,"mouseover",a.iB));a.B&&(a.j.wc(a.B),a.B=a.j.T(a.target,"mouseover",a.iB))};
ML=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.ma.stop());a.u&512&&!(a.u&128)&&g.qp(a.ma,a.va);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.OL=function(a){g.W.call(this,{G:"button",Ga:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ka);g.DC(this.api.V())&&this.api.S("embeds_web_enable_red_play_button_on_preview")&&g.M(this.element,"ytp-large-play-button-red-bg");this.Ka()};
PL=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().C&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{G:"div",Ga:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");var c=new g.OL(a);g.H(this,c);c.Ba(b);this.B=new g.dA(this);g.H(this,this.B);this.api=a;this.D=this.Da("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.$I(this,250);g.H(this,this.u);this.j=new g.L(this.Ka,0,this);g.H(this,this.j);this.Ka();this.T(a,"appresize",this.yb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.fZ);zC(a.V())&&this.T(a,"videoplayerreset",this.OR)};
WCa=function(a){var b=!a.V().fh&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.QL=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.oJ(a))return g.ru(a),!0;b.pauseVideo();a=e.getAttribute("href");g.yJ(a,d,!0);return!1};
g.RL=function(a,b,c){if(UC(b.V())&&2!==b.getPresentingPlayerType()){if(g.oJ(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.ru(c),!0}else if(b.V().S("embeds_enable_webview_nonjs_navigation")&&g.xC(b.V())&&(fs()||ds()))b=c.target,b instanceof HTMLAnchorElement&&(a=nga(a),b.href=zda(a));else{var d=g.oJ(c);d&&b.pauseVideo();g.yJ(a,void 0,!0);d&&(g.zJ(a),g.ru(c))}return!1};
XCa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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"}};
SL=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"}]}]}]}};
TL=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
UL=function(a,b,c){a=a.V();return a.S("desktop_player_button_tooltip_with_shortcut")&&!a.gg?g.PF("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.VL=function(a){g.W.call(this,{G:"div",Ga:["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",oa:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",oa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.WL=function(a){a=a.split(YCa);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]},oa:a[c+2]})}return{G:"span",U:b}};
YL=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?!1:e;k=void 0===k?!0:k;e||(e=a.api.V().j);a=a.api.getVideoData();b=g.PF(g.XL[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",oa:f});d.push(b[0]);k&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},oa:b[2]});d.push(b[4]);return{G:"span",U:d}};
ZCa=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)}};
$Ca=function(a){for(var b=0;b<a.keys.length;b++)a.wc(a.keys[b]);a.keys=[]};
ZL=function(a){g.dA.call(this);this.I=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.vg);this.onVideoDataChange()};
$L=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
aDa=function(a){$L(a,"play",function(){a.I.playVideo()});
$L(a,"pause",function(){a.I.pauseVideo()});
$L(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
$L(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
bDa=function(a){var b,c;a=a.I.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
cDa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.r(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.Bw(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
dDa=function(a){var b=a.I.zb();b=b.isCued()||b.isError()?"none":g.zH(b)?"playing":"paused";a.mediaSession.playbackState=b};
aM=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.Md=this.j=null;var b=a.V();a.S("enable_new_paid_product_placement")&&!g.ZC(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",oa:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.$I(this.u,250,!1,100);g.H(this,this.u);this.u.Ba(this.element);g.H(this,this.C);this.I.ah(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Tc)};
fDa=function(a,b){var c=$wa(b),d=mE(b);b.me&&a.I.ll()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.sp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&eDa(a,d,c,b)):c&&d&&eDa(a,d,c,b))};
eDa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.L(a.Eb,b,a);g.H(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.I.gk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{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:k?g.uI():null})};
gDa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.pd(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
bM=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",U:[SL(),{G:"div",L:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.L(this.show,500,this);g.H(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.zb();hDa(a)?this.j.start():this.hide()};
hDa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.cM=function(a,b,c,d){d=void 0===d?!1:d;g.pI.call(this,b);var e=this;this.I=a;this.ya=d;this.K=new g.dA(this);this.X=new g.$I(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)};
iDa=function(a){a.u&&(document.activeElement&&g.bi(a.element,document.activeElement)&&(di(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.dv(a.K);a.N=void 0};
dM=function(a,b,c){a.pg()?a.Eb():a.pd(b,c)};
eM=function(a){var b=g.QA(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ga:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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",Ga:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ga:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.cM.call(this,a,{G:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.Bb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.vg);this.Pa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.xC(this.api.V());g.oI(this,a);a&&jDa(this);this.B=a};
jDa=function(a){a.j||(a.j=!0,a.api.bb(a.element,!0))};
g.gM=function(a){g.dA.call(this);var b=this;this.api=a;this.rG=!1;this.vl=null;this.Qz=!1;this.Le=null;this.BE=this.pC=!1;this.sI=this.uI=null;this.qN=NaN;this.rI=this.mw=!1;this.tx=0;this.UD=[];var c=a.V(),d=a.eb();this.dL=new g.L(this.DG,0,this);g.H(this,this.dL);g.IC(c)||(this.Qs=new PL(a),g.H(this,this.Qs),g.eL(a,this.Qs.element,4));if(kDa(this)){var e=new bM(a);g.H(this,e);e=e.element;g.eL(a,e,4)}var f=a.getVideoData();this.Jd=new NL(d,function(l){return b.Iz(l)},f,c.oe,aD(c));
g.H(this,this.Jd);this.Jd.subscribe("autohideupdate",this.Wj,this);if(!c.disablePaidContentOverlay){var k=new aM(a);g.H(this,k);g.eL(a,k.element,4)}this.uC=new eM(a);g.H(this,this.uC);g.eL(this.api,this.uC.element,2);this.IF=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.lC=new g.L(this.Hu,200,this);g.H(this,this.lC);this.cG=f.videoId;this.xP=new g.L(function(){b.tx=0},350);
g.H(this,this.xP);this.Tz=new g.L(function(){b.rI||fM(b)},350,this);
g.H(this,this.Tz);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.M(f,"ytp-color-white")}g.IC(c)&&g.M(f,"ytp-music-player");!a.S("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new ZL(a),g.H(this,f));this.T(a,"appresize",this.yb);this.T(a,"presentingplayerstatechange",this.vg);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.LX);this.T(a,"autonavvisibility",
function(){b.qn()});
this.T(a,"sizestylechange",function(){b.qn()});
this.T(d,"click",this.jY,this);this.T(d,"dblclick",this.kY,this);c.Xa&&(this.T(d,"gesturechange",this.lY,this),this.T(d,"gestureend",this.mY,this));this.Uo=[d.cw];this.Qs&&this.Uo.push(this.Qs.element);e&&this.Uo.push(e)};
hM=function(a,b){if(!b)return!1;var c=a.api.yd();if(c.Jp()&&(c=c.Ke())&&g.bi(c,b))return c.controls;for(c=0;c<a.Uo.length;c++)if(g.bi(a.Uo[c],b))return!1;return g.wp(b,"ytp-player-content")||g.wp(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
lDa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.eb().CA||!1)&&a.api.V().isMobile&&iM&&11<=GE;a=a.api.V().J&&iM;return!(!b&&!a)};
jM=function(a,b){return!hM(a,ou(b))&&g.oJ(b)};
fM=function(a){a.Jd.Jl();if(a.pC&&a.BE)a.BE=!1;else if(!a.api.V().xa&&!a.Yk()){var b=a.api.zb();g.V(b,2)&&g.ZK(a.api)||a.xr(b);if(!a.api.V().Xa||b.isCued()||g.V(b,1024)){var c=a.api.eC();g.As("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.As("embedsRequestStorageAccessState",{isCued:b.isCued(),lha:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.As("embedsRequestStorageAccessFailedState",{state:b.state}),a.Hu())}else a.lC.isActive()?
(a.DA(),a.lC.stop()):a.lC.start()}};
mDa=function(a,b){return g.oJ(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.zb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Hu(),!0):!1};
nDa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
kDa=function(a){a=Wr()&&67<=Ema()&&!a.api.V().J;return!Vr("tizen")&&!uC&&!a&&!0};
kM=function(a,b){b=void 0===b?2:b;g.ev.call(this);this.api=a;this.j=null;this.Mc=new bv(this);g.H(this,this.Mc);this.u=ZAa;this.Mc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Mc.T(this.api,"progresssync",this.Qb);this.qk=b;1===this.qk&&this.Qb()};
lM=function(a){g.W.call(this,{G:"button",Ga:["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",Jb:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.oI(this,a.V().showBackButton);this.Pa("click",this.onClick)};
g.mM=function(a){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()};
oM=function(a,b,c){if(0>=b){c=DI();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",Jb:!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",Jb:!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";nM(a,c,b,d+"%")};
oDa=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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",Jb:!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.I.getPlaybackRate(),d=g.PF("Speed is $RATE",{RATE:String(c)});nM(a,b,d,c+"x")};
pDa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";nM(a,XCa(),b)};
nM=function(a,b,c,d){d=void 0===d?"":d;a.Na("label",void 0===c?"":c);aD(a.I.V())?a.Na("icon",null):a.Na("icon",b);g.sp(a.j);a.u.start();a.Na("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
qM=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.xC(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().S("player_new_info_card_format")?xAa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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",oa:"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",oa:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.$I(this,250,!0,100);g.H(this,this.u);g.O(this.C,"ytp-show-cards-title",g.xC(a.V()));this.hide();this.Pa("click",this.onClicked);this.Pa("mouseover",this.jX);pM(this,!0)};
pM=function(a,b){b?a.j=g.rM(a.B.pc(),a.element):(a.j=a.j,a.j(),a.j=null)};
sM=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().S("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[xAa()]},{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.vI()]}]:[{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.X=
b;this.Gi=c;this.C=new g.$I(this,250,!1,250);this.j=null;this.K=new g.L(this.xX,300,this);this.J=new g.L(this.wX,2E3,this);this.D=[];this.u=null;this.N=new g.L(function(){d.element.style.margin="0"},250);
this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.J);g.H(this,this.N);a.V().S("player_new_info_card_format")?(g.M(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Da("ytp-cards-teaser-close-button"),"click",this.Ti),this.T(this.Da("ytp-cards-teaser-info-icon"),"click",this.iI),this.T(this.Da("ytp-cards-teaser-label"),"click",this.iI)):this.Pa("click",this.iI);this.T(c.element,"mouseover",this.EJ);this.T(c.element,"mouseout",this.DJ);this.T(a,"cardsteasershow",this.JY);this.T(a,
"cardsteaserhide",this.Eb);this.T(a,"cardstatechange",this.vQ);this.T(a,"presentingplayerstatechange",this.vQ);this.T(a,"appresize",this.GI);this.T(a,"onShowControls",this.GI);this.T(a,"onHideControls",this.PT);this.Pa("mouseenter",this.QR)};
uM=function(a){g.W.call(this,{G:"button",Ga:[tM.BUTTON,tM.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:tM.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.zI()]},{G:"div",L:tM.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.j=!1;a.Bb(this.element,this,36927);this.Pa("click",this.onClick,this);this.Na("pressed",!1);this.Na("label","Get notified about every new video")};
qDa=function(a,b){a.j=b;a.element.classList.toggle(tM.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.KD:c.JD)?(a=a.api.dl())?NJ(a,b):g.dr(Error("No innertube service available when updating notification preferences.")):g.dr(Error("No update preferences command available.")):g.dr(Error("No video data when updating notification preferences."))};
g.wM=function(a,b,c,d,e,f,k,l,m,n,p,q,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 v=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.DC(v)||g.HC(v))c.target=v.K;g.W.call(this,{G:"div",Ga:["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",oa:b}:""]}]});f&&g.M(this.element,
"ytp-sb-classic");this.channelId=k;this.j=t}else{p=v.userDisplayName&&g.DC(v)&&!v.S("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.PF("Subscribe as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":fD(v),"data-tooltip-opaque":String(g.xC(v)),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",oa:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.PF("Subscribed as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":fD(v),"data-tooltip-opaque":String(g.xC(v)),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",oa:d}:""]}]});var x=this;this.channelId=k;this.j=t;var y=this.Da("ytp-sb-subscribe"),z=this.Da("ytp-sb-unsubscribe");
f&&g.M(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var K=x.channelId;if(m||n){var N={c:K};if(q.V().S("embeds_botguard_with_subscribe_killswitch"))N="";else{var aa;g.lK.isInitialized()&&(aa=IBa(N));N=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var J=q.dl();J?(NJ(J,aa,{botguardResponse:N,feature:m}),q.Oa("SUBSCRIBE",K)):g.dr(Error("No innertube service available when updating subscriptions."))}else g.dr(Error("No subscribe command in videoData."));else g.dr(Error("No video data available when updating subscription."))}z.focus();
z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},I=function(){var K=x.channelId;
if(m||n){var N=q.getVideoData();NJ(q.dl(),N.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",K)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.T(y,"click",E);this.T(z,"click",I);this.T(y,"keypress",function(K){13===K.keyCode&&E(K)});
this.T(z,"keypress",function(K){13===K.keyCode&&I(K)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.pc(),vM(this.tooltip),g.Bf(this,g.rM(this.tooltip,y)),g.Bf(this,g.rM(this.tooltip,z)))}else g.M(y,"ytp-sb-disabled"),g.M(z,"ytp-sb-disabled")}};
xM=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().K,"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",oa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.C=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.xC(this.api.V());a.Bb(this.j,this,36925);this.D&&rDa(this);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",this.Ka);this.Ka();g.xC(this.api.V())&&(this.api.V().S("embeds_web_enable_hiding_login_buttons")||this.api.V().S("embeds_web_enable_always_hiding_login_buttons"))&&
g.M(this.element,"ytp-flyout-fix-experiment")};
rDa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.bd){var d=b.authUser?null:fBa(),e=new g.wM("Subscribe",null,"Subscribed",null,!0,!1,c.tj,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.H(a,e);e.Ba(a.C);a.api.Bb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.xb(e.element)});
var f=new uM(a.api);a.u=f;g.H(a,f);f.Ba(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Th&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Th&&(f.hide(),qDa(f,!1))})}a.Na("flyoutUnfocusable","true");
a.Na("channelTitleFocusable","-1");b.isMobile?a.T(a.j,"click",function(k){sDa(a)&&(k.preventDefault(),a.isExpanded()?a.uE():a.SE());a.api.xb(a.j)}):(a.T(a.channel,"mouseenter",a.SE),a.T(a.channel,"mouseleave",a.uE),a.T(a.channel,"focusin",a.SE),a.T(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.uE()}),a.T(a.j,"click",function(){a.api.xb(a.j)}));
a.B=new g.L(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.bb(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.bb(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,tDa,function(){uDa(a)});
a.T(a.api,"onHideControls",a.DH);a.T(a.api,"appresize",a.DH);a.T(a.api,"fullscreentoggled",a.DH)};
uDa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
sDa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
vDa=function(a,b){var c={};a.api.V().ma&&g.sK(c,a.api.V().loaderUrl);return g.nj(b,g.rK(c,"emb_ch_name_ex"))};
g.yM=function(a,b,c,d){g.pI.call(this,a);this.priority=b;c&&this.Kf(c);d&&this.Bd(d)};
g.zM=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",Ga:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",oa:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",oa:"{{label}}"},{G:"div",L:"ytp-menuitem-content",oa:"{{content}}"}]}};
AM=function(a,b){a.Na("icon",b)};
BM=function(a,b,c,d,e,f){var k={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",L:"ytp-panel-header",U:[{G:"div",Ga:["ytp-panel-back-button-container"],U:[{W:{"aria-label":"Back to previous menu"},G:"button",Ga:["ytp-button",l]}]},{W:{tabindex:"0"},G:"span",Ga:[m],U:[c]}]};if(e){var p="ytp-panel-options";n.U.push({G:"button",Ga:["ytp-button",p],U:[d]})}k.U=[n]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,k.U?k.U.push(f):k.U=[f]);g.pI.call(this,
k);this.content=b;d&&k.U?b.Ba(this.element,k.U.length-1):b.Ba(this.element);this.KM=!1;this.gV=d;c&&(c=this.Da(l),m=this.Da(m),this.T(c,"click",this.eO),this.T(m,"click",this.eO),this.KM=!0,e&&(p=this.Da(p),this.T(p,"click",e)));b.subscribe("size-change",this.kO,this);this.T(a,"fullscreentoggled",this.kO);g.O(this.element,"ytp-panel-min-width-killswitch",a.V().S("player_panel_min_width_killswitch"));this.I=a};
wDa=function(a,b){var c=new g.pI({G:"div",L:"ytp-multi-item-panel"});a.content.Ba(c.element);b.Ba(c.element);a.content=c;c.Ba(a.element);g.H(a,c)};
g.CM=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.pI({G:"div",L:"ytp-panel-menu",W:k});BM.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.DM=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.VG,a);a.items=[];g.Yh(a.menuItems.element);a.menuItems.ea("size-change")};
xDa=function(a,b){return b.priority-a.priority};
EM=function(a){var b=g.zM({"aria-haspopup":"true"});g.yM.call(this,b,a);this.Pa("keydown",this.j)};
FM=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
GM=function(a,b){g.yM.call(this,g.zM({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Pa("click",this.onClick)};
HM=function(a,b){g.W.call(this,{G:"div",L:"ytp-user-info-panel",W:{"aria-label":"User info"},U:a.V().authUser&&!a.S("embeds_web_always_enable_signed_out_state")?[{G:"div",L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},oa:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},oa:"{{watchingAsEmail}}"}]}]:[{G:"div",
L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",U:[{G:"text",W:{tabIndex:"{{userInfoFocusable}}"},oa:"Signed out"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},oa:a.V().bd?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.V().authUser||a.V().bd||(a=this.Da("ytp-user-info-panel-login"),this.T(a,"click",this.SR));this.T(window,"blur",this.hide);this.T(document,"click",this.RR);this.Ka()};
IM=function(a,b,c,d){g.CM.call(this,a);this.sb=c;this.yc=d;this.getVideoUrl=new EM(6);this.Lj=new EM(5);this.Hj=new EM(4);this.Nb=new EM(3);this.Zx=new g.yM(g.zM({href:"{{href}}",target:this.I.V().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.yM(g.zM(),1,"Stats for nerds");this.Os=new g.pI({G:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.BL=new BM(this.I,this.Os);this.Jy=this.Jo=null;g.xC(this.I.V())&&this.I.S("embeds_web_enable_user_info_in_context_menu")&&
(this.lj=new g.yM(g.zM(),8,"User info"),g.H(this,this.lj),this.xc(this.lj,!0),this.lj.Pa("click",this.wY,this),a.Bb(this.lj.element,this.lj,137682));this.I.V().xj&&(this.Qi=new GM("Loop",7),g.H(this,this.Qi),this.xc(this.Qi,!0),this.Qi.Pa("click",this.qX,this),a.Bb(this.Qi.element,this.Qi,28661));g.H(this,this.getVideoUrl);this.xc(this.getVideoUrl,!0);this.getVideoUrl.Pa("click",this.gX,this);a.Bb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.Lj);this.xc(this.Lj,!0);this.Lj.Pa("click",
this.hX,this);a.Bb(this.Lj.element,this.Lj,28660);g.H(this,this.Hj);this.xc(this.Hj,!0);this.Hj.Pa("click",this.fX,this);a.Bb(this.Hj.element,this.Hj,28658);g.H(this,this.Nb);this.xc(this.Nb,!0);this.Nb.Pa("click",this.eX,this);g.H(this,this.Zx);this.xc(this.Zx,!0);this.Zx.Pa("click",this.fY,this);g.H(this,this.showVideoInfo);this.xc(this.showVideoInfo,!0);this.showVideoInfo.Pa("click",this.xY,this);g.H(this,this.Os);this.Os.Pa("click",this.SW,this);g.H(this,this.BL);b=document.queryCommandSupported&&
document.queryCommandSupported("copy");43<=Pb("Chromium")&&(b=!0);40>=Pb("Firefox")&&(b=!1);b&&(this.Jo=new g.W({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Jo),this.Jo.Ba(this.element));var e;null==(e=this.lj)||AM(e,AAa());var f;null==(f=this.Qi)||AM(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"}}]});AM(this.Nb,{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"}}]});AM(this.Zx,{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"}}]});AM(this.showVideoInfo,wAa());this.T(a,"loopchange",this.uO);this.T(a,"videodatachange",this.onVideoDataChange);yDa(this);zDa(this,this.I.getVideoData())};
KM=function(a,b){var c=!1;if(a.Jo){var d=a.Jo.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.sb.Eb():(a.Os.Bd(b,"text"),g.JM(a.sb,a.BL),TL(a.Os.element),a.Jo&&(a.Jo=null,yDa(a)));return c};
zDa=function(a,b){var c=a.I.V(),d=2===a.I.getPresentingPlayerType(),e=!d||b.isListed;e=!c.N&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(c.fmt=b.u.Zb()),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.ya&&(c.partnerid=b.ya),c=g.nj("//support.google.com/googleplay/",c));g.oI(a.Hj,e&&b.allowEmbed);g.oI(a.getVideoUrl,e);g.oI(a.Lj,e&&!b.isLivePlayback);
a.Zx.Bd(c,"href");var f;null==(f=a.Qi)||g.oI(f,!b.isLivePlayback&&!d);var k;null==(k=a.lj)||g.oI(k,!d)};
yDa=function(a){var b=!!a.Jo;a.Nb.Kf(b?"Copy debug info":"Get debug info");FM(a.Nb,!b);a.Hj.Kf(b?"Copy embed code":"Get embed code");FM(a.Hj,!b);a.getVideoUrl.Kf(b?"Copy video URL":"Get video URL");FM(a.getVideoUrl,!b);a.Lj.Kf(b?"Copy video URL at current time":"Get video URL at current time");FM(a.Lj,!b);AM(a.Hj,b?uAa():null);AM(a.getVideoUrl,b?xI():null);AM(a.Lj,b?xI():null)};
g.LM=function(a,b){g.cM.call(this,a,{G:"div",Ga:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.C=null;this.gz=this.maxWidth=0;this.size=new g.Ch(0,0);this.Pa("keydown",this.TR)};
ADa=function(a){var b=a.j[a.j.length-1];if(b){g.Nm(a.element,a.maxWidth||"100%",a.gz||"100%");b.I.V().S("player_panel_min_width_killswitch")&&g.Dm(b.element,"minWidth","250px");g.Dm(b.element,"width","");g.Dm(b.element,"height","");g.Dm(b.element,"maxWidth","100%");g.Dm(b.element,"maxHeight","100%");g.Dm(b.content.element,"height","");var c=g.Om(b.element);c.width+=1;c.height+=1;g.Dm(b.element,"width",c.width+"px");g.Dm(b.element,"height",c.height+"px");g.Dm(b.element,"maxWidth","");g.Dm(b.element,
"maxHeight","");var d=0;b.KM&&(d=b.Da("ytp-panel-header"),d=g.Om(d).height);var e=0;b.gV&&(e=b.Da("ytp-panel-footer"),g.Dm(e,"width",c.width+"px"),e=g.Om(e).height);g.Dm(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.Dm(b.element,"width",c.width+"px")));a.size=c}};
g.JM=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);MM(a,c,b)};
g.NM=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];MM(a,b,c,!0)}};
MM=function(a,b,c,d){BDa(a);b&&(b.unsubscribe("size-change",a.Nu,a),b.unsubscribe("back",a.Ch,a));c.subscribe("size-change",a.Nu,a);c.subscribe("back",a.Ch,a);if(a.ub){g.M(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;ADa(a);g.Nm(a.element,e);a.C=new g.L(function(){CDa(a,b,c,d)},20,a);
a.C.start()}else c.Ba(a.element),b&&b.detach()};
CDa=function(a,b,c,d){a.C.dispose();a.C=null;g.M(a.element,"ytp-popup-animating");d?(g.M(b.element,"ytp-panel-animate-forward"),g.yp(c.element,"ytp-panel-animate-back")):(g.M(b.element,"ytp-panel-animate-back"),g.yp(c.element,"ytp-panel-animate-forward"));g.Nm(a.element,a.size);a.J=new g.L(function(){g.yp(a.element,"ytp-popup-animating");b.detach();g.zp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a);
a.J.start()};
BDa=function(a){a.C&&g.rp(a.C);a.J&&g.rp(a.J)};
g.OM=function(a,b,c){g.LM.call(this,a);this.xa=b;this.yc=c;this.B=new g.dA(this);this.Z=new g.L(this.PY,1E3,this);this.ma=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Bb(this.element,this,28656);g.M(this.element,"ytp-contextmenu");DDa(this);this.hide()};
DDa=function(a){g.dv(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.eb();a.B.T(b,"contextmenu",a.PW);a.B.T(b,"touchstart",a.VR,null,!0);a.B.T(b,"touchmove",a.NO,null,!0);a.B.T(b,"touchend",a.NO,null,!0)}};
EDa=function(a){a.I.isFullscreen()?g.eL(a.I,a.element,10):a.Ba(document.body)};
g.PM=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Ga:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.xC(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{G:"div",L:"ytp-copylink-title",oa:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.pc();b=a.V();vM(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.xC(b)&&!g.IC(b));a.Bb(this.element,this,86570);this.Pa("click",
this.onClick);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",this.Ka);this.T(a,"appresize",this.Ka);this.Ka();g.Bf(this,g.rM(this.tooltip,this.element))};
FDa=function(a){a.Na("icon",sI());if(a.api.V().isMobile)QM(a.tooltip,a.element,"Link copied to clipboard");else{a.Na("title-attr","Link copied to clipboard");RM(a.tooltip);QM(a.tooltip,a.element);var b=a.Pa("mouseleave",function(){a.wc(b);a.Ka();a.tooltip.Ej()})}};
GDa=function(a,b){return g.B(function(c){if(1==c.j)return g.va(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.Wh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if(cs){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){}k.removeChild(f);
return d.call(c,e)})};
SM=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ga:["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",oa:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,700,this);
g.H(this,this.u);g.H(this,this.j);this.hide()};
TM=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",oa:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.L(this.show,10,this);this.u=new g.L(this.hide,700,this);this.j=this.Da("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Da("ytp-doubletap-fast-forward-ve");this.D=this.Da("ytp-doubletap-rewind-ve");this.I.Bb(this.C,this,28240);this.I.Bb(this.D,this,28239);this.I.bb(this.C,!0);this.I.bb(this.D,
!0)};
HDa=function(a,b){b=g.PF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Na("seekTime",b)};
UM=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
VM=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
IDa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
JDa=function(a,b){b=VM(a,b)+1;return b<a.length?b:-1};
KDa=function(a,b){return VM(a,b)-1};
LDa=function(a,b){return new g.Ew(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.XM=function(a,b,c,d,e,f,k){g.dA.call(this);var l=this;this.api=a;this.contextMenu=c;this.Jd=d;this.yc=e;this.j=f;this.C=k;this.B=new g.L(function(){MDa(l,!1)},1E3);
this.u="";g.H(this,this.B);this.T(b,"mousedown",function(){WM(l,!1)});
this.T(c.element,"mousedown",function(){WM(l,!1)});
this.T(b,"keydown",this.DM);this.T(c.element,"keydown",this.DM);this.T(b,"keyup",this.EM);this.T(c.element,"keyup",this.EM)};
WM=function(a,b){g.O(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.O(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
ZM=function(a,b,c,d){var e=g.zL(a.api.tb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var k=0;k<g.YM.length;k++){var l=g.YM[k];if(l.option===b){e=l.options;break}}k=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(k=l);if(d)if(c){if(0===k)return}else if(k===e.length-1)return;d={};d[b]=e[(k+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);MDa(a,!0);a.B.start()}};
NDa=function(a,b){a.api.sf();if(g.V(a.api.zb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
MDa=function(a,b){g.zL(a.api.tb())&&a.api.setOption("captions","sampleSubtitles",b)};
$M=function(a,b,c){g.W.call(this,{G:"button",Ga:["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.I=a;this.j=b;this.visible=!1;this.tooltip=this.j.pc();
a.Bb(this.element,this,16499);this.T(a,"appresize",this.Ka);this.T(a,"fullscreentoggled",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.Ka();g.Bf(this,g.rM(this.tooltip,this.element));this.Pa("click",function(){a.xb(d.element);dM(c,d.element,!1)});
this.T(c.closeButton,"click",function(){d.focus()})};
aN=function(a,b){g.cM.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:kI(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",oa:"{{buttons}}"}]},{G:"button",Ga:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.vI()]}]},250);this.actionButtons=[];this.tooltip=b.pc();this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Eb);g.Bf(this,g.rM(this.tooltip,
this.closeButton));this.Pa("click",this.WR);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
bN=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Na("buttons",a.actionButtons))};
ODa=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.kc(b)};
cN=function(a,b,c){var d=g.mL(b,c),e=a.V(),f=d.Se("default.jpg");g.W.call(this,{G:"a",Ga:["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",oa:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",oa:"\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",oa:d.title},{G:"div",
L:"ytp-video-menu-item-author",oa:d.author}]});this.api=a;this.index=c;this.Pa("click",this.onClick)};
dN=function(a){g.cM.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:kI()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[a.V().D?{G:"span",L:"ytp-playlist-menu-title-name",oa:"{{title}}"}:{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},oa:"{{title}}"},{G:"button",Ga:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.vI()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",oa:"{{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.Da("ytp-playlist-menu-items");this.B=new g.dA(this);this.j=[];var b=this.Da("ytp-playlist-menu-close");this.T(b,"click",this.Eb);b=this.Da("ytp-playlist-menu-title-name");a.V().D||this.T(b,"click",this.OY);g.H(this,this.B);this.hide()};
eN=function(a,b,c){g.W.call(this,{G:"button",Ga:["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",Jb:!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",oa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.pc();a.Bb(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ka);this.T(a,"appresize",this.Ka);this.hide();this.j();g.Bf(this,g.rM(this.tooltip,this.element));this.Pa("click",function(){a.xb(d.element);dM(c,d.element,!1)})};
fN=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",oa:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",oa:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",oa:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",oa:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.I=c;this.j=this.B=null;this.title=this.Da("ytp-promotooltip-title");this.details=this.Da("ytp-promotooltip-details");this.acceptButton=this.Da("ytp-promotooltip-accept-button");this.dismissButton=this.Da("ytp-promotooltip-dismiss-button");this.J=this.D=this.u=this.C=!1;g.oI(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.ah(this.element,this,!0),this.I.gk(this.element,a);this.T(c,"onShowControls",
this.iD);this.T(c,"onHideControls",this.RW);this.T(c,"resize",this.yb);this.T(this.acceptButton,"click",this.fW);this.T(this.dismissButton,"click",this.XW);this.T(document,"click",this.XR)};
PDa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
gN=function(a){g.oI(a,!1);a.u&&a.I.bb(a.element,a.ub)};
hN=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f,k;if(null==(f=e)?0:null==(k=f.feedbackEndpoint)?0:k.feedbackToken)b={feedbackTokens:[e.feedbackEndpoint.feedbackToken]},a=a.I.dl(),(null==a?0:jBa(e,a.C))&&NJ(a,e,b)}};
QDa=function(a){var b,c,d,e,f,k=(null==(b=a.acceptButton)?void 0:null==(c=b.buttonRenderer)?void 0:null==(d=c.text)?void 0:null==(e=d.runs)?void 0:e.length)&&!(null==(f=a.acceptButton)||!f.buttonRenderer.text.runs[0].text),l,m,n,p,q;b=(null==(l=a.dismissButton)?void 0:null==(m=l.buttonRenderer)?void 0:null==(n=m.text)?void 0:null==(p=n.runs)?void 0:p.length)&&!(null==(q=a.dismissButton)||!q.buttonRenderer.text.runs[0].text);return k||b};
iN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.BI()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Pa("click",this.onClick,this);a=a.zb();g.oI(this,g.V(a,2));g.rM(b.pc(),this.element)};
g.jN=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{G:"button",Ga:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.xC(a.V()))},U:[{G:"div",L:"ytp-share-icon",oa:"{{icon}}"},{G:"div",L:"ytp-share-title",oa:"Share"}]});this.api=a;this.j=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.j.pc();b=a.V();a.Bb(this.element,this,28664);this.Pa("click",this.onClick);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",
this.Ka);this.T(a,"appresize",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.Ka();g.O(this.element,"ytp-show-share-title",g.xC(b)&&!g.IC(b));g.Bf(this,g.rM(this.tooltip,this.element))};
RDa=function(a){"InvalidStateError"!==a.name&&g.S(a)};
g.kN=function(a,b){var c=kI(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:kI(),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},oa:"Share"},{G:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.K,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},oa:"{{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:[SL()]},{G:"div",L:"ytp-share-panel-service-buttons",oa:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",oa:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ga:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.vI()]}]};g.cM.call(this,a,c,250);this.api=a;this.tooltip=b.pc();this.j=[];this.D=this.Da("ytp-share-panel-inner-content");this.closeButton=this.Da("ytp-share-panel-close");
this.T(this.closeButton,"click",this.Eb);g.Bf(this,g.rM(this.tooltip,this.closeButton));this.C=this.Da("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Ka);this.B=this.Da("ytp-share-panel-link");g.Bf(this,g.rM(this.tooltip,this.B));this.Pa("click",this.YR);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.GV);this.hide()};
TDa=function(a,b){SDa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={vn:e.vn},f++){e.vn=c[f];a:switch(e.vn.img||e.vn.iconId){case "facebook":var k={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":k={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:k=null}k&&(k=new g.W({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:{href:e.vn.url,target:"_blank",title:e.vn.sname||e.vn.serviceName},U:[k]}),k.Pa("click",function(m){return function(n){if(g.oJ(n)){var p=m.vn.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var v=p instanceof g.Zg?p:g.bh("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated,
y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var E in t)switch(E){case "width":case "height":case "top":case "left":x.push(E+"="+t[E]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(E+"="+(t[E]?1:0))}E=x.join(",");Tb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.Wh("A"),g.th(t,v),t.setAttribute("target",p),y&&t.setAttribute("rel","noreferrer"),v=document.createEvent("MouseEvent"),v.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(v),q={}):y?(q=uh("",q,p,E),v=g.$g(v),q&&(g.cD&&g.vb(v,";")&&(v="'"+v.replace(/'/g,"%27")+"'"),q.opener=null,""===v&&(v="javascript:''"),v=g.sh(g.Rg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
g.Hh(v)+'">'),(t=q.document)&&t.write&&(t.write(g.ph(v)),t.close()))):(q=uh(v,q,p,E))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.ru(n)}}}(e)),g.Bf(k,g.rM(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink;
b=new g.W({G:"a",Ga:["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.Pa("click",function(m){g.RL(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
g.Bf(b,g.rM(a.tooltip,b.element));a.j.push(b);a.Na("buttons",a.j)};
SDa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.zf(c);a.j=[]};
nN=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Xa=b;this.Sa=this.K=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ia=new g.L(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.L(function(){lN(d);mN(d)},200,this);
this.dismissButton=new g.W({G:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.J=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.J);this.badge=new g.W({G:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.J]});g.H(this,this.badge);this.badge.Ba(this.element);this.N=new g.$I(this.badge,250,!1,100);g.H(this,this.N);this.xa=new g.$I(this.J,250,!1,100);g.H(this,this.xa);this.Ja=new g.op(this.VZ,null,this);g.H(this,this.Ja);this.ma=new g.op(this.nU,null,this);g.H(this,this.ma);g.H(this,this.Ia);g.H(this,this.Z);this.I.ah(this.badge.element,this.badge,!0);this.I.ah(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.j=!1;mN(d);lN(d);d.ri()});
this.T(this.I,"onShowControls",function(){d.j=!0;mN(d);lN(d);d.ri()});
this.T(this.badge.element,"click",this.EG);this.T(this.dismissButton.element,"click",this.FG);this.T(this.I,"pageTransition",this.ZR);this.T(this.I,"appresize",this.ri);this.T(this.I,"fullscreentoggled",this.cX);this.T(this.I,"cardstatechange",this.JW);this.T(this.I,"annotationvisibility",this.x_,this);this.T(this.I,"offlineslatestatechange",this.y_,this)};
lN=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
mN=function(a,b){var c=a.K||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ja.stop(),a.ma.stop(),a.Ia.stop(),a.Ja.start()):(g.oI(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),UDa(a))};
UDa=function(a){a.C&&a.I.bb(a.badge.element,a.uy());a.D&&a.I.bb(a.dismissButton.element,a.uy()&&(a.K||a.j||!a.u))};
VDa=function(a){var b=a.text||"";g.ci(g.Rh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Qa?a.Qa:"")};
WDa=function(a,b){b?a.D&&a.I.xb(a.dismissButton.element):a.C&&a.I.xb(a.badge.element)};
oN=function(a,b){nN.call(this,a,b);var c=this;this.X=this.ya=this.Ea=!1;this.T(this.I,g.Gw("shopping_overlay_visible"),function(){c.Oe(!0)});
this.T(this.I,g.Hw("shopping_overlay_visible"),function(){c.Oe(!1)});
this.T(this.I,g.Gw("shopping_overlay_expanded"),function(){c.K=!0;mN(c)});
this.T(this.I,g.Hw("shopping_overlay_expanded"),function(){c.K=!1;mN(c)});
this.T(this.I,"changeProductsInVideoVisibility",this.OX);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.GX)};
pN=function(a){a.I.kf("shopping_overlay_visible");a.I.kf("shopping_overlay_expanded")};
qN=function(a){g.cM.call(this,a,{G:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.L(function(){b.hide()},5E3);
this.j=this.B=NaN;g.H(this,this.C);this.ma=function(){b.show()};
this.Z=function(){b.hide()};
this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c<b.j/1E3&&b.show()};
this.T(this.I,"videodatachange",function(c,d){b.xt(c,d)});
this.T(this.element,"click",function(){b.I.seekTo(b.j/1E3)});
this.hide()};
rN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},oa:"{{icon}}"});this.I=a;this.Pa("click",this.onClick);this.T(a,"airplayactivechange",this.Ka);this.T(a,"airplayavailabilitychange",this.Ka);this.Ka();g.Bf(this,g.rM(b.pc(),this.element))};
sN=function(a,b){g.W.call(this,{G:"button",Ga:["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.I=a;this.u=[];this.j=!1;this.isChecked=!0;a.Bb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.wv);this.Pa("click",this.onClick);this.I.V().S("web_player_autonav_toggle_always_listen")&&XDa(this);
this.tooltip=b.pc();g.Bf(this,g.rM(b.pc(),this.element));this.wv()};
XDa=function(a){a.u.push(a.T(a.I,"videodatachange",a.wv));a.u.push(a.T(a.I,"videoplayerreset",a.wv));a.u.push(a.T(a.I,"onPlaylistUpdate",a.wv));a.u.push(a.T(a.I,"autonavchange",a.FJ))};
YDa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Na("title",b);a.Na("label",b);RM(a.tooltip)};
ZDa=function(a){return a.I.V().S("web_player_autonav_use_server_provided_state")&&bE(a.I.getVideoData())};
g.uN=function(a){g.W.call(this,{G:"div",L:"ytp-gradient-bottom"});this.j=g.Wh("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.IC(a.V());g.tN(this,a.eb().getPlayerSize().height)};
g.tN=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.j.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.j.toDataURL()+")"}catch(f){}}}};
vN=function(a,b,c,d){g.W.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ga:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",oa:"\u2022"},{G:"div",L:"ytp-chapter-title-content",oa:"{{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.I=a;this.u=c;this.D="";this.currentIndex=0;this.j=void 0;this.B=!0;this.N=this.Da("ytp-chapter-container");this.C=this.Da("ytp-chapter-title");this.X=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.I.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.N,"click",this.onClick);this.T(a,g.Gw(d),this.Qb);this.T(a,"onLoopRangeChange",this.Qb);this.T(a,"innertubeCommand",this.onClickCommand);g.xC(this.I.V())||g.Bf(this,g.rM(b.pc(),this.X))};
wN=function(a,b,c){vN.call(this,a,b,c,"chapterCueRange")};
xN=function(a,b,c,d,e,f,k){var l=b.ox/b.columns,m=b.Mq/b.rows,n=Math.min(c/l,d/m);void 0!==f&&n*l<f&&(n=Math.min(2,f/l));f=b.ox*n;l=b.Mq*n;f=Math.floor(f/b.columns)*b.columns;l=Math.floor(l/b.rows)*b.rows;var p=f/b.columns,q=l/b.rows,t=-b.column*p,v=-b.row*q;e&&45>=m&&(q-=1/n);p-=2/n;a=a.style;a.width=p+"px";a.height=q+"px";e||(d=(d-q)/2,c=(c-p)/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+
") "+t+"px "+v+"px/"+(null!=k?k:f)+"px "+l+"px"};
g.yN=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.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.dA(this);this.j=new g.$I(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Tc)};
zN=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){zN(a,a.api.jh())}),a.events.T(a.api,"progresssync",a.Gd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,AN(a),a.j.show(200)):(c&&g.dv(a.events),a.j.hide(),a.j.stop())};
AN=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.eb().getPlayerSize(),e=LD(b,d.width);c=uwa(b,e,c);c!==a.B&&(a.B=c,swa(b,c,d.width),b=qwa(b,c,d.width),xN(a.C,b,d.width,d.height))};
BN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ga:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{G:"div",Ga:["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.Ua=a;this.B=b;this.j=new g.$I(this,250,void 0,100);this.C=this.u=!1;a.Bb(this.element,this,61214);this.B=b;g.H(this,this.j);this.T(a,
"fullscreentoggled",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.Pa("click",this.onClick);this.Ka()};
g.CN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.j=g.rM(this.u.pc(),this.element);this.B=new g.L(this.JT,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.ij);this.T(a,"presentingplayerstatechange",this.Ka);this.Pa("click",this.onClick);g.Yu()&&(b=this.I.eb(),this.T(b,spa(),this.NG),this.T(b,av(document),this.Rm));a.V().Xa||a.V().J||this.disable();a.Bb(this.element,this,
139117);this.Ka();this.ij(a.isFullscreen())};
DN=function(a,b,c){vN.call(this,a,b,c,"timedMarkerCueRange");this.T(a,g.Hw("timedMarkerCueRange"),this.Qb)};
EN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[BAa()]});this.I=a;this.visible=!1;this.Pa("click",this.onClick);this.T(a,"fullscreentoggled",this.Ka);this.Na("title",UL(a,"Miniplayer","i"));g.Bf(this,g.rM(b.pc(),this.element));a.Bb(this.element,this,62946);this.Ka()};
FN=function(a,b,c){g.W.call(this,{G:"button",Ga:["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",Jb:!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.I=a;this.j=!1;this.u=new g.L(this.B,400,this);this.tooltip=b.pc();vM(this.tooltip);g.H(this,this.u);this.Pa("click",function(){dM(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Ka(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Ka(!0);g.Bf(this,g.rM(this.tooltip,this.element))};
GN=function(a){g.cM.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",Ga:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.vI()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.dA(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Da("ytp-multicam-menu-close");this.T(a,"click",this.Eb);this.hide()};
HN=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.op(this.j,null,this);g.H(this,this.delay)};
$Da=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=$Da(a,d)))return d}};
cEa=function(a,b,c){c=$Da(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=kI();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=aEa(e),m=aEa(c);IN(a,function(n){d.setAttribute("d",bEa(l,m,n))},200)};
IN=function(a,b,c){a.u=b;a.startTime=(0,g.R)();a.duration=c;a.j()};
aEa=function(a){var b=[];a=a.match(dEa);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};
bEa=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.JN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-mute-button","ytp-button"],W:a.V().va?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.j=null;this.C=this.K=this.D=this.X=NaN;this.Z=this.J=null;this.B=[];this.u=[];this.visible=!1;this.currentIcon=null;var c=this.I.V();this.Na("icon",DI());this.tooltip=b.pc();this.j=new g.lI({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",Jb:!0,Ga:["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",Jb:!0,Ga:["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.j);this.J=this.j.Da("ytp-svg-volume-animation-speaker");this.Z=this.J.getAttribute("d");this.B=g.Qh("ytp-svg-volume-animation-mover",this.j.element);this.u=
g.Qh("ytp-svg-volume-animation-hider",this.j.element);this.ma=new HN;g.H(this,this.ma);this.N=new HN;g.H(this,this.N);this.Pa("click",this.yX);this.T(a,"appresize",this.GJ);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.va)g.Bf(this,g.rM(b.pc(),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.cM(a,{G:"span",Ga:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.K},oa:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.Us(d,f)});
g.eL(a,d.element,4)}this.message=d;a.Bb(this.element,this,28662);this.GJ(a.eb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
gEa=function(a,b){a.X=b;var c=a.Z;b&&(c+=bEa(eEa,fEa,b));a.J.setAttribute("d",c)};
hEa=function(a,b){a.K=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=DI():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.currentIcon&&(a.Na("icon",e),a.currentIcon=e)};
KN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[BAa()]});this.I=a;this.Na("title","Picture in Picture");this.Pa("click",this.onClick);g.Bf(this,g.rM(b.pc(),this.element))};
g.LN=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-play-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.currentIcon=null;this.transition=new HN;this.tooltip=b.pc();g.H(this,this.transition);this.j=!!c;a.Bb(this.element,this,36842);a.bb(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);iEa(this,a.zb());this.Pa("click",this.Hu,this);g.Bf(this,
g.rM(b.pc(),this.element))};
jEa=function(a){switch(a){case 1:return AI();case 2:return zAa();case 3:return g.BI();case 4:return DAa();default:return null}};
iEa=function(a,b){var c=g.qE(a.I.getVideoData()),d=!1;g.zH(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.currentIcon!==b){c=null;switch(b){case 2:c=UL(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=UL(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,icon:jEa(b)}):(a.update({title:c}),(c=jEa(b))&&a.currentIcon&&3!==a.currentIcon?cEa(a.transition,a.element,c):a.Na("icon",c));RM(a.tooltip);a.currentIcon=b}};
g.NN=function(a,b,c){g.W.call(this,{G:"a",Ga:[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?yI():CAa()]});var d=this;this.I=a;this.j=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.pc();c?a.Bb(this.element,this,6193):
a.Bb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.j||this.T(a,"appresize",this.jD);this.T(a,"mdxpreviousnextchange",function(){MN(d);d.jD()});
this.onVideoDataChange()};
kEa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
lEa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
mEa=function(a){var b=aL(a.I.tb());return b?a.j?b.hasNext():b.ol():!1};
MN=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.bL(a.I)&&(!a.j||c);var d=a.j&&g.fL(a.I),e=mEa(a),f=a.j&&5===a.I.getPresentingPlayerType(),k=UL(a.I,"Next","SHIFT+n"),l=UL(a.I,"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.mL(a.playlist,a.j?yCa(a.playlist):zCa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.I.V().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.nJ(m.lengthSeconds):null;b.preview=m.Se("mqdefault.jpg")}b.title=a.j?k:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.jl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.nJ(l.lengthSeconds):null,b.preview=l.Se("mqdefault.jpg")),b.title=k);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.isLinkable=!!b.url;d||c||a.B||e||f?a.u||
(a.u=g.rM(a.tooltip,a.element),a.D=a.Pa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.wc(a.D),a.D=null);RM(a.tooltip)};
ON=function(a,b){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing",U:[{G:"div",L:"ytp-fine-scrubbing-thumbnails"},{G:"div",L:"ytp-fine-scrubbing-cursor"},{G:"div",L:"ytp-fine-scrubbing-seek-time",oa:"{{seekTime}}"},{G:"div",L:"ytp-fine-scrubbing-play",U:[AI()]},{G:"div",L:"ytp-fine-scrubbing-dismiss",U:[g.vI()]}]});this.api=a;this.K=b;this.J=!1;this.B=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=
[];this.j=[];this.xa=void 0;this.ma=NaN;this.ya=this.Z=this.C=this.D=0;this.u=[];this.isEnabled=this.X=!1;this.N=new g.iv(this.B,!0);this.N.subscribe("dragstart",this.JJ,this);this.N.subscribe("dragmove",this.IJ,this);this.N.subscribe("dragend",this.HJ,this);g.H(this,this.N)};
oEa=function(a){var b=a.api.jh();if(b){var c=a.J?1.5:1,d=160*c,e=LD(b,160*c);if(b=b.levels[e]){if(!a.u.length){e=[];for(var f=MD(b,b.Hp()),k=b.columns*b.rows,l=b.Hp(),m=0;m<=f;m++)for(var n=l<k?Math.ceil(l/b.columns):b.rows,p=0;p<b.rows;p++){var q=l<b.columns?l:b.columns,t={url:OD(b,m),column:0,columns:q,row:p,rows:n,ox:b.width*q,Mq:b.height*n};e.push(t);l-=q;if(0>=l)break}a.u=e}for(;a.thumbnails.length>a.u.length;)e=void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.length<a.u.length;)e=
new nEa,a.thumbnails.push(e),e.Ba(a.B),g.H(a,e);for(e=0;e<a.u.length;e++)f=a.thumbnails[e].element,k=a.u[e],k.Mq*=c,xN(f,k,b.width,d,!0,void 0,d*b.columns),f.style.width=d*k.columns+"px",f.style.height=160*c+"px";PN(a,a.api.getCurrentTime());for(d=a.api.getVideoData().yk;a.j.length>d.length;)c=void 0,null==(c=a.j.pop())||c.dispose();for(;a.j.length<d.length;)c=new QN,a.j.push(new QN),g.H(a,c);c=a.J?1.5:1;d=g.r(d.entries());for(e=d.next();!e.done;e=d.next())f=g.r(e.value),e=f.next().value,f=f.next().value,
a.j[e].update({chapterTitle:f.title}),f=Math.round(f.startTime/b.j),k=Math.floor(f/b.rows),g.Dm(a.j[e].element,"transform","translateX("+f%b.rows*160*c+"px)"),a.j[e].Ba(a.thumbnails[k].element);a.X=!0}}};
PN=function(a,b){var c=g.nJ(b);a.update({seekTime:c});c=a.J?1.5:1;c=a.B.offsetWidth||90*a.thumbnails.length*c;b=-(b/a.api.getDuration()*c)+a.K/2;a.D=b;g.Dm(a.B,"transform","translateX("+a.D+"px)")};
nEa=function(){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})};
QN=function(){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing-chapter-title",oa:"{{chapterTitle}}"})};
pEa=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.J=this.Da("ytp-heat-map-svg");this.D=this.Da("ytp-heat-map-path");this.C=this.Da("ytp-heat-map-graph");this.B=this.Da("ytp-heat-map-play");this.u=this.Da("ytp-heat-map-hover");this.isValid=!1;this.j=60};
rEa=function(a,b,c,d){d=void 0===d?!1:d;b=new qEa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
qEa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
RN=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",Ga:["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.Da("ytp-progress-linear-live-buffer");this.B=this.Da("ytp-ad-progress-list");
this.D=this.Da("ytp-load-progress");this.J=this.Da("ytp-play-progress");this.u=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
SN=function(a,b){g.Dm(a.j,"width",b)};
TN=function(a,b){g.Dm(a.j,"margin-right",b+"px")};
UN=function(a,b){return"PLAY_PROGRESS"===b?a.J:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
sEa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN};
VN=function(){g.W.call(this,{G:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.XN=function(a,b){g.pI.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Ga:["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",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",W:{tabindex:"0"},Ga:["ytp-fine-scrubbing-container"]},{G:"div",L:"ytp-bound-time-left",oa:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",oa:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},oa:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",
W:{title:"{{clipendtitle}}"},oa:"{{clipendicon}}"}]});this.api=a;this.Ud=!1;this.D=this.Qf=0;this.Xa=1;this.md=this.N=0;this.K=null;this.ya=this.Tb=0;this.ib=this.Da("ytp-marker-crenellation-list");this.Qa={};this.Rb={};this.clipEnd=Infinity;this.Db=this.Da("ytp-clip-end");this.lc=new g.iv(this.Db,!0);this.me=this.Da("ytp-clip-end-exclude");this.cg=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Gb=this.Da("ytp-clip-start");this.Dc=new g.iv(this.Gb,!0);this.Z=this.jb=0;this.Ic=this.Da("ytp-progress-bar");
this.rb={};this.bd={};this.Xb=this.Da("ytp-chapters-container");this.Rf=this.Da("ytp-timed-markers-container");this.j=[];this.ma=[];this.Qd={};this.Hb=null;this.Ya=-1;this.qb=this.Ia=0;this.X=null;this.Cd=this.Da("ytp-scrubber-button");this.gg=this.Da("ytp-scrubber-container");this.Lb=new g.Ah;this.oe=new sEa;this.B=new rJ(0,0);this.Vb=null;this.C=this.Ub=!1;this.rf=null;this.Ea=this.Da("ytp-fine-scrubbing-container");this.xa=this.Da("ytp-heat-map-container");this.Pc=this.Da("ytp-heat-map-edu");this.J=
[];this.Sa=this.Wc=this.Ja=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.pc();g.Bf(this,g.rM(this.tooltip,this.Db));g.H(this,this.lc);this.lc.subscribe("hoverstart",this.hO,this);this.lc.subscribe("hoverend",this.gO,this);this.T(this.Db,"click",this.RB);g.Bf(this,g.rM(this.tooltip,this.Gb));g.H(this,this.Dc);this.Dc.subscribe("hoverstart",this.hO,this);this.Dc.subscribe("hoverend",this.gO,this);this.T(this.Gb,"click",this.RB);tEa(this);this.T(a,"resize",this.yb);this.T(a,"presentingplayerstatechange",
this.cS);this.T(a,"videodatachange",this.xt);this.T(a,"videoplayerreset",this.PU);this.T(a,"cuerangesadded",this.yQ);this.T(a,"cuerangesremoved",this.yZ);this.T(a,"cuerangemarkersupdated",this.yQ);this.T(a,"onLoopRangeChange",this.KJ);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.Gw("timedMarkerCueRange"),this.MY);this.updateVideoData(a.getVideoData(),!0);this.KJ(a.getLoopRange());WN(this)&&!this.u&&(this.u=new ON(this.api,this.D),this.u.Ba(this.Ea),g.H(this,this.u),this.T(this.u.dismissButton,
"click",this.XL),this.T(this.u.playButton,"click",this.XE),this.T(this.u.element,"dblclick",this.XE),this.T(this.Ea,"keydown",this.bX));this.api.Bb(this.xa,this,139609);this.api.Bb(this.Pc,this,140127);this.api.Bb(this.ib,this,145078)};
tEa=function(a){if(0===a.j.length){var b=new RN;a.j.push(b);g.H(a,b);b.Ba(a.Xb,0)}for(;1<a.j.length;)a.j.pop().dispose();SN(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
YN=function(a){for(;a.ma.length;)a.ma.pop().dispose()};
uEa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.Ew(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.kf("chapterCueRange");a.api.Rd(c)};
aO=function(a,b){var c,d=null==(c=a.rb[b])?void 0:c.chapters;d&&(vEa(a,d),a.api.getVideoData().yk=a.j,uEa(a));var e;if((c=null==(e=a.rb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){YN(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new VN,d=d.markerRenderer){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var k=f=void 0;c.onActiveCommand=null!=(k=null==(f=d)?void 0:f.onActiveCommand)?k:void 0;wEa(a,c)}ZN(a,
a.ma);e=a.ma;c=a.Qd;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(k=LDa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(k),c[k.id]=e[f].onActiveCommand);a.api.Rd(d)}var l,m;b=null==(l=a.rb[b])?void 0:null==(m=l.heatmap)?void 0:m.heatmapRenderer;if(!a.api.S("web_heatseeker_counterfactual")&&b){l=b.heatMarkers||[];var n;m=null!=(n=b.minHeightDp)?n:0;var p;n=null!=(p=b.maxHeightDp)?p:60;p=a.j.length;e=null;for(c=0;c<p;c++){f=
a.j[c].startTime;k=c===p-1?Infinity:a.j[c+1].startTime;if(c===a.J.length){d=void 0;var q=a;d=void 0===d?NaN:d;var t=new pEa(q.api);q.J.push(t);g.H(q,t);t.Ba(q.xa);var v=t;q="hm_"+q.J.length;v.update({id:q});q="url(#"+q+")";v.C.setAttribute("clip-path",q);v.B.setAttribute("clip-path",q);v.u.setAttribute("clip-path",q);0<=d&&(t.element.style.width=d+"px")}d=[];e&&d.push(e);t=g.r(l);for(v=t.next();!v.done;v=t.next()){v=v.value;var x=q=void 0,y=void 0,z=null!=(y=null==(q=v)?void 0:null==(x=q.heatMarkerRenderer)?
void 0:x.timeRangeStartMillis)?y:-1;z>=f&&z<=k&&d.push(v)}0<n&&(a.xa.style.height=n+"px");f=a.J[c];t=0===c;t=void 0===t?!1:t;k=f;0<n&&(k.j=n,k.J.style.height=k.j+"px");k=f;t=void 0===t?!1:t;v=1E3/d.length;q=[];q.push({x:0,y:100});x=g.r(d.entries());for(y=x.next();!y.done;y=x.next()){z=g.r(y.value);y=z.next().value;z=z.next().value;var E=void 0;z=(null==(E=z.heatMarkerRenderer)?void 0:E.heatMarkerIntensityScoreNormalized)||0;E=(y+.5)*v;z=100-g.wh(100*z,m/k.j*100,n/k.j*100);0!==y||t||q.push({x:0,y:z});
q.push({x:E,y:z});y===d.length-1&&q.push({x:1E3,y:z})}q.push({x:1E3,y:100});k=q;if(0===d.length)k="";else{t="";v=g.r(k.entries());for(q=v.next();!q.done;q=v.next())x=g.r(q.value),q=x.next().value,x=x.next().value,0===q?q="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(y=rEa(k[q-1],k[q-2],x),q=rEa(x,k[q-1],k[q+1],!0),q=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+" "+q.x.toFixed(1)+","+q.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),t+=q;k=t}f.D.setAttribute("d",k);f.isValid=""!==k;g.O(f.api.getRootNode(),
"ytp-heat-map",f.isValid);g.O(f.api.getRootNode(),"ytp-heat-map-played_bar",f.api.S("web_player_heat_map_played_bar")&&""!==k);0<d.length&&(e=d[d.length-1])}g.$N(a);l=[];b=g.r(b.heatMarkersDecorations||[]);for(m=b.next();!m.done;m=b.next())if(m=m.value.timedMarkerDecorationRenderer)n=m.label,c=e=p=void 0,l.push({visibleTimeRangeStartMillis:null!=(p=m.visibleTimeRangeStartMillis)?p:-1,visibleTimeRangeEndMillis:null!=(e=m.visibleTimeRangeEndMillis)?e:-1,decorationTimeMillis:null!=(c=m.decorationTimeMillis)?
c:NaN,label:n?g.Lw(n):""});a.heatMarkersDecorations=l}};
wEa=function(a,b){a.ma.push(b);g.H(a,b);b.Ba(a.Rf,a.Rf.children.length)};
ZN=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=xEa(a,c.timeRangeStartMillis/(1E3*a.B.j),bO(a));g.Dm(c.element,"transform","translateX("+d+"px)")}};
vEa=function(a,b){var c=0,d=!1;b=g.r(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},k=e.title;f.title=k?g.Lw(k):"";k=e.timeRangeStartMillis;null!=k&&(f.startTime=k);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new RN,a.j.push(f),g.H(a,f),f.Ba(a.Xb,a.Xb.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.$N(a);cO(a)};
g.$N=function(a){a.Ia=a.j.length-1;a.qb=0;yEa(a,!0)&&yEa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){TN(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;SN(a.j[d],e+"px");break}a.j[c].width=0;SN(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,SN(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,SN(a.j[c],d+"px"));c=0;if(a.J.length===a.j.length)for(b=0;b<
a.J.length;b++)d=a.j[b].width,a.J[b].element.style.width=d+"px",a.J[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
yEa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var k=a.D-(a.C?3:2)*a.Ia,l=0===a.qb?3:k*a.qb,m=g.r(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,TN(a.j[c],a.C?3:2));g.O(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*k)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);TN(p.j[q],0);b&&(a.Ia--,m/f>a.qb&&(a.qb=m/f),d=!0)}c++}}return d};
cO=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.S("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:HE(d))&&b.airingStart&&b.airingEnd?zEa(a,b.airingStart,b.airingEnd):zEa(a,b.seekableStart,b.seekableEnd);d=uJ(c,b.loaded,0);b=uJ(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;dO(a,b,d);e&&eO(a);AEa(a)}}};
zEa=function(a,b,c){return fO(a)?new rJ(Math.max(b,a.Vb.startTimeMs/1E3),Math.min(c,a.Vb.endTimeMs/1E3)):new rJ(b,c)};
hO=function(a,b){var c=tJ(a.B,b.B);if(1<a.j.length){c=gO(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
BEa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ia)};
CEa=function(a,b,c,d){b=g.wh(b,0,a.C?60:40);a.N=b;var e=a.Xa;a.Xa=b/(a.C?60:40)*(Math.max(sJ(a.B)/a.D,1)-1)+1;b=a.D*a.Xa;a.ya=g.wh(d*b-c,0,b-a.D);e!==a.Xa&&eO(a)};
eO=function(a){if(1!==a.j.length||WN(a))a.Cd.style.removeProperty("height");else{var b=bO(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Jba(a.ib),f=0;if(a.N>.2*(a.C?60:40)){for(var k=sJ(a.B)/60*d,l=Math.ceil(sJ(a.B)/60*c);l<k;l++){var m=e[f];m||(m=g.Wh("DIV"),a.ib.appendChild(m));f++;0===l%60?g.vp(m,"ytp-60m-progress"):0===l%30?g.vp(m,"ytp-30m-progress"):0===l%15?g.vp(m,"ytp-15m-progress"):g.vp(m,"ytp-1m-progress");m.style.left=(60*l/sJ(a.B)-c)*b.j+"px"}a.Sa||(a.Sa=!0,a.api.bb(a.ib,a.Sa))}b=a.Ub?a.B.j:0;a.update({boundTimeLeft:g.nJ(tJ(a.B,
c)-b),boundTimeRight:g.nJ(tJ(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.$h(e[c]);a.element.style.height=a.N+(a.C?8:5)+"px";a.ea("height-change",a.N);a.Cd.style.height=a.N+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Qa));for(f=e.next();!f.done;f=e.next())DEa(a,f.value);iO(a);dO(a,a.Z,a.jb)};
bO=function(a){var b=a.Lb.x,c=a.D*a.Xa;b=g.wh(b,0,a.D);a.oe.update(b,a.D,-a.ya,-(c-a.ya-a.D));return a.oe};
jO=function(a){return(a.C?135:90)-(a.C?54:48)};
dO=function(a,b,c){a.Z=b;a.jb=c;var d=bO(a),e=a.B.j,f=tJ(a.B,a.Z),k=g.PF("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.nJ(f,!0),DURATION:g.nJ(e,!0)}),l=VM(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.Vb&&2!==a.api.getPresentingPlayerType()&&(e=a.Vb.startTimeMs/1E3,f=a.Vb.endTimeMs/1E3);e=uJ(a.B,e,0);l=uJ(a.B,f,1);k=a.api.getVideoData();f=g.wh(b,e,l);c=(null==k?0:g.EE(k))?1:g.wh(c,e,
l);b=xEa(a,b,d);g.Dm(a.gg,"transform","translateX("+b+"px)");kO(a,d,e,f,"PLAY_PROGRESS");(null==k?0:HE(k))?(b=a.api.getProgressState().seekableEnd)&&kO(a,d,f,uJ(a.B,b),"LIVE_BUFFER"):kO(a,d,e,c,"LOAD_PROGRESS");if(a.api.S("web_player_heat_map_played_bar")){var m;null!=(m=a.J[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
kO=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.Ia*(a.C?3:2),l=c*k;c=gO(a,l);var m=d*k;k=gO(a,m);"HOVER_PROGRESS"===e&&(k=gO(a,b.j*d,!0),m=b.j*d-EEa(a,b.j*d)*(a.C?3:2));b=Math.max(l-FEa(a,c),0);for(d=c;d<f;d++)UN(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<k;f++)d=a.j[f].width,lO(a,UN(a.j[f],e),f===c?d-b:d,d);f=a.j[k].width;m=g.wh(m-FEa(a,k),0,f);c===k&&(m-=b);lO(a,UN(a.j[k],e),m,f);m=a.j.length;for(k+=1;k<m;k++)lO(a,UN(a.j[k],e),0,a.j[k].width);for(k=0;k<c;k++)lO(a,UN(a.j[k],e),0,a.j[k].width)};
FEa=function(a,b){if(b>=a.j.length)return a.D;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
lO=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Dm(b,"transform","scalex("+(d?c/d:0)+")")};
gO=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=EEa(a,b)*(a.C?3:2));c=g.r(a.j);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.j.length?d-1:d};
xEa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0<k.width&&e++;return b*(c.j-(a.C?3:2)*a.Ia)+(a.C?3:2)*(0>e?0:e)+c.u};
EEa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.mO=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.Qf=b;a.D=c;a.C=d;WN(a)&&null!=(b=a.u)&&(b.J=d);eO(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.$N(a);a.u&&(a.u.K=a.D,f&&WN(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Ea.style.height=c+"px",g.Dm(a.xa,"transform","translateY("+-d+"px)"),g.Dm(a.Ic,"transform","translateY("+-d+"px)")),oEa(a.u)))};
iO=function(a){var b=!!a.Vb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Vb?(c=a.Vb.startTimeMs/1E3,d=a.Vb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var k;if(null==(k=a.Vb)?0:k.postId)f=e=!1;g.O(a.element,"ytp-loop-range-enabled",b);g.O(a.element,"ytp-clip-start-enabled",e);g.O(a.element,"ytp-clip-end-enabled",f);b=e?uJ(a.B,c,0):0;d=f?uJ(a.B,d,1):1;a.Gb.style.left=Math.round(1E3*b)/10+"%";a.Db.style.left=Math.round(1E3*d)/10+"%";a.cg.style.width=Math.round(1E3*
b)/10+"%";a.me.style.left=Math.round(1E3*d)/10+"%";a.me.style.width=Math.round(1E3*(1-d))/10+"%"};
AEa=function(a){var b;if(null==(b=a.api.getVideoData())||!HE(b)){b=bO(a);kO(a,b,a.Z,Math.max(b.B,a.Z),"HOVER_PROGRESS");for(var c=gO(a,b.j*a.Z,!0),d=gO(a,b.C,!0),e=c;e<=d;e++)g.O(a.j[e].u,"ytp-hover-progress-light",b.B>a.Z);g.O(a.Cd,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.S("web_player_heat_map_played_bar")){var f;null!=(f=a.J[0])&&f.u.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
DEa=function(a,b){var c=a.Qa[b];b=a.Rb[b];var d=bO(a),e=uJ(a.B,c.start/1E3,0),f=Tqa(c,a.C)/d.width;var k=uJ(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.wh(e,0,k-f));k=Math.min(k,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.j+d.u,0)+"px";lO(a,b,g.wh((k-c)*d.j+d.u,0,d.width),d.width,void 0===e?!1:e)};
GEa=function(a,b){var c=b.getId();a.Qa[c]===b&&(g.$h(a.Rb[c]),delete a.Qa[c],delete a.Rb[c])};
WN=function(a){return a.api.V().S("web_player_fine_scrubbing")};
nO=function(a){a.u&&(a.u.disable(),a.N=0,a.xa.style.removeProperty("transform"),a.Ic.style.removeProperty("transform"),a.Ea.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
HEa=function(a,b){var c=b/jO(a)*(a.C?54:48);g.Dm(a.Ic,"transform","translateY("+-b+"px)");g.Dm(a.xa,"transform","translateY("+-b+"px)");g.Dm(a.Ea,"transform","translateY("+c+"px)");a.Ea.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=(a.C?54:48)-c+"px")};
IEa=function(a,b){b?a.X||(a.element.removeAttribute("aria-disabled"),a.X=new g.iv(a.Ic,!0),a.X.subscribe("hovermove",a.RX,a),a.X.subscribe("hoverend",a.QX,a),a.X.subscribe("dragstart",a.PX,a),a.X.subscribe("dragmove",a.TX,a),a.X.subscribe("dragend",a.SX,a),a.rf=a.Pa("keydown",a.dS)):a.X&&(a.element.setAttribute("aria-disabled","true"),a.wc(a.rf),a.X.cancel(),a.X.dispose(),a.X=null)};
g.JEa=function(a){var b=2*a.D*g.VC();return 1E3*sJ(a.B)/a.api.getPlaybackRate()/b};
fO=function(a){var b;return!(null==(b=a.Vb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
oO=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.sb=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.T(a,"appresize",this.Ka);a.Bb(this.element,this,139118);this.Ka();this.Pa("click",this.j,this);g.Bf(this,g.rM(b.pc(),this.element))};
pO=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-button","ytp-screen-mode-button"],W:{"aria-haspopup":"true","aria-owns":kI(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},U:[{G:"svg",W:{viewBox:"0 0 36 36"},U:[{G:"path",Jb:!0,W:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.I=a;this.u=!0;this.sb=null;this.Pa("click",this.B);this.T(a,"appresize",this.j);g.Bf(this,g.rM(b.pc(),this.element));this.j(a.eb().getPlayerSize())};
qO=function(a,b,c,d,e){g.yM.call(this,g.zM(),a,b);this.sb=d;this.j=!1;this.u=null;e&&(this.u=new g.W({G:"div",U:[{G:"span",oa:"{{title}}"},{G:"span",L:"ytp-menuitem-keyboard-shortcut",oa:e}]}),this.Kf(this.u),this.u.Na("title",b),g.H(this,this.u));this.Pa("click",this.onClick)};
rO=function(a,b){b&&!a.j?(a.sb.xc(a),a.j=!0):!b&&a.j&&(a.sb.lf(a),a.j=!1)};
sO=function(a,b){qO.call(this,9,"Miniplayer",a,b,"(i)");this.I=a;AM(this,{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!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"}}]});this.T(a,"fullscreentoggled",this.Ka);a.Bb(this.element,this,62946);this.Ka()};
tO=function(a,b,c){qO.call(this,11,"Connect to a device",a,b);this.I=a;this.B=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.T(a,"appresize",this.Ka);a.Bb(this.element,this,139118);this.Ka()};
uO=function(a,b){qO.call(this,10,"Theater mode",a,b,"(t)");this.I=a;this.isWidescreen=null;this.T(a,"sizestylechange",this.Ka);this.T(a,"fullscreentoggled",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);a.Bb(this.element,this,139116);this.Ka()};
vO=function(a,b,c){g.LM.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Ym=c;this.Xc=new g.CM(this.I);this.nC=0;g.H(this,this.Xc);this.T(a,"minimized",this.hide);this.T(a,"sizestylechange",this.hide);this.T(a,"fullscreentoggled",this.hide);this.hide();g.JM(this,this.Xc);this.Ym=c;this.element.id=c.element.getAttribute("aria-owns");a=this.I.V();a.jb&&(b=new tO(this.I,this,this.settingsMenu),g.H(this,b),this.nC++);a.vb||(b=new uO(this.I,this),g.H(this,b),this.nC++);a.showMiniplayerButton&&
(a=new sO(this.I,this),g.H(this,a),this.nC++)};
wO=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-owns":kI(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.CI()]});this.I=a;this.sb=c;this.u=!0;this.Pa("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.j);g.Bf(this,g.rM(b.pc(),this.element));this.I.Bb(this.element,
this,28663);this.updateBadge();this.j(a.eb().getPlayerSize())};
xO=function(a,b){a.u=!!b;a.j(a.I.eb().getPlayerSize())};
yO=function(a,b){GM.call(this,"Annotations",6);this.I=a;this.sb=b;this.j=!1;a.S("web_settings_menu_icons")&&AM(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.Ka);this.T(a,"onApiChange",this.Ka);this.subscribe("select",this.u,this);this.Ka()};
g.zO=function(a,b,c,d,e,f,k){g.yM.call(this,g.zM({"aria-haspopup":"true"}),b,a);this.sb=d;this.C=!1;this.u=null;this.options={};this.B=new g.CM(c,void 0,a,e,f,k);g.H(this,this.B);this.Pa("keydown",this.eS);this.Pa("click",this.open)};
KEa=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.AO=function(a,b){g.DM(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.options[f],l=f===a.u;l&&(d=!0);k&&k.priority===-e?(l=a,l.options[f].Kf(l.Dj(f,!0)),delete a.options[f]):k=a.mE(f,-e,l);c[f]=k;a.B.xc(k,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
BO=function(a,b){g.zO.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.j=new g.W({G:"div",U:[{G:"span",oa:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});a.S("web_settings_menu_icons")&&AM(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.j);this.Kf(this.j);this.T(a,"videodatachange",this.Ka);this.T(a,"onPlaybackAudioChange",this.Ka);this.Ka()};
CO=function(a,b){GM.call(this,"Autoplay",7);this.I=a;this.sb=b;this.j=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Bb(this.element,this,113682);this.u()};
DO=function(a,b,c,d){d=new g.W({G:"div",Ga:["ytp-linked-account-popup-button"],oa: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",oa:b},{G:"div",L:"ytp-linked-account-popup-description",oa:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.cM.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.Pa("click",function(){e.Eb()});
g.H(this,d);g.eL(this.I,this.element,4);this.hide()};
EO=function(a,b){g.yM.call(this,g.zM({"aria-haspopup":"true"}),1);this.I=a;this.sb=b;this.u=this.j=!1;this.T(this.I,"videodatachange",this.C);this.Pa("click",this.onClick);this.C()};
FO=function(a){return a?g.Lw(a):""};
GO=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-screen-mode-settings-option",U:[{G:"div",L:"ytp-screen-mode-settings-label",oa:"{{label}}"}]});this.sb=c;this.Ym=new g.pI({G:"button",Ga:["ytp-screen-mode-settings-button","ytp-button"],oa:"{{icon}}",W:{title:"{{title}}"}});this.Ym.Ba(this.element,0);g.H(this,this.Ym);this.Ym.Na("icon",a);this.Kf(b);this.Pa("click",this.onClick)};
HO=function(a,b,c){GO.call(this,{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},UL(b,"Miniplayer","i"),c);this.I=b;a.addButton(this);this.T(b,"fullscreentoggled",this.Ka);b.Bb(this.element,this,62946);this.Ka()};
IO=function(a,b){g.zO.call(this,"Quality",2,a,b);this.I=a;this.D={};this.j="unknown";a.S("web_settings_menu_icons")&&AM(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.M(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.xv);this.T(a,"videoplayerreset",this.xv);this.T(a,"onPlaybackQualityChange",
this.LJ);this.xv();a.Bb(this.element,this,137721)};
LEa=function(a,b,c){a=a.D[b];var d=g.Fx[b];c={G:"span",Ga: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",oa:e}));return c};
JO=function(a,b,c){GO.call(this,pAa(),"Connect to a device",c);this.I=b;this.currentIcon=null;a.addButton(this);this.T(b,"onMdxReceiversChange",this.Ka);this.T(b,"presentingplayerstatechange",this.Ka);this.T(b,"appresize",this.Ka);b.Bb(this.element,this,139118);this.Pa("click",this.onClick);this.Ka()};
KO=function(a,b){g.pI.call(this,{G:"div",L:"ytp-screen-mode-menu-item"});this.I=a;this.sb=b};
LO=function(a,b,c){GO.call(this,EAa(),UL(b,"Theater mode","t"),c);this.I=b;this.isWidescreen=null;a.addButton(this);this.T(b,"sizestylechange",this.Ka);this.T(b,"fullscreentoggled",this.Ka);this.T(b,"presentingplayerstatechange",this.Ka);b.Bb(this.element,this,139116);this.Ka()};
MO=function(a,b,c,d,e,f,k){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.J=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.Z=f;this.range=this.maximumValue-this.minimumValue;this.ma=this.Da("ytp-slider-section");this.u=this.Da("ytp-slider");this.N=this.Da("ytp-slider-handle");
this.C=new g.iv(this.u,!0);this.j=k?k:c;g.H(this,this.C);this.C.subscribe("dragmove",this.gS,this);this.T(this.element,"keydown",this.hS);this.T(this.element,"wheel",this.fS);this.init()};
OO=function(a){MO.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.B=g.Wh("P");this.xa=Zaa(this.X,this);g.M(this.u,"ytp-speedslider");g.M(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);NO(this);this.T(this.I,"onPlaybackRateChange",this.ya)};
NO=function(a){a.B.textContent=PO(a,a.j)+"x"};
PO=function(a,b){a=Number(g.wh(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))};
QO=function(a){g.pI.call(this,{G:"div",L:"ytp-speedslider-component"});this.j=new OO(a);g.H(this,this.j);this.element.appendChild(this.j.element)};
MEa=function(a){var b=new QO(a);BM.call(this,a,b,"Custom");g.H(this,b)};
RO=function(a,b){var c=new MEa(a);g.zO.call(this,"Playback speed",5,a,b,"Custom",function(){g.JM(b,c)});
a.S("web_settings_menu_icons")&&AM(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.I=a;this.D=this.j=this.K=null;this.J=this.I.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ka);this.Ka()};
NEa=function(a,b){var c=SO(b);a.options[c]?a.zi(c):b===a.D&&a.j&&(a.zi(a.j),a.Bd(b.toString()))};
PEa=function(a){g.AO(a,a.J.map(SO));a.j=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(OEa(a,b),g.zO.prototype.Of.call(a,a.j))};
OEa=function(a,b){a.D=b;a.j=g.PF("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.J.map(SO);b.unshift(a.j);g.AO(a,b)};
SO=function(a){return a.toString()};
TO=function(a,b,c,d){var e=new g.CM(b,void 0,"Video Override");g.zO.call(this,d.text||"",a,b,c,"Video Override",function(){g.JM(c,e)});
var f=this;g.M(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.xc(a,this.getKey,this);this.J=e;g.H(this,this.J);b=new g.yM({G:"div",L:"ytp-menuitemtitle",oa:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.J.xc(b,!0);this.D=new g.yM({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",oa:"On"}]},-1);g.H(this,this.D);this.J.xc(this.D,!0);this.T(this.D.element,
"click",function(){QEa(f,!0)});
this.j=new g.yM({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",oa:"Off"}]},-2);g.H(this,this.j);this.J.xc(this.j,!0);this.T(this.j.element,"click",function(){QEa(f,!1)});
g.AO(this,g.Kl(a,this.getKey))};
QEa=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.sb.Ch()};
UO=function(a,b){g.CM.call(this,a,void 0,"Options");var c=this;this.To={};for(var d=0;d<g.YM.length;d++){var e=g.YM[d],f=new TO(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.wh,this);this.To[e.option.toString()]=f;this.xc(f,!0)}a=new g.yM(g.zM(),-g.YM.length,"Reset");g.H(this,a);a.Pa("click",function(){c.wh("reset",!0)});
this.xc(a,!0)};
VO=function(a,b){g.zO.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Bb(this.element,this,127301);a.bb(this.element,!0)};
REa=function(a,b){a.languages=g.xc(b,a.getKey,a);g.AO(a,g.Kl(b,a.getKey))};
WO=function(a,b){var c=new UO(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.$C(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",oa:d[0]},{G:"a",L:"ytp-panel-footer-content-link",oa:"Settings",W:{href:"/account_playback"}},{G:"span",oa:d[1]}]});g.zO.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.JM(b,c)},e);
var f=this;this.I=a;this.sb=b;this.tracks={};this.J=new g.L(function(){SEa(f,!1)},3E3);
g.H(this,this.J);this.K=new g.W({G:"div",U:[{G:"span",oa:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.H(this,this.K);this.Kf(this.K);a.S("web_settings_menu_icons")&&AM(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.j=new VO(a,b);g.H(this,this.j);this.j.subscribe("select",this.iS,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.wh,this);b.subscribe("show",this.vY,this);this.T(a,"videodatachange",this.Ka);this.T(a,"onApiChange",this.Ka);this.T(a,"onCaptionsTrackListChanged",this.Ka);this.T(a,"captionschanged",this.Ka);a.Bb(this.element,this,127300);this.Ka()};
SEa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
XO=function(a){g.LM.call(this,a,"ytp-settings-menu");var b=this;this.Xc=new g.CM(this.I);this.gG=this.settingsButton=null;this.oC=0;this.isInitialized=!1;g.H(this,this.Xc);this.hide();g.JM(this,this.Xc);var c=this.I.V();if(c.S("web_screen_mode_menu_b")){var d=new KO(this.I,this);g.H(this,d);if(c.showMiniplayerButton&&!c.S("web_player_pip")){var e=new HO(d,this.I,this);g.H(this,e)}c.vb||(e=new LO(d,this.I,this),g.H(this,e),this.oC++);c.jb&&(c=new JO(d,this.I,this),g.H(this,c),this.oC++);1<this.oC&&
wDa(this.Xc,d)}a.Bb(this.element,this,108341,!0);this.subscribe("show",function(f){b.Oe(f)})};
TEa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
YO=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new HN;this.tooltip=b.pc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Ka);this.T(a,"fullscreentoggled",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);a.Bb(this.element,this,139116);this.Ka();this.Pa("click",this.onClick);g.Bf(this,g.rM(this.tooltip,this.element))};
g.ZO=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[XCa()]});this.I=a;this.tooltip=b.pc();this.T(a,"videodatachange",this.Ka);this.T(a,"appresize",this.Ka);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ka);this.T(a,"onCaptionsTrackListChanged",this.Ka);this.T(a,"captionschanged",this.Ka);this.I.Bb(this.element,this,127299);this.Ka();this.Pa("click",this.onClick);g.Bf(this,g.rM(b.pc(),
this.element))};
g.aP=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{G:"div",Ga:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",oa:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",oa:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",oa:" / "},{G:"span",L:"ytp-time-duration",oa:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",oa:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",oa:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.W({G:"button",
Ga:["ytp-live-badge","ytp-button"],W:{disabled:"true"},oa:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.J=this.D=null;this.isPremiere=!1;this.Vb=this.C=this.B=null;this.N=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.Bd("Live");g.H(this,this.liveBadge);this.liveBadge.Ba(this.element);this.tooltip=b.pc();this.Pa("click",this.onClick);this.T(this.N,"click",this.bZ);this.T(a,"presentingplayerstatechange",this.Qb);this.T(a,"appresize",this.Qb);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Qb();a=a.getLoopRange();b=this.Vb!==a;this.Vb=a;b&&$O(this)};
$O=function(a){a.Na("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.Na("watchfullvideo","Watch live stream"):a.Na("watchfullvideo","Watch full video");g.O(a.element,"ytp-clip",bP(a));g.O(a.element,"ytp-live",cP(a))};
cP=function(a){return a.isLiveVideo&&!a.u&&!bP(a)};
bP=function(a){return!!a.Vb&&!!a.Vb.postId&&2!==a.api.getPresentingPlayerType()};
fP=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.j=b;this.K=c;this.Ni=!1;this.X=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.j=b;this.K=c;this.C=b.cf();this.N=this.Da("ytp-volume-slider");this.Z=this.Da("ytp-volume-slider-handle");
this.D=new g.iv(this.N,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.AY,this);this.D.subscribe("dragmove",this.kS,this);this.D.subscribe("dragend",this.zY,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.MJ);this.T(a,"fullscreentoggled",this.Rm);this.T(a,"onShowControls",this.wL);this.T(a,"onHideControls",this.wL);this.T(this.element,"keydown",this.lS);this.T(this.element,"focus",function(){dP(d,d.u,d.isDragging,!0,d.j.Ni())});
this.T(this.element,"blur",function(){dP(d,d.u,d.isDragging,!1,d.j.Ni())});
this.MJ(a.eb().getPlayerSize());eP(this,a.getVolume(),a.isMuted())};
eP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Na("valuenow",d);a.Na("valuetext",e);a.Z.style.left=(a.C?60:40)*c+"px";a.volume=b};
UEa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);dP(a,b,a.isDragging,a.B,a.j.Ni())};
dP=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Ni;a.u=b;a.isDragging=c;a.B=d;a.Ni=e;b=a.u||a.isDragging||a.B||a.Ni;f!==b&&(b?a.J=a.T(a.element,"wheel",a.jS):(a.wc(a.J),a.J=null),g.O(a.K,"ytp-volume-slider-active",b))};
g.gP=function(a,b){var c=a.V(),d=g.SC(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.D&&e.push("no-link");g.IC(c)&&e.push("ytp-youtube-music-button");var f={target:c.K,"data-sessionlink":"feature=player-button",title:""};c.D||(f.title=g.PF("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{G:"a",Ga:e,W:f,oa:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Bb(this.element,this,28666);c.D||this.Pa("click",this.onClick);this.T(a,
"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.yb);this.onVideoDataChange();c.D||g.Bf(this,g.rM(b.pc(),this.element));this.yb()};
hP=function(a,b,c){g.dA.call(this);var d=this;this.I=a;this.B=b;this.Jd=c;this.Sa=NaN;this.Qa=this.Ja=null;this.settingsMenu=new XO(this.I);this.j=null;this.Ic=new g.XN(this.I,this.B);this.muteButton=null;this.Tg=new g.aP(this.I,this.B);this.N=this.D=this.C=this.X=this.Ea=this.ya=null;this.Z=new KN(this.I,this.B);this.Ia=new g.CN(this.I,this.B);this.Zd=new g.op(this.Pq,null,this);this.K=null;c=a.V();this.Jd.subscribe("autohideupdate",this.Wj,this);var e=!a.zb().isCued(),f=this.I.V().S("html5_player_bottom_linear_gradient");
f||!g.IC(c)&&!a.V().S("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.Qa=f=new g.uN(a);g.H(this,f);g.eL(a,f.element,9);this.va=new g.$I(f,250,e,100);g.H(this,this.va);this.u=new g.W({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.H(this,this.u);g.eL(a,this.u.element,9);this.ma=new g.$I(this.u,250,
e,100);g.H(this,this.ma);this.xa=this.u.element.children[0];g.Bf(this.settingsMenu,function(){a.Bo()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.eL(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){VEa(d.B.pc(),!n);b.ly(d.settingsMenu,n)});
g.H(this,this.Ic);this.Ic.Ba(this.u.element,0);e=new g.yN(a);g.H(this,e);g.eL(a,e.element,4);f=new g.lI({G:"div",L:"ytp-left-controls"});g.H(this,f);f.Ba(this.xa);e=new g.NN(a,b,!1);g.H(this,e);e.Ba(f.element);c.xa||(e=new g.LN(a,b),g.H(this,e),e.Ba(f.element),aD(c)&&(e=new g.lI({G:"div",L:"ytp-hybrid-controls"}),g.H(this,e),this.N=new g.LN(a,b,!0),g.H(this,this.N),this.N.Ba(e.element),g.eL(a,e.element,4)));e=new g.NN(a,b,!0);g.H(this,e);e.Ba(f.element);e=new g.W({G:"span",L:"ytp-volume-area"});g.H(this,
e);e.Ba(f.element);if(!c.Gb&&(this.muteButton=new g.JN(a,b),g.H(this,this.muteButton),this.muteButton.Ba(e.element),c.va&&!c.J)){var k=new fP(a,b,this.u.element);g.H(this,k);k.Ba(e.element);e=new g.iv(e.element);g.H(this,e);e.subscribe("hoverstart",function(){UEa(k,!0)});
e=new g.iv(f.element);g.H(this,e);e.subscribe("hoverend",function(){UEa(k,!1)})}g.H(this,this.Tg);
this.Tg.Ba(f.element);e=new g.lI({G:"div",L:"ytp-right-controls"});g.H(this,e);this.ya=new wN(a,b,this.Ic);g.H(this,this.ya);this.ya.Ba(f.element);c.S("web_key_moments_markers")&&(this.Ea=new DN(a,b,this.Ic),g.H(this,this.Ea),this.Ea.Ba(f.element));e.Ba(this.xa);a.V().Ub&&c.S("web_player_move_autonav_toggle")&&(f=new sN(a,b),g.H(this,f),f.Ba(e.element));c.S("external_fullscreen_with_edu")&&c.externalFullscreen&&UC(c)&&(this.X=new BN(a,b),g.H(this,this.X),this.X.Ba(e.element));f=new g.ZO(a,b);g.H(this,
f);f.Ba(e.element);f=new wO(a,b,this.settingsMenu);g.H(this,f);TEa(this.settingsMenu,f);f.Ba(e.element);if(c.S("web_screen_mode_menu_a")){var l=new pO(a,b);g.H(this,l);this.j=new vO(this.I,this.settingsMenu,l);l.sb=this.j;g.Bf(this.j,function(){a.Nw()===d.j&&(a.gD=null)});
g.H(this,this.j)}if(f=this.j&&1<this.j.nC)a.gD=this.j,g.eL(a,this.j.element,7),this.j.subscribe("show",function(n){VEa(d.B.pc(),!n);b.ly(d.j,n)}),l.Ba(e.element);
var m=new GN(a);g.H(this,m);g.eL(a,m.element,5);m.subscribe("show",function(n){b.Sn(m,n)});
l=new FN(a,b,m);g.H(this,l);l.Ba(e.element);l=a.getVideoData();if(c.wj||l.D&&"1"===c.controlsType)this.C=new g.gP(a,b),g.H(this,this.C),this.C.Ba(e.element);g.H(this,this.Z);!f&&1>=this.settingsMenu.oC&&(c.showMiniplayerButton&&!a.V().S("web_player_pip")&&(this.D=new EN(a,b),g.H(this,this.D),this.D.Ba(e.element)),this.Z.Ba(e.element),l.DD||this.Z.hide(),c.vb||(l=new YO(a,b),g.H(this,l),l.Ba(e.element)),c.jb&&(l=new oO(a,b,this.settingsMenu),g.H(this,l),l.Ba(e.element)),c.wk&&(c=new rN(a,b),g.H(this,
c),c.Ba(e.element)));g.H(this,this.Ia);this.Ia.Ba(e.element);g.H(this,this.Zd);this.T(a,"appresize",this.yb);this.T(a,"fullscreentoggled",this.yb);this.T(a,"presentingplayerstatechange",this.kD);this.T(a,"videodatachange",this.onVideoDataChange);this.yb()};
WEa=function(a,b){a.I.zb().isCued()||b?b&&(a.ma.hide(),a.va.hide(),a.muteButton&&a.muteButton.kc(!1),a.C&&a.C.kc(!1),a.D&&a.D.kc(!1),a.B.pc().Ej(a.u.element)):b||(a.ma.show(),a.va.show(),a.muteButton&&a.muteButton.kc(!0),a.C&&a.C.kc(!0),a.D&&a.D.kc(!0),a.Wj())};
XEa=function(a){var b=a.I.eb().getPlayerSize().width;return Math.max(b-2*iP(a),100)};
iP=function(a){var b=a.B.cf();return 12*(a.I.getVideoData().D?0:b?2:1)};
jP=function(a){var b=a.B.cf()?72:50;a=a.I.V();g.WC(a)&&(b=54,mva(a)&&(b=62));return b};
kP=function(a,b){nN.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.Gw("suggested_action_button_visible"),function(){c.Oe(!0)});
this.T(this.I,g.Hw("suggested_action_button_visible"),function(){c.Oe(!1)})};
lP=function(a){a.I.kf("suggested_action_button_visible")};
nP=function(a){g.W.call(this,{G:"div",L:mP.TITLE,U:[{G:"div",L:mP.TEXT,U:[{G:"a",Ga:[mP.LINK,mP.SESSIONLINK],W:{target:a.V().K,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},{G:"div",L:mP.SUBTEXT,U:[{G:"a",L:mP.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]}]}]});this.api=a;this.j=null;this.link=this.Da(mP.LINK);a.Bb(this.element,this,23851);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",
this.Ka);this.Ka()};
YEa=function(a){a.Na("channelLink","");a.Na("channelName","");a.Na("channelTitleFocusable","-1")};
g.oP=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",oa:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ea=b;this.env=this.api.V();this.ya=this.env.isMobile;this.bg=this.Da("ytp-tooltip-bg");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text");
this.title=this.Da("ytp-tooltip-title");this.X=function(d){(d=pu(d))&&g.bi(c.u,d)||c.Ck()};
this.C=function(d){3===c.type&&c.Ck();(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),ZEa(c,d,2))};
this.Z=function(){c.Ck()};
this.u=null;this.D=new g.$I(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.J="";this.lD=this.api.eb().getPlayerSize().width;this.K=!0;this.scale=1;this.ma=new g.L(this.BV,250,this);this.xa=new g.L(this.Ck,5E3,this);g.H(this,this.D);g.H(this,this.ma);g.H(this,this.xa);tC&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
vM=function(a){a.element.setAttribute("aria-live","polite")};
VEa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:pP(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.K=b};
bFa=function(a,b,c,d,e,f,k,l){if(!a.ya||a.env.J){3===a.type&&a.Ck();1!==a.type&&(g.vp(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.jh(),a.j&&a.j.subscribe("l",a.qO,a));a.update({text:d,title:null!=k?k:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=LD(a.j,160*a.scale),a.env.S("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=uwa(a.j,d,c));$Ea(a,d);if(l)switch(c=g.Om(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"}aFa(a,!!e,b,f)}};
g.qP=function(a){1===a.type&&a.Ck()};
g.rM=function(a,b){if(a.ya)return function(){};
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.Ck();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
QM=function(a,b,c){if(a.type)if(3===a.type)a.Ck();else return;ZEa(a,b,3,c)};
ZEa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Fs("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.vp(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Z);a.K&&(pP(a),a.D.show(0))}};
pP=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.Na("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,k=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-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.xp(a.element,["ytp-text-detail","ytp-preview"]);
g.O(a.element,"ytp-has-duration",!!d)}else a.Na("text",a.J),g.zp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);aFa(a,!!b)};
aFa=function(a,b,c,d){var e=Math.min(a.lD,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ea.Wq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.M(a.element,"ytp-bottom"):a.element.style.bottom&&g.M(a.element,"ytp-top");3===a.type&&a.xa.start()};
RM=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&pP(a))};
$Ea=function(a,b){g.O(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=qwa(a.j,a.B,b);xN(a.bg,d,b,c,!0);a.ma.start()}};
cFa=function(a){var b=a.u;3===a.type&&a.xa.stop();a.api.removeEventListener("appresize",a.Z);a.N||b.setAttribute("title",a.J);a.J="";a.u=null};
g.rP=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.xC(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.pc();vM(this.tooltip);a.Bb(this.element,this,28665);this.Pa("click",this.onClick,this);this.T(a,"videoplayerreset",this.mS);
this.T(a,"appresize",this.iz);this.T(a,"videodatachange",this.iz);this.T(a,"presentingplayerstatechange",this.iz);this.iz();a=this.I.V();var c=g.cw("yt-player-watch-later-pending");a.j&&c?(Wta(),dFa(this)):this.Ka(2);g.O(this.element,"ytp-show-watch-later-title",g.xC(a));g.Bf(this,g.rM(b.pc(),this.element))};
eFa=function(a,b){g.AJ(function(){Wta({videoId:b});window.location.reload()},"wl_button",g.RC(a.I.V()))};
dFa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ka(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.dl(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ka(2);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ka(1);a.I.V().isMobile&&QM(a.tooltip,a.element);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")};
NJ(c,b).then(d,function(){a.isRequestPending=!1;fFa(a,"An error occurred. Please try again later.")})}};
fFa=function(a,b){a.Ka(4,b);a.I.V().B&&a.I.Oa("WATCH_LATER_ERROR",b)};
gFa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=SL();break;case 1:d=sI();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.S("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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",Jb:!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.Na("icon",d);a.icon=b}};
sP=function(a){g.gM.call(this,a);var b=this;this.LA=(this.zq=g.xC(this.api.V()))&&(this.api.V().isMobile||fs()||ds());this.sE=48;this.tE=69;this.Vk=null;this.Vo=[];this.yc=new g.mM(this.api);this.nw=this.api.S("web_player_deprecate_double_tap_ux")?new SM:new TM(this.api);this.gi=new g.W({G:"div",L:"ytp-chrome-top"});this.Gy=[];this.tooltip=new g.oP(this.api,this);this.backButton=this.Zt=null;this.channelAvatar=new xM(this.api,this);this.title=new nP(this.api,this);this.Ug=new g.lI({G:"div",L:"ytp-chrome-top-buttons"});
this.Ag=this.shareButton=this.Gh=null;this.Gi=new qM(this.api,this,this.gi.element);this.overflowButton=this.wg=null;this.Mf="1"===this.api.V().controlsType?new hP(this.api,this,this.Jd):null;this.contextMenu=new g.OM(this.api,this,this.yc);this.jE=!1;this.eA=new g.W({G:"div",W:{tabindex:"0"}});this.dA=new g.W({G:"div",W:{tabindex:"0"}});this.Qx=null;this.rG=this.Qz=!1;var c=a.eb(),d=a.V(),e=a.getVideoData();this.zq&&(g.M(a.getRootNode(),"ytp-embed"),g.M(a.getRootNode(),"ytp-embed-playlist"),this.LA&&
(g.M(a.getRootNode(),"ytp-embed-overlays-autohide"),g.M(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.sE=60,this.tE=89);this.api.V().isMobile&&(g.M(a.getRootNode(),"ytp-mobile"),this.api.V().J&&g.M(a.getRootNode(),"ytp-embed-mobile-exp"));this.Cg=e&&e.Cg;g.H(this,this.yc);g.eL(a,this.yc.element,4);g.H(this,this.nw);g.eL(a,this.nw.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.eL(a,e.element,1);this.qI=new g.$I(e,250,!0,100);g.H(this,this.qI);g.H(this,this.gi);g.eL(a,
this.gi.element,1);this.pI=new g.$I(this.gi,250,!0,100);g.H(this,this.pI);g.H(this,this.tooltip);g.eL(a,this.tooltip.element,4);var f=new dN(a);g.H(this,f);g.eL(a,f.element,5);f.subscribe("show",function(l){b.Sn(f,l)});
this.Gy.push(f);this.Zt=new eN(a,this,f);g.H(this,this.Zt);d.showBackButton&&(this.backButton=new lM(a),g.H(this,this.backButton),this.backButton.Ba(this.gi.element));this.zq||this.Zt.Ba(this.gi.element);this.channelAvatar.Ba(this.gi.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ba(this.gi.element);g.H(this,this.Ug);this.Ug.Ba(this.gi.element);d.D||(this.Gh=new g.rP(a,this),g.H(this,this.Gh),this.Gh.Ba(this.Ug.element));var k=new g.kN(a,this);g.H(this,k);g.eL(a,k.element,5);
k.subscribe("show",function(l){b.Sn(k,l)});
this.Gy.push(k);d.D||(this.shareButton=new g.jN(a,this,k),g.H(this,this.shareButton),this.shareButton.Ba(this.Ug.element),this.Ag=new g.PM(a,this),g.H(this,this.Ag),this.Ag.Ba(this.Ug.element));d.Ik&&(e=new qN(a),g.H(this,e),g.eL(a,e.element,4));this.zq&&this.Zt.Ba(this.Ug.element);g.H(this,this.Gi);this.Gi.Ba(this.Ug.element);d.D||(e=new sM(a,this,this.Gi),g.H(this,e),e.Ba(this.Ug.element));this.wg=new aN(a,this);g.H(this,this.wg);g.eL(a,this.wg.element,5);this.wg.subscribe("show",function(){b.Sn(b.wg,
b.wg.pg())});
this.Gy.push(this.wg);this.overflowButton=new $M(a,this,this.wg);g.H(this,this.overflowButton);this.overflowButton.Ba(this.Ug.element);this.Mf&&g.H(this,this.Mf);"3"===d.controlsType&&(e=new iN(a,this),g.H(this,e),g.eL(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.CQ,this);e=new vJ(a,new kM(a));g.H(this,e);g.eL(a,e.element,4);this.eA.Pa("focus",this.wU,this);g.H(this,this.eA);this.dA.Pa("focus",this.xU,this);g.H(this,this.dA);(this.Km=d.oe?null:new g.XM(a,c,this.contextMenu,
this.Jd,this.yc,this.nw,function(){return b.Yk()}))&&g.H(this,this.Km);
this.zq||(this.NP=new oN(this.api,this),g.H(this,this.NP),g.eL(a,this.NP.element,4));this.ZP=new kP(this.api,this);g.H(this,this.ZP);g.eL(a,this.ZP.element,4);this.Uo.push(this.yc.element);this.T(a,"fullscreentoggled",this.Rm);this.T(a,"offlineslatestatechange",function(){b.api.bx()&&ML(b.Jd,128,!1)});
this.T(a,"cardstatechange",function(){b.sj()});
this.T(a,"resize",this.QW);this.T(a,"showpromotooltip",this.sX)};
hFa=function(a){var b=a.api.V(),c=g.V(a.api.zb(),128);return b.j&&c&&!a.api.isFullscreen()};
tP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Gm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=tP(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};
iFa=function(a,b,c){if(a.api.V().S("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData();if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.Qx){if(!(b=!b)){var f,k;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(k=d.promoConfig)?void 0:k.promoId)}e=b}e&&(a.Qx=new fN(d,a,a.api),g.H(a,a.Qx),g.eL(a.api,a.Qx.element,9));var l;null==(l=a.Qx)||l.iD(d,c)}}};
g.uP=function(a){g.rL.call(this,a);this.chrome=null;this.load()};
jFa=function(a){var b,c;null==(b=window.h5vcc)||null==(c=b.settings)||c.set("QUIC",+a)};
kFa=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.u(new Uint8Array(c))));a.close()}return b};
lFa=function(){for(var a=vP.length;4>a;a++){var b=g.Wh("VIDEO");b.load();vP.push(new g.LL(b))}};
mFa=function(){this.u=200;this.j=12};
nFa=function(a){var b=new mFa;b.u=g.YA(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.YA(a.experiments,"html5_gapless_max_played_ranges");return b};
g.wP=function(a,b,c,d){d=void 0===d?!1:d;pH.call(this);this.qa=a;this.start=b;this.end=c;this.j=d};
oFa=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.Mh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.yd())&&b.isView()&&(b=b.qa),b&&b.qq().length>a.j&&g.lE(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.lE(f)&&g.lE(e))return{msg:"content-protection"};
a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.hA?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Zb(),cr:f.sampleRate,ni:e.Zb(),nr:b.sampleRate}};
xP=function(){var a=this;this.j=this.u=iaa;this.promise=new g.pi(function(b,c){a.u=b;a.j=c})};
yP=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Il=new xP;this.lk=d-1E3*b.qd();this.Il.then(void 0,function(){});
this.timeout=new g.L(function(){e.Ye("timeout")},1E4);
g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.Ra()};
tFa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.Ra();a.timeout.start();b=g.zP.tp("gtfta");return g.A(p,a.Il,2)}g.zP.Xn(b);c=a.j.yd();if(c.Uf())return a.Ye("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!xA(a.C))return a.Ye("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.oq()!==a.C)return a.Ye("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=pFa(a);e=d.VN;f=d.JL;k=d.UN;a.j.Pg(!1,!0);l=qFa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{xq:!0,oI:3,re:"gapless_pseudo"}),l.play()||Jr());m=c.Nb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.Aa("gapless",m);a.j.Aa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();rFa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);rFa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.mi(function(){!a.u.getVideoData().ib&&g.zH(a.u.getPlayerState())&&sFa(a.u)});
AP(a,6);a.dispose();return p.return(Promise.resolve())})};
wFa=function(a){if(a.u.getVideoData().C){BP(a.u,a.C);AP(a,3);uFa(a);var b=vFa(a),c=b.MP;b=b.RZ;c.subscribe("updateend",a.Zr,a);b.subscribe("updateend",a.Zr,a);a.Zr(c);a.Zr(b)}};
uFa=function(a){a.j.unsubscribe("internalvideodatachange",a.Wp,a);a.u.unsubscribe("internalvideodatachange",a.Wp,a);a.j.unsubscribe("mediasourceattached",a.Wp,a);a.u.unsubscribe("statechange",a.Tc,a)};
qFa=function(a,b,c,d){a=a.isView()?a.qa:a;return new g.wP(a,b,c,d)};
AP=function(a,b){a.Ra();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Il.resolve(void 0))};
pFa=function(a){var b=a.j.yd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:CP(a.j,!0);c=Math.min(a.lk/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Mh()+d;return{bU:b,VN:a,JL:c,UN:Infinity}};
vFa=function(a){return{MP:a.B.j.Id,RZ:a.B.u.Id}};
DP=function(a){g.G.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.K=!1;this.C=null;this.N=nFa(this.app.V());this.B=null;this.J=function(){g.mi(function(){xFa(b)})}};
yFa=function(a,b,c,d){d=void 0===d?0:d;a.Ra();a.Kt()||EP(a);a.C=new xP;a.j=b;var e=c,f=a.app.Lc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*CP(f,!0);e>k&&(e=k-a.N.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.u=f,f=e,e=a.u,a.app.Ua.addEventListener(g.Gw("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Ew(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,CP(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,CP(b)+l));f=Mta(e,k)||d;f!==d&&a.j.Aa("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().md=!0;d.getVideoData().Ea=!0;g.FP(d,!0);e={};a.u&&(e=g.GP(a.u.dc.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.Aa("queued",e);0!==b&&d.seekTo(b+.01,{xq:!0,oI:3,re:"videoqueuer_queued"});a.B=new yP(a.N,a.app.Lc(),a.j,c);c=a.B;c.Ra();Infinity!==c.status.status&&(AP(c,1),c.j.subscribe("internalvideodatachange",
c.Wp,c),c.u.subscribe("internalvideodatachange",c.Wp,c),c.j.subscribe("mediasourceattached",c.Wp,c),c.u.subscribe("statechange",c.Tc,c),c.j.subscribe("newelementrequired",c.wO,c),c.Wp());return a.C};
xFa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed())return e.return();a.Ra();if(!a.C||!a.j)return a.Ra(),e.return();a.K&&HP(a.app.Lc(),!0,!1);b=null;if(!a.B){e.Za(2);break}g.va(e,3);return g.A(e,tFa(a.B),5);case 5:g.wa(e,2);break;case 3:b=c=g.xa(e);case 2:if(!a.j)return a.Ra(),e.return();g.zP.wH("vqsp",function(){IP(a.app,a.j)});
g.zP.wH("vqpv",function(){a.app.playVideo()});
b&&zFa(a.j,b.message);d=a.C;EP(a);return e.return(d.resolve(void 0))}})};
EP=function(a){if(a.u){var b=a.u;a.app.Ua.removeEventListener(g.Gw("vqueued"),a.J);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Ye("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.gL(a.app,1)&&a.j!==a.app.Lc()&&a.j.dispose();a.j=null;a.K=!1};
AFa=function(){var a=Hoa();return!(!a||"visible"===a)};
CFa=function(a){var b=BFa();b&&document.addEventListener(b,a,!1)};
DFa=function(a){var b=BFa();b&&document.removeEventListener(b,a,!1)};
BFa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[hu+"VisibilityState"])return"";a=hu+"visibilitychange"}return a};
JP=function(){g.ev.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Oe()};
CFa(this.C);this.D=this.getVisibilityState(this.Df(),this.isFullscreen(),this.Te(),this.isInline(),this.It(),this.Et())};
EFa=function(a){this.end=this.start=a};
g.NP=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.Ca=c;this.Ja=new Map;this.ib=new Map;this.Sa=new Map;this.D=new Map;this.B=[];this.J=[];this.u=new Map;this.vb=new Map;this.K=new Map;this.rb=NaN;this.jb=this.Ia=null;this.qb=new g.L(function(){KP(d,d.rb)});
this.events=new g.dA(this);this.isLiveNow=!0;this.Dc=g.YA(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.L(function(){d.Z=!0;d.Ca.Aa("sdai",{aftimeout:d.Dc});LP(d);d.Rw(!1)},this.Dc);
this.Z=!1;this.ya=new Map;this.Ya=[];this.X=null;this.lc=new Set;this.xa=[];this.Db=[];this.Tb=[];this.Lb=[];this.j=void 0;this.Ea=0;this.Xa=!0;this.C=!1;this.Qa=[];this.Rb=new Set;this.Xb=new Set;this.Ub=new Set;this.Hi=0;this.N=null;this.Wa=new Set;this.Hb=0;this.Qn=this.Gb=!1;this.Ca.getPlayerType();FFa(this.Ca,this);this.va=hD(this.Y);g.H(this,this.qb);g.H(this,this.events);g.H(this,this.ma);MP(this)||(this.events.T(this.api,g.Gw("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,
g.Hw("serverstitchedcuerange"),this.onCueRangeExit))};
IFa=function(a,b,c,d,e,f,k){var l=GFa(a,e,e+d);a.Z&&a.Ca.Aa("sdai",{adaftto:1});var m=a.Y.S("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Ca;f=void 0===f?e+d:f;e===f&&!d&&a.Y.S("html5_allow_zero_duration_ads_on_timeline")&&a.Ca.Aa("sdai",{attl0d:1});if(e>f&&(a.Sj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.Sj("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*
n.getDuration();if(f>n&&(a.Sj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.r(a.J),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Hc&&e<p.jd||f<=p.jd&&f>p.Hc)return a.Sj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+OP(p))),"";if(f===p.Hc)return a.Sj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+
(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+OP(p))),"";e===p.jd&&(n=p)}else m=g.pc(a.J,{jd:e},function(t,v){return t.jd-v.jd}),0<=m&&(n=a.J[m]);
if(l&&n)for(m=g.r(a.xa.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.xa.splice(p,1);break}}else if(l&&a.Y.S("web_player_ss_timeout_skip_ads"))return a.Ca.Aa("sdai",{rejectAttl:1}),k&&!Sm(a.Lb,function(t){return t===k})&&(a.Ca.Aa("sdai",{rejectAdBreakAttl:1}),a.Lb.push(k)),"";
l="ss_childplayback_"+HFa++;b.cpn||(b.cpn=g.pv(16));m=b.cpn;b=new g.UD(a.Y,b);b.Cc=l;c={Cc:l,playerType:c,durationMs:d,Hc:e,jd:f,cpn:m,videoData:b,errorCount:0};g.vc(a.J,c,function(t,v){return t.Hc-v.Hc});
a.u.set(m,c);a.vb.set(l,c);a.Ca.Aa("sdai",{attlDone:f-e});k?c.Ok=k:n?c.Ok=n.Ok:c.Ok=c.cpn;if(e=c.Ok)(d=a.K.get(e))?(d.push(c),g.tc(d,function(t,v){return t.Hc-v.Hc})):a.K.set(e,[c]);
a.ma.isActive()&&(a.Z=!1,a.ma.stop(),LP(a),a.Rw(!0));a.Ra();return l};
PP=function(a,b,c){return a.Y.experiments.ob("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
JFa=function(a,b,c){return new g.Ew(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
QP=function(a){return{cpn:a.Ca.getVideoData().clientPlaybackNonce,durationMs:0,Hc:0,playerType:1,jd:0,videoData:a.Ca.getVideoData(),errorCount:0}};
SP=function(a,b,c){var d=a.C,e=QP(a),f=b.wf-c.wf;.5<Math.abs(f)&&a.Ca.Aa("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 k=a.u.get(b.adCpn);var l=a.u.get(c.adCpn)}l&&k&&(a.api.ea("serverstitchedvideochange",k.Cc,k.En),e=PP(a,"a2a",k),a.Ca.Aa("sdai",e),a.Hi++,RP(a.Ca,l,k,c.wf,b.wf,d))}else if(!b.isAd&&c.isAd){a.api.ea("serverstitchedvideochange");k=PP(a,"a2c");a.Ca.Aa("sdai",k);a.Hi=0;if(k=c.Dd)a.Ea=k.end;var m;c.adCpn&&(m=a.u.get(c.adCpn));
m&&RP(a.Ca,m,e,c.wf,b.wf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.u.get(b.adCpn));n&&(a.Ea=0,a.api.ea("serverstitchedvideochange",n.Cc,n.En),m=PP(a,"c2a",n),a.Ca.Aa("sdai",m),a.Hi=1,RP(a.Ca,e,n,c.wf,b.wf,d))}};
TP=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.pc(a.J,{Hc:c},function(e,f){return e.Hc-f.Hc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.J[d],a.jd>=c)?{im:a,Oq:b}:{im:void 0,Oq:b}};
UP=function(a,b){var c="";MP(a)?(c=b/1E3-a.Bm(),c=a.Ca.ut(c)):(b=KFa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
KFa=function(a,b){a=g.r(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};
KP=function(a,b){var c=a.jb||a.api.Lc().getPlayerState();VP(a,!0);var d=b;a.Y.S("web_player_ssdai_seek_without_offset_killswitch")&&(d=TP(a,b).Oq);a.Ca.seekTo(d);a=a.api.Lc();b=a.getPlayerState();g.zH(c)&&!g.zH(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
VP=function(a,b){a.rb=NaN;a.qb.stop();a.Ia&&b&&WP(a.Ia);a.jb=null;a.Ia=null};
XP=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Ra();for(var d=b,e=c,f=[],k=g.r(a.J),l=k.next();!l.done;l=k.next())l=l.value,(l.Hc<d||l.jd>e)&&f.push(l);a.J=f;d=b;e=c;f=g.r(a.D.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.Ca.removeCueRange(k),a.D.delete(k.getId()),a.Ca.Aa("sdai",{rmAdCR:1}));d=TP(a,b/1E3);b=d.im;d=d.Oq;b&&(d=1E3*d-b.Hc,e=b.Hc+d,a.Ra(),b.durationMs=d,b.jd=e,LFa(a,b));(b=TP(a,c/1E3).im)&&a.Sj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+
OP(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
MFa=function(a){a.Y.S("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Ja.clear(),a.ib.clear(),a.Sa.clear(),a.D.clear(),a.B=[],a.J=[],a.u.clear(),a.vb.clear(),a.K.clear(),a.ya.clear(),a.Ya=[],a.X=null,a.lc.clear(),a.xa=[],a.Db=[],a.Tb=[],a.Lb=[],a.Qa=[],a.Rb.clear(),a.Xb.clear(),a.Ub.clear(),a.Wa.clear(),a.isLiveNow=!0,a.Z=!1,a.j=void 0,a.Ea=0,a.Xa=!0,a.C=!1,a.Hi=0,a.N=null,a.Hb=0,a.Gb=!1,a.Qn=!1)};
LFa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Hc+b.durationMs:d.end===c.start&&(d.end=b.Hc);c.start=b.Hc;c.end=b.Hc+b.durationMs}};
OP=function(a){var b;return"playback_timelinePlaybackId_"+a.Cc+"_video_id_"+(null==(b=a.videoData)?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Hc+"_parentReturnTimeMs_"+a.jd};
YP=function(a,b,c){c=a.ya.get(c);c||(b+=a.Bm(),c=TP(a,b,1).im);return c};
ZP=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;NFa(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.Ca.removeCueRange(e);if(a.Qa.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else NFa(a,b,c)};
NFa=function(a,b,c){b=JFa(b,c);c=!0;g.vc(a.B,b,function(k,l){return k.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.Ca.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.Ca.addCueRange(b),b=a.Ca.ww("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
$P=function(a,b,c){if(void 0===c||!c){c=g.r(a.Ya);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.Ya.push(new EFa(b))}};
g.OFa=function(a,b){a=g.r(a.Ya);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
PFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
QFa=function(a,b,c){var d=0;a=a.K.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
RFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
SFa=function(a,b){var c=0;a=a.K.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.jd!==b.Hc&&c++;return c};
TFa=function(a,b,c){var d=!1;if(c&&(c=a.K.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.jd!==e.Hc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Xb.has(e)&&(a.Ca.Aa("sdai",{decoratedAd:e}),a.Xb.add(e)))}};
LP=function(a){a.va&&a.Ca.Aa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Hb)+"_isTimeout_"+a.Z})};
GFa=function(a,b,c){if(a.xa.length)for(var d={},e=g.r(a.xa),f=e.next();!f.done;d={Ap:d.Ap},f=e.next()){d.Ap=f.value;f=1E3*d.Ap.startSecs;var k=1E3*d.Ap.durationSecs+f;if(b>f&&b<k||c>f&&c<k)return Sm(a.Tb,function(l){return function(m){return m.identifier===l.Ap.identifier}}(d))||(a.Ca.Aa("sdai",{adskip:b}),a.Tb.push(d.Ap)),d.Ap}};
aQ=function(a){a.Z=!1;a.ma.isActive()&&LP(a);a.ma.stop();a.Rw(!1)};
MP=function(a){return a.Y.experiments.ob("html5_ssdai_use_new_ad_report")};
bQ=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.J=new Map;this.u=[];this.B=this.K=null;this.X=NaN;this.D=this.C=null;this.N=new g.L(function(){UFa(d,d.X)});
this.Z=[];this.ma=new g.L(function(){var e=d.Z.pop();if(e){var f=e.Cc,k=e.playerVars;e=e.playerType;k&&(k.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(k,e,NaN,"",f),d.Z.length&&g.qp(d.ma,4500))}});
this.events=new g.dA(this);c.getPlayerType();g.H(this,this.N);g.H(this,this.ma);g.H(this,this.events);this.events.T(this.api,g.Gw("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.vg)};
YFa=function(a,b,c,d,e,f){var k=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return cQ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return cQ(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,k,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.qd(),cQ(a,m,k,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Hc&&e<q.jd)return cQ(a,"overlappingEnter",k,l),a.Ra(),"";if(f<=q.jd&&f>q.Hc)return cQ(a,"overlappingReturn",k,l),a.Ra(),"";if(f===q.Hc)return cQ(a,"outOfOrder",k,l),a.Ra(),"";e===q.jd&&(n=q)}k="cs_childplayback_"+VFa++;l={Dd:dQ(d,!0),lk:Infinity,target:null};var t={Cc:k,playerVars:b,playerType:c,durationMs:d,Hc:e,jd:f,Un:l};a.u=a.u.concat(t).sort(function(y,z){return y.Hc-z.Hc});
n?WFa(a,n,{Dd:dQ(n.durationMs,!0),lk:a.Y.S("timeline_manager_transition_killswitch")?Infinity:n.Un.lk,target:t}):(b={Dd:dQ(e,!1),lk:e,target:t},a.J.set(b.Dd,b),a.Ra(),m.addCueRange(b.Dd));b=a.Y.S("html5_gapless_preloading");if(a.j===a.api.Lc()&&(m=1E3*m.getCurrentTime(),m>=t.Hc&&m<t.jd)){var v=a.api.Lc().getPlayerState(),x=m-t.Hc;hi(function(){XFa(a,t,x/1E3,v)});
b=!1}b&&(a.Z.unshift(t),g.qp(a.ma,0));a.Ra();return k};
dQ=function(a,b){return new g.Ew(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
ZFa=function(a,b,c,d){a.Ra();a.B=d;a.api.Wz(a.j,c,b)};
$Fa=function(a,b,c,d){a.Ra();a.B=d;d=b.Cc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
WFa=function(a,b,c){var d=b.Un;b.Un=c;eQ(a,b)&&(c=a.api.Lc(),d.Dd===a.B&&fQ(a),a.Ra(),c.removeCueRange(d.Dd),b=b.Un,a.Ra(),c.addCueRange(b.Dd))};
fQ=function(a){a.K=null;a.B=null;a.api.Kt()||a.api.clearQueue()};
aGa=function(a,b){eQ(a,b)||cQ(a,"childPlaybackIsNotPresenting");return b.jd===b.Hc+b.durationMs?(a=a.api.Lc(),b.Hc+1E3*a.getCurrentTime()):b.jd};
gQ=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Hc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{im:d,Oq:b-e};c=f-d.jd/1E3}return{im:null,Oq:b-c}};
UFa=function(a,b){var c=a.D||a.api.Lc().getPlayerState();hQ(a,!0);b=a.Y.S("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Ij();var d=gQ(a,b);b=d.im;d=d.Oq;var e=b&&!eQ(a,b)||!b&&a.j!==a.api.Lc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||fQ(a);a.Ra();b?(a.Ra(),XFa(a,b,d,c)):(a.Ra(),iQ(a,d,c))};
iQ=function(a,b,c){var d=a.j,e=a.api.Lc();d!==e&&a.api.Vm();d.seekTo(b,{re:"application_timelinemanager"});bGa(a,c)};
XFa=function(a,b,c,d){var e=eQ(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.UD(a.Y,b.playerVars);f.Cc=b.Cc;a.api.Qo(f,b.playerType)}f=a.api.Lc();e||(b=b.Un,a.Ra(),f.addCueRange(b.Dd));f.seekTo(c,{re:"application_timelinemanager"});bGa(a,d)};
bGa=function(a,b){a=a.api.Lc();var c=a.getPlayerState();g.zH(b)&&!g.zH(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
hQ=function(a,b){a.X=NaN;a.N.stop();a.C&&b&&WP(a.C);a.D=null;a.C=null};
eQ=function(a,b){a=a.api.Lc();return!!a&&a.getVideoData().Cc===b.Cc};
cGa=function(a){var b=a.u.find(function(e){return eQ(a,e)});
if(b){var c=a.api.Lc();fQ(a);var d=new g.tH(8);b=aGa(a,b)/1E3;iQ(a,b,d);c.Aa("forceParentTransition",{childPlayback:1});a.j.Aa("forceParentTransition",{parentPlayback:1})}};
jQ=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Ra();for(var d=b,e=c,f=g.r(a.J),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;l.lk>=d&&l.target&&l.target.jd<=e&&(a.j.removeCueRange(k),a.J.delete(k))}d=b;e=c;f=[];k=g.r(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Hc>=d&&l.jd<=e){var m=a;m.K===l&&fQ(m);eQ(m,l)&&m.api.Vm()}else f.push(l);a.u=f;d=gQ(a,b/1E3);b=d.im;d=d.Oq;b&&(d*=1E3,dGa(a,b,d,b.jd===b.Hc+b.durationMs?b.Hc+d:b.jd));(b=gQ(a,
c/1E3).im)&&cQ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Hc+" parentReturnTimeMs="+b.jd+"}.Child playbacks can only have duration updated not their start."))};
dGa=function(a,b,c,d){a.Ra();b.durationMs=c;b.jd=d;d={Dd:dQ(c,!0),lk:c,target:null};WFa(a,b,d);eQ(a,b)&&1E3*a.api.Lc().getCurrentTime()>c&&(b=aGa(a,b)/1E3,c=a.api.Lc().getPlayerState(),iQ(a,b,c))};
cQ=function(a,b,c,d){a.j.Aa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
fGa=function(a){a&&"web"!==a&&eGa.includes(a)};
mQ=function(a,b){g.G.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.L(function(){kQ(c);lQ(c)});
g.H(this,this.j)};
gGa=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())nQ(a,d.value,b);a.data=[];lQ(a)};
kQ=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&nQ(a,c,!0)});
a.data=g.Dn(a.data,function(c){return!(c.expire<b)})};
nQ=function(a,b,c){c&&a.u&&a.u(b.value)};
lQ=function(a){a.j.stop();var b=Infinity;for(var c=g.r(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.j.start(b))};
g.oQ=function(a){this.tag=a};
pQ=function(){g.G.call(this);this.j=new mQ(5,null);g.H(this,this.j)};
hGa=function(a,b){return b?!!a.j.get(b):!1};
qQ=function(){g.Sp.call(this);this.D=new Map};
rQ=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
iGa=function(a){return a.data[a.j]||0};
sQ=function(a){g.G.call(this);this.B=a;this.j=new Map;this.u=new g.L(this.sample,250,this);g.H(this,this.u);this.start()};
tQ=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
uQ=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:iGa(c.buffer))||0};
vQ=function(a){this.u=a;this.j=NaN;this.buffer=new rQ(100)};
jGa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Zb()+")":a.Zb()};
wQ=function(a){g.G.call(this);var b=this;this.j=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.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
kGa=function(a,b){ppa(a,"version",b)};
yQ=function(a){g.W.call(this,{G:"div",Ga:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.xQ.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.cw=this.Da(g.xQ.VIDEO_CONTAINER);this.du=new g.Am(0,0,0,0);this.Fb=null;this.KB=new g.Am(0,0,0,0);this.vF=this.uG=this.tG=NaN;this.CA=this.HB=this.nH=this.tL=!1;this.xE=NaN;this.WF=!1;this.kx=null;this.MG=function(){b.element.focus()};
this.vB=function(){b.app.Ua.ea("playerUnderlayVisibilityChange","visible");b.Fb.classList.remove(g.xQ.VIDEO_CONTAINER_TRANSITIONING);b.Fb.removeEventListener(lGa,b.vB);b.Fb.removeEventListener("transitioncancel",b.vB)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])};
this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])};
var e=a.V();e.transparentBackground&&this.Fn("ytp-transparent");"0"===e.controlsType&&this.Fn("ytp-hide-controls");g.M(this.element,"ytp-exp-bottom-control-flexbox");e.S("html5_player_bottom_linear_gradient")&&g.M(this.element,"ytp-linear-gradient-bottom-experiment");mva(e)&&g.M(this.element,"ytp-larger-tap-buttons");e.S("enable_new_paid_product_placement")&&!g.ZC(e)&&g.M(this.element,"ytp-exp-ppp-update");aD(e)&&g.M(this.element,"ytp-exp-hybrid-controls");kGa(this.element,mGa(a));this.OP=!1;this.yw=
new g.Ch(NaN,NaN);nGa(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
nGa=function(a){function b(){a.Fb&&zQ(a);AQ(a)!==a.WF&&a.resize()}
function c(k,l){a.xt(k,l)}
function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())}
function e(){a.KB=new g.Am(0,0,0,0);a.du=new g.Am(0,0,0,0)}
var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Bf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
oGa=function(a){var b=g.gL(a.app);if(b=b?b.getVideoData():null){if(g.sE(b)||g.tE(b)||g.vE(b))return 16/9;if(cE(b)&&b.C.j)return a=b.C.videoInfos[0].video,BQ(a.width,a.height)}return(a=a.Fb)?BQ(a.videoWidth,a.videoHeight):16/9};
pGa=function(a,b,c,d){var e=c,f=BQ(b.width,b.height);a.tL?e=c<f?Infinity:0:isNaN(a.vF)?isNaN(a.uG)||(e=a.uG):e=a.vF;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};
BQ=function(a,b){return 1>Math.abs(CQ*b-a)||1>Math.abs(CQ/a-b)?CQ:a/b};
AQ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.gL(a.app);if(!b||b.ll())return!1;var c=a.app.Ua.zb();a=!g.V(c,2)||!a.app.V().S("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ea;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
zQ=function(a){var b="3"===a.app.V().controlsType&&!a.CA&&AQ(a)&&!a.app.qx||!1;a.Fb.controls=b;a.Fb.tabIndex=b?0:-1;b?a.Fb.removeEventListener("focus",a.MG):a.app.V().S("disable_focus_redirect")||a.Fb.addEventListener("focus",a.MG)};
qGa=function(a){var b=a.Gg(),c=1,d=!1,e=pGa(a,b,a.getVideoAspectRatio()),f=a.app.V().S("enable_desktop_player_underlay"),k=bs(),l=g.YA(a.app.V().experiments,"player_underlay_min_player_width");l=f&&a.nH&&a.getPlayerSize().width>l;if(AQ(a)){var m=oGa(a);var n=isNaN(m)||g.lt||DQ&&g.Ns||l;cs&&!g.Fc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().S("place_shrunken_video_on_left_of_player"),m=.02*a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Am(n,0,b.width,
b.height)):n=new g.Am(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.Am((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Ns&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(k||a.OP)a.Fb.style.display="";a.WF=!0}else{n=-b.height;cs?n*=window.devicePixelRatio:g.cD&&(n-=window.screen.height);n=new g.Am(0,n,b.width,b.height);if(k||a.OP)a.Fb.style.display="none";a.WF=!1}Bm(a.KB,n)||(a.KB=n,g.FC(a.app.V())?(a.Fb.style.setProperty("width",n.width+"px","important"),a.Fb.style.setProperty("height",
n.height+"px","important")):g.Nm(a.Fb,n.getSize()),d=new g.Ah(n.left,n.top),g.Jm(a.Fb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Am((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Bm(a.du,b)||(a.du=b,d=!0);g.Dm(a.Fb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.HB&&(l&&(a.Fb.addEventListener(lGa,a.vB),a.Fb.addEventListener("transitioncancel",a.vB),a.Fb.classList.add(g.xQ.VIDEO_CONTAINER_TRANSITIONING)),a.HB=l,a.app.Ua.ea("playerUnderlayVisibilityChange",a.HB?"transitioning":"hidden"));
return d};
rGa=function(){this.csn=g.Hv();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
sGa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
tGa=function(a){if(a.csn!==g.Hv())if("UNDEFINED_CSN"===a.csn)a.csn=g.Hv();else{var b=g.Hv(),c=g.Gv();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Sv(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Tv(b,c,void 0)}};
EQ=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.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
FQ=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Wh("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*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.j*=4,c=0;c<a.sampleCount;c++)d=g.Wh("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*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.r(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.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
GQ=function(a){var b=null;b={G:"button",Ga:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},oa:"[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",oa:"Video ID / sCPN"},{G:"span",oa:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{G:"div",U:[{G:"div",oa:"Viewport / Frames"},{G:"span",oa:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",oa:"Current / Optimal Res"},{G:"span",oa:"{{resolution}}"}]},{G:"div",U:[{G:"div",
oa:"Volume / Normalized"},{G:"span",oa:"{{volume}}"}]},{G:"div",U:[{G:"div",oa:"Codecs"},{G:"span",oa:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",oa:"Shader Info"},{G:"span",oa:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",oa:"Color"},{G:"span",oa:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",oa:"Protected"},{G:"span",oa:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",oa:"Connection Speed"},{G:"span",U:[{G:"span",
oa:"{{bandwidth_chart}}"},{G:"span",oa:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",oa:"Network Activity"},{G:"span",U:[{G:"span",oa:"{{network_activity_chart}}"},{G:"span",oa:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",oa:"Buffer Health"},{G:"span",U:[{G:"span",oa:"{{buffer_health_chart}}"},{G:"span",oa:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",oa:"Live Latency"},{G:"span",U:[{G:"span",oa:"{{live_latency_chart}}"},
{G:"span",oa:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",oa:"Live Mode"},{G:"span",oa:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",oa:"Playback Categories"},{G:"span",oa:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",oa:"Mystery Text"},{G:"span",oa:"{{debug_info}}"}]},{G:"div",U:[{G:"div",oa:"Date"},{G:"span",oa:"{{date}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",oa:"COTN / Local Media"},{G:"span",
oa:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},U:[{G:"div",oa:"Player Release"},{G:"span",oa:"{{release_name}}"}]}]}]});b?(b=this.Da("html5-video-info-panel-close"),this.T(b,"click",this.hide)):this.T(this.element,"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.D={};this.j=new EQ(300,1,150,b,c);g.H(this,this.j);this.Na("bandwidth_chart",this.j);this.B=new EQ(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.Na("live_latency_chart",this.B);this.u=new EQ(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.Na("buffer_health_chart",this.u);this.C=new EQ(300,1,150,d,c);g.H(this,this.C);this.Na("network_activity_chart",this.C);this.delay=
new g.L(this.Ka,500,this);g.H(this,this.delay);this.Ua=a};
uGa=function(a){a=void 0===a?{}:a;var b=a.Fh,c=a.Sg,d=a.getLastSegmentNumber,e=a.jt;this.nm=a.nm;this.Fh=b;this.Sg=c;this.getLastSegmentNumber=d;this.jt=e};
vGa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.nm||b===c&&(a=a.jt())&&b===a.Ma?!0:!1};
wGa=function(a,b,c){if(!vGa(a,b))return 0;if(!a.Fh||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.jt())&&b===a.Ma&&!a.pending?2:1};
HQ=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
xGa=function(a,b){var c=Math.min(2.5,gC(a.schedule));a=IQ(a);return b-c*a};
JQ=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.md&&(d=Math.abs(d));d/=a.playbackRate;var f=1/iC(a.schedule);var k=Math.max(.9*(d-3),gC(a.schedule)+2048*f);c=k/f*a.policy.iq/(b+c);c=Math.min(c,d);a.policy.Ud&&e&&(c=Math.max(c,a.policy.Ud));return yGa(a,c,b)};
yGa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Qp*c),Math.min(Math.min(a.policy.Ia,31*c),Math.ceil(b*c))))||65536};
IQ=function(a){return iC(a.schedule,!a.policy.Aj,a.policy.Pp)};
KQ=function(a){return IQ(a)/a.playbackRate};
LQ=function(a,b,c,d,e){this.Va=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.u=!1;this.C=this.j.isManifestless&&!this.j.hf;this.D=null};
zGa=function(a,b,c){var d=b.j.index,e=b.u.Ma;Gz(d,e)||c&&c.Ma===e?(a.Ra(),b.D=!Gz(d,e),b.N=!Gz(d,e)):(a.Ra(),b.D=!0,b.N=!0)};
BGa=function(a,b,c,d){a.Ra();if(!b.j.gf())return 0!==c&&MQ(b),c;var e=NQ(b,c);if(!isNaN(e))return a.Ra(),e;MQ(b);OQ(b.C);return d&&(a=pA(d.zf(),c),!isNaN(a))?(PQ(b,a+AGa),c):PQ(b,c)};
FGa=function(a,b,c,d){if(a.u&&a.B){var e=CGa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;g.mi(function(){a.Va.Aa("seekreason",{reason:"behindMinSq",tgt:e});DGa(a,e)});
return}}c?a.videoTrack.N=!1:a.audioTrack.N=!1;var f=a.policy.Sr||!a.C;if(0<=NQ(a.videoTrack,a.B)&&0<=NQ(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.Ra(),a.Va.Aa("iterativeSeeking",{status:"done",count:a.seekCount});a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&g.mi(function(){if(a.C||!a.policy.Qa)EGa(a);else{var k=b.startTime,l=b.duration,m=-1!==a.videoTrack.J&&-1!==a.audioTrack.J,n=!a.videoTrack.N&&!a.audioTrack.N;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.B>=k&&a.B<k+l+.1?((c?a.videoTrack:
a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.Ra(),a.Va.Aa("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ra(),a.Va.Aa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.B,actual:k,duration:l,isVideo:c}),a.seek(a.B)):(a.Ra(),a.Va.Aa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.B,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Va.Ca.seekTo(k+.1,{xq:!0,re:"chunkSelectorSynchronizeMedia",
Xp:!0})))}})};
CGa=function(a,b,c){if(!a.u)return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.B);return(Gz(c,a.j.Ie)||b.Ma===a.j.Ie)&&d<a.j.Ie?(a.Ra(),a.j.getMinSeekableTime()):-1};
DGa=function(a,b){a.C&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.C=!1,a.Ra(),a.Va.Ca.seekTo(b+.1,{xq:!0,re:"chunkSelectorSynchronize",Xp:!0}))};
EGa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&a.videoTrack.If(),c=!c&&a.audioTrack.If(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=c.If().info.Ma,-1!==b.J){var d=Math.max(b.j.index.getStartTime(b.J),c.j.index.getStartTime(c.J));IA(a.j)&&432E3<Math.abs(d-IA(a.j))&&Pta(a.j);g.mi(function(){return DGa(a,d)});
a.Va.Aa("initManifestlessSync",{st:d,a:a.audioTrack.J,v:a.videoTrack.J});a.D&&(a.D.resolve(d+.1),a.D=null)}};
GGa=function(a){this.j=a;this.J=this.K=this.B=this.C=0;this.ticks={}};
QQ=function(a,b,c,d,e,f){g.ev.call(this);this.Va=a;this.N=b;this.policy=c;this.J=d;this.xa=e;this.Z=this.j=null;this.B=this.C=NaN;this.K=0;this.D=null;this.ma=new Map;this.X="";this.va=0;this.u=f?1:0};
RQ=function(a,b,c){b.startSecs+=isNaN(a.K)?0:a.K;a=a.N;a.Z.push(b);a.ea("cuepointsadded",c)};
HGa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.C)?a.C:b};
JGa=function(a,b,c,d){IGa(a.J,d,c,b);IGa(a.xa,d,c,b);KA(a.N,d,!0);KA(a.N,d,!1);a.Aa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
KGa=function(a,b){if(a.j){var c=a.j.Kd.durationSecs-(b.startTime+a.K-a.j.Kd.startSecs);0>=c||(c=new ww(a.j.Kd.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Kd.context,a.j.Kd.identifier,"stop",a.j.Kd.Gu+1E3*b.duration),a.Aa("cuepointdiscontinuity",{segNum:b.Ma}),RQ(a,c,b.Ma))}};
SQ=function(a,b,c){a.u!==b&&(a.Aa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
LGa=function(a,b,c,d){(void 0===d?0:d)?SQ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&SQ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
TQ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
MGa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Va=a;this.va=b;this.policy=c;this.C=d;this.J=e;this.Xa=f;this.logger=new g.oQ("dash/abr");this.j=TD;this.u=this.K=null;this.X=-1;this.Ia=!1;this.nextVideo=this.B=null;this.D=[];this.ya={};this.videoIndex=0;this.Qa=this.Z=this.N=!1;this.xa=0;this.Sa=new Set;this.Wa=!1;this.ma=new Map;this.Ja=0;this.Ya=!1;this.Ea=null};
RGa=function(a,b,c){UQ(a,b);NGa(a,c);a.K=a.B;OGa(a);PGa(a);a.u=a.nextVideo;a.K=a.B;return QGa(a)};
SGa=function(a,b){if(a.j.equals(b))return null;if("m"===b.reason&&b.isLocked())return UQ(a,b),a.videoIndex=a.D.length-1,VQ(a),WQ(a),a.Z=a.Z||a.u!==a.nextVideo,a.u=a.nextVideo,new TQ(a.B,a.u,b.reason);"r"===b.reason&&(a.X=-1);UQ(a,b);WQ(a);if("r"===b.reason&&a.nextVideo===a.u)return new TQ(a.B,a.nextVideo,b.reason);a.u&&a.nextVideo&&XQ(a,a.u.info)<XQ(a,a.nextVideo.info)&&(b=a.j.reason,a.N=a.N||"r"===b||"u"===b||"v"===b);return null};
TGa=function(a,b){if(b.info.video){if(a.u!==b)return a.u=b,QGa(a)}else a.Qa=a.K!==b,a.K=b;return null};
YQ=function(a,b,c){a.Ja+=1;if(void 0===c?0:c)a.Ya=!0;c=6E4*Math.pow(2,a.Ja);a.ma.set(b.info.id,(0,g.R)()+c);a.X=-1;UQ(a,a.j)};
ZQ=function(a){if(a.ma.size){for(var b=(0,g.R)(),c=g.r(a.ma.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ma.clear()}return!1};
UGa=function(a,b){return new TQ(a.K,a.u,b||a.j.reason)};
QGa=function(a){a.Ia?a.Ia=!1:a.X=(0,g.R)();a.N=!1;return new TQ(a.K,a.u,a.j.reason)};
VGa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],k=f&&$z(f)&&f.video.j>a.policy.N,l=e<=a.policy.N?$z(d):Yz(d);if(!f||k||l)c[e]=d}return c};
UQ=function(a,b){a.j=b;var c=a.J.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.Dn(c,function(q){if(q.Ob>this.policy.Ob)return!1;var t=this.C.j[q.id],v=t.info.j;return this.policy.Ur&&this.Sa.has(v)||this.ma.get(q.id)>d||4<t.u.u||4<t.N?!1:t.C?!1:!0},a);
a.Ya&&ZQ(a)&&(c=g.Dn(c,function(q){return 480>=q.video.j}))}c.length||(c=a.J.videoInfos);
var e=g.Dn(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.zj&&DQ&&g.Ns&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(uA()){var k=VGa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.j===k[q.video.j].j})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=VGa(a,b)[n].j;e=e.filter(function(q){return!!q&&!!q.video&&q.j===p})}}e.length||(e=[c[0]]);
e.sort(function(q,t){return XQ(a,q)-XQ(a,t)});
c={};for(b=1;b<e.length;c={Py:c.Py,Oy:c.Oy},b++)c.Oy=e[b-1],c.Py=e[b],c.Oy.video.width>c.Py.video.width?(g.fc(e,b),b--):XQ(a,c.Oy)*a.policy.B>XQ(a,c.Py)&&(g.fc(e,b-1),b--);c=e[e.length-1];a.Wa=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;ICa(a.policy,c)};
NGa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.$b(a.J.j,function(c){return!!c.Fc&&c.Fc.isDefault}))||a.J.j[0],a.B=a.C.j[b.id]);
VQ(a)};
WGa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=KQ(a.va)/a.policy.B;return XQ(a,b.info)+XQ(a,a.D[c])>d};
VQ=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Fc)if(a.B=a.C.j[a.J.j[0].id],1<a.J.j.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.Xl){var c=Zb(a.J.j,function(d){return"250"===d.Zb()});
0<=c&&(a.B=a.C.j[a.J.j[c].id],b=WGa(a,a.B))}}else b=a.j.isLocked()?240>a.j.j:WGa(a,a.B);b&&(a.B=a.C.j[g.Yb(a.J.j).id])}};
WQ=function(a){a.policy.eh&&(a.Ea=a.Ea||new g.L(function(){a.policy.eh&&a.u&&!ZQ(a)&&1===Math.floor(10*Math.random())?(YQ(a,a.u),a.N=!0):a.Ea.start()},6E4),g.qp(a.Ea));
if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Yb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=KQ(a.va),d=XQ(a,a.B.info),e=c/a.policy.C-d;0<b&&!(XQ(a,a.D[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.D.length-1&&!(XQ(a,a.D[b+1])>=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var k=a.j;return"Adapt to: "+gta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(k.u+"-"+k.j+", override: "+(k.B+", reason: "+k.reason+"]"))});
a.videoIndex=b}};
OGa=function(a){var b=a.policy.C,c=KQ(a.va),d=c/b-XQ(a,a.B.info);b=g.ac(a.D,function(e){return XQ(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+gta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
PGa=function(a){if(a.Xa.length){var b=a.Xa,c=function(d,e){if("f"===d.info.j||b.includes(iz(d,a.C.isLive,a.Va.Hg(),a.policy.Ya)))return d;for(var f={},k=0;k<e.length;f={Sy:f.Sy,Uy:f.Uy},k++){var l=a.C.j[e[k].id],m=iz(l,a.C.isLive,a.Va.Hg(),a.policy.Ya);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||uA())return f.Sy=d.info.Zb(),f.Uy=l.info.Zb(),a.Va.Aa("ombifa",{f:f.Sy,t:f.Uy}),a.logger.info(function(p){return function(){return"Initial format selection changed from "+p.Sy+" to "+p.Uy+" based on prefetched media."}}(f)),
a.Ia=!0,l;
a.Va.Aa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Va.Aa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.J.videoInfos);a.B=c(a.B,a.J.j)}};
XQ=function(a,b){if(!a.ya[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.xa,15);c=b.Gs&&a.u&&a.u.index.isLoaded()?c||b.Gs:c||b.Ob;a.ya[b.id]=c}c=a.ya[b.id];a.policy.Xb&&b.video&&b.video.j>a.policy.Xb&&(c*=1.5);return c};
XGa=function(a,b){a=ag(a.C.j,function(c){return c.info.Zb()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
YGa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(xta(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.D.length;c++){var d=a.D[c].Zb();b.push(d)}b.reverse()}return b};
ZGa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
Ova=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=$Q.tp("woe");d=new g.SB(a.u);return g.A(f,d.encrypt(b,a.j),2)}e=f.u;$Q.Xn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Uva=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=$Q.tp("wod");d=new g.SB(a.u);return g.A(f,d.decrypt(b,a.j),2)}e=f.u;$Q.Xn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
aR=function(a,b,c){this.policy=a;this.j=b;this.xa=c;this.B=this.u=0;this.Ue=null;this.Z=new Set;this.N=[];this.indexRange=this.initRange=null;this.X=new xP;this.ma=this.va=!1;a:{if(this.policy.Wc&&this.policy.zs){b={};c=g.r(this.policy.Wc);for(var d=c.next();!d.done;b={Qy:b.Qy,Ry:b.Ry},d=c.next())if(d=g.kr(d.value),b.Qy=+d.clen,b.Ry=+d.csz,0<b.Qy&&0<b.Ry&&this.policy.u===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.Qy,c.csz=b.Ry,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.J=b.civ):(this.chunkSize=a.ys,this.C=0,this.policy.Pd&&(this.K=g.pv(16),this.J=g.pv(16)));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new ZGa(this.K,this.J))};
bR=function(a){return!!a.Ue&&pz(a.Ue)};
bHa=function(a,b){if(!bR(a)&&!a.isDisposed()){if(!(a.va||(a.va=!0,0<a.C))){var c=cR(a);c=CD(a.policy.u,a.j.info,dR(a),c);eR(a,c)}if(1===b.info.type)a.initRange=lz(0,b.j.totalLength);else if(2===b.info.type){if(!a.Ue||1!==a.Ue.type)throw Error("deprecated use case");a.indexRange=lz(a.initRange.end+1,b.j.totalLength)}else if(3===b.info.type){if(3===a.Ue.type&&!sz(a.Ue,b.info)&&(a.N=[],b.info.Ma!==tz(a.Ue)||0!==b.info.Ab))return;if(b.info.ge){c=g.r(a.N);for(var d=c.next();!d.done;d=c.next())$Ga(a,d.value);
a.N=[]}else{a.N.push(b);a.Ue=b.info;return}}a.Ue=b.info;$Ga(a,b);aHa(a)}};
$Ga=function(a,b){var c=0,d=iy(b.j);if(a.B<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Ab;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c<d.length;){e.Wu=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.Wu);a.D.set(f,a.u);a.u+=e.Wu;c+=e.Wu;if(a.u===a.D.length){if(b.info===a.Ue&&bR(a)&&c===d.length)break;f=cR(a);f=CD(a.policy.u,a.j.info,dR(a),f,a.B,a.D,a.crypto);a.policy.Xa&&a.Z.add(f);eR(a,
f);a.isDisposed()||(f=cR(a),a.xa(dR(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}e={Wu:e.Wu}}};
aHa=function(a){if(bR(a)){var b=new Uint8Array(a.D.buffer,0,a.u),c=cHa(a);if(a.policy.Xa)Promise.all(a.Z).then(function(){var e=CD(a.policy.u,a.Ue.j.info,dR(a),c,a.B,b,a.crypto);eR(a,e,!0)});
else{var d=CD(a.policy.u,a.Ue.j.info,dR(a),c,a.B,b,a.crypto);eR(a,d,!0)}}};
cR=function(a){return{downloadedEndTime:Math.round(a.Ue?a.Ue.C:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Gs)}};
cHa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Gs)}};
dR=function(a){var b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(b.ck=a.K,b.civ=a.J);var c="local://localhost/videoplayback?"+hr(b),d,e;b={itag:+a.j.info.Zb(),mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Ob,lastModified:String(a.j.info.lastModified),initRange:null==(d=a.initRange)?void 0:xsa(d),indexRange:null==(e=a.indexRange)?void 0:xsa(e),url:c};d=a.j.info;if(d=0<d.id.indexOf(";")?d.id.split(";")[1]:
null)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
eR=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.Xa&&a.Z.delete(b);(c||4===d)&&a.X.resolve(d)},function(d){a.X.reject(d)})};
dHa=function(a){a=g.Ny(a,1886614376);g.wc(a,function(b){return!b.u});
return g.Kl(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
eHa=function(a){var b=Ml(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.wc(a,function(e){c.set(e,d);d+=e.length});
return c};
fHa=function(a,b,c,d,e){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e};
fR=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.De=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.De=!0};
gHa=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 k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=lq;var p=ija;if(gR.length){var q=gR.pop();rd(q);q.j.init(n,void 0,void 0,void 0);m=q}else m=new sd(n);try{var t=Se(new f,m,Re(p));break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>gR.length&&gR.push(m)}t=
void 0}m=t;if(null!==m){var v=m;break a}}catch(x){}}c+=e}v=null}catch(x){v=null}}if(null!=v){b=g.ge(v,7);null==b||a.De||(a.cryptoPeriodIndex=b);b=g.ge(v,10);null!=b&&0<b&&!a.De&&(a.j=b);b=g.ie(v,2,!1,void 0);if(b.length&&!(Qd(b)&4)){Sd(b)&&(b=b.slice());for(c=0;c<b.length;c++)b[c]=Yd(b[c]);Pd(b,5)}Sd(v.pe)&&(Td(b),Object.freeze(b));v=g.r(b);for(d=v.next();!d.done;d=v.next())b=a.u,c=b.push,d=(d=bd(d.value))?new Uint8Array(d):Vc(),c.call(b,g.Jc(d,4))}};
hHa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Jc(a.initData):""+a.cryptoPeriodIndex};
hR=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Px?void 0:d.Px;d=void 0===d.EA?!1:d.EA;this.videoId=a;this.status=b;this.videoDuration=c;this.Px=e;this.EA=d};
iHa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
iR=function(a){this.j=a;this.offset=0};
jR=function(a){if(a.offset>=a.j.totalLength)throw Error();return jy(a.j,a.offset++)};
jHa=function(a,b){b=void 0===b?!1:b;var c=jR(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=jR(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+jR(a),d*=128;return b?c:c-d};
lR=function(a,b,c){var d=this;this.Va=a;this.policy=b;this.J=c;this.logger=new g.oQ("dash");this.u=[];this.j=null;this.ma=-1;this.N=0;this.xa=NaN;this.X=0;this.B=NaN;this.Ea=this.Ia=0;this.Qa=-1;this.ya=this.C=this.K=this.va=null;this.Wa=this.Sa=NaN;this.D=this.Z=this.Ja=this.Xa=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.u){var e=this.J,f=this.policy.u;this.D=new aR(this.policy,e,function(k,l,m){kR(a,new hR(d.policy.u,2,{Px:new iHa(f,k,e.info,l,m)}))});
this.D.X.promise.then(function(k){d.D=null;1===k&&kR(a,new hR(d.policy.u,k))},function(k){var l=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.logger.info(function(){return"Failed to write to disk: "+l});
d.Va.Aa("dldbwerr",{em:l});kHa(d);kR(a,new hR(d.policy.u,4,{EA:!0}))})}};
lHa=function(a){return a.u.length?a.u[0]:null};
mR=function(a){return a.u.length?a.u[a.u.length-1]:null};
pHa=function(a,b,c){if(a.C){var d=a.C.Ab+a.C.u;if(0<c.info.Ab)if(c.info.Ma===a.C.Ma&&c.info.Ab<d){if(c.info.Ab+c.info.u<=d)return;c=Vsa(c,d-c.info.Ab)[1]}else if(0<=c.info.Ma&&0<=a.C.Ma&&!sz(a.C,c.info))throw new g.Fs("improper_continuation",mz(a.C),mz(c.info));d=a.C;var e=c.info;(d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type?0:sz(d,e)||(zh(d.B,e.B)&&d.Ma===e.Ma?0:Asa(d,e)))||nR(a,"d")}else if(0<c.info.Ab)throw new g.Fs("continuation_of_null",mz(c.info));a.C=c.info;a.J=c.info.j;d=b.qF();if(0===c.info.Ab){if(a.j)throw new g.Fs("slice_not_fully_processed",
mz(a.j.info),mz(c.info));oR(a);a.Ia=d}else{if(a.policy.Tr&&a.Ia&&d&&a.Ia!==d)throw a=new g.Fs("lmt_mismatch",c.info.Ma,a.Ia,d),a.level="WARNING",a;!c.info.j.Oj()&&a.K&&Esa(c.info,a.K)}if(a.j){d=Wsa(a.j,c);if(!d)throw new g.Fs("failed_to_merge",mz(a.j.info),mz(c.info));a.j=d}else a.j=c;a:{c=g.Nz(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.ge)break a;6===a.j.info.type?mHa(a,b,a.j):pR(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ma&&0===a.N){var f=a.j.j,k=-1;e=-1;if(c){for(var l=0;l+
8<f.totalLength;){var m=Vra(f,l),n=Vra(f,l+4);l+=m||1;if(1836019558===n)k=l;else if(1835295092===n){e=l;break}}0>e&&(k=-1)}else{f=new iR(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=jHa(p,!0),t=jHa(p,!1);var v=q;var x=t}catch(z){x=v=-1}p=v;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+y);break}f.skip(y)}}0>k&&(e=
-1)}if(0>k)break;a.ma=k;a.N=e-k}if(a.ma>d)break;a.ma?(d=nHa(a,a.ma),d.D&&oHa(a,d),mHa(a,b,d),qR(a,d),a.ma=0):a.N&&(d=nHa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,qR(a,d))}}a.j&&a.j.info.ge&&(qR(a,a.j),a.j=null)};
pR=function(a,b){!b.info.j.Oj()&&0===b.info.Ab&&(g.Nz(b.info.j.info)||b.info.j.info.De())&&bta(b);if(1===b.info.type)try{oHa(a,b),qHa(a,b)}catch(d){g.S(d);var c=uz(b.info);c.hms="1";a.Va.handleError("fmt.unparseable",c||{},1)}b.info.j.AF(b);a.D&&bHa(a.D,b)};
OQ=function(a){a.u=[];oR(a);kHa(a)};
kHa=function(a){var b;null==(b=a.D)||b.dispose();a.D=null};
rHa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
rR=function(a){return g.Kl(a.u,function(b){return b.info})};
nHa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=Vsa(c,b);a.j=c[1];return c[0]};
oHa=function(a,b){var c=Mz(b);if(Zz(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Oy(c);Qy(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;Yz(d)&&!Zz(d)&&(d=Mz(b),(new Oy(d)).Yw(),Uy([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Nz(d.info)?d.B=dsa(c):d.info.De()&&(d.B=ksa(c))));b.info.j.info.De()&&
b.info.isVideo()&&(c=Mz(b),(new Oy(c)).Yw(),Uy([408125543,374648427,174,224],30320,c)&&Uy([408125543,374648427,174,224],21432,c));if(a.policy.Iv&&b.info.j.info.De()){c=Mz(b);var e=new Oy(c);if(Qy(e,[408125543,374648427,174,29637])){d=Ty(e,!0);e=e.start+e.j;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Mo()&&g.Nz(b.info.j.info)){d=Mz(b);c=g.Ey(d,0,1701606260);f=g.Ey(d,0,1836476516);if(c&&f){c.skip(2);var k=uy(c),l=wy(c);d=[];e=[];var m=[],n=[];if(k)for(k=0;k<l;++k)d.push(yy(c)),
e.push(yy(c)),m.push(uy(c)),n.push(uy(c));else for(k=0;k<l;++k)d.push(vy(c)),e.push(vy(c)),m.push(uy(c)),n.push(uy(c));c=g.Fy(f);c=new asa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.Nz(b.info.j.info))for(d=Mz(b),e=g.Ey(d,0,1701082227);e;)e.markAsSkip(),e=g.Ey(d,e.offset+e.size,1701082227);a.Ya=!0;b.info.j.D=c}}b.info.j.Oj()||b.info.j.j||b.info.j.indexRange||cta(b)};
mHa=function(a,b,c){if(c.info.j.Oj()){if(a.Ya&&sHa(c)&&(b=Mz(c),b=g.Ey(b,0,1953658222))){b.skip(1);var d=ty(b)<<16|uy(b),e=d&1,f=d&4;if(d&256){var k=d&512,l=d&1024;d&=2048;var m=wy(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=wy(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.va&&!!a.va.J.D)if(b=c.info.isVideo())b=ata(c),k=a.va,sR?(l=1/b,b=tR(a,b)>=tR(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&sHa(c)&&(b=a.va,sR?(l=ata(c),k=1/l,l=tR(a,l),b=tR(b)+k-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,csa(Mz(c),b))}else{k=!1;a.K||(bta(c),c.u&&(a.K=c.u,k=!0,Esa(c.info,c.u),l=c.info.j.info,f=Mz(c),g.Nz(l)?My(f,1701671783):l.De()&&Uy([408125543],307544935,f)));a:{if(f=l=Oz(c,a.policy.Ea))f=c.info.j.info.De()&&160===jy(c.j,0);if(f)a.X+=l,a.B=a.policy.Tb?a.B+l:NaN;else{if(a.policy.er){var n=a.Va.Xp(Xsa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Tb&&isNaN(a.Sa)){g.Ov(new g.Fs("Missing duration while processing previous chunk",mz(c.info)));nR(a,"m");break a}f=
n-a.B;var p=f-a.Ea;d=c.info.Ma;var q=a.ya?a.ya.Ma:-1,t=a.Wa,v=a.Sa;m=a.policy.Bi&&f>a.policy.Bi;var x=a.policy.oe&&p>a.policy.oe;1E-4<Math.abs(p)&&(n={audio:""+ +a.Mo(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Va.handleError("qoe.avsync",n),a.Qa=d);n=0;m||x||(e=a.B);a.va&&!a.Mo()&&g.Nz(c.info.j.info)&&(x=a.va,m=x.Qa,x=x.Ea,p=.02<Math.abs(x-f),(d===m||d>m&&d>a.Qa)&&p&&(d=Math.max(.95,
Math.min(1.05,(l-(x-f))/l)),csa(Mz(c),d),d=Oz(c,a.policy.Ea),n=l-d,l=d));a.Ea=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Ysa(c,e)?(isNaN(a.xa)&&(a.xa=e),a.X+=l,a.B=e+l):(l=uz(c.info),l.smst="1",a.Va.handleError("fmt.unparseable",l||{},1))}}a.ya=c.info;a.Sa=$sa(c);0<=c.C&&(a.Wa=c.C);if(k&&a.K){k=tHa(a,!0);vz(c.info,k);a.j&&vz(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())vz(l.value,k);(c.info.ge||a.j&&a.j.info.ge)&&6!==c.info.type||(a.Z=k,b=a.Va,b.j.isManifestless&&uHa(b,k,null,
!!a.J.info.video,b.pk),a.policy.Pc||vHa(a))}}qHa(a,c);a.timestampOffset&&Zsa(c,a.timestampOffset)};
qR=function(a,b){if(b.info.ge){a.Xa=b.info;if(a.K){var c=a.K,d=tHa(a,!1),e=null;if(a.K.Uw()){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):[],k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=
g.r(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.r(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 fHa(e,f,k,l,g.$ra(c))}a.Va.UG(a.J,d,e);a.Z||a.policy.Pc||vHa(a);a.Z=null}oR(a)}a.D&&bHa(a.D,b);if(c=mR(a))if(c=Wsa(c,b,a.policy.ej)){a.u.pop();a.u.push(c);return}a.u.push(b)};
oR=function(a){a.j=null;a.ma=-1;a.N=0;a.K=null;a.xa=NaN;a.X=0;a.Z=null};
nR=function(a,b){b={rst4disc:b,cd:a.Ea.toFixed(3),sq:a.ya?a.ya.Ma:-1};a.B=NaN;a.Ea=0;a.Qa=-1;a.ya=null;a.Wa=NaN;a.Sa=NaN;a.Ja=null;a.Va.Aa("mdstm",b)};
qHa=function(a,b){if(a.J.info.Sd){if(b.info.j.info.De()){var c=new Oy(Mz(b));if(Qy(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Ty(c,!0);c=16!==d?null:Yy(c,d)}else c=null;d="webm"}else b.info.K=dHa(Mz(b)),c=eHa(b.info.K),d="cenc";c&&c.length&&(c=new fR(c,d),c.De=b.info.j.info.De(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.yk&&b.u&&b.u.C&&(c.j=b.u.C),a.Va.Tt(c))}};
vHa=function(a){var b=a.K,c=Yra(b);c&&(c.startSecs+=a.xa,a.Va.TG(a.J,c,b.j,b.Uw()))};
tHa=function(a,b){var c,d=a.K;if(c=Yra(d))c.startSecs+=a.xa;return new by(d.j,a.xa,b?d.mj:a.X,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
sHa=function(a){return a.info.j.Oj()&&a.info.Ma===a.info.j.index.getLastSegmentNumber()};
tR=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.J.D&&b&&(b+=a.J.D.j);return b+a.getDuration()};
wHa=function(a,b){0>b||(a.u.forEach(function(c){Zsa(c,b)}),a.timestampOffset=b)};
uR=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.C=0;this.D=!1;this.j=this.lastError=null};
xHa=function(a){return g.Ll(a.info.j,function(b){return 3===b.type})};
vR=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
wR=function(a,b){b&&a.state<b?vR(a,b):a.callback&&a.callback(a,a.state)};
yHa=function(a){a.j&&a.j.C?(a=a.j.C,a=new nz(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ma,a.startTime+a.duration,0,a.Ab+a.u,0,!1)):(a=a.info.j[0],a=new nz(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ma,a.startTime,0,a.Ab,0,!1));return a};
zHa=function(a,b){this.j=a;this.u=0;this.B=null;this.ue=[];this.C=null;(this.length=b?b:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.Ll(this.j,function(c){return!!c.range})};
AHa=function(a,b,c){a.B&&(ey(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,k=0,l=g.r(a.j),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(qz(m)&&!c&&a.u+b.totalLength-k<f+m.u){a.B=b.split(k).Br;break}var n=3===m.type||4===m.type,p=a,q=a.u-f,t=k,v=b,x=n&&d&&!e&&1===b.j.length,y=!!c,z=v.totalLength-t;m.range&&(z=Math.min(m.u-q,z));y=m.range?m.Ab+q+z===m.range.length:y;q=new nz(m.type,m.j,m.range,"reslice"+m.D,m.Ma,m.startTime,m.duration,m.Ab+q,z,y&&pz(m),y);t=fy(v,t,z);
p.ue.push(new Lz(q,t,x));p=z;a.u+=p;k+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(k===b.totalLength)break}};
BHa=function(a){if(!a.ue.length)return[];var b=a.ue;a.ue=[];a.C=g.Yb(b).info;return b};
CHa=function(a){return a.length-a.u+a.ue.reduce(function(b,c){return b+c.j.totalLength},0)};
yR=function(a,b,c,d){uR.call(this,b,d);var e=this;this.u=a;this.Td=c;this.B=new g.L(function(){e.isComplete()||(e.lastError="net.timeout",vR(e,5))},3E3);
this.Gd=function(){e.isDisposed()||(xR(e.Td,e.u)?(e.isComplete()||e.B.start(),e.Td.qg(e.u)&&wR(e,2),e.Td.df(e.u)&&(DHa(e.Td,e.u)?vR(e,4):(e.lastError="net.closed",vR(e,5)))):(e.lastError="player.exception",vR(e,5)))};
this.B.start();var f;this.j=new zHa(this.info.j,null==(f=this.info.range)?void 0:f.length);EHa(this.Td,this.u,this.Gd);g.mi(this.Gd)};
zR=function(a,b,c){this.Va=a;this.policy=b;this.j=c;this.B=[];this.u=this.jc=null;this.Z=this.ma=0;this.J=-1;this.N=!1;this.X=-1;this.C=new lR(a,b,c);this.Ob=c.info.Ob;this.K=c.ax();this.isManifestless=c.ax();this.D=this.K};
AR=function(a,b){b&&sR&&wHa(a.C,b.rF());a.jc=b};
BR=function(a){return a.jc&&a.jc.oA()};
CR=function(a,b){a.B.push(b);a.u=g.Yb(b.info.j)};
DR=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();FHa(a,b);a.ma=b.iM()}a.B.length&&(b=a.B[0],b.au()&&(!b.info.Uk()||a.policy.Gr||b instanceof yR)&&FHa(a,b))};
FHa=function(a,b){if(b.au()){var c=b.mD();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof yR&&a.Va.Aa("omblss",{s:mz(d.info)}),GHa(a,b,d)}};
GHa=function(a,b,c){switch(c.info.type){case 1:case 2:pR(a.C,c);break;case 4:var d=c.info.j,e=d.wJ(c),f;(null==(f=a.u)?0:4===f.type)&&Csa(c.info,a.u)&&(a.u=d.pu(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())GHa(a,b,d.value);break;case 3:pHa(a.C,b,c);break;case 6:pHa(a.C,b,c),a.u=c.info}};
NQ=function(a,b,c){c=void 0===c?!1:c;if(a.jc){var d=a.jc.zf(),e=pA(d,b),f=NaN,k=BR(a);k&&(f=pA(d,k.j.index.getStartTime(k.Ma)));if(e===f&&a.u&&a.u.u&&HHa(ER(a),0))return b}a=IHa(a,b,c);return 0<=a?a:NaN};
PQ=function(a,b){a.j.gf();var c=IHa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.D)if(e=e.D,e.Ue&&3===e.Ue.type)e=e.Ue.startTime;else if(0<e.C){var f=e.j.index;f=g.pc(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.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.j.Am(b).j[0];FR(a)&&a.jc&&a.jc.abort();a.Z=0;return a.u.startTime};
JHa=function(a){a.K=!0;a.D=!0;a.J=-1;PQ(a,Infinity)};
GR=function(a){var b=0;g.wc(a.B,function(c){var d=b;c=c.j&&c.j.length?CHa(c.j):Fsa(c.info);b=d+c},a);
return b+=rHa(a.C)};
HR=function(a,b){if(!a.jc)return 0;var c=BR(a);if(c&&pz(c))return c.C;a=a.jc.zf(!0);return jta(a,b)};
IGa=function(a,b,c,d){MQ(a);for(var e=a.C,f=null,k=e.u.length-1;0<=k;k--){var l=e.u[k];l.info.Ma>=b&&(e.u.pop(),e.B-=Oz(l,e.policy.Ea),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Ja,e.policy.wq&&0===e.u.length&&!e.C&&nR(e,"r"));e.policy.wq&&(k=f?f.Ma:-1,f=f?f.j.info.Zb():"",e.Va.Aa("mdstm",{rollbk:1,itag:f,popped:k,sq:b,lastslc:e.C?e.C.Ma:-1,lastfraget:e.B.toFixed(3)}));d>c?PQ(a,d):a.u=a.j.zn(b-1,!1).j[0]};
KR=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)IR(a,b);else{for(;c<a.B.length;)IR(a,a.B.pop());var d=JR(a);d&&d.j.Ht()&&Sm(b.info.j,function(e){return Dsa(e,d)})?a.u=d:rz(b.info.j[0])?a.u=yHa(b):a.u=null}};
FR=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.u)&&(b=a.C,b=!!b.D&&bR(b.D));if(b)return!0;b=BR(a);if(!b)return!1;var c=pz(b)&&b.ge;return a.isManifestless&&0<a.X?c||b.Ma>=a.X:c};
KHa=function(a){var b;return FR(a)||!(null==(b=mR(a.C))||!pz(b.info))};
ER=function(a){var b=[],c=BR(a);c&&b.push(c);b=g.ic(b,rR(a.C));g.wc(a.B,function(d){g.wc(d.info.j,function(e){d.N&&(b=g.Dn(b,function(f){return!Csa(f,e)}));
(rz(e)||4===e.type)&&b.push(e)})});
a.u&&!zsa(a.u,g.Yb(b),a.u.j.Oj())&&b.push(a.u);return b};
HHa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Asa(a[b-1],a[b]))return!1;return!0};
IHa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=ER(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.B<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:HHa(a,c?b:0)?a[b].startTime:NaN};
LR=function(a){return!(!a.u||a.u.j===a.j)};
LHa=function(a){return LR(a)&&a.j.gf()&&a.u.j.info.Ob<a.j.info.Ob};
MHa=function(a,b,c){return(a=JR(a))&&!pz(a)?a.C>b&&a.C<b+c:!1};
JR=function(a){var b=mR(a.C);return b?b.info:BR(a)};
MQ=function(a){g.wc(a.B,function(b){IR(this,b)},a);
a.B=[];a.u=null};
IR=function(a,b){if(b.N&&!b.info.j[0].j.Ht()){a=a.C;if(a.Z&&!a.policy.gg){var c=a.Va;c.j.isManifestless&&KA(c.j,a.Z.Ma,!!a.J.info.video)}a.Z=null;a.K=null;a.C=a.Xa;a.B=a.C?a.B-a.X:NaN;oR(a)}b.dispose()};
NHa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.j.index.getFirstSegmentNumber()};
OHa=function(a){var b=a.u;b&&-1===b.Ma&&(a=mR(a.C))&&rz(a.info)&&(a=a.info.Ma,b.D="updateLastSliceRequested",b.Ma=a)};
PHa=function(a){return Sm(a.B,function(b){return b.D})};
MR=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new dy;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.r(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.Ut()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.u=f;e.B+=f.length;f=(0,g.R)();f-e.D>e.policy.j&&(e.callbacks.Rq(f,e.B),e.D=f)},function(){},d.body||null)};
RHa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=kz(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new dy;QHa(this).then(function(){c.callbacks.fp()},function(d){c.error=""+d||"unknown_err";
c.callbacks.fp()})};
QHa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Gh(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new ZGa(a.j.get("ck"),a.j.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,Vva(b,c,d,n,f),5):z.Za(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
v=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(v+q);y=new Uint8Array(p.buffer,v,x);a.u.append(y);a.loaded+=x;a.loaded<k.length&&a.callbacks.Rq((0,g.R)(),a.loaded);n++;return z.Za(2)})};
NR=function(a,b){var c=b.Zg,d=void 0===b.Gj?1:b.Gj,e=void 0===b.zB?d:b.zB,f=void 0===b.Uk?!1:b.Uk,k=void 0===b.Gm?!1:b.Gm,l=void 0===b.LE?!1:b.LE,m=b.rh,n=b.Ma;b=b.Ze;this.callbacks=a;this.requestNumber=++SHa;this.j=this.now();this.va=this.Ja=NaN;this.Ea=0;this.C=this.j;this.u=0;this.Sa=this.j;this.xa=0;this.Qa=this.Ia=this.isActive=!1;this.B=0;this.Z=NaN;this.K=this.D=Infinity;this.N=NaN;this.ya=!1;this.X=NaN;this.J=void 0;this.Zg=c;this.policy=this.Zg.va;this.Gj=d;this.zB=e;this.Uk=f;this.Gm=k;
l&&(this.J=[]);this.rh=m;this.Ma=n;this.Ze=b;this.snapshot=jC(this.Zg);THa(this);UHa(this,this.j);this.Z=(this.X-this.j)/1E3};
VHa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
OR=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.Z).toFixed(),pb:a.Gj,stall:(1E3*a.B).toFixed(),hrt:(a.Ja-a.j).toFixed(),elt:(a.va-a.j).toFixed(),elb:a.Ea};a.url&&vua(b,a.url);return b};
XHa=function(a,b,c,d){if(!a.Ia){a.Ia=!0;if(!a.Gm){PR(a,b,c);WHa(a,b,c);var e=a.jo();if(2===e&&d)QR(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Qa&&RR(a)&&QR(a,d,c),RR(a)&&(d=a.Zg,c=Math.max(c,2048),d.j.Yg(1,a.B/c),kC(d));c=a.Zg;b=(b-a.j)/1E3||.05;d=a.Z;e=a.Uk;c.J.Yg(b,a.u/b);c.C=fC();e||c.u.Yg(1,b-d)}a.deactivate()}};
WHa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.jo();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&QR(a,.05,e)):QR(a,d,e),a.Qa=!0);else if(SR(a,c)){if(1===f&&(f=(b-a.j)/1E3,!YHa(a)&&!a.Gm)){var k=a.Zg;k.K.Yg(1,f);kC(k)}a.va=b;a.Ea=c;a.isActive=!0}a.Gm||Pua(a.Zg,d,e);a.C=b;a.u=c};
QR=function(a,b,c){if(!a.Gm){b=Math.max(b,.05);a=a.Zg;var d=b;a.B.Yg(void 0===b?d:b,c/d);a.C=fC()}};
PR=function(a,b,c){c=Math.round(c/1024);a.J&&a.J.push(TR(b-a.Sa,c-a.xa));a.Sa=b;a.xa=c};
ZHa=function(a){return a.J?a.J.join(""):""};
SR=function(a,b){return b?a.rh&&1!==a.jo()?!0:2048<=b:!1};
RR=function(a){return SR(a,a.u)};
$Ha=function(a){return(a.C-a.j)/1E3};
THa=function(a){a.N=a.j+1E3*a.snapshot.delay;a.ya=!1};
UR=function(a,b){if(a.rh&&void 0!==a.Ma&&void 0!==a.Ze){var c=Math,d=c.min,e=a.D;var f=a.rh;var k=a.j;if(vGa(f,a.Ma))f=b;else{var l=0;f.Fh&&(l=.2);f=k+1E3*(f.Sg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.K;f=a.rh;k=a.j;l=wGa(f,a.Ma,a.Ze);2!==l&&(b=l?b:k+1E3*f.Sg,f.Fh&&(b+=1E3*f.Sg));a.K=d.call(c,e,b);a.D<=a.j?THa(a):(a.N=a.D,a.ya=!0)}};
YHa=function(a){a.rh&&UR(a,a.now());return a.ya};
UHa=function(a,b){b=void 0===b?a.now():b;if(a.rh){UR(a,b);var c=a.ma?a.rh?1!==a.jo():!1:a.D!==a.K;if(c){if(c=a.K,b<c){a.X=a.K;return}}else c=a.D;c=Math.max(c,a.N)}else c=a.N;var d=a.Gj-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=RR(a)?d+b:d+Math.max(b,c);a.X=d};
TR=function(a,b){for(var c="";4095<a;)c+=TR(4095,0),a-=4095;for(;4095<b;)c+=TR(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))};
VR=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.X=d;this.status=0;this.response=void 0;this.N=this.u=0;this.J=this.K=!1;this.errorMessage="";this.ma=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Cl=f.body.getReader(),e.isDisposed()?e.Cl.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Vt(),aIa(e));
else e.onDone()};
this.Z=function(f){var k=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Cl=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.N>e.policy.j&&(e.N=f,e.callbacks.Rq(k,e.u)),aIa(e)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new dy;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
aIa=function(a){a.Cl.read().then(a.Z,a.onError).then(void 0,zs)};
WR=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(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.Ut(f)};
a=er(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",er(function(f){d.Gd(f)}),!1)};
$R=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.Lx?[]:k.Lx;var l=void 0===k.zy?!1:k.zy,m=void 0===k.aq?0:k.aq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.Ah?void 0:k.Ah;k=void 0===k.Sx?"":k.Sx;uR.call(this,b,e);var q=this;this.policy=a;this.logger=new g.oQ("dash/request");this.Z=this.B=0;this.ya=!1;this.K=this.J=null;this.xa=!1;this.timing=new NR(this,c);this.ma=d;this.zy=l;this.u=g.zz(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",
(1E3*m).toFixed().toString());this.zy&&this.u.set("smb","1");this.policy.bj&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.Lx=f||null;this.Ah=p;this.D=bIa(this);this.va=1*this.policy.ag;this.X=new g.L(this.BZ,this.va,this);this.info.u.K=(0,g.R)();ssa(YR(this));try{this.xhr=cIa(this),this.X.start()}catch(t){g.Ov(t),this.lastError="net.ssl",g.mi(function(){ZR(q)})}};
bIa=function(a){if(!(yz(a.info)&&a.info.Uk()&&a.policy.Gb&&a.Lx)||2<=a.info.u.u||0<MA()||!Xta())return!1;var b=a.u.get("aitags");if(!b)return!1;b=Gh(b).split(",");for(var c=[],d=g.r(a.Lx),e=d.next();!e.done;e=d.next())e=e.value,g.cc(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",g.Fh(c.join(",")));return!0};
YR=function(a){return ez(a.ma,Yx(a.u.fg))};
fIa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Tx())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(dIa(a)){var d=b.If();d.totalLength<=a.policy.Qf&&(c=iy(d),c=ny(c),c=Aw(c)?c:"")}if(c){var e=YR(a);(0,g.R)();e.started=0;e.timedOut=0;e.j=0;a.info.Mj(a.u,c);return 3}c=b.Jj();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.PB())return a.lastError="net.closed",5;a.Fo(!0);if(!d&&a.j&&(d=a.j.ue,d.length&&!Usa(d[0])))return a.lastError="net.closed",
5;d=xHa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=xHa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.ya=!0,a.policy.Yl&&(d=b);XHa(a.timing,(0,g.R)(),c,d?Number(d):0);b=YR(a);(0,g.R)();b.started=0;b.timedOut=0;b.j=0;b=a.info.u;b.u=0;b.D=0;b.J=0;!a.Ah||(0,g.R)()<eIa+3E5||!a.u||Zx(a.u.fg)||(b=Yx(a.u.fg))&&Aua(b)&&a.Ah.u===FB(b)&&(Mra(a.u.fg)&&(e=Yx($x(a.u.fg))),a=a.Ah,Yta(b,e),CB(a,{primary:b,secondary:e}),eIa=(0,g.R)());return 4};
ZR=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.R)();if(!b.Gm){PR(b,c,1024*b.xa);var d=(c-b.j)/1E3;if(2!==b.jo())if(RR(b)){b.B+=(c-b.C)/1E3;var e=b.Zg,f=b.u;f=Math.max(f,2048);e.j.Yg(1,b.B/f);kC(e)}else YHa(b)||b.Gm||(e=b.Zg,e.K.Yg(1,d),kC(e)),b.va=c;e=b.Zg;f=b.Z;var k=b.Uk;e.J.Yg(d,b.u/d);e.C=fC();k||e.u.Yg(1,d-f);Pua(b.Zg,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!Zx(a.u.fg)?(c=YR(a),
c.timedOut+=1):(c=YR(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.u,++c.u,b&&++c.D,Yx(d.fg).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.J;vR(a,5)};
gIa=function(a,b){b&&(b=YR(a),b.u+=1);aS(a);a.lastError="net.timeout";ZR(a)};
aS=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
dIa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Cw();c=!c||c<=a.policy.Qf;return(!a.xhr.Eu()||!b||-1!==b.indexOf("text/plain"))&&c};
cIa=function(a){if(Zx(a.u.fg))return new RHa(a.u,a.timing);var b=g.cz(a.u);return a.policy.Ja&&(a.policy.Gq&&!isNaN(a.info.Ze)&&a.info.Ze>a.policy.Hk||a.D&&!a.policy.Gr?0:Bx())?Cx()?new MR(b,a.policy.D,a.timing):new VR(b,a.policy.D,a.timing):new WR(b,a.timing)};
hIa=function(a){if(!a.policy.D.Fh||!isNaN(a.info.Ze)&&0<a.info.Ze)return!1;if(!a.xhr.uq())return!0;var b=a.xhr;b.Cw()?b=!1:(b=b.getResponseHeader("content-type"),b="audio/mp4"===b||"video/mp4"===b||"video/webm"===b);return!b||isNaN(a.info.Ze)&&(b=a.xhr.getResponseHeader("x-head-seqnum"))&&Number(b)>a.info.j[0].Ma?!1:!0};
bS=function(a,b,c,d,e){this.Va=a;this.policy=b;this.schedule=c;this.N=d;this.Z=e;this.ma=NaN;this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.X=NaN};
iIa=function(a,b,c,d,e){return b.ib&&b.va&&3===Ira(b)?new bS(a,b,c,d,e):null};
jIa=function(a,b){if(a.policy.Hr){var c=b.info.Ob,d=iC(a.schedule);b=b.index.Sg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.Dc));a.Ra()}};
mIa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.lh,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Jr&&(k=!0);a.Ra();a.J=c}c=d>=a.policy.Dc&&!a.B;if(!f&&!c&&kIa(a,b))return NaN;c&&(a.B=!0,a.Ra());a:{d=k;c=Date.now()/1E3-(a.N.Eg()||0)-a.K.B-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.Ra();cS(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.lc;d<c&&(a.Ra(),c=d)}else a.B&&(d=c+a.policy.ma-a.ma+a.policy.Dp,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.lc))),
c=d);c=Math.max(c,f);a.Ra();f=c}a.j=f;if(isNaN(a.j))return a.Ra(),a.clear(),NaN;if(!k&&kIa(a,b))return lIa(a,b),NaN;if(a.j<=a.u.startTime)return cS(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!lIa(a,b)&&k&&(cS(a,NaN,"t",b),a.clear()),NaN;a.Ra();k=a.j;cS(a,k,"s",b);a.clear();return k};
lIa=function(a,b){return a.Z(a.j,!0)?!1:(cS(a,NaN,"ns",b),a.Ra(),a.clear(),!0)};
kIa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.lc:a.policy.Ir)};
cS=function(a,b,c,d){var e=a.C.Xs();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).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.B).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.N.Eg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;Gz(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.Va.Aa("ssr",e)};
nIa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.dS=function(a,b,c,d,e,f,k,l,m,n,p){l=void 0===l?!1:l;g.G.call(this);var q=this;this.Ca=a;this.schedule=b;this.policy=c;this.j=d;this.X=m;this.Ah=n;this.Db=p;this.timing=new GGa(this.Db);this.N=new HQ(this.schedule,this.policy);this.mediaSource=null;this.ma=new g.L(this.Jh,0,this);this.Qa=new g.L(this.Jh,1E3,this);this.vb=new g.L(this.Jh,void 0,this);this.rb=new g.L(this.Jh,1E4,this);this.K=this.currentTime=NaN;this.va=this.ib=0;this.xa=this.Xa=this.isSuspended=!1;this.Z=null;this.Ja=this.Sa="";
this.Ia=new cC(5);this.ya={};this.jb=this.Ze=NaN;this.rh=null;this.timestampOffset=NaN;this.qb=!1;this.Ya=0;this.pk=!1;this.C=null;this.Ea=NaN;this.Sx="";this.logger=new g.oQ("dash");a=m&&Array.from(m.Od.keys());m&&(this.Ea=Date.now());this.u=new MGa(this,this.N,c,this.j,e,a);c=RGa(this.u,f,k&&k.id);this.audioTrack=new zR(this,this.policy,c.audio);this.videoTrack=new zR(this,this.policy,c.video);this.videoTrack.C.va=this.audioTrack.C;this.Wa={updateend:this.nS,error:this.yW};g.H(this,this.ma);g.H(this,
this.Qa);g.H(this,this.vb);g.H(this,this.rb);this.D=iIa(this,this.policy,this.schedule,this.Ia,function(t,v){return oIa(q,t,v)});
this.B=new QQ(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.J=new LQ(this,this.j,this.videoTrack,this.audioTrack,this.policy);0<this.policy.Lk&&(this.Sx=g.pv(this.policy.Lk))};
rIa=function(a,b){var c=b.j,d=a.j.isLive;if(a.j.isLive){var e=Date.now();if(!isNaN(a.Ea)&&e-a.Ea>1E3*a.policy.Hv){a.Aa("ombttl",{});return}}e=a.Hg();if(a.X&&xR(a.X,iz(c,d,e,a.policy.Ya))){d=iz(c,d,e,a.policy.Ya);e=pIa(a.X,d);if(a.j.isLive&&a.policy.Mv)var f=c.Am(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=qIa(a.X,d);if(!l){a.Aa("ombooo",{});return}k=l-k;if(a.policy.wk&&0<e.length){var m;f=null==(m=c.xo(0))?void 0:Gsa(m,e,k)}f&&0!==e.length||
(f=c.xo(k),a.policy.wk&&a.Aa("ombcf",{}))}f&&(m=function(n){try{n.isFailed()?(a.handleError(n.lastError,n.Xs()),KR(b,n),yz(n.info)&&eS(a,b,c,!0),a.Jh()):fS(a,n)&&a.Jh()}catch(p){n=AB(p),a.handleError(n.errorCode,n.details,n.severity),gS(a)}},c.J=!0,xz(f)&&CR(b,new yR(d,f,a.X,m)))}else a.Aa("ombfmt",{})};
sIa=function(a){var b=a.videoTrack.j.index;a.rh=new uGa({nm:a.policy.nm,Fh:a.policy.D.Fh,Sg:b.Sg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
jt:function(){return b.jt()}})};
hS=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.xa!==b&&(d.ya={},d.xa=b,UQ(d,d.j));b=!d.j.isLocked()&&-1<d.X&&8E3>(0,g.R)()-d.X;var e=d.nextVideo&&3*XQ(d,d.nextVideo.info)<KQ(d.va);if(!b||e)VQ(d),WQ(d),d.Z=d.Z||d.nextVideo!==d.u;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.xa=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.u.B;c.j!==a&&(c.j=a)};
iS=function(a,b){a.Xa=b;a.pk||(a.isSuspended=!0)};
jS=function(a,b){a.policy.me&&a.C&&(a.Sa=b)};
uIa=function(a){a.policy.Ub=!1;try{tIa(a)}catch(b){g.S(b)}};
vIa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(gv(a.mediaSource.j,a.Wa,a),gv(a.mediaSource.u,a.Wa,a));AR(a.audioTrack,null);AR(a.videoTrack,null);a.mediaSource=null};
kS=function(a,b){b=void 0===b?!1:b;vIa(a);b?a.pk=!0:a.policy.bd?iS(a,a.qb):iS(a,!1);gS(a)};
lS=function(a){a.mediaSource&&a.mediaSource.df()&&(kS(a),a.policy.Eq&&a.handleError("fmt.unplayable",{unexpected:1},1))};
mS=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return jS(a,"waitad"),!1;if(!wsa(b.u?b.u.j.u:b.j.u,a.policy))return jS(a,"resource"),!1;if(a.isSuspended&&(!Qua(a.schedule)||a.Xa))return jS(a,"suspend"),!1;if(a.policy.u&&5<=BD)return g.qp(a.Qa),jS(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma)return jS(a,"pending"),!1;if(b.B.length>=a.policy.Bk)return jS(a,"toomany"),!1;if(!a.policy.Nk&&0<b.B.length&&!a.policy.D.Fh)return jS(a,"pipeline"),!1;if(b.K)return b=!a.j.isLive||
!isNaN(a.Ze),jS(a,b?"":"sqless"),b}if(PHa(b))return jS(a,"shavable"),!1;if(!b.u){if(!b.j.gf())return jS(a,"meta"),!1;PQ(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].yv()||c.B.length&&c.B[0].yv()||a.j.isLive)&&--d;if(d+1>=a.policy.Ik)return jS(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.gf()&&(b.u=g.Yb(d.j.pu(d)),d=b.u);if(!pz(d)&&!d.j.yn(d))return jS(a,"notready"),!1;var e=a.j.hf||a.j.N;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber();
e=Math.min(e,f);if(0<b.j.index.qv&&0<e&&d.Ma>=e)return b.X=e,c.X=e,jS(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return jS(a,"toomanyaudio"),!1;if(LHa(b)&&!a.policy.Wa)return jS(a,""),!0;if(pz(d))return jS(a,"eos"),!1;if(GR(b)&&GR(b)+GR(c)>a.policy.rb)return jS(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!pz(c.u)&&c.u.C<f);var k=b===a.videoTrack&&a.pk;if(f&&(!a.j.isManifestless||c.u&&c.u.C&&d.C)&&e&&!k)return jS(a,"othertrack"),!1;if(a.policy.Qa&&!b.D&&c.D)return jS(a,"seek"),!1;if(rz(d)&&d.C>
wIa(a,b))return jS(a,"maxtime;"+d.C.toFixed(3)+";"+wIa(a,b)),!1;if((b=b.jc)&&b.isLocked())return jS(a,"locked"),!1;jS(a,"");return!0};
xIa=function(a,b,c){if(mS(a,b,c)){if(b.K){if(a.j.isLive){var d=a.j.Ie&&a.j.N?b.j.zn(a.j.Ie,!1):b.j.Am(Infinity);d.Ze=a.Ze}else d=b.j.zn(0,!1);a.D?0===d.Ze&&(d.D=a.D.X):d.D=a.jb}else if(d=b.u,d.j.gf()){var e=d.C-a.currentTime,f=!d.range||0===d.u&&0===d.Ab?0:d.range.length-(d.Ab+d.u),k=d.j;if(LR(b)&&b.j.gf()){var l=Math.min(15,.5*nS(a,b,!0));l=LHa(b)||e<=l||a.u.N}else l=!1;l&&0===f&&(a.j.isManifestless?k=b.j:(k=d.startTime+oS,d.u&&(k+=d.duration),PQ(b,k),d=b.u,k=d.j));k.Oj()?(f=a.u,c=JQ(a.N,k.info.Ob,
c.j.info.Ob,e,0<f.D.length&&0===f.videoIndex&&a.xa),e=LR(b),c=d.j.Wr(d,c),c.range&&1<c.j.length&&(e||c.u.u||c.j[0].j!==d.j?c=d.j.Wr(d,c.j[0].u):(e=c.j[c.j.length-1],k=e.u/c.range.length,!e.ge&&.4>k&&(c=d.j.Wr(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=uz(d),c.pr=""+b.B.length,a.J.u&&(c.sk="1"),c.snss=d.D,a.Aa("nosq",c)),d=k.ov(d));if(a.pk)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Oj()?(c=JQ(a.N,b.j.info.Ob,c.j.info.Ob,0),d=d.j.Wr(d,c)):d=d.j.ov(d);if(a.C&&(c=a.B,e=d.j[0].Ma,
e=0>e&&!isNaN(c.B)?c.B:e,k=HGa(a.B,d.j[0].B,e),f=b===a.audioTrack?1:2,c=a.C.al(k,e,d.j[0].j.info.id,f),0>e&&(a.policy.Kv||2===f)&&LGa(a.B,0,0,!0),c)){k={decurl_itag:d.j[0].j.info.Zb(),sg:e,st:k.toFixed(3)};if(a.policy.Vq&&b.isRequestPending(e-1)){a.Aa("sdai",{wt_daistate_on_sg:e-1});return}a.Aa("sdai",k);e=d;c&&(e.B=new g.Vx(c))}a.policy.qj&&-1!==d.j[0].Ma&&d.j[0].Ma<a.j.Ie&&(d=b.j.zn(a.j.Ie,!1));CR(b,pS(a,d))}};
pS=function(a,b){rz(b.j[b.j.length-1])&&yIa(a,TGa(a.u,b.j[0].j));var c=Fsa(b);c={Zg:a.schedule,Gj:c,zB:xGa(a.N,c),Uk:qz(b.j[0]),Gm:Zx(b.u.j),LE:a.policy.Z};a.rh&&(c.Ma=b.j[0].Ma,c.Ze=b.Ze,c.rh=a.rh);var d={aq:Math.max(0,b.j[0].B-a.currentTime),Lx:a.policy.Gb&&yz(b)&&b.j[0].j.info.video?YGa(a.u):void 0,zy:a.pk,poToken:a.Ca.Y.Qd||"",Ah:a.Ah,Sx:a.Sx};return new $R(a.policy,b,c,a.ya,function(e,f){try{a:{a.policy.me&&a.C&&(a.Z=e);var k=e.info.j[0].j,l=k.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||
e.isComplete()||e.C||!(!a.mediaSource||a.isSuspended||3<HR(l,a.currentTime))){var m=a.policy.Lb;if(!(!m||e.isComplete()||e.C<m||gz(e.info.u,a.policy,a.ya))){var n=a.ya;var p=Yx(fz(e.info.u,a.policy));var q=ez(n,p);if(!(q.j||q.timedOut||q.started)){var t=Hsa(e.info,!0);t&&pS(a,t)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.jb){var v=Object.assign(OR(e.timing),{rst:""+e.state,strm:""+e.xhr.Eu(),d:ZHa(e.timing)});a.Aa("rqs",v)}e.ya&&a.Aa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var x=
a.timing,y=e.info.j[0].j,z=!x.D&&y.info.video,E=!x.u&&y.info.audio;3===e.state?z?x.tick("vrr"):E&&x.tick("arr"):4===e.state?z?(x.D=g.cz(e.u),g.Sr(),Ur(4)):E&&(x.u=g.cz(e.u)):e.yv()&&z&&(g.Sr(),Ur(4));if(3===e.state){KR(l,e);yz(e.info)&&eS(a,l,k,!0);if(a.C){var I=e.info.al();I&&a.C.Mj(e.info.j[0].Ma,k.info.id,I)}a.Jh()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var K=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;K&&K instanceof $R&&K.C&&gIa(K,!0)}e.dispose()}else{if(!e.isFailed()&&
e.D&&2<=e.state&&3!==e.state){var N=e.xhr.getResponseHeader("X-Response-Itag");if(N){var aa=XGa(a.u,N),J=e.info.range.length-aa.lF();aa.J=!0;e.info.j[0].j.J=!1;var oa=aa.xo(J);e.info=oa;if(e.j){var ia=e.j,za=oa.j;ia.j=za;var jb=za[0].range,Gb=new dy;for(f=0;f<ia.ue.length;f++)ey(Gb,ia.ue[f].j);for(f=0;f<ia.ue.length;f++){ia.ue[f].info=za[f];var Ra=za[f].range;ia.ue[f].j=fy(Gb,Ra.start-jb.start,Ra.length)}}e.D=!1;var rc=a.videoTrack;rc.j!==aa&&(rc.j=aa);var Xc=a.videoTrack;Xc.u&&(Xc.u.j=aa);var Hb=
a.Ca;Hb.videoData.ej=g.Gx("auto",aa.info.video.quality,!1,"u");qS(Hb);var ke=e.qF();ke&&aa.info.lastModified&&aa.info.lastModified!==+ke&&KR(a.videoTrack,e)}else e.D=!1}if(4===e.state){if(fS(a,e),a.B){var kb=a.B,He=e.info,ug=a.C;if(0!==kb.u&&ug&&He.j[0].isVideo())if(He.j[0].Ma>kb.B&&(kb.B=NaN,kb.C=NaN),kb.j&&kb.j.Ma===He.j[0].Ma){var Pf=kb.j.Kd.event;if("start"===Pf||"continue"===Pf){if(1===kb.u||5===kb.u)kb.j.Uw?SQ(kb,4,"cue"):(kb.B=He.j[0].Ma,kb.C=He.j[0].B,kb.Aa("sdai",{joinad:kb.u,sg:kb.B,st:kb.C.toFixed(3)}),
SQ(kb,2,"join"),ug.xF(kb.j.Kd))}else"stop"!==Pf||1!==kb.u&&5!==kb.u||kb.Aa("sdai",{joinstop:1,st:kb.u,sg:kb.B}),SQ(kb,5,"stop")}else 1===kb.u&&SQ(kb,5,"noad")}}else if(a.policy.Ja&&e.au()&&!e.isComplete()&&!fS(a,e)&&!e.isFailed())break a;e.isFailed()&&a.wt(e);a.Jh();if(a.policy.Hb&&e.isComplete()&&e.canRetry()&&gz(e.info.u,a.policy,a.ya)){var le=a.ya;var Ud=Yx(e.info.u.j);var sc=ez(le,Ud);if(!(sc.B+a.policy.Hb*tsa(sc,a.policy,!0)>(0,g.R)())){var eh=Hsa(e.info,!1);eh&&pS(a,eh)}}}}}}}catch(Vd){e=zB(0),
aa=AB(Vd,0),a.handleError(aa.errorCode,aa.details,aa.severity),e||gS(a)}},d)};
yIa=function(a,b){b&&a.Ca.pB(b);a.policy.Ak&&a.u.Qa&&(b=UGa(a.u,"a"),rS(a.Ca,b.reason,b.audio.info))};
fS=function(a,b){try{var c=b.info.j[0].j.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.au(),c.K=!1);b.eF()&&a.Ia.Yg(1,b.eF());var d=b.NJ(),e=b.lM(),f=a.j,k;for(k in f.j){var l=f.j[k].index;l.Qk&&(d&&(l.qv=Math.max(l.qv,d)),e&&(l.B=Math.max(l.B||0,e)))}}if(b.info.Uk()&&!xz(b.info))for(var m=g.r(b.mD()),n=m.next();!n.done;n=m.next())pR(c.C,n.value);DR(c);return!!c.If()}catch(p){return b=b.Xs(),b.origin="hrhs",zIa(a,p,b),!1}};
zIa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.Ov(b),"WARNING"===b.level)){sS(a.Ca,c);return}a.handleError("fmt.unplayable",c,1)};
tIa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=AIa(a);if(d){if(a.policy.Rr){if(!b.po()){var e=a.audioTrack.If();e&&(a.policy.Zl&&tS(a,a.audioTrack,b,e.info),uS(a,b,e))}!c.po()&&(b=a.videoTrack.If())&&(a.policy.Zl&&tS(a,a.videoTrack,c,b.info),uS(a,c,b))}a.va||(a.va=(0,g.R)(),a.policy.Z&&a.Aa("apdps",{r:d}))}else{if(a.va){d=(0,g.R)()-a.va;e=HR(a.audioTrack,a.currentTime);var f=HR(a.videoTrack,a.currentTime);a.policy.Z&&a.Aa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),
vbuf:(1E3*f).toFixed()});a.va=0}if(a.D){d=a.D;e=a.audioTrack;f=qA(a.mediaSource.u.zf());if(d.C)d=mIa(d,f);else{if(f=e.If()){var k=f.u;k&&k.D&&k.B&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Ze&&(d.C=e,d.K=k,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.Ra())}d=NaN}d&&a.Ca.seekTo(d,{xq:!0,re:"pollSubsegmentReadahead",Xp:!0})}d=!1;BIa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),XG("vda",e.C,e.j),e.B&&(g.Sr(),Ur(4))));if(a.mediaSource&&
!a.mediaSource.df()&&(BIa(a,a.audioTrack,b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),XG("ada",d.B,d.j),d.C&&(g.Sr(),Ur(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Ub&&FR(a.videoTrack)&&FR(a.audioTrack)&&xA(a.mediaSource)&&!a.mediaSource.nh()&&(e=BR(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,xA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Xe.webkitSourceEndOfStream(e.Xe.EOS_NO_ERROR)),e=a.schedule,Sta(jC(e)),e.D=fC(),e.N=!0));e=a.policy.Fv;f=a.policy.Lv;d||!(0<e||f)||!xA(a.mediaSource)||
FR(a.videoTrack)||FR(a.audioTrack)||(b.sC(a.currentTime,f,e),c.sC(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):zA());c&&g.qp(a.ma)}}}};
AIa=function(a){if(PHa(a.videoTrack))return"ssf";var b=a.B;if(1===b.u||2===b.u||3===b.u)return"cpm";if(a.policy.cg||KHa(a.videoTrack)||KHa(a.audioTrack))return"";if(a.J.u){b=a.N;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=rR(c.C).concat(rR(d.C));f=g.r(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.u;c=c.j.info.Ob+d.j.info.Ob;e/=c;b=e<b.policy.Kk?!1:10<e?!0:10>c*(10-e)/KQ(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&lHa(b.C).info.J<
b.ma)return"seek"}if(!a.xa||!a.policy.Db||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=MHa(a.videoTrack,a.currentTime,a.policy.Db)||MHa(a.audioTrack,a.currentTime,a.policy.Db);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||mS(a,a.videoTrack,a.audioTrack)||mS(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
BIa=function(a,b,c){if(c.nh())return!0;if(!c.Hz())return!1;var d=b.If(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.u&&b===e.xa)e=JR(e.J),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;tS(a,b,c,d.info);if(a.j.u&&0===d.info.Ab&&(g.Nz(d.info.j.info)||a.policy.Gp)){if(null==c.po()){e=BR(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.uc(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.po(),a.policy.Pv&&d.info.j.Lt()&&
cta(d),f=d.info.j.j,e=e!==f&&!g.uc(e,f);e&&(f=BR(b),a.Aa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ma}));a.policy.Rb&&!e&&(g.Nz(d.info.j.info)?(My(Mz(d),1836019574),My(Mz(d),1718909296)):(e=new Oy(Mz(d)),osa(e),Sy(e,524531317,!0),d.j=d.j.split(e.start+e.j).Br),d.D=!1)}a.policy.fh?d.B=!1:a.policy.Jv&&!c.po()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Ab||d.D||d.B||3!==d.info.type||!e||(f=new dy([e]),ey(f,d.j),e=iy(f).subarray(e.length),d.j=new dy([e]),d.B=!0));
e=a.D&&!!a.D.C&&b.j.info.audio;f=a.j.isManifestless||d.B||d.D;if(!(a.j.u&&0!==d.info.Ab||f&&!e)&&uS(a,c,d))return!0;if(e)return!1;e=a.currentTime+nS(a,b,!1);(e=d.info.B>e)||(a.policy.qb&&(!d.info.Ab||d.info.ge||10>d.info.B)&&a.Aa("sba",c.Nb({as:mz(d.info)})),e=d.D||d.B?d.info.j.j:null,f=iy(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=CIa(a,c,f,d.info,e),"s"===c?(a.Ya=0,a=!0):("i"===c||"x"===c?DIa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.K=Math.floor(.8*e.K),
e.ya=Math.floor(.8*e.ya),e.J=Math.floor(.8*e.J)):(e=a.policy,e.X=Math.floor(.8*e.X),e.vb=Math.floor(.8*e.vb),e.J=Math.floor(.8*e.J)),YQ(a.u,d.info.j)),sS(a.Ca,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Zh(d);return!0};
DIa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.C=e,d.j.info.video&&!ZQ(a.u)&&YQ(a.u,d.j)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=uz(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:yA(k);d.origin=b;d.reason=c;a.handleError(e,d,f)};
uHa=function(a,b,c,d,e){var f=a.j,k=!1,l=-1;e=f.Xa&&e;for(var m in f.j){var n=bA(f.j[m].info.mimeType)||f.j[m].info.isVideo();if(d===n)if(k=f.j[m].index,Gz(k,b.Ma)){n=b;var p=k.Zk(n.Ma);p&&p.startTime!==n.startTime?(e||(k.segments=[],k.cD(n)),k=!0):k=!1;k&&(l=b.Ma)}else k.cD(b),k=!0}0<=l&&(m={},f.ea("clienttemp","resetMflIndex",(m[d?"v":"a"]=l,m.cfl=e,m),!1));FGa(a.J,b,d,k);a.B.UG(b,c,d)};
tS=function(a,b,c,d){b=BR(b);!b||b.ge||sz(b,d)||c.abort();!c.Gw()||uA()?c.CI(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Gw()&&a.Aa("ctu",{ct:uA(),prev_c:c.Gw(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.wj&&b&&(d=0+b.duration,b=-b.j,0===c.jA()&&d===c.bF()||c.PH(0,d),b!==c.qd()&&(c.dC(b),sR&&wHa(a.audioTrack.C,c.rF())))};
uS=function(a,b,c){c.info.j.gf();var d=c.info.j.j;if(!d||!b.Hz()||b.po()===d)return!1;var e=d,f=b.nA();if(a.policy.fh&&f&&b.isView()&&g.Nz(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=isa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Aa("fenc",{})}f=null;(k=c.info.j.xo(0))&&(f=k.j[0]);a.policy.qb&&a.Aa("sbi",b.Nb({as:mz(c.info)}));a.policy.Th&&b.abort();d=CIa(a,b,e,f,d);if("s"!==d)return DIa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.K||(a.K=
(0,g.R)(),XG("vis_a",a.K,a.j))):(a=a.timing,a.J||(a.J=(0,g.R)(),XG("ais_a",a.J,a.j)));return b.nh()};
CIa=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:mA(b.zf()).replace(/,/g,"_"),message:g.Kc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},nIa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.df()?"m":"s"};
kR=function(a,b){a.Ca.qB(b)};
nS=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.X:a.policy.K;!a.policy.Wa&&a.u.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.vb:a.policy.ya));c&&(d+=a.policy.rb);c=a.u.j.isLocked()?b.u?b.u.j.info.Ob:b.j.info.Ob:b.Ob*a.policy.nj;d/=c;0<a.policy.Jk&&a.mediaSource&&xA(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.nh()&&(b=b.zf(),c=nA(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Jk,a.policy.Gv))));0<a.policy.J&&
(d=Math.min(d,a.policy.J));return d};
wIa=function(a,b){var c=a.B;c=c.j?c.j.Kd:null;if(a.pk&&c)return c.startSecs+c.durationSecs+15;b=nS(a,b,!0);!a.u.j.isLocked()&&0<a.policy.xa&&(c=((0,g.R)()-a.ib)/1E3,b=Math.min(b,a.policy.xa+a.policy.Cd*c));b=a.currentTime+b;return a.policy.Wl&&(c=EIa(a)+a.policy.Wl,c<b)?(a.Aa("mrl",{ori:b,mod:c},!0),a.policy.Bj&&(a.ib=(0,g.R)()),c):b};
EIa=function(a){var b=g.Dn(a.Ca.xm(),function(d){return"ad"===d.namespace});
b=g.r(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};
FIa=function(a,b){BB(b,"cms",function(c){a.policy.Z&&a.Aa("pathprobe",c)},function(c){a.Ca.handleError(c)})};
GIa=function(a,b){a.C=b;a.B&&(a.B.D=b);a.C.TH(a.videoTrack.j.info.De())};
HIa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.D){var e=c.ut(d);e!==c.X&&(c.D.aH(c.X,e,c.va,d),c.X=e);c.va=d}a.currentTime!==b&&a.resume();a.J.u&&a.mediaSource&&!a.mediaSource.df()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=oA(a.mediaSource.u.zf(),a.currentTime+oS),c&&d&&(a.J.u=!1));a.J.u||(a.currentTime=b);g.qp(a.Qa)}};
IIa=function(a,b){var c=ER(a.videoTrack).find(function(d){return d.startTime>=b&&oIa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
oIa=function(a,b,c){if(!(a.videoTrack.j.gf()&&a.audioTrack.j.gf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.j.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=NQ(a.videoTrack,b,c);if(isNaN(d))return!1;a=NQ(a.audioTrack,a.policy.va?b:d,c);return isNaN(a)?!1:!0};
eS=function(a,b,c,d){if(!(c.gf()||c.Lt()||c.J)&&wsa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.N;var e=c.info,f=yGa(d,e.video?d.policy.Fp:d.policy.cj,e.Ob);d=d.policy.oh&&e.video?Math.max(f,d.policy.oh):f}else d=0;d=c.xo(d);a=pS(a,d);xz(d)&&CR(b,a);c.J=!0}};
gS=function(a){try{var b=a.audioTrack;MQ(b);OQ(b.C);var c=a.videoTrack;MQ(c);OQ(c.C)}catch(d){g.S(d)}a.policy.u=""};
JIa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.K=a.timestampOffset,a.Ca.cH(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.vS=function(a){this.td=a};
wS=function(){g.ev.apply(this,arguments)};
xS=function(a,b,c,d){wS.call(this);var e=this;this.B=-1;this.j={};this.C=new g.L(this.D,0,this);g.H(this,this.C);this.u=new g.L(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.J,this)};
KIa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
LIa=function(a){var b=a.interval,c=a.uu;this.url=a.url;this.interval=b;this.uu=c};
MIa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
OIa=function(a){var b=ly(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=Dy(b.slice(d+2));if(null==b)return null;a=new MIa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.xya(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new LIa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,uu:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.j=c.split(",");if(c=b["Key-Ids"])a.u=NIa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
NIa=function(a){if(!a)return{};a=a.split(";");var b={};g.wc(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
yS=function(a,b,c){c=void 0===c?"":c;g.G.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Li(5E3,2E4,.2)};
PIa=function(a,b,c){a.onSuccess=b;a.onError=c};
RIa=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.Ra(),0!==e.status&&e.response)if(hx("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=OIa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else QIa(a,e)},
onError:function(e){QIa(a,e)}};
c&&(b=Pca(b,"access_token",c));g.Dr(b,d);a.Ra()};
QIa=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)};
TIa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.Ra();hx("drm_net_r",void 0,a.timer);var k="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Oc(f.license)}catch(x){g.S(x)}if(0!==k||l){l=new MIa(k,l);0!==k&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){k={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=SIa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&
(t+="HDR");k[t]||(m.push(t),k[t]=!0);var v=null;try{v=Oc(q.keyId)}catch(x){g.S(x)}v&&(n[g.Jc(v,4)]=t)}}l.j=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.bL="Bearer "+d);g.gu(c,"player/get_drm_license",b,e)};
AS=function(a,b,c,d){g.ev.call(this);this.videoData=a;this.Y=b;this.N=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.Z=!1;this.B=null;this.xa=[];this.D=[];this.ma=!1;this.j={};this.va=NaN;this.status="";this.J=NaN;this.u=a.N;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ja&&(a.vvt=this.videoData.Ja,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.Ab()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.X=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.QA(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.X=!1);this.baseUrl=g.XA(this.u)?KIa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=pj(this.baseUrl,"ek")||"";if(b=pj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ya=this.videoData.S("html5_use_drm_retry");this.xa=c.De?[g.Jc(c.initData,4)]:c.u;this.Ra();zS(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
XIa=function(a,b){zS(a,{createkeysession:1});a.status="gr";hx("drm_gk_s",void 0,a.videoData.xa);a.url=UIa(a);try{a.B=b.createSession(a.N,function(c){zS(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(VIa(a.B,function(c,d){WIa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.Ra();
d=void 0;var f=1;g.XA(a.u)&&g.FC(a.Y)&&a.Y.S("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.S("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.Ra(),zS(a,{onkyadd:1}),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.bp(c)}),g.H(a,a.B))};
UIa=function(a){var b=a.baseUrl;Nqa(b)||a.error("drm.net",2,"t.x");if(!pj(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.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Pca(b,d,a.C[d]);return b};
WIa=function(a,b,c){if(!a.isDisposed())if(b){a.Ra();zS(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":YIa(a,b);return;default:a.ea("ctmp","message_type",{t:c,l:b.byteLength})}a.Z||(hx("drm_gk_f",void 0,a.videoData.xa),a.Z=!0,a.ea("newsession",a));if(UA(a.u)&&(b=ZIa(b),!b))return;g.XA(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=ky(g.Jc(b)));b=new yS(b,++a.requestNumber,a.videoData.xa);PIa(b,function(d,
e){$Ia(a,d,e)},function(d,e,f){if(!a.isDisposed()){var k=0,l;
(l=3<=d.j.u)||(l=a.ya&&36E4<(0,g.R)()-a.va);l&&(k=1,e="drm.net.retryexhausted");a.Ra();zS(a,{onlcsrqerr:e,info:f});a.error(e,k,f);a.shouldRetry(zB(k),d)&&aJa(a,d)}});
g.H(a,b);bJa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
YIa=function(a,b){a.Ra();zS(a,{sdpvrq:1});a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.nj("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:ly(b)}),responseType:"arraybuffer"};
g.Gr(c,b,3,500).then(er(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=ly(d);try{var f=JSON.parse(e)}catch(k){}f&&f.signedResponse?(a.ea("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.J)/1E3,a.J=NaN,a.ea("ctmp","provs",{et: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",1,d))}}),er(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
BS=function(a){var b;if(b=a.X&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
bJa=function(a,b){a.status="km";hx("drm_net_s",void 0,a.videoData.xa);if(a.videoData.useInnertubeDrmService()){var c=new g.fu(a.Y.hh),d={context:g.ts(c.config_||g.rs())};d.drmSystem=cJa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Jc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,k=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=k?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(!d.context||!d.context.client){a.Ra();a.error("drm.net",2,"t.r;ic.0");return}if(e=a.Y.deviceParams)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ja&&(d.context.user.credentialTransferTokens=
[{token:a.videoData.Ja,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.rb&&(d.context.user.kidsParent={oauthToken:a.videoData.rb});if(g.XA(a.u)){e=a.fairplayKeyId;f=[];for(k=0;k<e.length;k+=2)f.push(parseInt(e.substring(k,k+2),16));d.fairplayKeyId=g.Jc(f)}TIa(b,d,c,g.CE(a.videoData))}else RIa(b,a.url,a.videoData.oauthToken);a.status="rs"};
$Ia=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.u.flavor&&((a.Y.S("html5_drm_ignore_out_of_order_responses")||a.Y.S("html5_drm_ignore_out_of_order_responses_cfl"))&&zS(a,{drmOOO:a.requestNumber+"."+c},!0),a.Y.S("html5_drm_ignore_out_of_order_responses")))return;zS(a,{onlcsrsp:1});a.status="rr";0!==b.statusCode?a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0):(hx("drm_kr_s",void 0,a.videoData.xa),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.S("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.j&&(a.D=b.j,a.Y.S("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.nG&&a.ea("newlicense",new LIa({})),a.videoData.nG=!0),a.ma=Sm(a.D,function(d){return d.includes("HDR")})),b.u&&(a.j=Of(b.u,function(d){return{type:d,
status:"unknown"}})),VA(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Oc(ly(b.message)):WA(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=ky(g.Jc(b.message))),a.B&&(a.Ra(),zS(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){hx("drm_kr_f",void 0,a.videoData.xa);
BS(a)||(zS(a,{ksApiUnsup:1}),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Kc(d.message);
a.error("drm.keyerror",1,d)})),a.K&&(a.va=(0,g.R)()),g.XA(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
aJa=function(a,b){var c=b.j.getValue();c=new g.L(function(){bJa(a,b)},c);
g.H(a,c);c.start();g.Mi(b.j);a.Ra();zS(a,{rtyrq:1})};
dJa=function(a,b){for(var c=[],d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
eJa=function(a){var b={};b[a.status]=BS(a)?dJa(a,"."):a.D.join(".");return b};
fJa=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};
CS=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
zS=function(a,b,c){c=void 0===c?!1:c;a.Ra(xB(b));(c||hD(a.Y))&&a.ea("ctmp","drmlog",b)};
gJa=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};
ZIa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Bda(new DOMParser,g.sh(g.Rg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(hJa(Mc(a.childNodes[0].nodeValue)).buffer):null:null};
iJa=function(a,b,c,d){if(a=ky(g.Jc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Qca(c,d),g.Gr(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=OIa(e))&&e.message&&b.update(e.message)})};
DS=function(a,b,c,d,e){g.G.call(this);this.element=a;this.N=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.K=this.J=this.B=this.D=null;this.C=new g.dA(this);g.H(this,this.C);jJa(this)};
jJa=function(a){a.j?(a.C.T(a.j,"message",a.oS),a.C.T(a.j,"keystatuseschange",a.bp),a.j.closed&&a.j.closed.then(er(function(){a.isDisposed()||Vr("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(cv(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.EO),cv(a.C,a.u,["mskeyerror","webkitkeyerror"],a.DO),cv(a.C,a.u,["mskeyadded","webkitkeyadded"],a.CO))};
VIa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
kJa=function(a,b,c){g.dr(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
ES=function(a,b){g.G.call(this);this.element=a;this.j=b;this.J={};this.C=null;this.D=new g.dA(this);this.B=this.u=null;g.H(this,this.D)};
mJa=function(a,b){b=lJa(b,a.j.u);a=a.B.createSession("video/mp4",b);return new DS(null,null,null,null,a)};
nJa=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 DS(null,null,null,null,a)};
GS=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c};
lJa=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};
HS=function(a,b){g.G.call(this);this.j=g.Wh("video");this.u=null;this.D=[];this.C=new g.dA(this);this.B=new RA("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.H(this,this.C);this.init()};
IS=function(a,b,c,d){wS.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.L(function(){e.ea("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();oJa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.R)(),e.u.start(Math.max(0,f)))}},0);
g.H(this,this.u);d.subscribe("widevine_set_need_key_info",this.J,this)};
oJa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(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)};
JS=function(){this.keys=[];this.values=[]};
KS=function(a){a.keys=[];a.values=[]};
LS=function(a,b,c){g.ev.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.N;this.drmSessionId=this.videoData.drmSessionId||g.wpa();this.u=new Map;this.J=new JS;this.K=new JS;this.B=[];this.Ea=2;this.ma=new g.dA(this);this.Ia=this.xa=!1;this.heartbeatParams=null;this.va=this.X=!1;this.D=null;this.ya=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||SA()||ZA(c.experiments);c=this.videoData.gg;this.N="fairplay"===this.j.flavor||c?TD:pJa;this.C=new ES(this.element,this.j);g.H(this,
this.C);TA(this.j)&&(this.Z=new ES(this.element,this.j),g.H(this,this.Z));g.H(this,this.ma);c=this.element;this.j.keySystemAccess?this.ma.T(c,"encrypted",this.sS):cv(this.ma,c,TA(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.AX);qJa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":19.2999<Fma()?(a=c.K,c=c.J,c>=a&&(c=.75*a),b=.5*(a-c),c=new xS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new IS(a.ob("disable_license_delay"),!a.ob("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.XK,this),this.D.subscribe("log_qoe",this.Wg,this);this.Ra("Created, key system "+this.j.keySystem+", final EME "+ZA(this.Y.experiments));this.Wg({cks:this.j.Af()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ja=new HS(this.videoData.Dc,this.Y.experiments),g.H(this,this.Ja))};
qJa=function(a){var b=a.C.attach();b?b.then(er(function(){rJa(a)}),er(function(c){if(!a.isDisposed()){a.Ra();
g.dr(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Ra(),a.Wg({mdkrdy:1}),a.X=!0);
a.Z&&(b=a.Z.attach())};
tJa=function(a,b,c){a.Ia=!0;c=new fR(b,c);a.Y.S("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));sJa(a,c)};
sJa=function(a,b){if(!a.isDisposed()){a.Wg({onInitData:1});if(a.Y.S("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.Ra();a.Wg({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.xa&&!a.videoData.isLivePlayback)MS(a);else{if(!(a.Y.S("vp9_drm_live")&&a.videoData.isLivePlayback&&b.De)){a.xa=!0;c=b.cryptoPeriodIndex;var d=b.j;gHa(b);b.De||(d&&b.j!==d?a.ea("ctmp",
"cpsmm",{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ea("widevine_set_need_key_info",b)}}else a.XK(b)}};
rJa=function(a){if(!a.isDisposed())if(a.Y.S("html5_drm_set_server_cert")&&!g.MC(a.Y)){var b=a.C.setServerCertificate();b?b.then(er(function(c){hD(a.Y)&&a.ea("ctmp","ssc",{success:c})}),er(function(c){a.ea("ctmp","ssce",{n:c.name,
m:c.message})})).then(er(function(){NS(a)})):NS(a)}else NS(a)};
NS=function(a){a.isDisposed()||(a.X=!0,a.Ra(),a.Wg({onmdkrdy:1}),MS(a))};
uJa=function(a){return"widevine"===a.j.flavor&&a.videoData.S("html5_drm_cpi_license_key")};
MS=function(a){if(a.Ia&&a.X&&!a.va){for(;a.B.length;){var b=a.B[0],c=uJa(a)?hHa(b):g.Jc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}gHa(b);break}a.B.length&&a.createSession(a.B[0])}};
vJa=function(a){var b;if(b=g.Xr()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.py(b),a.ea("ctmp","drm",{metrics:b}))};
PS=function(a){g.G.call(this);var b=this;this.Ca=a;this.j=this.Ca.V();this.videoData=this.Ca.getVideoData();this.hx=0;this.J=this.B=!1;this.D=0;this.C=g.YA(this.j.experiments,"html5_delayed_retry_count");this.u=new g.L(function(){OS(b.Ca)},g.YA(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
RS=function(a,b,c){var d=a.videoData.u,e=a.videoData.J;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Ca.Mg.C&&d&&"22"===d.Zb())return a.Ca.Mg.C=!0,a.Hd("qoe.restart",{reason:"fmt.unplayable.22"}),QS(a.Ca),!0;var f=!1,k=a.hx+3E4<(0,g.R)()||a.u.isActive();if(a.j.S("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Hd("auth",c),!0;var l;if(l=!k)l=a.Ca.Co(),l=!!(l.Te()||l.isInline()||l.isBackground()||
l.It()||l.Et());l&&(c.nonfg="paused",k=!0,a.Ca.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:"mac3"===e.j||"MAC3"===e.j||"meac3"===e.j||"MEAC3"===e.j||"m"===e.j||"M"===e.j)&&a.videoData.S("html5_disable_multichannel_codec_on_decoding_error")&&(pua(a.j.u,e.j),c.acfallexp=e.j,f=k=!0);!k&&0<a.C&&(a.u.start(),k=!0,c.delayed="1",--a.C);e=a.Ca.Va;if(!k&&((null==d?0:$z(d))||(null==d?0:Yz(d)))){var m;if(a.videoData.S("html5_disable_codec_for_playback_on_error")&&e){l=e.u;var n=d.j;l.Sa.has(n)?
l=!1:(l.Sa.add(n),l.X=-1,UQ(l,l.j),l=!0);l&&(m="cfallp")}else pua(a.j.u,d.j),m="cfallexp";m&&(f=k=!0,c[m]=d.j)}if(!k)return wJa(a,c);a.hx=(0,g.R)();k=a.videoData;k.Ya?(k=k.Ya.xJ(),m=Date.now()/1E3+1800,k=k<m):k=!1;c.e=b;k&&(c.staleprog="1");a.Hd("qoe.restart",c);if(k&&xJa(a))return yJa(a),!0;Vr("philips")&&zJa(a);d&&$z(d)?(f=a.j.u,f.X=!0,f=f.j=!0):e?(b=(b=BR(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.N+=1,YQ(e.u,b,!0)):a.videoData.Ya&&a.videoData.Ya.KH();a.u.isActive()||OS(a.Ca,f);return!0};
wJa=function(a,b){if(a.videoData.ib)return!1;a.j.ib+=1;if(10>=a.j.ib)return!1;b.exiled=""+a.j.ib;a.Hd("qoe.start15s",b);a.Ca.ea("playbackstalledatstart");return!0};
zJa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}};
xJa=function(a){return a.B?!0:"yt"!==a.j.ya?!1:a.videoData.ib?25>a.videoData.vb:!a.videoData.vb};
yJa=function(a){if(!a.B){a.B=!0;var b=a.Ca.getPlayerState();b=g.V(b,4)||b.isSuspended();a.Ca.Wm();b&&!DE(a.videoData)||a.Ca.ea("signatureexpired")}};
AJa=function(a,b){if((a=a.Ca.yd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Cj();b.details.merr=c?c.toString():"0";b.details.msg=a.He()}};
CJa=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="19072";if(xJa(a))return zB(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new g.yB("qoe.restart",b)),a.Hd(b.errorCode,b.details),yJa(a),!0;6048E5<(0,g.R)()-a.j.Pd&&BJa(a,"signature");return!1};
BJa=function(a,b){try{window.location.reload();a.Hd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.S("tvhtml5_retire_old_players")&&g.MC(a.j)&&zJa(a)};
DJa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.Hd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});QS(a.Ca)};
EJa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
SS=function(a,b,c){this.Y=a;this.vy=b;this.Ca=c;this.X=this.J=this.K=this.u=this.j=this.D=this.N=this.B=0;this.playbackRate=1;this.C=!1};
GJa=function(a,b,c){!a.Y.S("html5_tv_ignore_capable_constraint")&&g.MC(a.Y)&&(c=c.compose(FJa(a,b)));return c};
HJa=function(a,b){return 1<a.playbackRate?(a=lua(a.Y.u,b.j.videoInfos,a.playbackRate),new Ex(0,a,!0,"o")):new Ex(0,0,!1,"o")};
IJa=function(a,b){var c=b.videoData.YE;if(a.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.JI&&Hx(b.videoData.ej))a=c.JI,b.videoData.ej=new Ex(0,a,!1,"u");else{var d;if(c&&(null==(d=c.iE)?0:d.length)&&Hx(b.videoData.ej)){a=new Map;d=g.r(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.Zb(),e.video.j);d=[];c=g.r(c.iE);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.ej=new Ex(0,a,!1,"u")}}return b.videoData.ej};
FJa=function(a,b){if(g.MC(a.Y)&&Ox(a.Y.u,Px.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;CC(a.Y)&&(e=window.screen&&window.screen.width?new g.Ch(window.screen.width,window.screen.height):null);e||(e=a.Y.zj?a.Y.zj.clone():a.vy.Gg());(EC||DQ||d)&&e.scale(g.VC());d=e;dE(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||AC||(e=.45);a=g.YA(a.Y.experiments,"html5_viewport_undersend_maximum");for(f=0;f<
b.length;f++){c=b[f];var k=c.video;if(null===d||k.width*e<d.width&&k.height*e<d.height){a&&f&&k.width<d.width*a&&k.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.Zb()?g.Fx[Sz(d.width,d.height)]:d.j;c=new Ex(0,c,!1,"r")}else c=TD;c=c.j}c&&(c=Math.max(c,360));return new Ex(0,c,!1,"r")};
JJa=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:return a.j.j&&navigator.mediaCapabilities?g.A(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:b=g.r(a.j.videoInfos),c=b.next();case 3:if(c.done){e.Za(0);break}d=c.value;return g.A(e,eta(d),4);case 4:c=b.next(),e.Za(3)}})};
LJa=function(a,b){if(!b.videoData.u||a.S("html5_disable_performance_downgrade"))return!1;6E4<g.Va()-a.N&&(a.B=0);a.B++;a.N=g.Va();if(4!==a.B)return!1;KJa(a,b.videoData.u);return!0};
NJa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.YA(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.S("html5_log_media_perf_info"),k=g.YA(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.D?0:f||0<e||0<k))return!1;a.D=(0,g.R)();c=c.cz();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.X;a.J=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&hD(a.Y)&&a.Ca.Aa("ddf",
{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:n});if(d)return a.j=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<k&&60*d>k?a.u+1:0;if(!e||g.MC(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;KJa(a,b.videoData.u);a.Ca.Aa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},MJa()));return!0};
OJa=function(a,b){return 0>=g.YA(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
KJa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=NA();c=Vta(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.bw("yt-player-performance-cap",e,604800));a.Ca.Ku()};
PJa=function(a,b){if(!b.j.j)return a.C?new Ex(0,360,!1,"b"):TD;for(var c=!1,d=!1,e=g.r(b.j.videoInfos),f=e.next();!f.done;f=e.next())$z(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.YA(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!$z(e))if(f=OA(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new Ex(0,d,!1,"b")};
QJa=function(a){a=a.Ca.Co();return a.isInline()?new Ex(0,480,!1,"v"):a.isBackground()&&60<Au()/1E3?new Ex(0,360,!1,"v"):TD};
SJa=function(a,b,c){if(a.Y.experiments.ob("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.MC(a.Y)&&(1080<=MA(-1)||b.osid))return TD;var d=g.YA(a.Y.experiments,"html5_autonav_quality_cap"),e=g.YA(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.wl&&Au()/1E3>e?(c&&(d=RJa(a,c,d)),new Ex(0,d,!1,"e")):TD};
RJa=function(a,b,c){if(a.S("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
TJa=function(a,b){a.S("html5_log_media_perf_info")&&(a.Ca.Aa("perfdb",MJa()),a.Ca.Aa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.Ca.Aa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.u)?void 0:d.smooth)}).map(function(c){return c.Zb()}).join("-")}))};
MJa=function(){return Of(NA(),function(a){return""+a})};
TS=function(a,b){g.G.call(this);this.j=a;this.K=b;this.u=-1;this.J=!1;this.B=-1;this.playerState=new g.tH;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.L(this.send,6E4,this);this.C=!1;g.H(this,this.delay)};
US=function(a){0<=a.u||(3===a.j.Ca.getVisibilityState()?a.J=!0:(a.u=g.GP(a.j),a.delay.start()))};
UJa=function(a){if(!(0>a.B)){var b=g.GP(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.BH(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
VS=function(a,b){b?VJa.test(a):(a=g.kr(a),Object.keys(a).includes("cpn"))};
WS=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(nr(a)&&or()){if(k){var n;2!==(null==(n=WJa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=WJa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.P("EOM_VISITOR_DATA",void 0);b.S("enable_web_eom_visitor_data")&&
k?m["X-Goog-EOM-Visitor-Id"]=k:d?m["X-Goog-Visitor-Id"]=d:b.S("enable_visitor_header_for_vss")&&!g.P("LOGGED_IN")&&g.P("VISITOR_DATA",void 0)&&(m["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.S("html5_send_cpn_with_options")&&VJa.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};
XS=function(a,b,c,d,e,f,k,l){or()&&c.token&&(a=lr(a,{ctt:c.token,cttype:c.nI,mdx_environment:c.mdxEnvironment}));f||l&&d.S("nwl_skip_retry")?(null==b?b={}:VS(a,d.S("html5_assert_cpn_with_regex")),k?d.S("use_new_nwl_saw")?Tt().sendAndWrite(a,b):au(a,b):d.S("use_new_nwl_stw")?Tt().sendThenWrite(a,b,l):$t(a,b,l)):d.lh?(b=b||{},VS(a,d.S("html5_assert_cpn_with_regex")),d.lh.enqueue(a,b)):b?(VS(a,d.S("html5_assert_cpn_with_regex")),g.Dr(a,b)):g.Kt(a,e)};
g.ZS=function(a){g.G.call(this);var b=this;this.j=a;this.logger=new g.oQ("qoe");this.u={};this.sequenceNumber=1;this.Wa=NaN;this.Md="N";this.N=this.qb=this.Ya=this.Qa=this.C=0;this.Ea=this.rb="";this.ib=this.ma=NaN;this.Xa=0;this.vb=-1;this.jb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Sa=this.xa=this.isOffline=this.va=!1;this.Gb=[];this.Z=null;this.D=this.Ja=this.J=!1;this.B=-1;this.Ia=!1;this.Db=new g.L(this.RU,750,this);this.X=this.adCpn="";this.adFormat=void 0;this.Lb=0;this.Hb=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
g.H(this,this.Db);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.YS(this,0,"vps",["N"])};
g.YS=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
$S=function(a,b){var c=a.j.Ca.getCurrentTime();g.YS(a,b,"cmt",[c.toFixed(3)]);c=a.j.Ca.Mh();if(a.K&&1E3*c>a.K.WN+100&&a.K){var d=a.K,e=d.isAd;c=1E3*c-d.WN;a.ya=1E3*b-d.HZ-c-d.wZ;if(!a.j.videoData.S("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.ya;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.S("web_player_csi_ctt_killswitch")&&d.X&&(k.cttAuthInfo={token:d.X,videoId:d.videoId});k.startTime=c-b;jx(f,k);ix({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);hx("pbs",c,f)}else c=a.j.Ca.Ki(),c.K!==d.clientPlaybackNonce?(c.J=d.clientPlaybackNonce,c.B=b):g.Ov(new g.Fs("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.Aa("gllat",{l:a.ya.toFixed(),prev_ad:+e});delete a.K}};
aT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.GP(a.j);var c=a.j.Ca.wA();if(!isNaN(a.ma)&&!isNaN(c.j)){var d=c.j-a.ma;0<d&&g.YS(a,b,"bwm",[d,(c.C-a.ib).toFixed(3)])}isNaN(a.ma)&&c.j&&a.isOffline&&XJa(a,!1);a.ma=c.j;a.ib=c.C;isNaN(c.bandwidthEstimate)||g.YS(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);hD(a.j.Y)&&0!==Object.keys(c.u).length&&a.Aa("bwinfo",c.u);if(hD(a.j.Y)||a.j.Y.S("html5_log_meminfo"))d=nIa(),Object.values(d).some(function(e){return void 0!==e})&&a.Aa("meminfo",d);
a.Z&&g.YS(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.j.Ca.getVisibilityState();a.vb!==d&&(g.YS(a,b,"vis",[d]),a.vb=d);$S(a,b);(d=YJa(a.j))&&d!==a.Xa&&(g.YS(a,b,"conn",[d]),a.Xa=d);ZJa(a,b,c)};
ZJa=function(a,b,c){if(!isNaN(c.aq)){var d=c.aq;c.B<d&&(d=c.B);g.YS(a,b,"bh",[d.toFixed(3)])}};
bT=function(a){for(var b=0,c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Ml(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.L(a.reportStats,0,a)).start()};
$Ja=function(a){a.j.videoData.md&&cT(a,"prefetch");a.j.videoData.vb&&a.Aa("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.vb});a.j.videoData.qb&&cT(a,"monitor");a.j.videoData.isLivePlayback&&cT(a,"live");a.j.videoData.xg&&a.Aa("ctrl",{mode:a.j.videoData.xg},!0);if(a.j.videoData.Og){var b=a.j.videoData.Og.replace(/,/g,"_");a.Aa("ytp",{type:b},!0)}a.j.videoData.wM&&(b=a.j.videoData.wM.replace(/,/g,"."),a.Aa("ytrexp",{ids:b},!0));if(!a.j.Y.S("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.Y.S("enable_white_noise")||a.j.Y.S("enable_webgl_noop")||a.j.Y.S("enable_gpu_logging");c=g.uE(c)||g.sE(c)||g.tE(c)||g.vE(c);(b||c)&&(b=(0,g.dT)())&&(a.u.gpu=[b])}DE(a.j.videoData)&&g.YS(a,g.GP(a.j),"dt",["1"]);hD(a.j.Y)&&(b=(0,g.R)()-a.j.Y.Pd,a.Aa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.Wa=g.yr(function(){a.reportStats()},1E4)};
bKa=function(a,b,c){var d=g.GP(a.j);aKa(a,d,b,0,c);aT(a,d);bT(a)};
aKa=function(a,b,c,d,e){var f=a.j.Ca.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(cKa(e));g.YS(a,b,"error",c);a.D=!0};
eT=function(a){0<=a.B||(a.j.Y.Wc||3!==a.j.Ca.getVisibilityState()?a.B=g.GP(a.j):a.Ia=!0)};
cT=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
XJa=function(a,b){a.isOffline=b;g.YS(a,g.GP(a.j),"is_offline",[a.isOffline?"1":"0"])};
dKa=function(a,b,c,d,e){var f=g.GP(a.j);1===b&&g.YS(a,f,"vps",[a.Md]);var k=a.u.xvt||[];k.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=k};
cKa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
eKa=function(a){this.j=a;this.N=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.J=0;this.Z=this.j.Nh().volume;this.X=this.j.Nh().muted;this.C=fT(this.j)};
gT=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Yb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.J+=a.u-a.B;a.C=fT(a.j);a.B=a.u};
fKa=function(a){a.segments.length&&a.u===a.B||gT(a);var b=a.segments;a.segments=[];return b};
hKa=function(a){gKa(a);a.K=g.yr(function(){a.update()},100);
a.lastUpdateTime=g.GP(a.j);a.C=fT(a.j)};
gKa=function(a){g.Ar(a.K);a.K=NaN};
iKa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
hT=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Qa=this.vb=this.isFinal=this.Cd=this.rb=this.autoplay=this.autonav=!1;this.Gb="yt";this.J=this.K=null;this.sendVisitorIdHeader=this.Wa=!1;this.pageId="";this.B="watchtime"===c;this.C="playback"===c;this.ma="delayplay"===c;this.Z="atr"===c;this.Pd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.Aj+"/api/stats/"+c;this.rf=!b.S("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.vb=d.fs,d.rtn&&(this.J=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Qd=d.mos,this.Bi=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Lb=d.inview),d.size&&(this.Hb=d.size));this.deviceParams=g.gg(b.deviceParams);this.md=b.md;b.S("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Sa=b.Qf;this.Gb=b.ya;this.region=
b.region;this.userAge=b.userAge;this.jb=b.Rf;this.Xb=Au();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.va=b.S("vss_pings_using_networkless")||b.S("kevlar_woffle");this.Ud=b.S("vss_final_ping_send_and_write");this.xa=b.S("vss_use_send_and_write");this.pageId=b.pageId;this.me=b.S("vss_playback_use_send_and_write");this.Tb=b.S("use_new_nwl_saw");this.Ub=b.S("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.bd=b.j&&b.S("embeds_append_synth_ch_headers");g.xC(b)&&
!b.S("embeds_rct_killswitch")&&(this.embedsRct=b.embedsRct);g.xC(b)&&!b.S("embeds_enable_epm_killswitch")&&(this.Ja=b.bj);this.accessToken=g.CE(a);a.JK&&(this.D=a.JK);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=BE(a);this.autonav=a.wl||this.autonav;this.ag=zE(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.rb=a.D;a.X&&(this.N=a.X,this.qb=a.wi);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Gv;this.Ia=a.Gb;a.u&&(this.videoFormat=a.u.Zb(),a.J&&a.J.Zb()!==
this.videoFormat&&(this.audioFormat=a.J.Zb()));a.j&&Lx(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.rf?"embedded_unbranded":yE(a);this.Qa=a.rf;this.lc=a.vk;if(b=nE(a))this.oe=b;this.Dc=a.Vl;this.eventId=a.eventId;this.playlistId=a.wN||a.playlistId;this.xg=a.xg;this.Og=a.Og;this.Wc=a.Iv;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Pc=a.I_;this.referrer=a.referrer;this.Xa=a.ML||a.lN;this.Ya=
a.Kv;this.ib=a.M_;this.userGenderAge=a.userGenderAge;this.Ea=a.QZ};
iT=function(a,b){return WS(a.uri,a.Y,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.bd)};
jKa=function(a,b){return function(){if(a.Y.S("html5_simplify_pings"))a.j=a.ya,a.Rb=b(),a.Xb=0,a.send();else{var c=a.uri,d=jT(a),e=iT(a),f=a.va,k=a.xa,l=a.Tb,m=a.Ub;l=void 0===l?!1:l;m=void 0===m?!1:m;d.cmt=d.len;d.lact="0";var n=b().toFixed(3);d.rt=Number(n).toString();c=g.nj(c,d);f?(null==e&&(e={}),k?l?Tt().sendAndWrite(c,e):au(c,e):m?Tt().sendThenWrite(c,e):$t(c,e)):e?g.Dr(c,e):g.Kt(c)}}};
jT=function(a){var b={ns:a.Gb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.vb?"1":"0",rt:a.u(a.Rb),adformat:a.adFormat,content_v:a.ag,etv:a.embedsTokenValue,euri:a.md,lact:a.Xb,live:a.oe,cl:(436074049).toString(),mos:a.Qd,state:a.playerState,volume:a.Bi};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.rb&&(b.dni="1");!a.B&&a.Ja&&(b.epm=kKa[a.Ja]);a.isFinal&&(b["final"]="1");a.Qa&&(b.splay="1");a.Ia&&(b.delay=a.Ia);
a.Sa&&(b.hl=a.Sa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.jb&&(b.uga=a.jb+a.userAge);void 0!==a.ya&&(b.len=a.u(a.ya));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.J&&(b.rtn=a.u(a.J));a.Xa&&(b.feature=a.Xa);a.xg&&(b.ctrl=a.xg);a.Og&&(b.ytr=a.Og);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Db&&(b.lio=a.u(a.Db));a.B?(b.idpj=a.lc,b.ldpj=a.Dc,null!=a.K&&(b.rti=
a.u(a.K)),a.Ea&&(b.ald=a.Ea)):void 0!==a.adType&&(b.at=a.adType);a.Hb&&(a.C||a.ma||a.B)&&(b.size=a.Hb);null!=a.Lb&&(a.C||a.ma||a.B)&&(b.inview=a.u(a.Lb));a.B&&(b.volume=kT(a,g.Kl(a.segments,function(d){return d.volume})),b.st=kT(a,g.Kl(a.segments,function(d){return d.startTime})),b.et=kT(a,g.Kl(a.segments,function(d){return d.endTime})),Sm(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=kT(a,g.Kl(a.segments,function(d){return d.playbackRate}))),Sm(a.segments,function(d){return"-"!==d.j})&&
(b.als=g.Kl(a.segments,function(d){return d.j}).join(",")));
b.muted=kT(a,g.Kl(a.segments,function(d){return d.muted?1:0}));
Sm(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=kT(a,g.Kl(a.segments,function(d){return d.visibilityState})));
Sm(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=kT(a,g.Kl(a.segments,function(d){return d.connectionType})));
Sm(a.segments,function(d){return 0!==d.u})&&(b.blo=kT(a,g.Kl(a.segments,function(d){return d.u})));
Sm(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Kl(a.segments,function(d){return d.C}).join(","));
Sm(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Kl(a.segments,function(d){return d.clipId}).join(","));
if(Sm(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.Kl(a.segments,function(d){return d.B}).join(",")}or()&&a.N&&(b.ctt=a.N,b.cttype=a.qb,b.mdx_environment=a.mdxEnvironment);
a.Pd&&(b.etype=void 0!==a.X?a.X:0);a.Ya&&(b.uoo=a.Ya);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=lKa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D&&a.Y.S("html5_log_server_url_param")?mKa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.Pc,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.Wc&&(b.ssrt="1"),a.ib&&(b.upt=a.ib));(a.C||a.ma)&&a.embedsRct&&
(b.rct=a.embedsRct);return b};
mKa=function(a,b){if(b&&a.D)for(var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]),f=g.r(Object.keys(a.D)),k=f.next();!k.done;k=f.next())k=k.value,d.has(k)||c.has(k)||e.has(k)&&!a.D[k]||(b[k]=a.D[k])};
kT=function(a,b){return g.Kl(b,a.u).join(",")};
lT=function(a){g.G.call(this);this.j=a;this.currentPlayerState="paused";this.B=NaN;this.J=[10,10,10,40];this.N=this.K=0;this.va=this.ma=this.ya=this.xa=this.Z=this.X=this.C=!1;this.D=NaN;this.u=new eKa(a)};
oKa=function(a){if(!a.C){a.j.Y.S("disable_embedpage_playback_logging")||16623!==a.j.videoData.gy||g.Ov(Error("Playback for EmbedPage"));var b=mT(a,"playback");a:{if(a.j.Y.S("web_player_use_server_vss_schedule")){var c,d=null==(c=a.j.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.j.videoData.vk,k=a.j.videoData.Vl,l=-f;e=g.r(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+k-f);c.push(d);a.J=c;break a}}a.J=[10+a.j.videoData.vk,10,10,40+a.j.videoData.Vl-a.j.videoData.vk,40]}hKa(a.u);b.J=nT(a,!0);0<a.D&&(b.j-=a.D);b.send();a.j.videoData.Hr&&(b=a.j.Y,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Hr,oid:d.xK,ptchn:d.wK,pltype:d.yK,content_v:zE(d)},d.Eq&&Object.assign(c,{m:d.Eq}),b=g.nj(b.Ea+"ptracking",c),oT(a,b));a.j.videoData.Gb||nKa(a);a.C=!0;a=a.u;a.u=a.j.Ca.getCurrentTime();
a.j.Y.S("html5_vss_media_time_killswitch")||(a.u=a.j.Ca.Mh());a.lastUpdateTime=g.GP(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.N=!0}};
nT=function(a,b,c){c=void 0===c?NaN:c;var d=g.GP(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.J[a.K];a.K+1<a.J.length&&a.K++;var f=c+e;a.B=g.tr(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var k=fKa(a.u),l=pKa(a,k);b&&(l.K=f);var m=1E3<a.N;!(1<k.length)&&k[0].isEmpty()||m||(l.J=nT(a,!0,f));l.send();a.N++}},1E3*(f-d));
return f};
mT=function(a,b){var c=a.j;c=Object.assign(c.Nh(),c.videoData.Nh());Object.assign(c,{state:a.currentPlayerState});b=new hT(a.j.videoData,a.j.Y,b,c);b.j=a.j.Ca.getCurrentTime();a.j.Y.S("html5_vss_media_time_killswitch")||(b.j=a.j.Ca.Mh());a.j.videoData.isLivePlayback||(b.ya=a.j.Ca.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.Db=c-b.j);b.Rb=g.GP(a.j);b.segments=[fT(a.j)];return b};
pKa=function(a,b){var c=mT(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.j-=a.D}else c.j=a.u.u;c.segments=b;return c};
pT=function(a){a.u.update();return pKa(a,fKa(a.u))};
nKa=function(a){a.j.videoData.remarketingUrl&&!a.xa&&(oT(a,a.j.videoData.remarketingUrl),a.xa=!0);a.j.videoData.youtubeRemarketingUrl&&!a.ya&&(oT(a,a.j.videoData.youtubeRemarketingUrl),a.ya=!0);a.j.videoData.googleRemarketingUrl&&!a.ma&&(oT(a,a.j.videoData.googleRemarketingUrl),a.ma=!0);a.j.videoData.ppvRemarketingUrl&&!a.va&&(oT(a,a.j.videoData.ppvRemarketingUrl),a.va=!0);a.Mu()};
qT=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=pT(a);b.isFinal=!0;b.send();a.dispose()}};
qKa=function(a,b,c){if(!a.X){c||(c=mT(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.X=!0}};
oT=function(a,b){var c=g.CE(a.j.videoData),d=a.j.Y,e=a.j.S("web_player_vss_pageid_header")?a.j.Y.pageId:void 0,f=a.j.Y.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,k=a.j.Y.S("vss_pings_using_networkless")||a.j.Y.S("kevlar_woffle"),l=a.j.Y.S("allow_skip_networkless");c=WS(b,d,e,f,c,void 0);XS(b,c,{token:a.j.videoData.X,nI:a.j.videoData.wi,mdxEnvironment:a.j.videoData.mdxEnvironment},d,void 0,k&&!l,!1,!0)};
rKa=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.j=this.clipId="-"};
rT=function(a,b,c,d){this.videoData=a;this.Y=b;this.Ca=c;this.Nh=d;this.j=void 0};
g.GP=function(a){return sKa(a)()};
sKa=function(a){if(!a.j){var b=g.Ua(function(d){var e=(0,g.R)();d&&631152E6>=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.S("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.Ca.ZG()}return a.j};
YJa=function(a){if(navigator.connection&&navigator.connection.type)return tKa[navigator.connection.type]||tKa.other;if(g.MC(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
fT=function(a){var b=new rKa;b.C=a.Nh().cc||"-";b.playbackRate=a.Ca.getPlaybackRate();var c=a.Ca.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Tb&&(b.u=1);c=a.Ca.getAudioTrack();c.Fc&&c.Fc.id&&"und"!==c.Fc.id&&(b.B=c.Fc.id);b.connectionType=YJa(a);b.volume=a.Nh().volume;b.muted=a.Nh().muted;b.clipId=a.Nh().clipid||"-";b.j=a.videoData.HK||"-";return b};
g.sT=function(a){g.G.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.hg=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.bj&&(this.j=new lT(this.u),g.H(this,this.j),this.qoe=new g.ZS(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.hg=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.hg,this.j));this.C=new TS(this.u,function(c){b.Aa("h5h",c)});
g.H(this,this.C)};
uKa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.hg){var b;null!=(b=a.B.get(a.hg))&&gT(b.u)}else a.j&&gT(a.j.u)};
vKa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Md&&(b.Md="N");var c=g.GP(b.j);g.YS(b,c,"vps",[b.Md]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);hD(b.j.Y)&&b.Aa("finalized",{});b.xa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())qT(c.value);else a.j&&qT(a.j);a.dispose()};
wKa=function(a,b){a.j&&qKa(a.j,b)};
xKa=function(a){if(!a.j)return null;var b=mT(a.j,"atr");return function(c){a.j&&qKa(a.j,c,b)}};
yKa=function(a,b,c,d){c.adFormat=c.Xb;var e=b.Ca;b=new lT(new rT(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Mh:function(){return e.Mh()},
wA:function(){return e.wA()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Qw:function(){return e.Qw()},
getVisibilityState:function(){return e.getVisibilityState()},
Ki:function(){return e.Ki()},
ZG:function(){e.ZG()},
Cx:function(){e.Cx()}},b.Nh));
b.D=d;g.H(a,b);return b};
zKa=function(){this.aq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
AKa=function(){this.u=g.Fw;this.j=[]};
CKa=function(a,b,c){var d=[];for(b=BKa(a,b);b<a.j.length;++b){var e=a.j[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
DKa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
EKa=function(a){return a.j.slice(BKa(a,0x7ffffffffffff),a.j.length)};
BKa=function(a,b){a=qc(a.j,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
FKa=function(a,b){var c=NaN;a=g.r(a.j);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};
GKa=function(a,b){a.j=a.j.filter(function(c){return!b.has(c)})};
tT=function(a,b,c,d){g.G.call(this);this.N=a;this.ma=b;this.D=c;this.X=d;this.u=NaN;this.J=this.K=this.started=!1;this.B=[];this.Z=new g.L(this.Dk,250,this);g.H(this,this.Z);this.C=new g.L(this.Dk,0,this);g.H(this,this.C);this.j=new AKa};
HKa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.X(g.Gw(d.namespace),d):a.X(g.Hw(d.namespace),d)}};
IKa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.MC(a)&&(this.C=.01)};
uT=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
vT=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!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};
JKa=function(a,b){this.videoData=a;this.j=b};
KKa=function(a,b,c){return Xwa(b,c).then(function(){return Jr(new JKa(b,b.C))},function(d){d instanceof Error&&fr(d);
d=b.isLivePlayback&&!g.eB(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.eB(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.jb,drm:""+ +eE(b),f18:""+ +(0<=b.cj.indexOf("itag=18")),c18:""+ +fA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(eE(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +gA('video/mp4; codecs="avc1.42001E"'),
f.cAAC=""+ +gA('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +gA('video/webm; codecs="vp9"'));if(b.N){f.drmsys=b.N.keySystem;var k=0;b.N.j&&(k=Object.keys(b.N.j).length);f.drmst=""+k}return new g.yB(d,f,e)})};
LKa=function(a){this.D=a;this.B=this.u=0;this.C=new rQ(50)};
xT=function(a,b,c){g.ev.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new MKa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.qb?c.u=3:g.qE(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=Pwa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===jE(a)&&(c.J=g.YA(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Vr("trident/")||Vr("edge/"))d=g.YA(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
d);g.YA(b,"html5_minimum_readahead_seconds")&&(c.B=g.YA(b,"html5_minimum_readahead_seconds"));g.YA(b,"html5_maximum_readahead_seconds")&&(c.X=g.YA(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.YA(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.YA(b,"html5_allowable_liveness_drift_chunks"));g.YA(b,"html5_readahead_ratelimit")&&(c.Z=g.YA(b,"html5_readahead_ratelimit"));switch(jE(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.qb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(jE(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=wT(this,b);this.Ra()};
NKa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.K&&3===Pwa(a.videoData)&&--c;return yT(a)*c};
zT=function(a,b){var c=a.Ij(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*yT(a);return b>=c-a};
OKa=function(a,b,c){b=zT(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
PKa=function(a,b){b=zT(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
yT=function(a){return a.videoData.j?JA(a.videoData.j)||5:5};
wT=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/yT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/yT(a))),b)};
MKa=function(){this.ma=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.N=!1};
CT=function(a){g.G.call(this);this.Ca=a;this.Y=this.Ca.V();this.C=this.j=0;this.B=new g.L(this.D,1E3,this);this.ya=new AT({delayMs:g.YA(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new AT({delayMs:g.YA(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ea=BT(this,"html5_seek_set_cmt");this.ma=BT(this,"html5_seek_jiggle_cmt");this.va=BT(this,"html5_seek_new_elem");this.Qa=BT(this,"html5_unreported_seek_reseek");this.K=BT(this,"html5_long_rebuffer_jiggle_cmt");this.N=new AT({delayMs:2E4});
this.J=BT(this,"html5_ads_preroll_lock_timeout");this.Ia=new AT({delayMs:g.YA(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ps:!this.Y.S("html5_report_slow_ads_as_error")});this.Ja=new AT({delayMs:g.YA(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ps:!this.Y.S("html5_skip_slow_buffering_ad")});this.xa=BT(this,"html5_seek_over_discontinuities");this.Sa=new AT({delayMs:g.YA(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=BT(this,"html5_slow_start_no_media_source");
this.u={};g.H(this,this.B)};
BT=function(a,b){var c=g.YA(a.Y.experiments,b+"_delay_ms");a=a.Y.S(b+"_cfl");return new AT({delayMs:c,Ps:a})};
QKa=function(a,b,c,d,e,f,k){var l=nA(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&&k&&m;var n=l+1<c.length?c.start(l+1):d;DT(a,a.xa,m&&!e,f&&!k,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
DT=function(a,b,c,d,e,f,k){RKa(b,c)?(a.Hd(e,b,k),b.Ps||f()):(b.WB&&b.triggerTimestamp&&!b.B?(c=(0,g.R)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.WB,c=b.j&&c-b.j>b.yH||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Nb(b)),c.wn=k,c.we=e,c.wsuc=d,a.Ca.Aa("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))};
AT=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.yH?1E3:b.yH,d=void 0===b.WB?3E4:b.WB;b=void 0===b.Ps?!1:b.Ps;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.yH=c;this.WB=d;this.Ps=b};
RKa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();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};
FT=function(a){g.G.call(this);var b=this;this.Ca=a;this.Y=this.Ca.V();this.videoData=this.Ca.getVideoData();this.policy=new SKa(this.Y);this.Z=new CT(this.Ca);this.playbackData=null;this.Ia=new g.dA;this.J=this.u=this.Va=this.qa=null;this.j=NaN;this.B=0;this.C=null;this.xa=NaN;this.D=this.K=null;this.X=this.N=!1;this.va=new g.L(function(){TKa(b,!1)},2E3);
this.Qa=new g.L(function(){ET(b)});
this.Ea=new g.L(function(){b.Ra();b.N=!0;UKa(b)});
this.timestampOffset=0;this.Ja=!0;this.ya=0;this.Sa=NaN;this.ma=new g.L(function(){var c=b.Y.Pc;c.j+=1E4/36E5;c.j-c.B>1/6&&(Tua(c),c.B=c.j);b.ma.start()},1E4);
g.H(this,this.Z);g.H(this,this.Ia);g.H(this,this.va);g.H(this,this.Ea);g.H(this,this.Qa);g.H(this,this.ma)};
VKa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new LKa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(aE(a.videoData)&&a.Va){var c=a.Va.Ia.Eg()||0;break a}if(a.videoData.j){c=a.videoData.j.va;break a}}c=0}return c}),a.u=new xT(a.videoData,a.Y.experiments,function(){return a.xd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
IT=function(a,b){(a.Va=b)?GT(a,!0):HT(a)};
WKa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.getSegmentNumberForTime(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.qa?rH(a.qa):0,d.C++,3>d.C||g.Va()-d.J<d.policy.Z||(d.J=g.Va(),d.u.push(e),50<d.u.length&&d.u.shift(),d.Ra())),d=a.u,OKa(d,c,void 0===b?!0:b),PKa(d,c),b&&TKa(a,!0))};
TKa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!zT(c,d)&&c.Hm()?(c.Ra(),c.policy.N&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.Ra(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.Ij())):c=NaN;if(!isNaN(c)){if(a.Va&&b&&(b=a.va.isActive(),d=a.u.Ij(),(d=IIa(a.Va,d-a.qd()))&&!b)){a.va.start();a.Ca.Aa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.qd()});a.seekTo(d+a.qd(),{re:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{re:"playbacktimeline_pegToLive"})}}};
GT=function(a,b){if(a.u&&a.Va){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.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.Ra();var d=wT(b,b.j-1);break b}if(b.policy.C){b.Ra();d=wT(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.Ra(),b.u=[],b.C=0}else c=!1;c&&(c=a.Ca.dc,b=NKa(a.u),c.qoe&&(c=c.qoe,g.YS(c,g.GP(c.j),"lra",[b]),c.Aa("live-readahead-seconds",{v:b})));b=a.Va;c=a.u.j;d=a.u;
d=(d.j-1+d.policy.j)*yT(d);a=a.u.policy.J;b.Ze=Math.max(c-1,0);b.D&&(b.D.ma=d);b.jb=a}};
XKa=function(a,b){a.B=b};
JT=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.j};
UKa=function(a){YKa(a).then(void 0,function(){HT(a)});
KT(a).then(function(c){ZKa(a,c)},function(){HT(a)});
WP(a.Ca);if(2<=a.Y.X){var b=a.Nb();b["native"]=""+ +a.X;b.tgt=""+a.j;a.Ca.Aa("startSeek",b)}};
YKa=function(a){if(!a.K)if(a.Va)if(isFinite(a.j))a.Ra(),a.K=a.Va.seek(a.j-a.timestampOffset);else{a.Ra();var b=a.Va;gS(b);b.D&&jIa(b.D,b.videoTrack.j);g.qp(b.ma);b=b.J;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);JHa(b.videoTrack);JHa(b.audioTrack);var d=b.j,e;for(e in d.j)Qra(d.j[e].index,Infinity);b.j.isManifestless&&(b.C=!0);b.Va.currentTime=c;b.u=!0;b.D=new xP;a.K=b.D;a.j=a.Va.getCurrentTime()+a.timestampOffset}else a.K=ri(a.j-a.timestampOffset);return a.K};
KT=function(a){var b=a.C;b||(a.C=new xP,b=a.C,ET(a));return b};
$Ka=function(a,b,c){return isNaN(b)?NaN:g.wh(b,a.getMinSeekableTime(),a.xd(c))};
ET=function(a){if(a.C)if(!a.S("html5_nondash_live_seek_killswitch")&&JT(a)&&a.qa&&0<a.qa.Ih()&&0<qH(a.qa)&&(a.j=$Ka(a,a.j,!1)),!a.qa||!aLa(a))a.Qa.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.xa!==a.j-a.timestampOffset){var b=a.qa.getCurrentTime()-a.j;if(Math.abs(b)<=a.ya)bLa(a);else if(!a.videoData.isLivePlayback&&a.j>=a.xd()-.1)a.j=a.xd(),a.C.resolve(a.xd()),HP(a.Ca);else try{var c=a.j-a.timestampOffset;a.Ra();a.qa.seekTo(c);a.Z.j=c;a.xa=c;a.B=a.j}catch(d){a.Ra()}}};
aLa=function(a){if(!a.qa||0===a.qa.Ih()||0<a.qa.Cj())return!1;var b=0<a.qa.getCurrentTime();if(!(a.S("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&eE(a.videoData))return b;if(0<=a.j){var c=a.qa.Ow();if(c.length||!b)return oA(c,a.j-a.timestampOffset)}return b};
bLa=function(a){a.C?a.C.resolve(a.qa.getCurrentTime()):a.Ra()};
ZKa=function(a,b){a.Ra();a.D&&(a.D.resolve(b),a.Ca.ea("SEEK_COMPLETE"),2<=a.Y.X&&(b=a.Nb(),b["native"]=""+ +a.X,a.Ca.Aa("seekEnd",b)));cLa(a)};
cLa=function(a){a.j=NaN;a.xa=NaN;a.C=null;a.K=null;a.D=null;a.N=!1;a.X=!1;a.ya=0;a.va.stop();a.Ea.stop()};
HT=function(a){a.D&&a.Ra();cLa(a)};
dLa=function(a){if(a.qa){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ia.T(a.qa,c.value,function(d){var e=a.qa;d=d.type;a.Ra();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.X&&d!==a.j)a.C=new xP,a.xa=d,e=e.getCurrentTime(),a.Z.j=e,a.seekTo(d,{re:"playbacktimeline_mediaElementEvent"}),a.X=!0;break;case "seeked":bLa(a);break;case "loadedmetadata":if(a.Ja){e="ss";d=0;(rE(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.j?(d=a.videoData.liveUtcStartSeconds||a.videoData.Tb,e="utc",d=a.xd()-a.getIngestionTime(a.xd())+d):a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Tb?(e="mss",d=a.videoData.Tb+a.qd()):a.videoData.Fp&&(e="stss",d=a.videoData.Fp);var f={};d?(a.seekTo(d,{re:"playbacktimeline_startSeconds"}),f[e]=d,a.Ca.Aa("startSeconds",f),a.Ja=!1):a.videoData.Tb&&(f[e]=a.videoData.Tb+a.qd(),a.Ca.Aa("startSeconds",
f));e=!!d}else e=!1;a.S("html5_nondash_live_seek_killswitch")&&!e&&JT(a)&&(a.j=isFinite(a.j)?g.wh(a.j,a.getMinSeekableTime(),a.xd()):a.xd());ET(a);break;case "progress":ET(a)}});
a.D||a.B||a.policy.u||!a.qa.CH()||a.seekTo(.01,{re:"playbacktimeline_setupMediaElement"})}};
eLa=function(a,b){a.j=b;a.B=b;KT(a).then(function(c){ZKa(a,c)},function(){HT(a)})};
SKa=function(a){this.j=a.S("html5_live_smoothly_extend_max_seekable_time");this.u=a.S("html5_requires_seek_for_playback_at_zero_killswitch")};
LT=function(){this.finished=this.started=!1};
MT=function(a){this.j=a;this.iv=hJa(ov(16))};
fLa=function(a,b,c){var d;return g.B(function(e){var f=a.j;f.u||(f.u=new $B(f.j));d=f.u;return e.return(d.decrypt(b,c))})};
NT=function(a){g.G.call(this);this.j=a;this.logger=new g.oQ("onesie");this.Od=new Map;this.u=!1};
xR=function(a,b){return a.Od.has(b)};
pIa=function(a,b){return(a=a.Od.get(b))?a.GN:[]};
EHa=function(a,b,c){a.Od.get(b).Gd=c};
PT=function(a,b){xR(a,b)&&(a.Od.get(b).ue=new dy,OT(a,b))};
gLa=function(a){for(var b=g.r(a.Od),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Gd||PT(a,c)}};
qIa=function(a,b){var c;return(null==(c=a.Od.get(b))?void 0:c.Gj)||0};
DHa=function(a,b){var c=a.Od.get(b),d=!c.Gj&&!!c.bytesReceived;b=a.Uf(b);return d&&a.u&&void 0!==b?b:(d||c.bytesReceived===c.Gj)&&c.Cz+c.ue.totalLength===c.bytesReceived};
hLa=function(a,b,c){c=void 0===c?!1:c;a.Od.set(b,{ue:new dy,Cz:0,bytesReceived:0,qH:!1,df:!1,Uf:!1,Mo:c,GN:[]})};
QT=function(a){a=g.r(a.Od.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.qH&&(b.Gd&&b.Gd(),b.qH=!1)};
OT=function(a,b){if((b=a.Od.get(b))&&!b.df){b.df=!0;b.Gd&&b.Gd();a:{b=g.r(a.Od.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.df){b=!1;break a}b=!0}if(b&&(a=a.j,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
iLa=function(a,b){for(var c=!1,d=g.r(a.Od.keys()),e=d.next();!e.done;e=d.next()){e=a.Od.get(e.value);var f=void 0,k=void 0;(null==(f=e)?0:f.Gj)&&0<(null==(k=e)?void 0:k.Gj)&&(e.Mo?c=!0:b=!0)}return b&&c};
kLa=function(a,b){GK(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(FK(a,112),FK(a,c<<1^c>>31));GK(a,16,b.zV);GK(a,18,b.ST);GK(a,19,b.RT);GK(a,21,b.WZ);GK(a,23,b.ET);GK(a,34,b.visibility);KK(a,38,b.mediaCapabilities,jLa,3);GK(a,39,b.k_);GK(a,40,b.lU)};
lLa=function(a){for(var b=[];zK(a,2);)b.push(yK(a));return{iE:b.length?b:void 0,JI:AK(a,4)}};
jLa=function(a,b){var c;if(b.II)for(c=0;c<b.II.length;c++)KK(a,1,b.II[c],mLa,1);if(b.hE)for(c=0;c<b.hE.length;c++)KK(a,2,b.hE[c],nLa,1)};
nLa=function(a,b){GK(a,1,b.DT);GK(a,2,b.numChannels);GK(a,3,b.IV)};
mLa=function(a,b){GK(a,1,b.J_);GK(a,3,b.JV);GK(a,4,b.KV);GK(a,11,b.maxFramerate);GK(a,12,b.IV)};
qLa=function(a){return{iZ:AK(a,1),itag:CK(a,3),YO:cCa(a,4,oLa),lmt:AK(a,5),Xga:AK(a,7),xtags:CK(a,15),PV:cCa(a,23,pLa)}};
oLa=function(a){return{iv:BK(a,5),sV:!!bCa(a,7)}};
pLa=function(a){return{videoId:CK(a,2)}};
sLa=function(a,b){KK(a,2,b.QT,kLa,3);KK(a,3,b.WM,rLa,3);IK(a,4,b.onesieUstreamerConfig);IK(a,9,b.LI)};
rLa=function(a,b){IK(a,2,b.encryptedOnesieInnertubeRequest);IK(a,5,b.encryptedClientKey);IK(a,6,b.iv);IK(a,7,b.hmac);HK(a,10,b.serializeResponseAsJson);HK(a,13,b.enableAdPlacementsPreroll);HK(a,14,b.enableCompressionResponseOnly)};
tLa=function(a,b){JK(a,1,b.name);JK(a,2,b.value)};
uLa=function(a,b){JK(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)KK(a,2,b.httpHeaders[c],tLa,3);IK(a,3,b.postBody);HK(a,4,b.proxiedByTrustedBandaid);HK(a,6,b.skipResponseEncryption)};
vLa=function(a){return{onesieProxyStatus:AK(a,1),httpStatus:AK(a,2),body:BK(a,4)}};
RT=function(a){this.yl=a;this.u=!1;this.j=[]};
TT=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.eI;if(b=b.buffer)wLa(a.yl.ud,c,b);else if(b=a.yl,b.j[c].JM=!0,b=ST(b.ud,c),null==b?0:xR(b,c))null==b||OT(b,c)}};
xLa=function(a,b){a.j.push({eI:b,isEncrypted:!1});a.u||TT(a)};
g.yLa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===UT.length){UT.length=288;UT.fill(8);for(a=144;280>a;a++)UT[a]=255>=a?9:7;VT.length=32;VT.fill(5);WT.length=286;WT.fill(0);for(a=261;285>a;a++)WT[a]=Math.floor((a-261)/4);XT[257]=3;for(a=258;285>a;a++){var b=XT[a-1];b+=1<<WT[a-1];XT[a]=b}XT[285]=258;for(a=0;30>a;a++)ZT[a]=3>=a?0:Math.floor((a-2)/2);for(a=$T[0]=1;30>a;a++)b=$T[a-1],b+=1<<ZT[a-1],$T[a]=b}a=100+7*this.data.length;31===this.data[0]&&139===
this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.C=new Uint8Array(a)};
g.CLa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!aU(b,1);switch(aU(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=aU(b,5)+257;var f=aU(b,5)+1;for(var k=aU(b,4)+4,l=0;l<k;l++)d[zLa[l]]=aU(b,3);d=bU(d);for(k=e+f;c.length<k;){l=ALa(b,d);switch(l){case 16:l=c[c.length-1];var m=aU(b,2)+3;break;case 17:l=0;m=aU(b,3)+3;break;case 18:l=0;m=aU(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==k?b.error=!0:(f=c.slice(-f),c.length=e,BLa(b,c,f));break;case 1:BLa(b,UT,VT);break;case 0:cU(b,
b.j&7);c=aU(b,16);e=aU(b,16);65535!==(c^e)&&(b.error=!0);b.C.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C};
BLa=function(a,b,c){b=bU(b);c=bU(c);for(var d=a.data,e=a.C,f=a.B,k=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[k&127];if(0>n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.j=l,a.u=m,256<n){k=XT[n];k+=aU(a,WT[n]);m=ALa(a,c);l=$T[m];l+=aU(a,ZT[m]);if(DLa&&k<l)l=f-l,e.copyWithin(f,l,l+k);else for(m=f+k,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=k;k=
a.register;l=a.j;m=a.u}else break}a.B=f};
ALa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return cU(a,c&15),c>>4;for(cU(a,7);0>c;)c=b[aU(a,1)-c];return c>>4};
aU=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
cU=function(a,b){a.j-=b;a.register>>=b};
bU=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var k=1;k<b.length;k++)b[k]?d=k:b[k]=0,e=e+b[k-1]<<1,c[k]=e,7<k&&(f+=b[k]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(k=a[f]){for(var l=c[k]++,m=e=0;m<k;m++)e=e<<1|l>>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<<k|e]=l;else{m=e&127;k-=7;for(e>>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
ELa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.CLa(new g.yLa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new dy([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;k=f.value;if(l=f.done){m.Za(3);break}e.append(k);m.Za(2);break;case 3:return m.return(iy(e))}})};
GLa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=FLa[d]||0;a.j&&e>a.j||c.push(d)}return c};
JLa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(HLa[c]||[]));b.S("html5_early_media_for_drm")&&a.push.apply(a,g.u(ILa[c]||[]))};
OLa=function(a,b){var c=fE(a),d=a.V().u;if(dU&&!d.j)return dU;for(var e=[],f=[],k={},l=g.r(KLa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=LLa(p);!q||!q.video||$z(q)&&!c.va&&q.video.j>c.X||(n?e.push(p):(q=Mx(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&JLa(e,a)}l=g.r(MLa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=NLa(m))&&p.audio)if(p=Mx(c,p,d),!0===p){f.push(m);break}else k[m]=
p;f&&JLa(f,a)}c.B&&b("orfmts",k);dU={video:e,audio:f};d.j=!1;return dU};
LLa=function(a){var b=PLa[Wz[a]],c=QLa[a];if(!c||!b)return null;var d=new Tz(c.width,c.height,c.fps);b=Bta(b,d);return new Xz(a,b,{video:d,Ob:c.bitrate/8})};
NLa=function(a){var b=PLa[Wz[a]],c=RLa[a];return c&&b?new Xz(a,b,{audio:new Rz(c.audioSampleRate,c.numChannels)}):null};
SLa=function(a){this.ud=a;this.logger=new g.oQ("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new RT(this)};
eU=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].JM||xLa(a.queue,c)};
TLa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.YG(b,a.C).then(function(e){var f=a.ud;f.ye("oprr");f.playerResponse=e;f.qG||(f.ou=!1);fU(f)},function(e){a.ud.fail(e)});
break;case 2:a.ye("ormk");b=iy(b);a.queue.decrypt(b);break;default:d=!0}a.ud.Qh&&a.ud.Aa("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
ULa=function(a,b,c){var d=jy(b,0);a.ud.Qh&&a.ud.Aa("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Br,(d=a.B[d]||null)&&a.queue.enqueue(d,b,c))};
VLa=function(a,b){if(b+1<=a.totalLength){var c=jy(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=jy(a,b++);else if(2===c)c=jy(a,b++),a=jy(a,b++),a=(c&63)+64*a;else if(3===c){c=jy(a,b++);var d=jy(a,b++);a=jy(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=jy(a,b++);d=jy(a,b++);var e=jy(a,b++);a=jy(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),hy(a,c,4)?a=Sra(a).getUint32(c-a.B,!0):(d=jy(a,c+2)+256*jy(a,c+3),a=jy(a,c)+256*(jy(a,c+1)+
256*d)),b+=5;return[a,b]};
gU=function(a){this.callbacks=a;this.j=new dy};
YLa=function(a){var b,c,d,e,f;return g.B(function(k){return 1==k.j?(b=a.V().Cd,null!=(c=b)&&c.baseUrl?g.A(k,WLa(),3):k.Za(2)):2!=k.j&&(d=k.u)?(e=""+d+b.baseUrl,f=new g.Vx(e),k.return(XLa(f,a))):k.return(null)})};
XLa=function(a,b){var c,d=null==(c=b.Gr)?void 0:c.urlQueryOverride;if(d)for(c=ay(d),c=g.r(Object.entries(c)),d=c.next();!d.done;d=c.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;a.set(d,e)}if(!a.get("id")){c=bC(b.videoId);b=[];if(c)for(c=g.r(c),d=c.next();!d.done;d=c.next())b.push(d.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
WLa=function(){var a,b,c,d,e;return g.B(function(f){if(1==f.j)return a={format:"RAW",method:"GET",timeout:5E3},g.A(f,Fr("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)})};
hU=function(a,b){g.G.call(this);this.Ca=a;this.playerRequest=b;this.Y=this.Ca.V();this.videoData=this.Ca.getVideoData();this.logger=new g.oQ("onesie");this.Qh=2<=this.Y.X;this.HL=this.Y.Cd;this.eH=new MT(this.HL.j);this.xhr=null;this.Il=new xP;this.LM=!1;this.playerResponse="";this.sQ=new gU(this);this.yl=new SLa(this);this.xB=new g.L(this.GM,1E4,this);this.RO=new g.L(this.MV,2E3,this);this.Zq="";this.NA=this.aN=!1;this.Bt=this.Y.Ah;this.Wt="";this.ou=this.S("html5_onesie_wait_for_media_availability");
this.enableCompression=this.qG=this.MA=!1;g.H(this.videoData,this);g.H(this,this.xB);g.H(this,this.RO);a=Bx();b=dB();this.S("html5_onesie_media_bytes")&&a&&b&&(this.S("html5_onesie_ads")?this.We=new Map:(this.Td=new NT(this),g.H(this,this.Td)));this.Aa("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Cx())},!0)};
ST=function(a,b){return a.We?(b=b.split(";")[0],a.We.get(b)):a.Td};
ZLa=function(a){return a.S("html5_onesie_host_probing")||a.Qh};
wLa=function(a,b,c){null!=(a=ST(a,b))&&(b=a.Od.get(b))&&!b.df&&(ey(b.ue,c),b.bytesReceived+=c.totalLength,b.qH=!0)};
fU=function(a){if(!a.playerResponse)return!1;if(a.MA)return!0;var b=a.videoData.S("html5_onesie_audio_only_playback")&&dE(a.videoData);if(!a.We&&a.ou&&a.Td&&!iLa(a.Td,b))return!1;if(a.We&&a.ou){if(!a.We.has(a.Zq))return!1;var c=a.We.get(a.Zq);if(c&&!iLa(c,b))return!1}a.ye("ofr");a.Il.resolve(a.playerResponse);a.xB.stop();return a.MA=!0};
aMa=function(a){a.ye("ogsf_s");var b;if((null!=(b=a.We)?b:a.Td)&&!a.S("html5_onesie_media_capabilities")){b=OLa(a.Ca.getVideoData(),function(d,e){a.Aa(d,e)});
var c=$La(a.Ca);b.video=GLa(c,b.video);if(b.video.length)return a.ye("ogsf_c"),b;a.Aa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
bMa=function(a){if(!a.El)return{};var b=OR(a.El);b.d=ZHa(a.El);b.shost=a.HP;b.ty="o";return b};
hMa=function(a){function b(e){return(d.fh&&!c.S("web_player_no_force_gvi")||!((c.nj?0:c.S("web_player_gvi_wexit")||(g.MC(c)?"TVHTML5"===c.deviceParams.c?lva(c)?c.S("web_player_gvi_wexit_living_room_pangea"):c.S("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.S("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||sC(c)?c.S("web_player_gvi_wexit_living_room_simply"):XC(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.S("web_player_gvi_wexit_living_room_unplugged"):
c.S("web_player_gvi_wexit_living_room_other"):1))||d.yj&&d.B.B)?0:"yt"!==c.ya?38===d.ya&&"books"===c.playerStyle||30===d.ya&&"docs"===c.playerStyle||33===d.ya&&"google-live"===c.playerStyle?0:c.S("web_player_gvi_wexit_all_player_styles"):"adunit"!==yE(d)||c.S("web_player_gvi_wexit_adunit"))?cMa(a,d).then(function(){iU(a,d)},function(f){iU(a,d,!0);
throw f;}):dMa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ia=!0;return eMa(a)?fMa(a,d).then(function(){iU(a,d)},function(e){e=AB(e);
if(zB(e.severity))return iU(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(gMa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
eMa=function(a){var b=a.V();if(!b.S("html5_onesie"))return!1;var c=a.getVideoData();if(!b.S("html5_onesie_cast")&&(c.X||c.xg)||!b.S("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ya||gMa)return!1;b=b.Cd;if(!b||!b.j)return a.handleError(new g.yB("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.yB("html5.missingapi",b)),!1):!0};
iMa=function(a){var b=RH();Qya(b,a);return g.XJ(b,wBa())};
fMa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j)return b.fetchType="onesie",c=XBa(b,a.getPlayerSize(),a.getVisibilityState()),d=new hU(a,c),g.A(z,d.fetch(),2);e=z.u;f={player_response:e};b.Ia=!1;k=a.V();l=k.S("html5_onesie_ads");if(!l)b.xk=d.Td;else if(l&&d.We)for(m=g.r(d.We.keys()),n=m.next();!n.done;n=m.next())p=n.value,(q=d.We.get(p))&&a.gm.Qt.j.set(p,q,180);b.YE=d.YE;g.XD(b,f,!0);if(b.Ia||VD(b))return z.return(Promise.resolve());l?gGa(a.gm.Qt.j):b.xk=void 0;
t={};v="onesie.response";x=0;b.errorCode?(v="auth",t.ec=b.errorCode,t.ed=b.errorDetail,t.es=b.Ji||"",x=2):(t.successButUnplayable="1",t.disposed=""+ +b.isDisposed(),t.afmts=""+ +/adaptiveFormats/.test(e),t.cpn=b.clientPlaybackNonce);y=new g.yB(v,t,x);return z.return(Promise.reject(y))})};
cMa=function(a,b){var c,d,e,f,k,l,m,n,p,q;return g.B(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Za(4);break}if(!(0<f)){t.Za(5);break}return g.A(t,yi(5E3),6);case 6:k=new g.Fs("Retrying OnePlatform request",{attempt:f}),g.Ov(k);case 5:return g.va(t,7),g.A(t,jMa(a,b),9);case 9:return t.return();case 7:l=g.xa(t);m=AB(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 t.return(Promise.reject(m));
a.handleError(m);if(zB(m.severity)){t.Za(4);break}case 3:f++;t.Za(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,t.return(Promise.reject(new g.yB(p,{backend:"op"},q)))}})};
jMa=function(a,b){var c;return g.B(function(d){c=a.V();b.fetchType="gp";return c.S("html5_use_oauth_callback")?d.return(Jr(g.CE(b)||c.Ya).then(function(e){return kMa(a,b,e)},void 0)):d.return(kMa(a,b,g.CE(b)))})};
kMa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I,K,N,aa;return g.B(function(J){if(1==J.j)return d=iMa(c),e=XBa(b,a.getPlayerSize(),a.getVisibilityState()),f=g.GJ(lMa),k=g.CE(b),l=(0,g.R)(),m=!1,n="empty",p=0,a.ye("ps_s"),q=function(oa){2===oa.readyState&&a.ye("ps_c")},t={Ut:q},g.A(J,g.TH(d,e,f,void 0,t),2);
v=J.u;a.ye("ps_r");if(b.isDisposed())return J.return();v?v.error?(m=!0,n="esf:"+v.error.message,p=v.error.code):v.errorMetadata&&(m=!0,n="its",p=v.errorMetadata.status):m=!0;if(m)return x=0,y=((0,g.R)()-l).toFixed(),z=a.V(),E={backend:"op",rc:""+p,rt:y,reason:n,has_kpt:b.rb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:z.pageId?"1":"0",has_token:k?"1":"0",has_vvt:b.Ja?"1":"0",is_mdx:b.isMdxPlayback?"1":
"0",mdx_ctrl:b.xg||"",token_eq:k===g.CE(b)?"1":"0"},I="manifest.net.connect",429===p?(I="auth",x=2):200<p&&(I="manifest.net.badstatus",400===p&&(x=2)),J.return(Promise.reject(new g.yB(I,E,x)));b.Ia=!1;g.XD(b,{raw_player_response:v},!0);if(b.errorCode)return K={ec:b.errorCode,ed:b.errorDetail,es:b.Ji||""},J.return(Promise.reject(new g.yB("auth",K,2)));if(!b.Ia&&!VD(b))return N=b.isAd()?"auth":"manifest.net.retryexhausted",aa=b.isAd()?2:1,J.return(Promise.reject(new g.yB(N,{successButUnplayable:"1",
hasMedia:pE(b)?"1":"0"},aa)));g.ua(J)})};
dMa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,v;return g.B(function(x){switch(x.j){case 1:d=LBa(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(y){y=AB(y);
if(zB(y.severity))return Promise.reject(y);a.handleError(y);return!1},l=(k=b.isAd())?1:3,m=0;
case 2:if(!(m<l)){x.Za(4);break}n=d;if(!(0<m)){x.Za(5);break}return g.A(x,yi(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},k||(p.recover="embedded"),n=mr(d,p);case 5:return g.A(x,mMa(b,n).then(e,f),7);case 7:if(q=x.u)return x.return();m++;x.Za(2);break;case 4:t=k?"auth":"manifest.net.retryexhausted";v=k?2:1;if(!k&&1E-4>Math.random())try{g.Ov(new g.Fs("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new g.yB(t,{backend:"gvi"},v)))}})};
mMa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,v,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.V(),(f=MBa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=mr(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.QA(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0<Object.keys(k).length&&(d.headers=
k),m=(0,g.R)(),n=function(E){if(!a.isDisposed()){E=E?E.status:-1;var I=0,K=((0,g.R)()-m).toFixed();K={backend:"gvi",rc:""+E,rt:K};var N="manifest.net.connect";429===E?(N="auth",I=2):200<E&&(N="manifest.net.badstatus",400===E&&(I=2));return Promise.reject(new g.yB(N,K,I))}},p=function(E){return n(E.xhr)},g.A(z,AA(Fr,e,d).then(void 0,p),2);
q=z.u;if(!q||!q.responseText)return z.return(n(q));a.Ia=!1;t=ir(q.responseText);g.XD(a,t,!0,void 0);if(a.errorCode)return v={ec:a.errorCode,ed:a.errorDetail,es:a.Ji||""},z.return(Promise.reject(new g.yB("auth",v,2)));if(!a.Ia&&!VD(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,z.return(Promise.reject(new g.yB(x,{successButUnplayable:"1"},y)));g.ua(z)})};
iU=function(a,b,c){c=void 0===c?!1:c;var d;g.B(function(e){d=a.V();return c&&(!g.ZC(d)||"embedded"!==yE(b))||b.Dq||"adunit"!==yE(b)&&(g.MC(d)||NC(d)||g.GC(d)||g.FC(d)||"WEB_CREATOR"===d.deviceParams.c)?e.return():d.S("html5_use_oauth_callback")?e.return(Jr(g.CE(b)||d.Ya).then(function(f){return nMa(a,b,f)})):e.return(nMa(a,b,g.CE(b)))})};
nMa=function(a,b,c){var d,e,f,k;return g.B(function(l){if(1==l.j){g.va(l,2);d=iMa(c);var m=b.V();g.ns.getInstance();var n={context:g.uK(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===yE(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.xk&&(n.showContentOwnerOnly=!0);g.os(0,141)&&(n.autonavState=g.os(0,140)?"STATE_OFF":"STATE_ON");if(g.$C(m)){m=g.os(0,65);m=null!=m?!m:!1;var p=!!g.cw("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.GJ(oMa);a.ye("wn_s");return g.A(l,g.TH(d,e,f),4)}if(2!=l.j)return k=l.u,a.ye("wn_r"),k&&!k.error&&g.XD(b,{raw_watch_next_response:k},!1),g.wa(l,0);g.xa(l);g.ua(l)})};
pMa=function(a){function b(){a.ye("virc");xx("virc",void 0,"video_to_ad")}
a.ye("vir");xx("vir",void 0,"video_to_ad");var c=hMa(a);c.then(b,b);return c};
g.mU=function(a,b,c,d,e,f,k,l,m,n){m=void 0===m?new g.UD(a):m;n=void 0===n?!0:n;g.ev.call(this);var p=this;this.Y=a;this.playerType=b;this.Ib=c;this.vy=d;this.getVisibilityState=f;this.visibility=k;this.gm=l;this.videoData=m;this.GT=n;this.logger=new g.oQ("VideoPlayer");this.Wv=new IKa(this.Y);this.Yd=null;this.Xt=new JS;this.qm=null;this.Mg=new SS(this.Y,this.vy,this);this.IM=!0;this.mediaSource=this.Va=null;this.Zi=[];this.Sm=new LT;this.Pe=this.Kx=null;this.Tm=new LT;this.DB=null;this.FF=this.Jt=
!1;this.EB=NaN;this.playerState=new g.tH;this.GB=[];this.Pu=new g.dA;this.Fj=new PS(this);this.qa=null;this.Jq=new g.L(this.oX,15E3,this);this.IH=this.kB=!1;this.Yq=NaN;this.zz=!1;this.fE=0;this.gE=new g.L(this.LH,4500,this);this.Xw=!1;this.TA=NaN;this.cI=new sQ(new Map([["bufferhealth",function(){var q=p.Uc;return q.qa?rH(q.qa):0}],
["bandwidth",function(){return p.cF()}],
["networkactivity",function(){return p.Y.schedule.X}],
["livelatency",function(){return p.isAtLiveHead()&&p.Jc()?jU(p):NaN}],
["rawlivelatency",function(){return jU(p)}]]));
this.hx=0;this.loop=!1;this.playbackRate=1;this.oN=0;this.Uc=new FT(this);this.fL=!1;this.FB=[];this.bG=this.XO=0;this.FH=this.xQ=!1;this.VD=new g.L(this.GU,0,this);this.td=null;this.YN=new g.L(this.KT,0,this);this.LB=new g.L(this.vP,3E4,this);this.dW=[this.Pu,this.VD,this.Jq,this.LB,this.gE,this.cI,this.YN];this.Oe=function(){var q=p.dc;q.u.Y.Wc||3===q.u.Ca.getVisibilityState()||(q.u.Y.Wc=!0);uKa(q);var t=q.C;t.J&&0>t.u&&3!==t.j.Ca.getVisibilityState()&&US(t);q.qoe&&(q=q.qoe,q.Ia&&0>q.B&&q.j.Y.Wc&&
eT(q));p.Va&&qS(p);p.Y.Kk&&!p.videoData.backgroundable&&p.qa&&!p.Df()&&(p.isBackground()&&p.qa.Zy()?(p.Aa("bgmobile",{suspend:1}),p.Wm(!0)):p.isBackground()||kU(p)&&p.Aa("bgmobile",{resume:1}))};
this.Bg=new tT(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Gw("endcr")||g.V(p.playerState,32)||HP(p);
e(q,t,p.playerType)});
g.H(this,this.Bg);g.H(this,this.Uc);qMa(this,m);this.videoData.subscribe("dataupdated",this.YY,this);this.videoData.subscribe("dataloaded",this.rE,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Aa,this);this.videoData.subscribe("ctmpstr",this.xH,this);rMa(this);CFa(this.Oe);this.visibility.subscribe("visibilitystatechange",this.Oe);this.videoData.Ea&&sMa(this);!axa(this.videoData)&&fxa(this.videoData)||tMa(this);1===this.playerType&&lU.isActive()&&
this.LB.start();this.videoData.Qd=this.getUserAudio51Preference()};
qMa=function(a,b){if(2===a.playerType||a.Y.Mk)b.eJ=!0;var c=bwa(b.Xb,b.Rr,a.Y.j,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.Al=!0);if(a.isFullscreen()||a.Y.j)c=g.cw("yt-player-autonavstate"),b.autonavState=c||(a.Y.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&nU(a,b.endSeconds)};
rMa=function(a){!a.dc||a.dc.isDisposed();a.dc=new g.sT(new rT(a.videoData,a.Y,a,function(){return a.gm.Nh()}))};
uF=function(a){return a.qa&&a.qa.Jp()?a.qa.Ke():null};
oU=function(a){if(a.videoData.isValid())return!0;a.Xf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
sMa=function(a){var b=a.gm.Lc();a.videoData.Wl=a.videoData.Wl||(null==b?void 0:b.fF());a.videoData.Xl=a.videoData.Xl||(null==b?void 0:b.gF())};
g.FP=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.dc;US(c.C);c.qoe&&eT(c.qoe)}a.Jt=b;!oU(a)||a.Sm.started?g.MC(a.Y)&&a.videoData.isLivePlayback&&a.Sm.started&&!a.Sm.isFinished()&&!a.Jt&&a.rE():(a.Sm.start(),b=a.dc,g.GP(b.u),b.qoe&&$Ja(b.qoe),a.rE())};
uMa=function(a){var b=a.videoData;pMa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=AB(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Xf("auth",2,unescape(a.videoData.errorReason),xB(c.details),a.videoData.errorDetail,a.videoData.Ji||void 0):a.handleError(c))})};
FFa=function(a,b){a.td=b;a.Va&&GIa(a.Va,new g.vS(b))};
vMa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Zi=g.jc(a.videoData.va)),pE(a.videoData)){a.Ib.tick("bpd_s");pU(a).then(function(){a.Ib.tick("bpd_c");if(!a.isDisposed()){a.Jt&&(a.Wb(vH(vH(a.playerState,512),1)),kU(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&nU(a,c.endSeconds);a.Sm.finished=!0;qU(a,"dataloaded");a.Tm.started&&rU(a);TJa(a.Mg,a.Pe)}});
a.S("html5_log_media_perf_info")&&a.Aa("loudness",{v:a.videoData.Pd.toFixed(3)},!0);var b=gxa(a.videoData);b&&a.Aa("playerResponseExperiment",{id:b},!0);a.eE()}else qU(a,"dataloaded")};
pU=function(a){sU(a);a.Pe=null;var b=KKa(a.Y,a.videoData,a.Df());a.Kx=b;a.Kx.then(function(c){wMa(a,c)},function(c){a.isDisposed()||(c=AB(c),a.visibility.isBackground()?(tU(a,"vp_none_avail"),a.Kx=null,a.Sm.reset()):(a.Sm.finished=!0,a.Xf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",xB(c.details))))});
return b};
QS=function(a){pU(a).then(function(){return kU(a)});
g.zH(a.playerState)&&a.playVideo()};
wMa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Pe=b;VKa(a.Uc,a.Pe);if(a.videoData.isLivePlayback){var c=(a.S("html5_onesie_ads")?hGa(a.gm.Qt,a.videoData.videoId):!!a.videoData.xk)||a.Va&&!isNaN(a.Va.Ea);c=a.S("html5_onesie_live")&&c;0<a.videoData.Tb&&!aE(a.videoData)||c||a.seekTo(a.xd(),{re:"videoplayer_playbackData"})}a.videoData.C.j?a.Va?g.Ov(Error("Duplicated Loader")):(c=g.YA(a.Y.experiments,"html5_onesie_defer_content_loader_ms"),a.S("html5_onesie_ads")&&c&&g.cc(a.Zi,"ad")&&
hGa(a.gm.Qt,a.videoData.ZQ)?g.tr(function(){a.isDisposed()||a.Va||uU(a)},c):uU(a)):!a.videoData.C.j&&DE(a.videoData)&&a.qB(new hR(a.videoData.videoId||"",4));
vU(a);JJa(b).then(function(){a.Ku();wU(a)})}};
xU=function(a){a.qa&&a.qa.Ds();g.FP(a);oU(a)&&!g.V(a.playerState,128)&&(a.Tm.started||(a.Tm.start(),a.Wb(vH(vH(a.playerState,8),1))),rU(a))};
rU=function(a){a.isDisposed();if(!a.Tm.isFinished()&&a.Sm.isFinished()&&!g.V(a.playerState,128)&&!a.Zi.length){if(!a.Bg.started){var b=a.Bg;b.started=!0;b.Dk()}if(!a.ll()){a.Va&&(b=a.Va.timing,a.FF=!!b.u&&!!b.D);a.Tm.isFinished()||(a.Tm.finished=!0);b=a.S("html5_onesie_live")&&a.Va&&!isNaN(a.Va.Ea);!a.videoData.isLivePlayback||0<a.videoData.Tb&&!aE(a.videoData)||b||(a.seekTo(Infinity,{re:"videoplayer_readying"}),a.isBackground()&&(a.IH=!0));b=a.dc;if(b.qoe){b=b.qoe;b.j.videoData.Bk&&cT(b,b.j.videoData.Bk);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;aE(b.j.videoData)&&cT(b,"manifestless");c&&JA(c)&&cT(b,"live-segment-"+JA(c).toFixed(1))}"yt"!==b.j.Y.ya&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!DE(b.j.videoData)&&XJa(b,!0);hD(b.j.Y)&&(c=kFa())&&b.Aa("cblt",{m:c});b.j.videoData.isDaiEnabled()?cT(b,b.j.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.j.videoData.hI&&cT(b,"dsdai")}a.ea("playbackready",a);wx("pbr",a.Ib.timerName)||(a.Ib.tick("pbr"),xx("pbr",
void 0,"video_to_ad"))}}};
HP=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.qa&&a.qa.pause();b=b?new g.tH(14):new g.tH;a.Wb(b)};
nU=function(a,b){a.qm&&yU(a);a.qm=new g.Ew(1E3*b,0x7ffffffffffff);a.qm.namespace="endcr";a.addCueRange(a.qm)};
yU=function(a){a.removeCueRange(a.qm);a.qm=null};
AU=function(a,b,c,d){a.videoData.u=c;d&&rS(a,b,d);d=(d=g.zU(a))?d.Zb():"";a.dc.Ix(new EJa(a.videoData,c,b,d));c=a.Mg;c.B=0;c.j=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.zU=function(a){var b=BU(a);return Hx(b)||!a.Pe?null:g.$b(a.Pe.j.videoInfos,function(c){return b.C(c)})};
rS=function(a,b,c){if(c!==a.videoData.J){var d=!a.videoData.J;a.videoData.J=c;"m"!==b&&(b=d?"i":"a");a.dc.Ax(new EJa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
sS=function(a,b){b&&a.Hd(new g.yB("qoe.restart",b));a.S("html5_reloads_report_as_buffering")&&a.Wb(vH(a.playerState,2048));CU(a);b=a.videoData.j&&Rx(a.videoData.j);var c=a.qa&&a.qa.isView();b||c?(a.Va&&uIa(a.Va),OS(a)):(a.S("html5_reloads_report_as_buffering")||a.Wb(vH(a.playerState,16)),kU(a),g.zH(a.playerState)&&a.playVideo())};
BU=function(a){if(a.Pe){var b=a.Mg;var c=a.Pe;a=a.kt();if(b.Ca.Co().isInline())var d=TD;else b.S("html5_exponential_memory_for_sticky")?d=.5>lC(b.Y.Pc,"sticky-lifetime")?"auto":Ix[MA()]:d=Ix[MA()],d=g.Gx("auto",d,!1,"s");if(Hx(d)){d=FJa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var k=g.r(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Gma()&&!g.MC(b.Y)&&Yz(c.j.videoInfos[0])&&
(f=Math.min(f,g.Fx.large));f=new Ex(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.DC(b.Y)||bs()||b.Y.S("hls_for_vod")||(f=b.Y.S("mweb_default_hd720")?g.Fx.hd720:g.Fx.medium);(k=g.YA(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.xg&&!c.videoData.Sd&&(f=Math.min(f,k));k=g.YA(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));if(l=k=g.YA(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=
g.r(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,k));(k=g.YA(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,k));f=RJa(b,c,f);f=new Ex(0,4320===f?0:f,!1,"d");d=e.call(d,f).compose(QJa(b)).compose(SJa(b,c.videoData,c)).compose(PJa(b,c)).compose(IJa(b,c)).compose(HJa(b,c))}else b.S("html5_perf_cap_override_sticky")&&(d=d.compose(PJa(b,c))),b.S("html5_ustreamer_cap_override_sticky")&&(d=d.compose(IJa(b,c)));
b.S("html5_varispeed_playback_rate")&&(d=d.compose(HJa(b,c)));b=c.videoData.Qr.compose(d).compose(c.videoData.pQ).compose(a)}else b=TD;return b};
$La=function(a){var b=a.Mg;a=a.videoData;var c=QJa(b);b.S("html5_disable_client_autonav_cap_for_onesie")||c.compose(SJa(b,a));return c};
g.xMa=function(a,b,c){a.videoData.Qr=b;if(a.Pe&&c){c=a.Mg;var d=a.Pe;if(d.j.j){var e=MA(),f=d.j.videoInfos[0].video.j;if(!(e>f&&0!==f&&b.j===f)){1<c.playbackRate&&c.S("html5_varispeed_playback_rate")&&(e=lua(c.Y.u,d.j.videoInfos,c.playbackRate),0!==b.j&&e<b.j&&c.Ca.setPlaybackRate(1));var k,l;d=(null==(k=d.videoData.u)?void 0:null==(l=k.video)?void 0:l.j)||0;g.bw("yt-player-quality",{quality:g.Fx[Jx(b)],previousQuality:d},31104E3);c.Y.schedule.policy.C=480<=MA();if(c.S("html5_exponential_memory_for_sticky")){b=
c.Y.Pc;k=1;var m=void 0===m?!1:m;Vua(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Dm["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Dm["sticky-lifetime"]=0);m&&.0625<lC(b,"sticky-lifetime")&&(k=2*b.Dm["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/k);b.Dm["sticky-lifetime"]=k;b.C.start()}if(c.S("html5_perf_cap_override_sticky"))if(c.S("html5_perserve_av1_perf_cap")){m=NA();c=g.r(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
g.bw("yt-player-performance-cap",m,604800)}else g.dw("yt-player-performance-cap")}}}vU(a)};
vU=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)wU(a);else{var b=BU(a),c=a.videoData;a:{var d=a.videoData.Db;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.Af(),l=g.Fx[k.video.quality];if((!b.B||"auto"!==k.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Ya=d;AU(a,b.reason,yMa(a,a.videoData.Ya))}if(a.S("html5_check_unstarted")?g.zH(a.playerState):a.Jc())a.Uc.Ja=!1,a.playVideo()}};
wU=function(a){if(a.videoData.C&&a.videoData.C.j){var b=BU(a);if(a.Va&&(a=a.Va,!a.isDisposed()&&!a.u.j.equals(b)&&a.videoTrack)){var c=a.u.j;yIa(a,SGa(a.u,b));hS(a);var d=a.u.j.isLocked()&&"m"===b.reason&&a.u.Z,e=a.policy.uj&&"l"===b.reason&&LR(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.u.Wa&&!uA();d||e||b||c?sS(a.Ca,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.qp(a.ma)}}};
qS=function(a){a.S("html5_update_constraint")?wU(a):vU(a)};
AMa=function(a){var b=zMa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Fc.getName()===b})};
zMa=function(a){var b;if(a=null==(b=a.qa)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
uU=function(a){Nta(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver});var b=a.Y,c=a.videoData,d=new g.HCa(b),e=GCa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,ql:c.ql});d.D=e;d.ma=g.YA(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Dc=g.YA(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Ir=g.YA(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.lc=g.YA(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Jr=g.YA(b.experiments,"html5_subsegment_readahead_min_load_speed");d.lh=g.YA(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Dp=g.YA(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Gq=b.S("html5_restrict_streaming_xhr_on_sqless_requests");d.Hk=g.YA(b.experiments,"html5_max_headm_for_streaming_xhr");d.Nk=b.S("html5_pipeline_manifestless_allow_nonstreaming");d.Yl=b.S("html5_prefer_server_bwe3");d.oh=1024*g.YA(b.experiments,"html5_video_tbd_min_kb");d.zk=b.S("html5_last_slice_transition");
d.Dr=b.S("html5_store_xhr_headers_readable");d.Hb=g.YA(b.experiments,"html5_probe_primary_delay_base_ms")||d.Hb;d.gg=b.S("html5_no_placeholder_rollbacks");d.Hr=b.S("html5_subsegment_readahead_enable_mffa");b.S("html5_allow_video_keyframe_without_audio")&&(d.va=!0);d.Gp=b.S("html5_webm_init_skipping");d.md=b.S("html5_abs_buffer_health");d.Bj=b.S("html5_interruption_resets_seeked_time");d.rf=g.YA(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.rf;d.Qd=b.S("html5_explicitly_dispose_xhr");
d.Eq=b.S("html5_restart_on_unexpected_detach");d.oe=g.YA(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Bi=g.YA(b.experiments,"html5_max_drift_per_track_secs");d.Xb=g.YA(b.experiments,"html5_static_abr_resolution_shelf");d.ej=!b.S("html5_encourage_array_coalescing");d.yk=b.S("html5_crypto_period_secs_from_emsg");d.zj=b.S("html5_filter_non_efficient_formats_for_safari");d.Qr=b.S("html5_format_hybridization");d.Th=b.S("html5_abort_before_separate_init");d.Vq=b.S("html5_serialize_server_stitched_ad_request");
d.cg=b.S("html5_never_pause_appends");d.Kk=g.YA(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.bj=b.S("html5_attach_po_token_to_bandaid");b.S("html5_allow_video_keyframe_without_audio")&&(d.va=!0);0<g.YA(b.experiments,"html5_max_redirect_response_length")&&(d.Qf=g.YA(b.experiments,"html5_max_redirect_response_length"));e=g.YA(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Dq=e);d.Tb=b.S("html5_rewrite_timestamps_for_webm");d.Ea=b.S("html5_only_media_duration_for_discontinuities");
b.S("html5_media_common_config_killswitch")||(d.J=c.maxReadAheadMediaTimeMs/1E3||d.J,e=b.schedule,e.B.Eg()===e.policy.B?d.xa=10:d.xa=c.minReadAheadMediaTimeMs/1E3||d.xa,d.Cd=c.readAheadGrowthRateMs/1E3||d.Cd);Em&&(d.ya=41943040);d.Wa=!zA();g.MC(b)||!zA()?(e=b.experiments,d.K=8388608,d.X=524288,d.cj=5,d.rb=2097152,d.Ia=1048576,d.Qp=1.5,d.Mk=!1,d.Ob=4587520,Zr()&&(d.Ob=786432),d.B*=1.1,d.C*=1.1,d.Rb=!0,d.ya=d.K,d.vb=d.X,d.bd=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||
!1):b.isMobile&&(d.B*=1.3,d.C*=1.3);g.hA&&Vr("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.K=20971520,d.X=1572864,e&&(d.Ob=812500,d.ag=1E3,d.Fp=5,d.Ia=2097152));!b.S("html5_disable_firefox_init_skipping")&&g.Ax&&(d.Rb=!0);b.supportsGaplessAudio()||(d.wj=!1);uC&&(d.Sa=!0);d.Gb=b.S("html5_peak_shave");"onesie"===c.fetchType&&b.S("html5_disable_peak_shave_for_onesie")&&(d.Gb=!1);var f;e=null==(f=c.j)?void 0:Rx(f);if(aE(c)){d.Pc=!0;d.Aj=!0;d.Ea=!0;d.Tb=!0;d.er=!0;if("ULTRALOW"===c.latencyClass||
"LOW"===c.latencyClass&&!b.S("html5_disable_low_pipeline"))d.Bk=2,d.Ik=4;d.nm=c.defraggedFromSubfragments;c.qe&&(d.cm=!0);g.qE(c)&&(d.Qa=!1);d.qj=g.YC(b)}c.isAd()&&(d.Db=0,d.Ud=0);Owa(c)&&(d.Ja=!0,b.S("html5_aggressive_timeout_for_streaming_xhr")&&(d.ag=400,d.Lb*=3,d.Gk=2,d.Rf=3,d.hh=1.4));d.ib=b.S("html5_enable_subsegment_readahead_v3")||b.S("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.jb=hD(b);d.Z=d.jb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.X);gs()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.S("html5_disable_move_pssh_to_moov")&&e&&(d.Rb=!1);var k=0;b.S("html5_live_use_alternate_bandwidth_window_sizes")&&(k=b.schedule.policy.u,c.isLivePlayback&&(k=g.YA(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")||k));f=b.schedule;f.va.j=aE(c)?.5:0;if(!f.policy.j&&k&&(f=f.B,k=Math.round(k*f.resolution),k!==f.j)){var l=Array(k),m=Math.min(k,f.u?
f.j:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.j);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.j];for(;p<k;++p)l[p]=Infinity;f.j=k;f.values=l;f.valueIndex=m%k;f.u=m===k;f.C=!0;f.J=Nua(f)}d.cg=c.isLivePlayback;switch(jE(c)){case 21530001:d.Sh=b.S("html5_live_smoothly_extend_max_seekable_time");d.ib=!0;"LOW"===c.latencyClass?d.ma=g.YA(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.ma=g.YA(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.gg=
!0;break;case 2153E4:d.ib=!1}c.Ef()&&(d.nj=g.YA(b.experiments,"html5_live_byterate_factor_for_readahead")||1);d.Sa=d.Sa||c.Hv;d.Ub=c.Ea;2<=b.X&&(d.qb=!0);c.Ea&&!e&&b.S("html5_hack_gapless_init")&&(d.fh=!0);(e=g.YA(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ea&&c.isAd()&&(d.B*=e,d.C*=e);DE(c)&&(d.u=c.videoId,b.S("html5_wofflec")&&(d.Pd=!0),b.S("woffle_pending_promises_killswitch")&&(d.Xa=!1),d.md=!0,d.Ep=4,c.Ul&&0<c.Ul.length&&(d.Wc=c.Ul));d.uj=c.gg;d.N=PA(b,{},c.C||void 0);c=480<=MA();
e=g.YA(b.experiments,"html5_deadzone_multiplier")||1;d.B*=e;d.C*=e;if(e=g.YA(b.experiments,"html5_request_sizing_multiplier"))d.iq=e;Ox(b.u,Px.BITRATE)&&(d.Ob=NaN);b.u.B&&(d.xj="; "+Px.EXPERIMENTAL.name+"=allowed");c&&(d.Xb=0);b.S("html5_prefer_low_quality_audio_means_64k")&&uC&&(d.Xl=!0);b.S("debug_html5_random_stun_format")&&(d.eh=!0);b.S("html5_log_audio_abr")&&(d.Ak=!0);b=a.getAudioTrack();b=b.Fc.isDefault?void 0:b;KS(a.Xt);if(a.S("html5_onesie_ads"))a:{c=a.gm.Qt;if(e=a.videoData.videoId)if(f=
c.j.get(e)){c.j.remove(e);c=f;break a}c=void 0}else c=a.videoData,e=c.xk,delete c.xk,c=e;a.Va=new g.dS(a,a.Y.schedule,d,a.videoData.j,a.videoData.C,BU(a),b,a.videoData.enableServerStitchedDai,c,a.Y.Ah,a.videoData.xa);b=BMa(a)?!0:a.Jt&&g.MC(a.Y)&&a.videoData.isLivePlayback;a.Va.initialize(a.getCurrentTime(),BU(a),b);a.videoData.probeUrl&&(a.Va.Ja=a.videoData.probeUrl);!a.Zi.length&&!a.Jt||!a.S("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||DU(a,!1);IT(a.Uc,a.Va);a.td&&GIa(a.Va,new g.vS(a.td));
g.EE(a.videoData)&&(a.Va.policy.yj=2);b=a.videoData;if(g.EE(b)){c=b.j.j;if(e=!!c[b.u.id])b=c[b.u.id].u,e=!!b.j.get("ck")&&!!b.j.get("civ");b=e}else b=!1;(b||DE(a.videoData)&&d.Pd)&&a.Aa("wofc",{},!0)};
sU=function(a){a.Va&&(a.Va.dispose(),a.Va=null,IT(a.Uc,null));CU(a)};
CU=function(a){if(a.mediaSource){if(a.Va){var b=aE(a.videoData)&&a.videoData.qe&&!a.videoData.isAd();kS(a.Va,b)}a.mediaSource.dispose();a.mediaSource=null}};
CMa=function(a){if(a.mediaSource)return a.mediaSource.mx;a:{try{if(g.Xr()&&a.videoData.UF()){var b=a.qa;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.qa.oq()}catch(d){if(RS(a.Fj,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Xf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}BP(a,c)}return a.mediaSource?a.mediaSource.mx:null};
BP=function(a,b){DMa(a);a.mediaSource=b;mta(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&aE(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.fk(c)):a.mediaSource.fk(d);var e=a.Va,f=a.mediaSource;e.pk&&(gS(e),e.pk=!1);vIa(e);if(!f.j&&!f.u){var k=e.videoTrack.If(),l=e.policy.xk&&k?k.info.j:e.videoTrack.j,m=e.audioTrack.If(),n=l.info.mimeType+e.policy.xj,p=(e.policy.xk&&m?m.info.j:e.audioTrack.j).info.mimeType,
q,t=null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),v,x="fakesb"===n.split(";")[0]?void 0:null==(v=f.mediaSource)?void 0:v.addSourceBuffer(n);f.Xe&&(f.Xe.webkitSourceAddId("0",p),f.Xe.webkitSourceAddId("1",n));var y=new tA(t,f.Xe,"0",Vz(p),!1),z=new tA(x,f.Xe,"1",Vz(n),!0);f.j=y;f.u=z;g.H(f,y);g.H(f,z)}AR(e.videoTrack,f.u||null);AR(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.fv(f.j,e.Wa,e);g.fv(f.u,e.Wa,e);try{e.Jh()}catch(E){g.S(E)}a.ea("mediasourceattached")}}catch(E){g.Ov(E),a.handleError(new g.yB("fmt.unplayable",
{msi:"1",ename:E.name},1))}})};
DMa=function(a){a.Va?a.Va.seek(a.getCurrentTime()-a.qd()).Eh(function(){}):uU(a)};
OS=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return a.Va&&a.Va.isDisposed()&&sU(a),a.S("html5_reloads_report_as_buffering")&&a.Wb(vH(a.playerState,2048)),a.ea("newelementrequired"),b?g.A(c,pU(a),2):c.Za(2);g.V(a.playerState,8)&&a.playVideo();g.ua(c)})};
zFa=function(a,b){a.Aa("newelem",{r:b});OS(a)};
EU=function(a){a.Ib.D.GG();g.V(a.playerState,32)||(a.Wb(vH(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()};
WP=function(a){g.V(a.playerState,32)?(a.Wb(xH(a.playerState,16,32)),a.ea("endseeking",a)):g.V(a.playerState,2)||a.Wb(vH(a.playerState,16));a.Ib.D.KG(a.videoData,g.V(a.playerState,4))};
tMa=function(a){var b=a.videoData.errorDetail;a.Xf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Ji||void 0)};
qU=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
EMa=function(a){g.wc("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Pu.T(this.qa,b,this.dH,this)},a);
a.Y.wk&&a.qa.Jp()&&(a.Pu.T(a.qa,"webkitplaybacktargetavailabilitychanged",a.tW,a),a.Pu.T(a.qa,"webkitcurrentplaybacktargetiswirelesschanged",a.uW,a))};
FMa=function(a){g.Ar(a.EB);FU(a)||(a.EB=g.yr(function(){return FU(a)},100))};
FU=function(a){var b=a.qa;b&&a.kB&&!a.videoData.ib&&!wx("vfp",a.Ib.timerName)&&2<=b.Ih()&&!b.Uf()&&0<qA(b.jg())&&a.Ib.tick("vfp");return(b=a.qa)&&!a.videoData.ib&&0<b.getDuration()&&(!wx("pbp",a.Ib.timerName)&&b.Pl()&&2<=b.Ih()&&0<qA(b.jg())&&a.Ib.tick("pbp"),b=b.getCurrentTime(),uT(a.Wv,b))?(sFa(a),!0):!1};
sFa=function(a){g.Ar(a.EB);a.Jq.stop();a.videoData.ib=!0;a.Y.zk=!0;a.Y.ib=0;var b=a.Fj;if(b.videoData.u){var c=b.j.u;c.u.delete(b.videoData.u.j);c.j=!0}b.u.stop();a.Y.cj=a.videoData.Jv;a.videoData.mN=!0;GMa(a);g.V(a.playerState,8)&&a.Wb(wH(a.playerState,65));b=a.dc;b.j&&oKa(b.j);b=b.C;c=g.GP(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.qp(a.gE);a.ea("playbackstarted");g.Tr()&&((a=g.Ka("yt.scheduler.instance.clearPriorityThreshold"))?a():Ur(0))};
GMa=function(a){var b=a.getCurrentTime(),c=a.videoData;!wx("pbs",a.Ib.timerName)&&Pw.measure&&Pw.getEntriesByName&&(Pw.getEntriesByName("mark_nr")[0]?pra("mark_nr"):pra());c.videoId&&a.Ib.info("docid",c.videoId);c.eventId&&a.Ib.info("ei",c.eventId);c.clientPlaybackNonce&&!a.S("web_player_early_cpn")&&a.Ib.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Ib.info("start",c.startSeconds.toString());if(a.qa&&a.qa.Pl())if(a.Y.experiments.ob("web_csi_via_jspb")){var d=new Iq;g.D(d,6,!0);var e=new Kq;
xe(e,22,d);vx(e,a.Ib.timerName)}else a.Ib.info("paused",1);a.Y.experiments.ob("web_csi_via_jspb")?(d=new Iq,c.u?(e=Number(c.u.Zb()),g.D(d,1,e)):g.D(d,1,-1),e=new Kq,xe(e,22,d),vx(e,a.Ib.timerName)):c.u?a.Ib.info("fmt",c.u.Zb()):a.Ib.info("fmt","-1");c.md&&(e=a.FF?2:1,a.Y.experiments.ob("web_csi_via_jspb")?(d=new Iq,g.D(d,8,e),e=new Kq,xe(e,22,d),vx(e,a.Ib.timerName)):a.Ib.info("yt_pre",String(a.FF?2:1)));a.isFullscreen()&&a.Ib.info("yt_fs","1");ix({liveStreamMode:HMa[nE(c)]},a.Ib.timerName);a.Ib.info("cmt",
b.toFixed(3));if(a.Va){b=a.Va.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.D&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("avb",c.responseStart),
b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Ib.tick(f,b[f])}};
IMa=function(a){a.dc.Gd();if(a.videoData.isLivePlayback&&Date.now()>a.oN+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&GA(a.videoData.j))){var b=a.dc;if(b.qoe){b=b.qoe;var c=b.j.Ca.wA(),d=g.GP(b.j);ZJa(b,d,c);c=c.D;isNaN(c)||g.YS(b,d,"e2el",[c.toFixed(3)])}}g.YC(a.Y)&&a.Aa("rawlat",{l:uQ(a.cI,"rawlivelatency").toFixed(3)});a.oN=Date.now()}a.videoData.u&&aA(a.videoData.u)&&(b=uF(a))&&b.videoHeight!==a.bG&&(a.bG=b.videoHeight,AU(a,"a",yMa(a,a.videoData.Ya)))};
yMa=function(a,b){if("auto"===b.j.video.quality&&aA(b.Af())&&a.videoData.Db)for(var c=g.r(a.videoData.Db),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.bG&&"auto"!==d.j.video.quality)return d.Af();return b.Af()};
jU=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Va&&a.videoData.j&&(b=aE(a.videoData)?a.Va.Ia.Eg()||0:a.videoData.j.va);return Date.now()/1E3-a.getIngestionTime()-b};
JMa=function(a){!a.S("html5_ignore_airplay_events_on_new_video_killswitch")&&a.qa&&a.qa.Df()&&(a.TA=(0,g.R)());a.Y.Xl?g.tr(function(){GU(a)},0):GU(a)};
GU=function(a){if(a.qa)try{a.DB=a.qa.playVideo()}catch(c){tU(a,"err."+c)}if(a.DB){var b=a.DB;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.DB!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);tU(a,d);a.fL=!0;a.videoData.mP=!0}})}};
tU=function(a,b){g.V(a.playerState,128)||(a.Wb(xH(a.playerState,1028,9)),a.Aa("dompaused",{r:b}),a.ea("onAutoplayBlocked"))};
kU=function(a){if(!a.qa||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=CMa(a);var d;null==(d=a.Va)||d.resume()}else sU(a),a.videoData.Ya&&(c=a.videoData.Ya.tv());b=c;d=a.qa.Zy();c=!1;d&&d.equals(b)||(KMa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Uc,b.D||!(0<b.B)||b.qa&&0<b.qa.getCurrentTime()||b.seekTo(b.B,{re:"playbacktimeline_resumeTime"}));a:if(b=c,g.lE(a.videoData)&&a.qa)if((d=a.videoData.N)&&a.qa.Jp()){var e=a.qa.Ke();if(a.Yd)if(e!==a.Yd.element)HU(a);else if(b&&"fairplay"===
d.flavor&&!Yr())HU(a);else break a;a.Yd=new LS(e,a.videoData,a.Y);a.Yd.subscribe("licenseerror",a.oB,a);a.Yd.subscribe("qualitychange",a.lX,a);a.Yd.subscribe("heartbeatparams",a.Ex,a);a.Yd.subscribe("keystatuseschange",a.bp,a);a.Yd.subscribe("ctmp",a.Aa,a);b=g.r(a.Xt.keys);for(d=b.next();!d.done;d=b.next())d=a.Xt.get(d.value),a.Yd.Tt(d);a.S("html5_eme_loader_sync")||KS(a.Xt)}else a.Xf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
KMa=function(a,b){a.Ib.tick("vta");xx("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&XKa(a.Uc,a.getCurrentTime());a.qa.Ds(b);a.mediaSource&&Ur(4);!a.videoData.ib&&g.zH(a.playerState)&&a.Jq.start();if(a.S("html5_native_audio_track_switching")){var c;if(b=null==(c=a.qa)?void 0:c.audioTracks())b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)}}};
HU=function(a){a.Yd&&(a.Yd.dispose(),a.Yd=null)};
CP=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.S("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.Hm()||g.qE(a.videoData))?a.getCurrentTime():a.xd(b)};
LMa=function(a){a.qa&&(a.mediaSource?(HU(a),CU(a),CMa(a)):(a.videoData.Ya&&a.videoData.Ya.KH(),a.qa.stopVideo()),a.playVideo())};
IU=function(a,b){a.Y.S("html5_log_rebuffer_reason")&&a.Aa("bufreason",{r:b,lact:Au()})};
RP=function(a,b,c,d,e,f){var k;if(null==(k=a.videoData.j)?0:k.isLive){k=2===c.playerType?c:b;var l=b.videoData.videoId,m=c.videoData.videoId;if(l&&m){var n=a.dc;if(n.qoe){n=n.qoe;var p=b.cpn,q=c.cpn,t=k.videoData.Xb,v=n.j.videoData.clientPlaybackNonce,x=n.j.videoData.videoId,y=q!==v&&m!==x;v=p!==v&&l!==x;n.reportStats();n.adCpn&&n.adCpn!==p||(n.adCpn=v?p:"",n.X=v?l:"",n.adFormat=v?t:void 0,dKa(n,f?2:0,q,m,e),n.reportStats(),n.adCpn=y?q:"",n.X=y?m:"",n.adFormat=y?t:void 0,dKa(n,f?3:1,p,l,d),n.reportStats())}d=
a.dc;f=b.cpn;d.B.has(f)?(l=d.B.get(f),pT(l).send(),g.zr(l.B),l.B=NaN,d.u.Y.S("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(qT(l),d.B.delete(f))):(d.hg=d.u.videoData.clientPlaybackNonce,d.hg&&d.j&&d.B.set(d.hg,d.j));d=a.dc;f=c.cpn;k=k.videoData;l=e-a.Bm();if(d.B.has(f)){var z;null!=(z=d.B.get(f))&&z.C&&isNaN(z.B)&&nT(z,!1)}else z=yKa(d,d.u,k,l),d.B.set(f,z),oKa(z);d.hg=f;z=a.videoData.clientPlaybackNonce;a=c.videoData;b=(c.cpn===z?"video":"ad")+"_to_"+
(b.cpn===z?"video":"ad");z={};!a.S("web_player_csi_ctt_killswitch")&&a.X&&(z.cttAuthInfo={token:a.X,videoId:a.videoId});z.startTime=e;jx(b,z);ix({targetVideoId:a.videoId,targetCpn:c.cpn},b);hx("pbs",e,b)}}};
MMa=function(a,b){if(hD(a.Y)){var c=g.YA(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.qa){var d=a.qa.Nb();d.rt=(1E3*g.GP(a.dc.u)).toFixed();d.e=b.substr(0,3);a.FB[a.XO++%c]=d}}};
NMa=function(a){if(hD(a.Y)){a.FB.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.FB),c=b.next();!c.done;c=b.next())c=c.value,a.Aa("vpe",Object.assign({t:c.rt},c));a.FB=[];a.XO=0}};
OMa=function(a){if(Vr("cobalt")&&Vr("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Aa("nxdock",{d:b})}};
rFa=function(a,b,c,d,e){a.Aa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
DU=function(a,b){var c;null==(c=a.Va)||iS(c,b||BMa(a))};
BMa=function(a){var b=a.S("disable_prefetch_when_ad_pending_for_living_room")&&g.MC(a.Y),c=a.S("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.cc(a.Zi,"ad")};
g.MU=function(a,b,c){g.G.call(this);var d=this;this.logger=new g.oQ("App");this.qx=this.Dg=!1;this.Qu={};this.aE={};this.MB={};this.vu=[];this.TM=!1;this.SF=null;this.YM=!1;this.Cq=!0;this.VH=!1;this.rN=this.dG=null;this.yN=!0;this.qa=this.Vb=null;this.Jx=!1;this.FP=this.Rx=this.Cb=this.playlist=null;this.sy=void 0;this.xp=0;this.kd=this.Tu=this.vj=null;this.useLivingRoomPoToken=!1;this.config=vpa(b||{});this.webPlayerContextConfig=c;hna();b=this.config.args||{};this.Y=new OC(b,c,c?c.canaryState:
this.config.assets.player_canary_state);g.H(this,this.Y);this.eE();this.Y.isMobile&&!PMa&&(window.addEventListener(tC?"touchstart":"click",lFa,{capture:!0,passive:!0}),PMa=!0);this.S("html5_user_partitioned_ls_cold_load")&&(g.vD=!0);this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);this.S("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.S("html5_webpo_idle_priority_job")?g.Qr(g.Sr(),function(){QMa(d)}):QMa(this));
var e=this.Y.Ah;e&&e.load().then(function(){d.S("html5_onesie_prewarm")&&yua(e)});
this.QP=mC(zC(this.Y)&&!0,b.enablesizebutton);this.XF=mC(!1,b.player_wide);this.visibility=new JP;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.dA(this);g.H(this,this.events);this.Um=new qQ;g.H(this,this.Um);this.tm=new qQ;g.H(this,this.tm);this.Lo=new rGa;this.Ua=new g.YK(this);g.H(this,this.Ua);this.template=new yQ(this);g.H(this,this.template);this.appState=1;this.yg=this.Y.storeUserVolume?Rta():{volume:100,muted:this.Y.mute};this.I=this.Y.B?new XK(this,
1):new RK(this,1);g.H(this,this.I);c={};this.dE=(c.internalvideodatachange=this.xW,c.playbackready=this.zW,c.playbackstarted=this.BW,c.statechange=this.DW,c);this.Ac=RMa(this);this.SV=new g.dA(this);g.H(this,this.SV);this.S("html5_enable_web_assembly")&&this.Ac&&TCa(this.Ac).then(function(f){d.Y.Bj=f});
this.Ib=new iL(this.Y,this.Ac);this.wb=SMa(this);c={};this.aP=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.GG,c.endseeking=this.KG,c.internalAbandon=this.PG,c.internalaudioformatchange=this.Ax,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Ix,c.liveviewshift=this.nX,c.playbackstalledatstart=this.DY,c.progresssync=this.VX,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.tB,
c.SEEK_TO=this.sY,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.KX,c.statechange=this.QO,c.connectionissue=this.Cx,c.newelementrequired=this.xO,c.heartbeatparams=this.Ex,c.videoelementevent=this.dH,c.drmoutputrestricted=this.onDrmOutputRestricted,c.signatureexpired=this.yY,c.nonfatalerror=this.BX,c);this.So=new g.dA(this);g.H(this,this.So);c=10;g.MC(this.Y)&&(c=3);XC(this.Y)&&(c=g.YA(this.Y.experiments,
"tvhtml5_unplugged_preload_cache_size"));this.Qt=new pQ;g.H(this,this.Qt);this.Nx=new mQ(c,function(f){f!==g.gL(d,f.getPlayerType())&&f.dispose()});
g.H(this,this.Nx);this.TE=this.Zz=-1;this.ZB=new g.L(this.template.resize,16,this.template);g.H(this,this.ZB);TMa(this);this.td=new bQ(this.Ua,this.Y,this.wb);this.Ru=new DP(this);g.H(this,this.Ru);fGa(this.Y.deviceParams.c);this.events.T(this.Ua,g.Gw("appapi"),this.vW);this.events.T(this.Ua,g.Hw("appapi"),this.wW);this.events.T(this.Ua,g.Gw("appad"),this.cO);this.events.T(this.Ua,g.Hw("appad"),this.cO);this.events.T(this.Ua,g.Gw("appprogressboundary"),this.UX);this.events.T(this.Ua,g.Hw("applooprange"),
this.aC);this.events.T(this.Ua,"presentingplayerstatechange",this.vg);this.events.T(this.Ua,"resize",this.gY);this.template.Ba(Dba(a));this.events.T(this.Ua,"offlineslatestatechange",this.DX);this.KI=UMa(this,this.template.element);g.H(this,this.KI);this.Ac.I.V().cg&&BL(this.Ac,"offline");this.Y.Hb&&g.qL("ux",g.uP);a=g.YA(this.Y.experiments,"html5_defer_fetch_att_ms");this.aL=new g.L(this.vZ,a,this);g.H(this,this.aL);JU(this).isValid()&&(g.ew()&&JU(this).va.push("remote"),KU(this),!this.Y.S("html5_delay_initial_loading")&&
LU(this)&&(this.Y.Sh||this.Y.me)&&g.FP(this.wb));this.Ib.tick("fs");VMa(this);this.Ad=null;this.Y.Hb&&QCa(this.Ac);g.IC(this.Ac.I.V())&&BL(this.Ac,"music");g.xC(this.Ac.I.V())&&BL(this.Ac,"embed");this.S("web_player_sentinel_is_uniplayer")||g.Ov(new g.Fs("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.S("web_player_sentinel_yt_experiments_sync");c=g.Q("web_player_sentinel_yt_experiments_sync");a!==c&&g.Ov(new g.Fs("b/195699950",{yt:a,player:c}));this.tQ=WMa(this);if(a=
g.YA(this.Y.experiments,"html5_block_pip_safari_delay"))this.ZE=new g.L(this.mL,a,this),g.H(this,this.ZE);this.Y.S("embeds_enable_pem_cookie_blocking_killswitch")||(Kr=this.Y.Qa);a=g.YA(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.TO=new g.wi(a),g.H(this,this.TO),this.events.T(this.TO,"tick",function(){d.UO&&XMa.Xn(d.UO);d.UO=XMa.tp("apit")}))};
WMa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Cb||a.wb).dc.Hd("player.exception",xB({n:c.name,m:c.message}))}
Pv.subscribe("handleError",b);cr.push(b);return function(){Pv.unsubscribe("handleError",b);var c=cr.indexOf(b);-1!==c&&cr.splice(c,1)}};
SMa=function(a){var b=new g.UD(a.Y,a.config.args);b=a.Nn(1,b);b.setPlaybackRate(a.Y.j?1:YMa(a,Number(g.cw("yt-player-playback-rate"))||1));g.fv(b,a.dE,a);return b};
RMa=function(a){var b="",c=mGa(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.Ov(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new yL(a.Ua,b);ZMa(a,b);return b};
ZMa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
$Ma=function(a,b){var c=a.isVideoInfoVisible();a.vj||(a.vj=new GQ(a.Ua),g.H(a,a.vj),g.eL(a.Ua,a.vj.element,4));g.oI(a.vj,b);NU(a)&&c!==b&&aL(a.Ac).mI();a=a.Cb;b&&a&&a.Aa("sfn",{},!0)};
OU=function(a){a.qa=a.Y.deviceHasDisplay?vP.pop()||new g.LL(g.Wh("VIDEO")):new g.LL(g.Wh("AUDIO"));g.H(a,a.qa);a.Cb&&a.Cb.setMediaElement(a.qa);try{a.Y.Gb?(a.Tu&&a.events.wc(a.Tu),a.Tu=a.events.T(a.qa,"volumechange",a.vX)):(a.qa.xu(a.yg.muted),a.qa.setVolume(a.yg.volume/100))}catch(d){a.Ye("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.dv(a.So);aNa(a);var b=a.template;b.Fb=a.qa.Ke();b.CA=!1;b.Fb.parentNode||g.Zh(b.cw,b.Fb,0);b.KB=
new g.Am(0,0,0,0);qGa(b);zQ(b);g.M(b.Fb,"video-stream");g.M(b.Fb,g.xQ.MAIN_VIDEO);var c=b.app.V();c.fh&&b.Fb.setAttribute("data-no-fullscreen","true");c.vk&&(b.Fb.setAttribute("webkit-playsinline",""),b.Fb.setAttribute("playsinline",""));c.Wl&&b.Fb&&b.T(b.Fb,"click",b.Fb.play,b.Fb);try{a.qa.Ds()}catch(d){a.Ye("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
IP=function(a,b){if(a.Cb!==b){var c=null;if(a.Cb){c=a.Cb.getPlayerState();DL(a.Ac,3);PU(a,"cuerangesremoved",a.Cb.xm());a.Ru&&!b.isGapless()&&a.Cb.isGapless()&&a.qa&&a.qa.stopVideo();var d;if(d=a.kd)d=a.qa,d=!!d&&d===a.kd.qa;d&&(a.Pg(),OU(a));a.Cb&&(a.Cb.Pg(),gv(a.Cb,a.aP,a),1!==a.Cb.getPlayerType()&&a.Cb.dispose());a.Cb=null}1===b.getPlayerType()&&a.wb!==b&&(b.getVideoData().autonavState=a.wb.getVideoData().autonavState,gv(a.wb,a.dE,a),d=a.wb.getPlaybackRate(),a.wb.dispose(),a.wb=b,a.wb.setPlaybackRate(d),
g.fv(b,a.dE,a),KU(a));d=b.getPlayerType();if(b!==a.wb&&b!==a.Qu[d]){var e;null==(e=a.Qu[d])||e.dispose();a.Qu[d]=b}a.Cb=b;a.qa&&b.setMediaElement(a.qa);g.fv(b,a.aP,a);if(b.RA())QU(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.yH(c,b.getPlayerState())&&a.QO(new g.xF(b.getPlayerState(),c));if(b.Sm.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.Ua.Oa("onPlaybackQualityChange",c.quality);PU(a,"cuerangesadded",
a.Cb.xm());c=b.getPlayerState();g.V(c,2)?bNa(a):g.V(c,8)&&b.playVideo()}}};
bNa=function(a){if(!cNa(a)){var b=a.wb.yd();b&&(b=b.uw(),b instanceof Promise&&b.catch(function(){}));
RU(a,CH(a.zb()))}};
aNa=function(a){var b=a.qa;jA()?a.So.T(b,"webkitpresentationmodechanged",a.pY):iA()&&(a.So.T(b,"enterpictureinpicture",function(){a.yu(!0)}),a.So.T(b,"leavepictureinpicture",function(){a.yu(!1)}));
EC&&(a.So.T(b,"webkitbeginfullscreen",function(){a.ij(3)}),a.So.T(b,"webkitendfullscreen",function(){a.ij(0)}))};
g.gL=function(a,b){return b?1===b?a.wb:a.getVideoData().enableServerStitchedDai&&2===b?!a.S("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Qu[2]||a.Cb:a.Cb:a.Qu[b]||null:a.Cb};
SU=function(a,b){return a.qe(b)?a.wb:b};
TU=function(a,b){var c=a.Cb;return c&&b===a.wb&&a.qe(b)&&a.qe(c)?c:b};
UU=function(a){if(!NU(a)){var b=EL(a.Ac);b&&!b.created&&AL(a.Ac)&&b.create()}};
dNa=function(a){var b=a.getVideoData(),c=a.Ac;CL(c)||c.CE();BL(c,"attribution",!1,!0);BL(c,"embed");BL(c,"inline_preview");BL(c,"kids");BL(c,"remote");BL(c,"miniplayer");BL(c,"music");BL(c,"offline");BL(c,"unplugged");BL(c,"ypc",!1,!0);BL(c,"ypc_clickwrap",!1,!0);BL(c,"yto",!1,!0);BL(c,"webgl",!1,!0);c.D||(BL(c,"captions",!0),BL(c,"endscreen"),c.DE(),BL(c,"creatorendscreen",!0));c.CL();PCa(c);a.Ua.ea("videoready",b)};
JU=function(a){return a.wb.getVideoData()};
LU=function(a){a=JU(a);a.isValid();return AE(a)};
VMa=function(a){a.GE();var b=a.config.args;OU(a);var c=JU(a);a.Ua.Oa("onVolumeChange",a.yg);if(b&&lL(b)){var d=UC(a.Y);d&&!a.Dg&&(b.fetch=0);var e=g.xC(a.Y);e&&!a.Dg&&(b.fetch=0);VU(a,b);g.xC(a.Y)&&a.Ib.tick("ep_pr_s");if(d&&!a.Dg)WU(a);else if(e&&!a.Dg)XU(a);else if(!c.isValid())a.playlist.onReady(function(){YU(a)})}IP(a,a.wb);
g.V(a.wb.getPlayerState(),128)||(b=hta(a.Y.deviceHasDisplay),"fmt.noneavailable"===b?a.Ye("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ye(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&LU(a)&&(a.Y.Sh||a.Y.me)?ZU(a):g.cw("yt-player-playback-on-reload")?(g.As("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),Zta(!1),ZU(a)):eD(a.Y)||eNa(a),g.WC(a.Y)||"MWEB"===a.Y.deviceParams.c?(g.Qr(g.Sr(),function(){$U(a)}),g.Qr(g.Sr(),
function(){yBa()})):($U(a),yBa()))};
$U=function(a){if(a.S("fetch_att_independently"))g.qp(a.aL);else{var b=a.getVideoData().botguardData;b&&(a.getVideoData(),g.pK(b,a.Y))}};
eNa=function(a){a.Ua.ea("initializingmode");a.Gl(2);BL(a.Ac,"remote");a.Y.S("player_cued_miniplayer_module_killswitch")||BL(a.Ac,"miniplayer")};
ZU=function(a){if(g.V(a.wb.getPlayerState(),128))return!1;LU(a)&&a.Y.me&&(vP.length&&a.qx?(TK(a,{muted:!1,volume:a.yg.volume},!1),aV(a,!1)):vP.length||a.yg.muted||(TK(a,{muted:!0,volume:a.yg.volume},!1),aV(a,!0)));var b=a.wb.getVideoData();b.SO&&TK(a,{muted:!0,volume:a.yg.volume},!1);bV(a,1,b,!1);a.Ua.ea("initializingmode");IP(a,a.wb);a.Gl(3);if(!(b=!a.Y.yj)){if(b=a.kd)b=a.qa,b=!!b&&b===a.kd.qa;b=b&&a.TM}b&&(a.Pg(),OU(a),a.wb.setMediaElement(a.qa));xU(a.wb);if(g.V(a.wb.getPlayerState(),128))return!1;
RU(a,3);return a.TM=!0};
QMa=function(a){var b=a.S("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",c=a.S("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";b=g.MC(a.Y)?b:c;try{a.NI=sea({ek:b,onError:function(e){g.Ov(e)}});
a.NI.ready().then(function(){fNa(a)});
var d=g.YA(a.Y.experiments,"html5_session_po_token_interval_time_ms");0<d&&(a.OH=g.yr(function(){fNa(a)},d))}catch(e){e instanceof Error&&g.Ov(e)}};
fNa=function(a){var b,c,d,e,f;g.B(function(k){if(!a.S("html5_generate_session_po_token")||null==(b=a.NI)||!b.isReady()||a.useLivingRoomPoToken)return k.return();c=a.S("enable_web_eom_visitor_data")?g.P("EOM_VISITOR_DATA",void 0)||g.P("VISITOR_DATA",void 0):g.P("VISITOR_DATA",void 0);d=a.Y.Nk?a.Y.datasyncId:c;e=a.Y.livingRoomPoTokenId||d;try{f=a.NI.Rt({dw:e}),a.Y.Qd=g.Jc(f,2)}catch(l){g.Ov(l)}g.ua(k)})};
NU=function(a){a=aL(a.Ac);return!!a&&a.loaded};
gNa=function(a,b){if(!a.Vb)return!1;var c=.001*a.Vb.startTimeMs-1;a=.001*a.Vb.endTimeMs;return zh(b,c)||zh(b,a)||b>=c&&b<=a};
hNa=function(a){g.V(a.wb.getPlayerState(),64)&&JU(a).isLivePlayback&&5E3>a.Vb.startTimeMs||a.wb.seekTo(.001*a.Vb.startTimeMs,{re:"application_loopRangeStart"})};
YMa=function(a,b){var c=a.Ua.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};
dV=function(a,b,c){if(a.qe(c)){c=c.getVideoData();if(cV(a))c=b;else{a=a.td;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cc===e.Cc){b+=e.Hc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cc===e.Cc)break;var f=e.Hc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.jd/1E3;else break}c=d}return c}return b};
iNa=function(a,b){if(3===a.getPresentingPlayerType())return CH(aL(a.Ac).Md);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Ad)?0:c.isAdPlaying(a.getCurrentTime()))?a.Zz:-1}return 2!==b||a.qe()?a.Zz:a.TE};
jNa=function(a){if(g.MC(a.Y))return!1;var b=g.cL(a.tb()),c="none"===a.qa.getStyle("display")||0===Eh(a.qa.getSize()),d=AQ(a.template),e=a.Cb.getVideoData(),f=g.GC(a.Y)||g.IC(a.Y);e=dE(e);a=!d||b||f||e||a.Y.Tb;return c&&!a};
KU=function(a){eV(a);a.setLoopVideo(!1);a.setLoopRange(null);a.aE={};a.MB={};a.vu=[];xCa(a.Ib);if(a.Ad){var b=a.Ad,c=a.wb;c.getPlayerType();b.Ra();VP(b,!1);XP(b);MFa(b);b.Ca=c}b=a.td;a=a.wb;1!==a.getPlayerType()&&cQ(b,"invalidParentVideoPlayerType");b.Ra();hQ(b,!1);jQ(b);b.j=a};
WU=function(a){var b=kNa();if(b)if(!b.list)a.Ks();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.mL(a.playlist).videoId||(b.index=a.playlist.index));oL(a.playlist,b);a.Rx&&fV(a,a.Rx)}else a.Rx=null};
XU=function(a,b){var c=(b?b:JU(a)).LQ;a.Ib.tick("ep_pr_r");if(null!=c&&(oL(a.playlist,c),a.VH))a.playlist.onReady(function(){YU(a,b)})};
VU=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Ks,a),g.zf(a.playlist),a.playlist=null);b&&(a.Dg&&(b.fetch=0),a.playlist=new kL(a.Y,b),a.playlist.subscribe("error",a.Ks,a))};
gV=function(a,b,c,d){b in a.aE||(c=new g.Ew(c,d,{id:b,priority:2,namespace:"appad"}),a.wb.addCueRange(c),a.aE[b]=c)};
lNa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.r(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,a.V().S("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")){var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.ip(c,d);g.Kt(c,void 0,Dqa(c)||Fqa(c)||Bqa(c))}else g.Kt(c,void 0,Dqa(c)||Fqa(c)||Bqa(c));return!0};
RU=function(a,b){if(a.Cb){var c=a.Cb.getPlayerType();if(2===c&&!a.qe()){a.TE!==b&&(a.TE=b,a.Ua.Oa("onAdStateChange",b));return}if(2===c&&a.qe()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.S("clips_disable_end_when_looping")&&0===b&&a.Vb||a.Zz===b||(a.Zz=b,a.Ua.Oa("onStateChange",b))};
bV=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Cc;var f=a.Nx.get(e);if(!f)return null;a.Nx.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.gL(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||IP(a,f);return f};
hV=function(a,b,c){c=g.gL(a,c);b&&c===a.wb&&(c.getVideoData().rf=!0)};
iV=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=a.Nn(c,b);a.cancelPlayback(4,c);IP(a,d);2===c&&a.wb.ju(b.clientPlaybackNonce,b.Xb||"",b.breakType||0,b.Pd);1===c&&(a.Gl(1),eNa(a))}else b.dispose(),g.zf(g.gL(a,c))};
mNa=function(a,b,c,d,e){b=lCa(b,c,d,e);(c=g.xC(a.Y)&&!a.Y.N)&&!a.Dg&&(b.fetch=0);VU(a,b);g.xC(a.Y)&&a.Ib.tick("ep_a_pr_s");if(c&&!a.Dg)c=JU(a),CCa(c,b).then(function(f){a.VH=!0;XU(a,f)});
else a.playlist.onReady(function(){YU(a)});
g.xC(a.Y)&&a.Ib.tick("ep_a_pr_r")};
YU=function(a,b){var c=g.xC(a.Y)&&!a.Y.N,d=c&&b?b:g.mL(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Al&&(a.Y.Sh||a.Y.me)||!a.Cq?(b=b.rf,d=a.Qo(d,1),b&&hV(a,d)):iV(a,d,1));g.xC(a.Y)&&a.Ib.tick("ep_p_l");a.VH=!1;a.Ua.Oa("onPlaylistUpdate")};
cNa=function(a){if(a.playlist&&g.DC(a.Y)&&a.Aw()){var b=a.Y.S("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
fV=function(a,b){var c=g.Ka(b);c?((b=kNa())&&b.list&&c(),a.Rx=null):a.Rx=b};
kNa=function(){var a=g.Ka("yt.www.watch.lists.getState");return a?a():null};
jV=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Dw.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Dw.AD_MARKER:(b.style=Dw.TIME_MARKER,b.color=e),b.visible=!0);a.Rv([new g.Ew(1E3*c,1E3*d,b)],1);return!0};
nNa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.vu.push({id:b,H_:c,G_:d}),!1;e=f-a.getCurrentTime();return jV(a,b,c-e,d-e)};
oNa=function(a,b){a.vu=g.Dn(a.vu,function(f){return f.id!==b});
for(var c=a.wb.xm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.wb.removeCueRange(e),PU(a,"cuerangesremoved",[e]),!0}return!1};
pNa=function(a){var b=(0,g.R)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
TK=function(a,b,c){a.Y.va&&(a.yg=b,b.muted||aV(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Gb&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.bw("yt-player-volume",c),g.bw("yt-player-volume",c,2592E3))),qNa(a),c=g.hA&&a.qa&&!a.qa.Bf(),a.Y.Gb&&!c||a.Ua.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
qNa=function(a){var b=a.getVideoData();if(!b.cg){b=a.Y.Gb?1:dxa(b);var c=a.qa;c.xu(a.yg.muted);try{c.setVolume(a.yg.volume*b/100)}catch(d){g.Ov(new g.Fs("b183742307","multiplier: "+b+", volume: "+a.yg.volume))}}};
aV=function(a,b){b!==a.qx&&(a.qx=b,a.Ua.Oa("onMutedAutoplayChange",b))};
kV=function(a){var b=Zu(!0);return b&&(b===a.template.element||a.qa&&b===a.qa.Ke())?b:null};
sNa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.S("lock_fullscreen2")||a.Y.J)&&c&&c.lock&&(!g.hA||!rNa))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.Jx||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.Jx=!0}}else a.Jx&&(a.Jx=!1,c.unlock())};
PU=function(a,b,c){a.Ua.ea(b,c);var d=g.MC(a.Y)||g.FC(a.Y)||g.GC(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.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}}))}};
lV=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.gL(a,e);if(!k||(2!==k.getPlayerType()||a.qe(k)||f)&&!g.qE(k.getVideoData()))3===a.getPresentingPlayerType()?aL(a.Ac).zl("control_seek",b,c):(k===a.wb&&a.Vb&&!gNa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
mV=function(a){a.Ua.Oa("SIZE_CLICKED",!a.XF)};
QU=function(a,b,c,d){c&&(a.Pg(),OU(a));c=g.gL(a);c.Hd(new g.yB("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?aE(e)&&g.YC(a.Y)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Ja&&(f.vvt=e.Ja);e.X&&(f.vss_credentials_token=e.X,f.vss_credentials_token_type=e.wi);e.oauthToken&&(f.oauth_token=e.oauthToken);e.fh&&(f.force_gvi=e.fh);f.autoplay=1;f.reload_count=e.vb+1;f.reload_reason=b;e.Kv&&
(f.unplugged_partner_opt_out=e.Kv);e.Pc&&(f.ypc_is_premiere_trailer=e.Pc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Ad&&UU(a)};
tNa=function(a,b){JU(a).autonavState=b;g.bw("yt-player-autonavstate",b);a.Ua.ea("autonavchange",b)};
uNa=function(a){var b=a.getVideoData().cg,c=a.Y.Tb,d=a.isInline()&&!a.getVideoData().YF,e=a.qa;b||c||d?e.IE():(e.KE(),TK(a,a.yg))};
UMa=function(a,b){return a.Y.S("html5_enable_embedded_player_visibility_signals")&&g.xC(a.Y)?new wQ(b):null};
eV=function(a){(a=EL(a.tb()))&&a.created&&a.destroy()};
cV=function(a){return(a.S("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Ad};
vNa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.r(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Gm(a,d);b.hidden=!!a.hidden};
TMa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.S("embeds_enable_request_storage_access_safari_itp")&&g.Ns&&d&&b.j?ds()||b.Qa?(g.As("embedsStorageAccessNotChecked",{isIosWebview:ds(),isPemPlayer:b.Qa}),a.sy=!1):c.hasStorageAccess().then(function(e){g.As("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.sy=!e},function(e){g.As("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Ov(Error("Embeds ITP Error: "+e));a.sy=!1}):a.sy=!1};
nV=function(a,b){var c=void 0;g.MC(a.Y)&&pr(b)&&or(b)&&(a=g.CE(a.getVideoData()))&&(c={Authorization:"Bearer "+a});g.Kt(b,void 0,void 0,c)};
oV=function(a,b){b.forEach(function(c){nV(a,c)})};
mGa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
wNa=function(a){var b;a=null==(b=UK(a.tb()))?void 0:b.Bw();if(!(a instanceof g.gM))return null;var c;return(null==(c=a.tM())?void 0:c.X)||null};
pV=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
nw=function(a,b){return a.j.has(b)};
X=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
qV=function(a){return Array.from(a.j.keys())};
yNa=function(a){var b;return(null==(b=xNa.get(a))?void 0:b.Ar)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
sV=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:zNa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Pb&&(c.entryTriggerType=b.Pb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Pb)c.debugData.slotEntryTriggerData=rV(a);a=b.qc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(rV(d.value));b=b.vc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(rV(a.value))}return c};
ANa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:zNa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
rV=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Vg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Vg);null!=a.Qe&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Qe);return c};
BNa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Kl(d||[],function(e){return sV(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
vV=function(a,b){return function(c){return tV(uV(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.gb,b.Pb,b.qc,b.vc,c.layoutId,c.layoutType,c.gb)}};
tV=function(a,b,c,d,e,f,k,l,m,n,p){return{adClientDataEntry:{slotData:sV(a,{slotId:b,slotType:c,slotPhysicalPosition:d,gb:e,Pb:f,qc:k,vc:l,Fa:new pV([])}),layoutData:ANa(a,{layoutId:m,layoutType:n,gb:p,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],uc:new Map,Fa:new pV([]),zc:{}})}}};
wV=function(a){this.La=a;a=Math.random();var b=this.La.get();b=g.YA(b.I.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
uV=function(a){var b;(b=a.j)||(a=a.La.get(),b=a.I.V().S("html5_force_debug_data_for_client_tmp_logs")||a.I.V().S("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
CNa=function(a){return{slotId:tw(a,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:void 0,qc:[],vc:[],gb:"surface",Fa:new pV([])}};
DNa=function(a,b){var c=CNa(b),d=Object,e=d.assign;b=uw(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",uc:new Map,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"surface",Fa:new pV([]),zc:tV(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.gb,c.Pb,c.qc,c.vc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{qV:!0,slot:c,layout:b})};
xV=function(a){this.controller=a};
yV=function(a){this.zE=a};
zV=function(a,b,c){this.zE=a;this.ph=b;this.Ri=c};
ENa=function(a,b,c){var d=a.zE();switch(b.type){case "SKIP":Nza(d,a.ph,a.Ri,c)}};
AV=function(){};
BV=function(){};
CV=function(a,b){this.dk=a;this.mZ=b};
DV=function(a,b){this.Up=a;this.Ta=b};
EV=function(a){this.I=a};
FV=function(a,b){this.Yh=a;this.Ta=b};
GNa=function(a){g.G.call(this);this.j=a;this.tS=FNa(this)};
FNa=function(a){var b=new eI(a.j.Qc);g.H(a,b);a=g.r([new xV(a.j.wT),new DV(a.j.Up,a.j.Ta),new EV(a.j.I),new FV(a.j.Yh,a.j.Ta),new zV(a.j.bW,a.j.ph,a.j.Ri),new yV(a.j.OT),new BV,new CV(a.j.dk,a.j.Sf),new AV]);for(var c=a.next();!c.done;c=a.next())c=c.value,Fza(b,c),Gza(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())cI(b,c.value,function(){});
return b};
HNa=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}};
GV=function(a,b,c,d){g.G.call(this);this.Vd=b;this.Yb=c;this.La=d;this.j=a(this,this,this,this,this);g.H(this,this.j);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
HV=function(a,b){a.Vd.add(b);a.La.get().I.V().S("html5_not_register_disposables_when_core_listens")||g.H(a,b)};
bH=function(a,b){eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
cH=function(a,b){eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Vd);for(var c=a.next();!c.done;c=a.next())c.value.yh(b)};
INa=function(a,b){a=g.r(a.Vd);for(var c=a.next();!c.done;c=a.next())c.value.Xi(b)};
dH=function(a,b){eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Vd);for(var c=a.next();!c.done;c=a.next())c.value.uf(b)};
OF=function(a,b){eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Vd);for(var c=a.next();!c.done;c=a.next())c.value.vf(b)};
JV=function(a,b,c){T(c,b,void 0,void 0,c.Vp);IV(a,b,!0)};
KNa=function(a,b,c){if(KV(a.j,b))if(LV(a.j,b).C=c?"filled":"not_filled",null===c){MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Vd);for(var d=c.next();!d.done;d=c.next())d.value.Zj(b);IV(a,b,!1)}else{MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=X(c.Fa,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.Vd);for(d=e.next();!d.done;d=
e.next())d.value.bk(b);if(KV(a.j,b))if(LV(a.j,b).D)IV(a,b,!1);else{MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!LV(f,b))throw new NV("Unknown slotState for onLayout");if(!f.ke.Lm.get(b.slotType))throw new NV("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.dc(c.zd)&&g.dc(c.Rc)&&g.dc(c.Oc)&&g.dc(c.Sc)&&g.dc(c.Yc))throw new NV("Layout has no exit triggers.");OV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.zd);OV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Rc);OV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);OV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);OV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){a.Hf(b,c,n);IV(a,b,!0);return}LV(a.j,b).J=!0;try{var k=a.j,l=LV(k,b),m=k.ke.Lm.get(b.slotType).get().Ae(k.C,k.u,b,c);m.init();l.layout=c;if(l.B)throw new NV("Already had LayoutRenderingAdapter registered for slot");l.B=m;PV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.zd);PV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Rc);PV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);PV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);PV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Yc)}catch(n){QV(a,b,!0);IV(a,b,!0);a.Hf(b,c,n);return}MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.Vd);for(d=f.next();!d.done;d=f.next())d.value.Ui(b,c);QV(a,b,!1);JNa(a,b)}else RV(a.La.get())&&T("slot is unscheduled after been fulfilled.",b,c)}};
SV=function(a,b,c){"core"!==b.gb&&MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
TV=function(a,b,c){MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Vd);for(var d=a.next();!d.done;d=a.next())d.value.Ui(b,c)};
fH=function(a,b,c){a=g.r(a.Vd);for(var d=a.next();!d.done;d=a.next())d.value.Vi(b,c)};
UV=function(a,b,c){MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Vd);for(var d=a.next();!d.done;d=a.next())d.value.Nc(b,c)};
NF=function(a,b,c,d){MV(a.Yb,yNa(d),b,c);a=g.r(a.Vd);for(var e=a.next();!e.done;e=a.next())e.value.Zc(b,c,d)};
QV=function(a,b,c){KV(a.j,b)&&(LV(a.j,b).J=!1,c?a.La.get().I.V().S("html5_enable_deferred_triggers_on_error")?VV(a,LNa(a.j,b)):RV(a.La.get())&&T("Ignore deferred triggers due to error",b):VV(a,LNa(a.j,b)))};
VV=function(a,b){b.sort(function(f,k){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===k.category?f.trigger.triggerId.localeCompare(k.trigger.triggerId):HNa(f.category,l)-HNa(k.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,KV(a.j,d.slot))if(LV(a.j,d.slot).J)LV(a.j,d.slot).N.push(d);else{MNa(a.Yb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(NNa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&ONa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&PNa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&QNa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
RNa(a,c)};
ONa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&WV(a.j,d.slot)&&SNa(a,d.slot,d.layout,c)};
PNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())IV(a,c.value.slot,!1)};
QNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(LV(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.xw(c.slot))}};
RNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Vd),e=d.next();!e.done;e=d.next())e.value.Xi(c.slot);try{var f=a.j,k=c.slot,l=LV(f,k);if(!l)throw new XV("Got enter request for unknown slot");if(!l.u)throw new XV("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new XV("Tried to enter a slot from stage: "+l.j);if(YV(l))throw new XV("Got enter request for already active slot");
for(var m=g.r(ZV(f,k.slotType+"_"+k.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&YV(p))throw new XV("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){T(q,c.slot,$V(a.j,c.slot),void 0,q.Vp);IV(a,c.slot,!0);continue}c=LV(a.j,c.slot);"scheduled"!==c.j&&aW(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.Xz()}};
JNa=function(a,b){if(KV(a.j,b)&&YV(LV(a.j,b))&&$V(a.j,b)&&!WV(a.j,b)){var c;MV(a.Yb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=$V(a.j,b))?c:void 0);a=LV(a.j,b);"entered"!==a.j&&aW(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
SNa=function(a,b,c,d){if(KV(a.j,b)){var e=a.Yb,f;var k=(null==(f=xNa.get(d))?void 0:f.ir)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";MV(e,k,b,c);a=LV(a.j,b);"rendering"!==a.j&&aW(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.mf(c,d)}};
IV=function(a,b,c){if(KV(a.j,b)){a:switch(LV(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(LV(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(LV(a.j,b).D=!0,!c))return;if(YV(LV(a.j,b)))LV(a.j,b).D=!0,TNa(a,b,c);else{a:switch(LV(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)LV(a.j,b).D=!0,KV(a.j,b)&&(eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=LV(a.j,b),b.C="fill_cancel_requested",b.K.oE());else{c=
$V(a.j,b);eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=LV(a.j,b);var e=b.Pb,f=d.va.get(e.triggerId);f&&(f.rj(e),d.va.delete(e.triggerId));e=g.r(b.qc);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d.Z.get(f.triggerId);k&&(k.rj(f),d.Z.delete(f.triggerId))}e=g.r(b.vc);for(f=e.next();!f.done;f=e.next())if(f=f.value,k=d.X.get(f.triggerId))k.rj(f),d.X.delete(f.triggerId);null!=d.layout&&(e=d.layout,bW(d,e.zd),bW(d,e.Rc),bW(d,e.Oc),bW(d,e.Sc),bW(d,e.Yc));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.j;LV(d,b)&&(d=ZV(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Vd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Yi(b),c&&d.Vi(b,c)}}}};
TNa=function(a,b,c){if(KV(a.j,b)&&YV(LV(a.j,b))){var d=$V(a.j,b);if(d&&WV(a.j,b))SNa(a,b,d,c?"error":"abandoned");else{eH(a.Yb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=LV(a.j,b);if(!e)throw new XV("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&aW(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new XV("Cannot exit slot because adapter is not defined");e.u.Yz()}catch(f){T(f,b,void 0,void 0,f.Vp)}}}};
UNa=function(a){this.slot=a;this.va=new Map;this.Z=new Map;this.X=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.N=[];this.j="not_scheduled";this.C="not_filled"};
YV=function(a){return"enter_requested"===a.j||a.isActive()};
NV=function(a,b,c){c=void 0===c?!1:c;ab.call(this,a);this.Vp=c;this.args=[];b&&this.args.push(b)};
XV=function(a,b,c){c=void 0===c?!1:c;ab.call(this,a);this.Vp=c;this.args=[];b&&this.args.push(b)};
cW=function(a,b,c,d,e,f){g.G.call(this);this.ke=a;this.B=b;this.D=c;this.C=d;this.u=e;this.La=f;this.j=new Map};
ZV=function(a,b){return(a=a.j.get(b))?a:new Map};
LV=function(a,b){return ZV(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
VNa=function(a){var b=[];a.j.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
KV=function(a,b){return null!=LV(a,b)};
LNa=function(a,b){a=LV(a,b);b=[].concat(g.u(a.N));ec(a.N);return b};
WV=function(a,b){a=LV(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
$V=function(a,b){if(!dW(a.La.get()))return b=LV(a,b),null!=b.layout?b.layout:null;(a=LV(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
eW=function(a,b,c){if(g.dc(c))throw new XV("No "+WNa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ke.oi.get(d.triggerType))throw new XV("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
OV=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ke.oi.get(d.triggerType))throw new NV("No trigger adapter registered for "+WNa.get(b)+" trigger of type: "+d.triggerType);};
PV=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.ke.oi.get(e.triggerType);f.dj(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}};
bW=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ma.get(c.triggerId);d&&(d.rj(c),a.ma.delete(c.triggerId))}};
aW=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
XNa=function(a){return fW(a.Sq).concat(fW(a.oi)).concat(fW(a.wm)).concat(fW(a.fn)).concat(fW(a.Lm))};
fW=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Mi&&b.push(c);return b};
gW=function(a){g.G.call(this);this.j=a;this.u=YNa(this)};
YNa=function(a){var b=new GV(function(c,d,e,f){return new cW(a.j.ke,c,d,e,f,a.j.La)},new Set(XNa(a.j.ke).concat(a.j.listeners)),a.j.Yb,a.j.La);
g.H(a,b);return b};
hW=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.Bf(this,function(){g.zf(b.j);b.j=null})};
Y=function(a){return new hW(a)};
iW=function(a){this.j=a};
RI=function(a,b,c,d){(a=a.j())||T("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
jW=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
ZNa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
bOa=function(a,b,c,d,e,f,k){b=$Na(b,f,Number(d.prefetchMilliseconds)||0,k);a=b instanceof XV?b:aOa(a,d,e,b,c);return a instanceof XV?a:[a]};
cOa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
gOa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,kW(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return dOa(n)});
a=[];b={};f=g.r(f);for(var k=f.next();!k.done;b={Kr:b.Kr},k=f.next()){b.Kr=k.value;k={};for(var l=g.r(b.Kr.XD),m=l.next();!m.done;k={un:k.un},m=l.next())k.un=m.value,m=function(n,p){return function(q){return n.un.DL(q,p.Kr.instreamVideoAdRenderer.elementId,n.un.VK)}}(k,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===k.un.Es?a.push(eOa(c,d,k.un.WK,e,b.Kr.instreamVideoAdRenderer.elementId,k.un.adSlotLoggingData,m)):a.push(fOa(c,d,e,b.Kr.instreamVideoAdRenderer.elementId,k.un.adSlotLoggingData,m))}return a};
kW=function(a,b,c){if(b=hOa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=iOa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.IA=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
hOa=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.r(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};
dOa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.XD),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.DL)return!1;if(void 0===c.VK)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.IA||void 0===c.Es||a.IA!==c.Es&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Es)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.IA,"matching APSR kind":c.Es}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Es&&void 0===c.WK)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
iOa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,IA:void 0,adVideoId:b,XD:[]});return a.get(b)};
lW=function(a,b,c,d,e,f,k){d?iOa(a,d).XD.push({WK:b,Es:c,VK:e,adSlotLoggingData:f,DL:k}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
mW=function(a){var b=0;a=g.r(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=c.instreamSurveyAdMultiSelectQuestionRenderer||c.instreamSurveyAdSingleSelectQuestionRenderer){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
nW=function(a){var b,c,d,e,f=(null==(b=a.questions)?void 0:null==(c=b[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon)||(null==(d=a.questions)?void 0:null==(e=d[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:e.surveyAdQuestionCommon),k;b=[].concat(g.u((null==(k=a.playbackCommands)?void 0:k.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,t,v,x,y,z,E,I,K,N,aa,J,oa,ia,za,jb;return{impressionCommands:null==(l=a.playbackCommands)?
void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(v=a.playbackCommands)?void 0:v.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==
(y=a.playbackCommands)?void 0:y.progressCommands,Lga:null==(z=a.playbackCommands)?void 0:z.clickthroughCommands,fullscreenCommands:null==(E=a.playbackCommands)?void 0:E.fullscreenCommands,activeViewViewableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:null==(K=a.playbackCommands)?void 0:K.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(N=a.playbackCommands)?void 0:N.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(aa=a.playbackCommands)?void 0:null==(J=aa.activeViewTracking)?void 0:J.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(oa=a.playbackCommands)?void 0:null==(ia=oa.activeViewTracking)?void 0:ia.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(za=a.playbackCommands)?void 0:za.endFullscreenCommands,abandonCommands:null==(jb=a.playbackCommands)?void 0:jb.abandonCommands,completeCommands:b}};
kOa=function(a,b,c,d,e,f,k){return function(l,m){return jOa(a,m.slotId,l,f,function(n,p){n=k(n);return oW(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new mG(c),d],c.adLayoutLoggingData)})}};
nOa=function(a,b,c,d,e,f,k){if(!lOa(a))return new XV("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[mOa(f,b,c,d,function(m){var n=k(m);m=m.slotId;m=uw(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new pW(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",uc:new Map,zd:[q],Rc:[],
Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new nG(l)]),zc:n(p)}})]};
lOa=function(a){a=((null==a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
qOa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Zxa(a))return function(){return new XV("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var k=a.playerOverlay.instreamSurveyAdRenderer,l=mW(k);return 0>=l?function(){return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=oOa(m,c,d,function(q){var t=n(q),v=q.slotId;
q=nW(k);v=uw(e.u.get(),"LAYOUT_TYPE_SURVEY",v);var x={layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new pW(e.j,d),z=new qW(e.j,v),E=new rW(e.j,v),I=new pOa(e.j);return{layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",uc:new Map,zd:[y,I],Rc:[z],Oc:[],Sc:[E],Yc:[],gb:"core",Fa:new pV([new lG(k),new bG(b),new LG(l/1E3),new OG(q)]),zc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}});
m=nOa(a,c,p.slotId,d,e,m,n);return m instanceof XV?m:[p].concat(g.u(m))}};
yOa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(v){v=rOa(v.slotId,c,b,e(v),d);k=v.c_;return v.cU};
else if(c.renderer.instreamVideoAdRenderer)l=function(v){var x=v.slotId;v=e(v);var y=c.config.adPlacementConfig,z=sOa(y),E=z.TL;z=z.WL;var I=c.renderer.instreamVideoAdRenderer,K;if(null==I?0:null==(K=I.playerOverlay)?0:K.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=tOa(I);K=Math.min(E+1E3*N.videoLengthSeconds,z);z=new SE(0,[N.videoLengthSeconds],K);var aa=N.videoLengthSeconds,J=N.playerVars,oa=N.instreamAdPlayerOverlayRenderer,ia=N.adVideoId,
za=uOa(c),jb=N.uc;N=N.TK;var Gb=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;x=uw(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var Ra={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",uc:jb,zd:[new sW(b.j)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new fG(d),new xG(aa),new yG(J),new AG(E),new BG(K),oa&&new gG(oa),new bG(y),new dG(ia),new cG(z),new GG(za),I&&new zG(I),new tG({current:null}),new DG({}),new SG(N)].filter(vOa)),
zc:v(Ra),adLayoutLoggingData:Gb}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=wOa(a,d,l);f.push(m);for(var n=g.r(k),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof XV)return t;f.push.apply(f,g.u(t))}}catch(v){return new XV(v,{errorMessage:v.message,AdPlacementRenderer:c,numberOfSurveyRenderers:xOa(c)})}return f};
xOa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
rOa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=sOa(f),l=k.TL,m=k.WL;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={XP:l,YP:0,YZ:n};k=k.map(function(t){return zOa(a,t,p,c,d,f,e,m)}).map(function(t,v){v=new SE(v,n,m);
return t(v)});
var q=k.map(function(t){return t.dU});
return{cU:AOa(c,a,l,q,f,uOa(b),d,m),c_:k.map(function(t){return t.b_})}};
zOa=function(a,b,c,d,e,f,k,l){var m=tOa(b.instreamVideoAdRenderer),n=c.XP,p=c.YP,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.XP=q;c.YP++;c.YZ.push(m.videoLengthSeconds);var t,v,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var E,I;z=m.videoLengthSeconds;var K=m.playerVars,
N=m.uc,aa=m.TK,J=m.instreamAdPlayerOverlayRenderer,oa=m.adVideoId,ia=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(I=b.instreamVideoAdRenderer)?void 0:I.sodarExtensionData;I=uw(d.u.get(),"LAYOUT_TYPE_MEDIA",a);var za={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",uc:N,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"adapter",Fa:new pV([new fG(k),new xG(z),new yG(K),new AG(n),new BG(q),new CG(p),new tG({current:null}),J&&new gG(J),
new bG(f),new dG(oa),new cG(y),E&&new zG(E),x&&new RG(x),new DG({}),new SG(aa)].filter(vOa)),zc:e(za),adLayoutLoggingData:ia};z=qOa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{dU:y,b_:z}}};
tOa=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=ir(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,uc:a.pings?UE(a.pings):new Map,TK:TE(a.pings)}};
uOa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
sOa=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{TL:b,WL:a}};
COa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[BOa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=uw(b.u.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",uc:UE(l),zd:[new tW(b.j,f)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new bG(d)]),zc:m(q),adLayoutLoggingData:p}})]:new XV("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
EOa=function(a,b,c,d,e,f,k,l){a=DOa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=uw(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",uc:q,zd:[new uW(b.j,n)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new FG(e),new bG(c)]),zc:m(p)}});
return a instanceof XV?a:[a]};
GOa=function(a,b,c,d,e,f,k,l){a=FOa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=uw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,wW(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=uw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,wW(b,n,p))):q.imageOverlayAdContentRenderer?(q=uw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=wW(b,n,p),n.push(new xW(b.j,q)),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new NV("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new NV("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof XV?a:[a]};
JOa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new XV("Expected valid duration for AdActionInterstitialRenderer."):function(m){return HOa(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,k(m),function(n){return IOa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=uw(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return oW(b,
t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new jG(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
KOa=function(a,b,c,d){if(!c.playerVars)return new XV("No playerVars available in AdIntroRenderer.");var e=ir(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=uw(a.u.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{zr:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"adapter",Fa:new pV([new EG({}),new bG(b),new tG({current:null}),new yG(e)]),zc:f(l)},Ms:[new yW(a.j,k,"error")],eq:[],Pz:[],
Oz:[]}}};
MOa=function(a,b,c,d,e,f,k,l){var m=mW(e);if(!Yxa(e))return new XV("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=kOa(a,b,e,f,c,d,k);return n instanceof XV?n:function(p){return LOa(b,p.slotId,c,m,nW(e),k(p),n,l)}};
NOa=function(a,b,c,d,e,f,k){function l(p){return IOa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=k(p);t=uw(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return oW(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new kG(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 XV("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
k(p);p=zW(b,p.slotId,c,n,q,new Map,t,l);q=new pG(p.gH);return{zr:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:p.gb,Fa:new pV([].concat(g.u(p.Zv),[q])),zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},Ms:[],eq:p.Oc,Pz:p.Sc,Oz:p.Yc,Bh:p.Bh}}};
QOa=function(a,b,c,d,e,f,k,l,m,n,p){c=OOa(c,d,f,k,l,m,n,p);if(c instanceof XV)return c;a=POa(b,a,k,e,c);return a instanceof XV?a:[].concat(g.u(a.Xh),[a.Yt])};
SOa=function(a,b,c,d,e,f,k,l,m,n,p){b=OOa(b,c,e,f,l,m,n,p);if(b instanceof XV)return b;a=ROa(a,c,f,k,d,l.Ef,b);return a instanceof XV?a:a.Xh.concat(a.Yt)};
OOa=function(a,b,c,d,e,f,k,l){var m=AW(c);return m instanceof NV?new XV(m):function(n){var p=new SE(0,[m.vz]),q=TOa(m.playerVars,m.qP,e,l,p);n=f(n);var t=k.get(m.yC.externalVideoId);p=UOa(a,"core",m.yC,b,q,m.vz,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,zd:p.zd,Rc:p.Rc,Oc:p.Oc,Sc:p.Sc,Yc:p.Yc,gb:p.gb,Fa:p.Fa,zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},Xh:[]}}};
AW=function(a){if(!a.playerVars)return new NV("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.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new NV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=ir(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN"));
return{yC:a,playerVars:b,qP:a.playerVars,vz:c}};
TOa=function(a,b,c,d,e){a.iv_load_policy=d;b=ir(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.xg&&(a.ctrl=c.xg);c.Og&&(a.ytr=c.Og);c.jm&&(a.ytrcc=c.jm);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.wi&&(a.vss_credentials_token_type=c.wi),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
WOa=function(a,b,c,d,e,f,k,l,m,n,p){a=POa(b,a,k,e,VOa(b,c,d,f,k,l,m,n,p));return a instanceof XV?a:[].concat(g.u(a.Xh),[a.Yt])};
YOa=function(a,b,c,d,e,f,k,l,m,n,p){b=VOa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=XOa(a,c,f,k),c instanceof XV?d=c:(f=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),k=uw(a.u.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.vc),[new BW(a.j,k)]),f=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Pb:c.Pb,qc:c.qc,vc:a},{slotId:f,layoutId:k}),d=f instanceof XV?f:{Yt:{slotId:c.slotId,slotType:c.slotType,
slotPhysicalPosition:c.slotPhysicalPosition,Pb:c.Pb,qc:c.qc,vc:a,gb:c.gb,Fa:new pV([new HG(f.layout)]),adSlotLoggingData:d},Xh:f.Xh})):d=ROa(a,c,f,k,d,l.Ef,b);return d instanceof XV?d:d.Xh.concat(d.Yt)};
VOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),v=t.next();!v.done;v=t.next())if(v=v.value,v.instreamVideoAdRenderer){v=AW(v.instreamVideoAdRenderer);if(v instanceof NV){q=new XV(v);break b}q.push(v.vz)}}if(q instanceof XV)p=q;else{t=0;v=[];for(var x=[],y=[],z=[],E=[],I=[],K=new uG({current:null}),N=[],aa=g.r(d),J=aa.next();!J.done;J=aa.next())if(J=J.value,J.adIntroRenderer){J=KOa(b,c,J.adIntroRenderer,k);if(J instanceof XV){p=J;break a}J=J(n);v.push(J.zr);x=[].concat(g.u(J.Ms),
g.u(x));y=[].concat(g.u(J.eq),g.u(y));J.Bh&&(N=[J.Bh].concat(g.u(N)))}else if(J.instreamVideoAdRenderer){var oa=AW(J.instreamVideoAdRenderer);if(oa instanceof NV){p=new XV(oa);break a}var ia=new SE(t,q);J=b;var za=oa.yC,jb=TOa(oa.playerVars,oa.qP,f,m,ia),Gb=k(n),Ra=l.get(oa.yC.externalVideoId);oa=UOa(J,"adapter",za,c,jb,oa.vz,e,ia,Gb,Ra);ia=oa.Rc;za.isCritical&&(ia=[new yW(J.j,oa.layoutId,"error")].concat(g.u(ia)));J={layoutId:oa.layoutId,layoutType:oa.layoutType,uc:oa.uc,zd:[],Rc:[],Oc:[],Sc:[],
Yc:[],gb:oa.gb,Fa:oa.Fa,zc:oa.zc,adLayoutLoggingData:oa.adLayoutLoggingData};za=ia;oa=oa.Oc;t++;v.push(J);x=[].concat(g.u(za),g.u(x));y=[].concat(g.u(oa),g.u(y))}else if(J.adActionInterstitialRenderer){J=JOa(a,b,c,J.adActionInterstitialRenderer,e,t,k);if(J instanceof XV){p=J;break a}J=J(n);v.push(J.zr);x=[].concat(g.u(J.Ms),g.u(x));y=[].concat(g.u(J.eq),g.u(y));J.Bh&&(N=[J.Bh].concat(g.u(N)))}else if(J.instreamSurveyAdRenderer){if(void 0===p){p=new XV("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:J.instreamSurveyAdRenderer});break a}J=MOa(a,b,c,e,J.instreamSurveyAdRenderer,K,k,p);if(J instanceof XV){p=J;break a}J=J(n);v.push(J.zr);J.Bh&&N.push(J.Bh);x=[].concat(g.u(J.Ms),g.u(x));y=[].concat(g.u(J.eq),g.u(y));z=[].concat(g.u(J.Pz),g.u(z));E=[].concat(g.u(J.Oz),g.u(E));I=[K].concat(g.u(I))}else if(J.surveyTextInterstitialRenderer){J=NOa(a,b,c,e,J.surveyTextInterstitialRenderer,K,k);if(J instanceof XV){p=J;break a}J=J(n);v.push(J.zr);J.Bh&&N.push(J.Bh);y=[].concat(g.u(J.eq),
g.u(y))}else{p=new XV("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={ZZ:v,Rc:x,Sc:z,Yc:E,Oc:y,Zv:I,Xh:N}}}p instanceof XV?n=p:(z=n.slotId,q=p.ZZ,t=p.Rc,v=p.Oc,x=p.Sc,y=p.Zv,n=k(n),z=uw(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),E={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,zd:[new uW(b.j,z)],Rc:t,Oc:v,Sc:x,Yc:[],gb:"core",Fa:new pV([new vG(q)].concat(g.u(y))),zc:n(E)},
Xh:p.Xh});return n}};
$Oa=function(a,b,c,d,e,f,k){if(!Yxa(c))return new XV("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=mW(c);if(0>=l)return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new uG({current:null}),n=kOa(a,b,c,m,d,f,k);return ZOa(a,d,f,l,e,function(p,q){var t=p.slotId,v=nW(c);p=k(p);t=uw(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q);
X(y.Fa,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new bG(d),new MG(l),new OG(v),new PG(!0),m,new qG("LAYOUT_TYPE_SURVEY")];return{OV:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:new Map,zd:[new uW(b.j,t)],Rc:[new qW(b.j,q.layoutId)],Oc:[],Sc:[new rW(b.j,q.layoutId)],Yc:[],gb:"core",Fa:new pV(v),zc:p(x)},lV:y}})};
aPa=function(a){if(!ZNa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&LF(b)?!0:(T("Invalid Sandwich with notify"),!1):!1};
bPa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?LF(a)?!0:(T("Invalid LASR with notify"),!1):!1};
CW=function(a,b,c,d,e,f,k){this.u=a;this.j=b;this.La=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===k?1:k};
tqa=function(a,b,c,d,e,f,k){var l=[];if(DW(a.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")){if(0===b.length&&0===c.length)return l}else if(0===b.length)return l;b=b.filter(jW);for(var m=c.filter(jW),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var v=cPa(a,n,t,d,e,f,k,p);v instanceof XV?T(v,void 0,void 0,{renderer:t.renderer,
config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,g.u(v))}DW(a.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&(e=dPa(a,m,d,k,p,n),l.push.apply(l,g.u(e)));if(null===a.D||f&&!k.KL){var x,y,z;a=k.Ef&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var E,
I,K,N;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null==(E=b[0])?void 0:null==(I=E.config)?void 0:null==(K=I.adPlacementConfig)?void 0:K.kind,renderer:null==(N=b[0])?void 0:N.renderer})}return l}x=c.filter(jW);l.push.apply(l,g.u(gOa(n,x,a.u.get(),a.D,d,a.La.get())));if(!l.length){var aa,J,oa,ia;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,
contentCpn:d,daiEnabled:f,"first APR kind":null==(aa=b[0])?void 0:null==(J=aa.config)?void 0:null==(oa=J.adPlacementConfig)?void 0:oa.kind,renderer:null==(ia=b[0])?void 0:ia.renderer})}return l};
dPa=function(a,b,c,d,e,f){function k(t){return vV(a.B.get(),t)}
var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&aPa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,kW(f,n,m.config.adPlacementConfig.kind),m=QOa(q.layout.layoutId,a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.La.get()),m instanceof XV?T(m):l.push.apply(l,g.u(m))):q&&bPa(q)&&(kW(f,n,m.config.adPlacementConfig.kind),m=WOa(q.adStart.adMessageRenderer.layout.layoutId,
a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,c,d,k,e,a.loadPolicy,a.La.get()),m instanceof XV?T(m):l.push.apply(l,g.u(m)))}return l};
cPa=function(a,b,c,d,e,f,k,l){function m(x){return vV(a.B.get(),x)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,v=k.KL&&"AD_PLACEMENT_KIND_START"===q;v=f&&!v;if(null!=n.adsEngagementPanelRenderer)return lW(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.adsEngagementPanelRenderer,K=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new UF(I),y,z,I.impressionPings,K,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)lW(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.actionCompanionAdRenderer,K=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new TF(I),y,z,I.impressionPings,K,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)lW(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.imageCompanionAdRenderer,K=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new YF(I),y,z,I.impressionPings,K,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)lW(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.shoppingCompanionCarouselRenderer,K=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new ZF(I),y,z,I.impressionPings,K,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!cOa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return bOa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.C)return new XV("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.Ef||T("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.Ef),clientPlaybackNonce:k.clientPlaybackNonce});
ePa(a.C,{adPlacementRenderer:c,contentCpn:d,AL:e})}else{if(n.clientForecastingAdRenderer)return EOa(a.u.get(),a.j.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return GOa(a.u.get(),a.j.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&v)return yOa(a.u.get(),a.j.get(),c,d,m);if(n.linearAdSequenceRenderer&&!v)return kW(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?YOa(a.u.get(),a.j.get(),p,t,n.linearAdSequenceRenderer.linearAds,
d,e,k,m,l,a.loadPolicy,a.La.get()):new XV("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!v)return kW(b,n,q),SOa(a.u.get(),a.j.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.La.get());if(n.instreamSurveyAdRenderer)return $Oa(a.u.get(),a.j.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return ZNa(n.sandwichedLinearAdRenderer)?YOa(a.u.get(),a.j.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,
n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.La.get()):new XV("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return COa(a.u.get(),a.j.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]};
FW=function(a){g.G.call(this);this.j=a};
lw=function(a,b,c,d){a.j().Wh(b,d);c=c();a=a.j();GW(a.Yb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;eH(d.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);eH(d.Yb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.nb(c.slotId))throw new XV("Slot ID was empty");if(LV(e,c))throw new XV("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Pb.triggerType});if(!e.ke.wm.has(c.slotType))throw new XV("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.ke.fn.has(c.slotType))throw new XV("No SlotAdapterFactory registered for slot of type: "+c.slotType);eW(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Pb?[c.Pb]:[]);eW(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);eW(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.vc);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=ZV(f,k);if(LV(f,c))throw new XV("Duplicate slots not supported");l.set(c.slotId,new UNa(c));f.j.set(k,l)}catch(ia){T(ia,c,void 0,void 0,ia.Vp);break a}LV(d.j,c).J=!0;try{var m=d.j,n=LV(m,
c),p=c.Pb,q=m.ke.oi.get(p.triggerType);q&&(q.dj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.va.set(p.triggerId,q));for(var t=g.r(c.qc),v=t.next();!v.done;v=t.next()){var x=v.value,y=m.ke.oi.get(x.triggerType);y&&(y.dj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,y))}for(var z=g.r(c.vc),E=z.next();!E.done;E=z.next()){var I=E.value,K=m.ke.oi.get(I.triggerType);K&&(K.dj("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.X.set(I.triggerId,K))}var N=m.ke.wm.get(c.slotType).get().Ae(m.B,
c);n.K=N;var aa=m.ke.fn.get(c.slotType).get().Ae(m.D,c);aa.init();n.u=aa}catch(ia){T(ia,c,void 0,void 0,ia.Vp);IV(d,c,!0);break a}eH(d.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.yh(c);for(var J=g.r(d.Vd),oa=J.next();!oa.done;oa=J.next())oa.value.yh(c);QV(d,c,!1)}};
HW=function(a,b,c,d){this.yp=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
IW=function(a,b,c,d){g.G.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.j=new Map;d.get().addListener(this);g.Bf(this,function(){d.get().removeListener(e)})};
qqa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof HW?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Pp(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
JW=function(){g.G.apply(this,arguments);this.Mi=!0;this.di=new Map;this.j=new Map};
fPa=function(a,b){a=g.r(a.di.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
gPa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.nb(b)),layoutId:b})};
BW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
yW=function(a,b,c){this.Qe=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
pW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
sW=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
KW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
LW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
uW=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
tW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
hPa=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)};
pOa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
qW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
rW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
xW=function(a,b){this.durationMs=45E3;this.Qe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
iPa=function(a){return[new oG(a.Iu),new gG(a.instreamAdPlayerOverlayRenderer),new sG(a.WO),new bG(a.adPlacementConfig),new xG(a.videoLengthSeconds),new LG(a.pG)]};
jPa=function(a,b,c,d,e,f){a=c.LF?c.LF:uw(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uc:new Map,zd:[new pW(function(l){return vw(f,l)},c.Iu)],
Rc:[],Oc:[],Sc:[],Yc:[],gb:b,Fa:d,zc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
MW=function(a){var b=this;this.u=a;this.j=function(c){return vw(b.u.get(),c)}};
kPa=function(a,b,c,d,e,f){c=new pV([new hG(c),new bG(d)]);b=uw(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",uc:new Map,zd:[new pW(function(k){return vw(a.u.get(),k)},e)],
Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:c,zc:f(d),adLayoutLoggingData:void 0}};
NW=function(a,b,c,d,e){return jPa(b,c,d,new pV(iPa(d)),e,a.u.get())};
lPa=function(a,b,c,d,e){var f=iPa(d);f.push(new $F(d.vT));f.push(new aG(d.xT));return jPa(b,c,d,new pV(f),e,a.u.get())};
EW=function(a,b,c,d,e,f,k,l,m){b=uw(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,uc:p,zd:[new uW(a.j,b),new KW(a.j,e)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([d,new bG(f),new oG(e)]),zc:l(n),adLayoutLoggingData:m}};
wW=function(a,b,c){var d=[];d.push(new LW(a.j,c));b&&d.push(b);return d};
vW=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,uc:new Map,zd:k,Rc:[new BW(a.j,b)],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new XF(d),new bG(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
oW=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,uc:new Map,zd:[new pW(a.j,c)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new bG(d)].concat(g.u(k))),zc:e(m),adLayoutLoggingData:l}};
HOa=function(a,b,c,d,e,f,k,l,m,n){a=zW(a,b,c,d,e,f,k,l,m,n);return{zr:{layoutId:a.layoutId,layoutType:a.layoutType,uc:a.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:a.gb,Fa:new pV(a.Zv),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},Ms:a.Rc,eq:a.Oc,Pz:a.Sc,Oz:a.Yc,Bh:a.Bh}};
LOa=function(a,b,c,d,e,f,k,l){b=zW(a,b,c,d,e,new Map,f,function(m){return k(m,l)},void 0);
a=new rW(a.j,b.gH);c=new pG(b.gH);d=new qG("LAYOUT_TYPE_SURVEY");return{zr:{layoutId:b.layoutId,layoutType:b.layoutType,uc:b.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:b.gb,Fa:new pV([].concat(g.u(b.Zv),[c,d])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},Ms:b.Rc,eq:b.Oc,Pz:[].concat(g.u(b.Sc),[a]),Oz:b.Yc,Bh:b.Bh}};
zW=function(a,b,c,d,e,f,k,l,m,n){b=uw(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Fa,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new bG(c),new MG(d),new OG(e)];n&&c.push(new CG(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:f,zd:[],Rc:[new qW(a.j,q)],Oc:[],Sc:[],Yc:[],gb:"adapter",
Zv:c,zc:k(p),adLayoutLoggingData:m,Bh:l,gH:q}};
UOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new bG(d),new cG(l),new dG(c.externalVideoId),new fG(k),new gG(c.playerOverlay.instreamAdPlayerOverlayRenderer),new OG({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new yG(e),new tG({current:null}),new xG(f)];(e=c.playerUnderlay)&&d.push(new hG(e));e=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:uw(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new pG(f));d.push(new rG(e));d.push(new CG(l.j));c.adNextParams&&d.push(new VF(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new iG(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new WF(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new NG(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new zG(c.sodarExtensionData));n&&d.push(new KG(n));d.push(new SG(TE(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",uc:UE(c.pings),zd:[new uW(a.j,p)],Rc:c.skipOffsetMilliseconds?[new qW(a.j,f)]:[],Oc:[new qW(a.j,f)],Sc:[],Yc:[],gb:b,Fa:new pV(d),zc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
AOa=function(a,b,c,d,e,f,k,l){d.every(function(n){return KF(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
b=uw(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,zd:[new sW(a.j)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new AG(c),new BG(l),new vG(d),new bG(e),new GG(f),new DG({})]),zc:k(m)}};
vOa=function(a){return null!=a};
OW=function(a,b,c){this.yp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
PW=function(a,b,c){this.Qe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
QW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
mPa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
RW=function(a,b,c){this.yp=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
SW=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
TW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
UW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
VW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
WW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
XW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
$Na=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Bl:new Pp(-0x8000000000000,-0x8000000000000),NB:d},null!=c&&(d.Vs=new Pp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Bl:new Pp(0x7ffffffffffff,0x8000000000000),NB:d},null!=c&&(d.Vs=new Pp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||T("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 XV("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Bl:new Pp(a,e),NB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Vs=new Pp(a,e)}return d;default:return new XV("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
YW=function(a){var b=this;this.u=a;this.j=function(c){return vw(b.u.get(),c)}};
aOa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=tw(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Vs&&d.Vs.start!==d.Bl.start&&l.push(new HW(a.j,c,new Pp(d.Vs.start,d.Bl.start),!1));l.push(new HW(a.j,c,new Pp(d.Bl.start,d.Bl.end),d.NB));d={getAdBreakUrl:b.getAdBreakUrl,pP:d.Bl.start,oP:d.Bl.end};b=new WW(a.j,k);f=[new IG(d)].concat(g.u(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Pb:b,qc:l,vc:[new tW(a.j,c),new UW(a.j,k),new VW(a.j,k)],gb:"core",Fa:new pV(f),
adSlotLoggingData:e}};
oPa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(nPa(a,b,e.value));return d};
nPa=function(a,b,c){return null!=c.Vg&&c.Vg===a?c.clone(b):c};
jOa=function(a,b,c,d,e){return pPa(a,b,c,d,e)};
IOa=function(a,b,c,d){var e=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");return pPa(a,e,b,c,d)};
pPa=function(a,b,c,d,e){var f=new QW(a.j,c),k=[new TW(a.j,b)];a=[new UW(a.j,b),new tW(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:f,qc:k,vc:a,gb:"core",Fa:new pV([new HG(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:f,qc:k,vc:a},c))]),adSlotLoggingData:void 0}};
ZOa=function(a,b,c,d,e,f){var k=tw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=uw(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=ZW(a,b,c,d);d=[new TW(a.j,k)];a=[new UW(a.j,k),new tW(a.j,c),new BW(a.j,m)];if(b instanceof XV)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:b,qc:d,vc:a},{slotId:l,layoutId:m});l=f.lV;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,qc:d,vc:a,gb:"core",Fa:new pV([new HG(f.OV)]),
adSlotLoggingData:e},l]};
qPa=function(a,b,c,d,e){e=e?e:tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new tW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:f,vc:a,gb:"core",Fa:new pV([new HG(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:a}))])}};
rPa=function(a,b,c,d){var e=tw(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new tW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Pb:c,qc:f,vc:a,gb:"core",Fa:new pV([new HG(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:a}))])}};
FOa=function(a,b,c,d,e,f){b=ZW(a,b,c,d);if(b instanceof XV)return b;var k=b instanceof HW?new RW(a.j,c,b.j):null;d=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new TW(a.j,d)];a=[new tW(a.j,c),new UW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:b,qc:l,vc:a},k);return f instanceof NV?new XV(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:b,qc:l,vc:a,gb:"core",Fa:new pV([new HG(f)]),adSlotLoggingData:e}};
oOa=function(a,b,c,d){var e=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)],k=[new UW(a.j,e),new tW(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:[new TW(a.j,e)],vc:[new tW(a.j,b),new UW(a.j,e)],gb:"core",Fa:new pV([new HG(d(f))])}};
mOa=function(a,b,c,d,e){var f=tw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new PW(a.j,d,c);d=[new TW(a.j,f)];a=[new tW(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:d,vc:a,gb:"core",Fa:new pV([new HG(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:d,vc:a}))])}};
fOa=function(a,b,c,d,e,f){var k=tw(a.u.get(),b);return sPa(a,k,b,new QW(a.j,d),c,e,d,f)};
BOa=function(a,b,c,d){var e=tw(a.u.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new pw(a.j,b);var f=[new TW(a.j,e)];a=[new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Pb:b,qc:f,vc:a,gb:"core",Fa:new pV([new HG(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,gb:"core",Pb:b,qc:f,vc:a}))]),adSlotLoggingData:c}};
eOa=function(a,b,c,d,e,f,k){return sPa(a,c,b,new SW(a.j,c),d,f,e,k)};
wOa=function(a,b,c){var d=tw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new mPa(a.j),f=[new XW(a.j,d)];a=[new tW(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:e,qc:f,vc:a,gb:"core",Fa:new pV([new HG(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:e,qc:f,vc:a})),new DG({})])}};
POa=function(a,b,c,d,e){b=new yW(a.j,b,"normal");a=tPa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb});return e instanceof XV?e:{Yt:Object.assign({},a,{Fa:new pV([new HG(e.layout)]),adSlotLoggingData:d}),Xh:e.Xh}};
ROa=function(a,b,c,d,e,f,k){a=XOa(a,b,c,d);if(a instanceof XV)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb});if(k instanceof XV)return k;b=[new HG(k.layout)];f&&b.push(new QG({}));return{Yt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb,Fa:new pV(b),adSlotLoggingData:e},Xh:k.Xh}};
tPa=function(a,b,c){var d=tw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new TW(a.j,d)];a=[new UW(a.j,d),new tW(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,qc:e,vc:a,gb:"core"}};
XOa=function(a,b,c,d){b=ZW(a,b,c,d);return b instanceof XV?b:tPa(a,b,c)};
DOa=function(a,b,c,d,e,f){var k=tw(a.u.get(),"SLOT_TYPE_FORECASTING");b=ZW(a,b,c,d);if(b instanceof XV)return b;d=[new TW(a.j,k)];a=[new UW(a.j,k),new tW(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Pb:b,qc:d,vc:a,gb:"core",Fa:new pV([new HG(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Pb:b,qc:d,vc:a}))]),adSlotLoggingData:e}};
uPa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new pw(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=$Na(b,d),a instanceof XV?a:e(a.Bl,f);case "AD_PLACEMENT_KIND_END":return new OW(a.j,c,f);default:return new XV("Cannot construct entry trigger",{kind:b.kind})}};
ZW=function(a,b,c,d){return uPa(a,b,c,d,function(e,f){return new HW(a.j,c,e,f)})};
sPa=function(a,b,c,d,e,f,k,l){var m=[new XW(a.j,b)];a=[new tW(a.j,e),new UW(a.j,b),new yW(a.j,k,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Pb:d,qc:m,vc:a,gb:"core",Fa:new pV([new HG(l({slotId:b,slotType:c,slotPhysicalPosition:1,gb:"core",Pb:d,qc:m,vc:a}))]),adSlotLoggingData:f}};
$W=function(a,b){g.G.call(this);this.La=a;this.u=b;this.eventCount=0};
eH=function(a,b,c){GW(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
MV=function(a,b,c,d){GW(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
MNa=function(a,b,c,d){var e=a.La.get();(e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&GW(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)};
GW=function(a,b,c,d,e,f,k,l,m,n){var p=a.La.get();if((p.I.V().S("html5_enable_ads_client_monitoring_log_live_infra")||(g.MC(p.I.V())?p.I.V().S("html5_enable_ads_client_monitoring_log_tv"):p.I.V().S("html5_enable_ads_client_monitoring_log_web")))&&!a.La.get().I.V().S("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var q=uV(a.u.get());b={eventType:b,eventOrder:++a.eventCount};p={};f&&(p.slotData=sV(q,f));k&&(p.layoutData=ANa(q,k));l&&(p.triggerData=rV(l.trigger,l.category));
c&&(p.opportunityData=BNa(q,c,d,e));c={organicPlaybackContext:{contentCpn:mw(a.j.get(),1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=mw(a.j.get(),1).Ef;var t;c.organicPlaybackContext.isMdxPlayback=null==(t=mw(a.j.get(),1))?void 0:t.isMdxPlayback;var v;if(a=null==(v=mw(a.j.get(),2))?void 0:v.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(p.externalContext=c);b.adClientData=p;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=
n.serializedAdServingDataEntry);g.As("adsClientStateChange",{adsClientEvent:b})}};
aX=function(a,b,c){$W.call(this,a,b);this.j=c};
bX=function(){this.j=new Map};
cX=function(a,b,c,d,e){g.G.call(this);this.I=a;this.B=b;this.Ha=c;this.C=d;this.u=e;this.listeners=[];var f=new bv(this);g.H(this,f);f.T(a,"internalAbandon",this.PG);g.Bf(this,function(){g.dv(f)})};
dX=function(a){g.G.call(this);this.I=a;this.j=new Map;this.u=new bv(this);g.H(this,this.u);this.u.T(this.I,g.Gw("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.Hw("ad"),this.onCueRangeExit,this)};
vPa=function(a,b,c,d,e){g.Ew.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
eX=function(a){this.I=a};
fX=function(a){this.I=a};
DW=function(a,b){return a.I.V().S(b)};
gX=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
dW=function(a){return a.I.V().S("html5_recover_from_non_fatal_errors_in_player_bytes")};
RV=function(a){return g.YC(a.I.V())?a.I.V().S("html5_enable_vod_lsar_ivar_pacf_unplugged"):LC(a.I.V())?a.I.V().S("html5_enable_non_notify_composite_vod_lsar_pacf"):g.MC(a.I.V())?!0:!1};
wPa=function(a){return a.I.V().S("html5_recognize_predict_start_cue_point")};
hX=function(a){return a.I.V().S("html5_enable_common_timer_for_survey_web")};
xPa=function(a){return a.I.V().experiments.ob("enable_desktop_player_underlay")};
yPa=function(a){return a.I.V().experiments.ob("html5_disable_lidar")};
iX=function(a,b){this.Ha=a;this.I=b;this.j=new Map;RE().subscribe("adactiveviewmeasurable",this.yx,this);RE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.xx,this);RE().subscribe("adviewableimpression",this.zx,this);RE().subscribe("adaudioaudible",this.vx,this);RE().subscribe("adaudiomeasurable",this.wx,this)};
kX=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?T("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),hia(Nl(fp),c),lxa(RE(),b,{Fw:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,Jc:2===a.Ha.get().getPresentingPlayerType()&&1===jX(a.Ha.get(),2),nha:!1,oha:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
lX=function(a,b){a.j.has(b)?(a.j.delete(b),delete RE().j[b]):T("Unexpected unregistration of layout in LidarApi")};
mX=function(a,b,c){this.B=c;this.C=a;this.D=b};
nX=function(a,b,c,d){var e=void 0===e?new mX(function(){var f=a.getVideoData(1);return f?g.CE(f):""},function(){return a.V().pageId},function(f){return a.V().S(f)}):e;
this.I=a;this.u=b;this.B=c;this.C=d;this.Up=e;this.jC=null;this.j=new Map;this.Yh=new jF(e);this.D=a.V().experiments.ob("html5_disable_lidar")};
APa=function(a,b,c,d){d=void 0===d?[]:d;var e=gPa(a.u.get(),c);e?(c=oX(a,zPa(e),e),b.hasOwnProperty("baseUrl")?a.Up.send(b,c):a.Yh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
pX=function(a,b){g.As("adsClientStateChange",b)};
qX=function(a,b){a.j.has(b.Iw())?T("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Iw(),b)};
rX=function(a,b){a.j.delete(b.Iw())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
zPa=function(a){var b=X(a.Fa,"metadata_type_ad_placement_config");a=X(a.Fa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,HN:a}};
oX=function(a,b,c,d){var e=c?BPa(a):{};c=c?CPa(a,c.layoutId):{};var f={},k={};d=Object.assign({},eF(a.I,d),txa(b.adPlacementConfig),(f.SLOT_POS=dF(function(){return(b.HN||0).toString()}),f),c,e,(k.FINAL=dF(function(){return"1"}),k.AD_CPN=dF(function(){var l;
return(null==(l=mw(a.C.get(),2))?void 0:l.clientPlaybackNonce)||""}),k));
e={};c=g.r(Object.values(DPa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e};
BPa=function(a){var b={},c,d=null==(c=a.jC)?void 0:EPa(c);null!=d&&(b.SURVEY_ELAPSED_MS=dF(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=dF(function(){return Math.round(Date.now()/1E3).toString()});
return b};
CPa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.aF();if(!a)return{};b={};return b.YT_ERROR_CODE=a.BC.toString(),b.ERRORCODE=a.Ky.toString(),b.ERROR_MSG=a.errorMessage,b};
sX=function(a,b,c){g.G.call(this);this.I=a;this.j=b;this.La=c;this.listeners=[];this.fG=null;this.YD=new Map;b=new g.dA(this);g.H(this,b);b.T(a,"videodatachange",this.XY);b.T(a,"serverstitchedvideochange",this.tY);this.hq=mw(this)};
mw=function(a,b){var c=a.I.getVideoData(b);return c?FPa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
GPa=function(a,b,c){var d=FPa(a,b,c);a.hq=d;a.listeners.forEach(function(e){e.BO(d)})};
FPa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.Cc,l=b.title,m=b.xg,n=b.Og,p=b.isMdxPlayback,q=b.wi,t=b.mdxEnvironment,v=b.wl,x=b.Al,y=b.bq,z=b.videoId||"",E=b.profilePicture||"",I=b.tj||"";b=b.jm||void 0;k=a.j.get().j.get(k)||{layoutId:null,slotId:null};var K=a.I.getVideoData(1),N=K.Ef();K=K.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var aa,J,oa=(null==K?void 0:null==(aa=K.playerConfig)?void 0:null==(J=aa.daiConfig)?void 0:J.enableDai)||!1,ia,
za;aa=(null==K?void 0:null==(ia=K.playerConfig)?void 0:null==(za=ia.daiConfig)?void 0:za.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,AL:a,daiEnabled:oa,KL:aa,isListed:f,Ef:N,profilePicture:E,title:l,tj:I,xg:m,Og:n,jm:b,isMdxPlayback:p,wi:q,mdxEnvironment:t,wl:v,Al:x,bq:y})};
tX=function(a,b){g.G.call(this);this.I=a;this.j=b;this.listeners=[];this.jq=function(){T("Called 'doUnlockPreroll' before it's initialized.")};
b=new bv(this);var c=new g.dA(this);g.H(this,c);g.H(this,b);b.T(a,"progresssync",this.WX);b.T(a,"presentingplayerstatechange",this.MX);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.rg);b.T(a,"resize",this.yb);c.T(a,g.Gw("appad"),this.Vj)};
uX=function(a,b){var c;b=null!=(c=a.j.get().YD.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
jX=function(a,b){return a.I.zb(b)};
HPa=function(a){var b=a.I.eb().Gg();a=a.I.Kj(!0,!0);return b.height-(a.height+a.top)};
IPa=function(a,b){var c=a.I.V();CC(c)||"3"!==c.controlsType||a.I.eb().jy(b)};
vX=function(a,b){g.M(a.I.getRootNode(),b)};
wX=function(a,b){g.yp(a.I.getRootNode(),b)};
JPa=function(a,b,c,d,e){g.G.call(this);var f=this;this.u=Y(function(){return new rw});
g.H(this,this.u);this.X=Y(function(){return new MW(f.u)});
g.H(this,this.X);this.K=Y(function(){return new JW});
g.H(this,this.K);this.B=Y(function(){return new FW(a)});
g.H(this,this.B);this.C=Y(function(){return new YW(f.u)});
g.H(this,this.C);this.va=Y(function(){return new bX});
g.H(this,this.va);this.xa=Y(function(){return new iW(e)});
this.N=Y(function(){return new dX(b)});
g.H(this,this.N);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.D=Y(function(){return new wV(f.La)});
g.H(this,this.D);this.J=Y(function(){return new CW(f.C,f.X,f.La,f.D,null,null)});
g.H(this,this.J);this.j=Y(function(){return new sX(b,f.va,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.D,this.j);g.H(this,this.Yb);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.Z=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.Z);this.Ta=Y(function(){return new nX(b,f.K,f.Z,f.j)});
g.H(this,this.Ta);this.Bc=new qw(this.B,this.J,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j);this.ya=Y(function(){return k});
this.Yo=k;this.ma=new IW(this.B,this.C,this.N,this.ya);g.H(this,this.ma);this.Ec=new kw(this.B,this.C,this.J,this.j,this.ma,c);g.H(this,this.Ec);this.ke={Sq:new Map,wm:new Map,oi:new Map,fn:new Map,Lm:new Map};this.listeners=[];this.Hq={Ec:this.Ec,Pk:null,Nm:null,Sf:this.La.get(),kb:this.xa.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.u.get(),Mm:null,Ri:{BF:function(){}},
ph:this.K.get(),dk:this.j.get()}};
xX=function(){this.listeners=new Set};
yX=function(){};
KPa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&yea(b.siub,b.scs,b.bgub,b.bgp)};
LPa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.j=null};
MPa=function(a,b,c,d){a.j&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Fu?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",k=a.B.get(),l=a.slot.slotId,m=vV(a.u.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Pb:a.slot.Pb,qc:a.slot.qc,vc:a.slot.vc}),n=uw(k.u.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,
layoutType:f,uc:new Map,zd:[new hPa(k.j,l)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new pV([new JG(e)]),zc:m(p)};KNa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof vi||JV(a.callback,a.slot,new XV(e,void 0,!0))})};
NPa=function(a){if(null==a.j)a.callback.uB(a.slot);else try{a.j.cancel(),a.j=null,a.callback.uB(a.slot)}catch(b){a.j=null,JV(a.callback,a.slot,new XV(b))}};
zX=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.j=new LPa(a,b,d,e)};
OPa=function(a){var b;null==(b=a.B)||b.get().ep(X(a.slot.Fa,"metadata_type_cue_point").identifier)};
AX=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.j=new LPa(a,b,d,e)};
BX=function(a,b){this.callback=a;this.slot=b};
WX=function(a,b){return ow(a,b.Wd,b.slotType)?!0:!1};
fY=function(){};
hY=function(a,b,c,d){this.j=a;this.B=b;this.u=c;this.D=d};
iY=function(){};
PPa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
jY=function(a,b){return KF(a,b.Wd,b.Ve)?!0:!1};
kY=function(a){this.j=a};
lY=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Ta=b;this.layoutId=d;this.j=0;this.B=null;this.C=new Set;this.u=Array.from(this.D.get("progress")||[]);this.u.sort(function(f,k){return(f.offsetMilliseconds||0)-(k.offsetMilliseconds||0)});
this.J={adPlacementConfig:c,HN:e}};
mY=function(){return["metadata_type_ad_placement_config"]};
nY=function(a){var b=a.Ta.get();return oX(b,a.J)};
oY=function(a,b){a.C.has(b)||a.nf(b)};
pY=function(a,b,c){for(c=void 0===c?!1:c;a.j<a.u.length;){var d=a.u[a.j];if(d.offsetMilliseconds<=b||c)QPa(a,"progress",[d]),a.j++;else break}};
qY=function(a,b){return a.C.has(b)};
QPa=function(a,b,c){var d,e=a.Ta.get(),f=a.layoutId;a=null!=(d=a.B)?d:void 0;c=void 0===c?[]:c;if(d=gPa(e.u.get(),f))for(b=e.D?{}:e.B.get().nf(f,b),f=oX(e,zPa(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Yh.send(d.baseUrl,f,b,d.headers);else T("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
RPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.j=e;a=X(this.layout.Fa,"metadata_type_ad_placement_config");this.u=new lY(c.uc,this.Ta,a,c.layoutId)};
SPa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_FORECASTING"]}};
rY=function(a,b){this.Ta=a;this.j=b};
sY=function(a,b,c,d){g.ev.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.j=[]};
tY=function(a,b,c,d,e,f,k){e=X(c.Fa,e);a=nY(a);var l=Kg(function(){d.Nc(b,c)});
k.push(f(e,a,c.layoutId,{adsClientData:c.zc},function(){l()}))};
uY=function(a,b,c,d,e,f,k,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",k,l)}}else T("Companion AdUxClick received without a layoutId",k,l)};
TPa=function(a,b,c,d,e){NE.call(this,"action-companion",a,b,c,d,e)};
vY=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ta=e;this.Ge=f;this.J=l;this.Mi=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");HV(this.Ge(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new lY(c.uc,this.Ta,a,c.layoutId)};
UPa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
wY=function(a,b,c,d,e){sY.call(this,a,b,c,d);a=X(c.Fa,"metadata_type_ad_placement_config");this.B=new lY(c.uc,e,a,c.layoutId)};
VPa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_ENDCAP"]}};
xY=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ha=e;this.Ta=f;this.D=k;this.C=l;this.B=!1;this.J=X(this.layout.Fa,"metadata_type_linked_player_bytes_layout_id")};
WPa=function(){return{Wd:["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"],Ve:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
yY=function(a,b,c,d,e,f,k,l){return jY(c,WPa())?new xY(a,b,c,d,e,f,k,l):jY(c,VPa())?new wY(a,b,c,d,f):null};
zY=function(a,b,c,d,e){this.u=a;this.Ha=b;this.Ta=c;this.B=d;this.j=e};
AY=function(a,b,c,d,e,f){g.G.call(this);this.callback=a;this.Xd=b;this.Ha=c;this.wd=d;this.Ge=e;this.La=f;this.Mi=!0;this.KF=!1};
BY=function(a,b,c,d,e,f,k,l,m,n){AY.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=k;this.J=l;this.u=[];this.j=-1;this.C=!1};
CY=function(a,b,c){var d=X(a.Kb().Fa,"metadata_type_linked_in_player_layout_id");return d?d:(T("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Fd(),a.Kb(),{requestingSlot:b,requestingLayout:c}),null)};
DY=function(a,b,c,d){if(!a.C){var e=a.u[a.j];e?(e.Kb().layoutId!==c.layoutId&&T("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Kb().layoutId}),a.C=!0,e.mf(e.Kb(),d),NF(a.B,b,c,d),a.C=!1,a.D?(a.D(),oH(a.wd.get())):XPa(a)):T("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
XPa=function(a){if(a.j===a.u.length-1)a.j++,EY(a.J,a.layout.layoutId),oH(a.wd.get());else{-1===a.j&&a.callback.Nc(a.slot,a.layout);a.j++;var b=a.u[a.j];0<a.j&&tya(a.wd.get());b.startRendering(b.Kb())}};
FY=function(a){return!a.Wo.Jc()&&a.state.Jc()};
GY=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
YPa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
ZPa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
$Pa=function(a,b,c,d){this.D=a;this.layoutId=c;this.J=d;this.u=[];this.j=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":YPa(b)?this.u.push(b):T("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":ZPa(b)?this.j.push(b):T("Invalid AdVideoProgressMillisecondsCommand");break;default:T("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
IY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){g.G.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.ma=e;this.Ha=f;this.wd=k;this.Ja=l;this.B=m;this.J=n;this.position=q;this.Ea=t;this.La=v;this.Mi=!0;this.ya=!1;this.u="not_rendering";this.N=!1;a=X(this.layout.Fa,"metadata_type_ad_placement_config");this.j=new lY(c.uc,this.Ta,a,c.layoutId);var y;a=(null==(y=HY(this))?void 0:y.progressCommands)||[];this.Wa=new $Pa(m,a,c.layoutId,function(){return x.zm()});
this.xa=Kg(function(){x.callback.Nc(x.slot,x.layout)});
this.K=Kg(function(){"rendering_stop_requested"!==x.u&&p(x);x.X?x.callback.Zc(x.slot,x.layout,x.X):T("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
HY=function(a){return X(a.layout.Fa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
KY=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){pY(a.j,1E3*b,c);a.N||pY(a.j,1E3*b,void 0===c?!1:c);var d=a.zm();if(d){d/=1E3;if(b>=.25*d||c)oY(a.j,"first_quartile"),JY(a,"unmuted_first_quartile");if(b>=.5*d||c)oY(a.j,"midpoint"),JY(a,"unmuted_midpoint");if(b>=.75*d||c)oY(a.j,"third_quartile"),JY(a,"unmuted_third_quartile");a=a.Wa;b*=1E3;if(c=a.J()){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.j.length;)if(c=
a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
LY=function(a,b){a.N||a.j.nf(b)};
JY=function(a,b){a.N||oY(a.j,b)};
NY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x){IY.call(this,a,b,c,d,e,f,k,m,n,p,q,t,v,x);var y=this;this.Qc=l;this.OA=!0;this.Z=this.C=0;hX(this.La.get())?(this.D=new VG(this.zm(),function(z){KY(y,z/1E3);MY(y,z)},function(){KY(y,y.zm()/1E3,!0);
MY(y,y.zm());y.K()}),g.H(this,this.D)):(this.timer=new g.wi(200),this.timer.Pa("tick",function(){y.Qb()}),g.H(this,this.timer))};
aQa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Ve:["LAYOUT_TYPE_MEDIA_BREAK"]}};
bQa=function(a){hX(a.La.get())?a.D.start():(a.Z=Date.now(),MY(a,a.C),a.timer.start())};
EPa=function(a){return hX(a.La.get())?a.D.j/1E3:a.C/1E3};
MY=function(a,b){b={current:b/1E3,duration:a.zm()/1E3};a.Qc.get().Oa("onAdPlaybackProgress",b)};
OY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I,K){IY.call(this,a,b,c,d,e,m,p,t,v,y,z,E,I,K);var N=this;this.Qa=f;this.Xd=k;this.va=l;this.Z=n;this.Qc=q;this.Sa=x;this.adCpn="";this.D=new g.L(function(){N.sx("load_timeout",new NV("Media layout load timeout.",{},!0))},1E4)};
cQa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Ve:["LAYOUT_TYPE_MEDIA"]}};
PY=function(a,b,c,d,e,f,k){AY.call(this,a,b,c,d,f,k);this.j=e};
eQa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I){if(jY(d,{Wd:["metadata_type_sub_layouts"],Ve:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var K=X(d.Fa,"metadata_type_sub_layouts");a=new BY(a,n,q,v,b,c,d,f,e,I);e=[];for(b={Cp:0};b.Cp<K.length;b={Cp:b.Cp},b.Cp++){var N=dQa({Nc:a.FY.bind(a),Zc:a.HY.bind(a),Hf:a.GY.bind(a)},c,K[b.Cp],k,l,m,n,p,q,t,v,x,y,z,E,function(aa){return function(J){J.mf(K[aa.Cp],"normal")}}(b),b.Cp,K.length,I);
if(!N)return;e.push(N)}a.u=e;return a}if(jY(d,{Wd:[],Ve:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=dQa({Nc:a.Nc.bind(a),Zc:a.Zc.bind(a),Hf:a.Hf.bind(a)},c,d,k,l,m,n,p,q,t,v,x,y,z,E,function(){EY(f,d.layoutId)},0,1,I))?new PY(a,n,q,v,c,e,I):c};
dQa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I){if(jY(c,aQa()))return new NY(a,b,c,d,e,m,p,q,t,v,function(){},y,z,E,I);
if(jY(c,cQa()))return nw(c.Fa,"metadata_type_ad_intro")?new OY(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,function(K){q.get().Oa("onAdIntroStateChange",K)},y,z,E,I):new OY(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,function(K){q.get().aj(K)},y,z,E,I)};
QY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x){this.Ge=a;this.J=b;this.Ta=c;this.D=d;this.N=e;this.Xd=f;this.K=k;this.Ha=l;this.B=m;this.wd=n;this.Qc=p;this.j=q;this.u=t;this.C=v;this.La=x};
RY=function(a,b,c,d,e,f,k){g.G.call(this);var l=this;this.C=a;this.D=b;this.u=d;this.Ha=e;this.La=f;this.B=k;this.j=null;c.get().addListener(this);g.Bf(this,function(){c.get().removeListener(l)});
d.get().addListener(this);g.Bf(this,function(){d.get().removeListener(l)})};
ePa=function(a,b){if(a.j)T("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.u.get().rC);for(var c=b.next();!c.done;c=b.next())fQa(a,a.j,c.value)}};
fQa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);lw(a.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.D.get(),f=gX(a.La.get());var k=1E3*c.startSecs;k={Bl:new Pp(k,k+1E3*c.durationSecs),NB:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Pp(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Pp(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}k.Vs=f;return[aOa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,k,b.adPlacementRenderer.adSlotLoggingData,[new wG(c)])]})};
SY=function(a,b,c,d,e,f,k,l,m){g.G.call(this);this.J=a;this.N=b;this.K=c;this.D=d;this.u=e;this.B=f;this.j=k;this.La=l;this.C=m;this.Mi=!0};
gQa=function(a,b,c){return rPa(a.u.get(),b.contentCpn,b.Iu,function(d){return kPa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Iu,vV(a.j.get(),d))})};
TY=function(a){var b,c=null==(b=X(a.Fa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(c){b=a.layoutId;var d=X(a.Fa,"metadata_type_content_cpn"),e=X(a.Fa,"metadata_type_instream_ad_player_overlay_renderer"),f=X(a.Fa,"metadata_type_player_underlay_renderer"),k=X(a.Fa,"metadata_type_ad_placement_config"),l=X(a.Fa,"metadata_type_video_length_seconds");var m=nw(a.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):nw(a.Fa,"metadata_type_layout_enter_ms")&&
nw(a.Fa,"metadata_type_layout_exit_ms")?(X(a.Fa,"metadata_type_layout_exit_ms")-X(a.Fa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Iu:b,contentCpn:d,WO:c,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:k,videoLengthSeconds:l,pG:m,LF:X(a.Fa,"metadata_type_linked_in_player_layout_id"),RM:X(a.Fa,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
iQa=function(a,b){return hQa(a,b)};
jQa=function(a,b){b=hQa(a,b);if(!b)return null;var c;b.pG=null==(c=X(a.Fa,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
hQa=function(a,b){var c,d=null==(c=X(a.Fa,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;nw(a.Fa,"metadata_ad_video_is_listed")?c=X(a.Fa,"metadata_ad_video_is_listed"):b?c=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);nw(a.Fa,"metadata_type_ad_info_ad_metadata")?b=X(a.Fa,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.tj,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(T("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{vT:b,adPlacementConfig:X(a.Fa,"metadata_type_ad_placement_config"),xT:c,contentCpn:X(a.Fa,"metadata_type_content_cpn"),LF:X(a.Fa,"metadata_type_linked_in_player_layout_id"),RM:X(a.Fa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Fa,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,pG:void 0,WO:d,Iu:a.layoutId,videoLengthSeconds:X(a.Fa,"metadata_type_video_length_seconds")}};
kQa=function(a,b){this.callback=a;this.slot=b};
UY=function(){};
lQa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
mQa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.j=0};
nQa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
VY=function(a){this.Ha=a};
WY=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
XY=function(a){g.G.call(this);this.nD=a;this.Mb=new Map};
oQa=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof rW&&f.Qe===b&&c.push(e)}c.length?VV(a.nD(),c):T("Survey is submitted but no registered triggers can be activated.")};
YY=function(a,b){XY.call(this,a);var c=this;b.get().addListener(this);g.Bf(this,function(){b.get().removeListener(c)})};
ZY=function(a){g.G.call(this);this.j=a;this.Mi=!0;this.Mb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
$Y=function(a,b){g.G.call(this);var c=this;this.j=a;this.Mb=new Map;b.get().addListener(this);g.Bf(this,function(){b.get().removeListener(c)})};
pQa=function(a,b,c,d){var e=[];a=g.r(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof tW){var k=f.trigger.j===b;k===c?e.push(f):d&&k&&(T("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
aZ=function(a,b,c,d){g.G.call(this);var e=this;this.u=a;this.B=b;this.Ha=c;this.C=d;this.Mb=new Map;this.j=new Set;c.get().addListener(this);g.Bf(this,function(){c.get().removeListener(e)})};
bZ=function(a,b,c,d,e,f,k,l,m,n){if(mw(a.C.get(),1).clientPlaybackNonce!==m)throw new XV("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Mb.set(c.triggerId,{bundle:new WY(b,c,d,e),Sz:f});a.B.get().addCueRange(f,k,l,n,a)};
qQa=function(a,b){a=g.r(a.Mb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.Sz)return c}return""};
cZ=function(a){g.G.call(this);this.B=a;this.Mi=!0;this.Mb=new Map;this.u=this.j=null};
EY=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof uW){var f;if(f=e.trigger.layoutId===b)f=(f=NNa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&VV(a.B(),c)};
dZ=function(a){g.G.call(this);this.j=a;this.Mi=!0;this.Mb=new Map};
eZ=function(a,b,c){g.G.call(this);this.j=a;this.C=b;this.D=c;this.B=this.u=void 0;this.C.get().addListener(this)};
fZ=function(a,b,c,d,e,f){g.G.call(this);this.B=a;this.D=b;this.J=c;this.N=d;this.K=e;this.La=f;this.j=this.u=null;this.C=!1;this.D.get().addListener(this)};
hya=function(a,b,c,d,e){var f=tw(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:void 0,qc:[],vc:[],gb:"surface",Fa:new pV([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"surface",Fa:new pV(c),zc:tV(uV(a.J.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};SV(a.B(),a.u,a.j);d&&(TV(a.B(),a.u,a.j),a.C=!0,UV(a.B(),a.u,a.j))};
gZ=function(a){this.Rp=a};
rQa=function(a,b){if(!a)return{fm:[],Fu:!0};a.trackingParams&&Kya(JH(),a.trackingParams);if(a.adThrottled)return{fm:[],Fu:!0};a=a.playerAds;if(!a||!a.length)return{fm:[],Fu:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{fm:[],Fu:!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{fm:a,
Fu:!1}};
hZ=function(a){g.G.call(this);this.I=a;this.listeners=[];this.j=new bv(this);g.H(this,this.j);this.j.T(this.I,"aduxclicked",this.onAdUxClicked);this.j.T(this.I,"aduxmouseover",this.CG);this.j.T(this.I,"aduxmouseout",this.BG);this.j.T(this.I,"muteadaccepted",this.rW)};
sQa=function(a,b,c){b=g.Kl(b,function(d){return new Kw(d,c,d.id)});
a.I.Oa("onAdUxUpdate",b)};
iZ=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
jZ=function(a,b,c,d){g.G.call(this);this.I=a;this.D=b;this.La=c;this.Ta=d;this.listeners=[];this.B=new Set;this.rC=[];this.C=new iH(this,wPa(c.get()));this.u=new jH;this.j=null};
tQa=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");}};
kZ=function(a){this.I=a};
lZ=function(a){this.I=a};
mZ=function(){this.listeners=[]};
uQa=function(a){this.I=a};
nZ=function(a,b,c,d,e,f,k,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ha=k;this.j=l;this.Ta=m;this.N=n;this.driftRecoveryMs=X(this.layout.Fa,"metadata_type_drift_recovery_ms")||null};
vQa=function(a){var b=X(a.layout.Fa,"metadata_type_layout_enter_ms"),c=X(a.layout.Fa,"metadata_type_layout_exit_ms");a=a.D.get();b=kH(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
oZ=function(a,b){var c;pX(a.Ta.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.B.get().hq)?void 0:c.clientPlaybackNonce,adClientData:a.layout.zc.adClientDataEntry},b)})};
pZ=function(a,b,c,d,e,f,k,l,m,n,p){nZ.call(this,a,b,c,d,e,f,k,l,m,n);this.J=p;this.C=this.u=null;a=g.r(this.J);for(b=a.next();!b.done;b=a.next())b=b.value,nw(b.Kb().Fa,"metadata_type_survey_overlay")&&(this.C=b.Kb().layoutId)};
xQa=function(a,b){var c=wQa(a,b);a.u={Ci:c};c?c.startRendering(c.Kb()):b===a.C&&T("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
wQa=function(a,b){return null==b?null:a.J.find(function(c){return c.Kb().layoutId===b})||null};
yQa=function(a,b,c,d,e,f,k,l,m,n){var p=e-d,q=nw(b.Fa,"metadata_type_survey_overlay");if(!p)return k.Vw(c,2,f,d,e,a.slotId),n.Pi("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q),null;c=k.Fs(c,2,f,d,e,a.slotId);n.Pi("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q);if(!c)return T("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.j.has(c)&&T("Unexpected remap of timeline playback"),l.j.set(c,
{slotId:a,layoutId:b})):T("Invalid timeline playback ID");d+f>e&&k.Lu(c,e-d);return c};
zQa=function(a,b){var c=X(b.Fa,"metadata_type_sodar_extension_data");if(c)try{KPa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}};
AQa=function(a,b,c,d,e,f){c=new g.xF(c,new g.tH);qZ(a,b,c,d,e,!1,f)};
qZ=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;FY(c)&&GY(e,0,null)&&(!qY(a,"impression")&&k&&k(),oY(a,"impression"));qY(a,"impression")&&(g.zF(c,4)&&!g.zF(c,2)&&a.nf("pause"),0>yF(c,4)&&!(0>yF(c,2))&&a.nf("resume"),g.zF(c,16)&&.5<=e&&a.nf("seek"),f&&g.zF(c,2)&&rZ(a,c.state,b,d,e))};
rZ=function(a,b,c,d,e,f){if(qY(a,"impression")){var k=1>=Math.abs(d-e);sZ(a,b,k?d:e,c,d,f);k&&oY(a,"complete")}};
sZ=function(a,b,c,d,e,f){pY(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(GY(c,.25*e,d)&&(f&&!qY(a,"first_quartile")&&f("first"),oY(a,"first_quartile")),GY(c,.5*e,d)&&(f&&!qY(a,"midpoint")&&f("second"),oY(a,"midpoint")),GY(c,.75*e,d)&&(f&&!qY(a,"third_quartile")&&f("third"),oY(a,"third_quartile")))};
BQa=function(a,b){qY(a,"impression")&&a.nf(b?"fullscreen":"end_fullscreen")};
CQa=function(a){qY(a,"impression")&&a.nf("clickthrough")};
DQa=function(a){a.nf("active_view_measurable")};
EQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.nf("active_view_fully_viewable_audible_half_duration")};
FQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.nf("active_view_viewable")};
GQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.nf("audio_audible")};
HQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.nf("audio_measurable")};
IQa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.j=e;this.Ha=f;this.K=k;this.B=l;this.J=m;this.La=n;this.Ta=p;this.C=q;this.OA=!0;this.Cc=this.u=null};
JQa=function(a,b,c){var d;a.Ta.get().Pi("ads_qua","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(d=mw(a.C.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
KQa=function(a,b){var c;a.Ta.get().Pi("ads_imp","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(c=mw(a.C.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
tZ=function(a){return{enterMs:X(a.Fa,"metadata_type_layout_enter_ms"),exitMs:X(a.Fa,"metadata_type_layout_exit_ms")}};
uZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v){nZ.call(this,a,b,c,d,e,k,l,m,n,q);this.X=f;this.J=p;this.C=t;this.La=v;this.Cc=this.u=null};
LQa=function(a,b){var c;a.Ta.get().Pi("ads_imp","acpn."+(null==(c=mw(a.B.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
MQa=function(a,b,c){var d;a.Ta.get().Pi("ads_qua","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(d=mw(a.B.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
vZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,v,x,y,z,E,I){this.Ge=a;this.va=b;this.j=c;this.B=d;this.Ha=e;this.Ta=f;this.K=k;this.D=l;this.u=m;this.C=n;this.Xd=p;this.Z=q;this.wd=t;this.Qc=v;this.N=x;this.X=y;this.ma=z;this.La=E;this.J=I};
wZ=function(a){g.G.call(this);this.j=a;this.Mb=new Map};
xZ=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&VV(a.j(),c)};
yZ=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.Bf(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().hq)?void 0:d.slotId)||null};
NQa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
zZ=function(a){this.I=a};
OQa=function(a,b,c,d,e){NE.call(this,"image-companion",a,b,c,d,e)};
AZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ta=e;this.Ge=f;this.J=l;this.Mi=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");HV(this.Ge(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new lY(c.uc,this.Ta,a,c.layoutId)};
PQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
QQa=function(a,b,c,d,e){NE.call(this,"shopping-companion",a,b,c,d,e)};
BZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ta=e;this.Ge=f;this.J=l;this.Mi=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");HV(this.Ge(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new lY(c.uc,this.Ta,a,c.layoutId)};
RQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
SQa=function(a,b,c,d,e){NE.call(this,"ads-engagement-panel",a,b,c,d,e)};
CZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ta=e;this.Ge=f;this.J=l;this.Mi=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");HV(this.Ge(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new lY(c.uc,this.Ta,a,c.layoutId)};
TQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
UQa=function(a,b,c,d,e){this.j=a;this.Ta=b;this.Ge=c;this.u=d;this.B=e};
DZ=function(a,b,c){NE.call(this,"player-underlay",a,{},b,c);this.j=c};
EZ=function(a,b,c,d){sY.call(this,a,b,c,d)};
VQa=function(a){this.j=a};
WQa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Ta=e;a=X(c.Fa,"metadata_type_ad_placement_config");this.j=new lY(c.uc,this.Ta,a,c.layoutId)};
XQa=function(a,b){this.Ha=a;this.Ta=b};
FZ=function(a,b,c,d,e){sY.call(this,c,a,b,d);this.Ta=e;a=X(b.Fa,"metadata_type_ad_placement_config");this.B=new lY(b.uc,e,a,b.layoutId)};
GZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
IZ=function(a,b,c){c=void 0===c?HZ:c;c.width<HZ.width&&(c=HZ);if(a.width<c.width||a.height<c.height)return{BC:3,Ky:501,errorMessage:"ad("+GZ(c)+") larger than container("+GZ(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{BC:3,Ky:501,errorMessage:"ad("+GZ(c)+") to container("+GZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{BC:3,Ky:501,errorMessage:"ad("+GZ(c)+") covers container("+GZ(a)+") center."}};
YQa=function(a,b){var c=X(a.Fa,"metadata_type_ad_placement_config");return new lY(a.uc,b,c,a.layoutId)};
JZ=function(a){return X(a.Fa,"metadata_type_invideo_overlay_ad_renderer")};
KZ=function(a,b,c,d){NE.call(this,"invideo-overlay",a,b,c,d);this.j=d};
LZ=function(a,b,c,d,e,f,k,l,m,n,p,q){sY.call(this,f,a,b,e);this.Ta=c;this.B=k;this.Ha=l;this.K=m;this.La=n;this.D=p;this.C=q;this.N=YQa(b,c)};
ZQa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];mY().forEach(function(b){a.push(b)});
return{Wd:a,Ve:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
MZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){sY.call(this,f,a,b,e);this.Ta=c;this.B=k;this.K=l;this.Ha=m;this.N=n;this.La=p;this.D=q;this.C=t;this.X=YQa(b,c)};
$Qa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Ve:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
NZ=function(a){this.Ha=a;this.j=!1};
OZ=function(a,b,c,d,e,f,k){sY.call(this,c,a,b,d);this.B=e;this.Ha=f;this.La=k};
aRa=function(a,b,c,d,e,f,k,l,m,n){this.j=a;this.Ha=b;this.Ta=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.La=m;this.u=n};
PZ=function(a){g.G.call(this);this.B=a;this.Mi=!0;this.Mb=new Map;this.j=new Map;this.u=new Map};
bRa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
cRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new rw});
g.H(this,this.K);this.va=Y(function(){return new MW(f.K)});
g.H(this,this.va);this.D=Y(function(){return new JW});
g.H(this,this.D);this.X=Y(function(){return new FW(a)});
g.H(this,this.X);this.Z=Y(function(){return new YW(f.K)});
g.H(this,this.Z);this.Hb=Y(function(){return new bX});
g.H(this,this.Hb);this.Ub=Y(function(){return new OE(b.V())});
g.H(this,this.Ub);this.ma=Y(function(){return new hZ(b)});
g.H(this,this.ma);this.Ea=Y(function(){return new iW(e)});
g.H(this,this.Ea);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.Ja=Y(function(){return new dX(b)});
g.H(this,this.Ja);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.Lb=Y(function(){return new gZ(d)});
g.H(this,this.Lb);this.J=Y(function(){return new wV(f.La)});
g.H(this,this.J);this.Wa=Y(function(){return new CW(f.Z,f.va,f.La,f.J,"SLOT_TYPE_ABOVE_FEED",f.jb)});
g.H(this,this.Wa);this.Dc=Y(function(){return new lZ(b)});
g.H(this,this.Dc);this.rb=Y(function(){return new mZ});
g.H(this,this.rb);this.qb=Y(function(){return new xX});
g.H(this,this.qb);this.j=Y(function(){return new sX(b,f.Hb,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.J,this.j);g.H(this,this.Yb);this.Ia=Y(function(){return new jZ(b,f.j,f.La,f.Ta)});
g.H(this,this.Ia);this.Qa=Y(function(){return new zZ(b)});
g.H(this,this.Qa);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.oe=Y(function(){return new yX});
this.xa=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.xa);this.Ta=Y(function(){return new nX(b,f.D,f.xa,f.j)});
g.H(this,this.Ta);this.bd=new SY(TY,QZ,function(l,m,n,p){return NW(f.va.get(),l,m,n,p)},this.X,this.Z,this.va,this.J,this.La,this.j);
g.H(this,this.bd);this.Bc=new qw(this.X,this.Wa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j,this.Ia);this.Ya=Y(function(){return k});
this.Yo=k;this.jb=new RY(this.X,this.Z,this.Ya,this.Ia,this.Ha,this.La,this.Qa);g.H(this,this.jb);this.Db=new IW(this.X,this.Z,this.Ja,this.Ya);g.H(this,this.Db);this.Ec=new kw(this.X,this.Z,this.Wa,this.j,this.Db,c);g.H(this,this.Ec);this.Tb=Y(function(){return new hY(f.Lb,f.va,f.J,f.Qa)});
g.H(this,this.Tb);this.B=Y(function(){return new iY});
g.H(this,this.B);this.ya=new YY(a,this.ma);g.H(this,this.ya);this.u=new ZY(a);g.H(this,this.u);this.Xa=new wZ(a);g.H(this,this.Xa);this.ib=new $Y(a,this.Ya);g.H(this,this.ib);this.Sa=new aZ(a,this.Ja,this.Ha,this.j);g.H(this,this.Sa);this.vb=new yZ(a,this.j);g.H(this,this.vb);this.N=new cZ(a);g.H(this,this.N);this.Pc=new dZ(a);g.H(this,this.Pc);this.Gb=new PZ(a);g.H(this,this.Gb);this.C=Y(function(){return new UY});
g.H(this,this.C);this.md=Y(function(){return new VY(f.Ha)});
g.H(this,this.md);this.Cd=Y(function(){return new UQa(f.ma,f.Ta,a,f.D,f.xa)});
g.H(this,this.Cd);this.Rb=Y(function(){return new kY(f.Ec)});
g.H(this,this.Rb);this.Xb=Y(function(){return new rY(f.Ta,f.N)});
g.H(this,this.Xb);this.Wc=Y(function(){return new vZ(a,f.N,f.j,f.Qa,f.Ha,f.Ta,f.Hb,f.Ia,f.xa,f.oe,f.Xd,f.Ja,f.wd,f.Qc,f.Ub,f.Ea,f.Dc,f.La,f.D)});
g.H(this,this.Wc);this.Pd=Y(function(){return new XQa(f.Ha,f.Ta)});
g.H(this,this.Pd);this.lc=Y(function(){return new aRa(f.ma,f.Ha,f.Ta,f.D,f.xa,f.Xa,f.Gb,f.Ea,f.La,c)});
g.H(this,this.lc);this.Qd=Y(function(){return new VQa(f.ma)});
g.H(this,this.Qd);this.Ud=new eZ(a,this.qb,this.K);g.H(this,this.Ud);this.me=new fZ(a,this.rb,this.J,this.j,this.K,this.La);g.H(this,this.me);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Tb],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.B],["SLOT_TYPE_PLAYER_UNDERLAY",this.B],["SLOT_TYPE_PLAYBACK_TRACKING",this.B]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ya],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ya],["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.Xa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ib],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Sa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Sa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Sa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",
this.vb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ib],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Pc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Gb]]),fn:new Map([["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",
this.md],["SLOT_TYPE_PLAYER_UNDERLAY",this.C],["SLOT_TYPE_PLAYBACK_TRACKING",this.C]]),Lm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Cd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Rb],["SLOT_TYPE_FORECASTING",this.Xb],["SLOT_TYPE_PLAYER_BYTES",this.Wc],["SLOT_TYPE_PLAYBACK_TRACKING",this.Pd],["SLOT_TYPE_IN_PLAYER",this.lc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qd]])};this.listeners=[this.D.get()];this.Hq={Ec:this.Ec,Pk:this.N,Nm:this.rb.get(),Sf:this.La.get(),kb:this.Ea.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.K.get(),
Mm:this.qb.get(),Ri:this.ya,ph:this.D.get(),dk:this.j.get()}};
dRa=function(a,b,c,d,e,f,k,l,m,n){this.u=a;this.Ha=b;this.Ta=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.La=m;this.j=n};
eRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new rw});
g.H(this,this.C);this.K=Y(function(){return new MW(f.C)});
g.H(this,this.K);this.N=Y(function(){return new JW});
g.H(this,this.N);this.D=Y(function(){return new FW(a)});
g.H(this,this.D);this.J=Y(function(){return new YW(f.C)});
g.H(this,this.J);this.bd=Y(function(){return new bX});
g.H(this,this.bd);this.Hb=Y(function(){return new OE(b.V())});
g.H(this,this.Hb);this.Ja=Y(function(){return new hZ(b)});
g.H(this,this.Ja);this.Z=Y(function(){return new iW(e)});
g.H(this,this.Z);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.vb=Y(function(){return new gZ(d)});
g.H(this,this.vb);this.B=Y(function(){return new wV(f.La)});
g.H(this,this.B);this.Ia=Y(function(){return new CW(f.J,f.K,f.La,f.B,null,f.Ya)});
g.H(this,this.Ia);this.Ub=Y(function(){return new lZ(b)});
g.H(this,this.Ub);this.jb=Y(function(){return new mZ});
g.H(this,this.jb);this.ib=Y(function(){return new xX});
g.H(this,this.ib);this.j=Y(function(){return new sX(b,f.bd,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.B,this.j);g.H(this,this.Yb);this.Lb=Y(function(){return new jZ(b,f.j,f.La,f.Ta)});
this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.Ea=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.Ea);this.Ta=Y(function(){return new nX(b,f.N,f.Ea,f.j)});
g.H(this,this.Ta);this.Wc=Y(function(){return new yX});
g.H(this,this.Wc);this.Dc=new SY(TY,QZ,function(l,m,n,p){return NW(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.La,this.j);
g.H(this,this.Dc);this.Bc=new qw(this.D,this.Ia,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j,this.Lb);this.Wa=Y(function(){return k});
this.Yo=k;this.Ya=new RY(this.D,this.J,this.Wa,this.Lb,this.Ha,this.La);g.H(this,this.Ya);this.qb=new IW(this.D,this.J,this.ma,this.Wa);g.H(this,this.qb);this.Ec=new kw(this.D,this.J,this.Ia,this.j,this.qb,c);g.H(this,this.Ec);this.Gb=Y(function(){return new hY(f.vb,f.K,f.B)});
g.H(this,this.Gb);this.xa=Y(function(){return new iY});
g.H(this,this.xa);this.Sa=new YY(a,this.Ja);g.H(this,this.Sa);this.u=new ZY(a);g.H(this,this.u);this.Qa=new wZ(a);g.H(this,this.Qa);this.Xa=new $Y(a,this.Wa);g.H(this,this.Xa);this.va=new aZ(a,this.ma,this.Ha,this.j);g.H(this,this.va);this.X=new cZ(a);g.H(this,this.X);this.Xb=new dZ(a);g.H(this,this.Xb);this.rb=new PZ(a);g.H(this,this.rb);this.ya=Y(function(){return new UY});
g.H(this,this.ya);this.Pc=Y(function(){return new VY(f.Ha)});
g.H(this,this.Pc);this.Db=Y(function(){return new kY(f.Ec)});
g.H(this,this.Db);this.Rb=Y(function(){return new rY(f.Ta,f.X)});
g.H(this,this.Rb);this.Tb=Y(function(){return new dRa(f.Ja,f.Ha,f.Ta,f.N,f.Ea,f.Qa,f.rb,f.Z,f.La,c)});
g.H(this,this.Tb);this.lc=Y(function(){return new QY(a,f.X,f.Ta,f.Ea,f.Wc,f.Xd,f.j,f.Ha,f.ma,f.wd,f.Qc,f.Hb,f.Z,f.Ub,f.La)});
g.H(this,this.lc);this.md=new eZ(a,this.ib,this.C);g.H(this,this.md);this.Cd=new fZ(a,this.jb,this.B,this.j,this.C,this.La);g.H(this,this.Cd);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Gb],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.xa]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Sa],["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.Qa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.va],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.va],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.va],["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.Xa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.Pc]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Rb],["SLOT_TYPE_IN_PLAYER",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.lc]])};this.listeners=[this.N.get()];this.Hq={Ec:this.Ec,Pk:null,Nm:this.jb.get(),
Sf:this.La.get(),kb:this.Z.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.C.get(),Mm:this.ib.get(),Ri:this.Sa,ph:this.N.get(),dk:this.j.get()}};
fRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.D=Y(function(){return new rw});
g.H(this,this.D);this.J=Y(function(){return new MW(f.D)});
g.H(this,this.J);this.K=Y(function(){return new JW});
g.H(this,this.K);this.X=Y(function(){return new FW(a)});
g.H(this,this.X);this.Z=Y(function(){return new YW(f.D)});
g.H(this,this.Z);this.Ub=Y(function(){return new bX});
g.H(this,this.Ub);this.qb=Y(function(){return new OE(b.V())});
g.H(this,this.qb);this.ya=Y(function(){return new hZ(b)});
g.H(this,this.ya);this.Ia=Y(function(){return new iW(e)});
g.H(this,this.Ia);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.Ya=Y(function(){return new gZ(d)});
g.H(this,this.Ya);this.B=Y(function(){return new wV(f.La)});
g.H(this,this.B);this.xa=Y(function(){return new CW(f.Z,f.J,f.La,f.B,null,null)});
g.H(this,this.xa);this.Db=Y(function(){return new lZ(b)});
g.H(this,this.Db);this.Qa=Y(function(){return new mZ});
g.H(this,this.Qa);this.j=Y(function(){return new sX(b,f.Ub,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.B,this.j);g.H(this,this.Yb);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.Wa=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.Wa);this.Ta=Y(function(){return new nX(b,f.K,f.Wa,f.j)});
g.H(this,this.Ta);this.Tb=Y(function(){return new yX});
g.H(this,this.Tb);this.Lb=new SY(TY,QZ,function(l,m,n,p){return NW(f.J.get(),l,m,n,p)},this.X,this.Z,this.J,this.B,this.La,this.j);
g.H(this,this.Lb);this.Bc=new qw(this.X,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j);this.rb=Y(function(){return k});
this.Yo=k;this.Xa=new IW(this.X,this.Z,this.ma,this.rb);g.H(this,this.Xa);this.Ec=new kw(this.X,this.Z,this.xa,this.j,this.Xa,c);g.H(this,this.Ec);this.jb=Y(function(){return new hY(f.Ya,f.J,f.B)});
g.H(this,this.jb);this.va=Y(function(){return new iY});
g.H(this,this.va);this.Ea=new YY(a,this.ya);g.H(this,this.Ea);this.u=new ZY(a);g.H(this,this.u);this.Ja=new $Y(a,this.rb);g.H(this,this.Ja);this.Sa=new aZ(a,this.ma,this.Ha,this.j);g.H(this,this.Sa);this.N=new cZ(a);g.H(this,this.N);this.Gb=new dZ(a);g.H(this,this.Gb);this.C=Y(function(){return new UY});
g.H(this,this.C);this.Rb=Y(function(){return new VY(f.Ha)});
g.H(this,this.Rb);this.ib=Y(function(){return new kY(f.Ec)});
g.H(this,this.ib);this.vb=Y(function(){return new rY(f.Ta,f.N)});
g.H(this,this.vb);this.Xb=Y(function(){return new zY(f.ya,f.Ha,f.Ta,f.K,c)});
g.H(this,this.Xb);this.Hb=Y(function(){return new QY(a,f.N,f.Ta,f.Wa,f.Tb,f.Xd,f.j,f.Ha,f.ma,f.wd,f.Qc,f.qb,f.Ia,f.Db,f.La)});
g.H(this,this.Hb);this.lc=new fZ(a,this.Qa,this.B,this.j,this.D,this.La);g.H(this,this.lc);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",
this.va]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["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.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Sa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Sa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),fn: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.Rb]]),
Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.vb],["SLOT_TYPE_IN_PLAYER",this.Xb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.K.get()];this.Hq={Ec:this.Ec,Pk:null,Nm:this.Qa.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.D.get(),Mm:null,Ri:this.Ea,ph:this.K.get(),dk:this.j.get()}};
gRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new rw});
g.H(this,this.C);this.D=Y(function(){return new MW(f.C)});
g.H(this,this.D);this.J=Y(function(){return new JW});
g.H(this,this.J);this.N=Y(function(){return new FW(a)});
g.H(this,this.N);this.X=Y(function(){return new YW(f.C)});
g.H(this,this.X);this.Xb=Y(function(){return new bX});
g.H(this,this.Xb);this.jb=Y(function(){return new OE(b.V())});
g.H(this,this.jb);this.ya=Y(function(){return new hZ(b)});
g.H(this,this.ya);this.Ia=Y(function(){return new iW(e)});
g.H(this,this.Ia);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.Z=Y(function(){return new dX(b)});
g.H(this,this.Z);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.Xa=Y(function(){return new gZ(d)});
g.H(this,this.Xa);this.B=Y(function(){return new wV(f.La)});
g.H(this,this.B);this.xa=Y(function(){return new CW(f.X,f.D,f.La,f.B,null,null)});
g.H(this,this.xa);this.Gb=Y(function(){return new lZ(b)});
g.H(this,this.Gb);this.Sa=Y(function(){return new mZ});
g.H(this,this.Sa);this.j=Y(function(){return new sX(b,f.Xb,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.B,this.j);g.H(this,this.Yb);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.Qa=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.Qa);this.Ta=Y(function(){return new nX(b,f.J,f.Qa,f.j)});
g.H(this,this.Ta);this.Ub=Y(function(){return new yX});
g.H(this,this.Ub);this.Rb=new SY(TY,QZ,function(l,m,n,p){return NW(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.La,this.j);
g.H(this,this.Rb);this.Bc=new qw(this.N,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j);this.qb=Y(function(){return k});
this.Yo=k;this.Wa=new IW(this.N,this.X,this.Z,this.qb);g.H(this,this.Wa);this.Ec=new kw(this.N,this.X,this.xa,this.j,this.Wa,c);g.H(this,this.Ec);this.ib=Y(function(){return new hY(f.Xa,f.D,f.B)});
g.H(this,this.ib);this.ma=Y(function(){return new iY});
g.H(this,this.ma);this.Ea=new YY(a,this.ya);g.H(this,this.Ea);this.u=new ZY(a);g.H(this,this.u);this.Ja=new $Y(a,this.qb);g.H(this,this.Ja);this.rb=new aZ(a,this.Z,this.Ha,this.j);g.H(this,this.rb);this.K=new cZ(a);g.H(this,this.K);this.Hb=new dZ(a);g.H(this,this.Hb);this.va=Y(function(){return new UY});
g.H(this,this.va);this.Tb=Y(function(){return new VY(f.Ha)});
g.H(this,this.Tb);this.Ya=Y(function(){return new kY(f.Ec)});
g.H(this,this.Ya);this.vb=Y(function(){return new rY(f.Ta,f.K)});
g.H(this,this.vb);this.Db=Y(function(){return new zY(f.ya,f.Ha,f.Ta,f.J,c)});
g.H(this,this.Db);this.Lb=Y(function(){return new QY(a,f.K,f.Ta,f.Qa,f.Ub,f.Xd,f.j,f.Ha,f.Z,f.wd,f.Qc,f.jb,f.Ia,f.Gb,f.La)});
g.H(this,this.Lb);this.lc=new fZ(a,this.Sa,this.B,this.j,this.C,this.La);g.H(this,this.lc);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["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.Ja],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rb],["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.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",
this.vb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Hq={Ec:this.Ec,Pk:null,Nm:this.Sa.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.C.get(),Mm:null,Ri:this.Ea,ph:this.J.get(),dk:this.j.get()}};
RZ=function(a,b,c,d,e,f,k,l,m){xY.call(this,a,b,c,d,e,f,k,m);this.K=l};
hRa=function(){var a=WPa();a.Wd.push("metadata_type_ad_info_ad_metadata");return a};
iRa=function(a,b,c,d,e,f){this.B=a;this.Ha=b;this.Ta=c;this.C=d;this.u=e;this.j=f};
jRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new rw});
g.H(this,this.C);this.D=Y(function(){return new MW(f.C)});
g.H(this,this.D);this.J=Y(function(){return new JW});
g.H(this,this.J);this.N=Y(function(){return new FW(a)});
g.H(this,this.N);this.X=Y(function(){return new YW(f.C)});
g.H(this,this.X);this.Xb=Y(function(){return new bX});
g.H(this,this.Xb);this.qb=Y(function(){return new uQa(b)});
g.H(this,this.qb);this.rb=Y(function(){return new OE(b.V())});
g.H(this,this.rb);this.ya=Y(function(){return new hZ(b)});
g.H(this,this.ya);this.Ia=Y(function(){return new iW(e)});
g.H(this,this.Ia);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.Z=Y(function(){return new dX(b)});
g.H(this,this.Z);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.Ya=Y(function(){return new gZ(d)});
g.H(this,this.Ya);this.B=Y(function(){return new wV(f.La)});
g.H(this,this.B);this.xa=Y(function(){return new CW(f.X,f.D,f.La,f.B,null,null)});
g.H(this,this.xa);this.Gb=Y(function(){return new lZ(b)});
g.H(this,this.Gb);this.Qa=Y(function(){return new mZ});
g.H(this,this.Qa);this.j=Y(function(){return new sX(b,f.Xb,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.B,this.j);g.H(this,this.Yb);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.Wa=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.Wa);this.Ta=Y(function(){return new nX(b,f.J,f.Wa,f.j)});
g.H(this,this.Ta);this.Ub=Y(function(){return new yX});
g.H(this,this.Ub);this.Rb=new SY(iQa,QZ,function(l,m,n,p){return lPa(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.La,this.j);
g.H(this,this.Rb);this.Bc=new qw(this.N,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j);this.vb=Y(function(){return k});
this.Yo=k;this.Xa=new IW(this.N,this.X,this.Z,this.vb);g.H(this,this.Xa);this.Ec=new kw(this.N,this.X,this.xa,this.j,this.Xa,c);g.H(this,this.Ec);this.jb=Y(function(){return new hY(f.Ya,f.D,f.B)});
g.H(this,this.jb);this.ma=Y(function(){return new iY});
g.H(this,this.ma);this.Ea=new YY(a,this.ya);g.H(this,this.Ea);this.u=new ZY(a);g.H(this,this.u);this.Ja=new $Y(a,this.vb);g.H(this,this.Ja);this.Sa=new aZ(a,this.Z,this.Ha,this.j);g.H(this,this.Sa);this.K=new cZ(a);g.H(this,this.K);this.Hb=new dZ(a);g.H(this,this.Hb);this.va=Y(function(){return new UY});
g.H(this,this.va);this.Tb=Y(function(){return new VY(f.Ha)});
g.H(this,this.Tb);this.ib=Y(function(){return new kY(f.Ec)});
g.H(this,this.ib);this.Db=Y(function(){return new rY(f.Ta,f.K)});
g.H(this,this.Db);this.Lb=Y(function(){return new QY(a,f.K,f.Ta,f.Wa,f.Ub,f.Xd,f.j,f.Ha,f.Z,f.wd,f.Qc,f.rb,f.Ia,f.Gb,f.La)});
g.H(this,this.Lb);this.lc=Y(function(){return new iRa(f.ya,f.Ha,f.Ta,f.J,f.qb,c)});
g.H(this,this.lc);this.Dc=new fZ(a,this.Qa,this.B,this.j,this.C,this.La);g.H(this,this.Dc);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["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.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Sa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Sa],["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.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.ib],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.lc],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Hq={Ec:this.Ec,Pk:null,Nm:this.Qa.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.C.get(),Mm:null,Ri:this.Ea,ph:this.J.get(),dk:this.j.get()}};
kRa=function(a,b,c,d,e,f){this.u=a;this.Ha=b;this.Ta=c;this.B=d;this.C=e;this.j=f};
lRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new rw});
g.H(this,this.K);this.N=Y(function(){return new MW(f.K)});
g.H(this,this.N);this.C=Y(function(){return new JW});
g.H(this,this.C);this.D=Y(function(){return new FW(a)});
g.H(this,this.D);this.J=Y(function(){return new YW(f.K)});
g.H(this,this.J);this.vb=Y(function(){return new bX});
g.H(this,this.vb);this.Lb=Y(function(){return new uQa(b)});
g.H(this,this.Lb);this.Rb=Y(function(){return new OE(b.V())});
g.H(this,this.Rb);this.Ia=Y(function(){return new hZ(b)});
g.H(this,this.Ia);this.Sa=Y(function(){return new iW(e)});
g.H(this,this.Sa);this.wd=Y(function(){return new nH(b)});
g.H(this,this.wd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Xd=Y(function(){return new kZ(b)});
g.H(this,this.Xd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.La=Y(function(){return new fX(b)});
g.H(this,this.La);this.Db=Y(function(){return new gZ(d)});
g.H(this,this.Db);this.B=Y(function(){return new wV(f.La)});
g.H(this,this.B);this.Ea=Y(function(){return new CW(f.J,f.N,f.La,f.B,null,f.Xa,3)});
g.H(this,this.Ea);this.Xb=Y(function(){return new lZ(b)});
g.H(this,this.Xb);this.ib=Y(function(){return new mZ});
g.H(this,this.ib);this.j=Y(function(){return new sX(b,f.vb,f.La)});
g.H(this,this.j);this.Yb=new aX(this.La,this.B,this.j);g.H(this,this.Yb);this.Z=Y(function(){return new jZ(b,f.j,f.La,f.Ta)});
g.H(this,this.Z);this.ya=Y(function(){return new zZ(b)});
g.H(this,this.ya);this.Ha=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ha);this.md=Y(function(){return new yX});
this.jb=Y(function(){return new iX(f.Ha,b)});
g.H(this,this.jb);this.Ta=Y(function(){return new nX(b,f.C,f.jb,f.j)});
g.H(this,this.Ta);this.Bc=new qw(this.D,this.Ea,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new cX(b,this.Bc,this.Ha,this.j,this.Z);this.Qa=Y(function(){return k});
this.Yo=k;this.Pc=new SY(jQa,QZ,function(l,m,n,p){return lPa(f.N.get(),l,m,n,p)},this.D,this.J,this.N,this.B,this.La,this.j);
g.H(this,this.Pc);this.Xa=new RY(this.D,this.J,this.Qa,this.Z,this.Ha,this.La,this.ya);g.H(this,this.Xa);this.rb=new IW(this.D,this.J,this.ma,this.Qa);g.H(this,this.rb);this.Ec=new kw(this.D,this.J,this.Ea,this.j,this.rb,c);g.H(this,this.Ec);this.Hb=Y(function(){return new hY(f.Db,f.N,f.B,f.ya)});
g.H(this,this.Hb);this.va=Y(function(){return new iY});
g.H(this,this.va);this.Ja=new YY(a,this.Ia);g.H(this,this.Ja);this.u=new ZY(a);g.H(this,this.u);this.Wa=new $Y(a,this.Qa);g.H(this,this.Wa);this.Ya=new aZ(a,this.ma,this.Ha,this.j);g.H(this,this.Ya);this.qb=new yZ(a,this.j);g.H(this,this.qb);this.X=new cZ(a);g.H(this,this.X);this.lc=new dZ(a);g.H(this,this.lc);this.xa=Y(function(){return new UY});
g.H(this,this.xa);this.Wc=Y(function(){return new VY(f.Ha)});
g.H(this,this.Wc);this.Gb=Y(function(){return new kY(f.Ec)});
g.H(this,this.Gb);this.Tb=Y(function(){return new rY(f.Ta,f.X)});
g.H(this,this.Tb);this.Dc=Y(function(){return new vZ(a,f.X,f.j,f.ya,f.Ha,f.Ta,f.vb,f.Z,f.jb,f.md,f.Xd,f.ma,f.wd,f.Qc,f.Rb,f.Sa,f.Xb,f.La,f.C)});
g.H(this,this.Dc);this.Ub=Y(function(){return new kRa(f.Ia,f.Ha,f.Ta,f.C,f.Lb,c)});
g.H(this,this.Ub);this.bd=new fZ(a,this.ib,this.B,this.j,this.K,this.La);g.H(this,this.bd);this.ke={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Pc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),wm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.va],
["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),oi: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.Wa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ya],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ya],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qb],["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.Wa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lc]]),fn: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.Wc]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gb],["SLOT_TYPE_FORECASTING",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.Dc],["SLOT_TYPE_IN_PLAYER",this.Ub]])};this.listeners=[this.C.get()];this.Hq={Ec:this.Ec,Pk:null,Nm:this.ib.get(),Sf:this.La.get(),kb:this.Sa.get(),gp:this.Ha.get(),Bc:this.Bc,Nj:this.K.get(),Mm:null,Ri:this.Ja,ph:this.C.get(),dk:this.j.get()}};
SZ=function(a,b,c,d){g.G.call(this);var e=this;this.j=mRa(function(){return e.u},a,b,c,d);
g.H(this,this.j);this.u=(new gW(this.j)).B();g.H(this,this.u)};
TZ=function(a){return a.j.Hq};
mRa=function(a,b,c,d,e){try{var f=b.V();if(g.WC(f))var k=new cRa(a,b,c,d,e);else if(g.ZC(f))k=new eRa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)k=new gRa(a,b,c,d,e);else if(NC(f))k=new fRa(a,b,c,d,e);else if(g.GC(f))k=new jRa(a,b,c,d,e);else if(g.FC(f))k=new lRa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c,
jha:k.deviceParams.cver,iha:k.deviceParams.ctheme,hha:k.deviceParams.cplayer,Aha:k.playerStyle}),new JPa(a,b,c,d,e)}};
UZ=function(a,b){this.j=a;this.Pk=b};
VZ=function(a){PI.call(this,a)};
WZ=function(a,b,c,d,e,f){XI.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,f);this.C=this.Da("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10*
Math.PI);this.hide()};
XZ=function(a,b,c,d,e,f,k){qI.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,e);this.Rg=f;this.jj=k;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ia=this.Da("ytp-ad-action-interstitial-image-container");this.D=new LI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ba(this.Ia);this.Ea=this.Da("ytp-ad-action-interstitial-headline-container");this.N=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-headline");g.H(this,this.N);
this.N.Ba(this.Ea);this.ya=this.Da("ytp-ad-action-interstitial-description-container");this.J=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-description");g.H(this,this.J);this.J.Ba(this.ya);this.Qa=this.Da("ytp-ad-action-interstitial-background-container");this.Z=new LI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ba(this.Qa);this.Ja=this.Da("ytp-ad-action-interstitial-action-button-container");
this.C=new bv;g.H(this,this.C);this.hide()};
nRa=function(a){var b=g.Rh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
YZ=function(a,b,c,d,e){qI.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.Xa=this.ya=this.D=this.Qa=this.Ia=null;this.Ja=!1;this.J=null;this.Z=0;a=this.Da("ytp-ad-overlay-container");this.Ea=new fJ(a,45E3,6E3,.3,.4);g.H(this,this.Ea);this.C=oRa(this);g.H(this,this.C);this.C.Ba(a);this.B=pRa(this);g.H(this,this.B);this.B.Ba(a);this.u=qRa(this);g.H(this,this.u);this.u.Ba(a);this.hide()};
oRa=function(a){var b=new g.pI({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:[EI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element,
c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b};
pRa=function(a){var b=new g.pI({G:"div",Ga:["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:[EI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Ti);a.T(b.Da("ytp-ad-overlay-text-image"),"click",a.KY);b.hide();return b};
qRa=function(a){var b=new g.pI({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:[EI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Da("ytp-ad-overlay-image"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b};
a_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Rh("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.ya=new g.pI({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.ya),a.ya.Ba(b),b=new UI(a.api,a.fb,a.layoutId,a.j,a.kb,a.ya.element,!1),g.H(a,b),b.init(ME("ad-info-hover-text-button"),
c,a.macros),a.J){b.Ba(a.J,0);b.subscribe("f",a.kW,a);b.subscribe("e",a.WG,a);a.T(a.J,"click",a.lW);var d=g.Rh("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.Ja=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Xa=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Ov(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
rRa=function(a,b){if(b_(a,c_)||a.api.Te())return!1;var c=rI(b.title),d=rI(b.description);if(g.nb(c)||g.nb(d))return!1;a.ah(a.C.element,b.trackingParams||null);a.C.Na("title",rI(b.title));a.C.Na("description",rI(b.description));a.C.Na("displayUrl",rI(b.displayUrl));b.navigationEndpoint&&g.kc(a.N,b.navigationEndpoint);a.C.show();a.Ea.start();a.bb(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++});
return!0};
sRa=function(a,b){if(b_(a,c_)||a.api.Te())return!1;var c=rI(b.title),d=rI(b.description);if(g.nb(c)||g.nb(d))return!1;a.ah(a.B.element,b.trackingParams||null);a.B.Na("title",rI(b.title));a.B.Na("description",rI(b.description));a.B.Na("displayUrl",rI(b.displayUrl));a.B.Na("imageUrl",nAa(b.image));b.navigationEndpoint&&g.kc(a.N,b.navigationEndpoint);a.Qa=b.imageNavigationEndpoint||null;a.B.show();a.Ea.start();a.bb(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++});
return!0};
tRa=function(a,b){if(a.api.Te())return!1;var c=oAa(b.image),d=c;c.width<c_.width&&(d=c_);if(0===c.width||0===c.height||b_(a,d))return!1;a.ah(a.u.element,b.trackingParams||null);a.u.Na("imageUrl",nAa(b.image));a.u.Na("width",c.width);a.u.Na("height",c.height);b.navigationEndpoint&&g.kc(a.N,b.navigationEndpoint);b=a.u.Da("ytp-ad-image-overlay");g.Dm(b,"max-width",c.width+"px");a.u.show();a.bb(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Z++;a.api.CG("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.BG("invideo-overlay",a.layoutId)});
return!0};
b_=function(a,b){var c=a.api.eb().Gg(),d=a.api.Kj(!0,!1);return(b=IZ(c,c.height-(d.height+d.top),b))?(a.Ia&&b&&(c=g.gg(a.macros),c.ERRORCODE=b.Ky.toString(),c.ERROR_MSG=b.errorMessage,RI(a.kb,a.Ia,c)),!0):!1};
$Z=function(a,b,c){var d=g.gg(a.macros),e=g.Om(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Mm(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()}};
b=g.r(a.N);for(c=b.next();!c.done;c=b.next())RI(a.kb,c.value,d);a.api.pauseVideo()};
uRa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
d_=function(a,b,c,d,e,f){XI.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var k=this;this.Z=-1;this.C=0;this.N=!1;this.ya=this.Da("ytp-ad-message-slot");this.B=new g.pI({G:"span",L:"ytp-ad-message-container"});this.B.Ba(this.ya);g.H(this,this.B);this.messageText=new VI(this.api,this.fb,this.layoutId,this.j,e,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ba(this.B.element);this.J=new g.$I(this.B,400,!1,100,function(){return k.hide()});
g.H(this,this.J);this.hide()};
vRa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
e_=function(a,b,c,d,e){qI.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,e);this.actionButton=null;this.ya=this.Da("ytp-ad-underlay-image-container");this.C=new LI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-underlay-image");
g.H(this,this.C);this.C.Ba(this.ya);this.Z=this.Da("ytp-ad-underlay-headline-container");this.u=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-underlay-headline");g.H(this,this.u);this.u.Ba(this.Z);this.N=this.Da("ytp-ad-underlay-description-container");this.D=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-underlay-description");g.H(this,this.D);this.D.Ba(this.N);this.J=this.Da("ytp-ad-underlay-action-button-container");this.B=this.Da("ytp-ad-underlay-side-container");
this.hide()};
wRa=function(a){var b=g.Rh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
f_=function(a,b,c,d,e){qI.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.u=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
g_=function(a,b,c,d,e){qI.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.Da("ytp-ad-survey-none-of-the-above");this.hide()};
h_=function(a,b,c,d,e){FI.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
i_=function(a,b,c,d,e,f,k){qI.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,e);this.C=f;this.jj=k;this.B=this.u=null;this.D=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.J=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.H(this,this.C);this.hide()};
j_=function(a,b,c,d,e,f,k,l){qI.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},f,c,d,e);this.Rg=k;this.jj=l;this.D=null;this.B=[];this.u=null;this.question=this.Da("ytp-ad-survey-question");this.N=this.Da("ytp-ad-survey-question-background");
this.questionText=this.Da("ytp-ad-survey-question-text");this.answers=this.Da("ytp-ad-survey-answers");this.playerOverlay=this.Da("ytp-ad-survey-question-player-overlay");this.C=g.Va()};
xRa=function(a,b,c){var d=new f_(a.api,a.fb,a.layoutId,a.j,a.kb);d.Ba(a.answers);d.init(ME("survey-answer"),b,c);a.B.push(d)};
zRa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&KI(c)||"",g.nb(c)?g.Ov(Error("Found ThumbnailDetails without valid image URL")):g.Dm(a.N,"backgroundImage","url("+c+")"));yRa(a,b)}else g.S(Error("addCommonComponents() needs to be called before starting countdown."))};
yRa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.S(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Va();a.u=a.Rg?new lJ(a.api,b.durationMilliseconds):new mJ(b.durationMilliseconds,a.fb,!0);g.H(a,a.u);if(b.timeoutCommands&&!a.Rg){var c=b.timeoutCommands;a.u.subscribe("g",function(){for(var e=g.r(c),f=e.next();!f.done;f=e.next())RI(a.kb,f.value,a.macros)})}if(a.u&&b.instreamAdPlayerOverlay&&
b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new i_(a.api,a.fb,a.layoutId,a.j,a.kb,a.u,a.jj);
d.Ba(a.playerOverlay);d.init(ME("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.H(a,d);a.sP()}catch(e){g.S(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.S(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new vJ(a.api,a.u),b.Ba(a.playerOverlay),g.H(a,b)):g.S(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
ARa=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.Va()-a.C).toString()})};
k_=function(a,b,c,d,e,f,k){j_.call(this,a,b,c,d,e,"survey-question-multi-select",f,k);this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()};
BRa=function(a,b,c){a.noneOfTheAbove=new g_(a.api,a.fb,a.layoutId,a.j,a.kb);a.noneOfTheAbove.Ba(a.answers);a.noneOfTheAbove.init(ME("survey-none-of-the-above"),b,c)};
CRa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
l_(a,!0)};
l_=function(a,b){var c=a.D;a=DRa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof hJ&&!c.u.J&&YAa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
DRa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
m_=function(a,b,c,d,e,f,k){j_.call(this,a,b,c,d,e,"survey-question-single-select",f,k);this.hide()};
n_=function(a,b,c,d,e,f,k){qI.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.Rg=f;this.jj=k;this.questions=[];this.u=this.Da("ytp-ad-survey-questions");this.hide()};
o_=function(a,b,c,d,e,f,k){qI.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,e);this.Rg=f;this.WH=k;this.u=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.B=this.Da("ytp-ad-survey-interstitial-contents");this.text=this.Da("ytp-ad-survey-interstitial-text");
this.logoImage=this.Da("ytp-ad-survey-interstitial-logo-image");this.transition=new g.$I(this,500,!1,300);g.H(this,this.transition)};
ERa=function(a,b){b=b&&KI(b)||"";if(g.nb(b))g.Ov(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Nc&&10>document.documentMode)c=mh;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Wh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Kia(d.style)}b=hba(c,gba({"background-image":'url("'+b+'")'}));a.style.cssText=lh(b)}};
FRa=function(a){var b=g.Rh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
p_=function(a,b,c,d){PI.call(this,a);this.api=a;this.kb=c;this.u={};this.K=b;a=new g.W({G:"div",Ga:["video-ads","ytp-ad-module"]});g.H(this,a);uC&&g.M(a.element,"ytp-ads-tiny-mode");this.D=new jI(a.element);g.H(this,this.D);g.eL(this.api,a.element,4);xPa(d)&&(d=new g.W({G:"div",Ga:["ytp-ad-underlay"]}),g.H(this,d),this.B=new jI(d.element),g.H(this,this.B),g.eL(this.api,d.element,0));g.H(this,GAa())};
GRa=function(a,b){a=g.eg(a.u,b.id,null);null==a&&g.Ov(Error("Component not found for element id: "+b.id));return a||null};
q_=function(a){g.rL.call(this,a);var b=this;this.u=this.fb=null;this.created=!1;this.Rp=new SH(this.player);this.B=function(){function d(){return b.fb}
if(null!=b.u)return b.u;var e=Oza({lm:a.getVideoData(1)});e=new GNa({wT:new UZ(function(){return b.fb},TZ(b.j).Pk),
Up:e.yU(),OT:d,bW:d,Ri:TZ(b.j).Ri,Yh:e.nF(),dk:TZ(b.j).dk,I:b.player,Sf:TZ(b.j).Sf,Ta:b.j.j.Ta,ph:TZ(b.j).ph,Qc:b.j.j.Qc});b.u=e.tS;return b.u};
this.j=new SZ(this.player,this,this.Rp,this.B);g.H(this,this.j);var c=a.V();!LC(c)||g.FC(c)||NC(c)||(g.H(this,new p_(a,function(){return b.fb},TZ(this.j).kb,TZ(this.j).Sf)),g.H(this,new VZ(a)))};
HRa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")};
r_=function(a,b){b===a.Cs&&(a.Cs=void 0)};
IRa=function(a){a.fb?TZ(a.j).Bc.EF()||a.fb.EF()||TZ(a.j).gp.jq():T("AdService is null when calling maybeUnlockPrerollIfReady")};
JRa=function(a){a=g.r(TZ(a.j).ph.di.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.gb)return!0;return!1};
KRa=function(a){a=g.r(TZ(a.j).ph.di.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
rqa=function(a,b,c){c=void 0===c?"":c;var d=TZ(a.j).Sf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Ef()||!1;d=LRa(b,d,f,e,TZ(a.j).Nj);uqa(TZ(a.j).Ec,c,d.BB,b);a.fb&&0<d.Xv.length&&(a=a.fb,b=d.Xv,b=Vza(a,b),b=Wza(a,b),Xza(a,b))};
LRa=function(a,b,c,d,e){var f={Xv:[],BB:[]};a=g.r(a);for(var k=a.next();!k.done;k=a.next())if((k=k.value)&&null!=k.renderer){var l=k.renderer;if(DW(b,"html5_externally_manage_ad_notify_layout")){var m=void 0,n=void 0,p=void 0,q=void 0,t=e;if(null==(q=l.sandwichedLinearAdRenderer)?0:null==(p=q.adVideoStart)?0:p.adMessageRenderer)m=DNa(l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer,t),l.sandwichedLinearAdRenderer.adVideoStart.adMessageRenderer=m;else if(null==(n=l.linearAdSequenceRenderer)?
0:null==(m=n.adStart)?0:m.adMessageRenderer)m=DNa(l.linearAdSequenceRenderer.adStart.adMessageRenderer,t),l.linearAdSequenceRenderer.adStart.adMessageRenderer=m}m=b;n=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=l.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=
l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=n)||(l=m,l=g.YC(l.I.V())?l.I.V().S("html5_enable_vod_lsar_ivar_pacf_unplugged"):LC(l.I.V())?l.I.V().S("html5_enable_single_video_vod_ivar_on_pacf"):g.MC(l.I.V())?!0:!1):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?m.I.V().S("html5_enable_vod_lasr_with_notify_pacf"):
n||RV(m):null!=l.sandwichedLinearAdRenderer?m.I.V().S("html5_enable_vod_slar_with_notify_pacf"):!1;l?f.BB.push(k):f.Xv.push(k)}return f};
MRa=function(){if(!g.Nc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.s_=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=Bia(a);return b.parseFromString(g.ph(a),"application/xml")}if(NRa){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.t_=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().S("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",Ga:["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.I=a;this.Pa("click",this.onClick,this);this.Na("title",UL(a,e,"i"));g.Bf(this,g.rM(b.pc(),this.element))};
ba=[];ha="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};
fa=aaa(this);ka("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,k){this.j=f;ha(this,"description",{configurable:!0,writable:!0,value:k})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ka("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=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ha(d.prototype,a,{configurable:!0,writable:!0,value:function(){return la(ea(this))}})}return a});
var ORa="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};
ka("Object.assign",function(a){return a||ORa});
var pa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},PRa=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=pa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),u_;
if("function"==typeof Object.setPrototypeOf)u_=Object.setPrototypeOf;else{var v_;a:{var QRa={a:!0},RRa={};try{RRa.__proto__=QRa;v_=RRa.a;break a}catch(a){}v_=!1}u_=v_?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=u_;
ra.prototype.N=function(a){this.u=a};
ra.prototype.return=function(a){this.B={return:a};this.j=this.D};
ra.prototype.Za=function(a){this.j=a};
ka("Reflect",function(a){return a?a:{}});
ka("Reflect.construct",function(){return PRa});
ka("Reflect.setPrototypeOf",function(a){return a?a:qa?function(b,c){try{return qa(b,c),!0}catch(d){return!1}}:null});
ka("Promise",function(a){function b(k){this.j=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.u=function(k){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(k)};
var e=fa.setTimeout;c.prototype.B=function(k){e(k,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var k=this.j;this.j=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(k){this.B(function(){throw k;})};
b.prototype.C=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.va),reject:k(this.D)}};
b.prototype.va=function(k){if(k===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.ya(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.ma(k):this.J(k)}};
b.prototype.ma=function(k){var l=void 0;try{l=k.then}catch(m){this.D(m);return}"function"==typeof l?this.Ea(l,k):this.J(k)};
b.prototype.D=function(k){this.N(2,k)};
b.prototype.J=function(k){this.N(1,k)};
b.prototype.N=function(k,l){if(0!=this.j)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.j);this.j=k;this.B=l;2===this.j&&this.xa();this.X()};
b.prototype.xa=function(){var k=this;e(function(){if(k.Z()){var l=fa.console;"undefined"!==typeof l&&l.error(k.B)}},1)};
b.prototype.Z=function(){if(this.K)return!1;var k=fa.CustomEvent,l=fa.Event,m=fa.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof k?k=new k("unhandledrejection",{cancelable:!0}):"function"===typeof l?k=new l("unhandledrejection",{cancelable:!0}):(k=fa.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.B;return m(k)};
b.prototype.X=function(){if(null!=this.u){for(var k=0;k<this.u.length;++k)f.u(this.u[k]);this.u=null}};
var f=new c;b.prototype.ya=function(k){var l=this.C();k.Gz(l.resolve,l.reject)};
b.prototype.Ea=function(k,l){var m=this.C();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(t,v){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:v}
var n,p,q=new b(function(t,v){n=t;p=v});
this.Gz(m(k,n),m(l,p));return q};
b.prototype.catch=function(k){return this.then(void 0,k)};
b.prototype.Gz=function(k,l){function m(){switch(n.j){case 1:k(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.r(k),p=n.next();!p.done;p=n.next())d(p.value).Gz(l,m)})};
b.all=function(k){var l=g.r(k),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(y){t[x]=y;v--;0==v&&n(t)}}
var t=[],v=0;do t.push(void 0),v++,d(m.value).Gz(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ka("Array.prototype.find",function(a){return a?a:function(b,c){return Ea(this,b,c).GQ}});
ka("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.r(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,k)){var n=new c;ha(m,k,{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(q){return!1}}())return a;
var k="$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,k))throw Error("WeakMap key fail: "+m);m[k][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&na(m,k)?m[k][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&na(m,k)&&na(m[k],this.j)};
b.prototype.delete=function(m){return d(m)&&na(m,k)&&na(m[k],this.j)?delete m[k][this.j]:!1};
return b});
ka("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return la(function(){if(n){for(;n.head!=l.j;)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=""+ ++k,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 q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.r(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.r([[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(q){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.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.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.j=this.j.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 k=0;return e});
ka("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}});
ka("Object.setPrototypeOf",function(a){return a||qa});
ka("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ka("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ga(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}});
ka("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ga(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<f&&c<e;)if(d[c++]!=b[k++])return!1;return k>=f}});
ka("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ka("String.prototype.repeat",function(a){return a?a:function(b){var c=Ga(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}});
ka("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.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.r([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(k){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ka("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});
ka("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 k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
ka("globalThis",function(a){return a||fa});
ka("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}});
ka("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;
})})}});
ka("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ea(this,b,c).QM}});
ka("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}});
ka("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ka("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}});
ka("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ga(this,b,"includes").indexOf(b,c||0)}});
ka("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ka("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ka("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}});
ka("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}});
ka("Int8Array.prototype.fill",Ha);ka("Uint8Array.prototype.fill",Ha);ka("Uint8ClampedArray.prototype.fill",Ha);ka("Int16Array.prototype.fill",Ha);ka("Uint16Array.prototype.fill",Ha);ka("Int32Array.prototype.fill",Ha);ka("Uint32Array.prototype.fill",Ha);ka("Float32Array.prototype.fill",Ha);ka("Float64Array.prototype.fill",Ha);
ka("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ga(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}});
ka("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}});
ka("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.r(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.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
ka("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ka("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}});
ka("Int8Array.prototype.copyWithin",Ia);ka("Uint8Array.prototype.copyWithin",Ia);ka("Uint8ClampedArray.prototype.copyWithin",Ia);ka("Int16Array.prototype.copyWithin",Ia);ka("Uint16Array.prototype.copyWithin",Ia);ka("Int32Array.prototype.copyWithin",Ia);ka("Uint32Array.prototype.copyWithin",Ia);ka("Float32Array.prototype.copyWithin",Ia);ka("Float64Array.prototype.copyWithin",Ia);ka("Number.parseInt",function(a){return a||parseInt});
tj=tj||{};g.C=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Wa(ab,Error);ab.prototype.name="CustomError";var Cba;g.Wa(bb,ab);bb.prototype.name="AssertionError";var xd,xaa="undefined"!==typeof TextDecoder,eb,jaa="undefined"!==typeof TextEncoder;var xb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ob=/&/g,pb=/</g,qb=/>/g,rb=/"/g,sb=/'/g,tb=/\x00/g,kaa=/[\x00&<>"']/;var SRa=g.Ka("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Bb;if(null!=SRa&&SRa){var TRa=g.C.navigator;Bb=TRa?TRa.userAgentData||null:null}else Bb=null;var bc,Ml,Sm;bc=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.URa=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.wc=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.Dn=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,k="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Kl=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,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
Ml=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.wc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Sm=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.Ll=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};yc[" "]=g.La;var Em,DQ,rNa,VRa,WRa,XRa,tC,uC,w_;g.vC=Fb();g.Nc=Ib();g.lt=Db("Edge");g.cD=g.lt||g.Nc;Em=Db("Gecko")&&!(wb(g.Ab(),"WebKit")&&!Db("Edge"))&&!(Db("Trident")||Db("MSIE"))&&!Db("Edge");g.Gf=wb(g.Ab(),"WebKit")&&!Db("Edge");DQ=Ub();rNa=Vb();g.es=Rb();VRa=Sb();WRa=Db("iPad");XRa=Db("iPod");tC=Tb();uC=wb(g.Ab(),"KaiOS");
a:{var x_="",y_=function(){var a=g.Ab();if(Em)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.lt)return/Edge\/([\d\.]+)/.exec(a);if(g.Nc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Gf)return/WebKit\/(\S+)/.exec(a);if(g.vC)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
y_&&(x_=y_?y_[1]:"");if(g.Nc){var z_=Cc();if(null!=z_&&z_>parseFloat(x_)){w_=String(z_);break a}}w_=x_}var Ec=w_,uaa={},A_;if(g.C.document&&g.Nc){var YRa=Cc();A_=YRa?YRa:parseInt(Ec,10)||void 0}else A_=void 0;var vaa=A_;var EC,FE;g.Ax=Lb();EC=Sb()||Db("iPod");FE=Db("iPad");g.wC=Ob();g.hA=Mb();g.Ns=Nb()&&!Tb();var Ic={},Pc=null;var Tc="undefined"!==typeof Uint8Array,Uc,Wc={};var $c;Zc.prototype.isEmpty=function(){return null==this.Vc};var waa;waa="function"===typeof Uint8Array.prototype.slice;g.ed=0;g.dd=0;g.h=g.gd.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.xz=void 0===d.xz?!1:d.xz;a&&(a=cd(a),this.u=a.buffer,this.D=a.Ft,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.h.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.xz=!1};
g.h.reset=function(){this.j=this.C};
g.h.advance=function(a){this.j+=a;id(this)};
g.h.Wy=ca(0);var pd=[];sd.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
sd.prototype.advance=function(a){this.j.advance(a)};
var gR=[];var Bd;Dd.prototype.length=function(){return this.j.length};
Dd.prototype.end=function(){var a=this.j;this.j=[];return a};var Od="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Fe,he=Object.freeze(Rd([])),jp="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;Ee.prototype.toJSON=function(){var a=this.pe;return Fe?a:de(a,fe)};
Ee.prototype.J=function(a){return a.B(this)};
Ee.prototype.clone=function(){var a=de(this.pe);De=a;a=new this.constructor(a);De=null;Ke(a,this);return a};
Ee.prototype.toString=function(){return this.pe.toString()};
var De;g.w(Le,Ee);if(jp){var ZRa={};Object.defineProperties(Le,(ZRa[Symbol.hasInstance]=ae(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),ZRa))};var Pe,Ve,Ye,Ze,gfa,Ql,hfa,lf,fja,mq,gja;Pe=Symbol();Ve=Symbol();Ye=Symbol();Ze=Symbol();gfa=g.af(function(a,b,c){if(1!==a.u)return!1;a=g.wd(a);pe(b,c,a,0);return!0},g.bf);
Ql=g.af(function(a,b,c){if(0!==a.u)return!1;a=g.jd(a.j);pe(b,c,a,0);return!0},g.cf);
hfa=g.af(function(a,b,c){if(0!==a.u)return!1;a=g.kd(a.j);pe(b,c,a,0);return!0},g.df);
g.pq=g.af(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.yd(a));return!0},g.ef);
g.nq=g.af(function(a,b,c,d,e){if(2!==a.u)return!1;g.vd(a,Ae(b,c,d),e);return!0},function(a,b,c,d,e){b=we(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Ld(a,c);e(b[d],a);Md(a,f)}});
g.pf=g.af(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=re(b,f))&&f!==c&&oe(b,f);b=g.ue(b,d,c);g.vd(a,b,e);return!0},g.ff);
lf=g.af(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,zd(a));return!0},function(a,b,c){b=g.ge(b,c);
null!=b&&g.Nd(a,c,cd(b).buffer)});
fja=g.af(function(a,b,c){if(2!==a.u)return!1;a=zd(a);g.qe(b,c,a,!0);return!0},function(a,b,c){b=g.ie(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.Nd(a,c,cd(e).buffer)}});
mq=g.af(function(a,b,c){if(0!==a.u)return!1;a=g.kd(a.j)>>>0;g.D(b,c,a);return!0},function(a,b,c){b=g.ge(b,c);
null!=b&&null!=b&&(g.Kd(a,c,0),Fd(a.j,b))});
gja=g.af(function(a,b,c){if(0!==a.u)return!1;a=g.kd(a.j);g.D(b,c,a);return!0},function(a,b,c){b=g.ge(b,c);
null!=b&&(b=parseInt(b,10),g.Kd(a,c,0),Hd(a.j,b))});g.w(g.F,Le);if(jp){var $Ra={};Object.defineProperties(g.F,($Ra[Symbol.hasInstance]=ae(Object[Symbol.hasInstance]),$Ra))};g.w(kf,g.F);g.w(mf,g.F);g.w(nf,g.F);g.w(of,g.F);var uf=[1,2,3];g.h=wf.prototype;g.h.yT=function(a){var b=g.Da.apply(1,arguments),c=this.dF(b);c?c.push(new vf(a)):this.JP(a,b)};
g.h.JP=function(a){this.Js.set(this.oM(g.Da.apply(1,arguments)),[new vf(a)])};
g.h.dF=function(){var a=this.oM(g.Da.apply(0,arguments));return this.Js.has(a)?this.Js.get(a):void 0};
g.h.BU=function(){var a=this.dF(g.Da.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.h.clear=function(){this.Js.clear()};
g.h.oM=function(){var a=g.Da.apply(0,arguments);return a?a.join(","):"key"};g.w(xf,wf);xf.prototype.B=function(a){var b=g.Da.apply(1,arguments),c=0,d=this.BU(b);d&&(c=d.sL);this.JP(c+a,b)};g.w(yf,wf);yf.prototype.Dl=function(a){this.yT(a,g.Da.apply(1,arguments))};g.G.prototype.Bi=!1;g.G.prototype.isDisposed=function(){return this.Bi};
g.G.prototype.dispose=function(){this.Bi||(this.Bi=!0,this.ra())};
g.G.prototype.ra=function(){if(this.ag)for(;this.ag.length;)this.ag.shift()()};g.Cf.prototype.stopPropagation=function(){this.u=!0};
g.Cf.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ef={};var Waa=function(){if(!g.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.C.addEventListener("test",g.La,b),g.C.removeEventListener("test",g.La,b)}catch(c){}return a}();var tDa=Hf("AnimationEnd"),lGa=Hf("TransitionEnd");g.Wa(If,g.Cf);var aSa={2:"touch",3:"pen",4:"mouse"};
If.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)?Em&&(zc(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:aSa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&If.xe.preventDefault.call(this)};
If.prototype.stopPropagation=function(){If.xe.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
If.prototype.preventDefault=function(){If.xe.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Jf="closure_listenable_"+(1E6*Math.random()|0);var Taa=0;var ig="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");lg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var k=ng(a,b,d,e);-1<k?(b=a[k],c||(b.Fz=!1)):(b=new Uaa(b,this.src,f,!!d,e),b.Fz=c,a.push(b));return b};
lg.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=ng(e,b,c,d);return-1<b?(Lf(e[b]),g.fc(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
lg.prototype.Jw=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=ng(a,b,c,d));return-1<e?a[e]:null};var tg="closure_lm_"+(1E6*Math.random()|0),Bg={},yg=0,Cg="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Wa(g.Dg,g.G);g.Dg.prototype[Jf]=!0;g.h=g.Dg.prototype;g.h.addEventListener=function(a,b,c,d){g.pg(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){zg(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.Ja;if(b){var c=[];for(var d=1;b;b=b.Ja)c.push(b),++d}b=this.jb;d=a.type||a;if("string"===typeof a)a=new g.Cf(a,b);else if(a instanceof g.Cf)a.target=a.target||b;else{var e=a;a=new g.Cf(d,b);g.jg(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=Eg(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=Eg(k,d,!0,a)&&e,a.u||(e=Eg(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)k=a.currentTarget=c[f],e=Eg(k,d,!1,a)&&e;return e};
g.h.ra=function(){g.Dg.xe.ra.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,Lf(d[e]);delete a.listeners[c];a.j--}}this.Ja=null};
g.h.Pa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.h.XA=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.h.wc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.h.Jw=function(a,b,c,d){return this.B.Jw(String(a),b,c,d)};Fg.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Kba=g.Nc||g.Gf;var bSa={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 Lg;Pg.prototype.rl=!0;Pg.prototype.Ph=function(){return this.j};
var Og={},Ng={};g.Rg("");var Sg={};Tg.prototype.Ph=function(){return this.j.toString()};
Tg.prototype.toString=function(){return this.j.toString()};var Nia,Mia,Lia,Oia;Nia=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.cSa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.dSa=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.Lp=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]");Mia=/^http:\/\/.*/;g.eSa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Lia=/\s+/;Oia=/[\d\u06f0-\u06f9]/;g.h=Vg.prototype;g.h.rl=!0;g.h.Ph=function(){return this.j.toString()};
g.h.JF=!0;g.h.Vr=function(){return 1};
g.h.toString=function(){return this.j+""};
var aba=/%{(\w+)}/g,$aa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Ug={};g.h=g.Zg.prototype;g.h.rl=!0;g.h.Ph=function(){return this.j.toString()};
g.h.JF=!0;g.h.Vr=function(){return 1};
g.h.toString=function(){return this.j.toString()};
var cba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,dba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Yg={},eba=new g.Zg("about:invalid#zClosurez",Yg);var dh={};kh.prototype.Ph=function(){return this.j};
kh.prototype.toString=function(){return this.j.toString()};
var mh=new kh("",dh),lba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),kba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),jba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),mba=/\/\*/;var nh={};oh.prototype.Vr=function(){return this.u};
oh.prototype.Ph=function(){return this.j.toString()};
oh.prototype.toString=function(){return this.j.toString()};
var fSa=/^[a-zA-Z0-9-]+$/,gSa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},hSa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},pba=new oh(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,nh);var uba=Jg(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.ph(pba);return!b.parentElement}),wba=/^[\w+/_-]+[=]{0,2}$/;g.h=g.Ah.prototype;g.h.clone=function(){return new g.Ah(this.x,this.y)};
g.h.equals=function(a){return a instanceof g.Ah&&Bh(this,a)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.h=g.Ch.prototype;g.h.clone=function(){return new g.Ch(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!Eh(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.iSa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Eba={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.h=Lh.prototype;g.h.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.h.Da=function(a){return g.Rh(a,this.j)};
g.h.createElement=function(a){return Uh(this.j,a)};
g.h.appendChild=function(a,b){a.appendChild(b)};
g.h.append=function(a,b){Iba(Mh(a),a,arguments,1)};
g.h.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.h.removeNode=g.$h;g.h.contains=g.bi;var gi;ii.prototype.add=function(a,b){var c=Rba.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
ii.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var Rba=new Fg(function(){return new ji},function(a){return a.reset()});
ji.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};
ji.prototype.reset=function(){this.next=this.scope=this.j=null};var ki,li=!1,Pba=new ii;Sba.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Tba=new Fg(function(){return new Sba},function(a){a.reset()});
g.pi.prototype.then=function(a,b,c){return aca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.pi.prototype.$goog_Thenable=!0;g.h=g.pi.prototype;g.h.Eh=function(a,b){return aca(this,null,a,b)};
g.h.catch=g.pi.prototype.Eh;g.h.cancel=function(a){if(0==this.j){var b=new vi(a);g.mi(function(){Xba(this,b)},this)}};
g.h.u_=function(a){this.j=0;oi(this,2,a)};
g.h.v_=function(a){this.j=0;oi(this,3,a)};
g.h.qU=function(){for(var a;a=Yba(this);)Zba(this,a,this.j,this.K);this.J=!1};
var eca=Nba;g.Wa(vi,ab);vi.prototype.name="cancel";g.Wa(g.wi,g.Dg);g.h=g.wi.prototype;g.h.enabled=!1;g.h.Sb=null;g.h.setInterval=function(a){this.og=a;this.Sb&&this.enabled?(this.stop(),this.start()):this.Sb&&this.stop()};
g.h.i_=function(){if(this.enabled){var a=g.Va()-this.sN;0<a&&a<.8*this.og?this.Sb=this.Fy.setTimeout(this.iL,this.og-a):(this.Sb&&(this.Fy.clearTimeout(this.Sb),this.Sb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Sb||(this.Sb=this.Fy.setTimeout(this.iL,this.og),this.sN=g.Va())};
g.h.stop=function(){this.enabled=!1;this.Sb&&(this.Fy.clearTimeout(this.Sb),this.Sb=null)};
g.h.ra=function(){g.wi.xe.ra.call(this);this.stop();delete this.Fy};g.h=g.zi.prototype;g.h.MH=function(a){this.D=a;this.C=1};
g.h.RP=function(){var a=this.j.values();a=[].concat(g.u(a)).filter(function(b){return b.Js.size});
a.length&&this.K.flush(a,this.D);hca(a);this.B=0;this.u.enabled&&this.u.stop()};
g.h.wz=function(a){var b=g.Da.apply(1,arguments);this.j.has(a)||this.j.set(a,new xf(a,b))};
g.h.YK=function(a){var b=g.Da.apply(1,arguments);this.j.has(a)||this.j.set(a,new yf(a,b))};
g.h.pJ=function(a){this.ZC.apply(this,[a,1].concat(g.u(g.Da.apply(1,arguments))))};
g.h.ZC=function(a,b){var c=g.Da.apply(2,arguments),d=gca(this,a);d&&d instanceof xf&&(d.B(b,c),fca(this))};
g.h.Dl=function(a,b){var c=g.Da.apply(2,arguments),d=gca(this,a);d&&d instanceof yf&&(d.Dl(b,c),fca(this))};ica.prototype.Dl=function(a,b,c,d,e){this.j.Dl("/client_streamz/po/w/rl",a,b,c,d,e)};
jca.prototype.Dl=function(a,b,c){this.j.Dl("/client_streamz/po/w/el",a,b,c)};var lca,nca;g.w(mca,g.F);g.w(g.Ai,g.F);g.w(g.Bi,g.F);g.w(g.Ci,g.F);lca=[3,6,4];nca=[1];g.Ei=[1,2,3];g.Di=[1,2,3];g.w(pca,g.F);var oca=[1];var wca={};g.h=Fi.prototype;g.h.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{ZA:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.h.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Fha;d=c.KZ||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.ZA}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:"";k=k?";path="+k:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+
e:"")};
g.h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=xb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{ZA:0,path:b,domain:c});return d};
g.h.ym=function(){return Gi(this).keys};
g.h.Li=function(){return Gi(this).values};
g.h.isEmpty=function(){return!this.j.cookie};
g.h.clear=function(){for(var a=Gi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Lr=new Fi("undefined"==typeof document?null:document);g.w(Ji,g.F);var zca=[2];g.Li.prototype.u=0;g.Li.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Li.prototype.getValue=function(){return this.B};var Dca={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Cca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Pi.prototype.u=null;Pi.prototype.getOptions=function(){return this.u||(this.u=this.C())};var B_;g.Wa(Qi,Pi);Qi.prototype.j=function(){var a=Fca(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Qi.prototype.C=function(){var a={};Fca(this)&&(a[0]=!0,a[1]=!0);return a};
B_=new Qi;var Ti=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Nca=/#|$/,Oca=/[?&]($|#)/;g.Wa(g.rj,g.Dg);var Yca=/^https?$/i,jSa=["POST","PUT"],Rca=[];g.h=g.rj.prototype;g.h.NT=function(){this.dispose();g.gc(Rca,this)};
g.h.send=function(a,b,c,d){if(this.j)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.Qa=b;this.Ea=!1;this.D=!0;this.j=this.Z?this.Z.j():B_.j();this.ya=this.Z?this.Z.getOptions():B_.getOptions();this.j.onreadystatechange=(0,g.Ta)(this.HO,this);try{Ki(vj(this,"Opening Xhr")),this.Ia=!0,this.j.open(b,String(a),!0),this.Ia=!1}catch(k){Ki(vj(this,"Error opening Xhr: "+k.message));Vca(this,k);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.r(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(k){return"content-type"==k.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.cc(jSa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Sa&&(this.j.responseType=this.Sa);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Xca(this),0<this.N&&(this.xa=Tca(this.j),Ki(vj(this,"Will abort after "+this.N+"ms if incomplete, xhr2 "+this.xa)),
this.xa?(this.j.timeout=this.N,this.j.ontimeout=(0,g.Ta)(this.qJ,this)):this.va=g.xi(this.qJ,this.N,this)),Ki(vj(this,"Sending request")),this.ma=!0,this.j.send(a),this.ma=!1}catch(k){Ki(vj(this,"Send error: "+k.message)),Vca(this,k)}};
g.h.qJ=function(){"undefined"!=typeof tj&&this.j&&(this.C="Timed out after "+this.N+"ms, aborting",this.u=8,vj(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.j&&this.D&&(vj(this,"Aborting"),this.D=!1,this.J=!0,this.j.abort(),this.J=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),sj(this))};
g.h.ra=function(){this.j&&(this.D&&(this.D=!1,this.J=!0,this.j.abort(),this.J=!1),sj(this,!0));g.rj.xe.ra.call(this)};
g.h.HO=function(){this.isDisposed()||(this.Ia||this.ma||this.J?Wca(this):this.YX())};
g.h.YX=function(){Wca(this)};
g.h.isActive=function(){return!!this.j};
g.h.isComplete=function(){return 4==g.uj(this)};
g.h.getStatus=function(){try{return 2<g.uj(this)?this.j.status:-1}catch(a){return-1}};
g.h.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.h.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(Aj,g.F);g.w(bda,g.F);var ada=[1];g.w(Cj,g.F);g.w(Dj,g.F);Dj.prototype.S=function(){return null!=g.ge(this,7)};
var cda=[3,20,27];g.w(eda,g.F);var dda=[3,5];g.w(gda,g.F);var fda=[5];g.w(hda,g.F);var kSa;kSa=new gf(175237375,{pha:0},hda,function(a,b){if(null!=b){var c={Oha:Ce(b,1,-1)};a&&(c.MQ=b);return c}});g.w(Fj,g.Dg);g.h=Fj.prototype;g.h.ra=function(){this.WE();g.Dg.prototype.ra.call(this)};
g.h.dispatch=function(a){if(a instanceof Dj)this.log(a);else{var b=new Dj;a=Ge(a);b=g.D(b,8,a);this.log(b)}};
g.h.log=function(a){a=a.clone();var b=this.qb++;g.D(a,21,b);this.Z&&g.D(a,26,this.Z);if(!g.ge(a,1)){b=a;var c=Date.now().toString();g.D(b,1,c)}null!=g.ge(a,15)||g.D(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),xe(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new oda(a));this.xa||this.j.enabled||this.j.start()};
g.h.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.ya)nda(this);else{var d=Date.now();if(this.Ya>d&&this.Ea<d)b&&b("throttled");else{var e=this.J.Ae(this.u,this.K);d={};var f=this.Wa();f&&(d.Authorization=f);var k=kda(this);this.X&&(d["X-Goog-AuthUser"]=this.X,k=oj(k,"authuser",this.X));this.pageId&&(d["X-Goog-PageId"]=this.pageId,k=oj(k,"pageId",this.pageId));if(f&&this.Xa===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.K=0;var l=Ge(e),m;this.N&&
this.N.isSupported(l.length)&&(m=this.N.compress(l));var n={url:k,body:l,FT:1,jr:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(v){c.D.reset();c.j.setInterval(c.D.getValue());if(v){var x=null;try{var y=JSON.parse(v.replace(")]}'\n",""));x=new gda(y)}catch(z){}x&&(v=Number(je(x,1,"-1")),0<v&&(c.Ea=Date.now(),c.Ya=c.Ea+v),x=x.J(kSa))&&(x=Ce(x,1,-1),-1!=x&&(c.Qa||lda(c,x)))}a&&a()},q=function(v,x){var y=we(e,Dj,3);
g.Mi(c.D);c.j.setInterval(c.D.getValue());401===v&&f&&(c.Xa=f);void 0===x&&(x=500<=v&&600>v||401===v||0===v);x&&(c.u=y.concat(c.u),c.xa||c.j.enabled||c.j.start());b&&b("net-send-failed",v)},t=function(){c.Sa?c.Sa.send(n,p,q):c.ib(n,p,q)};
m?m.then(function(v){n.jr["Content-Encoding"]="gzip";n.jr["Content-Type"]="application/binary";n.body=v;n.FT=2;t()},function(){t()}):t()}}}};
g.h.WE=function(){this.flush()};
g.w(oda,g.Cf);ida.prototype.Ae=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.D(c,4,d);a=ze(c,3,a);b&&g.D(a,14,b);return a};rda.prototype.Ae=function(){var a=new Fj(1654,this.ma?this.ma:Ii,"0",this.J,this.B,this.C,!1,this.ya,void 0,void 0,this.K?this.K:void 0);this.X&&Ej(a.J,this.X);if(this.u){var b=this.u,c=Gj(a.J);g.D(c,7,b)}this.D&&(a.N=this.D);this.j&&(a.Z=this.j);this.N&&((b=this.N)?(a.C||(a.C=new Ji),b=Ge(b),g.D(a.C,4,b)):a.C&&oe(a.C,4));this.va&&(b=this.va,a.C||(a.C=new Ji),ne(a.C,2,b));this.Z&&(b=this.Z,a.Qa=!0,lda(a,b));this.xa&&pda(a.J,this.xa);return a};sda.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new pca,c=[],d=0;d<a.length;d++){var e=a[d],f=g.qca(e);c.push(f);e.clear()}ze(b,1,c);this.j.dispatch(b);this.j.flush()}};g.w(Hj,Error);Hj.prototype.name="RpcError";Jj.prototype.done=function(){this.logger.zN(this.j,Ij()-this.startMillis)};
Kj.prototype.jx=function(){};
Kj.prototype.zN=function(){};
Kj.prototype.jG=function(a,b,c){return c};
Lj.prototype.jx=function(a){this.clientError.j.pJ("/client_streamz/po/w/cec",a,this.ek)};
Lj.prototype.zN=function(a,b){this.u.Dl(b,a,this.ek)};
Lj.prototype.jG=function(a,b,c){function d(k){var l=Ij()-f;e.B.Dl(l,a,b,k,e.ek)}
var e=this,f=Ij();c.then(function(){d(0)},function(k){k instanceof Hj?d(k.code):d(-1)});
return c};g.w(uda,g.F);g.w(vda,g.F);g.w(Mj,g.F);Mj.j="bfkj";Oj.prototype.snapshot=function(a){if(this.j)throw Error("Already disposed");return this.u.then(function(b){var c=b.CT;return new Promise(function(d){c(function(e){d(e)},[a.dw,
a.TZ])})})};
Oj.prototype.dispose=function(){this.j=!0;this.u.then(function(a){(a=a.SZ)&&a()})};
Oj.prototype.isDisposed=function(){return this.j};/*

 SPDX-License-Identifier: Apache-2.0
*/
var Tj={};g.w(Pj,xda);Pj.prototype.toString=function(){return this.j.toString()};g.w(Qj,yda);Qj.prototype.toString=function(){return this.j};
var cBa=new Qj("about:invalid#zTSz",Tj);g.w(Uj,g.F);g.w(Vj,g.F);g.w(Wj,g.F);Ida.prototype.ping=function(a,b){var c=this,d,e;return g.B(function(f){d=c.j();e=b||new Wj;var k=g.D(e,1,c.ek);g.D(k,2,a);return g.A(f,c.client.ping(e,d),0)})};fa.Object.defineProperties(Mda.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.w(Yj,g.F);Zj.prototype.pA=function(){return this.B};
Zj.prototype.getMetadata=function(){return this.u};ak.prototype.getMetadata=function(){return this.j};
ak.prototype.pA=function(){return this.u};
ak.prototype.getStatus=function(){return null};bk.prototype.getName=function(){return this.name};var lSa=new bk("/google.internal.waa.v1.Waa/Create",Uj,Yj,function(a){return Ge(a)},function(a){return Je(Yj,a)});g.w(ck,g.F);var Kda=new bk("/google.internal.waa.v1.Waa/GenerateIT",Vj,ck,function(a){return Ge(a)},function(a){return Je(ck,a)});g.w(ek,g.F);var mSa=new bk("/google.internal.waa.v1.Waa/Ping",Wj,ek,function(a){return Ge(a)},function(a){return Je(ek,a)});var kea=Promise;g.w(fk,g.F);fk.prototype.getValue=function(){return je(this,2,"")};
fk.prototype.setValue=function(a){$d(this);null==a||(a instanceof Zc?a.isEmpty():0===a.length)?oe(this,2):g.D(this,2,a);return this};g.w(gk,g.F);gk.prototype.getMessage=function(){return je(this,2,"")};
var Oda=[3];hk.prototype.Qm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.J.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
hk.prototype.removeListener=function(a,b){"data"==a?lk(this.B,b):"metadata"==a?lk(this.D,b):"status"==a?lk(this.J,b):"end"==a?lk(this.C,b):"error"==a&&lk(this.u,b);return this};
hk.prototype.cancel=function(){this.j.abort()};
hk.prototype.cancel=hk.prototype.cancel;hk.prototype.removeListener=hk.prototype.removeListener;hk.prototype.on=hk.prototype.Qm;g.Wa(g.mk,Pi);g.mk.prototype.j=function(){return new nk(this.D,this.B)};
g.mk.prototype.C=Hg({});g.Wa(nk,g.Dg);g.h=nk.prototype;g.h.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.Z=b;this.readyState=1;ok(this)};
g.h.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.X,method:this.ma,credentials:this.J,cache:void 0};a&&(b.body=a);(this.va||g.C).fetch(new Request(this.Z,b)).then(this.UU.bind(this),this.BA.bind(this))};
g.h.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,pk(this));this.readyState=0};
g.h.UU=function(a){if(this.j&&(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.j&&(this.readyState=3,ok(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.SU.bind(this),this.BA.bind(this));else if("undefined"!==typeof g.C.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.N=new TextDecoder;Tda(this)}else a.text().then(this.TU.bind(this),this.BA.bind(this))};
g.h.JU=function(a){if(this.j){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.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?pk(this):ok(this);3==this.readyState&&Tda(this)}};
g.h.TU=function(a){this.j&&(this.response=this.responseText=a,pk(this))};
g.h.SU=function(a){this.j&&(this.response=a,pk(this))};
g.h.BA=function(){this.j&&pk(this)};
g.h.setRequestHeader=function(a,b){this.X.append(a,b)};
g.h.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.h.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(nk.prototype,"withCredentials",{get:function(){return"include"===this.J},
set:function(a){this.J=a?"include":"same-origin"}});g.rk.prototype.toString=function(){var a=[],b=this.C;b&&a.push(yk(b,nSa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(yk(b,nSa,!0),"@"),a.push(g.Fh(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(yk(c,"/"==c.charAt(0)?oSa:pSa,!0));(c=this.B.toString())&&a.push("?",c);(c=this.D)&&a.push("#",yk(c,qSa));return a.join("")};
g.rk.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.sk(b,a.C):c=!!a.N;c?b.N=a.N:c=!!a.j;c?g.tk(b,a.j):c=null!=a.u;var d=a.getPath();if(c)g.uk(b,a.u);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.j&&!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(g.vb(e,"./")||g.vb(e,"/.")){d=ib(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.K=d:c=""!==a.B.toString();c?vk(b,a.B.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.rk.prototype.clone=function(){return new g.rk(this)};
g.rk.prototype.getPath=function(){return this.K};
var nSa=/[#\/\?@]/g,pSa=/[#\?:]/g,oSa=/[#\?]/g,Xda=/[#\?@]/g,qSa=/#/g;g.h=xk.prototype;g.h.add=function(a,b){Bk(this);this.B=null;a=Ck(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.h.remove=function(a){Bk(this);a=Ck(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.h.clear=function(){this.j=this.B=null;this.u=0};
g.h.isEmpty=function(){Bk(this);return 0==this.u};
g.h.forEach=function(a,b){Bk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.h.ym=function(){Bk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.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.h.Li=function(a){Bk(this);var b=[];if("string"===typeof a)Zda(this,a)&&(b=b.concat(this.j.get(Ck(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.h.set=function(a,b){Bk(this);this.B=null;a=Ck(this,a);Zda(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.h.get=function(a,b){if(!a)return b;a=this.Li(a);return 0<a.length?String(a[0]):b};
g.h.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Fh(d);d=this.Li(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Fh(d[f]));a.push(k)}}return this.B=a.join("&")};
g.h.clone=function(){var a=new xk;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.h.extend=function(a){for(var b=0;b<arguments.length;b++)g.qk(arguments[b],function(c,d){this.add(d,c)},this)};g.Wa(g.Ek,g.G);var rSa=[];g.h=g.Ek.prototype;g.h.Pa=function(a,b,c,d){Array.isArray(b)||(b&&(rSa[0]=b.toString()),b=rSa);for(var e=0;e<b.length;e++){var f=g.pg(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.h.XA=function(a,b,c,d){return bea(this,a,b,c,d)};
g.h.wc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.wc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=qg(c),d=!!d,b=Kf(a)?a.Jw(b,c,d,e):a?(a=sg(a))?a.Jw(b,c,d,e):null:null,b&&(Ag(b),delete this.j[b.key])};
g.h.ra=function(){g.Ek.xe.ra.call(this);g.Fk(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};cea.prototype.isInputValid=function(){return this.B};Ok.prototype.isInputValid=function(){return 3!=this.j};
Ok.prototype.He=function(){return this.J};
Ok.prototype.sz=function(){return!0};
Ok.prototype.parse=function(a){function b(m){m&128&&Pk(f,k,l,"invalid tag");2!=(m&7)&&Pk(f,k,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Pk(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Pk(f,k,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.N=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.N++]=m;f.N==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.j=0}
for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;l<k.length;){switch(f.j){case 3:Pk(f,k,l,"stream already broken");break;case 0:b(k[l]);break;case 1:c(k[l]);break;case 2:d(k[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.X++;l++}a=f.K;f.K=[];return 0<a.length?a:null};Qk.prototype.isInputValid=function(){return null===this.j};
Qk.prototype.He=function(){return this.j};
Qk.prototype.sz=function(){return!1};
Qk.prototype.parse=function(a){null!==this.j&&eea(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||dea(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Mc(c.j.substr(0,4*d))}catch(k){dea(c,c.j,k.message)}c.u+=4*d;c.j=c.j.substr(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(k){eea(this,a,k.message)}this.u+=a.length;return b};var sSa={INIT:0,Ov:1,HD:2,Bs:3,Yu:4,Xu:5,STRING:6,BD:7,pK:8,CK:9,DK:10,EK:11,XI:12,YI:13,ZI:14,aJ:15,tK:16,uK:17,vK:18,kT:19,FD:20};g.h=Uk.prototype;g.h.isInputValid=function(){return 3!=this.D};
g.h.He=function(){return this.X};
g.h.done=function(){return 2===this.D};
g.h.sz=function(){return!1};
g.h.parse=function(a){function b(){for(;t<a.length;)if(Rk(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.B++;switch(f.j){case m.INIT:"{"===x?f.j=m.HD:"["===x?f.j=m.Yu:Rk(x)||Vk(f,a,t);continue;case m.BD:case m.HD:if(Rk(x))continue;if(f.j===m.BD)k.push(m.pK);else if("}"===x){e("{}");f.j=d();continue}else k.push(m.Bs);'"'===x?f.j=m.STRING:Vk(f,a,t);continue;case m.pK:case m.Bs:if(Rk(x))continue;":"===x?(f.j===m.Bs&&(k.push(m.Bs),f.u++),f.j=m.Ov):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.Bs&&k.push(m.Bs),f.j=m.BD):Vk(f,a,t);continue;case m.Yu:case m.Ov:if(Rk(x))continue;
if(f.j===m.Yu)if(f.u++,f.j=m.Ov,"]"===x){f.u--;if(0===f.u){f.j=m.Xu;return}e("[]");f.j=d();continue}else k.push(m.Xu);'"'===x?f.j=m.STRING:"{"===x?f.j=m.HD:"["===x?f.j=m.Yu:"t"===x?f.j=m.CK:"f"===x?f.j=m.XI:"n"===x?f.j=m.tK:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.FD:Vk(f,a,t));continue;case m.Xu:if(","===x)k.push(m.Xu),f.j=m.Ov,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if(Rk(x))continue;else Vk(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.N;)if(x=a[t++],
4===f.N?f.N=0:f.N++,!x)break a;if('"'===x&&!f.K){f.j=d();break}if("\\"===x&&!f.K&&(f.K=!0,x=a[t++],!x))break;if(f.K)if(f.K=!1,"u"===x&&(f.N=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.B+=t-y;continue;case m.CK:if(!x)continue;"r"===x?f.j=m.DK:Vk(f,a,t);continue;case m.DK:if(!x)continue;"u"===x?f.j=m.EK:Vk(f,a,t);continue;case m.EK:if(!x)continue;"e"===x?f.j=d():Vk(f,a,t);continue;case m.XI:if(!x)continue;"a"===x?f.j=m.YI:
Vk(f,a,t);continue;case m.YI:if(!x)continue;"l"===x?f.j=m.ZI:Vk(f,a,t);continue;case m.ZI:if(!x)continue;"s"===x?f.j=m.aJ:Vk(f,a,t);continue;case m.aJ:if(!x)continue;"e"===x?f.j=d():Vk(f,a,t);continue;case m.tK:if(!x)continue;"u"===x?f.j=m.uK:Vk(f,a,t);continue;case m.uK:if(!x)continue;"l"===x?f.j=m.vK:Vk(f,a,t);continue;case m.vK:if(!x)continue;"l"===x?f.j=d():Vk(f,a,t);continue;case m.kT:"."===x?f.j=m.FD:Vk(f,a,t);continue;case m.FD:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.j=
d();continue;default:Vk(f,a,t)}}}
function d(){var x=k.pop();return null!=x?x:m.Ov}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Z?f.J.push(x):f.J.push(JSON.parse(x)),q=t)}
for(var f=this,k=f.ma,l=f.va,m=sSa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return Vk(f,a,t),null;case 2:return b()&&Vk(f,a,t),null;case 0:if(b()){var v=a[t++];f.B++;if("["===v){f.D=1;p=t;f.j=m.Yu;continue}else Vk(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.Xu?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(v=f.J,f.J=[],v):null}return null};Wk.prototype.isInputValid=function(){return null===this.D};
Wk.prototype.He=function(){return this.D};
Wk.prototype.sz=function(){return!1};
Wk.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+k+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Uk({Iga:!0,eU:!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.J||1<m.length)&&b("extra status: "+m);f.J=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,k=0;k<a.length;){var l;if(l=2!==f.u){a:{for(;k<a.length;){if(!Rk(a[k])){l=!0;break a}k++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[k]?(f.u=1,k++,f.j++):b("unexpected input token");break;case 1:"["===a[k]?(f.u=2,c()):","===a[k]||"null,"==a.substr(k,5)?f.u=3:"]"===a[k]?(f.u=5,k++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(k));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-k-l.length,a=l,k=0):(f.j+=a.length-
k,k=a.length);break;case 3:","===a[k]||"null,"==a.substr(k,5)?(f.u=4,c(),f.B.parse("["),k+=","===a[k]?1:5,f.j++):"]"===a[k]&&(f.u=5,k++,f.j++);break;case 4:l=f.B.parse(a.substring(k));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-k-l.length,a=l,k=0):(f.j+=a.length-k,k=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};Xk.prototype.getStatus=function(){return this.C};
Xk.prototype.Z=function(a){a=a.target;try{if(a==this.j)a:{var b=g.uj(this.j),c=this.j.u,d=this.j.getStatus(),e=g.xj(this.j);a=[];if(g.yj(this.j)instanceof Array){var f=g.yj(this.j);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?Yk(this,7):7==c?Yk(this,8):d||Yk(this,3)),this.u||(this.u=fea(this.j),null==this.u&&Yk(this,5)),2<this.C)Zk(this);else{if(a.length>this.B){var k=a.length;c=[];try{if(this.u.sz())for(var l=0;l<k;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.J){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.J=new TextDecoder}for(l=0;l<k;l++)m+=this.J.decode(a[l],{stream:4==b&&l==k-1});c=this.u.parse(m)}a.splice(0,k);c&&this.D(c)}catch(p){Yk(this,5);Zk(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){Yk(this,5);Zk(this);break a}}4==b?(0!=e.length||
this.X?Yk(this,2):Yk(this,4),Zk(this)):Yk(this,1)}}}catch(p){Yk(this,6),Zk(this)}};g.h=gea.prototype;g.h.Qm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.h.addListener=function(a,b){this.Qm(a,b);return this};
g.h.removeListener=function(a,b){var c=this.u[a];c&&g.gc(c,b);(a=this.j[a])&&g.gc(a,b);return this};
g.h.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.h.UW=function(a){var b=this.u.data;b&&hea(a,b);(b=this.j.data)&&hea(a,b);this.j.data=[]};
g.h.EY=function(){switch(this.B.getStatus()){case 1:$k(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$k(this,"error");break;case 8:$k(this,"close");break;case 2:$k(this,"end")}};iea.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return jea(function(k){var l=k.pA(),m=k.getMetadata(),n=mea(e,!1);m=nea(e,m,n,f+l.getName());var p=oea(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,Nda(d,b,c))};al.prototype.create=function(a,b){return Xj(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},lSa)};
al.prototype.ping=function(a,b){return Xj(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},mSa)};g.w(el,Error);g.w(fl,g.G);g.w(hl,fl);hl.prototype.Rt=function(a){++this.D>=this.J&&this.B.resolve();var b=new Jj(this.logger,"C");a=new Mda(this.C(a.dw));b.done();b=a.u;var c=this.j;c=ve(c,nf,3===re(c,uf)?3:-1);c||(c=new nf,a=Oc(a.B),g.D(c,2,a),ye(this.j,3,uf,c));g.D(c,1,b);return g.$e(this.j,Raa)};
g.w(il,fl);il.prototype.Rt=function(){return this.j};
g.w(jl,fl);jl.prototype.Rt=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
dl.prototype.isReady=function(){return!!this.j};
dl.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})};
dl.prototype.Rt=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Jj(this.logger,this.j.u);try{return this.j.Rt(a)}catch(e){b=new Jj(this.logger,"e");var c=new el(5,e);this.logger.jx(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new jl(c)).Rt()}finally{b.done()}};var en;en=["av.default","js","unreleased"].slice(-1)[0];var Um=document,zl=window;var Cea={NONE:0,F5:1},pfa={aR:0,zca:1,yca:2,Aca:3},ofa={X0:"a",w5:"d",VIDEO:"v"};ll.prototype.isVisible=function(){return this.Aq?.3<=this.od:.5<=this.od};var vl={b2:0,Z5:1},mfa={NONE:0,q7:1,w6:2};ml.prototype.getValue=function(){return this.Vc};
g.w(nl,ml);nl.prototype.setValue=function(a){if(null!==this.Vc||!g.Zf(this.u,a))return!1;this.Vc=a;return!0};
g.w(ol,ml);ol.prototype.setValue=function(a){if(null!==this.Vc||"number"!==typeof a)return!1;this.Vc=a;return!0};
g.w(pl,ml);pl.prototype.setValue=function(a){if(null!==this.Vc||"string"!==typeof a)return!1;this.Vc=a;return!0};ql.prototype.disable=function(){this.u=!1};
ql.prototype.enable=function(){this.u=!0};
ql.prototype.isEnabled=function(){return this.u};
ql.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var tga=!g.Nc&&!Nb();wl.prototype.now=function(){return 0};
wl.prototype.u=function(){return 0};
wl.prototype.B=function(){return 0};
wl.prototype.j=function(){return 0};g.w(yl,wl);yl.prototype.now=function(){return xl()&&zl.performance.now?zl.performance.now():wl.prototype.now.call(this)};
yl.prototype.u=function(){return xl()&&zl.performance.memory?zl.performance.memory.totalJSHeapSize||0:wl.prototype.u.call(this)};
yl.prototype.B=function(){return xl()&&zl.performance.memory?zl.performance.memory.usedJSHeapSize||0:wl.prototype.B.call(this)};
yl.prototype.j=function(){return xl()&&zl.performance.memory?zl.performance.memory.jsHeapSizeLimit||0:wl.prototype.j.call(this)};var Fea=Jg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});Iea.prototype.isVisible=function(){return 1===Bl(Um)};g.Rg("csi.gstatic.com");g.Rg("googleads.g.doubleclick.net");g.Rg("partner.googleadservices.com");g.Rg("pubads.g.doubleclick.net");g.Rg("securepubads.g.doubleclick.net");g.Rg("tpc.googlesyndication.com");var Mea=/https?:\/\/[^\/]+/,Kea={q0:"allow-forms",r0:"allow-modals",s0:"allow-orientation-lock",t0:"allow-pointer-lock",u0:"allow-popups",v0:"allow-popups-to-escape-sandbox",w0:"allow-presentation",x0:"allow-same-origin",y0:"allow-scripts",z0:"allow-top-navigation",A0:"allow-top-navigation-by-user-activation"},Pea=Jg(function(){return Lea()});var Tea=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ol.prototype.setInterval=function(a,b){return zl.setInterval(a,b)};
Ol.prototype.clearInterval=function(a){zl.clearInterval(a)};
Ol.prototype.setTimeout=function(a,b){return zl.setTimeout(a,b)};
Ol.prototype.clearTimeout=function(a){zl.clearTimeout(a)};efa.prototype.getContext=function(){if(!this.j){if(!zl)throw Error("Context has not been set and window is undefined.");this.j=Nl(Ol)}return this.j};g.w(ffa,g.F);var nfa={Xba:1,rT:2,S$:3};Xg(Qg(g.Rg("https://pagead2.googlesyndication.com/pagead/osd.js")));qfa.prototype.pH=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=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.setValue(d)}}}};var C_=null;var am=g.C.performance,tSa=!!(am&&am.mark&&am.measure&&am.clearMarks),Zl=Jg(function(){var a;if(a=tSa){var b;if(null===C_){C_="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(C_=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=C_;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
$l.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(Zl()&&g.wc(this.events,vfa),this.events.length=0)};
$l.prototype.start=function(a,b){if(!this.j)return null;var c=tfa()||sfa();a=new ufa(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";am&&Zl()&&am.mark(b);return a};
$l.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=tfa()||sfa();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";am&&Zl()&&am.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};wfa.prototype.mG=function(a,b,c,d,e){e=e||this.UL;try{var f=new Gl;f.j.push(1);f.u[1]=Hl("context",a);b.error&&b.meta&&b.id||(b=new dm(em(b)));if(b.msg){var k=b.msg.substring(0,512);f.j.push(2);f.u[2]=Hl("msg",k)}var l=b.meta||{};if(this.ZD)try{this.ZD(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Vea();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Hl("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Hca(m.j.url):""}];f.j.push(5);f.u[5]=p;Yl(this.j,e,f,!1,c)}catch(q){try{Yl(this.j,
e,{context:"ecmserr",rctx:a,msg:em(q),url:m&&m.j.url},!1,c)}catch(t){}}return this.YH};
g.w(dm,rfa);var cm,fm,bm=new $l;cm=new function(){var a="https:";zl&&zl.location&&"http:"===zl.location.protocol&&(a="http:");this.u=a;this.j=.01;this.B=Math.random()};
fm=new wfa;zl&&zl.document&&("complete"==zl.document.readyState?yfa():bm.j&&Al(zl,"load",function(){yfa()}));var Bfa=Date.now(),rm=-1,pm=-1,Tga,sm=-1,qm=!1;g.h=tm.prototype;g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new tm(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof tm?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.h.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.h.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.h.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.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};xm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&vm(this.j,a.j)&&!0};ym.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.N==a.N&&vm(this.B,a.B)&&vm(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.K==a.K};var uSa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ho={nT:"start",eR:"firstquartile",iT:"midpoint",oT:"thirdquartile",WQ:"complete",hT:"metric",PAUSE:"pause",lT:"resume",mT:"skip",qT:"viewable_impression",jT:"mute",pT:"unmute",fR:"fullscreen",dR:"exitfullscreen",UQ:"bufferstart",TQ:"bufferfinish",gR:"fully_viewable_audible_half_duration_impression",gT:"measurable_impression",NQ:"abandon",cR:"engagedview",hR:"impression",XQ:"creativeview",fT:"loaded",fca:"progress",CLOSE:"close",
P1:"collapse",dba:"overlay_resize",eba:"overlay_unmeasurable_impression",fba:"overlay_unviewable_impression",jba:"overlay_viewable_immediate_impression",hba:"overlay_viewable_end_of_session_impression",YQ:"custom_metric_viewable",Yaa:"verification_debug",OQ:"audio_audible",QQ:"audio_measurable",PQ:"audio_impression"},eia="start firstquartile midpoint thirdquartile resume loaded".split(" "),fia=["start","firstquartile","midpoint","thirdquartile"],Uga=["abandon"],Co={UNKNOWN:-1,nT:0,eR:1,iT:2,oT:3,
WQ:4,hT:5,PAUSE:6,lT:7,mT:8,qT:9,jT:10,pT:11,fR:12,dR:13,gR:14,gT:15,NQ:16,cR:17,hR:18,XQ:19,fT:20,YQ:21,UQ:22,TQ:23,PQ:24,QQ:25,OQ:26};var Dfa={b0:"addEventListener",y6:"getMaxSize",z6:"getScreenSize",A6:"getState",B6:"getVersion",uca:"removeEventListener",M7:"isViewable"};g.h=g.Am.prototype;g.h.clone=function(){return new g.Am(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Ah?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.h.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.h.getSize=function(){return new g.Ch(this.width,this.height)};
g.h.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.h.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.h.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.h.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 Hfa={};Qfa.prototype.update=function(a){a&&a.document&&(this.K=zm(!1,a,this.isMobileDevice),this.j=zm(!0,a,this.isMobileDevice),Sfa(this,a),Rfa(this,a))};Wm.prototype.cancel=function(){Pl().clearTimeout(this.j);this.j=null};
Wm.prototype.schedule=function(){var a=this;this.j=Pl().setTimeout(Rl(Xl().j.j,hm(143,function(){a.u++;a.B.sample()})),Cfa())};g.h=Xm.prototype;g.h.bv=function(){return!1};
g.h.initialize=function(){return this.isInitialized=!0};
g.h.Ys=function(){return this.j.ya};
g.h.Tw=function(){return this.j.Z};
g.h.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.ya=a,this.N=0,this.j!=this||Zm(this)};
g.h.getName=function(){return this.j.Ja};
g.h.uo=function(){return this.j.mM()};
g.h.mM=function(){return{}};
g.h.Cm=function(){return this.j.N};
g.h.rJ=function(){var a=Tm();a.j=zm(!0,this.B,a.isMobileDevice)};
g.h.sJ=function(){Rfa(Tm(),this.B)};
g.h.uM=function(){return this.C.j};
g.h.sample=function(){};
g.h.isActive=function(){return this.j.J};
g.h.zt=function(a){var b=this.j;this.j=a.Cm()>=this.N?a:this;b!==this.j?(this.J=this.j.J,Zm(this)):this.J!==this.j.J&&(this.J=this.j.J,Zm(this))};
g.h.Go=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.X);this.C=a;b&&Vfa(this)}};
g.h.Fl=function(){return this.X};
g.h.dispose=function(){this.xa=!0};
g.h.isDisposed=function(){return this.xa};g.h=$m.prototype;g.h.aD=function(){return!0};
g.h.ev=function(){};
g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.gc(a.D,this);a.X&&this.Fl()&&Ufa(a);this.ev();this.Z=!0}};
g.h.isDisposed=function(){return this.Z};
g.h.uo=function(){return this.u.uo()};
g.h.Cm=function(){return this.u.Cm()};
g.h.Ys=function(){return this.u.Ys()};
g.h.Tw=function(){return this.u.Tw()};
g.h.zt=function(){};
g.h.Go=function(){this.Jn()};
g.h.Fl=function(){return this.ma};g.h=an.prototype;g.h.Cm=function(){return this.j.Cm()};
g.h.Ys=function(){return this.j.Ys()};
g.h.Tw=function(){return this.j.Tw()};
g.h.create=function(a,b,c){var d=null;this.j&&(d=this.Xy(a,b,c),Ym(this.j,d));return d};
g.h.tJ=function(){return this.fv()};
g.h.fv=function(){return!1};
g.h.init=function(a){return this.j.initialize()?(Ym(this.j,this),this.C=a,!0):!1};
g.h.zt=function(a){0==a.Cm()&&this.C(a.Ys(),this)};
g.h.Go=function(){};
g.h.Fl=function(){return!1};
g.h.dispose=function(){this.D=!0};
g.h.isDisposed=function(){return this.D};
g.h.uo=function(){return{}};bn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.j,f=e.push;a=new Wfa(a,b,c);d=new Wfa(a.j,a.Vc,a.u+d);f.call(e,d);this.u=!0;return this};aga.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=dn(this.j);0<b.length&&(a+="?"+b);return a};fn.prototype.update=function(a,b,c){a&&(this.j+=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 hga=[1,.75,.5,.3,0];gn.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 k=this.u[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.j[e].update(f&&l,d,!f||k)}};nn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.od):b.od;this.ma=Math.max(this.ma,b.od);this.va=-1!=this.va?Math.min(this.va,b.Dh):b.Dh;this.ya=Math.max(this.ya,b.Dh);this.Xa.update(b.Dh,c.Dh,b.j,a,d);this.u.update(b.od,c.od,b.j,a,d);c=d||c.Aq!=b.Aq?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ja.update(c,a,b)};
nn.prototype.Jm=function(){return this.Ja.B>=this.Wa};var mga=[qn("data"),qn("http"),qn("https"),qn("mailto"),qn("ftp"),new pn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];if(Um&&Um.URL){var D_=Um.URL,E_;if(E_=!!D_){var F_;a:{if(D_){var vSa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var G_=vSa.exec(decodeURIComponent(D_));if(G_){F_=G_[1]&&1<G_[1].length?G_[1].substring(1):"true";break a}}catch(a){}}F_=""}E_=0<F_.length}fm.YH=!E_};var wSa=new tm(0,0,0,0);var rga=new tm(0,0,0,0);g.w(un,g.G);g.h=un.prototype;g.h.ra=function(){this.dh.j&&(this.fq.yG&&(Hea(this.dh.j,"mouseover",this.fq.yG),this.fq.yG=null),this.fq.wG&&(Hea(this.dh.j,"mouseout",this.fq.wG),this.fq.wG=null));this.yy&&this.yy.dispose();this.je&&this.je.dispose();delete this.dB;delete this.oG;delete this.uQ;delete this.dh.Ro;delete this.dh.j;delete this.fq;delete this.yy;delete this.je;delete this.featureSet;g.G.prototype.ra.call(this)};
g.h.zo=function(){return this.je?this.je.j:this.position};
g.h.pH=function(a){Xl().pH(a)};
g.h.Fl=function(){return!1};
g.h.sA=function(){return new nn};
g.h.Fg=function(){return this.dB};
g.h.pM=function(a){return vga(this,a,1E4)};
g.h.Ka=function(a,b,c,d,e,f,k){this.Oo||(this.Uz&&(a=this.lE(a,c,e,k),d=d&&this.Gf.od>=(this.Aq()?.3:.5),this.FI(f,a,d),this.lastUpdateTime=b,0<a.od&&-1===this.eQ&&(this.eQ=b),-1==this.hQ&&this.Jm()&&(this.hQ=b),-2==this.iG&&(this.iG=sn(this.zo())?a.od:-1),this.Gf=a),this.oG(this))};
g.h.FI=function(a,b,c){this.Fg().update(a,b,this.Gf,c)};
g.h.mF=function(){return new ll};
g.h.lE=function(a,b,c,d){c=this.mF();c.j=b;b=Pl().u;b=0===Bl(Um)?-1:b.isVisible()?0:1;c.u=b;c.od=this.wE(a);c.Aq=this.Aq();c.Dh=d;return c};
g.h.wE=function(a){return 0===this.opacity&&1===tl(this.featureSet,"opac")?0:a};
g.h.Aq=function(){return!1};
g.h.fC=function(){return this.tV||this.wV};
g.h.iB=function(){jm()};
g.h.xG=function(){jm()};
g.h.fl=function(){return 0};
g.h.Jm=function(){return this.dB.Jm()};
g.h.vM=function(){return this.Oo?2:this.Jm()?4:3};
g.h.kA=function(){return 0};g.yn="StopIteration"in g.C?g.C.StopIteration:{message:"StopIteration",stack:""};g.wn.prototype.j=function(){throw g.yn;};
g.wn.prototype.next=function(){return g.H_};
g.H_={done:!0,value:void 0};g.wn.prototype.Kh=function(){return this};g.w(Bga,ll);var I_=Dga([void 0,1,2,3,4,8,16]),J_=Dga([void 0,4,8,16]),xSa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Cn("p0",J_),p1:Cn("p1",J_),p2:Cn("p2",J_),p3:Cn("p3",J_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Bn("mtos1",[0,2,4],!1,J_),mtos2:Bn("mtos2",[0,2,4],!1,J_),mtos3:Bn("mtos3",[0,2,4],!1,J_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Cn("a0",J_),a1:Cn("a1",J_),a2:Cn("a2",J_),a3:Cn("a3",J_),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:Cn("c0",J_),c1:Cn("c1",J_),c2:Cn("c2",J_),c3:Cn("c3",J_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Cn("qmtos",I_),qnc:Cn("qnc",I_),qmv:Cn("qmv",I_),qnv:Cn("qnv",I_),
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:Cn("ss0",J_),ss1:Cn("ss1",J_),ss2:Cn("ss2",J_),ss3:Cn("ss3",J_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
ySa=Object.assign({},xSa,{avid:Hg("audio"),avas:"avas",vs:"vs"}),zSa={atos:"atos",avt:Bn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};Hn.prototype.getValue=function(){return this.u};
Hn.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.w(In,nn);
In.prototype.update=function(a,b,c,d){if(!b.paused){nn.prototype.update.call(this,a,b,c,d);var e=An(b)&&An(c),f=.5<=(d?Math.min(b.od,c.od):c.od);Rm(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.J=Math.max(this.J,b.volume));f&&(this.xa+=a,this.X+=e?a:0);this.j.update(b.od,c.od,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.Ya.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ea.update(a,b.isVisible());this.Qa.update(a,1<=b.od);this.Sa.update(a,
An(b))}};Iga.prototype.D=function(a){this.u||(this.j(a)?(a=Sha(this.X,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.w(Xn,Iga);Xn.prototype.j=function(){return!0};
Xn.prototype.J=function(){return!1};
Xn.prototype.getId=function(){var a=this,b=$f(ho,function(c){return c==a.B});
return Co[b].toString()};
Xn.prototype.toString=function(){var a="";this.J()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.w(Yn,Xn);Yn.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.K.push(b);Xn.prototype.D.call(this,a)};g.w(Zn,$m);g.h=Zn.prototype;g.h.nE=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Nfa(a.getBoundingClientRect())}catch(n){c=new tm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Kfa(a,b),k=f.x,l=f.y;var m=new tm(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=wSa.clone()}this.j=m}};
g.h.kL=function(){this.C=this.u.C.j};
g.h.dN=function(a){var b=1==tl(this.featureSet,"od");return qga(a,this.C,this.element,b)};
g.h.lL=function(){this.timestamp=jm()};
g.h.Jn=function(){this.lL();this.nE();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Ch(a.videoWidth,a.videoHeight);a=this.j;var c=um(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.j=a}this.kL();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new tm(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 tm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new tm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.dN(c)?c=new tm(0,0,0,0):(d=Tm().C,b=new tm(0,d.height,d.width,0),d=tn(c,this.j),e=tn(c,Tm().j),b=tn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new tm(0,0,0,
0):wm(c,-this.j.left,-this.j.top);Vm()||(e=d=0);this.K=new ym(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.h.getName=function(){return this.u.getName()};var ASa=new tm(0,0,0,0);g.w($n,Zn);g.h=$n.prototype;g.h.aD=function(){this.B();return!0};
g.h.Go=function(){Zn.prototype.Jn.call(this)};
g.h.lL=function(){};
g.h.nE=function(){};
g.h.Jn=function(){this.B();Zn.prototype.Jn.call(this)};
g.h.zt=function(a){a=a.isActive();a!==this.J&&(a?this.B():(Tm().j=new tm(0,0,0,0),this.j=new tm(0,0,0,0),this.C=new tm(0,0,0,0),this.timestamp=-1));this.J=a};var K_={},Sga=(K_.firstquartile=0,K_.midpoint=1,K_.thirdquartile=2,K_.complete=3,K_);g.w(bo,un);g.h=bo.prototype;g.h.Fl=function(){return!0};
g.h.Im=function(){return 2==this.Kg};
g.h.pM=function(a){return vga(this,a,Math.max(1E4,this.B/3))};
g.h.Ka=function(a,b,c,d,e,f,k){var l=this,m=this.K(this)||{};g.jg(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ia=m.isYouTube||this.Ia;e=Kga(this,b);1===Jga(this)&&(f=e);un.prototype.Ka.call(this,a,b,c,d,m,f,k);this.Lq&&this.Lq.u&&g.wc(this.J,function(n){n.D(l)})};
g.h.FI=function(a,b,c){un.prototype.FI.call(this,a,b,c);fo(this).update(a,b,this.Gf,c);this.Xa=An(this.Gf)&&An(b);-1==this.ya&&this.Wa&&(this.ya=this.Fg().B.j);this.xf.B=0;a=this.Jm();b.isVisible()&&Gn(this.xf,"vs");a&&Gn(this.xf,"vw");Rm(b.volume)&&Gn(this.xf,"am");An(b)&&Gn(this.xf,"a");this.Ct&&Gn(this.xf,"f");-1!=b.u&&(Gn(this.xf,"bm"),1==b.u&&Gn(this.xf,"b"));An(b)&&b.isVisible()&&Gn(this.xf,"avs");this.Xa&&a&&Gn(this.xf,"avw");0<b.od&&Gn(this.xf,"pv");go(this,this.Fg().B.j,!0)&&Gn(this.xf,"gdr");
2E3<=ln(this.Fg().u,1)&&Gn(this.xf,"pmx")};
g.h.sA=function(){return new In};
g.h.Fg=function(){return this.dB};
g.h.mF=function(){return new Bga};
g.h.lE=function(a,b,c,d){a=un.prototype.lE.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ct;a.paused=this.Im();a.volume=c.volume;Rm(a.volume)||(this.ib++,b=this.Gf,Rm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.h.wE=function(a){return Tm(),this.Ct?1:un.prototype.wE.call(this,a)};
g.h.fl=function(){return 1};
g.h.getDuration=function(){return this.B};
g.h.vM=function(){return this.Oo?2:Mga(this)?5:this.Jm()?4:3};
g.h.kA=function(){return this.Ya?2E3<=this.Fg().D.B?4:3:2};var BSa=g.Va();bha.prototype.reset=function(){this.j=[];this.u=[]};
var mo=Nl(bha);g.w(po,an);g.h=po.prototype;g.h.getName=function(){return(this.u?this.u:this.j).getName()};
g.h.uo=function(){return(this.u?this.u:this.j).uo()};
g.h.Cm=function(){return(this.u?this.u:this.j).Cm()};
g.h.init=function(a){var b=!1;(0,g.wc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Ym(this.j,this));return b};
g.h.dispose=function(){(0,g.wc)(this.B,function(a){a.dispose()});
an.prototype.dispose.call(this)};
g.h.tJ=function(){return Sm(this.B,function(a){return a.bv()})};
g.h.fv=function(){return Sm(this.B,function(a){return a.bv()})};
g.h.Xy=function(a,b,c){return new Zn(a,this.j,b,c)};
g.h.Go=function(a){this.u=a.u};var kha={threshold:[0,.3,.5,.75,1]};g.w(qo,Zn);g.h=qo.prototype;g.h.aD=function(){var a=this;this.X||(this.X=jm());if(Afa(298,function(){return lha(a)}))return!0;
this.u.fail("msf");return!1};
g.h.ev=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.h.Jn=function(){var a=ro(this);0<a.length&&so(this,a);Zn.prototype.Jn.call(this)};
g.h.nE=function(){};
g.h.dN=function(){return!1};
g.h.kL=function(){};
g.h.uo=function(){var a={};return Object.assign(this.u.uo(),(a.niot_obs=this.X,a.niot_cbk=this.N,a))};
g.h.getName=function(){return"nio"};g.w(to,an);to.prototype.getName=function(){return"nio"};
to.prototype.fv=function(){return!Tm().u&&null!=this.j.j.B.IntersectionObserver};
to.prototype.Xy=function(a,b,c){return new qo(a,this.j,b,c)};g.w(uo,Xm);uo.prototype.uM=function(){return Tm().j};
uo.prototype.bv=function(){var a=nha();this.N!==a&&(this.j!=this&&a>this.j.N&&(this.j=this,Zm(this)),this.N=a);return 2==a};vo.prototype.sample=function(){zo(this,no(),!1)};
vo.prototype.C=function(){var a=Vm(),b=jm();a?(qm||(rm=b,g.wc(mo.j,function(c){var d=c.Fg();d.Ia=Jn(d,b,1!=c.Kg)})),qm=!0):(this.K=sha(this,b),qm=!1,Tga=b,g.wc(mo.j,function(c){c.Uz&&(c.Fg().N=b)}));
zo(this,no(),!a)};
var xo=Nl(vo);var uha=null,Xo="",Wo=!1;var xha=wha().Tk,Bo=wha().Wk;var Aha={b6:"visible",Y0:"audible",cea:"time",dea:"timetype"},Bha={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(Fo,Xn);Fo.prototype.getId=function(){return this.K};
Fo.prototype.J=function(){return!0};
Fo.prototype.j=function(a){var b=a.Fg(),c=a.getDuration();return Sm(this.N,function(d){if(void 0!=d.j)var e=Dha(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;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(Go,Eha);Go.prototype.u=function(){return null};
Go.prototype.B=function(){return[]};g.w(Ho,Ega);Ho.prototype.j=function(a){var b=new En;b.j=Fn(a,xSa);b.u=Fn(a,zSa);return b};g.w(Io,Xn);Io.prototype.j=function(a){return Mga(a)};g.w(Jo,Eha);g.w(Ko,Xn);Ko.prototype.j=function(a){return a.Fg().Jm()};g.w(Lo,Yn);Lo.prototype.j=function(a){var b=g.cc(this.K,tl(Xl().featureSet,"ovms"));return!a.Oo&&(0!=a.Kg||b)};g.w(Mo,Jo);Mo.prototype.u=function(){return new Lo(this.j)};
Mo.prototype.B=function(){return[new Ko("viewable_impression",this.j),new Io(this.j)]};g.w(No,$n);No.prototype.B=function(){var a=g.Ka("ima.admob.getViewability"),b=tl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
No.prototype.getName=function(){return"gsv"};g.w(Oo,an);Oo.prototype.getName=function(){return"gsv"};
Oo.prototype.fv=function(){var a=Tm();Xl();return a.u&&!1};
Oo.prototype.Xy=function(a,b,c){return new No(this.j,b,c)};g.w(Po,$n);Po.prototype.B=function(){var a=this,b=g.Ka("ima.bridge.getNativeViewability"),c=tl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.bg(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Ofa(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?ASa.clone():Ofa(e);a.timestamp=d.opt_nativeTime||-1;Tm().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Po.prototype.getName=function(){return"nis"};g.w(Qo,an);Qo.prototype.getName=function(){return"nis"};
Qo.prototype.fv=function(){var a=Tm();Xl();return a.u&&!1};
Qo.prototype.Xy=function(a,b,c){return new Po(this.j,b,c)};g.w(Ro,Xm);g.h=Ro.prototype;g.h.bv=function(){return null!=this.u.Tj};
g.h.mM=function(){var a={};this.Ea&&(a.mraid=this.Ea);this.va&&(a.mlc=1);a.mtop=this.u.UZ;this.K&&(a.mse=this.K);this.Ia&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.h.kp=function(a){var b=g.Da.apply(1,arguments);try{return this.u.Tj[a].apply(this.u.Tj,b)}catch(c){im(538,c,.01,function(d){d.method=a})}};
g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.Tw();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;Tm().N=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Iha(this):rn(this.B,"load",function(){Pl().setTimeout(hm(292,function(){return Iha(a)}),100)},292);
return!0};
g.h.rJ=function(){var a=Tm(),b=Nha(this,"getMaxSize");a.j=new tm(0,b.width,b.height,0)};
g.h.sJ=function(){Tm().C=Nha(this,"getScreenSize")};
g.h.dispose=function(){Kha(this);Xm.prototype.dispose.call(this)};g.h=To.prototype;g.h.jw=function(a){vn(a,!1);fha(a)};
g.h.xA=function(){};
g.h.Xx=function(a,b,c,d){var e=this;b=c?b:-1;c=this.EL();a=new bo(zl,a,b,7,this.EE(),c.u(),c.B());a.Vf=d;Aea(a.featureSet);sl(a.featureSet,"queryid",a.Vf);a.pH("");yga(a,function(){return e.CM.apply(e,g.u(g.Da.apply(0,arguments)))},function(){return e.WU.apply(e,g.u(g.Da.apply(0,arguments)))});
(d=Nl(oo).j)&&uga(a,d);a.dh.Ro&&Nl(oha);return a};
g.h.zt=function(a){switch(a.Cm()){case 0:if(a=Nl(oo).j)a=a.j,g.gc(a.D,this),a.X&&this.Fl()&&Ufa(a);Vo();break;case 2:yo()}};
g.h.Go=function(){};
g.h.Fl=function(){return!1};
g.h.WU=function(a,b){a.Oo=!0;switch(a.fl()){case 1:Tha(a,b);break;case 2:this.zH(a)}this.NH()};
g.h.eV=function(a){var b=a.K(a);b&&(b=b.volume,a.Ya=Rm(b)&&0<b);Pga(a,0);return io(a,"start",Vm())};
g.h.Ju=function(a,b,c){zo(xo,[a],!Vm());return this.il(a,b,c)};
g.h.il=function(a,b,c){return io(a,c,Vm())};
g.h.ZU=function(a){return ap(a,"firstquartile",1)};
g.h.bV=function(a){a.Wa=!0;return ap(a,"midpoint",2)};
g.h.fV=function(a){return ap(a,"thirdquartile",3)};
g.h.XU=function(a){var b=ap(a,"complete",4);co(a);return b};
g.h.AP=function(a,b,c){b=Vm();if(a.Im()&&!b){var d=jm();a.Fg().N=d}zo(xo,[a],!b);a.Im()&&(a.Kg=1);return io(a,c,b)};
g.h.dV=function(a,b){b=this.Ju(a,b||{},"skip");co(a);return b};
g.h.aV=function(a,b){vn(a,!0);return this.Ju(a,b||{},"fullscreen")};
g.h.YU=function(a,b){vn(a,!1);return this.Ju(a,b||{},"exitfullscreen")};
g.h.iH=function(a,b,c){b=a.Fg();var d=jm();b.Ia=Jn(b,d,1!=a.Kg);zo(xo,[a],!Vm());1==a.Kg&&(a.Kg=2);return io(a,c,Vm())};
g.h.cV=function(a){zo(xo,[a],!Vm());return a.u()};
g.h.DF=function(a){zo(xo,[a],!Vm());this.uP(a);co(a);return a.u()};
g.h.CM=function(){};
g.h.zH=function(){};
g.h.uP=function(){};
g.h.uJ=function(){};
g.h.NH=function(){};
g.h.FE=function(){};
g.h.EL=function(){this.j||(this.j=this.FE());return null==this.j?new Go:new Mo(this.j)};
g.h.EE=function(){return new Ho};g.w(bp,Xn);bp.prototype.j=function(a){return 4==a.kA()};g.w(cp,Yn);cp.prototype.j=function(a){a=a.kA();return 3==a||4==a};g.w(dp,Jo);dp.prototype.u=function(){return new cp(this.j)};
dp.prototype.B=function(){return[new bp(this.j)]};g.w(ep,Ega);ep.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new En;b.j=Fn(a,ySa);b.u=Fn(a,zSa);return b};Yha.prototype.u=function(){return g.Ka(this.j)};var ova={K5:"EMBEDDED_PLAYER_MODE_UNKNOWN",H5:"EMBEDDED_PLAYER_MODE_DEFAULT",J5:"EMBEDDED_PLAYER_MODE_PFP",I5:"EMBEDDED_PLAYER_MODE_PFL"},hva={J8:"LIVING_ROOM_APP_MODE_UNSPECIFIED",G8:"LIVING_ROOM_APP_MODE_MAIN",F8:"LIVING_ROOM_APP_MODE_KIDS",H8:"LIVING_ROOM_APP_MODE_MUSIC",I8:"LIVING_ROOM_APP_MODE_UNPLUGGED",E8:"LIVING_ROOM_APP_MODE_GAMING"},Qma={Sfa:"WEB_DISPLAY_MODE_UNKNOWN",Ofa:"WEB_DISPLAY_MODE_BROWSER",Qfa:"WEB_DISPLAY_MODE_MINIMAL_UI",Rfa:"WEB_DISPLAY_MODE_STANDALONE",Pfa:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(fp,To);g.h=fp.prototype;g.h.xA=function(a,b){var c=this,d=Nl(oo);if(null!=d.j)switch(d.j.getName()){case "nis":var e=bia(this,a,b);break;case "gsv":e=aia(this,a,b);break;case "exc":e=cia(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Vha(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.fl()&&(e.K==g.Ig&&(e.K=function(f){return c.uJ(f)}),$ha(this,e,b));
return e};
g.h.uJ=function(a){a.u=0;a.xa=0;if("h"==a.C||"n"==a.C){Xl();a.Qa&&(Xl(),"h"!=Zo(this)&&Zo(this));var b=g.Ka("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Vf)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ka("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Vf)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ka("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Vf)}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.bg(c)?a.u|=32:null!=c.errorCode&&(a.xa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.N=0;for(var d in uSa)null==b[d]&&(a.N|=uSa[d]);Xha(b,"currentTime");Xha(b,"duration");Rm(c.volume)&&Rm(void 0)&&(c.volume*=NaN);return c};
g.h.FE=function(){Xl();"h"!=Zo(this)&&Zo(this);var a=dia(this);return null!=a?new Yha(a):null};
g.h.zH=function(a){!a.j&&a.Oo&&$o(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.h.uP=function(a){a.PP&&(a.Jm()?$o(this,a,"overlay_viewable_end_of_session_impression"):$o(this,a,"overlay_unviewable_impression"),a.PP=!1)};
g.h.CM=function(){};
g.h.NH=function(){};
g.h.Xx=function(a,b,c,d){a=To.prototype.Xx.call(this,a,b,c,d);this.C&&(b=this.D,null==a.D&&(a.D=new zga),b.j[a.Vf]=a.D,a.D.D=BSa);return a};
g.h.jw=function(a){a&&1==a.fl()&&this.C&&delete this.D.j[a.Vf];return To.prototype.jw.call(this,a)};
g.h.EL=function(){this.j||(this.j=this.FE());return null==this.j?new Go:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new dp(this.j):new Mo(this.j)};
g.h.EE=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new ep:new Ho};
var gp=new En;gp.j="stopped";gp.u="stopped";var CSa=gm(193,hp,Uha);g.Ja("Goog_AdSense_Lidar_sendVastEvent",CSa,void 0);var DSa=hm(194,function(a,b){b=void 0===b?{}:b;a=gia(Nl(fp),a,b);return iia(a)});
g.Ja("Goog_AdSense_Lidar_getViewability",DSa,void 0);var ESa=gm(195,function(){return dfa()},void 0);
g.Ja("Goog_AdSense_Lidar_getUrlSignalsArray",ESa,void 0);var FSa=hm(196,function(){return JSON.stringify(dfa())});
g.Ja("Goog_AdSense_Lidar_getUrlSignalsList",FSa,void 0);var Vja=(new Date).getTime();var kia="://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(" "),lia=/\bocr\b/;var nia=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.w(lp,g.Dg);lp.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Qj.Fi(this.J);delete lp.j};
lp.prototype.Ne=function(){return this.j};np.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.j=-1)};
np.prototype.get=function(a){return!!this.data_[a]};g.Wa(g.op,g.G);g.h=g.op.prototype;g.h.start=function(){this.stop();this.C=!1;var a=sia(this),b=tia(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.pg(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Yaa(this.B),20)};
g.h.stop=function(){if(this.isActive()){var a=sia(this),b=tia(this);a&&!b&&this.u.mozRequestAnimationFrame?Ag(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.h.isActive=function(){return null!=this.j};
g.h.DR=function(){this.C&&this.j&&Ag(this.j);this.j=null;this.J.call(this.D,g.Va())};
g.h.ra=function(){this.stop();g.op.xe.ra.call(this)};g.Wa(g.L,g.G);g.h=g.L.prototype;g.h.hv=0;g.h.ra=function(){g.L.xe.ra.call(this);this.stop();delete this.j;delete this.u};
g.h.start=function(a){this.stop();this.hv=g.xi(this.B,void 0!==a?a:this.og)};
g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.hv);this.hv=0};
g.h.isActive=function(){return 0!=this.hv};
g.h.vJ=function(){this.hv=0;this.j&&this.j.call(this.u)};tp.prototype[Symbol.iterator]=function(){return this};
tp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Ap.prototype.Kh=function(){return new Bp(this.j())};
Ap.prototype[Symbol.iterator]=function(){return new Cp(this.j())};
Ap.prototype.B=function(){return new Cp(this.j())};
g.w(Bp,g.wn);Bp.prototype.j=function(){var a=this.u.next();if(a.done)throw g.yn;return a.value};
Bp.prototype.next=function(){return this.u.next()};
Bp.prototype[Symbol.iterator]=function(){return new Cp(this.u)};
Bp.prototype.B=function(){return new Cp(this.u)};
g.w(Cp,Ap);Cp.prototype.next=function(){return this.u.next()};g.h=g.Ep.prototype;g.h.Li=function(){Gp(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.h.ym=function(){Gp(this);return this.j.concat()};
g.h.has=function(a){return Fp(this.u,a)};
g.h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||xia;Gp(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.h.isEmpty=function(){return 0==this.size};
g.h.clear=function(){this.u={};this.zp=this.size=this.j.length=0};
g.h.remove=function(a){return this.delete(a)};
g.h.delete=function(a){return Fp(this.u,a)?(delete this.u[a],--this.size,this.zp++,this.j.length>2*this.size&&Gp(this),!0):!1};
g.h.get=function(a,b){return Fp(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Fp(this.u,a)||(this.size+=1,this.j.push(a),this.zp++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.ym(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.Ep(this)};
g.h.keys=function(){return Dp(this.Kh(!0)).B()};
g.h.values=function(){return Dp(this.Kh(!1)).B()};
g.h.entries=function(){var a=this;return uia(this.keys(),function(b){return[b,a.get(b)]})};
g.h.Kh=function(a){Gp(this);var b=0,c=this.zp,d=this,e=new g.wn;e.next=function(){if(c!=d.zp)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.H_;var k=d.j[b++];return g.xn(a?k:d.u[k])};
var f=e.next;e.j=function(){return g.zn(f.call(e))};
return e};g.Wa(g.Hp,g.Dg);g.h=g.Hp.prototype;g.h.Jc=function(){return 1==this.j};
g.h.mB=function(){this.Ii("begin")};
g.h.Dx=function(){this.Ii("end")};
g.h.onFinish=function(){this.Ii("finish")};
g.h.Ii=function(a){this.dispatchEvent(a)};var GSa=Jg(function(){if(g.Nc)return g.Fc("10.0");var a=g.Wh("DIV"),b=g.Gf?"-webkit":Em?"-moz":g.Nc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!fSa.test("div"))throw Error("");if("DIV"in hSa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!fSa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof Pg)f=Qg(f);else if("style"==k.toLowerCase()){if(!g.Pa(f))throw Error("");
f instanceof kh||(f=gba(f));f=lh(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in gSa)if(f instanceof Vg)f=Wg(f).toString();else if(f instanceof g.Zg)f=g.$g(f);else if("string"===typeof f)f=g.bh(f).Ph();else throw Error("");}f.rl&&(f=f.Ph());k=k+'="'+ub(String(f))+'"';e+=" "+k}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===bSa.div?l+=">":(c=rba(d),l+=">"+g.ph(c).toString()+"</div>",c=c.Vr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=qh(l,c);g.vba(a,b);return""!=
g.Fm(a.firstChild,"transition")});g.Wa(Ip,g.Hp);g.h=Ip.prototype;g.h.play=function(){if(this.Jc())return!1;this.mB();this.Ii("play");this.startTime=g.Va();this.j=1;if(GSa())return g.Dm(this.u,this.K),this.C=g.xi(this.lZ,void 0,this),!0;this.bD(!1);return!1};
g.h.lZ=function(){g.Om(this.u);yia(this.u,this.N);g.Dm(this.u,this.D);this.C=g.xi((0,g.Ta)(this.bD,this,!1),1E3*this.J)};
g.h.stop=function(){this.Jc()&&this.bD(!0)};
g.h.bD=function(a){g.Dm(this.u,"transition","");g.C.clearTimeout(this.C);g.Dm(this.u,this.D);this.endTime=g.Va();this.j=0;if(a)this.Ii("stop");else this.onFinish();this.Dx()};
g.h.ra=function(){this.stop();Ip.xe.ra.call(this)};
g.h.pause=function(){};var Aia=g.La;var Cia={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};Kp("Element","attributes")||Kp("Node","attributes");Kp("Element","innerHTML")||Kp("HTMLElement","innerHTML");Kp("Node","nodeName");Kp("Node","nodeType");Kp("Node","parentNode");Kp("Node","childNodes");Kp("HTMLElement","style")||Kp("Element","style");Kp("HTMLStyleElement","sheet");var Iia=Eia("getPropertyValue"),Jia=Eia("setProperty");Kp("Element","namespaceURI")||Kp("Node","namespaceURI");var Hia={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Np.prototype.clone=function(){return new g.Np(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.N)};
g.Np.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.N==a.N};Pp.prototype.clone=function(){return new Pp(this.start,this.end)};var HSa=new WeakMap;(function(){if(rNa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ab()))?a[1]:"0"}return DQ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Ab()))?a[0].replace(/_/g,"."):"10"):g.es?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ab()))?a[1]:""):VRa||WRa||XRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ab()))?a[1].replace(/_/g,"."):""):""})();var Qia=function(){if(g.Ax)return Qp(/Firefox\/([0-9.]+)/);if(g.Nc||g.lt||g.vC)return Ec;if(g.hA){if(Tb()||Ub()){var a=Qp(/CriOS\/([0-9.]+)/);if(a)return a}return Qp(/Chrome\/([0-9.]+)/)}if(g.Ns&&!Tb())return Qp(/Version\/([0-9.]+)/);if(EC||FE){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ab()))return a[1]+"."+a[2]}else if(g.wC)return(a=Qp(/Android\s+([0-9.]+)/))?a:Qp(/Version\/([0-9.]+)/);return""}();g.Wa(g.Sp,g.G);g.h=g.Sp.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nf(a)}return!1};
g.h.Nf=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=g.La):(c&&g.gc(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.h.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 k=c[e];Ria(this.j[k+1],this.j[k+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)k=c[e],this.j[k+1].apply(this.j[k+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Nf(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Nf,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.h.ra=function(){g.Sp.xe.ra.call(this);this.clear();this.B.length=0};g.Tp.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Oi(b))};
g.Tp.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Tp.prototype.remove=function(a){this.j.remove(a)};g.Wa(Up,g.Tp);Up.prototype.set=function(a,b){Up.xe.set.call(this,a,Tia(b))};
Up.prototype.u=function(a){a=Up.xe.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Up.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.Wa(Vp,Up);Vp.prototype.set=function(a,b,c){if(b=Tia(b)){if(c){if(c<g.Va()){Vp.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Va()}Vp.xe.set.call(this,a,b)};
Vp.prototype.u=function(a,b){var c=Vp.xe.u.call(this,a);if(c)if(!b&&g.Uia(c))Vp.prototype.remove.call(this,a);else return c};g.Wa(g.Wp,Vp);g.Wa(Xp,Via);Xp.prototype[Symbol.iterator]=function(){return Dp(this.Kh(!0)).B()};
Xp.prototype.clear=function(){var a=Array.from(this);a=g.r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Wa(Yp,Xp);g.h=Yp.prototype;g.h.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.j.removeItem(a)};
g.h.Kh=function(a){var b=0,c=this.j,d=new g.wn;d.next=function(){if(b>=c.length)return g.H_;var f=c.key(b++);if(a)return g.xn(f);f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.xn(f)};
var e=d.next;d.j=function(){return g.zn(e.call(d))};
return d};
g.h.clear=function(){this.j.clear()};
g.h.key=function(a){return this.j.key(a)};g.Wa(Zp,Yp);g.Wa(Wia,Yp);g.Wa(aq,Xp);var Xia={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},$p=null;g.h=aq.prototype;g.h.isAvailable=function(){return!!this.j};
g.h.set=function(a,b){this.j.setAttribute(bq(a),b);cq(this)};
g.h.get=function(a){a=this.j.getAttribute(bq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.j.removeAttribute(bq(a));cq(this)};
g.h.Kh=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.wn;d.next=function(){if(b>=c.length)return g.H_;var f=c[b++];if(a)return g.xn(decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1));f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.xn(f)};
var e=d.next;d.j=function(){return g.zn(e.call(d))};
return d};
g.h.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);cq(this)};g.Wa(dq,Xp);dq.prototype.set=function(a,b){this.u.set(this.j+a,b)};
dq.prototype.get=function(a){return this.u.get(this.j+a)};
dq.prototype.remove=function(a){this.u.remove(this.j+a)};
dq.prototype.Kh=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.wn;d.next=function(){var f=b.next();if(f.done)return f;for(f=f.value;f.substr(0,c.j.length)!=c.j;){f=b.next();if(f.done)return f;f=f.value}return g.xn(a?f.substr(c.j.length):c.u.get(f))};
var e=d.next;d.j=function(){return g.zn(e.call(d))};
return d};fq.prototype.getKey=function(){return this.j};
fq.prototype.getValue=function(){return this.Vc};
fq.prototype.clone=function(){return new fq(this.j,this.Vc)};g.h=gq.prototype;g.h.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ec(a);else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].getKey()<b[f].getKey()?k:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.Li=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.ym=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.h.clone=function(){return new gq(this)};
g.h.isEmpty=function(){return 0===this.j.length};
g.h.clear=function(){ec(this.j)};g.Wa(hq,gq);hq.prototype.enqueue=function(a,b){Yia(this,a,b)};Ma(iq);iq.prototype.j=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 kq="@@redux/INIT"+jq(),cja="@@redux/REPLACE"+jq();var dja="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(lq,g.F);lq.prototype.getType=function(){return je(this,11,0)};
g.w(oq,g.F);oq.prototype.getKey=function(){var a=g.ge(this,3,void 0);null==a?a=null:a instanceof Zc||(a=Yd(a),g.D(this,3,a,void 0,!0));return a};
var eja=[2,13,14];g.w(qq,g.F);qq.prototype.getKey=function(){return g.ge(this,1)};
qq.prototype.getValue=function(){return g.ge(this,2===re(this,ISa)?2:-1)};
qq.prototype.setValue=function(a){return g.te(this,2,ISa,a)};
var ISa=[2,3,4,5,6];g.w(rq,g.F);g.w(sq,g.F);g.w(tq,g.F);g.w(g.uq,g.F);g.uq.prototype.oo=ca(1);g.uq.prototype.getPlayerType=function(){return g.ge(this,36)};
g.uq.prototype.setHomeGroupInfo=function(a){return xe(this,81,a)};
var kja=[9,66,24,32,86,100,101],kva={Lea:0,Jfa:1,Vfa:32,aga:61,gga:67,dga:86,Ufa:42,Wfa:60,Nfa:62,Zfa:73,Yfa:76,ega:88,fga:90,hga:41,iga:69,jga:70,kga:71,Caa:2,Daa:27,ANDROID:3,F0:54,G0:14,N0:91,H0:55,I0:24,J0:20,K0:18,M0:21,P0:30,S0:29,T0:28,U0:34,O0:36,L0:38,IOS:5,w7:15,G7:92,x7:40,z7:25,A7:17,B7:19,C7:64,D7:66,E7:26,I7:22,J7:33,K7:68,L7:35,F7:53,H7:37,y7:39,vea:7,wea:57,xea:43,zea:59,yea:93,R0:74,Aea:75,Bea:85,Cea:65,Eea:80,Fea:8,tea:10,Iea:58,Hea:63,Dea:72,Q0:23,qga:11,rga:13,O1:12,uea:16,Tfa:56,
cga:31,eaa:77,C6:84,Xfa:87,D6:89};g.w(mja,g.F);var lja=[15,26,28];g.w(vq,g.F);vq.prototype.setToken=function(a){return g.D(this,2,a)};g.w(wq,g.F);wq.prototype.setSafetyMode=function(a){return g.D(this,5,a)};
var nja=[12];g.w(xq,g.F);var oja=[12];g.w(qja,g.F);g.w(yq,g.F);yq.prototype.getKey=function(){return je(this,1,"")};
yq.prototype.getValue=function(){return je(this,2,"")};
yq.prototype.setValue=function(a){return g.D(this,2,a)};
var pja=[4,5];g.w(rja,g.F);g.w(sja,g.F);var Ypa=[2,3];g.w(zq,g.F);zq.prototype.getMessage=function(){return je(this,1,"")};g.w(Aq,g.F);g.w(tja,g.F);g.w(vja,g.F);var uja=[10,17];g.w(wja,g.F);g.w(Bq,g.F);Bq.prototype.gk=function(a){g.D(this,1,a)};g.w(xja,g.F);g.w(Cq,g.F);Cq.prototype.hj=function(a){g.D(this,2,a)};
g.w(zja,g.F);g.w(Dq,g.F);Dq.prototype.hj=function(a){g.D(this,1,a)};
var Bja=[3];g.w(Eq,g.F);Eq.prototype.hj=function(a){g.D(this,1,a)};
Eq.prototype.Ho=function(){return null!=g.ge(this,2)};g.w(Fq,g.F);Fq.prototype.hj=function(a){g.D(this,1,a)};
Fq.prototype.Ho=function(){return null!=g.ge(this,2)};g.w(Gq,g.F);Gq.prototype.hj=function(a){g.D(this,1,a)};
Gq.prototype.Ho=function(){return null!=g.ge(this,2)};g.w(Dja,g.F);g.w(Iq,g.F);Iq.prototype.Zb=function(){return Ce(this,1)};
Iq.prototype.getVisibilityState=function(){return je(this,5,0)};
var Eja=[16];g.w(Jq,g.F);g.w(Kq,g.F);Kq.prototype.getPlayerType=function(){return je(this,7,0)};
Kq.prototype.Hg=function(){return je(this,19,"")};
Kq.prototype.setVideoId=function(a){return g.D(this,19,a)};
g.w(Lq,g.F);Lq.prototype.getId=function(){return je(this,2,"")};
var Fja=[83,68];g.w(Gja,g.F);g.w(Hja,g.F);g.w(Nq,g.F);g.w(Oq,g.F);Oq.prototype.getContext=function(){return ve(this,Nq,33)};
var tv=[23,24,11,6,7,5,2,3,20,21,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,157,158,159,163,164,168,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,198,199,200,201,203,204,205,206,258,259,260,261,209,226,227,232,233,234,240,247,248,251,254,255,270,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,337,338,340,344,348,350,351,352,353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,
378,380,381,388,389,403,412,413,414,415,416,417,418,419,420,423,424,425,426,427,117];var bqa={l7:0,W6:1,c7:2,d7:4,i7:8,e7:16,f7:32,k7:64,j7:128,Y6:256,a7:512,h7:1024,Z6:2048,b7:4096,X6:8192,g7:16384};g.w(Ija,g.F);g.w(Pq,g.F);Pq.prototype.Hg=function(){return g.ge(this,1===re(this,Ru)?1:-1)};
Pq.prototype.setVideoId=function(a){return g.te(this,1,Ru,a)};
Pq.prototype.getPlaylistId=function(){return g.ge(this,2===re(this,Ru)?2:-1)};
var Ru=[1,2];g.w(Qq,g.F);Qq.prototype.getContext=function(){return ve(this,xq,1)};
var Jja=[3];g.w(Rq,g.F);g.w(Sq,g.F);var JSa;JSa=new gf(406606992,{eha:0},Sq,function(a,b){if(null!=b){var c={gl:hf(g.ge(b,1)),hl:hf(g.ge(b,2)),cha:hf(g.ge(b,3)),locale:hf(g.ge(b,4)),wha:hf(g.ge(b,5))};a&&(c.MQ=b);return c}});g.w(Tq,Sq);oia(Tq);var L_=g.C.window,KSa,LSa,Vq=(null==L_?void 0:null==(KSa=L_.yt)?void 0:KSa.config_)||(null==L_?void 0:null==(LSa=L_.ytcfg)?void 0:LSa.data_)||{},MSa,NSa=(null==L_?void 0:null==(MSa=L_.ytcfg)?void 0:MSa.obfuscatedData_)||[];g.w(Uq,Rq);Uq.prototype.J=function(a){var b=Yq();406606992!==a.j||b&&b.jspb_i18n_extension||(a=new gf(a.j,a.fieldName,Tq,a.D));return Rq.prototype.J.call(this,a)};
oia(Uq);var OSa=new Uq(NSa),PSa=Yq();if(!PSa||!PSa.jspb_i18n_extension){var QSa=new Tq;JSa.C(OSa,QSa)}g.Ja("yt.config_",Vq,void 0);g.Ja("yt.configJspb_",NSa,void 0);var cr=[];var Sja=/^[\w.]*$/,Qja={q:!0,search_query:!0},Pja=String(gr);var Tja=new function(){var a=window.document;this.j=window;this.u=a};
g.Ja("yt.ads_.signals_.getAdSignalsString",function(a){return hr(qr(a))},void 0);g.Va();var Wja="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var Yja={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","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"},$ja="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.u("client_dev_mss_url client_dev_regex_map client_dev_root_url client_rollout_override expflag jsfeat jsmode mods".split(" "))),
eka=!1,Wya=Br;g.w(Er,ab);Hr.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.Vc),ni(a)?a:Jr(a)):2===this.j&&b?(a=b.call(c,this.Vc),ni(a)?a:Ir(a)):this};
Hr.prototype.getValue=function(){return this.Vc};
Hr.prototype.$goog_Thenable=!0;var Kr=!1;Or.prototype.eg=function(a,b){return Pr(a,1,b)};g.w(Rr,Or);Rr.prototype.Fi=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ka("yt.scheduler.instance.cancelJob");b?b(a):g.zr(a)}};
Rr.prototype.start=function(){var a=g.Ka("yt.scheduler.instance.start");a&&a()};
Rr.prototype.pause=function(){var a=g.Ka("yt.scheduler.instance.pause");a&&a()};g.mp=g.Sr();var cs=EC||FE;g.w(js,ab);js.prototype.name="BiscottiError";g.w(is,ab);is.prototype.name="BiscottiMissingError";var Jma={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ks=null;var ms=g.Ka("ytglobal.prefsUserPrefsPrefs_")||{};g.Ja("ytglobal.prefsUserPrefsPrefs_",ms,void 0);g.h=g.ns.prototype;g.h.get=function(a,b){qs(a);ps(a);a=void 0!==ms[a]?ms[a].toString():null;return null!=a?a:b?b:""};
g.h.set=function(a,b){qs(a);ps(a);if(null==b)throw Error("ExpectedNotNull");ms[a]=b.toString()};
g.h.remove=function(a){qs(a);ps(a);delete ms[a]};
g.h.save=function(){var a=!0;g.Q("web_secure_pref_cookie_killswitch")&&(a=!1);g.Mr(this.j,this.dump(),63072E3,this.u,a)};
g.h.clear=function(){g.cg(ms)};
g.h.dump=function(){var a=[],b;for(b in ms)a.push(b+"="+encodeURIComponent(String(ms[b])));return a.join("&")};
Ma(g.ns);var Uma={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"},ena={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},fna={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},Wma={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};us.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Oi(b))}catch(f){return}else e=escape(b);g.Mr(a,e,c,this.u)};
us.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.Nr(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
us.prototype.remove=function(a){this.j&&this.j.remove(a);g.Bma(a,"/",this.u)};var M_;M_=window;g.R=M_.ytcsi&&M_.ytcsi.now?M_.ytcsi.now:M_.performance&&M_.performance.timing&&M_.performance.now&&M_.performance.timing.navigationStart?function(){return M_.performance.timing.navigationStart+M_.performance.now()}:function(){return(new Date).getTime()};var vs=function(){var a;return function(){a||(a=new us("ytidb"));return a}}();var Bs=[],xs,Cs=!1;g.w(g.Fs,Error);var N_={},ina=(N_.AUTH_INVALID="No user identifier specified.",N_.EXPLICIT_ABORT="Transaction was explicitly aborted.",N_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",N_.MISSING_INDEX="Index not created.",N_.MISSING_OBJECT_STORES="Object stores not created.",N_.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",N_.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",N_.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",N_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",N_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",N_.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",N_.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",N_),O_={},jna=(O_.AUTH_INVALID="ERROR",O_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",O_.EXPLICIT_ABORT="IGNORED",
O_.IDB_NOT_SUPPORTED="ERROR",O_.MISSING_INDEX="WARNING",O_.MISSING_OBJECT_STORES="ERROR",O_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",O_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",O_.QUOTA_EXCEEDED="WARNING",O_.QUOTA_MAYBE_EXCEEDED="WARNING",O_.UNKNOWN_ABORT="WARNING",O_.INCOMPATIBLE_DB_VERSION="WARNING",O_),P_={},kna=(P_.AUTH_INVALID=!1,P_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,P_.EXPLICIT_ABORT=!1,P_.IDB_NOT_SUPPORTED=!1,P_.MISSING_INDEX=!1,P_.MISSING_OBJECT_STORES=!1,P_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,P_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,P_.QUOTA_EXCEEDED=!1,P_.QUOTA_MAYBE_EXCEEDED=!0,P_.UNKNOWN_ABORT=!0,P_.INCOMPATIBLE_DB_VERSION=!1,P_);g.w(g.Ks,g.Fs);g.w(Ls,g.Ks);g.w(Ms,Error);var lna=["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"];g.Rs.all=function(a){return new g.Rs(new Qs(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Lr:0};f.Lr<a.length;f={Lr:f.Lr},++f.Lr)g.Rs.resolve(a[f.Lr]).then(function(k){return function(l){d[k.Lr]=l;e--;0===e&&b(d)}}(f)).catch(function(k){c(k)})}))};
g.Rs.resolve=function(a){return new g.Rs(new Qs(function(b,c){a instanceof g.Rs?a.then(b,c):b(a)}))};
g.Rs.reject=function(a){return new g.Rs(new Qs(function(b,c){c(a)}))};
g.Rs.prototype.then=function(a,b){var c=this,d=null!=a?a:nna,e=null!=b?b:mna;return new g.Rs(new Qs(function(f,k){"PENDING"===c.state.status?(c.j.push(function(){ona(c,c,d,f,k)}),c.onRejected.push(function(){pna(c,c,e,f,k)})):"FULFILLED"===c.state.status?ona(c,c,d,f,k):"REJECTED"===c.state.status&&pna(c,c,e,f,k)}))};
g.Rs.prototype.catch=function(a){return this.then(void 0,a)};g.h=sna.prototype;g.h.advance=function(a){this.cursor.advance(a);return Vs(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return Vs(this.request)};
g.h.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Vs(this.request)};
g.h.getKey=function(){return this.cursor.key};
g.h.uA=function(){return this.cursor.primaryKey};g.h=tna.prototype;g.h.add=function(a,b,c){return g.Zs(this,[a],{mode:"readwrite",Kc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.h.clear=function(a){return g.Zs(this,[a],{mode:"readwrite",Kc:!0},function(b){return b.objectStore(a).clear()})};
g.h.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.h.count=function(a,b){return g.Zs(this,[a],{mode:"readonly",Kc:!0},function(c){return c.objectStore(a).count(b)})};
g.h.delete=function(a,b){return g.Zs(this,[a],{mode:"readwrite",Kc:!0},function(c){return c.objectStore(a).delete(b)})};
g.h.get=function(a,b){return g.Zs(this,[a],{mode:"readonly",Kc:!0},function(c){return c.objectStore(a).get(b)})};
g.h.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.h.getName=function(){return this.j.name};
g.h=Ws.prototype;g.h.add=function(a,b){return g.Ts(this.j.add(a,b))};
g.h.autoIncrement=function(){return this.j.autoIncrement};
g.h.clear=function(){return g.Ts(this.j.clear()).then(function(){})};
g.h.count=function(a){return g.Ts(this.j.count(a))};
g.h.delete=function(a){return a instanceof IDBKeyRange?yna(this,a):g.Ts(this.j.delete(a))};
g.h.get=function(a){return g.Ts(this.j.get(a))};
g.h.index=function(a){try{return new Ena(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Ms(a,this.j.name);throw b;}};
g.h.getName=function(){return this.j.name};
g.h.keyPath=function(){return this.j.keyPath};
at.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.Ks("EXPLICIT_ABORT");};
at.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new Ws(a),this.B.set(a,b));return b};
g.h=Ena.prototype;g.h.count=function(a){return g.Ts(this.j.count(a))};
g.h.delete=function(a){return g.et(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.h.get=function(a){return g.Ts(this.j.get(a))};
g.h.getKey=function(a){return g.Ts(this.j.getKey(a))};
g.h.keyPath=function(){return this.j.keyPath};
g.h.unique=function(){return this.j.unique};
g.h=Fna.prototype;g.h.advance=function(a){this.cursor.advance(a);return dt(this.request)};
g.h.continue=function(a){this.cursor.continue(a);return dt(this.request)};
g.h.delete=function(){return g.Ts(this.cursor.delete()).then(function(){})};
g.h.getKey=function(){return this.cursor.key};
g.h.uA=function(){return this.cursor.primaryKey};
g.h.getValue=function(){return this.cursor.value};
g.h.update=function(a){return g.Ts(this.cursor.update(a))};gt.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Hna(a,b,c)};
gt.prototype.delete=function(a){a=void 0===a?{}:a;return ft(this.name,a)};
gt.prototype.open=function(){function a(){var f,k,l,m,n,p,q,t,v,x;return g.B(function(y){switch(y.j){case 1:return k=null!=(f=Error().stack)?f:"",g.va(y,2),g.A(y,c.B(c.name,c.options.version,e),4);case 4:l=y.u;for(var z=c.options,E=[],I=g.r(Object.keys(z.Nq)),K=I.next();!K.done;K=I.next()){K=K.value;var N=z.Nq[K],aa=void 0===N.AZ?Number.MAX_VALUE:N.AZ;!(l.j.version>=N.Gn)||l.j.version>=aa||l.j.objectStoreNames.contains(K)||E.push(K)}m=E;if(0===m.length){y.Za(5);break}n=Object.keys(c.options.Nq);p=
l.objectStoreNames();if(c.J<g.$q("ytidb_reopen_db_retries",0))return c.J++,l.close(),Ds(new g.Ks("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.D<g.$q("ytidb_remake_db_retries",1))){y.Za(6);break}c.D++;if(!g.Q("ytidb_remake_db_enable_backoff_delay")){y.Za(7);break}return g.A(y,Ina(c.u),8);case 8:c.u*=2;case 7:return g.A(y,c.delete(),9);case 9:return Ds(new g.Ks("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,
foundObjectStores:p})),y.return(a());case 6:throw new Ls(p,n);case 5:return y.return(l);case 2:q=g.xa(y);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){y.Za(10);break}return g.A(y,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:t=y.u;v=t.j.version;if(void 0!==c.options.version&&
v>c.options.version+1)throw t.close(),c.C=!1,Jna(c,v);return y.return(t);case 10:throw b(),q instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+k.substring(k.indexOf("\n")+1)),Os(q,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Jna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,e_:b,upgrade:this.options.upgrade};return this.j=d=a()};var jt=new gt("YtIdbMeta",{Nq:{databases:{Gn:1}},upgrade:function(a,b){b(1)&&g.Xs(a,"databases",{keyPath:"actualName"})}});var nt,mt=new function(){}(new function(){});new g.Nj;g.h=qt.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.Be){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.tf.set(d,this.hd).then(function(e){d.id=e;c.jf.Ne()&&rt(c,d)}).catch(function(e){rt(c,d);
tt(c,e)})}else this.Zm(a,b)};
g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.hd&&this.Be){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.jf.Ne()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(k,l){return g.B(function(m){if(1==m.j)return g.A(m,d.tf.set(e,d.hd).catch(function(n){tt(d,n)}),2);
f(k,l);g.ua(m)})}}this.Zm(a,b,e.skipRetry)}else this.tf.set(e,this.hd).catch(function(k){d.Zm(a,b,e.skipRetry);
tt(d,k)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.Zm(a,b,c)};
g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.Be){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(k,l){void 0!==d.id?c.tf.Ss(d.id,c.hd):e=!0;c.jf.Pm&&c.ob&&c.ob("vss_network_hint")&&c.jf.Pm(!0);f(k,l)};
this.Zm(d.url,d.options);this.tf.set(d,this.hd).then(function(k){d.id=k;e&&c.tf.Ss(d.id,c.hd)}).catch(function(k){tt(c,k)})}else this.Zm(a,b)};
g.h.Dy=function(){var a=this;if(!this.hd)throw g.Ps("throttleSend");this.j||(this.j=this.Qj.eg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.tf.qM("NEW",a.hd),2);if(3!=c.j)return b=c.u,b?g.A(c,rt(a,b),3):(a.nL(),c.return());a.j&&(a.j=0,a.Dy());g.ua(c)})},this.dQ))};
g.h.nL=function(){this.Qj.Fi(this.j);this.j=0};vt.prototype.toString=function(){return this.topic};var RSa=g.Ka("ytPubsub2Pubsub2Instance")||new g.Sp;g.Sp.prototype.subscribe=g.Sp.prototype.subscribe;g.Sp.prototype.unsubscribeByKey=g.Sp.prototype.Nf;g.Sp.prototype.publish=g.Sp.prototype.ea;g.Sp.prototype.clear=g.Sp.prototype.clear;g.Ja("ytPubsub2Pubsub2Instance",RSa,void 0);var zt=g.Ka("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ja("ytPubsub2Pubsub2SubscribedKeys",zt,void 0);var At=g.Ka("ytPubsub2Pubsub2TopicToKeys")||{};g.Ja("ytPubsub2Pubsub2TopicToKeys",At,void 0);
var boa=g.Ka("ytPubsub2Pubsub2IsAsync")||{};g.Ja("ytPubsub2Pubsub2IsAsync",boa,void 0);g.Ja("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(Dt,gt);Dt.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.py?Sna:Rna)(a,b,Object.assign({},c))};
Dt.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.py?Wna:Tna)(this.name,a)};var Ft;var SSa={},koa=g.Et("ServiceWorkerLogsDatabase",{Nq:(SSa.SWHealthLog={Gn:1},SSa),py:!0,upgrade:function(a,b){b(1)&&g.bt(g.Xs(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Lt={},qoa=0;Mt.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Mt.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
Mt.prototype.removeParams=function(a){return a.split("?")[0]};
Mt.prototype.removeParams=Mt.prototype.removeParams;Mt.prototype.isEndpointCFR=Mt.prototype.isEndpointCFR;Mt.prototype.requestComplete=Mt.prototype.requestComplete;Mt.getInstance=Nt;var Ot;var xoa=g.$q("network_polling_interval",3E4);g.w(Qt,g.Dg);g.h=Qt.prototype;g.h.Ne=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.Ne()}return this.u};
g.h.Pm=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)};
g.h.TV=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.N||woa(this))};
g.h.uF=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.h.jU=function(){this.J=!0};
g.h.Pa=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Pa(a,b):g.Dg.prototype.Pa.call(this,a,b)};
g.h.cn=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=kp(this.j,a);c.then(function(d){g.Q("use_cfr_monitor")&&Nt().requestComplete("generate_204",d)});
return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,g.va(m,2,3),e&&(b.K=g.mp.eg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD",
signal:k}),5);case 5:l=!0;case 3:g.ya(m);g.Q("use_cfr_monitor")&&Nt().requestComplete("generate_204",l);b.D=void 0;b.K&&g.mp.Fi(b.K);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.Aa(m,0);break;case 2:g.xa(m),l=!1,m.Za(3)}})})};
Qt.prototype.sendNetworkCheckRequest=Qt.prototype.cn;Qt.prototype.listen=Qt.prototype.Pa;Qt.prototype.enableErrorFlushing=Qt.prototype.jU;Qt.prototype.getWindowStatus=Qt.prototype.uF;Qt.prototype.monitorNetworkStatusChange=Qt.prototype.TV;Qt.prototype.networkStatusHint=Qt.prototype.Pm;Qt.prototype.isNetworkAvailable=Qt.prototype.Ne;Qt.getInstance=voa;g.w(g.Rt,g.Dg);g.Rt.prototype.Ne=function(){var a=g.Ka("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0};
g.Rt.prototype.Pm=function(a){var b=g.Ka("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)};
g.Rt.prototype.cn=function(a){var b=this,c;return g.B(function(d){c=g.Ka("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Nt().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Pm((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Ne())})):c?d.return(c(a)):d.return(!0)})};var Ut;g.w(St,qt);St.prototype.writeThenSend=function(a,b){b||(b={});g.Hs()||(this.Be=!1);qt.prototype.writeThenSend.call(this,a,b)};
St.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Hs()||(this.Be=!1);qt.prototype.sendThenWrite.call(this,a,b,c)};
St.prototype.sendAndWrite=function(a,b){b||(b={});g.Hs()||(this.Be=!1);qt.prototype.sendAndWrite.call(this,a,b)};
St.prototype.awaitInitialization=function(){return this.u.promise};var bu=0,du=0,eu,cu=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:du};g.Ja("ytNetworklessLoggingInitializationOptions",cu,void 0);g.fu.prototype.isReady=function(){!this.config_&&Yma()&&(this.config_=g.rs());return!!this.config_};var kpa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},jpa={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 TSa=0,hu=g.Gf?"webkit":Em?"moz":g.Nc?"ms":g.vC?"o":"",USa=g.Ka("ytDomDomGetNextId")||function(){return++TSa};
g.Ja("ytDomDomGetNextId",USa,void 0);var Ioa={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};ju.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
ju.prototype.cN=function(){return this.event?!1===this.event.returnValue:!1};
ju.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
ju.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ku=g.C.ytEventsEventsListeners||{};g.Ja("ytEventsEventsListeners",ku,void 0);var Loa=g.C.ytEventsEventsCounter||{count:0};g.Ja("ytEventsEventsCounter",Loa,void 0);var tpa=Jg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Moa=Jg(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var fC=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.Wa(wu,g.G);wu.prototype.X=function(a){void 0===a.j&&Joa(a);var b=a.j;void 0===a.u&&Joa(a);this.j=new g.Ah(b,a.u)};
wu.prototype.zo=function(){return this.j||new g.Ah};
wu.prototype.Z=function(){if(this.j){var a=fC();if(0!=this.C){var b=this.J,c=this.j,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.J=this.j;this.B=(this.B+1)%4}};
wu.prototype.ra=function(){g.Ar(this.N);g.mu(this.ma)};var zu={};var VSa,Cu,Eu;VSa=g.C.ytPubsubPubsubInstance||new g.Sp;Cu=g.C.ytPubsubPubsubSubscribedKeys||{};Eu=g.C.ytPubsubPubsubTopicToKeys||{};g.Du=g.C.ytPubsubPubsubIsSynchronous||{};g.Sp.prototype.subscribe=g.Sp.prototype.subscribe;g.Sp.prototype.unsubscribeByKey=g.Sp.prototype.Nf;g.Sp.prototype.publish=g.Sp.prototype.ea;g.Sp.prototype.clear=g.Sp.prototype.clear;g.Ja("ytPubsubPubsubInstance",VSa,void 0);g.Ja("ytPubsubPubsubTopicToKeys",Eu,void 0);g.Ja("ytPubsubPubsubIsSynchronous",g.Du,void 0);
g.Ja("ytPubsubPubsubSubscribedKeys",Cu,void 0);var $oa=g.$q("initial_gel_batch_timeout",2E3),ipa=Math.pow(2,16)-1,Lu=void 0,Nu=new Toa,Mu=new Toa,Uu=!0,Ju=g.C.ytLoggingTransportGELQueue_||new Map;g.Ja("ytLoggingTransportGELQueue_",Ju,void 0);var Ku=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ja("ytLoggingTransportGELProtoQueue_",Ku,void 0);var Tu=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ja("ytLoggingTransportTokensToCttTargetIds_",Tu,void 0);var Su=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ja("ytLoggingTransportTokensToJspbCttTargetIds_",Su,void 0);var Vu=g.C.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",Vu,void 0);var mpa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var rpa={};g.w(bv,g.G);bv.prototype.T=function(a,b,c,d,e){c=er((0,g.Ta)(c,d||this.Wa));c={target:a,name:b,callback:c};var f;e&&tpa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
bv.prototype.wc=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
bv.prototype.ra=function(){g.dv(this);g.G.prototype.ra.call(this)};g.Wa(g.ev,g.G);g.ev.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Cd.subscribe(a,b,c)};
g.ev.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Cd.unsubscribe(a,b,c)};
g.ev.prototype.Nf=function(a){return this.isDisposed()?!1:this.Cd.Nf(a)};
g.ev.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Cd.ea.apply(this.Cd,arguments)};g.w(g.iv,g.ev);g.h=g.iv.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),kv(this),hv(this))};
g.h.QN=function(a){kv(this);jv(this,lv("move"),this.ON);jv(this,lv("out"),this.PN);jv(this,"touchstart",this.tI);this.j&&jv(this,lv("down"),this.vG);var b=g.nu(a);a=qu(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
g.h.ON=function(a){var b=g.nu(a);a=qu(a);if(this.D){var c=this.D;this.D=null;if(pu(c)==b&&Bh(qu(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.h.PN=function(a){var b=qu(a),c=pu(a);try{if(c&&g.bi(this.J,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}kv(this);hv(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
g.h.VV=function(a){this.QN(a);this.vG(a)};
g.h.vG=function(a){if("number"!==typeof a.button||0==a.button){kv(this);this.C.T(document,lv("move"),this.UV);this.C.T(document,lv("up"),this.ZV);var b=g.nu(a);if(g.Gf)jv(this,"dragstart",this.gU);else if(g.ru(a),(g.cD||Em)&&b)a:{for(var c=b;c;){if(di(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=qu(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
g.h.gU=function(a){g.ru(a)};
g.h.UV=function(a){var b=g.nu(a);b==document&&(b=null);a=qu(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
g.h.ZV=function(a){kv(this);this.B=!1;var b=ou(a),c=g.nu(a);a=qu(a);b&&g.bi(this.J,b)?(jv(this,lv("move"),this.ON),jv(this,lv("out"),this.PN),jv(this,lv("down"),this.vG),jv(this,"touchstart",this.tI),this.ea("dragend",a.x,a.y,c)):(hv(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
g.h.tI=function(a){var b=a.changedTouches[0];b&&(kv(this),jv(this,"touchmove",this.n_),jv(this,"touchend",this.jQ),jv(this,"touchcancel",this.jQ),this.K=b.identifier,a=g.nu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
g.h.n_=function(a){var b=upa(this,a);b&&(this.j&&g.ru(a),a=g.nu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.j&&this.ea("dragmove",b.pageX,b.pageY,a))};
g.h.jQ=function(a){var b=upa(this,a);if(b){kv(this);hv(this);this.u=!1;var c=g.nu(a);this.j&&(this.N||g.ru(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
g.h.ra=function(){this.j&&(g.Gf&&this.J.removeAttribute("draggable"),this.J.style.touchAction="");kv(this);g.ev.prototype.ra.call(this)};mv.prototype.clone=function(){var a=new mv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Na(c)?g.gg(c):c}return a};var YBa=["att/get"],BCa=["embedded_player"],WSa=["share/get_web_player_share_panel"],XSa=["feedback"],YSa=["notification/modify_channel_preference"],lMa=["player"],ZSa=["browse/edit_playlist"],$Sa=["subscription/subscribe"],aTa=["subscription/unsubscribe"],oMa=["next","unplugged/watch_next"];var nv=Date.now().toString();var xpa=g.C.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",xpa,void 0);var Q_=g.C.ytLoggingDocDocumentNonce_;Q_||(Q_=g.pv(16),g.Ja("ytLoggingDocDocumentNonce_",Q_,void 0));var Jpa=Q_;var Nya={aR:0,J1:1,d2:2,B$:3,p5:4,Cfa:5,Aaa:6,Xca:7,jca:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};var Epa=1;Cv.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);return a};
Cv.prototype.getAsJspb=function(){var a=new Bq;void 0!==this.j.trackingParams?a.gk(this.j.trackingParams):(void 0!==this.j.veType&&g.D(a,2,this.j.veType),void 0!==this.j.veCounter&&g.D(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&g.D(a,3,this.j.elementIndex));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();xe(a,7,b)}void 0!==this.j.youtubeData&&xe(a,8,this.j.jspbYoutubeData);return a};
Cv.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Cv.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};g.Ja("yt_logging_screen.getRootVeType",Gpa,void 0);g.Ja("yt_logging_screen.getCurrentCsn",g.Hv,void 0);g.Ja("yt_logging_screen.getCttAuthInfo",Iv,void 0);g.Ja("yt_logging_screen.setCurrentScreen",Kpa,void 0);var Tpa=[{sG:function(a){return"Cannot read property '"+a.key+"'"},
CB:{Error:[{Ng:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ng:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ng:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ng:/\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"]},{Ng:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ng:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ng:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{sG:function(a){return"Cannot call '"+a.key+"'"},
CB:{TypeError:[{Ng:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ng:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ng:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ng:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ng:/\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"]},
{Ng:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{sG:function(a){return a.key+" is not defined"},
CB:{ReferenceError:[{Ng:/(.*) is not defined/,groups:["key"]},{Ng:/Can't find variable: (.*)/,groups:["key"]}]}}];var Opa={Om:[],Kn:[{callback:Lpa,weight:500}]};var Jv;var Pv=new g.Sp;var Upa=new Set,Rpa=0,Wpa=0,Vpa=0,Spa=[],Zpa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(Qv,ut);var cqa=new vt("screen-created",Qv),Uv=[],aqa=gqa,Vv=0;var bTa={I1:3611,S_:27686,U_:85013,V_:23462,X_:42016,Y_:62407,Z_:26926,W_:43781,d0:51236,e0:79148,f0:50160,g0:77504,C0:87907,D0:18630,V0:54445,W0:80935,e1:105675,f1:37521,g1:147285,h1:47786,l1:98349,m1:123695,s1:6827,t1:29434,G1:7282,H1:124448,R1:32276,Q1:76278,S1:147868,T1:147869,U1:93911,W1:106531,X1:27259,Y1:27262,Z1:27263,e2:21759,f2:27107,g2:62936,h2:49568,l2:38408,m2:80637,n2:68727,o2:68728,q2:80353,s2:80356,t2:74610,u2:45707,v2:83962,w2:83970,z2:46713,A2:89711,B2:74612,C2:93265,D2:74611,E2:131380,
G2:128979,H2:139311,I2:128978,F2:131391,J2:105350,L2:139312,M2:134800,K2:131392,O2:113533,P2:93252,Q2:99357,S2:94521,T2:114252,U2:113532,V2:94522,R2:94583,W2:88E3,X2:139580,Y2:93253,Z2:93254,b3:94387,d3:94388,e3:93255,f3:97424,N2:72502,g3:110111,h3:76019,l3:117092,m3:117093,j3:89431,n3:110466,o3:77240,q3:60508,r3:137401,s3:137402,t3:137046,u3:73393,v3:113534,w3:92098,x3:131381,y3:84517,z3:83759,A3:80357,B3:86113,C3:72598,D3:72733,E3:107349,F3:124275,G3:118203,H3:133275,I3:133274,J3:133272,K3:133273,
L3:133276,M3:144507,N3:143247,O3:143248,P3:143249,Q3:143250,R3:143251,S3:144401,U3:117431,T3:133797,V3:128572,W3:133405,X3:117429,Y3:117430,Z3:117432,a4:120080,b4:117259,d4:121692,e4:145656,f4:145655,g4:145653,h4:145654,i4:145657,j4:132972,l4:133051,m4:133658,n4:132971,o4:97615,q4:143359,p4:143356,s4:143361,r4:143358,u4:143360,t4:143357,v4:142303,w4:143353,x4:143354,y4:144479,z4:143355,A4:31402,C4:133624,D4:146477,E4:133623,F4:133622,B4:133621,G4:84774,H4:95117,I4:98930,J4:98931,K4:98932,L4:43347,
M4:129889,N4:45474,O4:100352,P4:84758,Q4:98443,R4:117985,S4:74613,T4:74614,U4:64502,V4:136032,W4:74615,X4:74616,Y4:122224,Z4:74617,a5:77820,b5:74618,c5:93278,d5:93274,e5:93275,f5:93276,g5:22110,h5:29433,k5:133798,l5:132295,m5:120541,q5:82047,r5:113550,s5:75836,t5:75837,x5:42352,B5:84512,C5:76065,E5:75989,M5:16623,N5:32594,O5:27240,Q5:32633,a6:74858,e6:3945,d6:16989,f6:45520,g6:25488,h6:25492,i6:25494,k6:55760,l6:14057,m6:18451,n6:57204,o6:57203,p6:17897,q6:57205,r6:18198,s6:17898,t6:17909,u6:43980,
v6:46220,F6:11721,H6:49954,M6:96369,N6:3854,U6:56251,V6:25624,r7:16906,s7:99999,u7:68172,v7:27068,N7:47973,O7:72773,P7:26970,Q7:26971,R7:96805,S7:17752,T7:73233,U7:109512,V7:22256,W7:14115,X7:22696,Y7:89278,Z7:89277,a8:109513,b8:43278,c8:43459,d8:43464,e8:89279,f8:43717,g8:55764,h8:22255,i8:147912,j8:89281,k8:40963,l8:43277,m8:43442,o8:91824,q8:120137,s8:96367,t8:36850,u8:72694,v8:37414,w8:36851,y8:124863,x8:121343,z8:73491,A8:54473,B8:43375,C8:46674,P8:143815,Q8:139095,S8:144402,T8:32473,X8:72901,
Y8:72906,Z8:50947,a9:50612,b9:50613,c9:50942,d9:84938,e9:84943,f9:84939,g9:84941,h9:84944,i9:84940,j9:84942,k9:35585,l9:51926,m9:79983,n9:63238,o9:18921,p9:63241,q9:57893,r9:41182,s9:135732,t9:33424,u9:22207,v9:42993,w9:36229,x9:22206,y9:22205,z9:18993,A9:19001,B9:18990,C9:18991,D9:18997,E9:18725,F9:19003,G9:36874,H9:44763,I9:33427,J9:67793,K9:22182,L9:37091,M9:34650,N9:50617,O9:47261,P9:22287,Q9:25144,R9:97917,T9:62397,U9:125598,V9:137935,W9:36961,X9:108035,Y9:27426,Z9:27857,a$:27846,b$:27854,c$:69692,
d$:61411,e$:39299,f$:38696,g$:62520,h$:36382,i$:108701,j$:50663,k$:36387,l$:14908,m$:37533,n$:105443,o$:61635,p$:62274,q$:133818,r$:65702,s$:65703,t$:65701,u$:76256,w$:37671,x$:49953,E$:36216,F$:28237,G$:39553,H$:29222,I$:26107,J$:38050,K$:26108,M$:120745,L$:26109,N$:26110,O$:66881,P$:28236,Q$:14586,U$:57929,W$:74723,X$:44098,Y$:44099,baa:23528,caa:61699,Z$:134104,aaa:134103,daa:59149,faa:101951,haa:97346,iaa:118051,jaa:95102,maa:64882,naa:119505,oaa:63595,paa:63349,qaa:95101,raa:75240,saa:27039,
taa:68823,uaa:21537,vaa:83464,waa:75707,xaa:83113,yaa:101952,zaa:101953,Baa:79610,Haa:125755,Iaa:24402,Jaa:24400,Kaa:32925,Laa:57173,Naa:122502,Oaa:145268,Paa:138480,Qaa:64423,Raa:64424,Saa:33986,Taa:100828,Uaa:129089,Vaa:21409,nba:135155,oba:135156,pba:135157,qba:135158,rba:135159,tba:135160,uba:135161,vba:135162,wba:135163,xba:135164,yba:135165,zba:135166,kba:11070,lba:11074,mba:17880,Aba:14001,Cba:30709,Dba:30707,Eba:30711,Fba:30710,Gba:30708,Bba:26984,Hba:146143,Iba:63648,Jba:63649,Mba:51879,
Rba:111059,Tba:5754,Uba:20445,Zba:130975,Yba:130976,aca:110386,cca:113746,dca:66557,kca:17310,lca:28631,nca:21589,oca:68012,pca:60480,qca:138664,rca:141121,sca:31571,tca:141978,xca:76980,Bca:41577,Cca:45469,Hca:38669,Ica:13768,Jca:13777,Mca:141842,Nca:62985,Oca:4724,Pca:59369,Qca:43927,Rca:43928,Uca:12924,Wca:100355,Zca:56219,bda:27669,cda:10337,Yca:47896,dda:122629,fda:139723,eda:139722,gda:121258,hda:107598,ida:127991,jda:96639,kda:107536,lda:130169,mda:96661,nda:145188,oda:96658,pda:116646,qda:121122,
rda:96660,sda:127738,tda:127083,uda:147842,vda:104443,wda:96659,xda:147595,yda:106442,Ada:134840,Dda:63667,Eda:63668,Fda:63669,Gda:130686,Kda:147036,Mda:78314,Pda:55761,Qda:127098,Rda:134841,Vda:96368,Wda:67374,Xda:48992,aea:146176,bea:49956,fea:31961,gea:26388,mea:23811,nea:5E4,oea:126250,qea:96370,rea:47355,sea:47356,Gea:37935,Jea:45521,Kea:21760,Mea:83769,Nea:49977,Oea:49974,Pea:93497,Qea:93498,Rea:34325,Tea:140759,Uea:115803,Vea:123707,Wea:100081,Xea:35309,Yea:68314,Zea:25602,afa:100339,bfa:143516,
dfa:59018,efa:18248,ffa:50625,gfa:9729,ifa:37168,jfa:37169,kfa:21667,lfa:16749,mfa:18635,nfa:39305,ofa:18046,qfa:53969,rfa:8213,tfa:93926,wfa:102852,xfa:110099,yfa:22678,zfa:69076,Afa:137575,Dfa:139224,Efa:100856,Gfa:17736,Hfa:3832,Ifa:147111,Lfa:55759,Mfa:64031,lga:93044,oga:93045,tga:34388,vga:17657,wga:17655,xga:39579,yga:39578,zga:77448,Aga:8196,Bga:11357,Cga:69877,Dga:8197,Fga:82039};Zv.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
Ma(Zv);var aw;g.$v=Jg(function(){var a=new Zp;return a.isAvailable()?new g.Wp(a):null});
aw=Jg(function(){var a=new Wia;return a.isAvailable()?new g.Wp(a):null});var jqa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,kqa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,nqa={};g.w(kw,g.G);var vqa=!1;g.w(qw,g.G);qw.prototype.EF=function(){var a=this.C().pF("SLOT_TYPE_PLAYER_BYTES",1),b=mw(this.j.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Pb instanceof pw?d.Pb.yp:void 0;e&&e===b&&(c&&T("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
qw.prototype.uh=function(a,b,c,d,e,f){var k=this,l=mw(this.j.get(),1);l.bq?this.Ha.get().jq():(lw(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return tqa(k.u.get(),d,e,a,b,f,l)}),IRa(this.WD))};
qw.prototype.Xj=function(){};var R_={},Dw=(R_.AD_MARKER="ytp-ad-progress",R_.CHAPTER_MARKER="ytp-chapter-marker",R_.TIME_MARKER="ytp-time-marker",R_);var Cqa=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/)"),yqa=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/)"),
zqa=RegExp("^https?://(music|music-green-qa|music-release-qa)\\.youtube\\.com/"),Eqa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Oqa=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)|$))"),
Mqa=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)|$))"),Hqa=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/)"),
Aqa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Kqa=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)"),Gqa=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/.*$)"),
Iqa=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)"),
Zua=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)"),
cTa=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.Ew.prototype.getId=function(){return this.id};
g.Ew.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Sqa(this.start)+", "+Sqa(this.end)+"]"};
g.Ew.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 Rqa=1;g.Ew.prototype.getId=g.Ew.prototype.getId;g.w(Iw,g.Ew);Iw.prototype.deactivate=function(){this.B=!0};
Iw.prototype.Ew=function(){return this.end-this.start};var S_;var dTa=g.Ab(),eTa=dTa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!eTa||2>eTa.length)S_=void 0;else{var T_=dTa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);S_=T_&&6==T_.length?Number(T_[5].replace("_",".")):0}var GE=S_,iM=0<=GE;iM&&0<=g.Ab().search("Safari")&&g.Ab().search("Version");g.w(Nw,ut);g.w(Wqa,ut);var cra=new vt("aft-recorded",Nw),fTa=new vt("timing-sent",Wqa);var U_=window,Pw=U_.performance||U_.mozPerformance||U_.msPerformance||U_.webkitPerformance||new Xqa;var bra=!1,zx={'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"},
nra=(0,g.Ta)(Pw.clearResourceTimings||Pw.webkitClearResourceTimings||Pw.mozClearResourceTimings||Pw.msClearResourceTimings||Pw.oClearResourceTimings||g.Ig,Pw);var V_={},hra=(V_.auto_search="LATENCY_ACTION_AUTO_SEARCH",V_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",V_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",V_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",V_.app_startup="LATENCY_ACTION_APP_STARTUP",V_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",V_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",V_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",V_.browse="LATENCY_ACTION_BROWSE",V_.cast_splash="LATENCY_ACTION_CAST_SPLASH",
V_.channels="LATENCY_ACTION_CHANNELS",V_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",V_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",V_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",V_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",V_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",V_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",V_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",
V_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",V_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",V_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",V_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",V_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",V_.chips="LATENCY_ACTION_CHIPS",V_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",V_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",
V_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",V_.embed="LATENCY_ACTION_EMBED",V_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",V_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",V_.explore="LATENCY_ACTION_EXPLORE",V_.home="LATENCY_ACTION_HOME",V_.library="LATENCY_ACTION_LIBRARY",V_.live="LATENCY_ACTION_LIVE",V_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",V_.onboarding="LATENCY_ACTION_ONBOARDING",V_.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",V_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",V_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",V_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",V_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",V_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",V_.prebuffer="LATENCY_ACTION_PREBUFFER",V_.prefetch="LATENCY_ACTION_PREFETCH",V_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",V_.profile_switcher="LATENCY_ACTION_LOGIN",
V_.reel_watch="LATENCY_ACTION_REEL_WATCH",V_.results="LATENCY_ACTION_RESULTS",V_.search_ui="LATENCY_ACTION_SEARCH_UI",V_.search_suggest="LATENCY_ACTION_SUGGEST",V_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",V_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",V_.seek="LATENCY_ACTION_PLAYER_SEEK",V_.settings="LATENCY_ACTION_SETTINGS",V_.tenx="LATENCY_ACTION_TENX",V_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",V_.watch="LATENCY_ACTION_WATCH",V_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",
V_["watch,watch7"]="LATENCY_ACTION_WATCH",V_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad"]="LATENCY_ACTION_WATCH",V_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",V_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",V_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",V_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",V_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",V_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",V_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
V_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",V_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",V_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",V_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",V_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",V_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",V_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",V_.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",V_),W_={},ira=(W_.ad_allowed="adTypesAllowed",W_.yt_abt="adBreakType",W_.ad_cpn="adClientPlaybackNonce",W_.ad_docid="adVideoId",W_.yt_ad_an="adNetworks",W_.ad_at="adType",W_.aida="appInstallDataAgeMs",W_.browse_id="browseId",W_.p="httpProtocol",W_.t="transportProtocol",W_.cs="commandSource",W_.cpn="clientPlaybackNonce",W_.ccs="creatorInfo.creatorCanaryState",W_.ctop="creatorInfo.topEntityType",W_.csn="clientScreenNonce",W_.docid="videoId",W_.GetHome_rid="requestIds",
W_.GetSearch_rid="requestIds",W_.GetPlayer_rid="requestIds",W_.GetWatchNext_rid="requestIds",W_.GetBrowse_rid="requestIds",W_.GetLibrary_rid="requestIds",W_.is_continuation="isContinuation",W_.is_nav="isNavigation",W_.b_p="kabukiInfo.browseParams",W_.is_prefetch="kabukiInfo.isPrefetch",W_.is_secondary_nav="kabukiInfo.isSecondaryNav",W_.nav_type="kabukiInfo.navigationType",W_.prev_browse_id="kabukiInfo.prevBrowseId",W_.query_source="kabukiInfo.querySource",W_.voz_type="kabukiInfo.vozType",W_.yt_lt=
"loadType",W_.mver="creatorInfo.measurementVersion",W_.yt_ad="isMonetized",W_.nr="webInfo.navigationReason",W_.nrsu="navigationRequestedSameUrl",W_.pnt="performanceNavigationTiming",W_.prt="playbackRequiresTap",W_.plt="playerInfo.playbackType",W_.pis="playerInfo.playerInitializedState",W_.paused="playerInfo.isPausedOnLoad",W_.yt_pt="playerType",W_.fmt="playerInfo.itag",W_.yt_pl="watchInfo.isPlaylist",W_.yt_pre="playerInfo.preloadType",W_.yt_ad_pr="prerollAllowed",W_.pa="previousAction",W_.yt_red=
"isRedSubscriber",W_.rce="mwebInfo.responseContentEncoding",W_.rc="resourceInfo.resourceCache",W_.scrh="screenHeight",W_.scrw="screenWidth",W_.st="serverTimeMs",W_.ssdm="shellStartupDurationMs",W_.br_trs="tvInfo.bedrockTriggerState",W_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",W_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",W_.label="tvInfo.label",W_.is_mdx="tvInfo.isMdx",W_.preloaded="tvInfo.isPreloaded",W_.aac_type="tvInfo.authAccessCredentialType",W_.upg_player_vis="playerInfo.visibilityState",
W_.query="unpluggedInfo.query",W_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",W_.yt_vst="videoStreamType",W_.vph="viewportHeight",W_.vpw="viewportWidth",W_.yt_vis="isVisible",W_.rcl="mwebInfo.responseContentLength",W_.GetSettings_rid="requestIds",W_.GetTrending_rid="requestIds",W_.GetMusicSearchSuggestions_rid="requestIds",W_.REQUEST_ID="requestIds",W_),jra="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(" "),
X_={},kra=(X_.ccs="CANARY_STATE_",X_.mver="MEASUREMENT_VERSION_",X_.pis="PLAYER_INITIALIZED_STATE_",X_.yt_pt="LATENCY_PLAYER_",X_.pa="LATENCY_ACTION_",X_.ctop="TOP_ENTITY_TYPE_",X_.yt_vst="VIDEO_STREAM_TYPE_",X_),lra="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 U={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_SHOPPING_IN_APP:124,
LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,
LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,
LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CAST:120,
LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,
LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,
LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,
LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,
LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,
LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144,
LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";
U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";
U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";
U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";
U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";
U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";
U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";
U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";
U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";
U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";
U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";
U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";
U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";
U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";
U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";
U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";
U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";
U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";
U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var lx={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};lx[lx.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";
lx[lx.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";lx[lx.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var mx={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};mx[mx.CONN_INVALID]="CONN_INVALID";mx[mx.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";mx[mx.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
mx[mx.CONN_WIFI_METERED]="CONN_WIFI_METERED";mx[mx.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";mx[mx.CONN_DISCO]="CONN_DISCO";mx[mx.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";mx[mx.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";mx[mx.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";mx[mx.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";mx[mx.CONN_WIFI]="CONN_WIFI";mx[mx.CONN_NONE]="CONN_NONE";mx[mx.CONN_UNKNOWN]="CONN_UNKNOWN";mx[mx.CONN_DEFAULT]="CONN_DEFAULT";
var nx={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};nx[nx.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
nx[nx.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";nx[nx.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";nx[nx.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";nx[nx.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";nx[nx.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";nx[nx.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
nx[nx.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";nx[nx.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";nx[nx.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";nx[nx.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";nx[nx.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";nx[nx.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";nx[nx.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";nx[nx.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
nx[nx.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";nx[nx.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";nx[nx.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";nx[nx.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";nx[nx.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";nx[nx.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";nx[nx.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";nx[nx.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
nx[nx.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";nx[nx.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";nx[nx.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";nx[nx.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var ox={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
ox[ox.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";ox[ox.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";ox[ox.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";ox[ox.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";ox[ox.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";ox[ox.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";ox[ox.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";ox[ox.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var px={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};px[px.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";px[px.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";px[px.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";px[px.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var qx={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
qx[qx.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";qx[qx.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var rx={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};rx[rx.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";rx[rx.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";rx[rx.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
rx[rx.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";rx[rx.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";rx[rx.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var sx={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};sx[sx.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";sx[sx.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";sx[sx.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";sx[sx.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var tx={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};tx[tx.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";tx[tx.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";tx[tx.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var ux={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};ux[ux.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
ux[ux.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";ux[ux.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var ora="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var dx=g.C.ytLoggingLatencyUsageStats_||{};g.Ja("ytLoggingLatencyUsageStats_",dx,void 0);bx.prototype.tick=function(a,b,c,d){ex(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new Gja,g.D(d,1,a),g.D(d,2,b),a=new Oq,ye(a,5,tv,d),rv(a,c)):g.As("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
bx.prototype.info=function(a,b,c){var d=Object.keys(a).join("");ex(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.As("latencyActionInfo",a,{cttAuthInfo:c}))};
bx.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));ex(this,"info_"+d+"_"+b)||(g.D(a,2,b),b={cttAuthInfo:c},c=new Oq,ye(c,7,tv,a),rv(c,b))};
bx.prototype.span=function(a,b,c){var d=Object.keys(a).join("");ex(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.As("latencyActionSpan",a,{cttAuthInfo:c}))};var Y_=window;Y_.ytcsi&&(Y_.ytcsi.info=g.kx,Y_.ytcsi.tick=hx);var Awa={u5:1,P5:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var CQ=16/9,gTa=[.25,.5,.75,1,1.25,1.5,1.75,2],hTa=gTa.concat([3,4,5,6,7,8,9,10,15]);var iTa=["h","H"],jTa=["9","("],kTa=["9h","(h"],lTa=["8","*"],mTa=["a","A"],nTa=["o","O"],oTa=["m","M"],pTa=["mac3","MAC3"],qTa=["meac3","MEAC3"],Z_={},cua=(Z_.h=iTa,Z_.H=iTa,Z_["9"]=jTa,Z_["("]=jTa,Z_["9h"]=kTa,Z_["(h"]=kTa,Z_["8"]=lTa,Z_["*"]=lTa,Z_.a=mTa,Z_.A=mTa,Z_.o=nTa,Z_.O=nTa,Z_.m=oTa,Z_.M=oTa,Z_.mac3=pTa,Z_.MAC3=pTa,Z_.meac3=qTa,Z_.MEAC3=qTa,Z_);g.Dx.prototype.getLanguageInfo=function(){return this.Fc};
g.Dx.prototype.toString=function(){return this.Fc.name};
g.Dx.prototype.getLanguageInfo=g.Dx.prototype.getLanguageInfo;var $_,Ix;$_={};g.Fx=($_.auto=0,$_.tiny=144,$_.light=144,$_.small=240,$_.medium=360,$_.large=480,$_.hd720=720,$_.hd1080=1080,$_.hd1440=1440,$_.hd2160=2160,$_.hd2880=2880,$_.highres=4320,$_);Ix={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Ex.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
Ex.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
Ex.prototype.compose=function(a){if(a.B&&Hx(a))return TD;if(a.B||Hx(this))return a;if(this.B||Hx(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new Ex(b,c,!1,c===this.j?this.reason:a.reason)};
Ex.prototype.C=function(a){return a.video?wra(this,a.video.quality):!1};
var rTa=g.Gx("auto","hd1080",!1,"l"),pJa=g.Gx("auto","large",!1,"l"),TD=g.Gx("auto","auto",!1,"p");g.Gx("small","auto",!1,"p");Kx.prototype.ao=function(a){a=a||TD;for(var b=g.Dn(this.videoInfos,function(k){return a.C(k)}),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};
Kx.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var Ux={OU:function(a,b){a.splice(0,b)},
AE:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
kG:function(a){a.reverse()}};g.Vx.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.Vx.prototype.get=function(a){Xx(this);return this.j[a]||null};
g.Vx.prototype.clone=function(){var a=new g.Vx(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.gg(this.j);a.url=this.url;return a};
var Ora=[jja];g.h=cy.prototype;g.h.cD=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Zk(a))?a.duration:0};
g.h.getDurationTicks=function(a){return this.getDuration(a)};
g.h.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
g.h.getIngestionTime=function(a){return(a=this.Zk(a))?a.ingestionTime:NaN};
g.h.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.h.gN=function(a){return this.getLastSegmentNumber()===a&&!this.u};
g.h.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.getMinSeekableTime=function(){return this.segments[0].startTime};
g.h.getNumberOfSegments=function(){return this.segments.length};
g.h.getOffset=function(){return 0};
g.h.getSegmentNumberForTime=function(a){return(a=this.Ws(a))?a.Ma:-1};
g.h.getSegmentURL=function(a){return(a=this.Zk(a))?a.sourceURL:""};
g.h.getStartTime=function(a){return(a=this.Zk(a))?a.startTime:0};
g.h.getStartTimeInPeriod=function(a){return(a=this.Zk(a))?a.j:0};
g.h.isLoaded=function(){return 0<this.segments.length};
g.h.Zk=function(a){if(this.j&&this.j.Ma===a)return this.j;a=g.pc(this.segments,new by(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.j=0<=a?this.segments[a]:null};
g.h.Ws=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.pc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(a.length)if(a=g.jc(a),this.segments.length){var b=this.segments.length?g.Yb(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&ec(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.h.getLocalMaxByterate=function(){return 0};dy.prototype.append=function(a){if(Rra(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);gy(this)}else this.j.push(a);this.totalLength+=a.length};
dy.prototype.split=function(a){for(var b=new dy,c=new dy,d=g.r(this.j),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{HF:b,Br:c}};
dy.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
dy.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&gy(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var hJa=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}(),oy=Array(1024),my=window.TextDecoder?new TextDecoder:void 0,qy=window.TextEncoder?new TextEncoder:void 0;sy.prototype.skip=function(a){this.j+=a};
sy.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var a0={},sTa=(a0.predictStart="predictStart",a0.start="start",a0["continue"]="continue",a0.stop="stop",a0),Xra={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Cy.prototype.Uw=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"])};
Cy.prototype.toString=function(){for(var a="",b=g.r(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var hsa=!1;Oy.prototype.Yw=function(){var a=this.j;this.j=0;var b=!1;try{Sy(this,440786851)&&(this.j=0,Sy(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.j=0,b=!1,g.Ov(c);else throw c;}this.j=a;return b};bz.prototype.set=function(a,b){this.fg.get(a);this.j[a]=b;this.url=""};
bz.prototype.get=function(a){return this.j[a]||this.fg.get(a)};usa.prototype.Mj=function(a,b){a.fg===this.j&&(this.j=dz(a,b));a.fg===this.B&&(this.B=dz(a,b))};hz.prototype.gf=function(){return!!this.j&&this.index.isLoaded()};
hz.prototype.Lt=function(){return!1};
hz.prototype.wJ=function(a){return[a]};
hz.prototype.pu=function(a){return[a]};jz.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};nz.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
nz.prototype.equals=function(a){return!(!a||a.j!==this.j||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.Ab!==this.Ab||a.u!==this.u)};
nz.prototype.isVideo=function(){return!!this.j.info.video};
var oz=!1;wz.prototype.al=function(){return this.B?Wx(this.B):""};
wz.prototype.Uk=function(){return qz(this.j[0])};
wz.prototype.Mj=function(a,b){this.u.Mj(a,b);if(this.B){this.B=dz(a,b);b=g.r(["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(Az,hz);g.h=Az.prototype;g.h.Oj=function(){return!1};
g.h.Ht=function(){return tTa};
g.h.ax=function(){return!1};
g.h.Lt=function(){return!this.K};
g.h.xo=function(){var a=new nz(1,this,this.initRange,"getMetadataRequestInfo");return new wz([a],this.K)};
g.h.Wr=function(){return null};
g.h.ov=function(a){this.yn(a);if(this.Ht()&&a.u&&!a.ge){var b=new nz(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ma,a.startTime,a.duration,a.Ab+a.u,NaN,pz(a),!0);return new wz([b],this.index.getSegmentURL(a.Ma))}return this.zn(tz(a),!1)};
g.h.Am=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.Zb()||this.info.Zb();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.zn(a,!0)};
g.h.AF=function(a){this.j=new Uint8Array(Mz(a).buffer)};
g.h.yn=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.h.update=function(a,b,c){this.index.append(a);Qra(this.index,c);this.index.u=b};
g.h.gf=function(){return this.Lt()?!0:hz.prototype.gf.call(this)};
g.h.zn=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 k=f;f=a===this.index.getLastSegmentNumber()&&!this.index.u&&0<f;a=new nz(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,k,f,b);return new wz([a],c)};
g.h.lF=function(){return this.Lt()?0:this.initRange.length};
g.h.lH=function(){return!1};
var tTa=!1;Dz.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Dz,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Bz(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+Bz(a,"startNumber")||0;d.C=k;var m=k,n=+Bz(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(Ksa(Bz(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=Bz(a,"media"));a=c?l-c.Ma:1;d.J=0<a?0:-a+1;a=g.r(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,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ma)l++;else{var v=new Isa(l,b,n,m+p,k);d.j.push(v);var x=v.startSecs;v=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(v&&y){v=Number(v);x=-v/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,E=e.getAttribute("yt:cuepointIdentifier")||"";var I=e.getAttribute("yt:cuepointEvent")||"";I=sTa[I]||"unknown";v=new ww(x,y,z,E,
I,v)}else v=null;v&&d.B.push(v);l++;b+=n;k+=n;m+=n+p}}d.j.length&&(d.u=g.Yb(d.j))}this.J=d.J;this.u=d.u||this.u;g.kc(this.j,d.j);g.kc(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
Dz.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(Ez,cy);g.h=Ez.prototype;g.h.getFirstSegmentNumber=function(){return this.Qk?this.segments.length?this.Ws(this.getMinSeekableTime()).Ma:-1:cy.prototype.getFirstSegmentNumber.call(this)};
g.h.getMinSeekableTime=function(){if(this.hf)return 0;if(!this.Qk)return cy.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Yb(this.segments).endTime-this.pm,0);return 0<this.Ie&&this.Ws(a).Ma<this.Ie?this.Zk(this.Ie).startTime:a};
g.h.getMaxKnownEndTime=function(){if(!this.segments.length)return cy.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Qk||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 by(a,Math.max(0,b.startTime-(b.Ma-a)*this.Sg),this.Sg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.C&&a.pending&&3===this.C?this.hf?Math.min(this.pm,a.startTime):a.startTime:this.hf?Math.min(this.pm,a.endTime):
a.endTime};
g.h.getNumberOfSegments=function(){return this.Qk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:cy.prototype.getNumberOfSegments.call(this)};
g.h.getLastSegmentNumber=function(){var a=Math.min(this.Jg,Math.max(cy.prototype.getLastSegmentNumber.call(this),this.qv)),b=1E3*this.pm;b=0<this.B&&this.B<b;this.hf&&0<this.pm&&0<this.qv&&!b&&(b=this.Ws(this.pm))&&(a=Math.min(b.Ma-1,a));return a};
g.h.jt=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.cD=function(a){var b=Fz(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.lx&&0===a.Ma%(300/this.Sg)){var c=this.segments[0].Ma,d=Math.floor(this.lx/this.Sg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.Ws=function(a){if(!this.Qk)return cy.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.Sg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Sg+1);else{b=qc(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.Zk(b)};
g.h.Zk=function(a){if(!this.Qk)return cy.prototype.Zk.call(this,a);if(!this.segments.length)return null;var b=Fz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Sg;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 by(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(Hz,Az);g.h=Hz.prototype;g.h.ax=function(){return!0};
g.h.gf=function(){return!0};
g.h.yn=function(a){return!pz(a)};
g.h.xo=function(){};
g.h.Am=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?Az.prototype.Am.call(this,a,b):(a=new nz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.mj,void 0,this.mj*this.info.Ob),new wz([a],""))};
g.h.zn=function(a,b){var c=void 0===c?!1:c;if(Gz(this.index,a))return Az.prototype.zn.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.mj*this.info.Ob;b=!b;c=new nz(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.index.u&&0<e,b);return new wz([c],0<=a?"sq/"+a:"")};g.w(Iz,hz);g.h=Iz.prototype;g.h.Oj=function(){return!1};
g.h.Ht=function(){return!1};
g.h.ax=function(){return!1};
g.h.xo=function(){var a=new nz(1,this,void 0,"otfInit");return new wz([a],this.K)};
g.h.Wr=function(){return null};
g.h.ov=function(a){this.yn(a);return Ssa(this,tz(a),!1)};
g.h.Am=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Ssa(this,a,!0)};
g.h.AF=function(a){1===a.info.type&&(this.j||(this.j=Ura(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&Tsa(this,a.u))};
g.h.yn=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.h.lF=function(){return 0};
g.h.lH=function(){return!1};g.h=Jz.prototype;g.h.getOffset=function(a){return this.offsets[a]};
g.h.getStartTime=function(a){return this.j[a]/this.B};
g.h.getStartTimeInPeriod=function(){return 0};
g.h.getIngestionTime=function(){return NaN};
g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.h.getDurationTicks=function(a){return a+1<this.count||this.u?this.j[a+1]-this.j[a]:-1};
g.h.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.h.getFirstSegmentNumber=function(){return 0};
g.h.getLastSegmentNumber=function(){return this.count-1};
g.h.gN=function(a){return this.getLastSegmentNumber()===a};
g.h.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.h.getMinSeekableTime=function(){return 0};
g.h.getNumberOfSegments=function(){return this.count};
g.h.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.h.getSegmentURL=function(){return""};
g.h.getSegmentNumberForTime=function(a){a=g.pc(this.j.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.h.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.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.h.setTimebase=function(a){this.B=a};
g.h.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.j[0]=b;this.u=!0};
g.h.addSegmentBySize=function(a,b){this.count++;Kz(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.j[this.count]=this.j[this.count-1]+b};
g.h.addSegmentByStart=function(a,b){Kz(this);this.offsets[this.count]=a;this.j[this.count]=b;this.count++};
g.h.cap=function(a,b){Kz(this);this.u=!0;this.j[this.count]=b;this.offsets[this.count]=a};Lz.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=Mz(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.Ab)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=Mz(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Ab)return 524531317===c||440786851===c}return!0};g.w(Pz,hz);g.h=Pz.prototype;g.h.xo=function(a){var b=new nz(1,this,this.initRange,"initInfo"),c=new nz(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=lz(c,a),b.push(new nz(4,this,a,"tbdRange"))));return new wz(b)};
g.h.AF=function(a){if(1===a.info.type){if(this.j)return;this.j=Ura(a.j)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.Nz(this.info)){var b=this.index,c=Mz(a);a=a.info.range.start;var d=g.Ey(c,0,1936286840);c=esa(d);b.setTimebase(c.lI);b.setFirstSegmentStart(c.uU+a+d.size,c.iU);a=c.gI.length;for(d=0;d<a;d++)b.addSegmentBySize(c.uZ[d],c.gI[d])}else this.K=Mz(a)}if(this.info.De()&&this.j&&this.K){a=new DataView(this.j.buffer);b=this.index;d=this.K;c=this.indexRange.end;
var e=new Oy(a);a=e;e=a.j;var f={fQ:1E6,gQ:1E9,duration:0,GP:0,JH:0};if(Sy(a,408125543))if(f.GP=Ty(a,!0),f.JH=a.start+a.j,Sy(a,357149030)){for(var k=Ry(a);!Py(k);){var l=Ty(k,!1);2807729===l?f.fQ=Vy(k):2807730===l?f.gQ=Vy(k):17545===l?f.duration=Xy(k):Wy(k)}a.j=e;a=f}else a.j=e,a=null;else a.j=e,a=null;if(null!==a){b.setTimebase(a.gQ/a.fQ);e=new Oy(d);d=e;k=a.JH;e=d.j;f=[];if(Sy(d,475249515)){for(l=Ry(d);Sy(l,187);){var m=Ry(l);if(Sy(m,179)){var n=Vy(m);if(Sy(m,183)){m=Ry(m);for(var p=k;Sy(m,241);)p=
Vy(m)+k;f.push({Nz:p,aU:n})}}}if(0<f.length&&c===f[0].Nz)for(c=0;c<f.length;c++)f[c].Nz+=1;d.j=e;c=f}else d.j=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.Nz,d.aU);b.cap(a.GP+a.JH,a.duration)}}this.K=null}};
g.h.wJ=function(a){for(var b=this.pu(a.info),c=a.info.range.start+a.info.Ab,d=a.B,e=[],f=0;f<b.length;f++){var k=fy(a.j,b[f].range.start+b[f].Ab-c,b[f].u);e.push(new Lz(b[f],k,d));d=!1}return e};
g.h.pu=function(a){for(var b=a.range.start+a.Ab,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return Qz(this,c,b,a.u).j};
g.h.yn=function(a){pz(a);return this.gf()?!0:a.range.end+1<this.info.contentLength};
g.h.Wr=function(a,b){this.yn(a);if(!this.gf())return b=lz(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new jz(b.start,this.info.contentLength-1)),a=[new nz(4,a.j,b,"getNextRequestInfoByLength")],new wz(a);4===a.type&&(a=this.pu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ab+a.u;3===a.type&&(pz(a),c=a.Ma,d===a.range.end+1&&(c+=1));return Qz(this,c,d,b)};
g.h.ov=function(){return null};
g.h.Am=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Qz(this,a,this.index.getOffset(a),0)};
g.h.Oj=function(){return!0};
g.h.Ht=function(){return!0};
g.h.ax=function(){return!1};
g.h.lF=function(){return this.indexRange.length+this.initRange.length};
g.h.lH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Rz.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var b0={},Px=(b0.WIDTH={name:"width",video:!0,valid:640,invalid:99999},b0.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},b0.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},b0.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},b0.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},b0.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},b0.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},b0.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},b0.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},b0.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},b0);var Z={},Wz=(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 Uz="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Tz.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.h=Xz.prototype;g.h.Zb=function(){return this.id.split(";",1)[0]};
g.h.De=function(){return 2===this.containerType};
g.h.isEncrypted=function(){return!!this.Sd};
g.h.Mo=function(){return!!this.audio};
g.h.isVideo=function(){return!!this.video};g.cA.prototype.getName=function(){return this.name};
g.cA.prototype.getId=function(){return this.id};
g.cA.prototype.getIsDefault=function(){return this.isDefault};
g.cA.prototype.toString=function(){return this.name};
g.cA.prototype.getName=g.cA.prototype.getName;g.cA.prototype.getId=g.cA.prototype.getId;g.cA.prototype.getIsDefault=g.cA.prototype.getIsDefault;g.w(g.dA,bv);g.dA.prototype.T=function(a,b,c,d,e){return bv.prototype.T.call(this,a,b,c,d,e)};g.w(sA,g.ev);g.h=sA.prototype;g.h.appendBuffer=function(a,b,c){if(this.Id.jA()!==this.appendWindowStart+this.start||this.Id.bF()!==this.appendWindowEnd+this.start||this.Id.qd()!==this.timestampOffset+this.start)this.Id.supports(1),this.Id.PH(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Id.dC(this.timestampOffset+this.start);this.Id.appendBuffer(a,b,c)};
g.h.abort=function(){this.Id.abort()};
g.h.remove=function(a,b){this.Id.remove(a+this.start,b+this.start)};
g.h.PH=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.h.rF=function(){return this.timestampOffset+this.start};
g.h.jA=function(){return this.appendWindowStart};
g.h.bF=function(){return this.appendWindowEnd};
g.h.dC=function(a){this.timestampOffset=a};
g.h.qd=function(){return this.timestampOffset};
g.h.zf=function(a){a=this.Id.zf(void 0===a?!1:a);return rA(a,this.start,this.end)};
g.h.nh=function(){return this.Id.nh()};
g.h.po=function(){return this.Id.po()};
g.h.nA=function(){return this.Id.nA()};
g.h.CI=function(a,b){this.Id.CI(a,b)};
g.h.supports=function(a){return this.Id.supports(a)};
g.h.oA=function(){return this.Id.oA()};
g.h.isView=function(){return!0};
g.h.sC=function(a,b,c){return this.isActive?this.Id.sC(a,b,c):!1};
g.h.Hz=function(){return this.Id.Hz()?this.isActive:!1};
g.h.isLocked=function(){return this.Ny&&!this.isActive};
g.h.Nb=function(a){a=this.Id.Nb(a);a.vw=this.start+"-"+this.end;return a};
g.h.Gw=function(){return this.Id.Gw()};
g.h.oF=function(){return this.Id.oF()};
g.h.ra=function(){gv(this.Id,this.HM);g.ev.prototype.ra.call(this)};var sR=!1;g.w(tA,g.ev);g.h=tA.prototype;g.h.appendBuffer=function(a,b,c){this.Dz=!1;c&&(this.UA=c);b&&(b.isEncrypted()&&(this.nN=this.UA),3===b.type&&(this.Ue=b));this.ey&&(2<=this.ey.length||1048576<a.length?delete this.ey:this.ey.push(a));var d;(null==(d=this.jc)?0:d.appendBuffer)?this.jc.appendBuffer(a):this.jc?this.jc.append(a):this.Xe&&this.Xe.webkitSourceAppend(this.id,a)};
g.h.abort=function(){try{this.jc?this.jc.abort():this.Xe&&this.Xe.webkitSourceAbort(this.id)}catch(a){}this.UA=this.Ue=null};
g.h.remove=function(a,b){this.Dz=!1;var c;(null==(c=this.jc)?0:c.remove)&&this.jc.remove(a,b)};
g.h.jA=function(){if(sR&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.jc)?void 0:a.appendWindowStart)||0};
g.h.bF=function(){var a;return(null==(a=this.jc)?void 0:a.appendWindowEnd)||0};
g.h.PH=function(a,b){this.jc&&(sR&&this.isVideo?(this.appendWindowStart=a,this.jc.appendWindowEnd=b):a>this.jA()?(this.jc.appendWindowEnd=b,this.jc.appendWindowStart=a):(this.jc.appendWindowStart=a,this.jc.appendWindowEnd=b))};
g.h.rF=function(){return this.timestampOffset};
g.h.dC=function(a){sR?this.timestampOffset=a:this.supports(1)&&(this.jc.timestampOffset=a)};
g.h.qd=function(){return sR?this.timestampOffset:this.supports(1)?this.jc.timestampOffset:0};
g.h.zf=function(a){if(void 0===a?0:a)return this.Dz||this.nh()||(this.jL=this.zf(!1),this.Dz=!0),this.jL;try{return this.jc?this.jc.buffered:this.Xe?this.Xe.webkitSourceBuffered(this.id):lA([0],[Infinity])}catch(b){return lA([],[])}};
g.h.nh=function(){var a;return(null==(a=this.jc)?void 0:a.updating)||!1};
g.h.po=function(){return this.UA};
g.h.nA=function(){return this.nN};
g.h.CI=function(a,b){this.containerType!==a&&(this.supports(4),uA()&&this.jc.changeType(b));this.containerType=a};
g.h.oA=function(){return this.Ue};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.jc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.jc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.jc)||!d.remove);case 3:var e,f;return!!((null==(e=this.jc)?0:e.addEventListener)&&(null==(f=this.jc)?0:f.removeEventListener));case 4:return!(!this.jc||!this.jc.changeType);default:return!1}};
g.h.Hz=function(){return!this.nh()};
g.h.isLocked=function(){return!1};
g.h.Nb=function(a){a.to=this.qd();a.up=this.nh();var b,c=(null==(b=this.jc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.jc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=mA(this.zf())}catch(e){}return a};
g.h.ra=function(){this.supports(3)&&(this.jc.removeEventListener("updateend",this.Mc),this.jc.removeEventListener("error",this.Mc));g.ev.prototype.ra.call(this)};
g.h.sC=function(a,b,c){if(!this.supports(2)||this.nh())return!1;var d=this.zf(),e=nA(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),k=d.end(d.length-1);this.Ra();this.remove(f,k);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.Ra(),this.remove(0,l),!0}catch(m){}return!1};
g.h.Ra=function(){};
g.h.Gw=function(){return this.containerType};
g.h.oF=function(){return this.ey};
var kta=!1;vA.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
vA.prototype.isDisposed=function(){return this.B};
vA.prototype.equals=function(a){return null!==a&&a.j===this.j};
vA.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.w(wA,g.G);g.h=wA.prototype;g.h.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.B};
g.h.fk=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Xe.webkitSourceSetDuration(a))}catch(b){}};
g.h.df=function(){try{return"closed"===yA(this)}catch(a){return!0}};
g.h.nh=function(){return!!(this.j&&this.j.nh()||this.u&&this.u.nh())};
g.h.CY=function(){!this.isDisposed()&&xA(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.h.BY=function(){this.dispose()};var qta=/action_display_post/;var rta;g.w(BA,g.ev);g.h=BA.prototype;g.h.isFailed=function(){return 3===this.state};
g.h.hZ=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Ef=this.u=!0;this.timeline||(this.timeline=new Msa);Qsa(this.timeline,a,this.Qa);this.ea("refresh");for(a=0;a<c.length;a++){var d=Hta(this,c[a]),e=this.isLive&&g.Nz(d)&&this.Wa;if(!this.j[d.id]){var f=EA(Cz(c[a],"BaseURL").textContent),k=Cz(c[a],"Initialization"),l=Bz(k,"sourceURL");k=kz(Bz(k,"range"));e&&(l="",k=void 0);this.j[d.id]=
new Az(f,d,l,k)}d=this.j[d.id];f=Bz(c[a],"id","AdaptationSet");f=""!==f?f:Bz(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.j||null;f=l.j;!this.K&&l.getStreamTimeOffset()&&(this.K=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),k=f.next();!k.done;k=f.next()){k=k.value;var m=d.info.id,n=8*d.info.Ob,p=k.Ma,q=k.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$",q.toString());e.push(new by(k.Ma,k.startSecs,k.durationSecs,k.j,t.join("$"),null,k.u))}else{l=lc(Cz(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.J);k=[];for(m=0;m<l.length;m++){n=k;p=n.push;q=f[m];t=void 0;var v=l[m];b=v.getAttribute("media");if(!e&&(v=v.getAttribute("mediaRange"))){var x=v.split("-");x[1]&&0<=Number(x[1])?t=kz(v):b=b+"?range="+v}p.call(n,new by(q.Ma,q.startSecs,q.durationSecs,q.j,b,t,q.u))}e=k}d.update(e,this.isLive,this.Ia)}Rsa(this.timeline);
return!0}this.duration=Jsa(Bz(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Hta(this,f);e=EA(Cz(f,"BaseURL").textContent);l=Cz(f,"SegmentBase");f=kz(l.attributes.getNamedItem("indexRange").value);l=kz(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new Pz(e,d,l,f);if(!d){c=!1;break a}CA(this,d)}c=!0}return c};
g.h.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.nj(this.sourceUrl,{start_seq:Lta(this).toString()});Jta(this,a).Eh(function(){})}};
g.h.resume=function(){Ita(this)};
g.h.xd=function(){if(this.isManifestless&&this.N&&HA(this))return HA(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.isLoaded()&&(f.D&&(b=!0),k=k.getMaxKnownEndTime(),f.info.Mo()&&(isNaN(c)||k<c)?c=k:f.info.isVideo()&&(isNaN(d)||k<d)&&(d=k))}return b||isNaN(d)?c:Math.min(c,d)};
g.h.getMinSeekableTime=function(){if(this.isManifestless){if(IA(this))return IA(this);if(this.J){var a=this.getIngestionTime(this.xd());if(a&&(a-=this.J,0<a))return this.xd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.h.getStreamTimeOffset=function(){return this.K};
g.h.getIngestionTime=function(a){for(var b in this.j){var c=this.j[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 LA=null,Qta=!!navigator.mediaCapabilities,Gta={commentary:1,alternate:2,dub:3,main:4};RA.prototype.clone=function(a){return new RA(this.flavor,a,this.C,this.experiments)};
RA.prototype.Nb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
RA.prototype.Af=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 c0={},$A=(c0.playready=["com.youtube.playready","com.microsoft.playready"],c0.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],c0),d0={},cJa=(d0.widevine="DRM_SYSTEM_WIDEVINE",d0.fairplay="DRM_SYSTEM_FAIRPLAY",d0.playready="DRM_SYSTEM_PLAYREADY",d0),e0={},uTa=(e0.widevine=1,e0.fairplay=2,e0.playready=3,e0);g.w(aB,g.G);
aB.prototype.initialize=function(a,b){for(var c=this,d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Sd)for(var k=g.r(Object.keys(f.Sd)),l=k.next();!l.done;l=k.next())if(l=l.value,$A[l])for(var m=g.r($A[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new RA(l,n,f.Sd[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Yr()&&(this.u["com.youtube.fairplay"]=new RA("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.j=dua(b,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay"),g.QA(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
aB.prototype.Ra=function(){};
aB.prototype.S=function(a){return this.experiments.ob(a)};var HMa={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var vTa={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},f0;a:{var g0=g.Ab();g0=g0.toLowerCase();if(g.vb(g0,"android")){var wTa=g0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(wTa){var xTa=parseFloat(wTa[1]);if(100>xTa){f0=xTa;break a}}var yTa=g0.match("("+g.Xf(vTa).join("|")+")");f0=yTa?vTa[yTa[0]]:0}else f0=void 0}var BC=f0,AC=0<=BC;var cva={RED:"red",nga:"white"};var jva={n0:"adunit",n5:"detailpage",D5:"editpage",G5:"embedded",L5:"embedded_unbranded",r8:"leanback",bca:"previewpage",eca:"profilepage",Sea:"unplugged",Sba:"playlistoverview",Nda:"sponsorshipsoffer",zda:"shortspage"};kua.prototype.ob=function(a){return"true"===this.flags[a]};cB.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;cs?a=a||zTa[b]:2.2===BC?a=a||ATa[b]:Wr()&&(a=a||BTa[b]);return!!a};
cB.prototype.isTypeSupported=function(a){this.Ra();return this.K?window.cast.receiver.platform.canDisplayType(a):gA(a)};
cB.prototype.Ra=function(){};
var ATa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},BTa={"application/x-mpegURL":"maybe"},zTa={"application/x-mpegURL":"maybe"};var qua=Promise.resolve(),tua=window.queueMicrotask?window.queueMicrotask.bind(window):rua;fB.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});uua(this)};
fB.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Dr(a.url,a.options)}};g.w(gB,g.ev);gB.prototype.add=function(a,b){!this.items[a]&&(b.Yv||b.Jz||b.Hy)&&(this.items[a]=kg(b),this.ea("vast_info_card_add",a))};
gB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
gB.prototype.get=function(a){return this.items[a]||null};
gB.prototype.isEmpty=function(){return g.bg(this.items)};var JC={K8:1,L8:2,M8:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(DB,g.G);DB.prototype.B=function(a,b){if(b){var c;(null==(c=this.j.get(a))?void 0:c.Io)!==b&&this.j.set(a,new HB(b,a))}else this.j.delete(a)};
DB.prototype.load=function(){var a=this,b,c,d,e,f,k,l,m,n,p;return g.B(function(q){switch(q.j){case 1:b=a.j.get(0);g.va(q,2);if(b&&a.u===FB(b.Io)){q.Za(4);break}return g.A(q,GB(a.u?2:0),5);case 5:if(c=q.u)Yta(c,void 0),CB(a,{primary:c,secondary:void 0});case 4:g.wa(q,3);break;case 2:d=g.xa(q);g.Ov(d);if(!a.u){q.Za(3);break}a.u=!1;return g.A(q,a.load(),7);case 7:return q.return();case 3:if(!a.experiments.ob("html5_onesie_probe_ec_hosts")){q.Za(0);break}g.va(q,9);e=a;f=e.B;k=3;return g.A(q,GB(1),11);
case 11:return f.call(e,k,q.u),l=a,m=l.B,n=4,g.A(q,GB(2),12);case 12:m.call(l,n,q.u);g.wa(q,0);break;case 9:p=g.xa(q),g.Ov(p),g.ua(q)}})};
DB.prototype.ra=function(){this.D&&(g.Ar(this.D),this.D=void 0);g.G.prototype.ra.call(this)};
HB.prototype.start=function(){this.startTimestamp=(0,g.R)()};
HB.prototype.end=function(){this.endTimestamp=(0,g.R)()};var Bua=!1,KB,LB,MB,NB,OB;PB.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.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)Dua(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(Dua(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var Eua=!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})();
var QB;g.SB.prototype.encrypt=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.j){d=RB();if(!d)return f.return(c.j(a,b));g.va(f,3);return g.A(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.xa(f);g.Ov(e);Eua=!0;return f.return(c.j(a,b))})};
g.SB.prototype.u=function(a,b,c){var d=this,e,f,k;return g.B(function(l){switch(l.j){case 1:if(d.D){l.Za(2);break}e=d;return g.A(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.A(l,c.encrypt(f,d.D,a),4);case 4:return k=l.u,l.return(new Uint8Array(k))}})};
g.SB.prototype.j=function(a,b){this.B||(this.B=new PB(this.C));Cua(this.B,b);return this.B.encrypt(a)};
g.SB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.TB.prototype.encrypt=function(a,b){this.j||(this.j=new PB(this.u));Cua(this.j,b);return this.j.encrypt(a)};
g.TB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};UB.prototype.reset=function(){Gua(this);this.update(this.B)};
UB.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.J.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Fua(this,this.J,0));for(;b+64<=c;b+=64)Fua(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
var VB=[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];XB.prototype.Dl=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;WB.forEach(function(e,f){d<e||(c.u[f]+=b)})};
XB.prototype.toString=function(){return""};
var WB=[20,100,500,2E3];g.h=Kua.prototype;g.h.isActive=function(){return!0};
g.h.JA=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.HC=a.prototype[e],d.KC=b[e],a.prototype[e]=function(f){return function(){var k=g.Da.apply(0,arguments),l=(0,g.R)();k=f.HC.apply(this,k);YB(c,f.KC,(0,g.R)()-l);return k}}(d)),d={HC:d.HC,
KC:d.KC}}};
g.h.tp=function(a){return new Jua(a)};
g.h.Xn=function(a,b){b=void 0===b?1:b;a instanceof Jua&&(YB(this,a.name,(0,g.R)()-a.startTimeMs,b),a.j=!0)};
g.h.wH=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();YB(this,a,(0,g.R)()-d,c)};
g.h.aM=function(){var a={},b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.j)c=null;else{for(var d=c.j.toString()+"."+Math.round(c.B).toString(),e=0;e<WB.length;++e)if(0<c.u[e])d+="."+WB[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Iua;return a};
g.h.toString=function(){return""};g.h=ZB.prototype;g.h.isActive=function(){return!1};
g.h.JA=function(){};
g.h.tp=function(){};
g.h.Xn=function(){};
g.h.wH=function(a,b){b()};
g.h.aM=function(){return{}};
g.h.toString=function(){return""};var h0,lU,i0,$Q,XMa;h0=new ZB;lU=Zq("html5_enable_profiler")||Zq("html5_onesie_enable_profiler")||Zq("html5_offline_encryption_enable_profiler")||0<Zq("html5_performance_impact_profiling_timer_ms")?new Kua:new ZB;g.zP=Zq("html5_enable_profiler")?lU:h0;i0=Zq("html5_onesie_enable_profiler")?lU:h0;$Q=Zq("html5_offline_encryption_enable_profiler")?lU:h0;XMa=Zq("html5_performance_impact_profiling_timer_ms")?lU:h0;g.w($B,g.SB);$B.prototype.j=function(a,b){var c=i0.tp("oap");b=g.SB.prototype.j.call(this,a,b);i0.Xn(c,Math.ceil(a.length/16));return b};
$B.prototype.u=function(a,b,c){var d=this,e,f;return g.B(function(k){if(1==k.j)return e=i0.tp("oan2"),g.A(k,g.SB.prototype.u.call(d,a,b,c),2);f=k.u;i0.Xn(e,Math.ceil(a.byteLength/16));return k.return(f)})};
g.w(aC,g.TB);aC.prototype.encrypt=function(a,b){var c=i0.tp("oap");b=g.TB.prototype.encrypt.call(this,a,b);i0.Xn(c,Math.ceil(a.byteLength/16));return b};cC.prototype.Yg=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
cC.prototype.Eg=function(){return this.j/(1-Math.pow(this.alpha,this.u))};dC.prototype.Yg=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
dC.prototype.Eg=function(){return this.D?(eC(this,this.B-this.D)+eC(this,this.B)+eC(this,this.B+this.D))/3:eC(this,this.B)};g.w(Uua,g.G);var Xua=/^([0-9\.]+):([0-9\.]+)$/;var ava="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),iva={n1:"cbrand",o1:"cbr",q1:"cbrver",m7:"c",p7:"cver",o7:"ctheme",n7:"cplayer",R$:"cmodel",Faa:"cnetwork",bba:"cos",cba:"cosver",Kba:"cplatform"};g.w(OC,g.G);g.h=OC.prototype;g.h.S=function(a){return this.experiments.ob(a)};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.SC(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.FC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,cs&&(a=Kja())&&(b.ebc=a));return g.nj(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.SC(this)+"/embed/"+a;c&&(a=g.nj(a,{list:c}));c=b.width;b=b.height;a=g.Hh(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.h.supportsGaplessAudio=function(){return g.hA&&!cs&&74<=Ema()||g.Ax&&g.Fc(68)?!0:!1};
g.h.getPlayerType=function(){return this.deviceParams.cplayer};
var pva=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=iD.prototype;g.h.Af=function(){return this.j};
g.h.tv=function(){return null};
g.h.xJ=function(){var a=this.tv();return a?(a=g.kr(a.j),Number(a.expire)):NaN};
g.h.KH=function(){};
g.h.Zb=function(){return this.j.Zb()};
g.h.getHeight=function(){return this.j.video.height};qva.prototype.Ae=function(){tva(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Fc){if(e.Fc.getIsDefault()){c=e.Fc.getId();break a}c||(c=e.Fc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Fc||e.Fc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Fc){p=f.Fc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=kD(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(sva(f,d)+'",URI="'+(q+'"'));l.call(k,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=CTa,d=(k=d.Fc)?'#EXT-X-MEDIA:URI="'+kD(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?CTa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,k=b[e.j],l=void 0,0<(null==(l=k)?void 0:l.length)&&(k=k[0],k="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(sva(k,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(k+=",FRAME-RATE="+
e.fps),e.Su&&(k+=",VIDEO-RANGE="+e.Su),a.push(k),a.push(kD(this,e.url,"")));return a.join("\n")};
var CTa="text";g.w(lD,iD);lD.prototype.xJ=function(){return this.expiration};
lD.prototype.tv=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Ae();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new vA(a)}return this.u};g.w(mD,iD);mD.prototype.tv=function(){return new vA(Wx(this.u))};
mD.prototype.KH=function(){this.u=$x(this.u)};g.w(nD,iD);nD.prototype.tv=function(){return new vA(this.u)};oD.prototype.toString=function(){return this.type+this.id};var Fva={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Gva={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.sD.prototype.Se=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.j)return TC(this.u,this.j,a)};
g.sD.prototype.jl=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.tD.prototype.Se=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:TC(this.j,this.videoId,a)};
g.tD.prototype.jl=function(){return this.watchUrl||this.j.getVideoUrl(this.videoId)};var Iva=["APP_STATE","PI"];var j0={},Nva=g.Et("yt-player-local-media",{Nq:(j0.index={Gn:2},j0.media={Gn:2},j0.captions={Gn:5},j0),py:!1,upgrade:function(a,b){b(2)&&(g.Xs(a,"index"),g.Xs(a,"media"));b(5)&&g.Xs(a,"captions");b(6)&&(Ys(a,"metadata"),Ys(a,"playerdata"))},
version:5});uD.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
uD.prototype.get=function(a){return this.j.get(a)};
uD.prototype.remove=function(a){this.j.remove(a)};var wD=void 0;g.vD=!1;Jva("LMS",function(){return g.B(function(a){return a.return(g.xD())})});var BD;BD=0;g.Wva=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Jva("LMDB",function(){var a,b;return g.B(function(c){if(1==c.j)return g.A(c,g.pt(),2);if(3!=c.j){a=c.u;if(!a)throw g.Ps("edd");return g.A(c,g.AD(a),3)}b=c.u;return c.return(g.Zs(b,["index","media","captions"],{mode:"readonly",Kc:!0},function(d){var e={};d=[g.ct(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Cna(d.objectStore("media")),Cna(d.objectStore("captions"))];return g.Rs.all(d).then(function(f){var k=g.r(f);k.next();f=k.next().value;k=k.next().value;return{index:e,media:Xva(f||[]),captions:k}})}))})});g.h=g.DD.prototype;g.h.getId=function(){return this.id};
g.h.getName=function(){return this.name};
g.h.isServable=function(){return this.j};
g.h.toString=function(){return this.languageCode+": "+g.ED(this)+" - "+this.vssId};
g.h.equals=function(a){return a?this.toString()===a.toString():!1};
g.h.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Zva={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},$va={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},awa=/^(\d*)_((\d*)_?(\d*))$/;var k0={},Dwa=(k0.ALWAYS=1,k0.BY_REQUEST=3,k0.UNKNOWN=void 0,k0),l0={},owa=(l0.COLOR_PRIMARIES_BT709="bt709",l0.COLOR_PRIMARIES_BT2020="bt2020",l0.COLOR_PRIMARIES_UNKNOWN=null,l0.COLOR_PRIMARIES_UNSPECIFIED=null,l0),m0={},cwa=(m0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",m0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",m0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",m0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",m0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,m0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,m0),n0={},JD=(n0.FAIRPLAY="fairplay",n0.PLAYREADY="playready",n0.WIDEVINE="widevine",n0.CLEARKEY=null,n0.FLASHACCESS=null,n0.UNKNOWN=null,n0.WIDEVINE_CLASSIC=null,n0),o0={},Ewa=(o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",o0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",o0),p0={},lwa=(p0.UNKNOWN=0,p0.RECTANGULAR=1,p0.EQUIRECTANGULAR=2,p0.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,p0.MESH=4,p0),q0={},nwa=(q0.SPATIAL_AUDIO_TYPE_NONE=0,q0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,q0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,q0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,q0),r0={},mwa=(r0.STEREO_LAYOUT_UNKNOWN=0,r0.STEREO_LAYOUT_LEFT_RIGHT=1,r0.STEREO_LAYOUT_TOP_BOTTOM=2,r0),s0={},kwa=(s0.FORMAT_STREAM_TYPE_UNKNOWN=0,s0.FORMAT_STREAM_TYPE_OTF=3,s0);g.w(KD,g.ev);KD.prototype.ra=function(){this.j&&(this.j=this.j.onload=null);g.ev.prototype.ra.call(this)};g.h=g.PD.prototype;g.h.getHeight=function(){return this.height};
g.h.nM=ca(2);g.h.dD=function(){return this.frameCount};
g.h.isDefault=function(){return-1!==this.B.indexOf("default")};
g.h.isLoaded=function(a){return this.loaded.has(a)};
g.h.Yy=function(a){var b=this.dD()-1;return g.wh(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.h.Hp=function(){return this.frameCount-1};
g.h.eD=function(){return this.frameCount?0:-1};
g.h.yJ=function(){};g.w(QD,KD);QD.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.J(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
QD.prototype.J=function(a,b,c,d){return new g.PD(a,b,c,d)};g.w(RD,g.PD);g.h=RD.prototype;g.h.dD=function(){return this.u.getNumberOfSegments()};
g.h.Yy=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.h.Hp=function(){return this.u.getLastSegmentNumber()};
g.h.eD=function(){return this.u.getFirstSegmentNumber()};
g.h.yJ=function(a){this.u=a};g.w(SD,QD);SD.prototype.u=function(a,b){return QD.prototype.u.call(this,"$N|"+a,b)};
SD.prototype.J=function(a,b,c){return new RD(a,b,c,this.isLive)};g.w(g.UD,g.ev);g.h=g.UD.prototype;g.h.V=function(){return this.B};
g.h.S=function(a){return this.B.S(a)};
g.h.sf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Rb)||!a.ib)};
g.h.oO=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.oO,this),this.vL(-1))};
g.h.vL=function(a){if(!this.isLivePlayback||!this.N||"fairplay"!=this.N.flavor){var b=Dta(this.j,this.NC);if(0<b.length){if(gE(this,"html5_clamp_cuepoints_to_min"))for(var c=g.r(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.getMinSeekableTime());this.ea("cuepointupdated",b,a);this.NC+=b.length;c=gE(this,"html5_log_all_cuepoints")||2<=this.B.X;if(aE(this)&&c)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.Aa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.Mv.start=this.Gv,this.Mv.end=c+3)}}};
g.h.Nh=function(){var a={};this.u&&(a.fmt=this.u.Zb(),this.J&&this.J.Zb()!=this.u.Zb()&&(a.afmt=this.J.Zb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.cg&&(a.infringe=1);this.rf&&(a.splay=1);var b=nE(this);b&&(a.live=b);this.Al&&(a.autoplay=1);this.jN&&(a.sdetail=this.jN);this.ya&&(a.partnerid=this.ya);this.osid&&(a.osid=this.osid);return a};
g.h.jh=function(){if(this.cotn)return null;var a=g.YC(this.B)||this.S("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 QD(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Vf(this.j.j).index)&&(this.Rf=new SD(b.spec,this.j.isLive,c,a))}else this.Ep?this.Rf=new QD(this.Ep,this.lengthSeconds,void 0,!1,a):this.Dr&&this.j&&
(b=Vf(this.j.j).index)&&(this.Rf=new SD(this.Dr,this.j.isLive,b,a));return this.Rf};
g.h.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.Ep||this.Dr};
g.h.xd=function(){return this.j&&!isNaN(this.j.xd())?this.j.xd():aE(this)?0:this.lengthSeconds};
g.h.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.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.h.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.bj)};
g.h.isLoaded=function(){return VD(this)&&!this.bd&&!this.Bj};
g.h.Se=function(a){if(30==this.ya)return(a=this.Z["default.jpg"])?a:this.videoId?g.nj("//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.B.N||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:TC(this.B,this.videoId,a)};
g.h.Ef=function(){return this.isLivePlayback||this.hf||this.hh||!(!this.liveUtcStartSeconds||!this.lh)};
g.h.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.hf&&!this.isLivePlayback&&this.j.u)};
g.h.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.er||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.J&&!aA(this.J))return g.$b(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.xj;
if(this.er){if(!this.Gk)for(var b=g.r(this.er),c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc.getIsDefault()){this.Gk=c;break}return this.Gk||this.xj}return this.xj};
g.h.getPlayerResponse=function(){return this.playerResponse};
g.h.jl=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.h.UF=function(){return!!this.j&&(tta(this.j)||uta(this.j)||vta(this.j))};
g.h.isAd=function(){return!!this.adFormat};
g.h.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.h.UH=function(){return this.nj||this.Pc};
g.h.qy=function(){return this.oe||this.Pc};
g.h.bE=function(){return gE(this,"html5_samsung_vp9_live")};
g.h.useInnertubeDrmService=function(){return!0};
g.h.Aa=function(a,b,c){this.ea("ctmp",a,b,c)};
g.h.xH=function(a,b,c){this.ea("ctmpstr",a,b,c)};
g.h.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.h.ra=function(){g.ev.prototype.ra.call(this);delete this.xk;this.Yl=null;delete this.P_;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.cj=this.adaptiveFormats="";delete this.botguardData;this.Ir={};this.suggestions=null};IE.prototype.Zw=function(){return!1};
IE.prototype.ya=function(){return function(){return null}};var QE=null;g.w(PE,g.ev);PE.prototype.Fw=function(a){return this.j.hasOwnProperty(a)?this.j[a].Fw():{}};
g.Ja("ytads.bulleit.getVideoMetadata",function(a){return RE().Fw(a)},void 0);
g.Ja("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=RE();c=kxa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(VE,IE);g.h=VE.prototype;g.h.Gt=function(){return!0};
g.h.Ip=function(){return!1};
g.h.isSkippable=function(){return null!=this.va};
g.h.Hg=function(){return this.K};
g.h.getVideoUrl=function(){return null};
g.h.Zw=function(){return!0};g.w(bF,IE);bF.prototype.Gt=function(){return!0};
bF.prototype.Ip=function(){return!1};
bF.prototype.Zw=function(){return!0};
bF.prototype.ya=function(){return function(){return g.Rh("video-ads")}};qxa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var DPa={T_:"FINAL",h0:"AD_BREAK_LENGTH",j0:"AD_CPN",k0:"AH",l0:"AD_MT",m0:"ASR",o0:"AW",L1:"NM",M1:"NX",N1:"NY",V1:"CONN",j2:"CPN",A5:"DV_VIEWABILITY",R5:"ERRORCODE",V5:"ERROR_MSG",X5:"EI",E6:"GOOGLE_VIEWABILITY",T6:"IAS_VIEWABILITY",p8:"LACT",D8:"LIVE_TARGETING_CONTEXT",N8:"I_X",O8:"I_Y",v$:"MT",z$:"MIDROLL_POS",A$:"MIDROLL_POS_MS",C$:"MOAT_INIT",D$:"MOAT_VIEWABILITY",Nba:"P_H",Oba:"PV_H",Pba:"PV_W",Qba:"P_W",Vba:"TRIGGER_TYPE",Lca:"SDKV",Jda:"SLOT_POS",Zda:"SURVEY_LOCAL_TIME_EPOCH_S",Yda:"SURVEY_ELAPSED_MS",
rT:"VIS",ufa:"VIEWABILITY",vfa:"VED",Bfa:"VOL",Ffa:"WT",Ega:"YT_ERROR_CODE"};var yxa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];hF.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.ip(a.baseUrl,uxa(b,d,c));b={};if(a.headers){for(var f=g.r(a.headers),k=f.next();!k.done;k=f.next())switch(k.value.headerType){case "VISITOR_ID":this.S("enable_visitor_header_for_vss")&&g.P("VISITOR_DATA",void 0)&&(b["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));break;case "EOM_VISITOR_ID":this.S("enable_web_eom_visitor_data")&&g.P("EOM_VISITOR_DATA",void 0)&&(b["X-Goog-EOM-Visitor-Id"]=g.P("EOM_VISITOR_DATA"));break;case "USER_AUTH":var l=
this.j();l&&(b.Authorization="Bearer "+l);break;case "PLUS_PAGE_ID":var m=this.u();m&&(b["X-Goog-PageId"]=m)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"]}g.Kt(e,void 0,d,0!==Object.keys(b).length?b:void 0)}catch(n){}};g.w(iF,hF);iF.prototype.j=function(){return this.lm?g.CE(this.lm):""};
iF.prototype.u=function(){return this.lm?this.lm.V().pageId:""};
iF.prototype.S=function(a){return this.lm?this.lm.S(a):!1};jF.prototype.send=function(a,b,c){try{var d=a.match(Ti);if("https"===d[1])var e=a;else d[1]="https",e=Ri("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=mia(a);e=[];pr(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}),e.push({headerType:"VISITOR_ID"}),e.push({headerType:"EOM_VISITOR_ID"}));this.Up.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(k){}};g.w(Axa,g.G);g.w(AF,g.ev);g.h=AF.prototype;g.h.Fw=function(){return{}};
g.h.zP=function(){};
g.h.le=function(a){this.Sk();this.ea(a)};
g.h.Sk=function(){Gxa(this,this.va,3);this.va=[]};
g.h.getDuration=function(){return this.I.getDuration(2,!1)};
g.h.Do=function(){var a=this.j;kF(a)||!tF(a,"impression")&&!tF(a,"start")||tF(a,"abandon")||tF(a,"complete")||tF(a,"skip")||wF(a,"pause");this.C||(a=this.j,kF(a)||!tF(a,"unmuted_impression")&&!tF(a,"unmuted_start")||tF(a,"unmuted_abandon")||tF(a,"unmuted_complete")||wF(a,"unmuted_pause"))};
g.h.Eo=function(){this.xa||this.N||this.Tf()};
g.h.Hh=function(){oF(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();kF(a)||(Dxa(a,0,!0),Exa(a,0,0,!0),nF(a,"unmuted_complete"))}};
g.h.Ig=function(){var a=this.j;!tF(a,"impression")||tF(a,"skip")||tF(a,"complete")||sF(a,"abandon");this.C||(a=this.j,tF(a,"unmuted_impression")&&!tF(a,"unmuted_complete")&&sF(a,"unmuted_abandon"))};
g.h.tq=function(){var a=this.j;lF(a)?nF(a,"skip"):!tF(a,"impression")||tF(a,"abandon")||tF(a,"complete")||nF(a,"skip")};
g.h.Tf=function(){if(!this.N){var a=this.zw();this.j.macros.AD_CPN=a;a=this.j;if(lF(a)){var b=a.j.getCurrentTime(2,!1);rF(a,"impression",b,0)}else nF(a,"impression");nF(a,"start");kF(a)||a.j.isFullscreen()&&sF(a,"fullscreen");this.N=!0;this.C=this.I.isMuted()||0==this.I.getVolume();this.C||(a=this.j,nF(a,"unmuted_impression"),nF(a,"unmuted_start"),kF(a)||a.j.isFullscreen()&&sF(a,"unmuted_fullscreen"))}};
g.h.kh=function(a){a=a||"";var b="",c="",d="";JE(this.I)&&(b=this.I.zb(2).state,this.I.yd()&&(c=this.I.yd().Ih(),null!=this.I.yd().Cj()&&(d=this.I.yd().Cj())));var e=this.j;e.macros=gF(e.macros,xxa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));nF(e,"error");this.C||(e=this.j,e.macros=gF(e.macros,xxa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),nF(e,"unmuted_error"))};
g.h.Cf=function(){};
g.h.eP=function(){this.ea("adactiveviewmeasurable")};
g.h.fP=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.h.gP=function(){this.ea("adoverlaymeasurableimpression")};
g.h.hP=function(){this.ea("adoverlayunviewableimpression")};
g.h.iP=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.h.jP=function(){this.ea("adoverlayviewableimmediateimpression")};
g.h.kP=function(){this.ea("adviewableimpression")};
g.h.dispose=function(){this.isDisposed()||(this.Sk(),this.u.unsubscribe("adactiveviewmeasurable",this.eP,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.fP,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.gP,this),this.u.unsubscribe("adoverlayunviewableimpression",this.hP,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.iP,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.jP,this),this.u.unsubscribe("adviewableimpression",
this.kP,this),delete this.u.j[this.ad.J],g.ev.prototype.dispose.call(this))};
g.h.zw=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.h.SL=function(){return""};g.w(DF,IE);DF.prototype.Gt=function(){return!0};
DF.prototype.Ip=function(){return!1};g.w(EF,NE);g.w(FF,AF);g.h=FF.prototype;g.h.Xr=function(){0<this.B&&this.Tf()};
g.h.Tf=function(){var a=this;this.Sb=new g.L(function(){a.Hh();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.J.executeCommand(c.value,a.macros);a.le("adended")},this.B,this);
g.H(this,this.Sb);this.Sb.start();BF(this,[new EF(this.D.j,this.macros)]);AF.prototype.Tf.call(this)};
g.h.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandoned")};
g.h.Hh=function(){AF.prototype.Hh.call(this)};
g.h.le=function(a){this.Sb&&this.Sb.stop();AF.prototype.le.call(this,a)};g.w(GF,IE);GF.prototype.Gt=function(){return!0};
GF.prototype.Ip=function(){return!1};g.w(HF,IE);HF.prototype.Gt=function(){return!0};
HF.prototype.Ip=function(){return!1};g.w(IF,IE);IF.prototype.Gt=function(){return!0};
IF.prototype.Ip=function(){return!1};Hxa.prototype.create=function(a,b){return a instanceof VE?this.J.create(a,b):a instanceof bF?this.C.create(a,b):a instanceof DF?this.j.create(a,b):a instanceof IF?this.D.create(a,b):a instanceof HF?this.B.create(a,b):a instanceof GF?this.u.create(a,b):null};g.w(JF,AF);g.h=JF.prototype;g.h.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandoned")};
g.h.Do=function(){AF.prototype.Do.call(this);this.ea("adpause",2)};
g.h.Eo=function(){AF.prototype.Eo.call(this);this.ea("adplay",1)};
g.h.Tf=function(){AF.prototype.Tf.call(this);this.B.stop();this.D.T(this.I,g.Gw("bltplayback"),this.ER);var a=new g.Ew(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Rd([a],2);this.ea("adplay",1)};
g.h.Hh=function(){AF.prototype.Hh.call(this);this.le("adended")};
g.h.kh=function(a){AF.prototype.kh.call(this,a);this.le("aderror")};
g.h.Xr=function(){LE(this.I,!1);var a=this.J.u||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.B.start();this.I.playVideo(2);this.I.Oa("onAdIntroStateChange",1)};
g.h.le=function(a){this.B.stop();LE(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");this.I.Oa("onAdEnd");this.ea(a);this.I.Oa("onAdIntroStateChange",0)};
g.h.ER=function(a){"bltcompletion"==a.getId()&&(this.I.kf("bltplayback",2),oF(this.j,this.getDuration()))};var NNa=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"]]);g.w(Ixa,NE);g.w(MF,AF);g.h=MF.prototype;
g.h.Xr=function(){if(this.B)if(this.I.V().experiments.ob("html5_externally_manage_ad_notify_layout")){var a=this.D.j;if(!LF(a)){g.Ov(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.r(this.B.listeners),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;bH(c.j(),d);cH(c.j(),d);INa(c.j(),d)}}else for(a=g.r(this.B.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u=CNa(b.D.get()),bH(b.j(),b.u),cH(b.j(),b.u),INa(b.j(),b.u);0>=this.X&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.X)),
this.Hh());this.Tf();this.I.addEventListener("progresssync",this.ma)};
g.h.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandonedreset",!0)};
g.h.Tf=function(){var a=this.I.V();xx("apbs",void 0,"video_to_ad");g.kx("ad_at","0_0","video_to_ad");AF.prototype.Tf.call(this);this.J=a.S("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.K=this.J+this.X/1E3;g.MC(a)?this.I.Oa("onAdMessageChange",{renderer:this.D.j,startTimeSecs:this.J}):BF(this,[new Ixa(this.D.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Hv(),c=this.D.j.videoAdBreakOffsetMsInt64;b&&g.As("adNotify",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.B)if(this.Z=!0,this.I.V().experiments.ob("html5_externally_manage_ad_notify_layout")){b=this.D.j;if(!LF(b)){g.Ov(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.B.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;dH(d.j(),e);UV(d.j(),e,f)}}else for(a=g.r(this.B.listeners),b=a.next();!b.done;b=
a.next())b=b.value,b.u?b.B?T("Received AdNotify started event before another one exited"):(b.B=b.u,dH(b.j(),b.B)):T("Received AdNotify started event without start requested event");g.V(this.I.zb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Hv(),c=this.D.j.videoAdBreakOffsetMsInt64,b&&g.As("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Hh())};
g.h.Hh=function(){AF.prototype.Hh.call(this);this.le("adended",!0)};
g.h.kh=function(a){g.Ov(Error("Player error during adNotify."));AF.prototype.kh.call(this,a);this.le("aderror",!0)};
g.h.le=function(a,b){(void 0===b?0:b)||g.Ov(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.ma);this.Sk();Kxa(this,a);b="adended"===a||"aderror"===a;this.I.V().experiments.ob("html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&b?this.ea("adnotifyexitednormalorerror"):this.ea(a)};
g.h.dispose=function(){this.I.removeEventListener("progresssync",this.ma);Kxa(this,void 0);AF.prototype.dispose.call(this)};
g.h.Sk=function(){g.MC(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.J}):AF.prototype.Sk.call(this)};RF.prototype.sendAdsPing=function(a){this.C.send(a,Uxa(this),{})};
RF.prototype.Ld=function(a){var b=this;if(a){var c=Uxa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};SF.prototype.get=function(){return this.value};
g.w(TF,SF);TF.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(UF,SF);UF.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(VF,SF);VF.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(WF,SF);WF.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(XF,SF);XF.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(YF,SF);YF.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(ZF,SF);ZF.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w($F,SF);$F.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(aG,SF);aG.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(bG,SF);bG.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(cG,SF);cG.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(dG,SF);dG.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(eG,SF);eG.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(fG,SF);fG.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(gG,SF);gG.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(hG,SF);hG.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(iG,SF);iG.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(jG,SF);jG.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(kG,SF);kG.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(lG,SF);lG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(mG,SF);mG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(nG,SF);nG.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(oG,SF);oG.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(pG,SF);pG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(qG,SF);qG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(rG,SF);rG.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(sG,SF);sG.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(tG,SF);tG.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(uG,SF);uG.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(vG,SF);vG.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(wG,SF);wG.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(xG,SF);xG.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(yG,SF);yG.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(zG,SF);zG.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(AG,SF);AG.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(BG,SF);BG.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(CG,SF);CG.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(DG,SF);DG.prototype.getType=function(){return"metadata_type_dai"};
g.w(EG,SF);EG.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(FG,SF);FG.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(GG,SF);GG.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(HG,SF);HG.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(IG,SF);IG.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(JG,SF);JG.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(KG,SF);KG.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(LG,SF);LG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(MG,SF);MG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(NG,SF);NG.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(OG,SF);OG.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(PG,SF);PG.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w(QG,SF);QG.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(RG,SF);RG.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(SG,SF);SG.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};aya.prototype.Ld=function(a){this.j.Ld(a)};g.w(TG,g.ev);TG.prototype.getProgressState=function(){return this.B};
TG.prototype.start=function(){this.C=Date.now();cya(this,{current:this.j/1E3,duration:this.u/1E3});this.Sb.start()};
TG.prototype.stop=function(){this.Sb.stop()};g.w(UG,NE);g.w(VG,g.ev);VG.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())};
VG.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
VG.prototype.Qb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.j+=b;this.j>=this.durationMs?(this.j=this.durationMs,this.timer.stop(),this.C(this.j),this.D()):this.C(this.j)};g.w(YG,AF);g.h=YG.prototype;g.h.Xr=function(){this.Tf()};
g.h.Tf=function(){var a=this,b=this.D.j;if(g.MC(this.I.V()))eya(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(BF(this,[new UG(b)]),this.D.j.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new VG(c,function(d){var e={current:d/1E3,duration:c/1E3};CF(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};dya(a);a.I.Oa("onAdPlaybackProgress",d)});
g.H(this,this.K);this.K.start()}WG();AF.prototype.Tf.call(this)};
g.h.getDuration=function(){return this.D.u};
g.h.Do=function(){AF.prototype.Do.call(this);this.B&&this.B.stop()};
g.h.Eo=function(){AF.prototype.Eo.call(this);this.B&&this.B.start()};
g.h.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandoned")};
g.h.tq=function(){AF.prototype.tq.call(this);this.le("adended")};
g.h.kh=function(a){this.I.V().experiments.ob("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(AF.prototype.kh.call(this,a),this.le("aderror"))};
g.h.le=function(a){this.Sk();this.ea(a)};
g.h.Cf=function(a){switch(a){case "skip-button":this.tq();break;case "survey-submit":this.le("adended")}};
g.h.Sk=function(){g.MC(this.I.V())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):AF.prototype.Sk.call(this)};g.w(ZG,NE);g.w($G,AF);$G.prototype.Xr=function(){this.Tf()};
$G.prototype.Tf=function(){WG();BF(this,[new ZG(this.B.j,this.macros)]);AF.prototype.Tf.call(this)};
$G.prototype.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandoned")};
$G.prototype.kh=function(a){AF.prototype.kh.call(this,a);this.le("aderror")};g.w(aH,AF);g.h=aH.prototype;g.h.Fw=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:ixa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.h.Xr=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Hg();a&&b&&this.I.V().Z.add(b,{Yv:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{yea(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Rg("//tpc.googlesyndication.com/sodar/%{path}");g.Ov(new g.Fs("Load Sodar Error.",d instanceof Pg,d.constructor===Pg,{Message:e.message,"Escaped injector basename":g.Hh(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Pg)throw e;}}catch(e){g.S(e)}LE(this.I,!1);a=
oxa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.MC(b)||g.YC(b)?3:1;b=this.I.getVideoData(1);b.xg&&(a.ctrl=b.xg);b.Og&&(a.ytr=b.Og);b.jm&&(a.ytrcc=b.jm);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.wi&&(a.vss_credentials_token_type=b.wi),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))};
g.h.Do=function(){AF.prototype.Do.call(this);this.ea("adpause",2)};
g.h.Eo=function(){AF.prototype.Eo.call(this);this.ea("adplay",1)};
g.h.Tf=function(){AF.prototype.Tf.call(this);this.J.stop();this.Z.T(this.I,g.Gw("bltplayback"),this.FR);var a=new g.Ew(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Rd([a],2);a=hH(this);this.D.ya=a;if(this.I.isMuted()){a=this.j;var b=this.I.isMuted();lF(a)||nF(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=gya(this);for(var c=this.B,d=fya(this),e=g.r(this.K.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.Hg(),q=l.getVideoUrl();p&&n.push(new dG(p));q&&n.push(new eG(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new gG(q)),(q=q.elementId)&&n.push(new pG(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new hG(p));l.j.adNextParams&&n.push(new VF(l.j.adNextParams||""));(p=l.xa)&&n.push(new WF(p));(p=mw(f.N.get(),2))?(n.push(new $F({channelId:p.tj,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new aG(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new cG(l.B));n.push(new xG(l.u));n.push(new fG(a));n.push(new tG({current:this}));p=l.Ia;null!=p.kind&&n.push(new bG(p));(p=l.Ea)&&n.push(new KG(p));void 0!==m&&n.push(new LG(m));f.j?T(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):hya(f,k,n,!0,l.j.adLayoutLoggingData)}}this.I.Oa("onAdStart",
hH(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.h.FR=function(a){"bltcompletion"==a.getId()&&(this.I.kf("bltplayback",2),oF(this.j,this.getDuration()),gH(this,"adended"))};
g.h.Hh=function(){AF.prototype.Hh.call(this);this.le("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.h.Ig=function(){AF.prototype.Ig.call(this);this.le("adabandoned")};
g.h.VB=function(){var a=this.j;kF(a)||sF(a,"clickthrough");this.C||(a=this.j,kF(a)||sF(a,"unmuted_clickthrough"))};
g.h.Hx=function(){this.tq()};
g.h.tq=function(){AF.prototype.tq.call(this);this.le("adended")};
g.h.kh=function(a){AF.prototype.kh.call(this,a);this.le("aderror")};
g.h.le=function(a){this.J.stop();LE(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");gH(this,a);this.I.Oa("onAdEnd",hH(this));this.ea(a)};
g.h.Sk=function(){var a=this.I.V();g.MC(a)&&(g.YC(a)||a.S("enable_topsoil_wta_for_halftime")||a.S("enable_topsoil_wta_for_halftime_live_infra")||g.MC(a))?this.I.Oa("onAdInfoChange",null):AF.prototype.Sk.call(this)};
g.h.zP=function(){this.xV&&this.I.playVideo()};
g.h.xV=function(){return 2==this.I.getPlayerState(2)};
g.h.SL=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=oxa(this.B);d=this.I.Fs(d,2,c,a,b);a+c>b&&this.I.Lu(d,b-a);return d};
g.h.dispose=function(){ixa(this.I)&&!this.X&&this.I.stopVideo(2);gH(this,"adabandoned");AF.prototype.dispose.call(this)};iH.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.j[b];c?b=c:(c={gw:null,tN:-Infinity},b=this.j[b]=c);c=a.startSecs+a.Gu/1E3;if(!(c<b.tN))if(b.tN=c,b.gw){if(c<b.gw.end){a:{c=b.gw;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.gw.end=a,this.u.nO(a))}}else if(a=
jya(a,this.B))c=a.pV,b.gw=a.ZT,this.u.XG(c)};
iH.prototype.updateTime=function(){};lH.prototype.Wf=function(a){var b=this.j;g.mi(function(){return b.Wf(a,1)})};nH.prototype.Is=function(a,b,c,d,e){var f=this;rya(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.Be=!1;f.u=!1;f.C=!b&&0===c})};
nH.prototype.reset=function(){return new nH(this.I)};var t0={},u0=(t0.BUFFERING="buffering-mode",t0.CUED="cued-mode",t0.ENDED="ended-mode",t0.PAUSED="paused-mode",t0.PLAYING="playing-mode",t0.SEEKING="seeking-mode",t0.UNSTARTED="unstarted-mode",t0);var DTa,v0,wya;
DTa={B0:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Z0:"AUTHENTICATION_MALFORMED",b1:"AUTHENTICATION_MISSING",j1:"BAD_REQUEST",z1:"CAST_SESSION_DEVICE_MISMATCHED",A1:"CAST_SESSION_VIDEO_MISMATCHED",B1:"CAST_TOKEN_EXPIRED",C1:"CAST_TOKEN_FAILED",D1:"CAST_TOKEN_MALFORMED",E1:"CGI_PARAMS_MALFORMED",F1:"CGI_PARAMS_MISSING",o5:"DEVICE_FALLBACK",S5:"GENERIC_WITH_LINK_AND_CPN",T5:"ERROR_HDCP",U5:"LICENSE",W5:"VIDEO_UNAVAILABLE",j6:"FORMAT_UNAVAILABLE",x6:"GEO_FAILURE",O6:"HTML5_AUDIO_RENDERER_ERROR",
P6:"GENERIC_WITHOUT_LINK",Q6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",R6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",S6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",t7:"INVALID_DRM_MESSAGE",hca:"PURCHASE_NOT_FOUND",ica:"PURCHASE_REFUNDED",vca:"RENTAL_EXPIRED",Dca:"RETRYABLE_ERROR",Sca:"SERVER_ERROR",Oda:"STOPPED_BY_ANOTHER_PLAYBACK",Sda:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Tda:"STREAMING_NOT_ALLOWED",Uda:"STREAM_LICENSE_NOT_FOUND",hea:"TOO_MANY_REQUESTS",iea:"TOO_MANY_REQUESTS_WITH_LINK",
jea:"TOO_MANY_STREAMS_PER_ENTITLEMENT",lea:"TOO_MANY_STREAMS_PER_USER",cfa:"UNSUPPORTED_DEVICE",pfa:"VIDEO_FORBIDDEN",sfa:"VIDEO_NOT_FOUND"};v0={};
g.XL=(v0.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.",v0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",v0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",v0.LICENSE="Sorry, there was an error licensing this video.",v0.VIDEO_UNAVAILABLE=
"Video unavailable",v0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",v0.GEO_FAILURE="This video isn't available in your country.",v0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",v0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",v0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",v0.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",
v0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",v0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",v0.PURCHASE_NOT_FOUND="This video requires payment.",v0.PURCHASE_REFUNDED="This video's purchase has been refunded.",v0.RENTAL_EXPIRED="This video's rental has expired.",v0.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",v0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
v0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",v0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",v0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",v0.SERVER_ERROR="There was an internal server error. Please try again later.",v0.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",v0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
v0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",v0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",v0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",v0.TOO_MANY_REQUESTS="Please log in to watch this video.",v0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",v0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
v0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",v0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",v0.VIDEO_FORBIDDEN="Access to this video is forbidden.",v0.VIDEO_NOT_FOUND="This video can not be found.",v0);
wya={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(pH,g.G);g.h=pH.prototype;g.h.Zy=function(){return this.u};
g.h.Ds=function(a){var b="";a&&(zya(this,a),b=a.j);if(!this.Bf()||b)b&&this.Bf()!==b&&(this.fz(b),delete this.B),ETa||a&&a.u||this.load(),this.K||(this.addEventListener("volumechange",this.xL),this.K=!0)};
g.h.oq=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.Ke();a=window.MediaSource?new wA(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new wA(new window.WebKitMediaSource,void 0,!1):new wA(void 0,a,!1);this.Ds(a.mx);return a};
g.h.playVideo=function(){var a=this;this.Uf()&&this.seekTo(0);!this.Bf()&&this.u&&(g.dr(Error("playVideo without src")),this.fz(this.u.j),this.u.u||this.load());var b=this.play();!b&&FTa&&iM&&7<=(GE||0)&&g.Poa(this,"playing",function(){g.tr(function(){yya(a,a.getCurrentTime(),0)},500)});
return b};
g.h.seekTo=function(a){0<this.Ih()&&(GTa&&iM&&4>GE&&(a=Math.max(.1,a)),this.ez(a))};
g.h.stopVideo=function(){!this.B&&this.Bf()&&(HTa&&cs&&0<this.getCurrentTime()&&this.seekTo(0),this.TB(),this.load(),zya(this,null))};
g.h.nt=function(){var a=this.jg();return 0<qA(a)&&this.getDuration()?pA(a,this.getCurrentTime()):0};
g.h.mq=function(){var a=this.getDuration();return Infinity===a?1:a?this.nt()/a:0};
g.h.Nb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:mA(this.qq(),",",3),vbu:mA(this.jg()),vpa:""+ +this.Pl(),vsk:""+ +this.uv(),ven:""+ +this.Uf(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ih(),vns:""+this.rA(),vec:""+this.Cj(),vemsg:this.He(),vvol:""+this.getVolume(),vdom:""+ +this.TF(),vsrc:""+ +!!this.Bf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.C.Pa(a,b,!1,this);this.ME(a)};
g.h.removeEventListener=function(a,b){this.C.wc(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.C.dispatchEvent(a)};
g.h.KE=function(){this.J=!1};
g.h.IE=function(){this.J=!0;this.xu(!0)};
g.h.xL=function(){this.J&&!this.qA()&&this.xu(!0)};
g.h.equals=function(a){return!!a&&a.Ke()===this.Ke()};
g.h.ra=function(){this.K&&this.removeEventListener("volumechange",this.xL);g.G.prototype.ra.call(this)};
var ETa=!1,HTa=!0,FTa=!0,GTa=!0;g.h=g.tH.prototype;g.h.getData=function(){return this.stateData};
g.h.Jc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.h.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.h.isError=function(){return g.V(this,128)};
g.h.isSuspended=function(){return g.V(this,512)};
g.h.toString=function(){return"PSt."+this.state.toString(16)};g.w(DH,g.ev);g.h=DH.prototype;g.h.yq=function(){var a=this.u;return a.u instanceof VE||a.u instanceof bF||a.u instanceof WE};
g.h.XC=function(){return this.u.u.Ip()};
g.h.mJ=function(){return this.u.j};
g.h.YC=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.h.nJ=function(){return cF(this.u)};
g.h.xM=function(a){if(!Jw(a)){this.X&&(this.xa=this.I.isAtLiveHead(),this.va=Math.ceil(g.Va()/1E3));var b=new lH(this.dg);a=lya(a);b.Wf(a)}this.oJ()};
g.h.fN=function(){return!0};
g.h.No=function(){return this.K instanceof bF};
g.h.gx=function(){return this.K instanceof VE};
g.h.oJ=function(){var a=this.dg;this.fN()&&(a.u&&GH(a,!1),a.u=this,this.yq()&&eAa(a));sya(this.D);this.VO()};
g.h.VO=function(){this.K?this.vv(this.K):HH(this)};
g.h.onAdEnd=function(a,b){b=void 0===b?!1:b;this.aj(0);HH(this,b)};
g.h.aO=function(){this.onAdEnd()};
g.h.gW=function(){nF(this.j.j,"active_view_measurable")};
g.h.jW=function(){var a=this.j.j;kF(a)||vF(a)||nF(a,"active_view_fully_viewable_audible_half_duration")};
g.h.mW=function(){};
g.h.nW=function(){};
g.h.oW=function(){};
g.h.pW=function(){};
g.h.sW=function(){var a=this.j.j;kF(a)||vF(a)||nF(a,"active_view_viewable")};
g.h.hW=function(){var a=this.j.j;kF(a)||vF(a)||nF(a,"audio_audible")};
g.h.iW=function(){var a=this.j.j;kF(a)||vF(a)||nF(a,"audio_measurable")};
g.h.gM=function(){return this.gx()?[this.tA()]:[]};
g.h.Tc=function(a){if(null!==this.j){this.ma||(a=new g.xF(a.state,new g.tH),this.ma=!0);var b=a.state;if(g.zF(a,2))this.j.Hh();else{var c=a;(this.I.V().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.Jc()&&!c.Wo.Jc():c.state.Jc())?(vya(this.D),this.j.Eo()):b.isError()?this.j.kh(b.getData().errorCode):g.zF(a,4)&&(this.Z||this.j.Do())}if(null!==this.j){if(g.zF(a,16)&&(b=this.j.j,!(kF(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.V().S("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.Zw()){var d=b.B.I.V().S("html5_dai_enable_active_view_creating_completed_adblock");jia(c.J,d)}b.ad.D.seek=!0}0>yF(a,4)&&!(0>yF(a,2))&&(b=this.j,c=b.j,kF(c)||wF(c,"resume"),b.C||(b=b.j,kF(b)||wF(b,"unmuted_resume")));!this.I.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.zF(a,512)&&!g.BH(a.state)&&oH(this.D)}}};
g.h.onVideoDataChange=function(){return this.daiEnabled?Cya(this):!1};
g.h.resume=function(){this.j&&this.j.zP()};
g.h.Tn=function(){this.j&&this.j.le("adended")};
g.h.Xk=function(){this.Tn()};
g.h.aj=function(a){this.dg.aj(a)};
g.h.GR=function(a){this.dg.j.Oa("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.j.Cf(a)};
g.h.eM=function(){return 0};
g.h.fM=function(){return 1};
g.h.vI=function(a){this.daiEnabled&&this.u.J&&this.u.j.start<=a&&a<FH(this)&&this.I.cq(a,this.u.j.end)};
g.h.vv=function(a){g.zf(this.j);this.j=a=this.Sp.create(a,fF(vxa(this.u)),this.u.j.j);this.hG(a);a.xa?a.kh("ui_unstable"):a.Xr();Dya(this,!1)};
g.h.hG=function(a){a.subscribe("adabandoned",g.Ua(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ua(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.gW,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.aO,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.jW,this);a.subscribe("adoverlaymeasurableimpression",this.mW,this);a.subscribe("adoverlayunviewableimpression",this.nW,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.oW,this);a.subscribe("adoverlayviewableimmediateimpression",this.pW,this);a.subscribe("adpause",this.CF,this);a.subscribe("adplay",this.CF,this);a.subscribe("adunstarted",this.CF,this);a.subscribe("onAdUxUpdate",this.GR,this);a.subscribe("adviewableimpression",this.sW,this);a.subscribe("adaudioaudible",this.hW,this);a.subscribe("adaudiomeasurable",this.iW,this)};
g.h.CF=function(a){this.aj(a)};
g.h.tA=function(){return this.K};
g.h.isLiveStream=function(){return this.X};
g.h.reset=function(){return new DH(this.dg,this.I,this.D.reset(),this.u,this.mm,this.Rs,this.Sp,this.daiEnabled)};
g.h.ra=function(){g.zf(this.j);this.j=null;g.ev.prototype.ra.call(this)};Iya.prototype.create=function(a){return(a.u instanceof WE?this.B:""===a.D?this.j:this.u)(a)};IH.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Hv(void 0===c?0:c))?(fqa(this.client,c,g.Dv(a),b),b=!0):b=!1:b=!1;return b};LH.prototype.handleResponse=function(a,b){var c,d;b=(null==(c=b.ul.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
LH.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Oya(this,b)};var ITa=window.location.hostname.split(".").slice(-2).join("."),w0;MH.getInstance=function(){w0=g.Ka("yt.clientLocationService.instance");w0||(w0=new MH,g.Ja("yt.clientLocationService.instance",w0,void 0));return w0};
MH.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.j.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.j.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
MH.prototype.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=Pya(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Mr("YT_CL",JSON.stringify({loctok:a}),15552E3,ITa,!0))};
MH.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Q("web_enable_browser_geolocation_api")&&!g.Q("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Q("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
MH.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};OH.prototype.lA=function(a,b){a={};var c=Ii([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.P("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Q("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in Vq||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Vq&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var QH;g.w(PH,OH);PH.prototype.lA=function(a,b){a=OH.prototype.lA.call(this,a,b);return Object.assign({},a,this.jr)};var cza=/[&\?]action_proxy=1/,bza=/[&\?]token=([\w-]*)/,dza=/[&\?]video_id=([\w-]*)/,eza=/[&\?]index=([\d-]*)/,fza=/[&\?]m_pos_ms=([\d-]*)/,iza=/[&\?]vvt=([\w-]*)/,Xya="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(" "),gza="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(" "),Zya={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"},$ya={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},hza={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};SH.prototype.Ot=function(a){this.player.Ki().tick(a)};
SH.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return UH(this,a,b);var d=1===this.j;d&&this.Ot("a_bid_s");var e=Sya();if(null!==e)return d&&this.Ot("a_bid_f"),UH(this,a,b,e);e=Tya();d&&ui(e,function(){c.Ot("a_bid_f")});
return e.then(function(f){return UH(c,a,b,f)})};
SH.prototype.reset=function(){this.u=this.j=1};g.w(VH,g.ev);g.h=VH.prototype;g.h.mJ=function(){return this.j.j};
g.h.YC=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.h.nJ=function(){return cF(this.j)};
g.h.yq=function(){return!1};
g.h.XC=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.xM=function(a){var b=this;T("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.YC()||(c=lya(a));this.j.B=1;ui(this.C.fetch(this.j.D,{ew:this.j.C||void 0,Dd:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=jza(b,d);var f=b.B;f.j&&d.isEmpty&&pya("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.hN||(b.j.B=2,(new lH(b.u)).Wf(e),d.isEmpty||rqa(b.J,d.fm))}},function(){(new lH(b.u)).Wf(c);
var d=b.B;d.j&&pya("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.YC()&&hI(b.u)})}};
g.h.oJ=function(){};
g.h.vI=function(){};var mza=Object.freeze([DF,GF,bF,IF,VE]);g.w(WH,DH);g.h=WH.prototype;g.h.gM=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.h.fN=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Gt()})};
g.h.No=function(){return this.J instanceof bF||this.J instanceof IF};
g.h.gx=function(){return this.J instanceof VE||this.J instanceof GF};
g.h.VO=function(){this.daiEnabled?JE(this.I)&&Cya(this):lza(this)};
g.h.vv=function(a){var b=kza(a);this.J&&b&&this.N!==b&&(b?eAa(this.dg):gAa(this.dg),this.N=b);this.J=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
DH.prototype.vv.call(this,a)};
g.h.hG=function(a){var b=this;DH.prototype.hG.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void HH(b)})};
g.h.Xk=function(){this.C=this.B.j.length;this.j&&this.j.le("adended");HH(this)};
g.h.Tn=function(){this.onAdEnd()};
g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.aj(0),a?HH(this,b):lza(this))};
g.h.aO=function(){if(1==this.B.u)this.J instanceof HF&&g.Ov(Error("AdNotify error with FailureMode.TERMINATING")),HH(this);else this.onAdEnd()};
g.h.tA=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.h.yq=function(){return this.N};
g.h.XC=function(){return this.B.j.every(function(a){return a.Ip()})};
g.h.reset=function(){return new WH(this.dg,this.I,this.D.reset(),this.u,this.mm,this.Rs,this.Sp,this.daiEnabled)};
g.h.eM=function(){return this.C};
g.h.fM=function(){return this.B.j.length};nza.prototype.cM=function(){return this.j};g.w(oza,WE);g.w(qza,WE);rza.prototype.create=function(a,b){function c(l){return new VE(l,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,k=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new bF(f):null!=k?new qza(k,c,this.j):null!=a?new oza(a,c):null};sza.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.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new xqa(k.B,k.u,k.daiEnabled,k.C),m=k.Kd;m&&(l.Kd=new ww(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.Gu));k.j&&(l.j=k.j);l.visible=k.visible;k=l;k.Kd=f;e.push(tza(this,a[0],c,k));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(tza(this,d.value,c,b)),c++;return e};g.w(XH,g.G);XH.prototype.addEventListener=function(a,b){this.j=b};
XH.prototype.removeEventListener=function(){this.j=null};
g.w(YH,g.G);YH.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
YH.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.w(wza,g.G);var ZH=null,yza=null,$H=null,aI=null,bI=null;g.Ja("yt.www.ads.eventcache.getLastCompanionData",function(){return ZH},void 0);
g.Ja("yt.www.ads.eventcache.getLastPlaShelfData",function(){return yza},void 0);
g.Ja("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return $H},void 0);
g.Ja("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return aI},void 0);
g.Ja("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return bI},void 0);var Kza={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(eI,g.G);eI.prototype.ra=function(){this.ke.clear();g.G.prototype.ra.call(this)};
eI.prototype.Ld=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
eI.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&Lza(this,"loggingUrls",a.loggingUrls,b,c);a=g.r(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Hza(this,e):"confirmDialogEndpoint"===d?Iza(this,e):Kza.hasOwnProperty(d)||Lza(this,d,e,b,c)}};g.w(Qza,g.G);g.w(gI,g.ev);g.h=gI.prototype;g.h.EF=function(){return!Zza(this,cAa(this))};
g.h.zw=function(){return this.ya};
g.h.ra=function(){this.ma=!0;g.dv(this.C);if(KE(this.j)){var a=Tza(this.j);a.removeEventListener("updateKevlarOrC3Companion",xza);a.removeEventListener("onPlaShelfInfoCardsReady",zza);a.removeEventListener("updateEngagementPanelAction",Aza);a.removeEventListener("changeEngagementPanelVisibility",Bza);a.removeEventListener("scrollToEngagementPanel",Cza);window.removeEventListener("yt-navigate-start",Dza);bI=aI=$H=ZH=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())fAa(this,b.value);
GH(this,!1);this.Tp.clear();this.X=[];this.K.clear();g.zf(this.Z);this.Z=new Map;g.zf(this.J);this.J=new Map;this.B.clear();g.ev.prototype.ra.call(this)};
g.h.JG=function(a){if(a instanceof Iw&&!a.B&&(!Uqa(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.V(this.j.zb(1),32))this.K.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.ob("enable_eviction_protection_for_bulleit")?this.u?this.u.XC():1:1)?b.xM(a):a.deactivate())}};
g.h.TW=function(a){a instanceof Iw&&(a.B&&(a.B=!1),this.K.delete(a))};
g.h.XG=function(){};
g.h.nO=function(a){var b=1E3*a;this.u&&this.u.vI(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.vI(b);g.vc(this.Ia.j,1E3*a)};
g.h.zl=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.gx()?a.I.Lc().playVideo():a.No()&&a.j.Eo());break;case "control_pause":this.u&&(a=this.u,a.gx()?a.I.Lc().pauseVideo():a.No()&&a.j.Do())}};
g.h.IR=function(a){this.u&&this.u.Tc(a)};
g.h.EW=function(a){0>yF(a,16)&&(this.K.forEach(this.JG,this),this.K.clear())};
g.h.WY=function(){if(this.u)this.u.onVideoDataChange()};
g.h.ZY=function(){if(JE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&CF(b.j,a)}};
g.h.eW=function(){this.Sa=!0;if(this.u){var a=this.u;a.j&&a.j.Ig()}};
g.h.qW=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.h.aZ=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.I.isMuted();lF(b)||nF(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),nF(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.h.dX=function(a){if(this.u){var b=this.u.j,c=b.j;kF(c)||sF(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,kF(b)||sF(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.h.Wf=function(a,b){this.j.Wf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Tp.delete(b),this.B.delete(b)};
g.h.A_=function(){for(var a=[],b=g.r(this.Tp),c=b.next();!c.done;c=b.next())c=c.value,Jw(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||PU(b,"cuerangemarkersupdated",a)};
g.h.aj=function(a){this.j.aj(a);switch(a){case 1:this.HA=1;break;case 0:this.HA=0}};
g.h.XH=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.N:!1};
g.h.Tn=function(){this.u&&this.u.yq()&&this.u.Tn()};
g.h.Xk=function(){this.u&&this.u.yq()&&this.u.Xk()};
g.h.bA=function(){};
g.h.Lz=function(){};
g.h.Qb=function(a){if(this.u){var b=this.u;b.j&&CF(b.j,a)}};
g.h.No=function(){return JE(this.j)&&!!this.u&&this.u.No()};
g.h.executeCommand=function(a,b,c){this.ib.executeCommand(a,b,bAa(this,void 0===c?null:c))};
g.h.isDaiEnabled=function(){return!1};
g.h.cM=function(){return this.xa};
g.h.dM=function(){return this.Ea};g.w(iI,g.G);iI.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.w(jI,iI);g.w(jAa,g.G);var lAa=1;g.w(g.lI,g.G);g.h=g.lI.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.cD&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Wh(a.G);if(c){if(c=mI(this,e,"class",c))nI(this,e,"class",c),this.vb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.vb[f.value]=e;nI(this,e,"class",d.join(" "))}d=a.oa;c=a.U;if(d)b=mI(this,e,"child",d),void 0!==b&&e.appendChild(g.Xh(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=mI(this,e,"child",f),null!=f&&e.appendChild(g.Xh(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Jb&&(k=kI(),f.id=k,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","#"+k),g.Zh(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],nI(this,b,c,"string"===typeof f?
mI(this,b,c,f):f);return e};
g.h.Da=function(a){return this.vb[a]};
g.h.Ba=function(a,b){"number"===typeof b?g.Zh(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.$h(this.element)};
g.h.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Na(c,a[c])};
g.h.Na=function(a,b){(a=this.Pd["{{"+a+"}}"])&&nI(this,a[0],a[1],b)};
g.h.ra=function(){this.vb={};this.Pd={};this.detach();g.G.prototype.ra.call(this)};g.w(g.W,g.lI);g.h=g.W.prototype;g.h.Bd=function(a,b){this.Na(b||"content",a)};
g.h.show=function(){this.ub||(g.Dm(this.element,"display",""),this.ub=!0)};
g.h.hide=function(){this.ub&&(g.Dm(this.element,"display","none"),this.ub=!1)};
g.h.kc=function(a){this.va=a};
g.h.Pa=function(a,b,c){return this.T(this.element,a,b,c)};
g.h.T=function(a,b,c,d){c=(0,g.Ta)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.h.wc=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.h.focus=function(){var a=this.element;di(a);a.focus()};
g.h.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.lI.prototype.ra.call(this)};g.w(g.pI,g.W);g.pI.prototype.subscribe=function(a,b,c){return this.Wa.subscribe(a,b,c)};
g.pI.prototype.unsubscribe=function(a,b,c){return this.Wa.unsubscribe(a,b,c)};
g.pI.prototype.Nf=function(a){return this.Wa.Nf(a)};
g.pI.prototype.ea=function(a){return this.Wa.ea.apply(this.Wa,[a].concat(g.u(g.Da.apply(1,arguments))))};var JTa=new WeakSet;g.w(qI,g.pI);g.h=qI.prototype;g.h.bind=function(a){if(!this.Sa&&a.renderer){var b=Object.assign({},iAa(this.api,this.fb),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.Sa=a;this.element.setAttribute("id",this.Sa);this.ib&&g.M(this.element,this.ib);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.ah(this.element,this.K)};
g.h.clear=function(){};
g.h.hide=function(){g.pI.prototype.hide.call(this);null!=this.K&&this.bb(this.element,!1)};
g.h.show=function(){g.pI.prototype.show.call(this);if(!this.jb){this.jb=!0;var a=this.X&&this.X.impressionCommand;a&&this.HH(a,null)}null!=this.K&&this.bb(this.element,!0)};
g.h.onClick=function(a){if(this.K&&!JTa.has(a)){var b=this.element;this.api.Ho(b)&&this.ub&&this.api.xb(b,this.j);JTa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.dP(a),this.HH(a,this.hM())};
g.h.dP=function(a){return a};
g.h.hM=function(){return null};
g.h.LR=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.J=kAa(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.N=Infinity,b.X=Infinity):(b.N=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.h.KR=function(a){var b=this.ma;a=a.changedTouches.item(0);if(Tb()&&!(0<=g.zb(Wb(),8))||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.X,2)>Math.pow(5,2))b.C=!0};
g.h.JR=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&kAa(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.h.HH=function(a){RI(this.kb,a,this.macros)};
g.h.ah=function(a,b){this.api.ah(a,this);this.api.gk(a,b)};
g.h.bb=function(a,b){this.api.Ho(a)&&this.api.bb(a,b,this.j)};
g.h.ra=function(){this.clear(null);this.wc(this.Ya);for(var a=g.r(this.xa),b=a.next();!b.done;b=a.next())this.wc(b.value);g.pI.prototype.ra.call(this)};g.w(FI,qI);
FI.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Ov(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.M(this.element,a);null!=b.text&&(a=g.Lw(b.text),g.nb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.pI({G:"span",L:"ytp-ad-button-text",oa:a}),g.H(this,this.C),this.C.Ba(this.element)));null!=b.icon&&(b=EI(b.icon),
null!=b&&(this.B=new g.pI({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.Zh(this.element,this.B.element,0):this.B.Ba(this.element))}};
FI.prototype.clear=function(){this.hide()};
FI.prototype.onClick=function(a){qI.prototype.onClick.call(this,a);a=g.r(FAa(this));for(var b=a.next();!b.done;b=a.next())RI(this.kb,b.value,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(GI,g.G);GI.prototype.ra=function(){this.u&&g.mu(this.u);this.j.clear();HI=null;g.G.prototype.ra.call(this)};
GI.prototype.register=function(a,b){b&&this.j.set(a,b)};
var HI=null;g.w(JI,qI);
JI.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new FI(this.api,this.fb,this.layoutId,this.j,this.kb),g.H(this,this.button),this.button.init(ME("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Lw(a)),this.button.Ba(this.element),this.J&&!g.wp(this.button.element,"ytp-ad-clickable")&&g.M(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.pI({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.pI({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ba(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ba(this.element),b=II(a),g.Zh(this.B.element,b,0)),this.show())};
JI.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();qI.prototype.hide.call(this)};
JI.prototype.show=function(){this.button&&this.button.show();qI.prototype.show.call(this)};g.w(LI,qI);LI.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&KI(a)||"";g.nb(b)?(this.api.V().S("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Ov(Error("Found AdImage without valid image URL")):(this.u?g.Dm(this.element,"backgroundImage","url("+b+")"):Sh(this.element,{src:b}),Sh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
LI.prototype.clear=function(){this.hide()};g.w(MI,qI);g.h=MI.prototype;g.h.hide=function(){qI.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.C=document.activeElement;qI.prototype.show.call(this);this.D.focus()};
g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):JAa(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.dv(this.u);this.hide()};
g.h.HG=function(){this.hide()};
g.h.fD=function(){var a=this.B.cancelEndpoint;a&&RI(this.kb,a,this.macros);this.hide()};
g.h.IG=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&RI(this.kb,a,this.macros);this.hide()};g.w(NI,qI);g.h=NI.prototype;
g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(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.M(this.C,a)}a={};b.defaultText?
(c=g.Lw(b.defaultText),g.nb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Pm(this.ya,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=EI(b.defaultIcon),this.Na("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=EI(b.toggledIcon),this.Na("toggledIconTemplateSpec",c)):(g.Pm(this.J,!0),g.Pm(this.D,!1)),g.Pm(this.u,!1)):g.Pm(this.Z,!1);g.bg(a)||this.update(a);b.isToggled&&
(g.M(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));OI(this);this.T(this.element,"change",this.zJ);this.show()}};
g.h.onClick=function(a){0<this.xa.length&&(this.toggleButton(!this.isToggled()),this.zJ());qI.prototype.onClick.call(this,a)};
g.h.zJ=function(){g.O(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(KAa(this,this.isToggled())),b=a.next();!b.done;b=a.next())RI(this.kb,b.value,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);OI(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.O(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;OI(this)};
g.h.isToggled=function(){return this.u.checked};g.w(PI,bv);PI.prototype.N=function(a){if(Array.isArray(a)){a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Kw&&this.C(b)}};g.w(QI,qI);g.h=QI.prototype;g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.S(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Ov(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Ov(Error("AdFeedbackRenderer.title was not set.")),OAa(this,b)):g.S(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){vu(this.J);vu(this.N);this.D.length=0;this.hide()};
g.h.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();qI.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;qI.prototype.show.call(this);this.J.focus()};
g.h.iO=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.h.VY=function(){this.hide()};
PAa.prototype.isChecked=function(){return this.B.checked};g.w(SI,MI);SI.prototype.HG=function(a){MI.prototype.HG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
SI.prototype.fD=function(a){MI.prototype.fD.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
SI.prototype.IG=function(a){MI.prototype.IG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(TI,qI);g.h=TI.prototype;
g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.J=b;if(null==b.dialogMessage&&null==b.title)g.S(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Ov(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,
this.u),this.u.init(ME("button"),a,this.macros),this.u.Ba(this.element);b.title&&(a=g.Lw(b.title),this.Na("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=II(a[c]);if(!g.nb(d.textContent)){var e=Vh("LI");e.appendChild(d);this.Ea.appendChild(e)}}else g.Pm(this.Ea,!1);b.dialogMessage&&(a=II(b.dialogMessage,!0),this.Ja.appendChild(a));b.confirmLabel&&(a=g.Lw(b.confirmLabel),this.Na("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Ov(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?QAa(this,a):c&&RAa(this,c),this.C=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(ME("button"),b,this.macros),this.C.Pa("click",this.zX,this),
this.C.Ba(this.Qa)));SAa(this)}};
g.h.clear=function(){vu(this.N);this.hide()};
g.h.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();qI.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.h.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ia){for(var a=g.r(this.J&&this.J.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())RI(this.kb,b.value,this.macros);this.Ia=!0}this.Z=document.activeElement;qI.prototype.show.call(this);this.N.focus()};
g.h.AJ=function(){this.J&&this.J.confirmServiceEndpoint&&RI(this.kb,this.J.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.h.zX=function(){var a=this.B?this.B:this.D;a&&!a.ub&&(this.hide(),a.show())};g.w(UI,JI);UI.prototype.init=function(a,b,c){JI.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(VAa(this,a,c),this.show())};
UI.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();JI.prototype.hide.call(this)};
UI.prototype.show=function(){this.button&&this.button.show();JI.prototype.show.call(this)};
UI.prototype.clear=function(){this.hide()};g.w(VI,qI);VI.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.ci(this.element,rI(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?KI(a):"",c=(c=this.api.getVideoData(1))&&c.Hk,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()};
VI.prototype.isTemplated=function(){return this.u.isTemplated||!1};
VI.prototype.clear=function(){this.hide()};var ZAa={seekableStart:0,seekableEnd:1,current:0};g.w(XI,qI);XI.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var k=g.r(f);f=k.next().value;k=ma(k);return a.apply(f,k)}
function d(f){f=g.r(f);f.next();f=ma(f);return b(e,f)}
b=void 0===b?Pia:b;var e=g.Sa(a);return function(){var f=g.Da.apply(0,arguments),k=this||g.C,l=HSa.get(k);l||(l={},HSa.set(k,l));return Ac(l,[this].concat(g.u(f)),c,d)}})(function(a){var b=g.Wh("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Wh("DIV");g.Nm(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.$h(b);return a});g.w(g.$I,g.G);g.h=g.$I.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.wC(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.ub||(aJ(this,!0),this.state=1,a?this.delay.start(a):this.wC()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.ub&&(aJ(this,!0),this.state=4,this.delay.start(this.C)))};
g.h.wC=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:aJ(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();aJ(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.wC()};
g.h.ra=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.ra.call(this)};g.w(bJ,XI);g.h=bJ.prototype;
g.h.init=function(a,b,c){XI.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Qa&&g.M(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ya=null==a||0===a?this.u.Ew():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(ME("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Hk&&b.thumbnail?this.J.init(ME("ad-image"),b.thumbnail,c):this.N.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.B.hide();this.C.hide();this.J.hide();ZI(this);XI.prototype.hide.call(this)};
g.h.show=function(){YI(this);this.B.show();this.C.show();this.J.show();XI.prototype.show.call(this)};
g.h.Xq=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ia&&a>=this.ya?(this.Z.hide(),this.Ia=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.ya-a)/1E3)),a!=this.Ja&&(WI(this.C,{TIME_REMAINING:String(a)}),this.Ja=a)))}};g.w(dJ,XI);g.h=dJ.prototype;
g.h.init=function(a,b,c){XI.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.nb(g.Ih(d[0].url))&&(d[0].url=a.profilePicture)}else g.Ov(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(ME("ad-image"),b.image,c);
this.J.init(ME("ad-text"),b.headline,c);this.C.init(ME("ad-text"),b.description,c);this.B.init(ME("button"),b.actionButton.buttonRenderer,c);this.Z=b.actionButton.buttonRenderer.navigationEndpoint;this.api.PA()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.BJ.bind(this));this.ya=b.startMs||0;YI(this)}else g.S(Error("FlyoutCtaRenderer has no valid action button."));else g.S(Error("FlyoutCtaRenderer has no description AdText."));else g.S(Error("FlyoutCtaRenderer has no headline AdText."));
else g.Ov(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){XI.prototype.onClick.call(this,a);this.api.pauseVideo();!g.bi(this.B.element,a.target)&&this.Z&&RI(this.kb,this.Z,this.macros)};
g.h.hp=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.ya&&(ZI(this),g.yp(this.element,"ytp-flyout-cta-inactive"))}};
g.h.Xq=function(){this.clear()};
g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.BJ.bind(this))};
g.h.show=function(){this.B&&this.B.show();XI.prototype.show.call(this)};
g.h.hide=function(){this.B&&this.B.hide();XI.prototype.hide.call(this)};
g.h.BJ=function(a){"hidden"==a?this.show():this.hide()};g.w(eJ,qI);g.h=eJ.prototype;g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(ME("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(ME("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.CJ),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())RI(this.kb,b.value,this.macros)};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.C.hide();this.B.hide();qI.prototype.hide.call(this)};
g.h.show=function(){this.C.show();this.B.show();qI.prototype.show.call(this)};
g.h.CJ=function(){wia(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Oa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.h.onClick=function(a){0<this.xa.length&&this.CJ();qI.prototype.onClick.call(this,a)};g.w(fJ,g.G);g.h=fJ.prototype;g.h.ra=function(){this.reset();g.G.prototype.ra.call(this)};
g.h.reset=function(){g.dv(this.C);this.J=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
g.h.start=function(){this.reset();this.C.T(this.B,"mouseover",this.NR,this);this.C.T(this.B,"mouseout",this.MR,this);this.j?this.j.start():(this.J=this.u=!0,g.Dm(this.B,{opacity:this.X}))};
g.h.NR=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.j&&this.j.stop()};
g.h.MR=function(){this.J?this.D.start():this.j&&this.j.start()};
g.h.cL=function(){this.u||(this.u=!0,this.N.play(),this.J=!0)};g.w(gJ,XI);g.h=gJ.prototype;
g.h.init=function(a,b,c){XI.prototype.init.call(this,a,b,c);this.N=b;this.ya=XAa(this);if(!b||g.bg(b))g.S(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.bg(b.message))g.S(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=EI(a);null==b?g.S(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.J=new g.pI({G:"button",Ga:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
L:"ytp-ad-skip-button-icon",U:[b]}]}),g.H(this,this.J),this.J.Ba(this.C.element),this.B=new VI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-skip-button-text"),this.B.init(ME("ad-text"),this.N.message,c),g.H(this,this.B),g.Zh(this.J.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.xa.length)&&c.isMobile&&(uC?0:"ontouchstart"in document.documentElement&&(Jea()||Cl()))&&(this.wc(this.Ya),d&&this.wc(d),this.xa=[this.T(this.element,"touchstart",this.LR,this),this.T(this.element,
"touchmove",this.KR,this),this.T(this.element,"touchend",this.JR,this)])}};
g.h.clear=function(){this.Z.reset();this.hide()};
g.h.hide=function(){this.C.hide();this.B&&this.B.hide();ZI(this);XI.prototype.hide.call(this)};
g.h.onClick=function(a){if(null!=this.J&&(a&&g.ru(a),XI.prototype.onClick.call(this,a),this.ea("j"),this.Ia||!this.ya))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.h.dP=function(a){if(!this.api.V().S("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ia)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&&WAa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.h.hM=function(){return"skip"};
g.h.HH=function(a,b){b=bAa(this.fb,b);RI(this.kb,a,this.macros,b)};
g.h.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();YI(this);XI.prototype.show.call(this)};
g.h.Xq=function(){this.ea("k")};
g.h.hp=function(){};g.w(hJ,XI);g.h=hJ.prototype;
g.h.init=function(a,b,c){XI.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.bg(a)?null:a){this.N=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.QA(this.api.V().experiments,"preskip_button_style_ads_backend")&&LC(this.api.V());this.B=new bJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,d);this.B.init(ME("preskip-component"),a,c);cJ(this.B);g.H(this,this.B);
this.B.Ba(this.element)}else b.skipOffsetMilliseconds&&(this.N=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.bg(b)?null:b;null==b?g.S(Error("SkipButtonRenderer was not set in player response.")):(this.C=new gJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,this.Z),this.C.init(ME("skip-button"),b,c),g.H(this,this.C),this.C.Ba(this.element),this.show())};
g.h.show=function(){this.J&&this.C?this.C.show():this.B&&this.B.show();YI(this);XI.prototype.show.call(this)};
g.h.Xq=function(){};
g.h.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();ZI(this);XI.prototype.hide.call(this)};
g.h.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();ZI(this);XI.prototype.hide.call(this)};
g.h.hp=function(){1E3*this.u.getProgressState().current>=this.N&&YAa(this,!0)};g.w(iJ,FI);iJ.prototype.init=function(a,b,c){FI.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Lw(b.text),a=!g.nb(a));a?null==b.navigationEndpoint?g.Ov(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Ov(Error("Button style was not a link-style type in renderer,")):this.show():g.Ov(Error("No visit advertiser text was present in the renderer."))};g.w(jJ,qI);jJ.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);a=b.text;g.nb(rI(a))?g.Ov(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 VI(this.api,this.fb,this.layoutId,this.j,this.kb),a.init(ME("simple-ad-badge"),b,c),a.Ba(this.element),g.H(this,a)),this.show())};
jJ.prototype.clear=function(){this.hide()};g.w(kJ,NE);g.w(lJ,g.ev);g.h=lJ.prototype;g.h.Ew=function(){return this.durationMs};
g.h.stop=function(){this.j&&this.Mc.wc(this.j)};
g.h.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Tc=function(a){g.zF(a,2)&&this.ea("g")};g.w(mJ,g.ev);g.h=mJ.prototype;g.h.Ew=function(){return this.durationMs};
g.h.start=function(){this.u||(this.u=!0,this.timer.start())};
g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.h.Qb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.fb&&this.fb.Qb(this.B.current);this.ea("h");a&&this.ea("g")};
g.h.getProgressState=function(){return this.B};g.w(pJ,XI);g.h=pJ.prototype;g.h.init=function(a,b,c){XI.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){fr(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new VI(this.api,this.fb,this.layoutId,this.j,this.kb);this.B.init(ME("ad-text"),a,{});this.B.Ba(this.element);g.H(this,this.B)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){ZI(this);XI.prototype.hide.call(this)};
g.h.Xq=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof lJ?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof mJ?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.nJ(a);WI(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){YI(this);XI.prototype.show.call(this)};g.w(qJ,VI);qJ.prototype.onClick=function(a){VI.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(vJ,g.pI);vJ.prototype.Qb=function(){var a=this.u.getProgressState();this.Ic.style.width=100*uJ(new rJ(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
vJ.prototype.onStateChange=function(){g.FC(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.j&&(this.hide(),this.u.Nf(this.j),this.j=-1))};g.w(wJ,qI);
wJ.prototype.init=function(a,b,c,d){qI.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new hJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,this.J),c.Ba(this.D),c.init(ME("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new bJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,!1),c.Ba(this.D),c.init(ME("ad-preview"),a.adPreviewRenderer,this.macros),cJ(c),g.H(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new eJ(this.api,this.fb,this.layoutId,this.j,this.kb),c.Ba(this.Z),c.init(ME("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new dJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u),g.H(this,c),c.Ba(this.N),c.init(ME("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 jJ(this.api,this.fb,this.layoutId,this.j,this.kb,!0),g.H(this,c),c.Ba(this.B),c.init(ME("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 pJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,d),g.H(this,d),d.Ba(this.B),d.init(ME("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new UI(this.api,this.fb,this.layoutId,this.j,this.kb,this.element),g.H(this,a),a.Ba(this.B),a.init(ME("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=$Aa(this)&&this.C?this.C:this.B))&&(a=new iJ(this.api,this.fb,this.layoutId,this.j,this.kb),g.H(this,a),a.Ba(d),a.init(ME("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!CC(b)&&
"3"==b.controlsType&&(b=new vJ(this.api,this.u),b.Ba(this.ya),g.H(this,b));this.api.V().S("enable_updated_html5_player_focus_style")&&g.M(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
wJ.prototype.clear=function(){this.hide()};g.Ja("yt.pubsub.publish",g.Hu,void 0);var DJ=Symbol("injectionDeps");BJ.prototype.toString=function(){return"InjectionToken("+this.name+")"};
hBa.prototype.resolve=function(a){return a instanceof CJ?EJ(this,a.key,[],!0):EJ(this,a,[])};var WJ;var MJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var x0={},lBa=(x0.WEB_UNPLUGGED="^unplugged/",x0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",x0.WEB_UNPLUGGED_OPS="^unplugged/",x0.WEB_UNPLUGGED_PUBLIC="^unplugged/",x0.WEB_CREATOR="^creator/",x0.WEB_KIDS="^kids/",x0.WEB_EXPERIMENTS="^experiments/",x0.WEB_MUSIC="^music/",x0.WEB_REMIX="^music/",x0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",x0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",x0);JJ.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?MJ:c;var d={context:g.NH(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.GJ(this.B());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=nBa(HJ(b),void 0);d={input:f,lr:IJ(f),ul:d,config:Object.assign({},void 0)};d.config.Yp?d.config.Yp.identity=c:d.config.Yp={identity:c};return d}g.S(new g.Fs("Error: Failed to create Request from Command.",a))};
fa.Object.defineProperties(JJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(KJ,JJ);KJ.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",lr:IJ("/getDatasyncIdsEndpoint","GET"),ul:{}}};
KJ.prototype.B=function(){return[]};
KJ.prototype.j=function(){};
KJ.prototype.u=function(){};var KTa={},oBa=(KTa.GET_DATASYNC_IDS=FJ(KJ),KTa);var tBa=["consistency","mss","client_location","entities","store"];g.w(OJ,JJ);OJ.prototype.B=function(){return $Sa};
OJ.prototype.j=function(a){return a.subscribeEndpoint};
OJ.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)};
fa.Object.defineProperties(OJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(PJ,JJ);PJ.prototype.B=function(){return aTa};
PJ.prototype.j=function(a){return a.unsubscribeEndpoint};
PJ.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
fa.Object.defineProperties(PJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(QJ,JJ);QJ.prototype.B=function(){return XSa};
QJ.prototype.j=function(a){return a.feedbackEndpoint};
QJ.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))};
fa.Object.defineProperties(QJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(RJ,JJ);RJ.prototype.B=function(){return YSa};
RJ.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
RJ.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(SJ,JJ);SJ.prototype.B=function(){return ZSa};
SJ.prototype.j=function(a){return a.playlistEditEndpoint};
SJ.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(TJ,JJ);TJ.prototype.B=function(){return WSa};
TJ.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint};
TJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var gBa=new BJ("NETWORK_SLI_TOKEN");UJ.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=Si(g.Ui(5,qj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.Q("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Ov(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Ov(k)}))})};
UJ.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.Ov(new g.Fs("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
UJ[DJ]=[new CJ];var vBa=new BJ("NETWORK_MANAGER_TOKEN");var VJ;YJ.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.Ut)f.onreadystatechange=function(p){c.Ut(f,p)};
var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.r(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
YJ.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Ov(new g.Fs("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Ov(new g.Fs("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var xBa=[],jK=!1;kK.getInstance=function(){var a=g.Ka("ytglobal.storage_");a||(a=new kK,g.Ja("ytglobal.storage_",a,void 0));return a};
kK.prototype.estimate=function(){var a,b,c;return g.B(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(ABa()):d.return()})};
g.Ja("ytglobal.storageClass_",kK,void 0);ys.prototype.Sj=function(a){this.handleError(a)};
ys.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":CBa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},
b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.h=DBa.prototype;
g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(f=a.interpreterSafeScript,e=g.Rg("From proto message. b/166824318"),f=f.privateDoNotAccessOrElseSafeScriptWrappedValue||"",Qg(e),Qg(e),e=(e=Mg())?e.createScript(f):f,e=(new Tg(e,Sg)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,d=tba(g.Rg("From proto message. b/166824318"),d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());
FBa(this,e,d,a.program,b,c)}else g.Ov(Error("Cannot initialize botguard without program"))};
g.h.isInitialized=function(){return!!this.j};
g.h.getState=function(){return this.state};
g.h.invoke=function(a){a=void 0===a?{}:a;if(this.j){var b=this.j;a={dw:a};if(b.j)throw Error("Already disposed");b=b.B([a.dw,a.TZ])}else b=null;return b};
g.h.dispose=function(){GBa(this,null);this.state=8};var mK,oK;g.lK=new DBa;mK=0;oK=[];var KBa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var UBa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},VBa={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"},WBa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},TBa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},RBa={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"},SBa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};vK.prototype.getState=function(){return this.store.getState()};
vK.prototype.dispatch=function(a){return this.store.dispatch(a)};
vK.prototype.subscribe=function(a){return this.store.subscribe(a)};
vK.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
vK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var iCa={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainPlaylistEntity:306,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,
pinnedProductEntity:273,playbackData:119,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},hCa={},LTa=g.r(Object.entries(iCa)),y0=LTa.next();!y0.done;y0=LTa.next()){var MTa=g.r(y0.value),NTa=MTa.next().value,OTa=MTa.next().value,PTa=NTa,QTa=OTa;QTa&&(hCa[QTa]=PTa)};var z0;z0={};g.RTa=(z0.INVALID_ENCODER_VERSION="Invalid encoder version",z0.KEY_CREATION_FAILED="Failed to create encoder key",z0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",z0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",z0.WRONG_DATA_TYPE="Encoder cannot process the data type",z0);var aCa;
aCa=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{aja(c)}catch(l){var k=l}return function(l,m){l=void 0===l?{}:l;if(k)throw k;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],v=l[t],x=(0,c[t])(v,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[t]=
x;n=n||x!==v}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,k=null==(f=e.options)?void 0:f.persistenceOption;if(k&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==k&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==k)return d;if(!e.entityKey)return g.S(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.S(new g.Fs("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Uf(e.payload);return NK(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===
e.type){e=e.entityKey;try{var m=g.LK(e).entityType;l=NK(d,m,e,void 0)}catch(q){if(q instanceof Error)g.S(new g.Fs("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.S(new g.Fs("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Uf(e.payload);var n,p;return jCa(d,l,e.entityKey,e.payload[l],null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},
a);
case "REPLACE_ENTITY":var c=b.payload;return NK(a,c.entityType,c.key,c.oU);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(k,l){return NK(k,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,jCa(a,c.entityType,c.key,c.oU,c.qha);default:return a}}});
g.A0=new vK;var B0={},STa=(B0["api.invalidparam"]=2,B0.auth=150,B0["drm.auth"]=150,B0["heartbeat.net"]=150,B0["heartbeat.servererror"]=150,B0["heartbeat.stop"]=150,B0["html5.unsupportedads"]=5,B0["fmt.noneavailable"]=5,B0["fmt.decode"]=5,B0["fmt.unplayable"]=5,B0["html5.missingapi"]=5,B0["html5.unsupportedlive"]=5,B0["drm.unavailable"]=5,B0);g.w(RK,g.G);g.h=RK.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&yw(c,cTa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Bk&&!this.X.has(a)&&(this.X.add(a),g.As("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Ov(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&yw(b,cTa))};
g.h.getBandwidthEstimate=function(){return iC(this.app.V().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.gL(this.app);b&&(a={gpu:(0,g.dT)(),d:a},b.handleError(new g.yB("feedback",a)))};
g.h.getApiInterface=function(){return this.N.slice()};
g.h.getInternalApiInterface=function(){return g.Xf(this.u)};
g.h.zT=function(a,b){if("string"===typeof b){var c=function(){var d=g.Da.apply(0,arguments);g.Ka(b).apply(window,d)};
this.J[b]=c}else c=b;this.app.tm.subscribe(a,c)};
g.h.xZ=function(a,b){if("string"===typeof b){var c=this.J[b];g.dg(this.J,b);b=c}this.app.tm.unsubscribe(a,b)};
g.h.getPlayerState=function(){return iNa(this.app)};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.h.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.h.seekTo=function(a,b,c){this.j&&hV(this.app,!0,this.playerType);lV(this.app,a,b,c,this.playerType)};
g.h.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.h.startSeekCsiAction=function(){this.app.Ki().D.j=(0,g.R)()};
g.h.seekToStreamTime=function(a,b,c){this.j&&hV(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 k=g.gL(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.qd()&&(l=k.getStreamTimeOffset());lV(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.gL(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=g.gL(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&lV(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.yg.volume};
g.h.setVolume=function(a){nCa(this,a)};
g.h.isMuted=function(){return this.app.yg.muted};
g.h.mute=function(){oCa(this)};
g.h.unMute=function(){pCa(this)};
g.h.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().eh&&JU(this.app).allowImaMonetization,autoplay:AE(JU(this.app)),mutedAutoplay:JU(this.app).mutedAutoplay});return a};
g.h.playVideo=function(){this.j&&hV(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.qe()){var b=EL(this.app.tb());if(!JRa(b)){b.zl("control_play");return}if(KRa(b))return}3===a?aL(this.app.tb()).zl("control_play"):this.app.playVideo(a)};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.qe()){var b=EL(this.app.tb());if(!JRa(b)){b.zl("control_pause");return}}3===a?aL(this.app.tb()).zl("control_pause"):this.app.pauseVideo(a)};
g.h.stopVideo=function(){var a=this.app;a.Y.Db&&a.Ua.ea("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.gL(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Dc){var b=a.j||a.S("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.Hk?hTa:gTa}else a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.gL(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.gL(this.app,this.playerType);return a?(a=g.Kl(a.ao(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getAvailableQualityLabels=function(){var a=g.gL(this.app,this.playerType);return a?g.Kl(a.ao(),function(b){return b.qualityLabel}):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.getSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.setSize=function(){this.app.eb().resize()};
g.h.channelSubscribed=function(){this.Oa("SUBSCRIBE",JU(this.app).tj)};
g.h.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",JU(this.app).tj)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.gL(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.gL(this.app).getPlaylistSequenceForTime(a)};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=wNa(this.app);b&&(b.u=a,b.Ka())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=wNa(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.Bf(b,g.rM(b.B.pc(),b.element)),b.C=!0))};
g.h.confirmYpcRental=function(){var a=g.gL(this.app,this.playerType);a&&a.Je("ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.V().Gk=a};
g.h.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=nC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,hva)};
g.h.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.h.isPictureInPictureAllowed=function(){return JU(this.app).Pv};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"===a&&(a=g.zL(this.app.tb()))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"===a&&(a=g.zL(this.app.tb()))&&a.loaded&&a.w_()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(OK(a,b,c),this.playerType),this.j&&hV(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(OK(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=kCa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&hV(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=kCa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.V();if(a.N)return"";var b=JU(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.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.V();return a.N?"":a.getVideoEmbedCode(JU(this.app).videoId,this.app.eb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return jV(this.app,a,b,c)};
g.h.addUtcCueRange=function(a,b,c){return nNa(this.app,a,b,c)};
g.h.removeCueRange=function(a){return oNa(this.app,a)};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&hV(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.j&&hV(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.j&&hV(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&hV(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.DU=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.mL(a,c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();return"captions"===a?(a=g.zL(d))&&a.yf(b,c):null};
g.h.getOption=function(a,b,c){var d=g.gL(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().j?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.tb();if("captions"===a)return(b=g.zL(b))&&b.getOptions();if(!a)return a=[],g.zL(b)&&a.push("captions"),a};
g.h.yA=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.gL(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.u&&a.u.video){b.video_quality=a.u.video.quality;a=a.u.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.h.showVideoInfo=function(){$Ma(this.app,!0)};
g.h.hideVideoInfo=function(){$Ma(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.gL(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===STa[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.cL(this.app.tb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.cL(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.h.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.gL(this.app);a&&a.sendAbandonmentPing()};
g.h.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.h.queueOfflineAction=function(a,b,c,d){var e=this,f,k;return g.B(function(l){return 1==l.j?(f=HL(e.app.tb()))?g.A(l,f.uH([a],b,c,d),3):l.Za(2):2!=l.j&&(k=l.u,k.length)?l.return(k[0]):l.return(Promise.reject())})};
g.h.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.h.resumeVideoDownload=function(a){var b=this;return g.B(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.h.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.h.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.h.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.setAutonavState=function(a){if(this.S("web_player_autonav_use_server_provided_state")){var b;if(null==(b=JU(this.app))?0:bE(b))return}tNa(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.gL(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.h.setUserAudio51Preference=function(a){var b=g.gL(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.h.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.gL(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.h.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.h.getAppState=function(){return this.app.getAppState()};
g.h.addInfoCardXml=function(a,b,c){this.app.V().Z.add(a,{Jz:b,Hy:c})};
g.h.updateLastActiveTime=function(){xu()};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.h.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.h.setUserEngagement=function(a){this.app.V().qj!==a&&(this.app.V().qj=a,(a=g.gL(this.app,this.playerType))&&vU(a))};
g.h.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.zL(this.app.tb()).AQ(a,b)};
g.h.getCaptionWindowContainerId=function(){var a=g.zL(this.app.tb());return a?a.getCaptionWindowContainerId():""};
g.h.toggleSubtitlesOn=function(){var a=g.zL(this.app.tb());a&&a.iQ()};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.qe()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.gL(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.jh();if(!c)return null;b=c.levels[b];return b?(a=g.ND(b,a))?{column:a.column,columns:a.columns,height:a.Mq,row:a.row,rows:a.rows,url:a.url,width:a.ox}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.jh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.qd();return b.Yy(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.jh();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Hp(),minFrameIndex:b.eD()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.jh();return a?a.levels.length:0};
g.h.rU=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.gL(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().xj};
g.h.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&aL(this.app.tb()).zl("control_set_audio_track",a);var b=g.gL(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.V(b.playerState,128)){var c;if(null==(c=b.videoData.C)?0:c.j)b.Va.setAudioTrack(a);else{var d;c=null==(d=b.qa)?void 0:d.audioTracks();var e;if(b.S("html5_native_audio_track_switching")&&(null==(e=b.videoData.u)?0:aA(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.Fc.getName()){if(e.enabled){c=!1;break a}c=
e.enabled=!0;break a}c=void 0}c&&b.Aa("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.J&&!aA(c.J)||a==c.Gk||!c.Db||0>=c.Db.length)c=!1;else{d=g.r(c.Db);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof lD)){c=!1;break a}var f=a.Fc.getId();e.B&&(rva(e.B,f),e.u=null)}c.Gk=a;c=!0}c&&kU(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Aa("hlsaudio",{id:a.id}))}}}};
g.h.sU=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.gL(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.gL(this.app,this.playerType);return a&&a.getVideoData().u?Jx(a.Pe?GJa(a.Mg,a.Pe,a.kt()):TD):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.gL(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.zL(this.app.tb());return a?a.FU():null};
g.h.resetSubtitlesUserSettings=function(){g.zL(this.app.tb()).DZ()};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.h.setGlobalCrop=function(a){this.app.eb().setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.Te();return this.app.getVisibilityState(this.Df(),this.isFullscreen()||CC(this.app.V()),a,this.isInline(),this.app.It(),this.app.Et())};
g.h.isMutedByMutedAutoplay=function(){return this.app.qx};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.eb().setInternalSize(new g.Ch(a,b))};
g.h.qd=function(){var a=g.gL(this.app,void 0);return a?a.qd():0};
g.h.Te=function(){return this.app.Te()};
g.h.Df=function(){var a=g.gL(this.app,this.playerType);return!!a&&a.Df()};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.S("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.mL(b).videoId||(a.index=b.index)):VU(this.app,{list:a.list,index:a.index,playlist_length:d.length});oL(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.gL(this.app,this.playerType||1);c&&g.XD(c.getVideoData(),a,b)};
g.h.updateEnvironmentData=function(a){KC(this.app.V(),a,!1)};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.IL(this.app.tb());d&&d.Lh()&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.h.getVideoAspectRatio=function(){return this.app.eb().getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.gL(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.gL(this.app,this.playerType);c&&(a=g.Gx(a,b||a,!0,"m"),g.xMa(c,a,!0))};
g.h.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.h.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.h.dispatchReduxAction=function(a){g.A0.dispatch(a)};
g.h.ea=function(a){var b=g.Da.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.tm.ea.apply(this.app.tm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))};
g.h.Oa=function(a){var b=g.Da.apply(1,arguments);this.app.tm.ea.apply(this.app.tm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))};
g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.h.logImaAdEvent=function(a,b){this.app.V().eh&&JU(this.app).allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Gca(this.app.V().loaderUrl),eventType:a},g.As("embedsAdEvent",a))};
g.h.S=function(a){return this.app.V().S(a)};
g.h.Ra=function(){};
g.h.ra=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.J={};g.G.prototype.ra.call(this)};g.w(XK,RK);g.h=XK.prototype;g.h.addCueRange=function(a,b,c,d,e){return jV(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return iNa(this.app,a)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){lV(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){lV(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.yA=function(a){a=void 0===a?this.playerType:a;var b=RK.prototype.yA.call(this,a)||{};if(a=g.gL(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.hh;b.isManifestless=aE(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.Xa;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?
0:c.utcTimeMillis)?Kh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Kh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.bR;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=$wa(a);b.paidContentOverlayDurationMs=mE(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Lx(a.j)&&(b.usingLocalMedia=
"true");eE(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.J)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b};
g.h.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):RK.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=aL(this.app.tb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):RK.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return aL(this.app.tb()).getProgressState();var b=this.app.getVideoData(),c=(g.gL(this.app,a)||g.gL(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=sCa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(f)){f=sCa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.nt(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.gL(p,c))?(c=SU(p,c),c=dV(p,CP(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.sf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.getCurrentBroadcastId=function(){return null};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){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.VK(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){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.VK(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.VK(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.VK(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.eb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setFauxFullscreen=function(a){g.Yu();this.app.ij(a?2:0)};
g.h.toggleFullscreen=function(){function a(c){g.Ov(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.ZC(b))return this.isFullscreen()?$u(window.document.documentElement):Xu(window.document.documentElement).catch(a)}else if(g.Yu()||b.J)return this.isFullscreen()?$u(Zu()):"3"!==b.controlsType&&g.Yu()?Xu(this.app.eb().element).catch(a):(b=this.app.yd().Ke())?Xu(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.h.cancelPlayback=function(){var a=EL(this.app.tb());a&&a.created&&a.destroy();(a=g.gL(this.app))&&a.stopVideo();(a=this.app.tb().Nd.get("endscreen"))&&a.rV()&&g.$K(this.app.Ua,!0)};
g.h.stopVideo=function(){var a=this.app.V();!a.S("disable_new_pause_state3")&&UC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():RK.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.gL(this.app,this.playerType).Nb(!0)};
g.h.toggleSubtitles=function(){var a=g.zL(this.app.tb());a&&a.l_()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.cL(this.app.tb());b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.cL(this.app.tb());return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){nCa(this,a,b)};
g.h.mute=function(a){oCa(this,a)};
g.h.unMute=function(a){pCa(this,a)};
g.h.mutedAutoplay=function(){this.S("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.h.loadModule=function(a){if("annotations_module"===a){var b=g.IL(this.app.tb());b&&!b.loaded&&b.load()}RK.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.IL(this.app.tb());b&&b.loaded&&b.unload()}RK.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();switch(a){case "ad":return(a=EL(d))&&a.yf&&a.yf(b,c);case "kids":return(a=FL(d))&&a.yf(b,c);case "remote":return(a=aL(d))&&a.yf(b,c);case "unplugged":return(a=g.GL(d))&&a.yf(b,c);case "annotations_module":return(a=g.IL(d))&&a.yf(b,c);case "creatorendscreen":return(a=JL(d))&&a.yf(b,c)}return RK.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.tb();switch(a){case "ad":return(b=EL(b))&&b.getOptions&&b.getOptions();case "remote":return(b=aL(b))&&b.getOptions();case "annotations_module":return(b=g.IL(b))&&b.getOptions();case "creatorendscreen":return(b=JL(b))&&b.getOptions();case "unplugged":return(b=g.GL(b))&&b.getOptions();case "kids":return(b=FL(b))&&b.getOptions()}if(!a){a=RK.prototype.getOptions.call(this);if(!a)return a;EL(b)&&a.push("ad");aL(b)&&a.push("remote");g.IL(b)&&a.push("annotations_module");
JL(b)&&a.push("creatorendscreen");g.GL(b)&&a.push("unplugged");FL(b)&&a.push("kids");return a}return RK.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.VK(this);a&&a.Jl()};
g.h.setCenterCrop=function(a){this.app.eb().setCenterCrop(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var qCa="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(" "),
rCa="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_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.YK,XK);g.h=g.YK.prototype;g.h.rk=function(a,b,c,d,e,f){return this.app.rk(a,b,c,d,e,f)};
g.h.Aw=function(){return this.app.Aw()};
g.h.lq=ca(4);g.h.tb=function(){return this.app.tb()};
g.h.Ce=function(){var a=this.tb().Nd.get("endscreen");return!!a&&a.Ce()};
g.h.getRootNode=function(){return this.eb().element};
g.h.V=function(){return this.app.V()};
g.h.ot=ca(6);g.h.dl=function(a){return this.app.dl(a)};
g.h.Bo=function(){return this.settingsMenu};
g.h.Nw=function(){return this.gD};
g.h.zb=function(a){return this.app.zb(a)};
g.h.eb=function(){return this.app.eb()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){var b=g.gL(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Ad))b=void 0;else{var d=a.getCurrentTime();b=b.Qn?void 0:null==(c=UP(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.h.jh=function(a){return this.app.jh(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.isHdr=function(){var a=g.gL(this.app);return a?a.isHdr():!1};
g.h.ex=function(){return this.app.ex()};
g.h.Au=function(a){this.app.Au(a)};
g.h.Xf=function(a,b,c,d,e){this.app.Ye(a,b,c,d,e)};
g.h.Hl=ca(10);g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){aL(this.app.tb()).zl("control_play");return}if(2===this.getPresentingPlayerType()){var b=EL(this.app.tb());if(b&&(b.No()||KRa(b)))return}}catch(c){g.S(c)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.gL(this.app,a).stopVideo()};
g.h.Wm=function(a){g.gL(this.app,a).Wm()};
g.h.addEventListener=function(a,b){this.app.Um.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.Um.unsubscribe(a,b)};
g.h.ea=function(a){XK.prototype.ea.call.apply(XK.prototype.ea,[this,a].concat(g.u(g.Da.apply(1,arguments))))};
g.h.aj=function(a){this.app.aj(a)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.ao=function(){var a={},b=g.gL(this.app).ao();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.h.Kw=ca(12);g.h.XB=function(a){this.app.XB(a);a&&tNa(this.app,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.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 k;a||d.isLivePlayback||(k=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,k,b,c)};
g.h.Lw=ca(14);g.h.Yj=ca(18);g.h.Ot=function(a,b){this.tb().Ot(a,b)};
g.h.Lh=function(){var a=g.IL(this.tb());return!!a&&a.Lh()};
g.h.Rk=function(){var a=g.IL(this.tb());return!!a&&a.Rk()};
g.h.setCardsVisible=function(a,b,c){var d=g.IL(this.tb());d&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.h.wu=ca(19);g.h.Fr=function(){var a=g.gL(this.app);a&&a.Fr()};
g.h.jy=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.h.Kj=function(a,b){var c=g.VK(this);if(c)return c.Kj(a,b);a=this.app.eb().Gg();return new g.Am(0,0,a.width,a.height)};
g.h.Co=function(){return this.app.Co()};
g.h.bx=function(){var a=this.tb().Nd.get("heartbeat");return!!a&&a.bx()};
g.h.sf=function(){var a=this.V();if(a.xa||a.disableSeek)return!1;a=g.gL(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.qE(b)||2===this.getPresentingPlayerType()&&!this.app.qe()||a.ll()&&3!==this.getPresentingPlayerType()?!1:!0};
g.h.Xw=function(){var a;return(null==(a=g.gL(this.app))?void 0:a.Xw)||!1};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.qp=function(){var a=g.gL(this.app);a&&a.qp()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.Rd=function(a,b,c){this.app.Rv(a,b,c)};
g.h.Wf=function(a,b){this.app.SB(a,b)};
g.h.kf=function(a,b){var c=this.app,d=g.gL(c,b);d&&(a=d.Bg.kf(a),b&&c.getPresentingPlayerType()!==b||PU(c,"cuerangesremoved",a))};
g.h.Je=function(a,b){(b=g.gL(this.app,b))&&b.Je(a)};
g.h.ll=function(){var a=g.gL(this.app,void 0);return a?a.ll():!0};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.wh(a,0,100);TK(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){TK(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){TK(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.h.getLoopVideo=function(){return this.app.getLoopVideo()};
g.h.yd=function(){return this.app.yd()};
g.h.Ki=function(){return this.app.Ki()};
g.h.ih=function(a){return this.app.ih(a)};
g.h.getBandwidthEstimate=function(){return iC(this.V().schedule)};
g.h.Bb=function(a,b,c,d){this.V().Sa&&this.app.Lo.Bb(a,b,c,void 0===d?!1:d)};
g.h.ah=function(a,b,c){this.V().Sa&&this.app.Lo.ah(a,b,void 0===c?!1:c)};
g.h.gk=function(a,b){this.V().Sa&&this.app.Lo.gk(a,b)};
g.h.xb=function(a,b){this.V().Sa&&this.app.Lo.click(a,b)};
g.h.bb=function(a,b,c){if(this.V().Sa){var d=this.app.Lo;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Hv(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Wv(e,[f]):g.Xv(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Tv(e,f,c),d.B.add(a))}};
g.h.Ho=function(a){return this.V().Sa?this.app.Lo.Ho(a):!1};
g.h.Lc=function(){return g.gL(this.app)};
g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.h.Vm=function(){this.app.Vm()};
g.h.Nn=function(a,b){return this.app.Nn(a,b)};
g.h.Gl=function(a){this.app.Gl(a)};
g.h.lG=function(){this.app.lG()};
g.h.Fs=function(a,b,c,d,e,f){return this.app.Fs(a,b,c,d,e,f)};
g.h.Vw=function(a,b,c,d,e,f){return this.app.Vw(a,b,c,d,e,f)};
g.h.ep=function(a){this.app.ep(a)};
g.h.cq=function(a,b){b=void 0===b?Infinity:b;this.app.cq(void 0===a?-1:a,b)};
g.h.Lu=function(a,b,c){this.app.Lu(a,b,c)};
g.h.qo=function(){return this.app.qo()};
g.h.Wz=function(a,b,c){this.app.Wz(a,b,void 0===c?0:c)};
g.h.Kt=function(){return this.app.Kt()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.qe=function(){return this.app.qe()};
g.h.Qo=function(a,b,c){return this.app.Qo(a,b,c)};
g.h.Aa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.gL(this.app,d))||e.Aa(a,b,c)};
g.h.eC=function(){return this.app.eC()};
g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.h.CG=function(a,b){this.ea("aduxmouseover",a,b)};
g.h.BG=function(a,b){this.ea("aduxmouseout",a,b)};
g.h.WG=function(a,b){this.ea("muteadaccepted",a,b)};
g.h.PA=function(){return this.app.eb().PA()};
g.h.Bu=function(a){this.app.eb().Bu(a)};hL.prototype.GG=function(){this.u=(0,g.R)()};
hL.prototype.reset=function(){this.j=this.u=NaN};
hL.prototype.KG=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<this.B){b=b?"pbp":"pbs";var c={startTime:this.j};!this.Y.S("web_player_csi_ctt_killswitch")&&a.X&&(c.cttAuthInfo={token:a.X,videoId:a.videoId});jx("seek",c);g.kx("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||hx("pl_ss",this.u,"seek");hx(b,(0,g.R)(),"seek")}this.reset()}};iL.prototype.reset=function(){fx(this.timerName)};
iL.prototype.tick=function(a,b){hx(a,b,this.timerName)};
iL.prototype.info=function(a,b){g.kx(a,b,this.timerName)};g.w(kL,g.ev);g.h=kL.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.ol=function(a){return this.loop||!!a||0<=this.index-1};
g.h.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.h.Se=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.N||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return TC(this.u,this.C[0],a)};
g.h.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.h.onReady=function(a){this.j=a;this.loaded&&g.tr(this.j,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.jl=function(){return this.u.getVideoUrl(g.mL(this).videoId,this.getPlaylistId())};
g.h.ra=function(){this.j=null;g.Af(this.items);g.ev.prototype.ra.call(this)};var pL=new Map;g.w(g.rL,g.ev);g.h=g.rL.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.yf=function(){};
g.h.ai=function(){return!0};
g.h.ra=function(){this.loaded&&this.unload();g.ev.prototype.ra.call(this)};
g.h.Nb=function(){return{}};
g.h.getOptions=function(){return[]};g.w(g.uL,g.G);g.h=g.uL.prototype;g.h.Po=ca(22);g.h.Nt=function(){};
g.h.pn=function(){};
g.h.rq=function(){return""};
g.h.oH=ca(23);g.h.ra=function(){this.pn();g.G.prototype.ra.call(this)};g.w(g.vL,g.uL);g.vL.prototype.Po=ca(21);g.vL.prototype.Nt=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.tL(this.u,c.value);a()};
g.vL.prototype.rq=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Xr()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.GD(a));return lr(c,d)};
g.vL.prototype.pn=function(){this.j&&this.j.abort()};g.TTa=new Map;g.w(g.xL,g.uL);g.xL.prototype.Po=ca(20);
g.xL.prototype.Nt=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.SM&&(d.asrs=1);c=lr(c,d);this.pn();this.j=g.Dr(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),k=0;k<f.length;k++){var l=f[k],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),v="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.tL(b.u,new g.DD({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:v}))}e=e.getElementsByTagName("target");f=e.length;for(k=0;k<f;k++)m={languageCode:e[k].getAttribute("lang_code"),languageName:e[k].getAttribute("lang_translated"),languageOriginal:e[k].getAttribute("lang_original"),id:e[k].getAttribute("id"),isDefault:"true"===e[k].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.xL.prototype.rq=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.GD(a));return c=lr(c,b)};
g.xL.prototype.pn=function(){this.j&&this.j.abort()};g.w(yL,g.G);g.h=yL.prototype;g.h.qy=function(){return this.I.getVideoData().qy()};
g.h.UH=function(){return this.I.getVideoData().UH()};
g.h.CL=function(){var a=this.Nd.get("heartbeat");BL(this,"heartbeat",!1,!0,this.CL);!a&&this.Nd.has("heartbeat")&&this.I.ea("offlineslatestatechange")};
g.h.DE=function(){BL(this,"annotations_module",!0,void 0,this.DE);var a=this.Nd.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.h.CE=function(){if(!this.Nd.get("ad"))try{AL(this)?BL(this,"ad",!1,!0,this.CE):this.I.Je("ad")}catch(a){this.I.Je("ad"),g.S(a)}};
g.h.Ki=function(){return this.j};
g.h.tF=function(){var a={},b=g.zL(this);b&&Object.assign(a,b.tF());return a};
g.h.Ot=function(a,b){Object.assign(this.j,a||null);Object.assign(this.Rz,b||null)};
g.h.ra=function(){g.G.prototype.ra.call(this);DL(this,1,!0);for(var a=g.r(Object.entries(UCa)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.B.has(c)&&pL.delete(b)}this.B.clear()};
var C0={},UCa=(C0.ad="ad.js",C0.annotations_module="annotations_module.js",C0.attribution="attribution.js",C0.creatorendscreen="annotations_module.js",C0.embed="embed.js",C0.endscreen="endscreen.js",C0.heartbeat="heartbeat.js",C0.inline_preview="inline_preview.js",C0.kids="kids.js",C0.remote="remote.js",C0.miniplayer="miniplayer.js",C0.music="music.js",C0.offline="offline.js",C0.captions="captions.js",C0.unplugged="unplugged.js",C0.ux="ux.js",C0.webgl="webgl.js",C0.ypc="ypc.js",C0.ypc_clickwrap="ypc_clickwrap.js",
C0.yto="yto.js",C0);g.w(KL,g.Cf);KL.prototype.preventDefault=function(){g.Cf.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
KL.prototype.stopPropagation=function(){g.Cf.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.LL,pH);g.h=g.LL.prototype;g.h.Jp=function(){return!0};
g.h.isView=function(){return!1};
g.h.CH=function(){return!1};
g.h.Ke=function(){return this.j};
g.h.Bf=function(){return this.j.src};
g.h.fz=function(a){this.Ra();var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.h.TB=function(){this.Ra();this.j.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.Ra();this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.h.nq=function(){return this.j.loop};
g.h.setLoop=function(a){this.Ra();this.j.loop=a};
g.h.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.h.Pl=function(){return this.j.paused};
g.h.uv=function(){return this.j.seeking};
g.h.Uf=function(){return this.j.ended};
g.h.qA=function(){return this.j.muted};
g.h.xu=function(a){kA();this.Ra();this.j.muted=a};
g.h.qq=function(){return this.j.played||lA([],[])};
g.h.jg=function(){try{var a=this.j.buffered}catch(b){}return a||lA([],[])};
g.h.Ow=function(){return this.j.seekable||lA([],[])};
g.h.bz=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.h.getCurrentTime=function(){return this.j.currentTime};
g.h.ez=function(a){this.Ra();this.j.currentTime=a};
g.h.getDuration=function(){return this.j.duration};
g.h.load=function(){this.Ra();var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.h.pause=function(){this.Ra();this.j.pause()};
g.h.play=function(){this.Ra();var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.Ih=function(){return this.j.readyState};
g.h.rA=function(){return this.j.networkState};
g.h.Cj=function(){return this.j.error?this.j.error.code:null};
g.h.He=function(){return this.j.error?this.j.error.message:""};
g.h.cz=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.h.Df=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.h.qp=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){var a=this.j,b=window.document;iA()?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():jA()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.zo=function(){var a=this.j;return new g.Ah(a.offsetLeft,a.offsetTop)};
g.h.getSize=function(){return g.Om(this.j)};
g.h.setSize=function(a){g.Nm(this.j,a)};
g.h.getVolume=function(){return this.j.volume};
g.h.setVolume=function(a){kA();this.Ra();this.j.volume=a};
g.h.ME=function(a){this.D[a]||(this.j.addEventListener(a,this.listener),this.D[a]=this.listener)};
g.h.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.j.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.h.Sv=ca(25);g.h.Ay=ca(27);g.h.By=ca(29);g.h.Ls=ca(31);g.h.uw=function(){return $u(this.j)};
g.h.Fn=function(a){g.M(this.j,a)};
g.h.getStyle=function(a){return g.Fm(this.j,a)};
g.h.TF=function(){return g.bi(document.body,this.j)};
g.h.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.h.ra=function(){for(var a=g.r(Object.keys(this.D)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.D[b]);pH.prototype.ra.call(this)};
g.h.Ra=function(){};g.w(NL,g.ev);g.h=NL.prototype;g.h.WV=function(a){a=qu(a);if(!Bh(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;ML(this,b,!0)}};
g.h.XV=function(){this.J&&ML(this,8,!0);ML(this,2,!1)};
g.h.iB=function(a){var b=qu(a);Bh(b,this.C)||(this.C=b,(a=g.nu(a))&&this.Iz(a)&&(ML(this,4,!0),this.j.wc(this.B),this.B=this.j.T(this.target,"mouseover",this.xG),this.K=this.j.T(this.target,"mouseout",this.xG)))};
g.h.xG=function(a){a=pu(a);a&&this.Iz(a)||(this.C=new g.Ah(NaN,NaN),VCa(this))};
g.h.yV=function(){ML(this,1,!0)};
g.h.vU=function(a){a=g.nu(a);a instanceof Element&&!(0<a.tabIndex)||ML(this,1,!0)};
g.h.NN=function(){this.J=!0;this.j.wc(this.D);this.D=this.j.T(document,"mouseup",this.YV)};
g.h.YV=function(){this.J=!1;ML(this,8,!1);this.j.wc(this.D);this.D=this.j.T(this.target,"mousedown",this.NN)};
g.h.kQ=function(a){if(a=(a=a.changedTouches)&&a[0])this.xa=a.identifier,this.j.wc(this.N),this.N=this.j.T(this.target,"touchend",this.m_,void 0,!0),ML(this,1024,!0)};
g.h.m_=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.xa){var d=c;break}}d&&(this.j.wc(this.N),this.N=this.j.T(this.target,"touchstart",this.kQ,void 0,!0),ML(this,1024,!1))};
g.h.Jl=function(){ML(this,2,!0)};
g.h.resize=function(){g.hA&&VCa(this)};
g.h.toString=function(){return g.ev.prototype.toString.call(this)};g.w(g.OL,g.W);
g.OL.prototype.Ka=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.C?(g.O(this.element,"ytp-touch-device",b.isMobile),c=[b.C?{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.Na("largePlayButtonChildren",c);a.D&&(a.Wa||b.pfpChazalUi)&&(a=a.Wa?a.Wa:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(PL,g.W);g.h=PL.prototype;g.h.show=function(){var a=this;this.ub||(this.B.T(this.api,"videodatachange",function(){g.qp(a.j)}),this.B.T(this.api,"videoplayerreset",function(){g.qp(a.j)}));
g.W.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.dv(this.B);g.W.prototype.hide.call(this)};
g.h.yb=function(){g.qp(this.j)};
g.h.onStateChange=function(a){var b=this.api.V();b.S("disable_new_pause_state3")&&UC(b)&&(a=a.state.isCued()&&!a.Wo.isCued()||g.bL(this.api)&&g.V(a.state,2),g.Dm(this.element,"transition-delay",a?"2s":""));g.qp(this.j)};
g.h.fZ=function(){g.qp(this.j)};
g.h.OR=function(){this.u.stop();this.hide();g.qp(this.j)};
g.h.Ka=function(){var a=this.api.zb();if(3===this.api.getPresentingPlayerType()&&(a.Jc()||g.V(a,4)))var b=!0;else(b=this.api.tb().Nd.get("ypc"))&&b.AB?b=!0:(b=this.api.V(),b=g.V(a,2)&&g.ZK(this.api)&&b.Ud?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().S("disable_new_pause_state3"),b=!(!g.V(a,2)||g.ZK(this.api)||b&&this.api.Aw())||g.V(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.B_(this.api.getPlaylist(),a)):
(this.u.hide(),g.V(a,1)||this.u.stop())};
g.h.B_=function(){for(var a,b=g.r(g.Da.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.UD&&!c.videoId)){a=this.api.eb().getPlayerSize();var d=g.VC(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Se("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Se("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Se("sddefault.jpg")||c.Se("hqdefault.jpg")||c.Se("mqdefault.jpg"))break;if(a=c.Se("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.w(g.VL,g.W);g.VL.prototype.resize=function(){};
g.VL.prototype.u=function(a){var b=this;$Ca(this);var c=a.OE,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.C?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Bd(YL(this,"TOO_MANY_REQUESTS_WITH_LINK",d.jl(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.C?this.Bd(g.WL(a.errorMessage)):this.Bd(YL(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.nj(c,{hl:a})),this.Bd(YL(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Db&&!d.j&&ZCa(this,function(e){if(g.QL(e,b.api,!UC(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 YCa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(ZL,g.dA);ZL.prototype.vg=function(){dDa(this)};
ZL.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.N){var f=bDa(this);c.S("enable_web_media_session_metadata_fix")&&g.GC(c)&&f?(d=cDa(f.thumbnailDetails),f.album&&(e=g.Lw(f.album))):d=[{src:b.Se("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}dDa(this);aDa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.bL(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
$L(this,"nexttrack",b);$L(this,"previoustrack",c)}};
ZL.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())$L(this,b.value,null);g.dA.prototype.ra.call(this)};g.w(aM,g.W);g.h=aM.prototype;g.h.onClick=function(a){g.QL(a,this.I,!0);this.I.xb(this.element)};
g.h.onVideoDataChange=function(a,b){fDa(this,b);this.Md&&gDa(this,this.Md)};
g.h.Tc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&fDa(this,b);this.j&&gDa(this,a.state);this.Md=a.state};
g.h.pd=function(){this.C.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.bb(this.element,!0)};
g.h.Eb=function(){this.C.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.bb(this.element,!1)};g.w(bM,g.W);bM.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
bM.prototype.onStateChange=function(a){hDa(a.state)?this.j.start():this.hide()};
bM.prototype.u=function(){this.message.style.display="block"};g.w(g.cM,g.pI);g.h=g.cM.prototype;g.h.show=function(){var a=this.pg();g.pI.prototype.show.call(this);this.ya&&(this.K.T(window,"blur",this.Eb),this.K.T(document,"click",this.PR));a||this.ea("show",!0)};
g.h.hide=function(){var a=this.pg();g.pI.prototype.hide.call(this);iDa(this);a&&this.ea("show",!1)};
g.h.pd=function(a,b){this.u=a;this.X.show();b?(this.N||(this.N=this.K.T(this.I,"appresize",this.ZK)),this.ZK()):this.N&&(this.K.wc(this.N),this.N=void 0)};
g.h.ZK=function(){var a=g.VK(this.I);this.u&&a.Wq(this.element,this.u)};
g.h.Eb=function(){var a=this.pg();iDa(this);this.X.hide();a&&this.ea("show",!1)};
g.h.PR=function(a){var b=ou(a);b&&(g.bi(this.element,b)||this.u&&g.bi(this.u,b)||!g.oJ(a))||this.Eb()};
g.h.pg=function(){return this.ub&&4!==this.X.state};g.w(eM,g.cM);eM.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(jDa(this),this.pd()):(this.j&&this.xb(),this.Eb()))};
eM.prototype.vg=function(a){this.api.isMutedByMutedAutoplay()&&g.zF(a,2)&&this.Eb()};
eM.prototype.onClick=function(){this.api.unMute();this.xb()};
eM.prototype.xb=function(){this.clicked||(this.clicked=!0,this.api.xb(this.element))};g.w(g.gM,g.dA);g.h=g.gM.prototype;g.h.init=function(){var a=this.api.zb();this.Wb(a);this.qn();this.yb()};
g.h.onVideoDataChange=function(a,b){this.cG!==b.videoId&&(this.cG=b.videoId,a=this.Jd,a.va=b&&0<b.Wc.length?5E3:3E3,ML(a,512,!0),this.qn())};
g.h.LX=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.h.mp=function(){var a=this.api.Lh()&&this.api.Rk();return this.Qz||a||this.IF};
g.h.sj=function(){var a=!this.mp();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.Iz=function(a){try{if(!g.bi(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!di(a);)a=a===this.api.getRootNode()?null:g.ai(a);return!!a};
g.h.Wj=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.dL.start(a?250:100);a&&(this.pC=!1,g.yp(b,"ytp-touch-mode"));this.BE=!a;this.api.jy(!a)};
g.h.DG=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
g.h.oY=function(){this.rI=!0};
g.h.nY=function(a){if(this.api.V().S("player_doubletap_to_seek")||this.api.V().S("embeds_web_enable_mobile_touch_fix")&&this.api.V().J)this.rI=!1,this.sI&&this.wc(this.sI),0===this.tx&&jM(this,a)?(this.DA(),this.Tz.start(),this.sI=this.T(this.api.eb(),"touchmove",this.oY,void 0,!0)):this.Tz.stop();!lDa(this)||!jM(this,a)||this.api.V().J&&this.api.V().S("embeds_web_enable_mobile_touch_fix")||fM(this);var b=this.uC.pg();if(tC&&mDa(this,a))b&&g.ru(a);else if(this.Jd.u||hM(this,ou(a))||this.uC.pg()||
(this.api.zb().isCued(),g.ru(a)),this.pC=!0,g.M(this.api.getRootNode(),"ytp-touch-mode"),this.Jd.Jl(),this.api.V().S("player_doubletap_to_seek")&&(b=this.api.zb(),!(!this.api.sf()||g.V(b,2)&&g.ZK(this.api)||g.V(b,64)))){b=Date.now()-this.qN;this.tx+=1;if(350>=b){this.mw=!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.tx-1);0<d&&d<b?(this.mu(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.mu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ru(a)}this.qN=Date.now();this.xP.start()}};
g.h.jY=function(a){if(!mDa(this,a)){if(!lDa(this)&&jM(this,a)&&!this.Tz.isActive()){if(g.ZC(this.api.V())&&this.api.zb().isCued()){var b=void 0===b?{}:b;gx();$w();fx();Sw(!1);b.cttAuthInfo&&(Tw().cttAuthInfo=b.cttAuthInfo);Wq("TIMING_AFT_KEYS",[]);b.mha?ix({loadType:"hot"}):ix({loadType:"warm"});Wq("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;hx("_start",b.startTime,void 0);b=["pbs","pbu"];Zw("").info.actionType="watch";b&&Wq("TIMING_AFT_KEYS",b);Wq("TIMING_ACTION","watch");ura();b=Uw();
var c=Ww();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Ow(),e=Vw();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||hx(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var k=e.next();!k.done;k=e.next())k=k.value,(k=mra(k,b[k]))&&!era(Ww(void 0),k)&&(iw(c,k),iw(f,k),d=!0);d&&ix(f)}Sw(!0);b=g.P("TIMING_ACTION",void 0);g.Ka("ytglobal.timingready_")&&b&&wx("_start")&&Yqa()&&dra()}fM(this);g.ru(a)}this.mw&&(this.mw=!1)}};
g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.As("embedsRequestStorageAccessResult",{resolved:!0});Zta(!0);Ou();window.location.reload()},function(){g.As("embedsRequestStorageAccessResult",{resolved:!1});
a.Hu()})};
g.h.DA=function(){};
g.h.xr=function(){};
g.h.mu=function(){};
g.h.tP=function(){};
g.h.Hu=function(){var a=this.api.zb();g.V(a,2)&&g.ZK(this.api)||(g.zH(a)?this.api.pauseVideo():(this.api.lG(),this.api.playVideo(),this.Qs&&document.activeElement===this.Qs.C.element&&this.api.getRootNode().focus()))};
g.h.kY=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!hM(this,ou(a)))if(a=this.api.V(),this.api.V().S("player_doubletap_to_seek")&&this.mw)this.mw=!1;else if(a.Xa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Sw(d)})}catch(d){this.Sw(d)}};
g.h.Sw=function(a){String(a).includes("fullscreen error")?g.Ov(a):g.S(a)};
g.h.lY=function(a){nDa(this,.3,a.scale);g.ru(a)};
g.h.mY=function(a){nDa(this,.1,a.scale)};
g.h.yb=function(){var a=this.api.eb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Jd.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.Ff());g.O(b,"ytp-tiny-mode",this.QA());g.O(b,"ytp-big-mode",this.cf());this.Le&&this.Le.resize(a)};
g.h.vg=function(a){this.Wb(a.state);this.qn()};
g.h.jF=function(){var a=!!this.cG&&!this.api.Ce(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(WRa&&c.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=EL(this.api.tb());return a&&b.XH()}return a&&(c.yk||this.api.isFullscreen()||c.vb)};
g.h.qn=function(){var a=this.jF();this.vl!==a&&(this.vl=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Wb=function(a){var b=a.isCued()||this.api.ll()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.uI&&this.wc(this.uI),this.uI=this.T(this.api.eb(),"touchstart",this.nY,void 0,b));var c=a.Jc()&&!g.V(a,32)||this.api.bx();ML(this.Jd,128,!c);c=3===this.api.getPresentingPlayerType();ML(this.Jd,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[u0.ENDED];else d=[],g.V(a,8)?d.push(u0.PLAYING):g.V(a,4)&&d.push(u0.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(u0.BUFFERING),g.V(a,32)&&
d.push(u0.SEEKING),g.V(a,64)&&d.push(u0.UNSTARTED);g.uc(this.UD,d)||(g.zp(c,this.UD),this.UD=d,g.xp(c,d));d=this.api.V();var e=g.V(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.IF);g.V(a,128)&&!g.xC(d)?(this.Le||(this.Le=new g.VL(this.api),g.H(this,this.Le),g.eL(this.api,this.Le.element,4)),this.Le.u(a.getData()),this.Le.show()):this.Le&&(this.Le.dispose(),this.Le=null)};
g.h.Yk=function(){return this.api.Lh()&&this.api.Rk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Ce()?(g.$K(this.api,!0),!0):!1};
g.h.onMutedAutoplayChange=function(a){this.IF=a;this.sj()};
g.h.cf=function(){return!1};
g.h.Ff=function(){return!this.cf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.QA=function(){return this.Ff()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.h.Ni=function(){return this.pC};
g.h.Bo=function(){return null};
g.h.Nw=function(){return null};
g.h.Kj=function(){var a=this.api.eb().getPlayerSize();return new g.Am(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.Wq=function(){};
g.h.showControls=function(a){void 0!==a&&this.api.eb().jy(a)};
g.h.Jl=function(){};
g.h.tM=function(){return null};g.w(kM,g.ev);g.h=kM.prototype;g.h.Ew=function(){return 1E3*this.api.getDuration(this.qk,!1)};
g.h.stop=function(){this.j&&this.Mc.wc(this.j)};
g.h.Qb=function(){var a=this.api.getProgressState(this.qk);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.qk,!1)};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Tc=function(a){g.zF(a,2)&&this.ea("g")};g.w(lM,g.W);lM.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.mM,g.W);g.mM.prototype.show=function(){g.W.prototype.show.call(this);g.qp(this.j)};
g.mM.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.mM.prototype.xr=function(a){a?g.V(this.I.zb(),64)||nM(this,AI(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?nM(this,DAa(),"Stop live playback"):nM(this,zAa(),"Pause"))};g.w(qM,g.W);g.h=qM.prototype;g.h.pd=function(){this.I.V().S("player_new_info_card_format")&&g.wp(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.xC(this.I.V())||(this.u.show(),g.Hu("iv-button-shown"))};
g.h.Eb=function(){g.Hu("iv-button-hidden");this.u.hide()};
g.h.pg=function(){return this.ub&&4!==this.u.state};
g.h.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};
g.h.jX=function(){g.Hu("iv-button-mouseover")};
g.h.onClicked=function(a){this.I.Lh();var b=g.wp(this.I.getRootNode(),"ytp-cards-teaser-shown");g.Hu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Rk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(sM,g.W);g.h=sM.prototype;g.h.vQ=function(){this.I.Lh()&&this.I.Rk()&&this.pg()&&this.Eb()};
g.h.iI=function(){this.Eb();g.Hu("iv-teaser-clicked",null!=this.j);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.QR=function(){g.Hu("iv-teaser-mouseover");this.j&&this.j.stop()};
g.h.JY=function(a){this.I.V().S("player_new_info_card_format")&&!g.xC(this.I.V())&&this.Gi.Eb();this.j||!a||this.I.Rk()||this.u&&this.u.isActive()||(this.pd(a),g.Hu("iv-teaser-shown"))};
g.h.pd=function(a){this.Na("text",a.teaserText);this.element.setAttribute("dir",g.Mp(a.teaserText));this.C.show();this.u=new g.L(function(){g.M(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.S("player_new_info_card_format")&&!g.xC(this.I.V())&&this.Gi.Eb();this.GI()},0,this);
this.u.start();pM(this.Gi,!1);this.j=new g.L(this.Eb,580+a.durationMs,this);this.j.start();this.D.push(this.Pa("mouseover",this.EJ,this));this.D.push(this.Pa("mouseout",this.DJ,this))};
g.h.GI=function(){if(!this.I.V().S("player_new_info_card_format")&&g.xC(this.I.V())&&this.ub){var a=this.Gi.element.offsetLeft,b=g.Rh("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Gi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.PT=function(){g.xC(this.I.V())&&this.X.Ff()&&this.ub&&this.N.start()};
g.h.EJ=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()};
g.h.DJ=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()};
g.h.xX=function(){this.j&&this.j.stop()};
g.h.wX=function(){this.Eb()};
g.h.Ti=function(){this.Eb()};
g.h.Eb=function(){!this.j||this.B&&this.B.isActive()||(g.Hu("iv-teaser-hidden"),this.C.hide(),g.yp(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.L(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.wc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);pM(this.Gi,!0)},330,this),this.B.start())};
g.h.pg=function(){return this.ub&&4!==this.C.state};
g.h.ra=function(){var a=this.I.getRootNode();a&&g.yp(a,"ytp-cards-teaser-shown");g.Af(this.u,this.B,this.j);g.W.prototype.ra.call(this)};var D0={},tM=(D0.BUTTON="ytp-button",D0.TITLE_NOTIFICATIONS="ytp-title-notifications",D0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",D0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",D0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",D0);g.w(uM,g.W);uM.prototype.onClick=function(){this.api.xb(this.element);var a=!this.j;this.Na("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Na("pressed",a);qDa(this,a)};g.w(g.wM,g.W);g.wM.prototype.u=function(){g.M(this.element,"ytp-sb-subscribed")};
g.wM.prototype.B=function(){g.yp(this.element,"ytp-sb-subscribed")};g.w(xM,g.W);g.h=xM.prototype;g.h.DH=function(){uDa(this);this.channel.classList.remove("ytp-title-expanded")};
g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.h.SE=function(){if(sDa(this)&&!this.isExpanded()){this.Na("flyoutUnfocusable","false");this.Na("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.bb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Th&&a.subscribed&&(this.u.show(),this.api.bb(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.h.uE=function(){this.Na("flyoutUnfocusable","true");this.Na("channelTitleFocusable","-1");this.B&&this.B.start()};
g.h.Ka=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Lb&&!!a.profilePicture:g.xC(b)&&(c=!!a.videoId&&!!a.Lb&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.D&&!(b.J&&200>this.api.getPlayerSize().width));var d=g.gD(this.api.V())+a.Lb;g.xC(b)&&(d=vDa(this,d));var e=a.Lb,f=a.profilePicture;b=g.xC(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var k=this.api.V();e=
g.gD(k)+e;g.xC(k)&&(e=vDa(this,e));this.K!==f&&(this.j.style.backgroundImage="url("+f+")",this.K=f);this.Na("channelLink",e);this.Na("channelLogoLabel",g.PF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.M(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.yp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.bb(this.j,c&&this.va);this.subscribeButton&&(this.subscribeButton.channelId=a.tj);this.Na("expandedTitle",a.expandedTitle);this.Na("channelTitleLink",d);this.Na("expandedSubtitle",
a.expandedSubtitle)};g.w(g.yM,g.pI);g.yM.prototype.Kf=function(a){this.Na("label",a)};
g.yM.prototype.Na=function(a,b){g.pI.prototype.Na.call(this,a,b);this.ea("size-change")};g.w(BM,g.pI);BM.prototype.kO=function(){this.ea("size-change")};
BM.prototype.focus=function(){this.content.focus()};
BM.prototype.eO=function(){this.ea("back")};g.w(g.CM,BM);g.CM.prototype.xc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.pc(this.items,a,xDa);if(0<=b)return;b=~b;g.mc(this.items,b,0,a);g.Zh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.VG,this);this.menuItems.ea("size-change")};
g.CM.prototype.lf=function(a){a.unsubscribe("size-change",this.VG,this);this.isDisposed()||(g.gc(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.CM.prototype.VG=function(){this.menuItems.ea("size-change")};
g.CM.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(EM,g.yM);EM.prototype.j=function(a){g.tu(a)||39!==g.uu(a)||(this.element.click(),g.ru(a))};g.w(GM,g.yM);GM.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
GM.prototype.getValue=function(){return this.checked};
GM.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(HM,g.W);g.h=HM.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Na("userInfoFocusable","0");this.Na("userInfoFocusable2","0")};
g.h.hide=function(){g.W.prototype.hide.call(this);this.Na("userInfoFocusable","-1");this.Na("userInfoFocusable2","-1")};
g.h.RR=function(a){var b=ou(a),c=g.bi(this.element,b);a=this.j&&g.bi(this.j,b)&&g.oJ(a);b&&(c||a)||this.hide()};
g.h.SR=function(){g.AJ(function(){window.location.reload()},"user_info_panel",g.RC(this.Ua.V()))};
g.h.Ka=function(){var a=this.Ua.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Th};this.Na("icon",AAa());this.Na("watchingAsUsername",g.PF("Watching as $USER_NAME",a));this.Na("watchingAsEmail",g.PF("($USER_EMAIL)",a))};g.w(IM,g.CM);g.h=IM.prototype;g.h.SW=function(){TL(this.Os.element)};
g.h.eX=function(){KM(this,this.I.getDebugText(!0))&&nM(this.yc,sI())};
g.h.fX=function(){KM(this,this.I.getVideoEmbedCode())&&nM(this.yc,uAa());this.I.xb(this.Hj.element);xJ("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.gX=function(){KM(this,this.I.getVideoUrl(!0,!0))&&nM(this.yc,xI());this.I.xb(this.getVideoUrl.element);xJ("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.hX=function(){KM(this,this.I.getVideoUrl(!1,!0))&&nM(this.yc,xI());this.I.xb(this.Lj.element);xJ("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.uO=function(a){var b;null==(b=this.Qi)||b.setValue(a)};
g.h.qX=function(){this.I.setLoopVideo(this.Qi.getValue());this.sb.Eb();this.I.xb(this.Qi.element)};
g.h.fY=function(a){this.I.reportPlaybackIssue();if(g.QL(a,this.I,!UC(this.I.V()))){a=this.I;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.sb.Eb()};
g.h.xY=function(){this.I.isVideoInfoVisible()?this.I.hideVideoInfo():this.I.showVideoInfo();this.sb.Eb()};
g.h.wY=function(){this.lj&&(this.Jy||(this.Jy=new HM(this.I,this.lj.element),g.H(this,this.Jy),g.eL(this.I,this.Jy.element,4)),this.Jy.show(),this.sb.Eb(),this.I.xb(this.lj.element))};
g.h.onVideoDataChange=function(a,b){zDa(this,b)};
g.h.kc=function(a){g.CM.prototype.kc.call(this,a);this.I.bb(this.Hj.element,a);this.I.bb(this.getVideoUrl.element,a);this.I.bb(this.Lj.element,a);this.Qi&&this.I.bb(this.Qi.element,a);this.lj&&this.I.bb(this.lj.element,a)};g.w(g.LM,g.cM);g.h=g.LM.prototype;g.h.show=function(){g.cM.prototype.show.call(this);this.Nu()};
g.h.hide=function(){g.cM.prototype.hide.call(this);1<this.j.length&&g.NM(this)};
g.h.Nu=function(){BDa(this);this.ub&&(ADa(this),g.Nm(this.element,this.size))};
g.h.Ch=function(){var a=this.j.pop();MM(this,a,this.j[this.j.length-1],!0)};
g.h.TR=function(a){if(!g.tu(a))switch(g.uu(a)){case 27:this.Eb();g.ru(a);break;case 37:1<this.j.length&&this.Ch();g.ru(a);break;case 39:g.ru(a)}};
g.h.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.h.ra=function(){g.cM.prototype.ra.call(this);this.C&&this.C.dispose();this.J&&this.J.dispose()};g.w(g.OM,g.LM);g.h=g.OM.prototype;g.h.VR=function(a){var b=ou(a);if(!(b&&(fi(b,"a")||fi(b,null,"ytp-no-contextmenu",void 0))||this.ub)){var c;this.ma=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ah(a.clientX,a.clientY):new g.Ah(0,0);this.Z.start()}};
g.h.NO=function(){this.Z.stop()};
g.h.PY=function(){this.open(this.ma)};
g.h.show=function(){this.D||(this.D=new IM(this.I,this.xa,this,this.yc),g.H(this,this.D),g.JM(this,this.D));this.D.uO(this.I.getLoopVideo());g.LM.prototype.show.call(this);this.I.bb(this.element,!0);this.D.kc(!0);this.element.tabIndex=-1;this.element.focus()};
g.h.hide=function(){DDa(this);g.LM.prototype.hide.call(this);this.I.bb(this.element,!1);this.D&&this.D.kc(!1)};
g.h.PW=function(a){var b=ou(a);this.ub||b&&(fi(b,"a")||fi(b,null,"ytp-no-contextmenu",void 0))||(g.ru(a),this.open(qu(a)))};
g.h.open=function(a){EDa(this);var b=this.I.getVideoData();g.O(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.pd();var c=document.body;b=new tm(0,Infinity,Infinity,0);var d=Nh(c);for(var e=d.j.body,f=d.j.documentElement,k=Gba(d.j);c=Ifa(c);)if(!(g.Nc&&0==c.clientWidth||g.Gf&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Hm(c,"overflow")){var l=g.Lm(c),m=new g.Ah(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=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.j;d=Fba(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+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&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&
(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.Am(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Jm(this.element,new g.Ah(d.left,d.top));g.dv(this.B);this.B.T(document,"contextmenu",this.YW);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.UR)};
g.h.YW=function(a){if(!g.tu(a)){var b=ou(a);g.bi(this.element,b)||this.Eb();this.I.V().disableNativeContextMenu&&g.ru(a)}};
g.h.onFullscreenToggled=function(){this.Eb();EDa(this)};
g.h.UR=function(){this.Eb()};g.w(g.PM,g.W);g.PM.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,GDa(a,e),2);f.u&&FDa(a);a.api.xb(a.element);g.ua(f)})};
g.PM.prototype.Ka=function(){var a=this.api.V(),b=this.api.getVideoData();this.Na("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.Na("title-attr","Copy link");var c=this.api.eb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Ik&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.oI(this,this.visible);RM(this.tooltip);this.api.bb(this.element,this.visible&&this.va)};
g.PM.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.api.bb(this.element,this.visible&&a)};
g.PM.prototype.ra=function(){g.W.prototype.ra.call(this);g.yp(this.element,"ytp-copylink-button-visible")};g.w(SM,g.W);g.h=SM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.qp(this.j)};
g.h.hide=function(){this.u.stop();g.yp(this.element,"ytp-chapter-seek");g.yp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.mu=function(a,b,c,d){this.nu(a,d)};
g.h.nu=function(a,b){g.sp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.yp(this.element,"ytp-chapter-seek");this.Na("chapterSeekText","");a=g.PF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Na("seekTime",a)};
g.h.UB=function(a,b){g.sp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-chapter-seek");this.Na("chapterSeekText",b);this.Na("seekTime","")};g.w(TM,g.W);g.h=TM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.qp(this.u)};
g.h.hide=function(){this.B.stop();g.yp(this.element,"ytp-chapter-seek");g.yp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.mu=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.xb(e);g.sp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.eb().getPlayerSize().height;e=this.I.eb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height=
k+"px";1===a?(a=this.I.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.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");HDa(this,d)};
g.h.nu=function(a,b){var c=this.I.eb().getPlayerSize();g.sp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";HDa(this,b)};
g.h.UB=function(a,b){g.sp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.j.style.width="0";this.j.style.height="0";g.M(this.element,"ytp-chapter-seek");this.Na("seekText",b);this.Na("seekTime","")};var UTa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(UTa).reduce(function(a,b){a[UTa[b]]=b;return a},{});
var VTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(VTa).reduce(function(a,b){a[VTa[b]]=b;return a},{});
var WTa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(WTa).reduce(function(a,b){a[WTa[b]]=b;return a},{});var E0,XTa;E0=[{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"}];XTa=[{option:0,text:UM(0)},{option:.25,text:UM(.25)},{option:.5,text:UM(.5)},{option:.75,text:UM(.75)},{option:1,text:UM(1)}];
g.YM=[{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:E0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:UM(.5)},{option:-1,text:UM(.75)},{option:0,text:UM(1)},{option:1,text:UM(1.5)},{option:2,text:UM(2)},
{option:3,text:UM(3)},{option:4,text:UM(4)}]},{option:"background",text:"Background color",options:E0},{option:"backgroundOpacity",text:"Background opacity",options:XTa},{option:"windowColor",text:"Window color",options:E0},{option:"windowOpacity",text:"Window opacity",options:XTa},{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:UM(.25)},{option:.5,text:UM(.5)},{option:.75,text:UM(.75)},{option:1,text:UM(1)}]}];g.w(g.XM,g.dA);g.h=g.XM.prototype;
g.h.DM=function(a){var b=!1,c=g.uu(a),d=ou(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.V();g.tu(a)?(e=!1,k=!0):l.gg&&(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);oM(this.yc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);oM(this.yc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.sf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),k=f=!0);break;case 35:this.api.sf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&WM(this,!0);(b||k)&&this.Jd.Jl();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ru(a);l.B&&(a={keyCode:g.uu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.tu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.h.EM=function(a){this.handleGlobalKeyUp(g.uu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.cL(this.api.tb());c&&(c=c.rp)&&c.ub&&(c.zM(a),b=!0);9===a&&(WM(this,!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.V();if(e.gg)return k;var l=g.cL(this.api.tb());if(l&&(l=l.rp)&&l.ub)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.yM(a)}e.C||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&wia(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){f=(f=this.api.getVideoData())?f.yk:[];l=DQ?d:c;switch(a){case 80:b&&
!e.xa&&(nM(this.yc,CAa(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.xa&&(nM(this.yc,yI(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.sf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(-1,10):nM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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()),k=!0);break;case 76:this.api.sf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(1,10):nM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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()),k=!0);break;case 37:this.api.sf()&&(this.api.startSeekCsiAction(),l?(l=KDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.UB(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.j?this.j.nu(-1,5):nM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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()),k=!0));break;case 39:this.api.sf()&&(this.api.startSeekCsiAction(),l?(l=JDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.UB(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.j?this.j.nu(1,5):nM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),oM(this.yc,this.api.getVolume(),!1)):(this.api.mute(),oM(this.yc,0,!0));k=!0;break;case 32:case 75:e.xa||(k=!g.zH(this.api.zb()),this.yc.xr(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),oDa(this.yc,!1),k=!0):this.api.sf()&&(NDa(this,1),k=!0);break;case 188:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-
.25,!0),oDa(this.yc,!0),k=!0):this.api.sf()&&(NDa(this,-1),k=!0);break;case 70:WCa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0);
break;case 27:this.C()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.zL(this.api.tb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),pDa(this.yc,!e||e&&!e.displayName),k=!0);break;case 79:ZM(this,"textOpacity");break;case 87:ZM(this,"windowOpacity");break;case 187:case 61:ZM(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ZM(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.sf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Jd.Jl()}return k};
g.h.ra=function(){g.sp(this.B);g.dA.prototype.ra.call(this)};g.w($M,g.W);$M.prototype.Ka=function(){var a=g.xC(this.I.V())&&g.bL(this.I)&&g.V(this.I.zb(),128),b=this.I.getPlayerSize();this.visible=this.j.Ff()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&RM(this.tooltip);this.I.bb(this.element,this.visible&&this.va)};
$M.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.I.bb(this.element,this.visible&&a)};
$M.prototype.ra=function(){g.W.prototype.ra.call(this);g.yp(this.element,"ytp-overflow-button-visible")};g.w(aN,g.cM);g.h=aN.prototype;g.h.WR=function(a){a=ou(a);g.bi(this.element,a)&&(g.bi(this.j,a)||g.bi(this.closeButton,a)||dM(this))};
g.h.Eb=function(){g.cM.prototype.Eb.call(this);this.tooltip.Ej(this.element)};
g.h.show=function(){this.ub&&this.I.ea("OVERFLOW_PANEL_OPENED");g.cM.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ODa(this,!0)};
g.h.hide=function(){g.cM.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ODa(this,!1)};
g.h.onFullscreenToggled=function(a){!a&&this.pg()&&dM(this)};
g.h.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.ub){b.focus();break}};g.w(cN,g.W);cN.prototype.onClick=function(a){g.QL(a,this.api)&&this.api.playVideoAt(this.index)};g.w(dN,g.cM);g.h=dN.prototype;g.h.show=function(){g.cM.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.hD);this.B.T(this.api,"onPlaylistUpdate",this.hD);this.hD()};
g.h.hide=function(){g.cM.prototype.hide.call(this);g.dv(this.B);this.updatePlaylist(null)};
g.h.hD=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.YB=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;d<c;d++){var e=new cN(this.api,a,d);this.j.push(e);e.Ba(this.items)}this.selected=this.j[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.h.OY=function(a){var b=this.api.getVideoUrl(!0);g.RL(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.YB,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.YB,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.PF(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.YB()}else this.ub&&this.hide();
else this.playlist&&this.YB()};
g.h.focus=function(){this.selected.focus()};
g.h.ra=function(){this.hide();g.cM.prototype.ra.call(this)};g.w(eN,g.W);
eN.prototype.Ka=function(){var a=g.xC(this.api.V());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.eb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.PF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.PF("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ub||(this.show(),RM(this.tooltip)),this.visible=!0,this.kc(!0)):
this.ub&&(this.hide(),this.kc(!1),RM(this.tooltip))};
eN.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.api.bb(this.element,this.visible&&a)};
eN.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ka,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ka,this);this.Ka()};g.w(fN,g.W);g.h=fN.prototype;
g.h.iD=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;a=this.tooltipRenderer.text;var c=!1,d;(null==a?0:null==(d=a.runs)?0:d.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),c=!0);g.Pm(this.title,c);a=this.tooltipRenderer.detailsText;d=!1;var e;if((null==a?0:null==(e=a.runs)?0:e.length)&&a.runs[0].text){c=a.runs[0].text.toString();e=c.indexOf("$TARGET_ICON");if(-1<e)if(this.tooltipRenderer.targetId){a=[];c=c.split("$TARGET_ICON");var f=new g.lI({G:"span",L:"ytp-promotooltip-details-icon",
U:[YTa[this.tooltipRenderer.targetId]]});g.H(this,f);for(var k=[],l=g.r(c),m=l.next();!m.done;m=l.next())m=new g.lI({G:"span",L:"ytp-promotooltip-details-component",oa:m.value}),g.H(this,m),k.push(m);2===c.length?(a.push(k[0].element),a.push(f.element),a.push(k[1].element)):1===c.length&&(0===e?(a.push(f.element),a.push(k[0].element)):(a.push(k[0].element),a.push(f.element)));e=a.length?a:null}else e=null;else e=c;if(e){if("string"!==typeof e)for(g.Yh(this.details),d=g.r(e),e=d.next();!e.done;e=d.next())this.details.appendChild(e.value);
else this.update({details:e});d=!0}}g.Pm(this.details,d);d=this.tooltipRenderer.acceptButton;e=!1;var n,p,q;(null==d?0:null==(n=d.buttonRenderer)?0:null==(p=n.text)?0:null==(q=p.runs)?0:q.length)&&d.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.Pm(this.acceptButton,e);n=this.tooltipRenderer.dismissButton;p=!1;var t,v,x;(null==n?0:null==(t=n.buttonRenderer)?0:null==(v=t.text)?0:null==(x=v.runs)?0:x.length)&&n.buttonRenderer.text.runs[0].text&&
(this.update({dismissButtonText:n.buttonRenderer.text.runs[0].text.toString()}),p=!0);g.Pm(this.dismissButton,p)}b&&(this.B=b);this.j=PDa(this);this.D=!1;this.I.V().S("web_player_hide_nitrate_promo_tooltip")||g.oI(this,!0);(b=!this.j)||(b=this.j,t=window.getComputedStyle(b),b="none"===t.display||"hidden"===t.visibility||"true"===b.getAttribute("aria-hidden"));b||this.I.Te()?g.oI(this,!1):(b=g.Om(this.j),b.width&&b.height?(this.K.Wq(this.element,this.j),t=this.I.eb().getPlayerSize().height-g.Om(this.element).height-
b.height-12,this.element.style.top=t+"px",t=this.Da("ytp-promotooltip-pointer"),v=g.Mm(this.j,this.I.getRootNode()),x=Number(this.element.style.left.replace(/[^\d\.]/g,"")),n=this.I.isFullscreen()?18:12,t.style.left=v.x-x+b.width/2-n+"px"):g.oI(this,!1));this.J||(this.J=!0,hN(this,0));this.u&&this.I.bb(this.element,this.ub)}};
g.h.RW=function(){gN(this);this.D=!0};
g.h.fW=function(){this.C=!0;hN(this,1);this.I.ea("promotooltipacceptbuttonclicked",this.acceptButton);gN(this);this.u&&this.I.xb(this.acceptButton)};
g.h.XW=function(){this.C=!0;hN(this,2);gN(this);this.u&&this.I.xb(this.dismissButton)};
g.h.XR=function(a){if(1===this.I.getPresentingPlayerType()){var b=!0,c=g.Rh("ytp-ad-overlay-ad-info-dialog-container"),d=ou(a);if(this.B&&d&&g.bi(this.B,d))this.B=null;else{1===this.I.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=QDa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.bi(this.element,d));else{var k;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(k=this.tooltipRenderer.dismissStrategy)?void 0:k.type)&&(b=e?!1:b&&g.bi(this.element,d))}this.j&&this.ub&&!c&&(!d||b&&g.oJ(a))&&(this.C=!0,gN(this))}}};
g.h.yb=function(){this.D||(this.j||(this.j=PDa(this)),this.iD())};
var YTa={"ytp-settings-button":g.CI()};g.w(iN,g.W);iN.prototype.onStateChange=function(a){g.oI(this,g.V(a.state,2))};
iN.prototype.onClick=function(){this.I.zb();this.I.playVideo()};g.w(g.jN,g.W);g.jN.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(RDa)}catch(e){e instanceof Error&&RDa(e)}else this.j.Yk(),dM(this.B,this.element,!1);this.api.xb(this.element)};
g.jN.prototype.Ka=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.xC(a)&&g.bL(this.api)&&g.V(this.api.zb(),128);this.Na("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.Ik||c||b.D&&a.pfpChazalUi;c=this.api.eb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.oI(this,this.visible);RM(this.tooltip);this.api.bb(this.element,this.visible&&this.va)};
g.jN.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.api.bb(this.element,this.visible&&a)};
g.jN.prototype.ra=function(){g.W.prototype.ra.call(this);g.yp(this.element,"ytp-share-button-visible")};g.w(g.kN,g.cM);g.h=g.kN.prototype;g.h.YR=function(a){a=ou(a);g.bi(this.D,a)||g.bi(this.closeButton,a)||dM(this)};
g.h.Eb=function(){g.cM.prototype.Eb.call(this);this.tooltip.Ej(this.element)};
g.h.show=function(){var a=this.ub;g.cM.prototype.show.call(this);this.Ka();a||this.api.Oa("onSharePanelOpened")};
g.h.GV=function(){this.ub&&this.Ka()};
g.h.Ka=function(){var a=this;g.M(this.element,"ytp-share-panel-loading");g.yp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&NJ(this.api.dl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.yp(a.element,"ytp-share-panel-loading"),TDa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.IC(this.api.V())&&(b=g.nj(b,g.rK({},"emb_share")));this.Na("link",b);this.Na("linkText",b);this.Na("shareLinkWithUrl",g.PF("Share link $URL",{URL:b}));TL(this.B)};
g.h.onFullscreenToggled=function(a){!a&&this.pg()&&dM(this)};
g.h.focus=function(){this.B.focus()};
g.h.ra=function(){g.cM.prototype.ra.call(this);SDa(this)};g.w(nN,g.W);g.h=nN.prototype;g.h.EG=function(){};
g.h.FG=function(){};
g.h.uy=function(){return!0};
g.h.VZ=function(){if(this.expanded){this.xa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.xa.hide();this.Wa=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Wa)+"px";this.ma.start()};
g.h.nU=function(){this.badge.element.style.width=(this.expanded?this.Wa:34)+"px";this.Ia.start()};
g.h.y_=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.h.ri=function(){this.uy()?this.N.show():this.N.hide();UDa(this)};
g.h.ZR=function(){this.enabled=!1;this.ri()};
g.h.x_=function(){this.ri()};
g.h.JW=function(a){this.Sa=1===a;this.ri();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.h.cX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.ri()};g.w(oN,nN);g.h=oN.prototype;g.h.ra=function(){pN(this);nN.prototype.ra.call(this)};
g.h.EG=function(a){a.target!==this.dismissButton.element&&(WDa(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))};
g.h.FG=function(){this.B=!0;WDa(this,!0);this.ri()};
g.h.OX=function(a){this.Ea=a;this.ri()};
g.h.GX=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.ya&&(this.X=a,a||(a=3+this.I.getCurrentTime(),this.Rd(a)))};
g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.X=this.ya=this.u=this.K=!1,pN(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ea=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.I.gk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.I.gk(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Lw(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Qa=g.Lw(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;mE(b)?this.X=this.ya=!0:this.Rd()}VDa(this);mN(this);this.ri()};
g.h.uy=function(){return!this.Ea&&this.enabled&&!this.B&&!this.Xa.Ff()&&!this.Sa&&!this.X&&(this.u||this.j)};
g.h.Oe=function(a){(this.u=a)?(lN(this),mN(this,!1)):(pN(this),this.Z.start());this.ri()};
g.h.Rd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Ew(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Ew(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Rd(b)};g.w(qN,g.cM);qN.prototype.show=function(){g.cM.prototype.show.call(this);this.C.start()};
qN.prototype.hide=function(){g.cM.prototype.hide.call(this);this.C.stop()};
qN.prototype.xt=function(a,b){"dataloaded"===a&&((this.B=b.NK,this.j=b.LK,isNaN(this.B)||isNaN(this.j))?this.D&&(this.I.kf("intro"),this.I.removeEventListener(g.Gw("intro"),this.ma),this.I.removeEventListener(g.Hw("intro"),this.Z),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.Gw("intro"),this.ma),this.I.addEventListener(g.Hw("intro"),this.Z),this.I.addEventListener("onShowControls",this.J),a=new g.Ew(this.B,this.j,{priority:9,namespace:"intro"}),
this.I.Rd([a]),this.D=!0))};g.w(rN,g.W);rN.prototype.onClick=function(){this.I.qp()};
rN.prototype.Ka=function(){var a=!0;g.xC(this.I.V())&&(a=a&&480<=this.I.eb().getPlayerSize().width);g.oI(this,a);this.Na("icon",this.I.Df()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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",Jb:!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 us("yt.autonav");g.w(sN,g.W);g.h=sN.prototype;
g.h.wv=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.fL(this.I)&&400<=this.I.eb().getPlayerSize().width)a=this.I.getVideoData(),a=this.I.V().S("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.R_;if(a)this.j||(this.j=!0,g.oI(this,this.j),this.I.V().S("web_player_autonav_toggle_always_listen")||XDa(this),a=this.I.getVideoData(),this.FJ(a.autonavState),this.I.bb(this.element,this.j));else if(this.j=!1,g.oI(this,this.j),!this.I.V().S("web_player_autonav_toggle_always_listen")){this.I.V().S("web_player_autonav_toggle_always_listen");
a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.wc(b.value)}};
g.h.FJ=function(a){ZDa(this)?this.isChecked=1!==a:((a=1!==a)||(g.ns.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.os(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.os(0,140)),this.isChecked=a);YDa(this)};
g.h.onClick=function(){this.isChecked=!this.isChecked;this.I.XB(this.isChecked?2:1);YDa(this);if(ZDa(this)){var a=this.I.getVideoData().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.Oa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.Oa("innertubeCommand",a.onDisabledCommand)}this.I.xb(this.element)};
g.h.getValue=function(){return this.isChecked};
g.h.setValue=function(a){this.isChecked=a;this.Da("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.uN,g.W);g.uN.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.w(vN,g.W);vN.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.j)};
vN.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
vN.prototype.J=function(){this.C.disabled=null==this.j;g.O(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Qb()};g.w(wN,vN);wN.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()};
wN.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.VQ)?void 0:c.command;vN.prototype.J.call(this)};
wN.prototype.Qb=function(){var a="",b=this.u.j,c=!!this.I.getLoopRange();if(1<b.length&&!c){a=1E3*this.I.getProgressState().current;c=VM(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.B)this.I.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;vN.prototype.K.call(this,a)};g.w(g.yN,g.W);g.yN.prototype.Tc=function(a){g.V(a.state,32)?zN(this,this.api.jh()):this.ub&&(g.V(a.state,16)||g.V(a.state,1))||this.j.hide()};
g.yN.prototype.Gd=function(){var a=this.api.zb();(g.V(a,32)||g.V(a,16))&&AN(this)};
g.yN.prototype.D=function(){this.B=NaN;AN(this)};
g.yN.prototype.hide=function(){this.u&&zN(this,null);g.W.prototype.hide.call(this)};g.w(BN,g.W);BN.prototype.onClick=function(){this.Ua.xb(this.element);this.Ua.Oa("onFullerscreenEduClicked")};
BN.prototype.Ka=function(){this.Ua.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ua.bb(this.element,this.Ua.isFullscreen()&&!this.u)};g.w(g.CN,g.W);g.h=g.CN.prototype;g.h.onClick=function(){var a=this;if(this.I.V().Xa||this.I.V().J){this.I.xb(this.element);try{this.I.toggleFullscreen().catch(function(b){a.Sw(b)})}catch(b){this.Sw(b)}}else dM(this.message,this.element,!0)};
g.h.Sw=function(a){String(a).includes("fullscreen error")?g.Ov(a):g.S(a);this.NG()};
g.h.NG=function(){this.disable();this.message.pd(this.element,!0)};
g.h.Rm=function(){Zu()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.h.JT=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.NG()}};
g.h.disable=function(){var a=this;if(!this.message){var b=(null!=iu(["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.cM(this.I,{G:"div",Ga:["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.I.V().K},oa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.Us(a.message,c)});
g.eL(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.h.Ka=function(){var a=WCa(this.I),b=this.I.V().J&&250>this.I.getPlayerSize().width;g.oI(this,a&&!b);this.I.bb(this.element,this.ub)};
g.h.ij=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",Jb:!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",Jb:!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",Jb:!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",Jb:!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=UL(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.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",Jb:!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",
Jb:!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",Jb:!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",Jb:!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=UL(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});RM(this.u.pc())};
g.h.ra=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ra.call(this)};g.w(DN,vN);DN.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Qb()};
DN.prototype.updateVideoData=function(){var a,b;this.j=null==(a=this.u.Hb)?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;vN.prototype.J.call(this)};
DN.prototype.Qb=function(){var a="",b=this.u.ma,c,d=null==(c=this.u.Hb)?void 0:c.headerTitle;c=d?g.Lw(d):"";d=!!this.I.getLoopRange();1<b.length&&!d&&(a=1E3*this.I.getProgressState().current,d=IDa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.I.Oa("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));vN.prototype.K.call(this,a)};g.w(EN,g.W);EN.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.xb(this.element)};
EN.prototype.Ka=function(){this.visible=!this.I.isFullscreen();g.oI(this,this.visible);this.I.bb(this.element,this.visible&&this.va)};
EN.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.I.bb(this.element,this.visible&&a)};g.w(FN,g.W);FN.prototype.onVideoDataChange=function(a){this.Ka("newdata"===a)};
FN.prototype.Ka=function(a){var b=this.I.getVideoData(),c=b.Wc,d=this.I.zb();d=(g.zH(d)||g.V(d,4))&&0<c.length;g.oI(this,d);a&&(this.j=!0);if(d){this.j&&g.qp(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.PF("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.Se("default.jpg")});RM(this.tooltip)}else this.u.stop()};
FN.prototype.B=function(){QM(this.tooltip,this.element,"More cameras available");this.j=!1};g.w(GN,g.cM);g.h=GN.prototype;g.h.show=function(){var a=this.ub;g.cM.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Ka),this.B.T(this.api,"videodatachange",this.Ka),this.Ka())};
g.h.hide=function(){this.B&&(g.dv(this.B),g.cM.prototype.hide.call(this))};
g.h.Ka=function(){var a=this,b=this.api.getVideoData(),c=b.Wc,d,e={};for(d=0;d<c.length;e={CC:e.CC},d++){var f=this.j[d];f||(f=new g.W({G:"button",Ga:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",oa:"{{cameraName}}"}]}),e.CC=d,f.Pa("click",function(n){return function(){var p=n.CC,q=a.api.getVideoData(),t=a.api,v=q.Wc[p];p=g.gL(t.app,1).getVideoData();q=t.getCurrentTime();v.id===p.videoId?(v=g.gL(t.app,
1),g.gL(t.app)!==v&&(t.app.Vm(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:v.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.rK}}}},4)}}(e)),f.Ba(this.items),this.j[d]=f);
var k=c[d],l=k.id;if(l!==f.element.getAttribute("data-id")){var m=k.thumbnail_url;!m&&l&&(m=TC(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:k.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.zb();b=c.length||!b.isLoaded();g.zH(d)||g.V(d,4)||b||!this.pg()||dM(this)};
g.h.focus=function(){for(var a=this.api.getVideoData(),b=a.Wc,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.h.ra=function(){g.Af(this.j);g.cM.prototype.ra.call(this)};g.w(HN,g.G);HN.prototype.j=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Op(ZTa,a));1>a&&this.delay.start()};
var ZTa=new g.Np(0,0,.4,0,.2,1,1,1),dEa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.JN,g.W);g.h=g.JN.prototype;g.h.GJ=function(a){this.visible=300<=a.width;g.oI(this,this.visible);this.I.bb(this.element,this.visible&&this.va)};
g.h.yX=function(){this.I.V().va?this.I.isMuted()?this.I.unMute():this.I.mute():dM(this.message,this.element,!0);this.I.xb(this.element)};
g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.X;isNaN(f)?gEa(this,a):IN(this.ma,function(l){gEa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var k=this.K;isNaN(k)?hEa(this,d):IN(this.N,function(l){hEa(c,k+(c.C-k)*l)},250);
this.C=d}e.va&&(e=UL(this.I,"Mute","m"),d=UL(this.I,"Unmute","m"),this.Na("title",b?d:e),RM(this.tooltip))};
g.h.kc=function(a){g.W.prototype.kc.call(this,a);this.I.bb(this.element,this.visible&&a)};
var eEa=["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"],fEa=["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(KN,g.W);KN.prototype.onClick=function(){this.I.togglePictureInPicture()};g.w(g.LN,g.W);g.LN.prototype.onStateChange=function(a){iEa(this,a.state);a=g.V(a.state,2);aD(this.I.V())&&(!this.j&&!a||this.j&&a?(this.hide(),this.I.bb(this.element,!1)):(this.show(),this.I.bb(this.element,!0)))};
g.LN.prototype.onVideoDataChange=function(){g.O(this.element,"ytp-play-button-playlist",g.bL(this.I))};
g.LN.prototype.Hu=function(a){this.I.xb(this.element);if(g.zH(this.I.zb()))this.I.pauseVideo();else{if(this.I.Te()&&this.I.zb().isCued()){var b={},c;!this.I.S("web_player_csi_ctt_killswitch")&&(null==(c=this.I.getVideoData())?0:c.X)&&(b.cttAuthInfo={token:this.I.getVideoData().X,videoId:this.I.getVideoData().videoId});jx("direct_playback",b)}this.I.Ki().timerName="direct_playback";this.I.playVideo()}this.I.V().S("miniplayer_disable_play_button_click_focus")&&this.I.Te()&&a&&"click"===a.type&&this.element.blur()};g.w(g.NN,g.W);g.h=g.NN.prototype;g.h.onVideoDataChange=function(){kEa(this);this.C&&(this.wc(this.C),this.C=null);this.videoData=this.I.getVideoData(1);if(this.playlist=this.I.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.I,"progresssync",this.aS);this.B=lEa(this);MN(this);this.jD(this.I.eb().getPlayerSize())};
g.h.jD=function(a){a=void 0===a?this.I.eb().getPlayerSize():a;a=(g.bL(this.I)||this.j&&g.fL(this.I)||mEa(this))&&(this.j||400<=a.width);g.oI(this,a);this.I.bb(this.element,a)};
g.h.onClick=function(a){this.I.xb(this.element);var b=!0;this.isLinkable?b=g.QL(a,this.I):g.ru(a);b&&(this.j&&5===this.I.getPresentingPlayerType()?this.I.ea("ytoprerollinternstitialnext"):this.j?this.I.nextVideo(!0):this.B?this.I.seekTo(0):this.I.previousVideo(!0))};
g.h.aS=function(){var a=lEa(this);a!==this.B&&(this.B=a,MN(this))};
g.h.ra=function(){this.u&&(this.u(),this.u=null);kEa(this);g.W.prototype.ra.call(this)};g.w(ON,g.W);g.h=ON.prototype;g.h.bS=function(a){this.JJ(a.pageX);this.IJ(a.pageX+a.deltaX);this.HJ()};
g.h.JJ=function(a){this.ma=a};
g.h.IJ=function(a){!isNaN(this.ma)&&0<this.thumbnails.length&&(this.Z=a-this.ma,0<this.thumbnails.length&&0!==this.Z&&(this.C=this.D+this.Z,a=-(this.C-this.K/2)/this.B.offsetWidth*this.api.getDuration(),0<=a&&a<=this.api.getDuration()?(this.api.seekTo(a,!1),g.Dm(this.B,"transform","translateX("+this.C+"px)"),a=g.nJ(a),this.update({seekTime:a})):this.C=this.D))};
g.h.HJ=function(){this.ma=NaN;this.Z=0;this.D=this.C};
g.h.play=function(){var a=-(this.C-this.K/2)/this.B.offsetWidth*this.api.getDuration();this.api.seekTo(a);this.api.playVideo()};
g.h.enable=function(){this.ya=this.api.getCurrentTime();this.isEnabled=!0;this.xa=this.T(this.element,"wheel",this.bS)};
g.h.disable=function(){this.hide();this.isEnabled=!1;this.xa&&this.wc(this.xa)};
g.h.reset=function(){this.disable();this.u=[];this.X=!1};
g.h.ra=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.ra.call(this)};
g.w(nEa,g.W);g.w(QN,g.W);g.w(pEa,g.W);g.w(RN,g.W);sEa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.j=b-c-d;this.position=g.wh(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(VN,g.W);g.w(g.XN,g.pI);g.h=g.XN.prototype;g.h.yb=function(){g.$N(this);cO(this);ZN(this,this.ma);var a;null==(a=this.u)||PN(a,this.api.getCurrentTime())};
g.h.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&aO(this,b)}};
g.h.MY=function(a){this.api.Oa("innertubeCommand",this.Qd[a.id])};
g.h.Qb=function(){cO(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.RB()};
g.h.bX=function(a){if(!g.tu(a)){var b=!1;switch(g.uu(a)){case 32:var c;(null==(c=this.u)?0:c.isEnabled)&&this.XE();b=!0;break;case 27:var d;(null==(d=this.u)?0:d.isEnabled)&&this.XL();b=!0}b&&g.ru(a)}};
g.h.dS=function(a){if(!g.tu(a)){var b=!1;switch(g.uu(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.ru(a)}};
g.h.xt=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.PU=function(){this.xt("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(HE(a)||fO(this)?this.Ub=!1:this.Ub=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!HE(a))));IEa(this,this.api.sf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;iO(this);for(dO(this,this.Z,this.jb);0<this.J.length;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.rb={};var d;null==(d=this.u)||d.reset();nO(this)}else this.RB();g.qP(this.tooltip)}if(a){d=a.watchNextResponse;
if(d=!a.isLivePlayback&&d)d=this.api.getVideoData(),b=d.TD,d=null!=d.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<d.Cr.length;if(!d||this.Vb||this.Vb)tEa(this),YN(this);else{d=this.api.getVideoData();b=d.multiMarkersPlayerBarRenderer;if(null==b?0:b.markersMap){d=this.api.getVideoData();var e;d.wq=(null==(e=b.visibleOnLoad)?void 0:e.key)||d.wq;e=g.r(b.markersMap);for(b=e.next();!b.done;b=e.next())b=b.value,b.key&&b.value&&(this.rb[b.key]=b.value);null!=d.wq&&aO(this,d.wq)}else{if(e=this.api.V().S("web_key_moments_markers")&&
0<d.Cr.length){e=g.A0.getState().entities;b=g.r(d.Cr);for(var f=b.next();!f.done;f=b.next()){c=f.value;var k=void 0;f=null==(k=e.macroMarkersListEntity?e.macroMarkersListEntity[c]||null:null)?void 0:k.markersList;k=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(k=f)?void 0:k.markerType)&&(this.bd[c]=f)}c=!1;b=g.MK("visibility_override","markersVisibilityOverrideEntity");e=e.markersVisibilityOverrideEntity?e.markersVisibilityOverrideEntity[b]||null:null;e=g.r((null==e?void 0:e.videoId)===d.videoId&&(null==
e?0:e.visibilityOverrideMarkersKey)?e.visibilityOverrideMarkersKey:d.visibleOnLoadKeys);for(f=e.next();!f.done;f=e.next())if(b=f.value,f=void 0,k=null==(f=this.bd[b])?void 0:f.markers){YN(this);c=g.r(k);for(f=c.next();!f.done;f=c.next()){k=f.value;f=new VN;var l=void 0;f.title=(null==(l=k.title)?void 0:l.simpleText)||"";f.timeRangeStartMillis=Number(k.startMillis);f.j=Number(k.durationMillis);var m=l=void 0;f.onActiveCommand=null!=(m=null==(l=k.uha)?void 0:l.innertubeCommand)?m:void 0;wEa(this,f)}ZN(this,
this.ma);c=this.ma;f=this.Qd;k=[];l=null;for(m=0;m<c.length;m++){var n=c[m].timeRangeStartMillis;if(!isNaN(n)&&c[m].onActiveCommand){var p=void 0,q=null!=(p=c[m].j)?p:1E4;l&&l.end>n&&(l.end=n);n=LDa(n,n+q);k.push(n);l=n;f[n.id]=c[m].onActiveCommand}}this.api.Rd(k);this.Hb=this.bd[b];c=!0}e=c}!e&&(e=d.TD)&&(vEa(this,e),d.yk=this.j,uEa(this))}a.qK&&0===this.J.length&&(a=a.qK,d=a.key,a.isVisible&&d&&aO(this,d))}}cO(this)};
g.h.cS=function(a){this.X&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.X.cancel()};
g.h.KJ=function(a){var b=!!this.Vb!==!!a;(this.Vb=a)?(this.Na("clipstarticon",yAa()),this.Na("clipendicon",yAa()),this.Na("clipstarttitle",null),this.Na("clipendtitle",null)):(this.Na("clipstarticon",tAa()),this.Na("clipendicon",sAa()),this.Na("clipstarttitle","Watch full video"),this.Na("clipendtitle","Watch full video"));iO(this);dO(this,this.Z,this.jb);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.$N(this))};
g.h.RX=function(a,b,c){var d=g.Lm(this.element),e=bO(this).j,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=uJ(this.B,Number(c.getAttribute("data-position")),0)*e+g.Lm(this.Ic).x);this.Lb.x=a-d.x;this.Lb.y=b-d.y;a=bO(this);c=hO(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:HE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.ya,m=uJ(this.B,m)*bO(this).j+b,a.position=m),
b=this.B.u;fO(this)&&(b=this.B.u);m=f||g.nJ(this.Ub?c-this.B.j:c-b);b=a.position+this.Qf;c-=this.api.qd();if(this.api.jh()){if(1<this.j.length){d=gO(this,this.Lb.x,!0);for(e=0;e<this.j.length;)g.O(this.j[e].j,"ytp-exp-chapter-hover-effect",e===d),e++;e=this.j[d].startTime;k=d===this.j.length-1?Infinity:this.j[d+1].startTime;for(var n=g.r(this.ma),p=n.next();!p.done;p=n.next())p=p.value,g.O(p.element,"ytp-timed-marker-hover",p.timeRangeStartMillis>=e&&p.timeRangeStartMillis<k);if(1<this.J.length)for(e=
0;e<this.j.length;e++)g.O(this.J[e].element,"ytp-heatmap-hover",e===d)}e=this.tooltip.scale;l=(isNaN(l)?0:l)-45*e;this.api.S("web_key_moments_markers")?this.Hb?(d=IDa(this.ma,1E3*c),d=null!=d?this.ma[d].title:""):(d=VM(this.j,1E3*c),d=this.j[d].title):(d=VM(this.j,1E3*c),d=this.j[d].title);d||(l+=16*e);.6===this.tooltip.scale&&(l=d?110:126);e=VM(this.j,1E3*c);this.Ya=BEa(this,c,e)?e:BEa(this,c,e+1)?e+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Ya&&1<this.j.length);e=!1;k=g.r(this.heatMarkersDecorations);
for(n=k.next();!n.done;n=k.next())n=n.value,p=1E3*c,p>=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(d=n.label,m=g.nJ(n.decorationTimeMillis/1E3),e=!0);this.Wc!==e&&(this.Wc=e,this.api.bb(this.Pc,this.Wc));g.O(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=320*this.tooltip.scale;k=d.length*(this.C?8.55:5.7);e=k<=e?k:e;k=e<160*this.tooltip.scale;n=3;!k&&e/2>a.position&&(n=1);!k&&e/2>this.D-a.position&&(n=2);this.api.V().J&&(l-=10);this.J.length&&this.J[0].isValid&&(l-=
14*(this.C?2:1),this.Ja||(this.Ja=!0,this.api.bb(this.xa,this.Ja)));var q;if(WN(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.N)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?jO(this):this.N}bFa(this.tooltip,b,c,m,!!f,l,d,n)}else bFa(this.tooltip,b,c,m,!!f,l);g.M(this.api.getRootNode(),"ytp-progress-bar-hover");AEa(this)};
g.h.QX=function(){g.qP(this.tooltip);g.yp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ja&&(this.Ja=!1,this.api.bb(this.xa,this.Ja))};
g.h.PX=function(a,b){WN(this)&&this.u&&(this.u.X?PN(this.u,this.api.getCurrentTime()):oEa(this.u),this.u.show(),g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.K&&(this.K.dispose(),this.K=null);this.md=b;1<this.j.length&&-1!==this.Ya?this.api.seekTo(this.j[this.Ya].startTime/1E3,!1):this.api.seekTo(hO(this,bO(this)),!1);g.M(this.element,"ytp-drag");(this.Ud=g.zH(this.api.zb()))&&this.api.pauseVideo()};
g.h.SX=function(){var a=this;if(WN(this)&&this.u){var b=jO(this);this.N>=.5*b?(this.u.enable(),PN(this.u,this.api.getCurrentTime()),HEa(this,b)):nO(this);g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled)}else if(this.Tb=0,g.yp(this.element,"ytp-pull-ui"),g.yp(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0<this.N){var c=(0,g.R)();this.K=new g.op(function(){var f=a.N,k=bO(a).position,l=1-Math.pow(1-((0,g.R)()-c)/200,3);k+=l*(a.Z*a.D-k);if(0>l||1<l)l=1;CEa(a,
(1-l)*f,k,a.Z);1>l&&a.K.start()});
this.K.start();this.Sa&&(this.Sa=!1,this.api.bb(this.ib,this.Sa))}if(g.V(this.api.zb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Ya)this.api.seekTo(this.j[this.Ya].startTime/1E3);else{b=hO(this,bO(this));this.api.seekTo(b);for(var d=g.r(this.heatMarkersDecorations),e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.xb(this.Pc)}g.yp(this.element,"ytp-drag");this.Ud&&
!g.V(this.api.zb(),2)&&this.api.playVideo()}};
g.h.TX=function(a,b){var c=this,d=!1,e=!1;a=bO(this);1===this.j.length&&!WN(this)&&3600<=sJ(this.B)&&(CEa(this,this.md-b-10,a.position,a.B),e=!0,d=this.N>.1*(this.C?60:40),a=bO(this));g.O(this.element,"ytp-pull-ui",e);d&&g.M(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Tb!==d&&(this.Tb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.R)();this.K=new g.op(function(){var l=c.D*(c.Xa-1);c.ya=g.wh(c.ya+c.Tb*((0,g.R)()-f)*.3,0,l);eO(c);c.api.seekTo(hO(c,
bO(c)),!1);0<c.ya&&c.ya<l&&c.K.start()});
this.K.start()}a=hO(this,a);this.api.seekTo(a,!1);var k;WN(this)&&(null==(k=this.u)?0:k.X)&&(k=jO(this),b=this.md-b-10,this.u.isEnabled&&(b=k+b,PN(this.u,a)),this.N=g.wh(b,0,k),HEa(this,this.N))};
g.h.hO=function(){this.Vb||(this.Na("clipstarticon",rAa()),this.Na("clipendicon",rAa()),g.M(this.element,"ytp-clip-hover"))};
g.h.gO=function(){this.Vb||(this.Na("clipstarticon",tAa()),this.Na("clipendicon",sAa()),g.yp(this.element,"ytp-clip-hover"))};
g.h.RB=function(){this.clipStart=0;this.clipEnd=Infinity;iO(this);dO(this,this.Z,this.jb)};
g.h.yQ=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Qa[c]){var d=g.Wh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Qa[c]=b;this.Rb[c]=d;g.vp(d,b.style);DEa(this,c);this.api.V().S("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else GEa(this,b)};
g.h.yZ=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())GEa(this,b.value)};
g.h.XL=function(){this.u&&(this.api.seekTo(this.u.ya),this.u.play(),nO(this))};
g.h.XE=function(){this.u&&(this.u.play(),nO(this))};
g.h.ra=function(){IEa(this,!1);g.pI.prototype.ra.call(this)};g.w(oO,g.W);oO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
oO.prototype.Ka=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.oI(this,a&&400<=this.I.eb().getPlayerSize().width);this.I.bb(this.element,this.ub);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b){this.currentIcon=b;switch(b){case 1:this.Na("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!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.Na("icon",g.qAa())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
oO.prototype.j=function(){this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.sb.mC(this.element);this.I.xb(this.element)};g.w(pO,g.W);pO.prototype.j=function(a){g.oI(this,this.u&&400<=a.width)};
pO.prototype.B=function(){var a=this.sb;a.ub?a.Eb():a.pd(this.element)};g.w(qO,g.yM);qO.prototype.onClick=function(){this.sb.Eb()};g.w(sO,qO);sO.prototype.onClick=function(){qO.prototype.onClick.call(this);this.I.Oa("onCollapseMiniplayer");this.I.xb(this.element)};
sO.prototype.Ka=function(){var a=!this.I.isFullscreen();rO(this,a);this.I.bb(this.element,this.j)};g.w(tO,qO);tO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
tO.prototype.Ka=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);rO(this,a&&!this.I.isFullscreen());this.I.bb(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b)switch(this.currentIcon=b,b){case 1:this.Na("icon",{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!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.Na("icon",{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!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"}}]})}};
tO.prototype.onClick=function(){qO.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.B.mC(this.element);this.I.xb(this.element)};g.w(uO,qO);uO.prototype.onClick=function(){qO.prototype.onClick.call(this);mV(this.I.app);this.I.xb(this.element)};
uO.prototype.Ka=function(){var a=this.I.ex()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType();rO(this,a);this.j&&(a=this.I.isWidescreen(),this.isWidescreen!==a&&(AM(this,a?{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!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:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!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"}}]}),this.isWidescreen=a,this.u.Na("title",a?"Default view":"Theater mode")));this.I.bb(this.element,this.j)};g.w(vO,g.LM);vO.prototype.pd=function(a){0<this.Xc.items.length&&g.LM.prototype.pd.call(this,a)};
vO.prototype.xc=function(a){this.Xc.xc(a);a=this.Ym;a.u=0<this.Xc.items.length;a.j(a.I.eb().getPlayerSize())};
vO.prototype.lf=function(a){this.ub&&1>=this.Xc.items.length&&this.hide();this.Xc.lf(a);a=this.Ym;a.u=0<this.Xc.items.length;a.j(a.I.eb().getPlayerSize())};
vO.prototype.mC=function(){};g.w(wO,g.W);wO.prototype.j=function(a){var b=400;this.I.V().J&&(b=200);a=this.u&&a.width>=b;g.oI(this,a);this.I.bb(this.element,a)};
wO.prototype.B=function(){if(this.sb.ub)this.sb.Eb();else{var a=g.zL(this.I.tb());a&&!a.loaded&&(a.yf("tracklist",{includeAsr:!0}).length||a.load());this.I.xb(this.element);this.sb.pd(this.element)}};
wO.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.dL(this.I),e=c&&!!g.cL(this.I.tb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(yO,GM);yO.prototype.isLoaded=function(){var a=g.IL(this.I.tb());return void 0!==a&&a.loaded};
yO.prototype.Ka=function(){void 0!==g.IL(this.I.tb())&&3!==this.I.getPresentingPlayerType()?this.j||(this.sb.xc(this),this.j=!0):this.j&&(this.sb.lf(this),this.j=!1);this.setValue(this.isLoaded())};
yO.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)};
yO.prototype.ra=function(){this.j&&this.sb.lf(this);GM.prototype.ra.call(this)};g.w(g.zO,g.yM);g.h=g.zO.prototype;g.h.open=function(){g.JM(this.sb,this.B)};
g.h.zi=function(a){KEa(this);this.options[a].element.setAttribute("aria-checked","true");this.Bd(this.Dj(a));this.u=a};
g.h.mE=function(a,b,c){var d=this;b=new g.yM({G:"div",Ga:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ga:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Dj(a,!0));b.Pa("click",function(){d.Of(a)});
return b};
g.h.enable=function(a){this.C?a||(this.C=!1,this.Yr(!1)):a&&(this.C=!0,this.Yr(!0))};
g.h.Yr=function(a){a?this.sb.xc(this):this.sb.lf(this)};
g.h.Of=function(a){this.ea("select",a)};
g.h.Dj=function(a){return a.toString()};
g.h.eS=function(a){g.tu(a)||39!==g.uu(a)||(this.open(),g.ru(a))};
g.h.ra=function(){this.C&&this.sb.lf(this);g.yM.prototype.ra.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(BO,g.zO);BO.prototype.Ka=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.AO(this,g.Kl(a,this.D)),this.tracks=g.xc(a,this.D,this),this.j.Bd(a.length?" ("+a.length+")":""),this.ea("size-change"),this.zi(this.D(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
BO.prototype.Of=function(a){g.zO.prototype.Of.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.sb.Ch()};
BO.prototype.D=function(a){return a.toString()};g.w(CO,GM);
CO.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.fL(this.I))this.j||(this.sb.xc(this),this.j=!0,this.B.push(this.T(this.I,"videodatachange",this.u)),this.B.push(this.T(this.I,"videoplayerreset",this.u)),this.B.push(this.T(this.I,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.I,"autonavchange",this.C)),a=this.I.getVideoData(),this.C(a.autonavState),this.I.bb(this.element,this.j));else if(this.j){this.sb.lf(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.wc(b.value)}};
CO.prototype.C=function(a){this.setValue(1!==a)};
CO.prototype.D=function(a){this.I.XB(a?2:1);this.j&&(this.I.bb(this.element,this.j),this.I.xb(this.element))};
CO.prototype.ra=function(){this.j&&this.sb.lf(this);GM.prototype.ra.call(this)};g.w(DO,g.cM);DO.prototype.pd=function(){g.cM.prototype.pd.call(this);this.dialog.focus()};g.w(EO,g.yM);EO.prototype.kc=function(a){this.u&&this.I.bb(this.element,this.j&&a)};
EO.prototype.C=function(){var a,b,c=null==(a=this.I.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.I.getVideoData())?void 0:d.accountLinkingConfig;var e;this.Kf(FO(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,k,l;this.B=new DO(this.I,FO(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),FO(null==a?void 0:null==(k=a.menuData)?void 0:k.connectedDialogMessage),FO(null==a?void 0:null==(l=a.menuData)?
void 0:l.confirmButtonText));g.H(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;if(this.u=!!d)this.I.ah(this.element,this,!0),this.I.gk(this.element,d);this.sb.xc(this);this.j=!0}else!c&&this.j&&(this.sb.lf(this),this.j=!1)};
EO.prototype.onClick=function(){this.u&&this.I.xb(this.element);this.sb.Eb();this.B&&this.B.pd()};g.w(GO,g.W);GO.prototype.onClick=function(){this.sb.Eb()};
GO.prototype.Kf=function(a){this.Na("label",a);this.Ym.Na("title",a)};g.w(HO,GO);HO.prototype.onClick=function(){GO.prototype.onClick.call(this);this.I.Oa("onCollapseMiniplayer");this.I.xb(this.element)};
HO.prototype.Ka=function(){var a=!this.I.isFullscreen();g.oI(this,a);this.I.bb(this.element,a)};g.w(IO,g.zO);g.h=IO.prototype;g.h.xv=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.I.ao(),a=this.I.getAvailableQualityLevels(),g.tCa(this.I)&&g.uCa(this.I)&&a.unshift("missing-qualities"),vCa(this.I)&&a.unshift("inline-survey"),g.AO(this,a),a.length)){this.LJ();this.enable(!0);return}this.enable(!1)};
g.h.LJ=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.j=this.I.getPlaybackQuality(),this.zi(a),"auto"===a&&this.Bd(this.Dj(a)))};
g.h.Of=function(a){"missing-qualities"!==a&&(g.zO.prototype.Of.call(this,a),this.I.setPlaybackQuality(a),this.sb.Eb(),this.xv())};
g.h.open=function(){g.zO.prototype.open.call(this);this.I.xb(this.element)};
g.h.mE=function(a,b,c){var d=this;if("inline-survey"!==a)return g.zO.prototype.mE.call(this,a,b,c);a=[{G:"span",oa:"Looks good?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={Ty:c.Ty},f=e.next())c.Ty=f.value,f=new g.W({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.Ty?g.wI():vAa()],W:{tabindex:"0",role:"button"}}),f.Pa("click",function(k){return function(){var l=k.Ty,m=g.gL(d.I.app);m&&(m.Aa("iqsr",{tu:l}),m.getVideoData().WI=!0);d.sb.Eb();d.xv()}}(c)),a.push(f);
return new g.yM({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-menuitem-label"],U:a}]},b)};
g.h.Dj=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.I.V().K},oa:"Missing options?"};if("inline-survey"===a)return"";var c=[LEa(this,a)],d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(LEa(this,this.j,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(JO,GO);JO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
JO.prototype.Ka=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.oI(this,a);this.I.bb(this.element,this.ub);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b)switch(this.currentIcon=b,b){case 1:this.Na("icon",pAa());break;case 2:this.Na("icon",{G:"svg",W:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},U:[{G:"path",W:{d:"M22,20l-8-0.04L14,19l7,.04V5H3L2.99,8L2,8l0.02-4H22V20z M2,17.32V20h2.73C4.73,18.52,3.51,17.32,2,17.32z M2,13.75v1.79 c2.51,0,4.55,2,4.55,4.46h1.82C8.36,16.55,5.52,13.75,2,13.75z M2,10.18v1.79c4.52,0,8.18,3.6,8.18,8.03H12 C12,14.57,7.52,10.18,2,10.18z M5,7v1.39c4.21,1.09,7.52,4.39,8.61,8.61H19V7H5z",
fill:"white"}}]})}};
JO.prototype.onClick=function(){GO.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.sb.mC(this.element);this.I.xb(this.element)};g.w(KO,g.pI);KO.prototype.addButton=function(a){this.element.appendChild(a.element)};
KO.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.w(LO,GO);LO.prototype.onClick=function(){GO.prototype.onClick.call(this);mV(this.I.app);this.I.xb(this.element)};
LO.prototype.Ka=function(){g.oI(this,this.I.ex()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.ub){var a=this.I.isWidescreen();this.isWidescreen!==a&&(this.Ym.Na("icon",a?{G:"svg",W:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},U:[{G:"path",W:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M5,12v18h30V12H5z M10.21,26.71l-1.41-1.41L13.09,21l-4.29-4.29l1.41-1.41  L15.91,21L10.21,26.71z M31.21,25.29l-1.41,1.41L24.09,21l5.71-5.71l1.41,1.41L26.91,21L31.21,25.29z",
fill:"white"}}]}:EAa()),this.Kf(UL(this.I,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.I.bb(this.element,this.ub)};g.w(MO,g.W);g.h=MO.prototype;g.h.init=function(){this.vr(this.j);this.Na("minvalue",this.minimumValue);this.Na("maxvalue",this.maximumValue)};
g.h.hS=function(a){if(!g.tu(a)){switch(g.uu(a)){case 37:case 40:var b=-this.J;break;case 39:case 38:b=this.J;break;default:return}this.vr(this.j+b);g.ru(a)}};
g.h.fS=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.vr(b);g.ru(a)};
g.h.gS=function(a){a=(a-g.Lm(this.u).x)/this.K*this.range+this.minimumValue;this.vr(a)};
g.h.vr=function(a,b){b=void 0===b?"":b;a=g.wh(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Na("valuenow",a);this.Na("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.j=a};
g.h.focus=function(){this.ma.focus()};g.w(OO,MO);OO.prototype.X=function(){this.I.setPlaybackRate(this.j,!0)};
OO.prototype.vr=function(a){MO.prototype.vr.call(this,a,PO(this,a).toString());this.B&&(NO(this),this.xa())};
OO.prototype.ya=function(){var a=this.I.getPlaybackRate();PO(this,this.j)!==a&&(this.vr(a),NO(this))};g.w(QO,g.pI);QO.prototype.focus=function(){this.j.focus()};g.w(MEa,BM);g.w(RO,g.zO);g.h=RO.prototype;g.h.Dj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.h.Ka=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);PEa(this)};
g.h.Yr=function(a){g.zO.prototype.Yr.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),PEa(this),NEa(this,this.I.getPlaybackRate())):(this.wc(this.K),this.K=null)};
g.h.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||OEa(this,b);NEa(this,a)};
g.h.Of=function(a){g.zO.prototype.Of.call(this,a);a===this.j?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.sb.Ch()};g.w(TO,g.zO);g.h=TO.prototype;g.h.zi=function(a){g.zO.prototype.zi.call(this,a)};
g.h.getKey=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.settings[a]};
g.h.Dj=function(a){return this.getOption(a).text||""};
g.h.Of=function(a){g.zO.prototype.Of.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(UO,g.CM);UO.prototype.Lf=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.To[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.zi(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
UO.prototype.wh=function(a,b){this.ea("settingChange",a,b)};g.w(VO,g.zO);VO.prototype.getKey=function(a){return a.languageCode};
VO.prototype.Dj=function(a){return this.languages[a].languageName||""};
VO.prototype.Of=function(a){this.ea("select",a);this.I.xb(this.element);g.NM(this.sb)};g.w(WO,g.zO);g.h=WO.prototype;g.h.getKey=function(a){return g.bg(a)?"__off__":a.displayName};
g.h.Dj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.Of=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.qK(this.I.V(),this.I.getVideoData()),g.zJ(a)):(this.I.xb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.zO.prototype.Of.call(this,a),this.sb.Ch())};
g.h.Ka=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData();b=b&&b.Pp;var c,d=!(null==(c=this.I.getVideoData())||!g.EE(c));c={};if(a||b){if(a){var e=this.I.getOption("captions","track");c=this.I.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.xc(c,this.getKey,this);d=g.Kl(c,this.getKey);if(f.length&&!g.bg(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName;
k=f.findIndex(function(m){return m.languageName===l});
taa(f,k)}REa(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.AO(this,d);this.zi(f);e&&e.translationLanguage?this.j.zi(this.j.getKey(e.translationLanguage)):KEa(this.j);a&&this.D.Lf(this.I.getSubtitlesUserSettings());this.K.Bd(c&&c.length?" ("+c.length+")":"");this.ea("size-change");this.I.bb(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.h.iS=function(a){var b=this.I.getOption("captions","track");b=g.gg(b);b.translationLanguage=this.j.languages[a];this.I.setOption("captions","track",b)};
g.h.wh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}SEa(this,!0);this.J.start();this.D.Lf(this.I.getSubtitlesUserSettings())};
g.h.vY=function(a){a||g.sp(this.J)};
g.h.ra=function(){g.sp(this.J);g.zO.prototype.ra.call(this)};g.w(XO,g.LM);g.h=XO.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.gG=new EO(this.I,this);g.H(this,this.gG);var a=new IO(this.I,this);g.H(this,a);a=new WO(this.I,this);g.H(this,a);this.I.V().D||(a=new yO(this.I,this),g.H(this,a));this.I.V().Dc&&(a=new RO(this.I,this),g.H(this,a));this.I.V().Ub&&!this.I.V().S("web_player_move_autonav_toggle")&&(a=new CO(this.I,this),g.H(this,a));a=new BO(this.I,this);g.H(this,a);xO(this.settingsButton,this.Xc.items.length)}};
g.h.xc=function(a){this.initialize();this.Xc.xc(a);xO(this.settingsButton,this.Xc.items.length)};
g.h.lf=function(a){this.ub&&1>=this.Xc.items.length&&this.hide();this.Xc.lf(a);xO(this.settingsButton,this.Xc.items.length)};
g.h.pd=function(a){this.initialize();0<this.Xc.items.length&&g.LM.prototype.pd.call(this,a)};
g.h.show=function(){g.LM.prototype.show.call(this);g.M(this.I.getRootNode(),"ytp-settings-shown")};
g.h.hide=function(){g.LM.prototype.hide.call(this);g.yp(this.I.getRootNode(),"ytp-settings-shown")};
g.h.Oe=function(a){this.I.bb(this.element,a);var b;null==(b=this.gG)||b.kc(a)};
g.h.mC=function(a){if(this.pg())this.Eb();else{this.initialize();a:{var b=g.r(this.Xc.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,0===c.priority){b=c;break a}b=null}b&&(b.open(),this.pd(a));this.pd(a)}};g.w(YO,g.W);YO.prototype.onClick=function(){mV(this.I.app);this.I.xb(this.element)};
YO.prototype.Ka=function(){g.oI(this,this.I.ex()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.ub){var a=this.I.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",Jb:!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",Jb:!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.Na("icon",b):cEa(this.transition,this.element,b);this.isWidescreen=a;b=UL(this.I,"Default view","t");var c=UL(this.I,"Theater mode","t");this.Na("title",a?b:c);RM(this.tooltip)}}this.I.bb(this.element,this.ub)};g.w(g.ZO,g.W);g.ZO.prototype.onClick=function(){if(null!=g.zL(this.I.tb())&&(this.I.toggleSubtitles(),this.I.xb(this.element),!this.isEnabled())){var a=!1,b=g.os(g.ns.getInstance(),65);g.$C(this.I.V())&&null!=b&&(a=!b);a&&this.I.V().S("web_player_nitrate_promo_tooltip")&&this.I.ea("showpromotooltip",this.element)}};
g.ZO.prototype.j=function(a){var b,c;null==(b=g.VK(this.I))||null==(c=b.Bo())||c.pd(a)};
g.ZO.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.ZO.prototype.Ka=function(){var a=null!=g.zL(this.I.tb()),b=300;this.I.V().J&&(b=480);var c=this.I.V();if(c.S("web_player_unavailable_subtitles_button_killswitch")||c.C)this.Na("title",UL(this.I,"Subtitles/closed captions","c")),c=a;else{if(a){var d;null==(d=this.Da("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","1");this.Na("title",UL(this.I,"Subtitles/closed captions","c"))}else{var e;null==(e=this.Da("ytp-subtitles-button-icon"))||e.setAttribute("fill-opacity","0.3");this.Na("title",
"Subtitles/closed captions unavailable")}c=!0}RM(this.tooltip);c=c&&this.I.eb().getPlayerSize().width>=b;g.oI(this,c);this.I.bb(this.element,c);a&&this.Na("pressed",this.isEnabled())};g.w(g.aP,g.W);g.h=g.aP.prototype;
g.h.Qb=function(){var a=this.api.eb().getPlayerSize().width,b=this.K;this.api.V().J&&(b=400);b=a>=b&&(!cP(this)||!g.V(this.api.zb(),64));g.oI(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);bP(this)&&(c-=this.Vb.startTimeMs/1E3);c=g.nJ(c);this.B!==c&&(this.Na("currenttime",c),this.B=c);b=bP(this)?
g.nJ((this.Vb.endTimeMs-this.Vb.startTimeMs)/1E3):g.nJ(this.api.V().S("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Na("duration",b),this.C=b)}a=a.isAtLiveHead;!cP(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Bd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.rM(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.Vb!==a;this.Vb=a;b&&$O(this)};
g.h.onLoopRangeChange=function(a){var b=this.Vb!==a;this.Vb=a;b&&(this.Qb(),$O(this))};
g.h.bZ=function(){this.api.setLoopRange(null)};
g.h.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().S("enable_topsoil_wta_for_halftime")||this.api.V().S("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Qb();$O(this)};
g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.qb;this.u=HE(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",cP(this))};
g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.h.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};g.w(fP,g.W);g.h=fP.prototype;g.h.Rm=function(){var a=this.j.cf();this.C!==a&&(this.C=a,eP(this,this.api.getVolume(),this.api.isMuted()))};
g.h.MJ=function(a){g.oI(this,350<=a.width)};
g.h.lS=function(a){if(!g.tu(a)){var b=g.uu(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.wh(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ru(a))}};
g.h.jS=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.wh(b/10,-10,10));g.ru(a)};
g.h.AY=function(){dP(this,this.u,!0,this.B,this.j.Ni());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.kS=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Lm(this.N).x;this.api.setVolume(100*g.wh((a-c/2)/(b-c),0,1))};
g.h.zY=function(){dP(this,this.u,!1,this.B,this.j.Ni());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.h.onVolumeChange=function(a){eP(this,a.volume,a.muted)};
g.h.wL=function(){dP(this,this.u,this.isDragging,this.B,this.j.Ni())};
g.h.ra=function(){g.W.prototype.ra.call(this);g.yp(this.K,"ytp-volume-slider-active")};g.w(g.gP,g.W);g.gP.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.oI(this,this.visible);this.api.bb(this.element,this.visible&&this.va);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Na("url",a))};
g.gP.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.oJ(a),!1,!0,!0);if(g.xC(b)||g.IC(b)){var d={};b.ma&&g.xC(b)&&g.sK(d,b.loaderUrl);c=g.nj(c,g.rK(d,"emb_logo"))}g.RL(c,this.api,a);this.api.xb(this.element)};
g.gP.prototype.yb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Jb:!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.IC(this.api.V())){var b=this.Da("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.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Na("logoSvg",a)};
g.gP.prototype.kc=function(a){g.W.prototype.kc.call(this,a);this.api.bb(this.element,this.visible&&a)};g.w(hP,g.dA);g.h=hP.prototype;g.h.Gd=function(){this.Ic.Qb();this.Tg.Qb()};
g.h.Wj=function(){this.kD();if(this.Jd.u){this.Gd();var a;null==(a=this.N)||a.show()}else{g.qP(this.Ic.tooltip);var b;null==(b=this.N)||b.hide()}};
g.h.Pq=function(){this.Gd();this.Zd.start()};
g.h.kD=function(){var a=!this.I.V().isMobile&&300>g.JEa(this.Ic)&&this.I.zb().Jc()&&!!window.requestAnimationFrame,b=!a;this.Jd.u||(a=b=!1);b?this.K||(this.K=this.T(this.I,"progresssync",this.Gd)):this.K&&(this.wc(this.K),this.K=null);a?this.Zd.isActive()||this.Zd.start():this.Zd.stop()};
g.h.yb=function(){var a=this.B.cf(),b=this.I.eb().getPlayerSize(),c=iP(this),d=Math.max(b.width-2*c,100);if(this.Sa!==b.width||this.Ja!==a){this.Sa=b.width;this.Ja=a;var e=XEa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.mO(this.Ic,c,e,a);this.B.pc().lD=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-jP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.gz=e;c.Nu();this.kD();!this.I.V().S("html5_player_bottom_linear_gradient")&&this.I.V().S("html5_player_dynamic_bottom_gradient")&&
g.tN(this.Qa,b.height)};
g.h.onVideoDataChange=function(){var a=this.I.getVideoData();this.xa.style.background=a.D?a.Wa:"";g.oI(this.Z,a.DD)};g.w(kP,nN);g.h=kP.prototype;g.h.EG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())};
g.h.FG=function(){this.B=!0;this.N.hide()};
g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,lP(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.K=this.enabled=!0;this.text=(b=a.title)?g.Lw(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Ew(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Rd(c)}this.onClickCommand=a.tapCommand;VDa(this);mN(this);
this.ri()}};
g.h.uy=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.h.Oe=function(a){this.B||((this.u=a)?lN(this):(lP(this),this.Z.start()),this.ri())};
g.h.ra=function(){lP(this);nN.prototype.ra.call(this)};var F0={},mP=(F0.CHANNEL_NAME="ytp-title-channel-name",F0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",F0.LINK="ytp-title-link",F0.SESSIONLINK="yt-uix-sessionlink",F0.SUBTEXT="ytp-title-subtext",F0.TEXT="ytp-title-text",F0.TITLE="ytp-title",F0);g.w(nP,g.W);nP.prototype.onClick=function(a){this.api.xb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.oJ(a),!1,!0);if(g.xC(b)){var d={};b.ma&&g.sK(d,b.loaderUrl);c=g.nj(c,g.rK(d,"emb_title"))}g.RL(c,this.api,a)};
nP.prototype.Ka=function(){var a=this.api.getVideoData(),b=this.api.V();this.Na("title",a.title);YEa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Lb&&c.profilePicture?(this.Na("channelLink",c.Lb),this.Na("channelName",c.author),this.Na("channelTitleFocusable","0")):YEa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.vb;g.O(this.link,mP.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.D&&b.pfpChazalUi||b.D?this.j&&(this.Na("url",
null),this.wc(this.j),this.j=null):(this.Na("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)))};g.w(g.oP,g.W);g.h=g.oP.prototype;g.h.qO=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,$Ea(this,a))};
g.h.BV=function(){swa(this.j,this.B,160*this.scale)};
g.h.Ck=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);cFa(this);break;case 3:cFa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.qO,this),this.j=null),this.api.removeEventListener("videoready",this.Z),this.ma.stop()}this.type=null;this.K&&this.D.hide()};
g.h.Ej=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.bi(arguments[a],this.u)&&this.Ck()};
g.h.ra=function(){null!=this.type&&this.Ck();this.j&&this.j.dispose();g.W.prototype.ra.call(this)};g.w(g.rP,g.W);g.h=g.rP.prototype;g.h.iz=function(){var a=this.I.getPlayerSize(),b=this.I.V(),c=this.I.getVideoData(),d=g.xC(b)&&g.bL(this.I)&&g.V(this.I.zb(),128);this.visible=b.Ak&&240<=a.width&&!c.isAd()&&c.Qf&&!d&&!(c.D&&b.pfpChazalUi);g.oI(this,this.visible);this.icon&&gFa(this,this.icon);this.I.bb(this.element,this.visible&&this.va)};
g.h.Hg=function(){return this.I.getVideoData().videoId};
g.h.onClick=function(){var a=this;this.I.xb(this.element);var b=this.I.V(),c=this.Hg();b.authUser?dFa(this):this.I.eC()?this.I.requestStorageAccess(function(){g.As("embedsItpWatchLaterResult",{accepted:!0});Ou();eFa(a,c)},function(){g.As("embedsItpWatchLaterResult",{accepted:!1});
fFa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):eFa(this,c)};
g.h.mS=function(){this.isRequestPending=this.j=!1;this.Ka(2)};
g.h.Ka=function(a,b){var c=this.I.V();gFa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.PF("Added as $USER_NAME",a):g.PF("Watch later as $USER_NAME",a),image:fD(c)})):this.update({title:"Watch later",image:null});RM(this.tooltip)};
g.h.kc=function(a){g.W.prototype.kc.call(this,a);this.I.bb(this.element,this.visible&&a)};g.w(sP,g.gM);g.h=sP.prototype;g.h.pc=function(){return this.tooltip};
g.h.tM=function(){return this.Mf};
g.h.Sn=function(a,b){b?this.Vk=a:this.Vk=null;this.sj()};
g.h.Us=function(a,b){if(b)this.Vo.push(a);else for(b=this.Vo.length;0<=b;b--)if(this.Vo[b]===a){this.Vo.splice(b,1);break}ML(this.Jd,64,0<this.Vo.length)};
g.h.mp=function(){this.api.Lh()&&this.api.Rk();return!!this.Vk||hFa(this)||g.gM.prototype.mp.call(this)};
g.h.sj=function(){var a=!this.mp(),b=a&&this.api.Lh()&&!g.V(this.api.zb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi)&&!this.api.V().D,c=this.zq&&g.bL(this.api)&&g.V(this.api.zb(),128);a||c?(this.pI.show(),this.qI.show()):(this.pI.hide(),this.qI.hide(),this.tooltip.Ej(this.gi.element));b?this.Gi.pd():this.Gi.Eb();this.Mf&&WEa(this.Mf,!a);g.gM.prototype.sj.call(this)};
g.h.Wq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Om(a),k=d||this.Mf&&g.bi(this.Mf.u.element,b),l=d=null;null!=c&&k||(d=g.Om(b),l=g.Mm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;k?(b=this.Mf,d=iP(b),l=XEa(b),k=this.api.eb().getPlayerSize().height,c=g.wh(c,d,d+l-f.width),f=k-jP(b)-f.height):g.bi(this.gi.element,b)?(b=this.api.eb().getPlayerSize().width,c=g.wh(c,12,b-f.width-12),f=this.cf()?this.tE:this.sE,"gvn"===this.api.V().playerStyle&&(f+=
20),this.zq&&(f-=this.cf()?26:18)):(b=this.api.eb().getPlayerSize(),c=g.wh(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.h.Wj=function(a){a&&(this.tooltip.Ej(this.gi.element),this.Mf&&this.tooltip.Ej(this.Mf.u.element));this.LA&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.gM.prototype.Wj.call(this,a)};
g.h.DG=function(){g.gM.prototype.DG.call(this);this.LA&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.LA&&(this.contextMenu.hide(),this.wg&&this.wg.hide()))};
g.h.Kj=function(a,b){var c=this.api.eb().getPlayerSize();c=new g.Am(0,0,c.width,c.height);if(a||this.Jd.u&&!this.mp()){if(this.api.V().yk||b)a=this.cf()?this.tE:this.sE,c.top+=a,c.height-=a;this.Mf&&(c.height-=jP(this.Mf))}return c};
g.h.Rm=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.eA.element,b),b.parentElement.insertBefore(this.dA.element,b.nextSibling))):g.dr(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.eA.detach(),this.dA.detach());this.yb();this.qn()};
g.h.cf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.J||!1};
g.h.showControls=function(a){this.Qz=!a;this.sj()};
g.h.yb=function(){var a=this.cf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.sj();if(this.Ff()&&this.wg)this.Gh&&bN(this.wg,this.Gh),this.shareButton&&bN(this.wg,this.shareButton),this.Ag&&bN(this.wg,this.Ag);else{if(this.wg){a=this.wg;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Gh&&!g.bi(this.Ug.element,this.Gh.element)&&this.Gh.Ba(this.Ug.element);this.shareButton&&!g.bi(this.Ug.element,
this.shareButton.element)&&this.shareButton.Ba(this.Ug.element);this.Ag&&!g.bi(this.Ug.element,this.Ag.element)&&this.Ag.Ba(this.Ug.element)}this.qn();g.gM.prototype.yb.call(this)};
g.h.jF=function(){if(hFa(this)&&!g.bL(this.api))return!1;var a=this.api.getVideoData();return!g.xC(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Cg||((a=this.Cg||a.Cg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.gM.prototype.jF.call(this):!1};
g.h.qn=function(){g.gM.prototype.qn.call(this);this.api.bb(this.title.element,!!this.vl);this.Zt&&this.Zt.kc(!!this.vl);this.channelAvatar.kc(!!this.vl);this.overflowButton&&this.overflowButton.kc(this.Ff()&&!!this.vl);this.shareButton&&this.shareButton.kc(!this.Ff()&&!!this.vl);this.Gh&&this.Gh.kc(!this.Ff()&&!!this.vl);this.Ag&&this.Ag.kc(!this.Ff()&&!!this.vl);if(!this.vl){this.tooltip.Ej(this.gi.element);for(var a=0;a<this.Gy.length;a++){var b=this.Gy[a];b.pg()&&b.Eb()}}};
g.h.Wb=function(a){this.Mf&&WEa(this.Mf,this.mp());this.sj();g.gM.prototype.Wb.call(this,a)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.Km?this.Km.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.Km?this.Km.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.Yk=function(){return this.contextMenu.ub?(this.contextMenu.Eb(),!0):this.Vo.length?(this.Vo[this.Vo.length-1].Eb(),!0):this.Vk?(this.Vk.Eb(),!0):g.gM.prototype.Yk.call(this)};
g.h.ly=function(a,b){this.rG=b;this.Us(a,b);this.CQ()};
g.h.CQ=function(){var a=this.rG||this.contextMenu.pg();this.jE!==a&&(this.jE=a,this.api.Oa("onAutonavPauseRequest",this.jE))};
g.h.wU=function(){tP(this,this.api.getRootNode(),!0).focus()};
g.h.xU=function(){tP(this,this.api.getRootNode(),!1).focus()};
g.h.Bo=function(){return this.Mf&&this.Mf.settingsMenu};
g.h.Nw=function(){return this.Mf&&this.Mf.j};
g.h.Jl=function(){this.Jd.Jl()};
g.h.DA=function(){this.yc.hide()};
g.h.xr=function(a){this.yc.xr(!g.zH(a))};
g.h.mu=function(a,b,c,d){this.nw.mu(a,b,c,d)};
g.h.tP=function(a,b){this.nw.UB(a,b)};
g.h.QW=function(){iFa(this,!0)};
g.h.sX=function(a){iFa(this,!1,a)};g.w(g.uP,g.rL);g.uP.prototype.ai=function(){return!1};
g.uP.prototype.create=function(){var a=this.player.V();g.GC(a)&&a.isMobile?this.chrome=new g.gM(this.player):this.chrome=new sP(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Je("ux")};
g.uP.prototype.Bw=function(){return this.chrome};var vP=[],PMa=!1;g.dT=Jg(function(){var a="";try{var b=g.Wh("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.wP,pH);g.h=g.wP.prototype;g.h.isView=function(){return!0};
g.h.CH=function(){var a=this.qa.getCurrentTime();if(a<this.start)try{var b=this.qa.jg(),c=pA(b,a);return!(this.start<c)}catch(d){}return!1};
g.h.qq=function(){return rA(this.qa.qq(),this.start,this.end)};
g.h.jg=function(){return rA(this.qa.jg(),this.start,this.end)};
g.h.Ow=function(){return rA(this.qa.Ow(),this.start,this.end)};
g.h.getCurrentTime=function(){return this.qa.getCurrentTime()-this.start};
g.h.ez=function(a){this.qa.ez(a+this.start)};
g.h.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.qa.getDuration()-this.start};
g.h.play=function(){if(this.CH()){this.qa.getCurrentTime();try{this.qa.ez(this.start)}catch(a){}}return this.qa.play()};
g.h.Nb=function(){var a=pH.prototype.Nb.call(this);a.view=this.start+"-"+this.end;return a};
g.h.addEventListener=function(a,b){this.qa.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.qa.removeEventListener(a,b)};
g.h.Zy=function(){return this.qa.Zy()};
g.h.Ds=function(a){this.qa.Ds(a)};
g.h.oq=function(){return this.qa.oq()};
g.h.playVideo=function(){return this.qa.playVideo()};
g.h.KE=function(){this.qa.KE()};
g.h.IE=function(){this.qa.IE()};
g.h.Jp=function(){return this.qa.Jp()};
g.h.Ke=function(){return this.qa.Ke()};
g.h.Bf=function(){return this.qa.Bf()};
g.h.fz=function(a){this.qa.fz(a)};
g.h.TB=function(){this.qa.TB()};
g.h.getPlaybackRate=function(){return this.qa.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.qa.setPlaybackRate(a)};
g.h.nq=function(){return this.qa.nq()};
g.h.setLoop=function(a){this.qa.setLoop(a)};
g.h.canPlayType=function(a,b){return this.qa.canPlayType(a,b)};
g.h.Pl=function(){return this.qa.Pl()};
g.h.uv=function(){return this.qa.uv()};
g.h.Uf=function(){return this.qa.Uf()};
g.h.qA=function(){return this.qa.qA()};
g.h.xu=function(a){this.qa.xu(a)};
g.h.bz=function(){return this.qa.bz()};
g.h.load=function(){this.qa.load()};
g.h.pause=function(){this.qa.pause()};
g.h.Ih=function(){return this.qa.Ih()};
g.h.rA=function(){return this.qa.rA()};
g.h.Cj=function(){return this.qa.Cj()};
g.h.He=function(){return this.qa.He()};
g.h.cz=function(){return this.qa.cz()};
g.h.Df=function(){return this.qa.Df()};
g.h.qp=function(){return this.qa.qp()};
g.h.togglePictureInPicture=function(){this.qa.togglePictureInPicture()};
g.h.zo=function(){return this.qa.zo()};
g.h.getSize=function(){return this.qa.getSize()};
g.h.setSize=function(a){this.qa.setSize(a)};
g.h.getVolume=function(){return this.qa.getVolume()};
g.h.setVolume=function(a){this.qa.setVolume(a)};
g.h.setAttribute=function(a,b){this.qa.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.qa.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.qa.hasAttribute(a)};
g.h.Sv=ca(24);g.h.Ay=ca(26);g.h.By=ca(28);g.h.Ls=ca(30);g.h.uw=function(){return this.qa.uw()};
g.h.Fn=function(a){this.qa.Fn(a)};
g.h.getStyle=function(a){return this.qa.getStyle(a)};
g.h.TF=function(){return this.qa.TF()};
g.h.stopVideo=function(){this.qa.stopVideo()};
g.h.ME=function(a){this.qa.ME(a)};
g.h.audioTracks=function(){return this.qa.audioTracks()};xP.prototype.then=function(a,b){return this.promise.then(a,b)};
xP.prototype.resolve=function(a){this.u(a)};
xP.prototype.reject=function(a){this.j(a)};g.w(yP,g.G);g.h=yP.prototype;g.h.isFinished=function(){return 6===this.status.status};
g.h.getStatus=function(){return this.status};
g.h.Wp=function(){var a=this.j.getVideoData(),b=this.u.getVideoData();if(a.C){var c;if(c=a.j){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.isLoaded()&&(d=!0),k.info.video&&k.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=!(d&&e)}if(c)this.Ra();else if(this.j.yd()){f=oFa(this.policy,this.j,this.u,this.lk);k=pFa(this);c=k.bU;e=k.VN;d=k.JL;k=k.UN;if(!this.J){var l=1E3*this.u.Mh(),m=this.j.Mh();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=
0);a=a.isAd();this.u.Vx(l,m,a);this.J=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Ye(b,f)):2===this.status.status?wFa(this):(a=this.j.oq())?a.j||a.u?!xA(a)&&g.Xr()?this.Ye("mse_closed"):b.j&&Rx(b.j)&&a.u&&!a.u.nA()?this.Ye("encr_upgrade"):(b=this.j.yd(),b.Uf()?this.Ye("elem_ended"):0>e?this.Ye("next_player_future"):(this.D=d,this.B=nta(a,c,d,!0),this.C=nta(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.Aa("gaplessPrep",{cpn:a}),BP(this.j,this.B),this.j.setMediaElement(qFa(b,c,d,!this.j.getVideoData().isAd())),
AP(this,2),wFa(this))):this.Ra():this.Ra()}else this.Ye("no-elem")}else this.Ra()};
g.h.Zr=function(a){var b=vFa(this).MP,c=a===b;b=c?this.B.j:this.B.u;c=c?this.C.j:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;oA(a.zf(),d-.01)&&(AP(this,4),b.isActive=!1,b.Ny=b.Ny||b.isActive,this.u.Aa("sbh",{}),c.isActive=!0,c.Ny=c.Ny||c.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&AP(this,5)}};
g.h.wO=function(){4<=this.status.status&&6>this.status.status&&this.Ye("player-reload-after-handoff")};
g.h.Ye=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.Ra();var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Hd(new g.yB("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.lk,msg:a})));a=this.j;a.videoData.Ea=!1;c&&OS(a);a.Va&&uIa(a.Va)}this.Il.reject(void 0);this.dispose()}};
g.h.ra=function(){uFa(this);this.j.unsubscribe("newelementrequired",this.wO,this);if(this.B){var a=this.B.u;this.B.j.Id.unsubscribe("updateend",this.Zr,this);a.Id.unsubscribe("updateend",this.Zr,this)}g.G.prototype.ra.call(this)};
g.h.Tc=function(a){g.zF(a,128)&&this.Ye("player-error-event")};
g.h.Ra=function(){};g.w(DP,g.G);DP.prototype.clearQueue=function(){this.Ra();this.C&&this.C.reject("Queue cleared");EP(this)};
DP.prototype.Kt=function(){return!this.j};
DP.prototype.ra=function(){EP(this);g.G.prototype.ra.call(this)};
DP.prototype.Ra=function(){};g.w(JP,g.ev);g.h=JP.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:AFa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.ij=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Oe())};
g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.Oe())};
g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.Oe())};
g.h.yu=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Oe())};
g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Oe())};
g.h.Df=function(){return this.j};
g.h.isFullscreen=function(){return 0!==this.fullscreen};
g.h.gt=function(){return this.fullscreen};
g.h.Te=function(){return this.B};
g.h.isInline=function(){return this.inline};
g.h.isBackground=function(){return AFa()};
g.h.It=function(){return this.pictureInPicture};
g.h.Et=function(){return this.u};
g.h.Oe=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.Df(),this.isFullscreen(),this.Te(),this.isInline(),this.It(),this.Et());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.h.ra=function(){DFa(this.C);g.ev.prototype.ra.call(this)};g.w(g.NP,g.G);g.h=g.NP.prototype;
g.h.onCueRangeEnter=function(a){this.Qa.push(a);var b=a.getId(),c=""===b;this.Wa.add(a.u);c||this.Ca.Aa("sdai",{enterAdCueRange:1});if(this.Xa){this.Xa=!1;if(!c){var d=this.u.get(b);d&&(this.Y.S("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.Ca.getCurrentTime(),SP(this,{Dd:a,isAd:!0,Fm:!0,wf:c,adCpn:b},{isAd:!1,Fm:!1,wf:c})),this.api.ea("serverstitchedvideochange",d.Cc,d.En),a=PP(this,"midab",d),this.Ca.Aa("sdai",a),this.Hi=1)}this.C=!1}else if(this.j){if(this.j.Fm)this.Ca.Aa("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.wf,cpn:b,currentTime:this.Ca.getCurrentTime()}),this.Y.S("web_player_same_transition_fallback_killswitch")||(d=this.Ca.getCurrentTime(),a={Dd:a,isAd:!c,Fm:!0,wf:d,adCpn:b},b={Dd:this.j.Dd,isAd:this.j.isAd,Fm:!1,wf:d,adCpn:this.j.adCpn},this.j.Dd&&this.Wa.delete(this.j.Dd.u),SP(this,a,b));else{if(this.j.Dd===a){this.Ca.Aa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.wf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.j=void 0;
return}if(this.j.adCpn===b){b&&this.Ca.Aa("sdai",{dchtsc:b});this.j=void 0;return}a={Dd:a,isAd:!c,Fm:!0,wf:this.Ca.getCurrentTime(),adCpn:b};SP(this,a,this.j)}this.j=void 0;this.C=!1}else this.j={Dd:a,isAd:!c,Fm:!0,wf:this.Ca.getCurrentTime(),adCpn:b}};
g.h.onCueRangeExit=function(a){if(this.Y.S("web_player_same_transition_fallback_killswitch")||this.Wa.has(a.u)){this.Wa.delete(a.u);this.Qa=this.Qa.filter(function(d){return d!==a});
this.Xa&&(this.C=this.Xa=!1,this.Ca.Aa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Fm){if(this.j.Dd===a){this.Ca.Aa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.wf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.Ca.Aa("sdai",{dchtsc:b});this.j=void 0;return}c={Dd:a,isAd:!c,Fm:!1,wf:this.Ca.getCurrentTime(),adCpn:b};SP(this,this.j,c)}else this.Ca.Aa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,
transitionTime:this.j.wf,upcomingCpn:b,contentCpn:this.Ca.getVideoData().clientPlaybackNonce,currentTime:this.Ca.getCurrentTime()});this.j=void 0;this.C=!1}else this.j={Dd:a,isAd:!c,Fm:!1,wf:this.Ca.getCurrentTime(),adCpn:b};this.Y.S("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.Ca.getCurrentTime()<this.Ca.Ij()&&KP(this,Infinity))}else this.Ca.Aa("sdai",{ignore_single_exit:1})};
g.h.isAdPlaying=function(a){return this.Qn?!1:MP(this)?!!this.N:!!UP(this,1E3*a)};
g.h.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)KP(this,a);else{b=this.api.Lc();var d=b===this.Ia?this.jb:null;VP(this,!1);this.rb=a;null!=c&&this.qb.start(c);b&&(this.jb=d||b.getPlayerState(),EU(b),this.Ia=b)}};
g.h.ra=function(){VP(this,!1);XP(this);MFa(this);g.G.prototype.ra.call(this)};
g.h.Ra=function(){};
g.h.TH=function(a){this.Gb=a;this.Ca.Aa("sdai",{swebm:a})};
g.h.Mj=function(a,b,c){if(c&&b){var d=this.ya.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.Vx(c);this.va&&this.Ca.Aa("sdai",{hdlredir:1,itag:b,seg:a,hostport:Yx(c)});d.locations.set(e,c)}}};
g.h.al=function(a,b,c,d){if(this.Qn)return null;var e=Number(c.split(";")[0]),f=3===d;if(g.OFa(this,b))return this.va&&this.Ca.Aa("sdai",{gdu:"undec",seg:b,itag:e}),null;a=YP(this,a,b);this.va&&this.Ca.Aa("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return $P(this,b,f),null;a.locations||(a.locations=new Map);if(!a.locations.has(e)){var k,l,m=null==(k=a.videoData.getPlayerResponse())?void 0:null==(l=k.streamingData)?void 0:l.adaptiveFormats;if(!m)return this.Ca.Aa("sdai",{gdu:"noadpfmts",seg:b,itag:e}),
$P(this,b,f),null;k=m.find(function(p){return p.itag===e});
if(!k||!k.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.Y.S("html5_ssdai_log_missing_itags_killswitch")){a=[];d=g.r(m);for(var n=d.next();!n.done;n=d.next())a.push(n.value.itag);c.itags=a.join(",")}this.Ca.Aa("sdai",c);$P(this,b,f);return null}m=!this.Y.S("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.Vx(k.url,m))}m=a.locations.get(e);if(!m)return this.Ca.Aa("sdai",{gdu:"nourl",seg:b,itag:e}),$P(this,b,f),null;k=new bz(m);this.Gb&&k.set("dvc","webm");
this.Y.experiments.ob("ssdai_return_original_content")&&k.set("dairoc","1");(m=this.mA(b-1,d))&&k.set("daistate",m);a.aI&&b>=a.aI&&k.set("skipsq",""+a.aI);(l=this.Ca.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Ok&&(m=PFa(this,a.Ok),0<m.length&&k.set("acpns",m.join(",")));f||this.ya.set(b,a);this.Y.S("web_player_ssdai_acpns_aids_logging_killswitch")||(f=k.get("aids"),((null==f?void 0:null==(n=f.split(","))?void 0:n.length)||0)!==m.length&&(a.Ok?this.Ca.Aa("sdai",{acpns_aids_nm:1,ids:RFa(this,
a.Ok).join("_"),aids:null==f?void 0:f.replace(/,/g,"_"),cpn:l,trackType:d}):this.Ca.Aa("sdai",{acpns_aids_nm:"noAdBreakId",cpn:l})));f=g.cz(k);2048<(null==f?void 0:f.length)&&this.Ca.Aa("sdai",{urltoolong:1,sq:b,itag:e,len:f.length});this.va&&(f&&(n=a.cpn,d=a.Ok,TFa(this,n,d),d&&!this.Ub.has(d)&&(n=QFa(this,n,d),k=SFa(this,d),this.Ca.Aa("sdai",{iofa:n}),this.Ca.Aa("sdai",{noawnzd:k-n}),this.Ca.Aa("sdai",{acpns:m.join(".")}),this.Ub.add(d))),this.Ca.Aa("sdai",{gdu:"v",seg:b,itag:c,ast:a.Hc.toFixed(3),
alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return f};
g.h.ZH=function(a,b){if(a=YP(this,a,b))if(a=a.Ok)if(this.Ca.Aa("sdai",{skip_adbreakid:a}),a=this.K.get(a)){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c.value.aI=b}};
g.h.mA=function(a,b){return 1===b&&this.Ja.has(a)?this.Ja.get(a)||"":2===b&&this.ib.has(a)?this.ib.get(a)||"":3===b&&this.Sa.has(a)?this.Sa.get(a)||"":""};
g.h.Iy=ca(33);
g.h.bH=function(a,b,c,d,e,f,k,l){l&&(k?this.ib.set(a,l):this.Ja.set(a,l));if(k){if(d.length&&e.length)for(a=b+this.Bm(),k=g.r(d.entries()),l=k.next();!l.done;l=k.next()){var m=g.r(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.En=null!=n.En?Math.min(n.En,l):l}if(!MP(this))if(d.length&&e.length)for(b=1E3*(b+this.Bm()),d=g.r(d.entries()),c=d.next();!c.done;c=d.next())if(c=g.r(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.Ca.getVideoData().clientPlaybackNonce)ZP(this,b,
b+f,!1),b+=f;else if(this.Rb.has(c)||(this.Ca.Aa("sdai",{adCpnFromEmsg:1}),this.Rb.add(c)),(a=this.D.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(k=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=JFa(b,b+f,c),this.D.set(c,a),this.Ca.Aa("sdai",{newAdCR:1}),k=!0),b=a.end,ZP(this,a.start,a.end,!0),k)for(this.Ca.addCueRange(a),c=this.Ca.ww("serverstitchedcuerange",36E5),c=g.r(c),f=c.next();!f.done;f=c.next())this.D.delete(f.value.getId())}else 5!==c&&4!==c||ZP(this,1E3*(b+this.Bm()),1E3*(b+this.Bm())+
5E3,!1)}};
g.h.Dw=ca(35);g.h.Bm=function(){return this.Ca.Bm()};
g.h.Sj=function(a){this.Ca.Aa("timelineerror",{e:a});this.Ra()};
g.h.Rw=function(a){this.Z&&this.X&&this.xa.push(this.X);!this.Y.S("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.X&&this.Db.push(this.X);this.X=null;this.Ca.Rw(a)};
g.h.xF=function(a){if(this.Qn||a.identifier&&this.lc.has(a.identifier))this.va&&this.Ca.Aa("sdai",{startnoad:a.identifier}),aQ(this);else if(Sm(this.xa,function(c){return c.identifier===a.identifier}))this.Ca.Aa("sdai",{timedoutcp:1}),this.ma.start(0);
else if(!this.Y.S("web_player_skip_fetched_cuepoint_killswitch")&&Sm(this.Db,function(c){return c.identifier===a.identifier}))this.Ca.Aa("sdai",{fetchedcp:1}),aQ(this);
else if(this.ma.isActive()){var b;this.Ca.Aa("sdai",{racingcp:(null==(b=this.X)?void 0:b.identifier)+"_"+a.identifier})}else this.Hb=(new Date).getTime()/1E3,this.va&&this.Ca.Aa("sdai",{adf:1}),this.Z=!1,this.ma.start(),this.X=a,this.Ja.clear(),this.ib.clear(),this.Sa.clear(),this.Y.S("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.ya.clear(),this.Ya=[]};
g.h.wt=function(a,b){a=YP(this,a,b);if(!this.Y.experiments.ob("disable_ssdai_on_errors")||!a||this.Qn)return!1;this.Qn=!0;0<this.Hi&&(this.Hi=0,this.N=null,this.api.ea("serverstitchedvideochange"));a=this.Ca;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.cJ=!0);a.Hd(new g.yB("qoe.restart",b));OS(a,!0);return!0};
g.h.ep=function(a){this.lc.add(a);var b;(null==(b=this.X)?void 0:b.identifier)===a&&aQ(this)};
g.h.aH=function(a,b,c,d){if(MP(this)){var e=this.Ca.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?QP(this):this.u.get(a),k=b===e?QP(this):this.u.get(b);f&&k?(c=this.C?c:d,RP(this.Ca,f,k,c,d,this.C),b===e?(this.Ea=1E3*c,this.Hi=0,this.N=null,this.Ca.Aa("sdai",{adchg:this.Hi}),this.api.ea("serverstitchedvideochange")):(this.Ea=0,this.Hi++,this.N=k,this.Ca.Aa("sdai",{adchg:this.Hi,apid:this.N.Cc,acpn:this.N.cpn}),this.api.ea("serverstitchedvideochange",k.Cc,k.En))):this.Ca.Aa("sdai",
{unknowntrans:"1",old:a,"new":b});this.C=!1}}};
var HFa=0;g.w(bQ,g.G);g.h=bQ.prototype;g.h.onCueRangeEnter=function(a){if(this.j===this.api.Lc()){var b=this.J.get(a);if(b){var c=b.target;this.Ra();$Fa(this,c,b.lk,a)}else this.Hd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Un.Dd===a})){var d=b.Un;
this.Ra();c=d.target;d=d.lk;c?$Fa(this,c,d,a):ZFa(this,b.jd,d,a)}};
g.h.onQueuedVideoLoaded=function(){var a=this.K;fQ(this);if(a){if(!eQ(this,a)){var b=this.api.Lc();this.Hd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}b=this.api.Lc();a=a.Un;this.Ra();b.addCueRange(a.Dd)}};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)UFa(this,a);else{b=this.api.Lc();var d=b===this.C?this.D:null;hQ(this,!1);this.X=a;null!=c&&this.N.start(c);b&&(this.D=d||b.getPlayerState(),EU(b),this.C=b)}};
g.h.vg=function(a){g.zF(a,128)&&cGa(this)};
g.h.isManifestless=function(){return aE(this.j.getVideoData())};
g.h.ra=function(){hQ(this,!1);jQ(this);g.G.prototype.ra.call(this)};
g.h.Ra=function(){};
g.h.Hd=function(a,b){this.j.Hd(new g.yB(a,b))};
var VFa=0;var eGa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_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(mQ,g.G);mQ.prototype.get=function(a){kQ(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
mQ.prototype.set=function(a,b,c){this.remove(a,!0);kQ(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.R)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&nQ(this,c,!0);lQ(this)};
mQ.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(nQ(this,c,b),g.hc(this.data,function(d){return d.key===a}),lQ(this))};
mQ.prototype.ra=function(){var a=this;g.G.prototype.ra.call(this);this.data.forEach(function(b){nQ(a,b,!0)});
this.data=[]};g.oQ.prototype.info=function(){};g.w(pQ,g.G);pQ.prototype.ra=function(){gGa(this.j);g.G.prototype.ra.call(this)};g.w(qQ,g.Sp);qQ.prototype.ea=function(a){var b=g.Da.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.Sp.prototype.ea.call.apply(g.Sp.prototype.ea,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};rQ.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
rQ.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
rQ.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.w(sQ,g.G);sQ.prototype.start=function(){this.u.start()};
sQ.prototype.stop=function(){this.u.stop()};
sQ.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
sQ.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new vQ($Ta.has(b)));this.j.get(b).update(c())}this.u.start()};
var $Ta=new Set(["networkactivity"]);vQ.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
vQ.prototype.clear=function(){this.buffer.clear();this.j=0};g.w(wQ,g.G);wQ.prototype.ra=function(){g.G.prototype.ra.call(this);this.j=null;this.u&&this.u.disconnect()};g.aUa=Jg(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var G0;G0={};g.xQ=(G0.STOP_EVENT_PROPAGATION="html5-stop-propagation",G0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",G0.IV_DRAWER_OPEN="ytp-iv-drawer-open",G0.MAIN_VIDEO="html5-main-video",G0.VIDEO_CONTAINER="html5-video-container",G0.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",G0.HOUSE_BRAND="house-brand",G0);g.w(yQ,g.W);g.h=yQ.prototype;g.h.Fn=function(){g.xp(this.element,g.Da.apply(0,arguments))};
g.h.Pg=function(){this.Fb&&(this.Fb.removeEventListener("focus",this.MG),g.$h(this.Fb),this.Fb=null)};
g.h.GE=function(){this.isDisposed();var a=this.app.V();a.yj||this.Fn("tag-pool-enabled");a.C&&this.Fn(g.xQ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Fn("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Db&&(this.xE=g.Fu("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.h.jy=function(a){CC(this.app.V());this.CA=!a;zQ(this)};
g.h.resize=function(){if(this.Fb){var a=this.Gg();if(!a.isEmpty()){var b=!g.Dh(a,this.du.getSize()),c=qGa(this);b&&(this.du.width=a.width,this.du.height=a.height);a=this.app.V();(c||b||a.Db)&&this.app.Ua.ea("resize",this.getPlayerSize())}}};
g.h.xt=function(a,b){this.updateVideoData(b)};
g.h.updateVideoData=function(a){if(this.Fb){var b=this.app.V();cs&&(this.Fb.setAttribute("x-webkit-airplay","allow"),a.title?this.Fb.setAttribute("title",a.title):this.Fb.removeAttribute("title"));Swa(a)?this.Fb.setAttribute("disableremoteplayback",""):this.Fb.removeAttribute("disableremoteplayback");this.Fb.setAttribute("controlslist","nodownload");b.cm&&a.videoId&&(this.Fb.poster=a.Se("default.jpg"))}b=g.oE(a,"yt:bgcolor");this.cw.style.backgroundColor=b?b:"";this.tG=qC(g.oE(a,"yt:stretch"));this.uG=
qC(g.oE(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.D);this.resize()};
g.h.setGlobalCrop=function(a){this.vF=qC(a,!0);this.resize()};
g.h.setCenterCrop=function(a){this.tL=a;this.resize()};
g.h.ij=function(){};
g.h.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ua.isFullscreen();if(b&&Wr())return new g.Ch(window.outerWidth,window.outerHeight);if(b||a.Jk){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.kx&&this.kx.media===a||(this.kx=window.matchMedia(a));var c=this.kx&&this.kx.matches}if(c)return new g.Ch(window.innerWidth,window.innerHeight)}else if(!isNaN(this.yw.width)&&!isNaN(this.yw.height))return this.yw.clone();return new g.Ch(this.element.clientWidth,
this.element.clientHeight)};
g.h.Gg=function(){var a=this.app.V().S("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.YA(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.nH&&b.width>c?(a=g.YA(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.Ch(b.width*a,b.height)):b};
g.h.getVideoAspectRatio=function(){return isNaN(this.tG)?oGa(this):this.tG};
g.h.getVideoContentRect=function(a){var b=this.Gg();a=pGa(this,b,this.getVideoAspectRatio(),a);return new g.Am((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.Bu=function(a){this.nH=a;this.resize()};
g.h.PA=function(){return this.HB};
g.h.onMutedAutoplayChange=function(){zQ(this)};
g.h.setInternalSize=function(a){g.Dh(this.yw,a)||(this.yw=a,this.resize())};
g.h.ra=function(){this.xE&&g.Gu(this.xE);this.Pg();g.W.prototype.ra.call(this)};g.h=rGa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Hv();c&&a.visualElement&&g.Yv(c,a.visualElement,b)};
g.h.Bb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Fpa(c);a.visualElement=c;var f=g.Hv(),k=g.Gv();f&&k&&g.Sv(void 0,f,k,[c]);g.Bf(b,function(){sGa(e,a)});
d&&this.u.add(a)};
g.h.ah=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Bf(b,function(){sGa(d,a)});
c&&this.u.add(a)};
g.h.gk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Dv(b))};
g.h.Ho=function(a){return this.elements.has(a)};g.w(EQ,g.W);
EQ.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.j,0,this.j,this.heightPx),this.ctx.fillStyle=this.C[c+1],this.ctx.fillRect(a*this.j,this.heightPx*(1-b),this.j,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(GQ,g.W);g.h=GQ.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Ka()};
g.h.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.Ka()};
g.h.Ka=function(){var a=(0,g.R)(),b=this.Ua.getStatsForNerds();FQ(this.j,b.bandwidth_samples);FQ(this.C,b.network_activity_samples);FQ(this.B,b.live_latency_samples);FQ(this.u,b.buffer_health_samples);var c={};b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.R)()-a?5E3:500;this.delay.start(a)};HQ.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
HQ.prototype.getPlaybackRate=function(){return this.playbackRate};LQ.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.jc,e=BGa(this,this.videoTrack,a,this.videoTrack.jc);d=BGa(this,this.audioTrack,this.policy.va?a:e,d);a=Math.max(a,e,d);this.u=!0;this.j.isManifestless&&(zGa(this,this.videoTrack,b),zGa(this,this.audioTrack,c));return a};
LQ.prototype.Ra=function(){};
var AGa=2/24;GGa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.w(QQ,g.ev);g.h=QQ.prototype;
g.h.UG=function(a,b,c){if(this.D){var d=[],e=[],f=[],k=void 0;b&&(d=b.j,e=b.u,f=b.C,k=b.B);this.D.bH(a.Ma,a.startTime,this.u,d,e,f,c,k)}if(c){if(b&&!this.ma.has(a.Ma)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next()){k=g.r(f.value);f=k.next().value;k=k.next().value;var l=c;c=l+b.u[f];d.push({startTime:l,endTime:c,adCpn:k})}this.ma.set(a.Ma,d)}this.policy.Pc&&(c=this.Z&&a.Ma===this.Z.Ma+1,this.Z=a,d=this.j&&a.Ma===this.j.Ma+1,d=this.j&&c&&d&&"stop"!==this.j.Kd.event&&"predictStart"!==
this.j.Kd.event,e=a.Kd||null,f=this.J.j.index.getLastSegmentNumber()<=a.Ma,k=this.N.isManifestless&&this.policy.cm,e?(this.j&&this.j.Kd.identifier===e.identifier&&this.j.Kd.startSecs!==e.startSecs&&(this.Aa("cuepointStartSecsDrift",{id:e.identifier,firstSegNum:this.j.Ma,secondSegNum:a.Ma,firstStartSecs:this.j.Kd.startSecs,secondStartSecs:e.startSecs}),this.policy.As&&this.Va.pk&&(e.startSecs=this.j.Kd.startSecs,e.durationSecs=this.j.Kd.durationSecs)),this.j={Kd:e,Ma:a.Ma,Uw:!!b},f?RQ(this,e,a.Ma):
k&&(c?d?RQ(this,e,a.Ma):"continue"===e.event||"stop"===e.event?KGa(this,a):RQ(this,e,a.Ma):RQ(this,e,a.Ma))):d&&KGa(this,a))}};
g.h.TG=function(a,b,c){var d=this.J.j.index.getLastSegmentNumber()<=b;this.j={Kd:a,Ma:b,Uw:c};d&&RQ(this,a,b)};
g.h.Aa=function(a,b){this.Va.Aa(a,b)};
g.h.wy=function(a,b){var c=this.J.j.index.getSegmentNumberForTime(a);if(0<=c){var d;if(null==(d=this.D)?0:d.mA(c,2))return this.Aa("sdai",{skipad_on:c,t:a.toFixed(3)}),b.ZH(a,c),JGa(this,a,a,c),!0}return!1};
g.h.ut=function(a){var b="",c=this.J.j.index.getSegmentNumberForTime(a);if(c=this.ma.get(c)){c=g.r(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};MGa.prototype.Ku=function(a){var b=this.policy.N;this.policy.N=PA(a,{},this.J);if(b!==this.policy.N){UQ(this,this.j);WQ(this);var c,d;b>this.policy.N&&(null==(c=this.u)?0:$z(c.info))&&(null==(d=this.nextVideo)||!$z(d.info))&&(this.N=!0)}};aR.prototype.dispose=function(){this.ma=!0};
aR.prototype.isDisposed=function(){return this.ma};iR.prototype.skip=function(a){this.offset+=a};
iR.prototype.getOffset=function(){return this.offset};lR.prototype.Zh=function(a){this.Ja=this.u.shift().info;a.info.equals(this.Ja)};
lR.prototype.Mo=function(){return!!this.J.info.audio};
lR.prototype.getDuration=function(){return this.J.index.getMaxKnownEndTime()};g.h=uR.prototype;g.h.eF=function(){return 0};
g.h.NJ=function(){return null};
g.h.lM=function(){return null};
g.h.isComplete=function(){return 3<=this.state};
g.h.isFailed=function(){return 5===this.state};
g.h.onStateChange=function(){};
g.h.isDisposed=function(){return-1===this.state};
g.h.dispose=function(){this.info.j[0].j.J=!1;vR(this,-1)};
g.h.qF=function(){return 0};g.w(yR,uR);g.h=yR.prototype;g.h.onStateChange=function(){this.isDisposed()&&(PT(this.Td,this.u),this.B.dispose())};
g.h.Xs=function(){var a=qIa(this.Td,this.u),b;var c=(null==(b=this.Td.Od.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Td.Od.get(this.u))?void 0:d.Cz)||0;var e;d=(null==(e=this.Td.Od.get(this.u))?void 0:e.ue.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Td.Uf(this.u)}};
g.h.iM=function(){return 0};
g.h.yv=function(){return!0};
g.h.mD=function(){this.Fo();this.N=!0;return BHa(this.j)};
g.h.OJ=function(){this.Fo();return this.j.ue};
g.h.au=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.ue)?0:b.length)||this.Td.qg(this.u)};
g.h.Fo=function(){for(;this.Td.qg(this.u);){var a=this.j,b=this.Td.Zh(this.u),c=this.Td.Od.get(this.u);AHa(a,b,c.df&&!c.ue.totalLength&&DHa(this.Td,this.u))}};zR.prototype.If=function(){return lHa(this.C)};
zR.prototype.Zh=function(a){this.C.Zh(a);a=a.info;var b=a.j.info.Ob;this.policy.Nv&&a.ge&&a.duration&&(b=Math.max(b,(a.Ab+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
zR.prototype.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
zR.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ma:!1};g.h=MR.prototype;g.h.Ut=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Vt()};
g.h.onError=function(){this.C=!0;this.onDone()};
g.h.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.fp())};
g.h.uq=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.h.Cw=function(){return+this.getResponseHeader("content-length")};
g.h.Jj=function(){return this.B};
g.h.Tx=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.h.qg=function(){return 0<this.j.totalLength};
g.h.Zh=function(){var a=this.j;this.j=new dy;return a};
g.h.If=function(){return this.j};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Eu=function(){return!0};
g.h.PB=function(){return this.C};
g.h.He=function(){return""};g.h=RHa.prototype;g.h.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.h.abort=function(){};
g.h.uq=function(){return!0};
g.h.Cw=function(){return this.range.length};
g.h.Jj=function(){return this.loaded};
g.h.Tx=function(){return!!this.loaded};
g.h.qg=function(){return!!this.u.totalLength};
g.h.Zh=function(){var a=this.u;this.u=new dy;return a};
g.h.If=function(){return this.u};
g.h.Eu=function(){return!0};
g.h.PB=function(){return!!this.error};
g.h.He=function(){return this.error};var SHa=0;g.h=NR.prototype;g.h.jo=function(){this.ma||(this.ma=this.callbacks.jo?this.callbacks.jo():1);return this.ma};
g.h.Vt=function(){this.Ja=this.now();this.callbacks.Vt()};
g.h.Rq=function(a,b){PR(this,a,b);50>a-this.C&&RR(this)||WHa(this,a,b);this.callbacks.Rq(a,b)};
g.h.fp=function(){this.callbacks.fp()};
g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.h.now=function(){return(0,g.R)()};g.h=VR.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.X);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.ma,this.onError).then(void 0,zs)};
g.h.onDone=function(){this.isDisposed()||this.callbacks.fp()};
g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.h.uq=function(){return!!this.D};
g.h.Jj=function(){return this.u};
g.h.Cw=function(){return+this.getResponseHeader("content-length")};
g.h.Tx=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.qg=function(){return!!this.j.totalLength};
g.h.Zh=function(){this.qg();var a=this.j;this.j=new dy;return a};
g.h.If=function(){this.qg();return this.j};
g.h.isDisposed=function(){return this.J};
g.h.abort=function(){this.Cl&&this.Cl.cancel().catch(function(){});
this.B&&this.B.abort();this.J=!0};
g.h.Eu=function(){return!0};
g.h.PB=function(){return this.K};
g.h.He=function(){return this.errorMessage};g.h=WR.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.fp()}};
g.h.Ut=function(){2===this.xhr.readyState&&this.callbacks.Vt()};
g.h.Gd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Rq((0,g.R)(),a.loaded))};
g.h.uq=function(){return 2<=this.xhr.readyState};
g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return fr(Error("Could not read XHR header "+a)),""}};
g.h.Cw=function(){return+this.getResponseHeader("content-length")};
g.h.Jj=function(){return this.u};
g.h.Tx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.h.qg=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.h.Zh=function(){this.qg();var a=this.response;this.response=void 0;return new dy([new Uint8Array(a)])};
g.h.If=function(){this.qg();return new dy([new Uint8Array(this.response)])};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Eu=function(){return!1};
g.h.PB=function(){return!1};
g.h.He=function(){return""};g.w($R,uR);g.h=$R.prototype;g.h.Xs=function(){var a=OR(this.timing);a.shost=Yx(this.u.fg);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Zb();a.ml=""+ +this.info.j[0].j.gf();a.sq=""+this.info.j[0].Ma;this.u&&(a.ifi=""+ +Mra(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.He()&&(a.msg=this.xhr.He());this.zy&&(a.smb="1");if(this.j){var b=this.j.ue;b.length&&Usa(b[0],a)}this.info.al()&&(a.sdai="1");return a};
g.h.iM=function(){return $Ha(this.timing)};
g.h.He=function(){return this.xhr.He()||""};
g.h.yv=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.zB&&SR(a,a.u));return a};
g.h.Rq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.au()?wR(this,2):!this.xa&&this.yv()&&(wR(this),this.xa=!0))};
g.h.Vt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.uq()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.R)()-a)/1E3}this.xhr.uq()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Dr&&!Xta()&&g.bw("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.J=a||this.J;this.K=b||this.K}};
g.h.fp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=fIa(this,a),5===a?ZR(this):vR(this,a))};
g.h.canRetry=function(){this.isDisposed();var a=YR(this),b=this.info.al()?this.policy.Cr:this.policy.yj;return a.timedOut<this.policy.Ep&&a.j<b};
g.h.onStateChange=function(){this.isComplete()&&(this.policy.Qd?aS(this):this.timing.deactivate())};
g.h.BZ=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.R)(),b=!1;RR(this.timing)?(a=this.timing.X,UHa(this.timing),this.timing.X-a>=.8*this.va?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.rh&&UR(b,b.now()),a-=b.N,this.policy.Lb&&0<a&&(this.C+=1),b=tsa(YR(this),this.policy,!1)*this.policy.Gk,b=a>1E3*b);this.C&&this.callback&&this.callback(this,this.state);b?gIa(this,!1):this.X.start()}};
g.h.dispose=function(){uR.prototype.dispose.call(this);this.X.dispose();this.policy.Qd||aS(this)};
g.h.mD=function(){if(!this.OJ().length)return[];this.N=!0;return BHa(this.j)};
g.h.au=function(){if(1>this.state)return!1;if(this.j&&this.j.ue.length)return!0;var a;return(null==(a=this.xhr)?0:a.qg())?!0:!1};
g.h.OJ=function(){this.Fo(!1);return this.j?this.j.ue:[]};
g.h.Fo=function(a){if(a||this.xhr.uq()&&this.xhr.qg()&&!dIa(this)&&!this.D){if(!this.j){if(this.xhr.Eu())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Jj();this.j=new zHa(this.info.j,b)}for(;this.xhr.qg();)AHa(this.j,this.xhr.Zh(),a&&!this.xhr.qg())}};
g.h.Jj=function(){return this.xhr.Jj()};
g.h.eF=function(){return this.Z};
g.h.jo=function(){return hIa(this)?2:1};
g.h.qF=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.h.NJ=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J};
g.h.lM=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};
var eIa=-1;bS.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};
bS.prototype.Ra=function(){};g.w(g.dS,g.G);g.h=g.dS.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.Ca.pB(UGa(this.u));if(this.j.isManifestless){if(this.policy.Sh){b=Ira(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}sIa(this)}this.D&&jIa(this.D,this.videoTrack.j);this.policy.Ja&&Bx()&&this.Aa("streaming",{ac:!!window.AbortController||Cx()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.X&&(rIa(this,this.videoTrack),rIa(this,this.audioTrack),gLa(this.X),delete this.X);
c?(this.policy.bd?(this.qb=c,iS(this,c)):iS(this,!1),g.qp(this.Qa)):(a=0===this.currentTime,eS(this,this.videoTrack,this.videoTrack.j,a),eS(this,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Eh(function(){}),this.timing.tick("gv"));
(this.j.Ie||this.j.Jg||this.j.D||this.j.C||this.j.J)&&this.Aa("minMaxSq",{minSq:this.j.Ie,maxSq:this.j.Jg,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.J})};
g.h.resume=function(){if(this.isSuspended||this.xa){this.Xa=this.xa=this.isSuspended=!1;try{this.Jh()}catch(a){g.S(a)}}};
g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.B=b.C.j[a.id];b.K=b.B;a=new TQ(b.K,b.u,"m");rS(this.Ca,a.reason,a.audio.info);sS(this.Ca)}};
g.h.setPlaybackRate=function(a){a!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(a)};
g.h.wt=function(a){var b=a.info.j[0].j,c=a.lastError;if(Zx(b.u.j)){var d=g.Kc(a.He());this.Aa("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ma;var e=HGa(this.B,a.info.j[0].B,d);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Cr&&this.C&&a.info.al()&&"net.badstatus"===a.lastError&&this.C.wt(e,d))){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!ZQ(this.u)&&!Zx(b.u.j);e=a.Xs();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(c,e);this.isDisposed()||(d&&YQ(this.u,
b),KR(f,a),this.Jh())}}else this.handleError(c,a.Xs()),!a.info.Uk()||this.policy.u||Zx(b.u.j)?this.C&&a.info.al()&&"net.badstatus"===a.lastError&&this.C.wt(e,d)||this.handleError("net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()},1):(b.C=c,this.Jh())};
g.h.Jh=function(){lS(this);if(this.mediaSource&&xA(this.mediaSource)&&!this.mediaSource.nh()){var a=BR(this.videoTrack);a=this.policy.zk&&a&&pz(a);this.j.isManifestless&&this.j.N&&HA(this.j)?(this.K=HA(this.j),this.mediaSource.fk(this.K)):this.j.isLive&&!a?isNaN(this.K)?(this.K=this.currentTime+3600,this.mediaSource.fk(this.K)):this.K<=this.currentTime+1800&&(this.K=Math.max(this.K+1800,this.currentTime+3600),this.mediaSource.fk(this.K)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.K)||this.K!==a)&&0<a&&(this.mediaSource.fk(a),this.K=a))}if(!this.isDisposed())if(GA(this.j)&&this.j.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.j.ma.toString()},1);else if(!this.j.u||!NHa(this.videoTrack)&&!NHa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Qa?a=!1:(gS(this),this.Ca.seekTo(Infinity,{re:"checkLoaderTracksSync",Xp:!0}),a=!0),!a){lS(this);try{DR(this.videoTrack);if(this.isDisposed())return;
DR(this.audioTrack);if(this.isDisposed())return}catch(e){zIa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(OHa(this.videoTrack),OHa(this.audioTrack),EGa(this.J),(a=this.videoTrack.If())&&a.u&&(a=a.u.D&&!this.policy.nm,this.Aa(a===this.policy.D.Fh?"strm":"strmbug",{strm:a,sfmp4:this.policy.D.Fh,dfs:this.policy.nm},!0)));if(this.mediaSource)tIa(this);else if(this.policy.u){(a=this.videoTrack.If())&&this.videoTrack.Zh(a);var b=this.audioTrack.If();b&&this.audioTrack.Zh(b);FR(this.videoTrack)&&
FR(this.audioTrack)||(a||b)&&g.qp(this.ma)}hS(this);eS(this,this.videoTrack,this.videoTrack.j,!1);eS(this,this.audioTrack,this.audioTrack.j,!1);a=this.audioTrack.j.C;b=this.videoTrack.j.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(c,{metadata:"1",video:this.videoTrack.j.C||"",audio:this.audioTrack.j.C||""},1)}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||xA(this.mediaSource)&&!this.policy.Wa)&&!this.J.u&&
LR(a)&&a.j.gf()&&this.u.N)a:{if(b=this.currentTime,c=this.N,d=JQ(c,a.j.info.Ob,d.j.info.Ob,0),c=gC(c.schedule)+d/iC(c.schedule),b+=Math.max(c,c+10-d/a.j.info.Ob),a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;MQ(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.Yb(g.Yb(a.B).info.j):a.C.u.length?a.u=mR(a.C).info:a.u=BR(a);a.u&&b<a.u.startTime&&(a.Z=0,a.j.gf()?a.u=a.j.Am(b,!0).j[0]:a.u=null)}xIa(this,this.videoTrack,this.audioTrack);xIa(this,this.audioTrack,
this.videoTrack);this.policy.Mk&&this.Ja&&!this.isSuspended&&Qua(this.schedule)&&(FIa(this,this.Ja),this.Ja="");this.D&&(a=this.D,a.C?(b=a.J+a.policy.lh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Dc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.qp(this.vb,a));g.qp(this.rb)}}};
g.h.nS=function(a){if(this.policy.qb&&this.mediaSource){var b=a===this.mediaSource.j,c=a.oA();if(c&&(c.Ab&&!c.ge||this.Aa("sbu",a.Nb({a:b})),c.ge)){a=a.zf();b=nA(a,c.startTime+oS);var d=nA(a,this.currentTime);(0>b||b!==d)&&this.Aa("sbu_mismatch",{b:mA(a),c:this.currentTime,s:mz(c)})}}this.Jh()};
g.h.yW=function(a){if(this.mediaSource){var b=BR(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.oF())for(var c=0;c<a.length;c++)this.Aa("appendedbuffer",{i:c,b:g.Jc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=uz(b));this.handleError("fmt.unplayable",a,1)}};
g.h.Tt=function(a){this.Ca.Tt(a)};
g.h.UG=function(a,b,c){this.j.isManifestless&&uHa(this,b,c,!!a.info.video,this.pk)};
g.h.TG=function(a,b,c,d){a.info.video&&this.B.TG(b,c,d)};
g.h.Pw=ca(8);g.h.seek=function(a){if(this.isDisposed())return si();if(this.videoTrack.K||this.audioTrack.K)return si("seeking to head");lS(this);this.ib=(0,g.R)();hS(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&sS(this.Ca,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.J.seek(a);LGa(this.B,a,b);g.qp(this.ma);return ri(this.currentTime)};
g.h.getCurrentTime=function(){return this.currentTime};
g.h.fF=function(){return this.audioTrack.j.info.j};
g.h.gF=function(){return this.videoTrack.j.info.j};
g.h.ra=function(){try{kS(this),MQ(this.audioTrack),MQ(this.videoTrack),this.Z=null,this.Sa="",g.G.prototype.ra.call(this)}catch(a){g.S(a)}};
g.h.handleError=function(a,b,c){c=void 0===c?0:c;var d=zB(c);this.isDisposed()||(b=new g.yB(a,b,c),g.Sa(this),xB(b.details),this.Ca.handleError(b),"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose())};
g.h.Nb=function(){var a=BR(this.audioTrack),b=BR(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.J.u,lmf:this.u.j.isLocked(),lbw:hC(this.schedule).toFixed(3),lhd:gC(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Eg()||0)).toFixed(3),laa:a?mz(a):"",lva:b?mz(b):"",lar:this.audioTrack.u?mz(this.audioTrack.u):"",lvr:this.videoTrack.u?mz(this.videoTrack.u):"",laq:""+GR(this.audioTrack),lvq:""+GR(this.videoTrack)};this.mediaSource&&!this.mediaSource.df()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=mA(this.mediaSource.j.zf()),a.lvb=mA(this.mediaSource.u.zf()));this.va&&(a.lapt=((0,g.R)()-this.va).toFixed(0),a.lapr=AIa(this));return a};
g.h.cF=function(){return IQ(this.N)};
g.h.Aa=function(a,b,c){this.Ca.Aa(a,b,void 0===c?!1:c)};
g.h.Hg=function(){return this.Ca.Hg()};
g.h.Xp=function(a,b){a/=b;isNaN(this.timestampOffset)&&JIa(this,a-Math.min(a,this.policy.rf));return(a-this.timestampOffset)*b};
g.h.Ku=function(a){this.u.Ku(a)};
g.h.wy=function(a,b){return this.C&&this.B.wy(a,this.C)?(JIa(this,this.timestampOffset-b),!0):!1};
g.h.ut=function(a){return this.B.ut(a)};
var oS=2/24;g.h=g.vS.prototype;g.h.al=function(a,b,c,d){return this.td.al(a,b,c,d)};
g.h.xF=function(a){this.td.xF(a)};
g.h.wt=function(a,b){return this.td.wt(a,b)};
g.h.ZH=function(a,b){this.td.ZH(a,b)};
g.h.Dw=ca(34);g.h.Mj=function(a,b,c){this.td.Mj(a,b,c)};
g.h.Iy=ca(32);g.h.bH=function(a,b,c,d,e,f,k,l){this.td.bH(a,b,c,d,e,f,k,l)};
g.h.TH=function(a){this.td.TH(a)};
g.h.mA=function(a,b){return this.td.mA(a,b)};
g.h.aH=function(a,b,c,d){this.td.aH(a,b,c,d)};g.w(wS,g.ev);g.w(xS,wS);xS.prototype.J=function(a,b){if(a&&b){var c=1*Number(pj(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.bg(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.qp(this.u))}};
xS.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.j[c].match(Ti),f=[],k=g.r(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Fh(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 fR(d,"fairplay",!0))}this.j={}};
xS.prototype.ra=function(){this.j={};wS.prototype.ra.call(this)};var H0={},SIa=(H0.DRM_TRACK_TYPE_AUDIO="AUDIO",H0.DRM_TRACK_TYPE_SD="SD",H0.DRM_TRACK_TYPE_HD="HD",H0.DRM_TRACK_TYPE_UHD1="UHD1",H0);g.w(yS,g.G);yS.prototype.Ra=function(){};g.w(AS,g.ev);g.h=AS.prototype;g.h.bp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=UA(b.u)?d:c;d=new Uint8Array(UA(b.u)?c:d);UA(b.u)&&gJa(d);c=g.Jc(d,4);gJa(d);d=g.Jc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),this.Ra("Key statuses changed: "+dJa(this,",")),zS(this,{onkeystatuschange:1}),this.status="kc",this.ea("keystatuseschange",this))};
g.h.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",{et:a.toFixed(3)})));zB(b)&&this.dispose()};
g.h.shouldRetry=function(a,b){return this.ya&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.h.ra=function(){this.j={};g.ev.prototype.ra.call(this)};
g.h.Nb=function(){var a={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.xa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.h.Af=function(){var a=this.D.join();if(BS(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.h.Ra=function(){};g.w(DS,g.G);g.h=DS.prototype;g.h.oS=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.h.bp=function(){this.K&&this.K(this.j.keyStatuses)};
g.h.EO=function(a){this.D&&this.D(a.message,"license-request")};
g.h.DO=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.h.CO=function(){this.J&&this.J()};
g.h.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,er(function(c){kJa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return Jr()};
g.h.ra=function(){this.j&&this.j.close();this.element=null;g.G.prototype.ra.call(this)};g.w(ES,g.G);g.h=ES.prototype;g.h.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
TA(this.j)?this.B=new (SA())(this.j.keySystem):VA(this.j)?(this.B=new (SA())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(cv(this.D,this.element,["keymessage","webkitkeymessage"],this.rS),cv(this.D,this.element,["keyerror","webkitkeyerror"],this.qS),cv(this.D,this.element,["keyadded","webkitkeyadded"],this.pS));return null};
g.h.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null};
g.h.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();WA(this.j)&&(c=lJa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new DS(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},er(function(f){kJa(e,"t.generateRequest",f)}));
return e}if(TA(this.j))return nJa(this,c);if(VA(this.j))return mJa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new DS(this.element,this.j,c,null,null)};
g.h.rS=function(a){var b=GS(this,a);b&&b.EO(a)};
g.h.qS=function(a){var b=GS(this,a);b&&b.DO(a)};
g.h.pS=function(a){var b=GS(this,a);b&&b.CO(a)};
g.h.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.h.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.G.prototype.ra.call(this);delete this.element};g.w(HS,g.G);
HS.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Dm(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.J),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new ES(a.j,
a.B);g.H(a,a.u);a.u.attach();g.ua(d)})};
HS.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new fR(c,a.initDataType);var d=KIa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.Ra()});
f&&(g.H(this,f),this.D.push(f),VIa(f,function(k){iJa(k,f.j,d,e)},function(){b.Ra()},function(){},function(){}))}};
HS.prototype.Ra=function(){};
HS.prototype.ra=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.G.prototype.ra.call(this)};g.w(IS,wS);
IS.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.r(this.j),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.R)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(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.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?oJa(this,a):(this.j.push({time:b+c,info:a}),g.qp(this.u,c))}};
IS.prototype.ra=function(){this.j=[];wS.prototype.ra.call(this)};JS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
JS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
JS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
JS.prototype.findIndex=function(a){return g.ac(this.keys,function(b){return g.uc(a,b)})};g.w(LS,g.ev);g.h=LS.prototype;g.h.sS=function(a){this.Wg({onecpt:1});a.initData&&tJa(this,new Uint8Array(a.initData),a.initDataType)};
g.h.AX=function(a){this.Wg({onndky:1});tJa(this,a.initData,a.contentType)};
g.h.Tt=function(a){this.Wg({onneedkeyinfo:1});this.Y.S("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));sJa(this,a)};
g.h.XK=function(a){this.B.push(a);MS(this)};
g.h.createSession=function(a){var b=uJa(this)?hHa(a):g.Jc(a.initData);this.u.get(b);this.va=!0;a=new AS(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.fO,this);a.subscribe("keystatuseschange",this.bp,this);a.subscribe("licenseerror",this.oB,this);a.subscribe("newlicense",this.yO,this);a.subscribe("newsession",this.zO,this);a.subscribe("sessionready",this.LO,this);a.subscribe("fairplay_next_need_key_info",this.pO,this);XIa(a,this.C)};
g.h.yO=function(a){this.isDisposed()||(this.Ra(),this.Wg({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.h.zO=function(){this.isDisposed()||(this.Ra(),this.Wg({newlcssn:1}),this.B.shift(),this.va=!1,MS(this))};
g.h.LO=function(){if(TA(this.j)&&(this.Ra(),this.Wg({onsnrdy:1}),this.Ea--,0===this.Ea)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.h.bp=function(a){if(!this.isDisposed()){!this.ya&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(vJa(this),this.ya=!0);this.Ra();this.Wg({onksch:1});if(!BS(a)&&g.lt&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(BS(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!BS(a)||c)b=a.D;b=g.cc(b,"UHD2")||g.cc(b,"UHD2HDR")?
"highres":g.cc(b,"UHD1")||g.cc(b,"UHD1HDR")?"hd2160":g.cc(b,"HD")||g.cc(b,"HDHDR")?"hd1080":g.cc(b,"HD720")||g.cc(b,"HD720HDR")?"hd720":"large"}a:{c=g.Gx("auto",b,!1,"l");if(this.videoData.gg){if(this.N.equals(c))break a}else if(wra(this.N,b))break a;this.N=c;this.ea("qualitychange");this.Ra();this.Wg({updtlq:b})}this.ea("keystatuseschange",a)}};
g.h.fO=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.h.pO=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.h.oB=function(a,b,c,d){this.isDisposed()||(this.videoData.S("html5_log_drm_metrics_on_error")&&vJa(this),this.ea("licenseerror",a,b,c,d))};
g.h.kt=function(){return this.N};
g.h.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.fO,this),b.unsubscribe("keystatuseschange",this.bp,this),b.unsubscribe("licenseerror",this.oB,this),b.unsubscribe("newlicense",this.yO,this),b.unsubscribe("newsession",this.zO,this),b.unsubscribe("sessionready",this.LO,this),b.unsubscribe("fairplay_next_need_key_info",this.pO,this),b.dispose();
this.u.clear();KS(this.J);KS(this.K);this.heartbeatParams=null;g.ev.prototype.ra.call(this)};
g.h.Nb=function(){for(var a={systemInfo:this.j.Nb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Nb());return a};
g.h.Af=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Af()+(this.D?"/KR":"")};
g.h.Wg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.Ra(xB(a)),(hD(this.Y)||b)&&this.ea("ctmp","drmlog",a))};
g.h.Ra=function(){};g.w(PS,g.G);PS.prototype.RA=function(){return this.B};
PS.prototype.handleError=function(a){var b=this;AJa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!RS(this,a.errorCode,a.details))&&!CJa(this,a))if(zB(a.severity)){var c,d=null==(c=this.Ca.Va)?void 0:c.u.j;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.C&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Ca.Xf(a.errorCode,
a.severity,e,xB(a.details),f)}else this.Ca.ea("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Hd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),BB(a,"manifest",function(k){b.J=!0;b.Aa("pathprobe",k)},function(k){b.Hd(k.errorCode,k.details)}))};
PS.prototype.Aa=function(a,b){this.Ca.dc.Aa(a,b)};
PS.prototype.Hd=function(a,b){b=xB(b);this.Ca.dc.Hd(a,b)};SS.prototype.setPlaybackRate=function(a){this.playbackRate=a};
SS.prototype.S=function(a){return this.Y.S(a)};g.w(TS,g.G);TS.prototype.Tc=function(a){UJa(this);this.playerState=a.state;0<=this.B&&g.zF(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
TS.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(bUa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
TS.prototype.send=function(){if(!(this.C||0>this.u)){UJa(this);var a=g.GP(this.j)-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.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=HMa[nE(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Pd+
36E5<(0,g.R)();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.j.videoData.isAd(),liveMode:c,hasDrm:!!g.lE(this.j.videoData),isGapless:this.j.videoData.Ea,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.As("html5PlayerHealthEvent",b);this.j.S("html5_health_to_qoe")&&
(b.muted=a,this.K(b));this.C=!0;this.dispose()}};
TS.prototype.ra=function(){this.C||this.send();g.G.prototype.ra.call(this)};
var bUa=/\bnet\b/;var WJa=window;var VJa=/[?&]cpn=/;g.w(g.ZS,g.G);g.h=g.ZS.prototype;g.h.RU=function(){var a=g.GP(this.j);$S(this,a)};
g.h.Hw=function(){return this.ya};
g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.GP(this.j),-1<["PL","B","S"].indexOf(this.Md)&&(!g.bg(this.u)||a>=this.C+30)&&(g.YS(this,a,"vps",[this.Md]),this.C=a),!g.bg(this.u))){7E3===this.sequenceNumber&&g.Ov(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){aT(this,a);var b=a,c=this.j.Ca.Qw(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ya,k=e&&!this.qb;d>c.totalVideoFrames||5E3<f?bKa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||k)&&g.YS(this,b,"df",[f]);this.Ya=d;this.qb=e;!this.j.Y.S("disable_webgl_reporting")&&0<this.N&&(g.YS(this,a,"glf",[this.N]),this.N=0);a={};this.j.videoData.u&&(a.fmt=this.j.videoData.u.Zb(),(b=this.j.videoData.J)&&b.Zb()!==a.fmt&&(a.afmt=b.Zb()));a.cpn=this.j.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.X&&(a.addocid=this.X);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=yE(this.j.videoData);a.content_v=zE(this.j.videoData);a.ns=this.j.Y.ya;
a.fexp=this.j.Y.experiments.experimentIds.toString();a.cl=(436074049).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=nE(this.j.videoData))&&(a.live=b);eE(this.j.videoData)&&(a.drm=1,this.j.videoData.N&&(a.drm_system=uTa[this.j.videoData.N.flavor]||0),this.j.videoData.UE&&(a.drm_product=this.j.videoData.UE));or()&&this.j.videoData.X&&(a.ctt=this.j.videoData.X,a.cttype=this.j.videoData.wi,this.j.videoData.mdxEnvironment&&(a.mdx_environment=this.j.videoData.mdxEnvironment));
this.j.videoData.isDaiEnabled()?(a.dai=this.j.videoData.enableServerStitchedDai?"ss":"cs",this.j.videoData.cJ&&(a.dai_fallback="1")):this.j.videoData.Cc?a.dai="cs":this.j.videoData.hI&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.S("html5_log_server_url_param")&&this.j.videoData.rP){if(b=this.j.videoData.rP,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Hb.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.jg(a,this.j.Y.deviceParams);a=g.nj("//"+this.j.Y.Aj+"/api/stats/qoe",a);b=c="";d=g.r(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.Ov(new g.Fs("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?b+=e:c+=e);a+=c;b=b.replace(/ /g,"%20");f=g.CE(this.j.videoData);d=!1;if(a.includes("&dt=")||a.includes("&cotn=")){if(this.j.Y.S("kevlar_woffle")||this.j.Y.S("qoe_nwl_downloads"))d=!0}else this.j.Y.S("qoe_with_networkless")&&(d=!0);
c=this.j.Y.S("qoe_send_and_write");e=this.j.Y;k=this.j.S("web_player_vss_pageid_header")?this.j.Y.pageId:void 0;f=WS(a,e,k,this.j.Y.sendVisitorIdHeader?this.j.videoData.visitorData:void 0,f);e.S("html5_simplify_pings")&&(f=f||{});f?(f.method="POST",f.postBody=b,XS(a,f,{token:this.j.videoData.X,nI:this.j.videoData.wi,mdxEnvironment:this.j.videoData.mdxEnvironment},e,void 0,d,c&&this.xa)):d?(d=this.j.Y.S("networkless_ajax"),e={method:"POST",postBody:b},c&&this.xa?this.j.Y.S("use_new_nwl_saw")?Tt().sendAndWrite(a,
e):au(a,e):d?g.Dr(a,{method:"POST",postBody:b}):this.j.Y.S("use_new_nwl_stw")?Tt().sendThenWrite(a,e):$t(a,e)):(b=void 0===b?"":b,ooa(a,b)||g.Kt(a,void 0,void 0,void 0,b))}this.u={}}};
g.h.Ux=function(a){0<a&&(this.u.aft=[a.toString()])};
g.h.KP=function(){if(this.j.videoData.N){var a=this.j.videoData.N;cT(this,"eme-"+(a.keySystemAccess?"final":TA(a)?"ms":WA(a)?"ytfp":VA(a)?"safarifp":"nonfinal"))}};
g.h.Tc=function(a){var b=a.state,c=g.GP(this.j);a=this.getPlayerState(a.state);if(a!==this.Md){if(!(c<this.C)){if("PL"===this.Md)this.playTimeSecs+=c-this.C;else if("B"===this.Md&&this.va){this.va=!1;var d=g.YA(this.j.Y.experiments,"html5_disable_last_state_change")?this.C:this.Qa;this.rebufferTimeSecs+=c-d;!this.Sa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.Ca.Cx(),this.u.qoealert=["1"],this.Sa=!0)}"B"!==a||"PL"!==this.Md&&"PB"!==this.Md||(this.va=!0);this.C=c}"PL"===this.Md&&("B"===
a||"S"===a)||hD(this.j.Y)?aT(this,c):$S(this,c);"PL"===a&&g.qp(this.Db);g.YS(this,c,"vps",[a]);this.Md=a;this.C=this.Qa=c;this.D=!0}a=b.getData();g.V(b,128)&&a&&aKa(this,c,a.errorCode,a.PE,a.tH);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Jc()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);bT(this)};
g.h.Ix=function(a){var b=g.GP(this.j);g.YS(this,b,"vfs",[a.j.id,a.u,this.rb,a.reason]);this.rb=a.j.id;var c=this.j.Ca.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.VC();1<d&&c.push(d);g.YS(this,b,"view",c)}this.Ja||(hD(this.j.Y)&&cT(this,"rqs"),this.j.videoData.j&&Lx(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.Ja=!0;"m"===a.reason&&100===++this.Lb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.YS(this,b,"vps",[this.Md]);this.reportStats(b)};
g.h.Ax=function(a){var b=g.GP(this.j);a.j.id!==this.Ea&&(g.YS(this,b,"afs",[a.j.id,this.Ea,a.reason]),this.Ea=a.j.id)};
g.h.ap=ca(38);g.h.Zo=ca(41);g.h.onPlaybackRateChange=function(a){var b=g.GP(this.j);a&&a!==this.jb&&(g.YS(this,b,"rate",[a]),this.jb=a);this.reportStats(b)};
g.h.Yj=ca(17);g.h.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,2048))return"B";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.zH(a)&&g.V(a,64))return"B";var b=cUa[CH(a)];g.MC(this.j.Y)&&"B"===b&&3===this.j.Ca.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.h.ra=function(){g.G.prototype.ra.call(this);g.Ar(this.Wa)};
g.h.Aa=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Gb.indexOf(a);e||this.Gb.push(a);if(!c||!e){b="string"!==typeof b?xB(b):b;b=cKa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.GP(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;bT(this);return f}};
g.h.Vx=function(a,b,c){this.K={HZ:Number(this.Aa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),WN:a,wZ:b,isAd:c}};
g.h.ju=function(a,b,c){g.YS(this,g.GP(this.j),"ad_playback",[a,b,c])};
var I0={},cUa=(I0[5]="N",I0[-1]="N",I0[3]="B",I0[0]="EN",I0[2]="PA",I0[1]="PL",I0);eKa.prototype.update=function(){if(this.N){var a=this.j.Ca.getCurrentTime()||0;this.j.Y.S("html5_vss_media_time_killswitch")||(a=this.j.Ca.Mh()||0);var b=g.GP(this.j);if(a!==this.u||iKa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||iKa(this,a,b))){var d=this.j.Nh();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&&(gT(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};hT.prototype.send=function(a){if(!this.Wa){var b=jT(this);b=g.nj(this.uri,b);if(this.Z&&!this.Y.S("html5_simplify_pings"))this.attestationResponse&&(a=iT(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.va?this.xa?this.Tb?Tt().sendAndWrite(b,a):au(b,a):this.Ub?Tt().sendThenWrite(b,a):$t(b,a):g.Dr(b,a));else{var c=iT(this,a);this.Z&&(c=c||{},c.method="POST",c.postParams={atr:this.attestationResponse});XS(b,c,{token:this.N,nI:this.qb,mdxEnvironment:this.mdxEnvironment},this.Y,
a,this.va,this.isFinal&&this.Ud||this.xa||this.C&&this.me)}this.Wa=!0}};
hT.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var J0={},lKa=(J0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,J0.LIVING_ROOM_APP_MODE_MAIN=1,J0.LIVING_ROOM_APP_MODE_KIDS=2,J0.LIVING_ROOM_APP_MODE_MUSIC=3,J0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,J0.LIVING_ROOM_APP_MODE_GAMING=5,J0),K0={},kKa=(K0.EMBEDDED_PLAYER_MODE_UNKNOWN=0,K0.EMBEDDED_PLAYER_MODE_DEFAULT=1,K0.EMBEDDED_PLAYER_MODE_PFP=2,K0.EMBEDDED_PLAYER_MODE_PFL=3,K0);g.w(lT,g.G);g.h=lT.prototype;g.h.Gd=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.Gb&&this.C&&!this.Z)a=this.u,a=(a.j.Y.S("html5_vss_media_time_killswitch")?a.J+a.j.Ca.getCurrentTime()-a.B:a.J+a.j.Ca.Mh()-a.B)>=this.j.videoData.Gb;a&&(this.C&&this.j.videoData.Gb&&(a=mT(this,"delayplay"),a.Cd=!0,a.send(),this.Z=!0),nKa(this))};
g.h.Tc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.zF(a,2)&&this.C&&pT(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&nT(this,!1)):this.currentPlayerState="paused")};
g.h.ra=function(){g.G.prototype.ra.call(this);g.zr(this.B);this.B=NaN;gKa(this.u)};
g.h.Nb=function(){return jT(mT(this,"playback"))};
g.h.Mu=function(){this.j.videoData.K.eventLabel=yE(this.j.videoData);this.j.videoData.K.playerStyle=this.j.Y.playerStyle;this.j.videoData.Ub&&(this.j.videoData.K.feature="pyv");this.j.videoData.K.vid=this.j.videoData.videoId;var a=this.j.videoData.K;var b=this.j.videoData;b=b.isAd()||!!b.Ub;a.isAd=b};
g.h.ih=function(a){var b=mT(this,"engage");b.X=a;return jKa(b,sKa(this.j))};rKa.prototype.isEmpty=function(){return this.endTime===this.startTime};rT.prototype.S=function(a){return this.Y.S(a)};
var tKa={other:1,none:2,wifi:3,cellular:7};g.w(g.sT,g.G);g.h=g.sT.prototype;g.h.Tc=function(a){if(g.zF(a,1024)||g.zF(a,512)||g.zF(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.hg){var c;null==(c=this.B.get(this.hg))||c.Tc(a)}else this.j&&this.j.Tc(a);this.qoe&&this.qoe.Tc(a);this.C.Tc(a)};
g.h.Gd=function(){if(this.u.videoData.enableServerStitchedDai&&this.hg){var a;null==(a=this.B.get(this.hg))||a.Gd()}else this.j&&this.j.Gd()};
g.h.Hd=function(a,b){this.qoe&&bKa(this.qoe,a,b);this.C.onError(a)};
g.h.Ix=function(a){this.qoe&&this.qoe.Ix(a)};
g.h.Ax=function(a){this.qoe&&this.qoe.Ax(a)};
g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.h.ap=ca(37);g.h.Aa=function(a,b,c){this.qoe&&this.qoe.Aa(a,b,c)};
g.h.Vx=function(a,b,c){this.qoe&&this.qoe.Vx(a,b,c)};
g.h.Ux=function(a){this.qoe&&this.qoe.Ux(a)};
g.h.ju=function(a,b,c){this.qoe&&this.qoe.ju(a,b,c)};
g.h.Zo=ca(40);g.h.Yj=ca(16);g.h.Hw=function(){if(this.qoe)return this.qoe.Hw()};
g.h.Nb=function(){if(this.u.videoData.enableServerStitchedDai&&this.hg){var a;null==(a=this.B.get(this.hg))||a.Nb()}else if(this.j)return this.j.Nb();return{}};
g.h.ih=function(a){return this.j?this.j.ih(a):function(){}};
g.h.Mu=function(){this.j&&this.j.Mu()};g.w(tT,g.G);g.h=tT.prototype;g.h.Rd=function(a,b){this.Dk();b&&2E3<=this.j.j.length&&this.ww("captions",1E4);b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0<b.u(c,b.j[b.j.length-1])?b.j.push(c):g.vc(b.j,c,b.u)}this.u=NaN;this.Dk()};
g.h.Wf=function(a){1E4<a.length&&g.Ov(new g.Fs("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)});
GKa(this.j,b);this.Dk()}};
g.h.ww=function(a,b){var c=(isNaN(this.u)?g.V(this.D(),2)?0x8000000000000:1E3*this.N():this.u)-b;b=this.xm().filter(function(d){return d.namespace===a&&d.end<c});
this.Wf(b);return b};
g.h.xm=function(){return this.isDisposed()?[]:this.j.j};
g.h.reset=function(){this.started=!1;this.C.stop();this.j.j=[];this.B=[];this.Dk()};
g.h.kf=function(a){var b=this.xm().filter(function(c){return c.namespace===a});
this.Wf(b);return b};
g.h.Tc=function(a){this.started&&(this.Dk(),g.V(a.Wo,16)&&(a=FKa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.h.NE=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.h.RE=function(a){var b=[];if(!a.length)return b;a.sort(g.Fw);a=g.r(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.h.Dk=function(){this.J=!0;if(!this.K){for(var a=3;this.J&&a;)this.J=!1,this.K=!0,this.ZM(),this.K=!1,a--;this.D().Jc()&&(a=FKa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.ma(),this.C.start(a)))}};
g.h.ZM=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.Z.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.N(),c=g.V(a,2),d=[],e=[],f=g.r(this.B),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.RE(e));f=e=null;c?(a=DKa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=EKa(this.j)):a=this.u<=b&&AH(a)?CKa(this.j,this.u,b):DKa(this.j,b);
d=d.concat(this.NE(a));e&&(d=d.concat(this.RE(e)));f&&(d=d.concat(this.NE(f)));this.u=b;HKa(this,d)}};
g.h.ra=function(){this.B=[];this.j.j=[];g.G.prototype.ra.call(this)};
g.zP.JA(tT,{Rd:"crmacr",NE:"crmncr",RE:"crmxcr",ZM:"crmis",Wf:"crmrcr"});g.w(xT,g.ev);xT.prototype.Hm=function(){return this.K};
xT.prototype.Ij=function(){return Math.max(this.N()-NKa(this,!0),this.videoData.getMinSeekableTime())};
xT.prototype.Ra=function(){};g.w(CT,g.G);CT.prototype.Tc=function(){g.qp(this.B)};
CT.prototype.D=function(){var a=this,b=this.Ca.yd(),c=this.Ca.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),k=this.Ca.Co().isBackground()||c.isSuspended();DT(this,this.ya,f&&!k,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.j)&&0<this.j&&Aya(b,this.j);var l=!d||10<Math.abs(d-this.j);DT(this,this.Ea,f&&l&&!k,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&oA(b.jg(),this.j);f=this.Ca.Va;l=!f||!f.policy.Ub;var n=function(){b.seekTo(a.j+.001)};
DT(this,this.ma,m&&l&&!k,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return OS(a.Ca)};
DT(this,this.va,m&&!k,e,"qoe.slowseek",l,"new_elem");var p=AH(c);m=g.BH(c);var q=b.jg(),t=nA(q,d);QKa(this,b,q,d,k,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;DT(this,this.K,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");DT(this,this.N,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var v=f.getCurrentTime();n=b.qq();n=ita(n,v);n=!f.J.u&&d===n;DT(this,this.Qa,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(v)},"seek_to_loader")}DT(this,this.X,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.cc(this.Ca.Zi,"ad")&&!n;DT(this,this.J,n,!n,"qoe.start15s",function(){a.Ca.Je("ad")},"ads_preroll_timeout");
n=this.Ca.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Ca,y=x.gm.Lc();(!y||!x.videoData.isAd()||y.getVideoData().Cc!==x.getVideoData().Cc)&&x.videoData.qe||x.Xf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
DT(this,this.Ia,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&oA(b.jg(),d+5)&&q;DT(this,this.Ja,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");DT(this,this.Sa,g.zH(c)&&g.V(c,64)&&!k,e,"qoe.start15s",function(){},"timeout");
DT(this,this.Z,!!f&&!f.mediaSource&&g.zH(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
CT.prototype.Hd=function(a,b,c){b=this.Nb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Ca.Hd(new g.yB(a,b));this.u[a]=!0};
CT.prototype.Nb=function(a){a=Object.assign(this.Ca.Nb(!0),a.Nb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
AT.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
AT.prototype.Nb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(FT,g.G);g.h=FT.prototype;g.h.setMediaElement=function(a){g.dv(this.Ia);(this.qa=a)?(dLa(this),ET(this)):HT(this)};
g.h.Tc=function(a){this.Z.Tc(a);this.S("html5_exponential_memory_for_sticky")&&(a.state.Jc()?g.qp(this.ma):this.ma.stop());if(this.qa)if(8===a.Wo.state&&AH(a.state)&&g.BH(a.state)){a=this.qa.getCurrentTime();var b=this.qa.jg();var c=this.S("manifestless_post_live_ufph")||this.S("manifestless_post_live")?nA(b,Math.max(a-3.5,0)):nA(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Sa-c)||(this.Ca.Aa("seekover",{b:mA(b,"_"),cmt:a}),this.Sa=c,this.seekTo(c,
{xq:!0,re:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.ib&&0<this.videoData.limitedPlaybackDurationInSeconds&&nU(this.Ca,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.h.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.qa&&aLa(this)?this.qa.getCurrentTime()+this.timestampOffset:this.B||0};
g.h.Mh=function(){return this.getCurrentTime()-this.qd()};
g.h.Ij=function(){return this.u?this.u.Ij():Infinity};
g.h.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return zT(this.u,a)};
g.h.Hm=function(){return!!this.u&&this.u.Hm()};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.qQ?!1:c.qQ;var d=void 0===c.rQ?0:c.rQ,e=void 0===c.xq?!1:c.xq,f=void 0===c.oI?0:c.oI,k=void 0===c.re?"":c.re;if(void 0===c.Xp?0:c.Xp)a+=this.qd();c=a;var l=!isFinite(c)||(this.u?zT(this.u,c):c>=this.xd())||!g.qE(this.videoData);l||this.Ca.Aa("seeknotallowed",{st:c,mst:this.xd()});if(!l)return this.C&&(this.C=null,KT(this)),ri(this.getCurrentTime());this.Ra();if(.005>Math.abs(a-this.j)&&this.N)return this.Ra(),this.D;k&&(c=a,(2<=this.Y.X||
this.S("html5_log_seek_reasons"))&&this.Ca.Aa("seekreason",{reason:k,tgt:c}));this.N&&HT(this);this.D||(this.D=new xP);a&&!isFinite(a)&&GT(this,!1);k=a;(JT(this)&&!(this.qa&&0<this.qa.Ih()&&0<qH(this.qa))||aE(this.videoData)&&this.getMinSeekableTime()===this.xd(!1)?0:isFinite(k)||!aE(this.videoData))&&(a=$Ka(this,a,e));a&&!isFinite(a)&&GT(this,!1);this.B=a;this.ya=f;this.j=a;this.u&&(e=this.u,f=a,OKa(e,f,!1),PKa(e,f));e=this.Ca;f=a;e.Uc.B=f;k=e.Wv;k.mediaTime=f;k.j=!0;b&&EU(e);e.qm&&f>e.videoData.endSeconds&&
isFinite(f)&&yU(e);f<e.xd()-.01&&(k=wH(e.playerState,2),g.V(k,8)&&(k=wH(k,4)),e.Wb(k));e.ea("SEEK_TO",e,f);this.D&&(b?d&&this.Ea.start(d):(this.Ra(),this.N=!0,UKa(this)));(b=this.Ca.qm)&&a>b.start&&yU(this.Ca);return this.D};
g.h.xd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.xd();var b;if(!this.S("html5_linear_live_max_seekable_killswitch")&&HE(this.videoData)&&(null==(b=this.qa)?0:b.Pl())&&this.videoData.j)return a=this.getCurrentTime(),exa(1E3*this.getIngestionTime(a))+a;if(aE(this.videoData)&&this.videoData.hh&&this.videoData.j)return this.videoData.j.xd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Ij();a=this.videoData.xd();this.policy.j&&this.qa&&
(a=Math.max(a,Bya(this.qa)));return a+this.timestampOffset}return this.qa?Yr()?exa(this.qa.bz().getTime()):qH(this.qa)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(HE(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.h.ra=function(){IT(this,null);this.Z.dispose();g.G.prototype.ra.call(this)};
g.h.Nb=function(){var a={};this.Va&&Object.assign(a,this.Va.Nb());this.qa&&Object.assign(a,this.qa.Nb());return a};
g.h.cH=function(a){this.timestampOffset=a};
g.h.getStreamTimeOffset=function(){return aE(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.h.qd=function(){return this.timestampOffset};
g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.h.mq=function(){if(!this.qa)return 0;if(rE(this.videoData)){var a=Bya(this.qa)+this.timestampOffset-this.getMinSeekableTime(),b=this.xd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.qa.mq()};
g.h.pB=function(a){this.J&&(this.J.j=a.audio.index)};
g.h.S=function(a){return this.Y&&this.Y.S(a)};
g.h.Ra=function(){};LT.prototype.isFinished=function(){return this.finished};
LT.prototype.start=function(){this.started=!0};
LT.prototype.reset=function(){this.finished=this.started=!1};MT.prototype.encrypt=function(a){return(new aC(this.j.j)).encrypt(a,this.iv)};
MT.prototype.decrypt=function(a,b){return(new aC(this.j.j)).decrypt(a,b)};g.w(NT,g.G);g.h=NT.prototype;g.h.qg=function(a){var b;return!(null==(b=this.Od.get(a))||!b.ue.totalLength)};
g.h.Zh=function(a){a=this.Od.get(a);var b=a.ue;a.Cz+=b.totalLength;a.ue=new dy;return b};
g.h.df=function(a){return this.Od.get(a).df};
g.h.Uf=function(a){return this.Od.get(a).Uf};
g.h.Fx=function(a){(a=this.Od.get(a))&&!a.Uf&&(a.Uf=!0)};
g.h.ra=function(){g.G.prototype.ra.call(this);for(var a=g.r(this.Od.keys()),b=a.next();!b.done;b=a.next())OT(this,b.value);this.Od.clear()};RT.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;c=new Uint8Array(16);RB()?d=new $B(a):e=new aC(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Za(3);break}f=b.j.shift();if(!d){k=e.decrypt(iy(f.buffer),c);m.Za(4);break}return g.A(m,d.decrypt(iy(f.buffer),c),5);case 5:k=m.u;case 4:l=k;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new dy([l]);wLa(b.yl.ud,f.eI,n);m.Za(2);
break;case 3:b.yl.ye("omdf"),TT(b),b.u=!1,b.yl.SG(),g.ua(m)}})};
RT.prototype.enqueue=function(a,b,c){this.j.push({eI:a,buffer:b,isEncrypted:c});this.u||TT(this)};var DLa=!!Uint8Array.prototype.copyWithin,UT=[],VT=[],zLa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],XT=[],WT=[],$T=[],ZT=[];var dU,dUa=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),L0={},eUa=(L0.a=1,L0.o=3,L0.meac3=5,L0.mac3=7,L0),M0={},fUa=(M0["1h"]=8,M0["9h"]=4,M0["1"]=8,M0["9"]=4,M0.h=2,M0),KLa=[["337","336","335"],["701","700"],["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],MLa=[["140"],["251"]],N0={},ILa=(N0["247"]=["317","273","318","280","279"],N0["136"]=["144","222","223","143","142"],N0["140"]=["149"],N0),O0={},HLa=(O0["398"]=
["397","396","395","394"],O0["247"]=["244","243","242"],O0["136"]=["135","134","133","160"],O0["251"]=["250"],O0),P0={},RLa=(P0["140"]={numChannels:2},P0["251"]={audioSampleRate:48E3,numChannels:2},P0),Q0={},QLa=(Q0["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Q0["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Q0["335"]={width:1920,height:1080,bitrate:75E5,fps:30},Q0["701"]={width:3840,height:2160,bitrate:2E7,fps:30},Q0["700"]={width:2560,height:1440,bitrate:1E7,fps:30},Q0["315"]={width:3840,
height:2160,bitrate:2E7,fps:60},Q0["308"]={width:2560,height:1440,bitrate:1E7,fps:60},Q0["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Q0["302"]={width:1280,height:720,bitrate:25E5,fps:60},Q0["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Q0["298"]={width:1280,height:720,bitrate:35E5,fps:60},Q0["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Q0["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Q0["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Q0["398"]={width:1280,height:720,bitrate:1E6,
fps:60},Q0["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Q0["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Q0["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Q0["247"]={width:1280,height:720,bitrate:15E5,fps:30},Q0["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Q0["136"]={width:1280,height:720,bitrate:3E6,fps:30},Q0),R0={},FLa=(R0["133"]=240,R0["134"]=360,R0["135"]=480,R0["136"]=720,R0["137"]=1080,R0["242"]=240,R0["243"]=360,R0["244"]=480,R0["247"]=720,R0["248"]=1080,R0["298"]=720,
R0["299"]=1080,R0["302"]=720,R0["303"]=1080,R0["395"]=240,R0["396"]=360,R0["397"]=480,R0["398"]=720,R0["399"]=1080,R0),S0={},PLa=(S0["1"]='video/mp4; codecs="av01.0.08M.08"',S0["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',S0["9"]='video/webm; codecs="vp9"',S0["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',S0.h='video/mp4; codecs="avc1.64001e"',S0.o='audio/webm; codecs="opus"',S0.a='audio/mp4; codecs="mp4a.40.2"',S0);g.h=SLa.prototype;g.h.SG=function(){this.ud.SG()};
g.h.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=DK(b,qLa);var d=a.iZ,e=!1;switch(d){case 0:this.C=!a.YO.sV;this.iv=a.YO.iv;break;case 2:break;case 23:var f=this.ud;a=a.PV;a.videoId&&(f.Zq=a.videoId);f.Zq!==f.videoData.videoId&&(f.videoData.ZQ=f.Zq,f.Aa("ompp","vid."+f.Zq));f.qG=!0;break;case 24:a=this.ud;a.qG=!1;a.ou=!1;null!=(c=a.Td||(null==(f=a.We)?void 0:f.get(a.Zq)))&&(c.u=!0);fU(a);break;default:e=!0}this.ud.Qh&&this.ud.Aa("ombup","id.10;pt."+d+";len."+b.totalLength+(e?";ignored.1":
""));this.u=d;break;case 11:TLa(this,b);break;case 20:f=new xK(b);var k={hV:AK(f,1),videoId:CK(f,2),itag:AK(f,3),lmt:AK(f,4),xtags:CK(f,5),Bz:AK(f,6),Yw:bCa(f,8),bC:AK(f,9),Rga:AK(f,10),startTimeMs:AK(f,11),durationMs:AK(f,12),WA:AK(f,14)};var l=k.hV,m=k.itag;a=k.Bz;c=k.bC;var n=k.startTimeMs,p=k.durationMs;f=this.ud.S("html5_onesie_ads");var q=k.videoId;f=((void 0===f?0:f)?(q||"")+";":"")+k.itag+";"+(k.lmt||0)+";"+(k.xtags||"");m=dUa.has(Wz[""+m]);q=void 0!==this.j[f];this.ud.Qh&&this.ud.Aa("ombup",
"id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;q?(d=this.j[f].headers,d.push(k),k.WA&&2===d.length&&(b=this.ud,d=d[0].WA+d[1].WA,e={Bz:null!=a?a:-1,bC:null!=c?c:-1,startTimeMs:null!=n?n:-1,durationMs:null!=p?p:-1},null!=(a=ST(b,f))&&(c=a.Od.get(f),c.Gj=d,e&&a.j.S("html5_onesie_consume_media_slices")&&(0>=e.Bz||0>=e.bC||0>=e.durationMs||0>e.startTimeMs?PT(a,f):c.GN.push(e))),fU(b))):(this.j[f]={JM:!1,Mo:m,headers:[k]},b=this.ud,b.We?(e=f.split(";")[0],b.We.has(e)||(a=new NT(b),b.We.set(e,
a),g.H(b,a)),null==(d=b.We.get(e))||hLa(d,f,m)):null==(e=b.Td)||hLa(e,f,m));break;case 21:ULa(this,b,!1);break;case 12:ULa(this,b,!0);break;case 22:this.Fx(b);break;case 37:b=DK(b,lLa);if(b.iE||b.JI)this.ud.YE=b;break;default:this.ud.Qh&&this.ud.Aa("ombup","id."+a+";len."+c+";ignored.1")}};
g.h.Fx=function(a){var b=jy(a,0);this.ud.Qh&&this.ud.Aa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.ud.Fx(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].WA||xLa(this.queue,a))};
g.h.YG=function(a,b){var c=this,d,e,f,k,l,m,n,p,q,t,v;return g.B(function(x){switch(x.j){case 1:c.ud.YG();d=iy(a);if(!b){f=d;x.Za(2);break}var y=c.ud;var z=c.iv;y=RB()?fLa(y.eH,d,z):Promise.resolve(y.eH.decrypt(d,z));return g.A(x,y,3);case 3:f=x.u;case 2:e=f;if(!c.ud.enableCompression){x.Za(4);break}return g.A(x,ELa(e),5);case 5:e=x.u,c.ud.Aa("decompression",{ds:"DecompressionStream"in window});case 4:try{k=DK(e,vLa)}catch(E){return l=E instanceof Error?{name:E.name,message:E.message}:{},l.webcrypto=
""+ +!!RB(),l.enc=""+ +c.C,m=new g.yB("onesie.response.parse",l),x.return(Promise.reject(m))}if(1!==k.onesieProxyStatus)return n={st:k.onesieProxyStatus,webcrypto:""+ +!!RB(),textencoder:""+ +!!g.C.TextEncoder},p=new g.yB("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==k.httpStatus)return q={st:k.httpStatus},t=new g.yB("onesie.response.badstatus",q),x.return(Promise.reject(t));v=g.py(k.body);return x.return(v)}})};
g.h.ye=function(a){this.ud.ye(a)};gU.prototype.feed=function(a){for(ey(this.j,a);;){var b=0;b=g.r(VLa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(VLa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Br.split(c);c=b.Br;this.callbacks.yl.feed(a,b.HF);this.j=c}};
gU.prototype.dispose=function(){this.j=new dy};g.w(hU,g.G);g.h=hU.prototype;g.h.ye=function(a){this.Ca.ye(a)};
g.h.LG=function(){this.ye("orfb");this.NA=!0;if(ZLa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Jj(),rt:(1E3*$Ha(this.El)).toFixed(),shost:g.Vi(this.Wt),trigger:"o1"};this.Aa("pathprobe",xB(a))}};
g.h.YG=function(){this.ye("orpr");this.LM=!0};
g.h.SG=function(){if(this.We)for(var a=g.r(this.We.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.We.get(b.value))||QT(c)}else null==(a=this.Td)||QT(a)};
g.h.Aa=function(a,b,c){this.Ca.Aa(a,b,void 0===c?!1:c)};
g.h.Fx=function(a){var b;null==(b=ST(this,a))||b.Fx(a)};
g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q;return g.B(function(t){if(1==t.j){a.xB.start();a.ye("ogpd");var v=a.videoData,x,y=v.V(),z=y.Cd;if(null==z?0:z.baseUrl){var E;if(!(E=g.QA(y.experiments,"debug_bandaid_hostname"))){if(null==(y=y.Ah))y=void 0;else if(E=y.j.get(0)){var I=E;if(y.experiments.ob("html5_onesie_host_racing_during_prewarming")){var K=y.j.values();K=g.r(K);for(var N=K.next();!N.done;N=K.next())N=N.value,IB(N)<IB(I)&&(I=N);K=g.YA(y.experiments,"html5_onesie_host_racing_cap_ms");
0<K&&0!==I.PM&&IB(E)-IB(I)<=K&&(I=E);var aa;y.J=null==(aa=I)?void 0:aa.AV}y=I.Io}else y=void 0;E=y}(y=E)&&(x=XLa(new g.Vx("https://"+y+z.baseUrl),v))}if(x)z=x;else{var J;z=null!=(J=v.Gr)&&J.url?new g.Vx(v.Gr.url):null}return(b=z)?t.Za(2):g.A(t,YLa(a.videoData),3)}2!=t.j&&(b=t.u);if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new g.yB("onesie.unavailable.hotconfig",c),a.fail(d),t.return(a.Il);a.HP=Yx(b);var oa=a.playerRequest;aa=a.Y;var ia=a.videoData;J=FB(a.HP);J=void 0===
J?!1:J;var za=aa.hh;x="https://youtubei.googleapis.com/youtubei/"+za.innertubeApiVersion+"/player";var jb=g.CE(ia);za.RF&&jb||(x=x+"?key="+za.innertubeApiKey);za=[{name:"Content-Type",value:"application/json"}];jb&&za.push({name:"Authorization",value:"Bearer "+jb});za.push({name:"User-Agent",value:g.Ab()});aa.S("enable_web_eom_visitor_data")&&Xq("EOM_VISITOR_DATA")?za.push({name:"X-Goog-EOM-Visitor-Id",value:Xq("EOM_VISITOR_DATA")}):(ia=ia.visitorData||Xq("VISITOR_DATA"))&&za.push({name:"X-Goog-Visitor-Id",
value:ia});(ia=g.QA(aa.experiments,"debug_sherlog_username"))&&za.push({name:"X-Youtube-Sherlog-Username",value:ia});oa=JSON.stringify(oa);qy?oa=qy.encode(oa):(ia=new Uint8Array(Math.ceil(1.2*oa.length)),jb=ry(oa,ia),ia.length<jb&&(ia=new Uint8Array(jb),jb=ry(oa,ia)),ia.length>jb&&(ia=ia.subarray(0,jb)),oa=ia);aa=aa.S("html5_onesie_prefer_trusted_host");f={url:x,httpHeaders:za,postBody:oa,proxiedByTrustedBandaid:aa&&J,skipResponseEncryption:aa&&J};try{var Gb=a.Y,Ra=a.videoData,rc=a.Ca.getPlayerSize(),
Xc=a.Ca.getVisibilityState();v=a.HL.onesieUstreamerConfig;z=null==(k=a.videoData.Gr)?void 0:k.LI;var Hb=a.eH,ke=gCa(f,uLa),kb=Hb.encrypt(ke),He=Hb.j.encryptedClientKey,ug=Hb.iv,Pf=Hb.iv,le=new UB(Hb.j.B);le.update(kb);le.update(Pf);var Ud=Hua(le);le.update(le.D);le.update(Ud);var sc=Hua(le);le.reset();var eh=Gb.S("html5_onesie_ads"),Vd=!!f.skipResponseEncryption,Gk=iC(Gb.schedule,!0),Zi=Vd&&Gb.S("html5_onesie_disable_js_cleartext_compression")||!!RB()&&1572864<Gk;y={encryptedOnesieInnertubeRequest:kb,
encryptedClientKey:He,iv:ug,hmac:sc,serializeResponseAsJson:!0,enableAdPlacementsPreroll:eh,enableCompressionResponseOnly:"DecompressionStream"in window||!Zi};Hb={};var $i=MA(0);if($i){Hb.zV=$i;Hb.lastManualDirection=Tta();var qd=iqa()||0;0<qd&&(Hb.timeSinceLastManualFormatSelectionMs=(0,g.R)()-qd)}Hb.WZ=MA();if(Gb.schedule.N||!Gb.S("html5_onesie_enable_server_side_badwidth_estimation"))Hb.ET=iC(Gb.schedule,!0);var fh=g.VC();Hb.ST=rc.width*fh;Hb.RT=rc.height*fh;Hb.visibility=Xc;Hb.k_=Au();Gb.S("html5_onesie_audio_only_playback")&&
dE(Ra)&&(Hb.lU=1);if(Gb.S("html5_onesie_media_capabilities")){E=fE(Ra);I=Gb.u;Gb=[];Ra=[];K=g.r(KLa);for(N=K.next();!N.done;N=K.next())for(var aj=g.r(N.value),qf=aj.next();!qf.done;qf=aj.next()){var bj=qf.value,Gd=LLa(bj);if(Gd&&Gd.video&&!0===Mx(E,Gd,I)){Gb.push({J_:fUa[Wz[bj]],KV:Gd.video.width,JV:Gd.video.height,maxFramerate:Gd.video.fps});break}}for(var cj=g.r(MLa),rf=cj.next();!rf.done;rf=cj.next()){var Sc=g.r(rf.value);for(qf=Sc.next();!qf.done;qf=Sc.next()){var sf=qf.value,Qf=NLa(sf);if(Qf&&
Qf.audio&&!0===Mx(E,Qf,I)){Ra.push({DT:eUa[Wz[sf]],numChannels:Qf.audio.numChannels});break}}}Hb.mediaCapabilities={II:Gb,hE:Ra}}e={WM:y,QT:Hb,onesieUstreamerConfig:v,LI:z}}catch(Rf){return a.logger.info("Failed to create OnesieRequestProto."),a.fail(Rf),t.return(a.Il)}a.enableCompression=e.WM.enableCompressionResponseOnly;a.ye("osor");l=GCa(a.Y);m=gCa(e,sLa);n={method:"POST",body:m,headers:{"Content-Type":"text/plain",Referer:location.origin}};v=b;y=a.videoData;z=aMa(a);E=a.S("html5_onesie_media_capabilities");
E=void 0===E?!1:E;v.set("ack","1");v.set("cpn",y.clientPlaybackNonce);v.set("opr","1");y.V().experiments.ob("html5_onesie_ads")||(v.set("oaad","0"),v.set("oavd","0"));v.set("por","1");RB()||v.set("onem","1");z?(y=z.audio,v.set("pvi",z.video.join(",")),v.set("pai",y.join(",")),Bx()||v.set("osh","1")):E||(v.set("pvi","135"),v.set("pai","140"),v.set("oad","0"),v.set("ovd","0"));a.Qh&&a.Aa("ombrs","1");p=a.Ca.V().schedule;a.El=new NR(a,{Zg:p,LE:a.Qh});b.set("rn",""+a.El.requestNumber);a.Wt=Wx(b);VHa(a.El,
a.Wt);a.ye("ocs");Bx()?Cx()?a.xhr=new MR(a.Wt,l,a.El,n):a.xhr=new VR(a.Wt,l,a.El,n):a.xhr=new WR(a.Wt,a.El,n);a.RO.start();a.Qh&&(null==(q=a.Bt)?0:q.J)&&a.Aa("ombhr",a.Bt.J);return t.return(a.Il)})};
g.h.Vt=function(){};
g.h.Rq=function(){!this.NA&&this.xhr.Jj()&&this.LG();this.Fo()};
g.h.fp=function(){var a=this;this.Fo();if(!this.isDisposed()){var b=bMa(this),c=this.xhr;b.rc=c.status;if(c.He()){var d="onesie.net";b.msg=c.He()}else 400<=c.status?d="onesie.net.badstatus":c.Tx()?this.LM||(d="onesie.response.noplayerresponse"):d=204===c.status?"onesie.net.nocontent":"onesie.net.connect";d?this.fail(new g.yB(d,b)):(this.ye("orf"),XHa(this.El,(0,g.R)(),c.Jj(),0),this.Qh&&this.Aa("rqs",b));this.Qh&&this.Aa("ombre","ok."+ +!d);this.ou=!1;fU(this);eU(this.yl);var e,f;null==(e=this.Bt)||
null==(f=zua(e))||f.forEach(function(k){a.Aa("pathprobe",k)})}};
g.h.S=function(a){return this.Y.S(a)};
g.h.MV=function(){if(ZLa(this)&&this.Bt&&(!this.NA||this.S("html5_onesie_probe_ec_hosts"))){var a=this.Bt;if(a.experiments.ob("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:b.Io;c&&EB(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:d.Io)&&EB(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:e.Io)&&EB(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:c.Io)&&EB(a,d,"o3",this)}}};
g.h.GM=function(){this.logger.info("Onesie request timed out");this.ou=!1;if(!fU(this)){var a=bMa(this);a.timeout="1";this.fail(new g.yB("onesie.request",a))}};
g.h.fail=function(a){var b=this;a=AB(a);this.MA?this.Ca.Hd(a):(this.Il.reject(a),this.MA=!0);eU(this.yl);this.xB.stop();this.ye("ore");var c,d;null==(c=this.Bt)||null==(d=zua(c))||d.forEach(function(e){b.Aa("pathprobe",e)});
this.dispose()};
g.h.ra=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();eU(this.yl);this.sQ.dispose();g.G.prototype.ra.call(this)};
g.h.Fo=function(){try{var a=this.xhr;102400<a.Jj()&&!this.aN&&(this.ye("or100k"),this.aN=!0);for(var b={};a.qg();){var c=a.Zh();b.FC=c.totalLength;this.Qh&&this.Aa("ombrss","len."+b.FC);this.sQ.feed(c);b={FC:b.FC}}if(this.We)for(var d=g.r(this.We.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.We.get(e.value))||QT(a);else{var f;null==(f=this.Td)||QT(f)}}catch(k){this.fail(k)}};var gMa=!1;g.w(g.mU,g.ev);g.h=g.mU.prototype;g.h.ra=function(){this.vP();this.LB.stop();g.Ar(this.EB);DFa(this.Oe);this.visibility.unsubscribe("visibilitystatechange",this.Oe);vKa(this.dc);g.zf(this.dc);sU(this);g.mp.Fi(this.Yq);this.Pg();this.Pe=null;g.zf(this.videoData);g.zf(this.Fj);g.Af(this.dW);this.qm=null;g.ev.prototype.ra.call(this)};
g.h.Ux=function(a){this.dc.Ux(a)};
g.h.ju=function(a,b,c,d){this.dc.ju(a,b,c);this.S("html5_log_media_perf_info")&&this.Aa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.h.fF=function(){var a;return null==(a=this.Va)?void 0:a.fF()};
g.h.gF=function(){var a;return null==(a=this.Va)?void 0:a.gF()};
g.h.getVideoData=function(){return this.videoData};
g.h.V=function(){return this.Y};
g.h.Co=function(){return this.visibility};
g.h.yd=function(){return this.qa};
g.h.rE=function(){if(this.videoData.isLoaded()){var a=this.Fj;0<g.YA(a.j.experiments,"html5_player_min_build_cl")&&436074049<g.YA(a.j.experiments,"html5_player_min_build_cl")&&BJa(a,"oldplayer");vMa(this)}else this.videoData.bd||this.videoData.Bj?this.Jt&&g.MC(this.Y)&&this.videoData.isLivePlayback||(this.videoData.bd?Rwa(this.videoData):(a=this.dc,a.qoe&&(a=a.qoe,cT(a,"protected"),a.j.videoData.N?a.KP():a.j.videoData.subscribe("dataloaded",a.KP,a)),Nwa(this.videoData))):!this.videoData.Ia&&this.GT&&
uMa(this)};
g.h.ot=ca(5);g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.isBackground=function(){return this.visibility.isBackground()};
g.h.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.LH(!0),vKa(this.dc),g.zf(this.dc),g.mp.Fi(this.Yq));var a;null==(a=this.Y.lh)||a.flush()};
g.h.Fr=function(){uKa(this.dc)};
g.h.Xf=function(a,b,c,d,e,f){var k,l;g.Zf(DTa,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+zBa());(c=l)||(c=g.XL[k]||"");a={errorCode:a,errorDetail:e,errorMessage:c,OE:k,Ji:f||"",tH:d,PE:b};qU(this,"dataloaderror");this.Wb(uH(this.playerState,128,a));g.mp.Fi(this.Yq);sU(this);this.Wm()};
g.h.Je=function(a){this.Zi=this.Zi.filter(function(b){return a!==b});
this.Tm.started&&rU(this)};
g.h.ll=function(){var a;(a=!!this.Zi.length)||(a=this.Bg.j.j[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.h.Hm=function(){return this.Uc.Hm()};
g.h.Jc=function(){return this.playerState.Jc()};
g.h.getPlayerState=function(){return this.playerState};
g.h.getPlayerType=function(){return this.playerType};
g.h.getPreferredQuality=function(){if(this.Pe){var a=this.Pe;a=a.videoData.Qr.compose(a.videoData.pQ);a=Jx(a)}else a="auto";return a};
g.h.Kw=ca(11);g.h.isGapless=function(){return!!this.qa&&this.qa.isView()};
g.h.setMediaElement=function(a){if(this.qa&&a.Ke()===this.qa.Ke()&&(a.isView()||this.qa.isView())){if(a.isView()||!this.qa.isView())g.dv(this.Pu),this.qa=a,EMa(this),this.Uc.setMediaElement(this.qa)}else{this.qa&&this.Pg();if(!this.playerState.isError()){var b=wH(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=vH(b,1));a.isView()&&(b=wH(b,64));this.Wb(b)}this.qa=a;this.qa.setLoop(this.loop);this.qa.setPlaybackRate(this.playbackRate);EMa(this);this.Uc.setMediaElement(this.qa);this.S("html5_prewarm_media_source")&&
!this.Fj.hx&&(a=this.qa,a.B||a.Bf()||!lta()||(a.B=a.oq()))}};
g.h.Pg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.qa){var c=this.getCurrentTime();0<c&&(this.Uc.B=c);this.Uc.setMediaElement(null);CU(this);this.Va&&(g.qp(this.Va.ma),DU(this,b));this.Jq.stop();if(this.qa&&(!this.Tm.started||this.playerState.isError()||g.V(this.playerState,2)||this.Wb(vH(this.playerState,512)),this.qa)){g.dv(this.Pu);if(a||!this.qa.isView())this.qa.stopVideo(),HU(this);this.qa=null}}};
g.h.playVideo=function(){var a=this,b,c,d,e,f;return g.B(function(k){if(1==k.j){if(!a.S("html5_clear_globalcache_killswitch")){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10))}if(g.V(a.playerState,128))return k.return();if(a.Fj.RA())return a.ea("signatureexpired"),k.return();a.qa&&(l=a.dc,US(l.C),l.qoe&&eT(l.qoe));xU(a);g.V(a.playerState,64)&&a.Wb(vH(a.playerState,8));return a.Tm.isFinished()&&a.qa?a.Pe||!a.Kx?k.Za(2):g.A(k,a.Kx,2):k.return()}if(!a.videoData.C)return a.videoData.isLivePlayback&&
!g.eB(a.Y.u,!0)?(b="html5.unsupportedlive",c=2):(b=eE(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.Ov(Error("selectableFormats")),a.Xf(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),k.return();if(a.Df()&&a.videoData.C.j)return k.return(pU(a));if(a.videoData.isLivePlayback){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.qE(a.videoData)&&g.V(a.playerState,4);(f=!a.S("html5_dompaused_unpause_killswitch")&&g.V(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{re:"videoplayer_unpauseLiveOnly"}):
a.seekTo(a.getMinSeekableTime(),{re:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Hm()&&a.seekTo(Infinity,{re:"videoplayer_peggedToLive"});if(l=g.V(a.playerState,256)&&a.videoData.ib)l=a.Uc,l=l.N&&!isFinite(l.j);if(l)return a.Wb(xH(a.playerState,8,4)),k.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.Wb(xH(a.playerState,9,4));if(kU(a))return JMa(a),k.return();GU(a);g.ua(k)})};
g.h.ao=function(){if(!this.Pe)return[];var a=GJa(this.Mg,this.Pe,this.kt());return this.Pe.j.ao(a)};
g.h.kt=function(){var a=this.Yd?this.Yd.kt():cE(this.videoData)&&this.videoData.j&&Rx(this.videoData.j)?this.videoData.gg?TD:pJa:TD;this.FH&&(a=a.compose(rTa));return a};
g.h.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?Jx(this.videoData.Qr):Ix[MA()]};
g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.h.setUserAudio51Preference=function(a){this.videoData.Qd!==a&&(this.videoData.Qd=a,g.bw("yt-player-audio51",a,2592E3),QS(this))};
g.h.getUserAudio51Preference=function(){var a;return null!=(a=g.cw("yt-player-audio51"))?a:1};
g.h.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){if(this.S("html5_native_audio_track_switching")){var a=AMa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.h.oq=function(){return this.mediaSource};
g.h.Tt=function(a){this.Xt.set(a.initData,a);this.Yd&&(this.Yd.Tt(a),this.S("html5_eme_loader_sync")||this.Xt.remove(a.initData))};
g.h.pB=function(a){AU(this,a.reason,a.video.info,a.audio.info);this.Uc.pB(a)};
g.h.qB=function(a){this.ea("localmediachange",a)};
g.h.Ku=function(){var a;null==(a=this.Va)||a.Ku(this.Y)};
g.h.RA=function(){return this.Fj.RA()};
g.h.handleError=function(a){this.Fj.handleError(a)};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.Wb(xH(this.playerState,4,8));else return;this.S("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.wy()||(g.V(this.playerState,128)||(a?this.Wb(vH(this.playerState,256)):this.Wb(xH(this.playerState,4,8))),this.qa&&this.qa.pause(),g.qE(this.videoData)&&this.Va&&DU(this,!1))};
g.h.stopVideo=function(){this.pauseVideo();this.Va&&(DU(this,!1),gS(this.Va))};
g.h.Wm=function(a){a=void 0===a?!1:a;var b;null==(b=this.qa)||b.stopVideo();HU(this);sU(this);g.V(this.playerState,128)||(a?this.Wb(wH(wH(vH(this.playerState,4),8),16)):this.Wb(uH(this.playerState)));this.videoData.videoId&&this.Y.Z.remove(this.videoData.videoId)};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.playerState,2)&&kU(this);if(this.td){var c=this.td;isFinite(a)&&a<c.Ca.Ij()?c.isLiveNow=!1:c.isLiveNow=!0}this.Uc.seekTo(a,b);this.S("html5_cuerange_synconseek_killswitch")||this.Bg.Dk()};
g.h.getCurrentTime=function(){return this.Uc.getCurrentTime()};
g.h.Mh=function(){return this.Uc.Mh()};
g.h.Ij=function(){return this.Uc.Ij()};
g.h.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.qd())};
g.h.nt=function(){var a=NaN;this.qa&&(a=this.qa.nt());return 0<=a?a:this.getCurrentTime()};
g.h.getIngestionTime=function(){var a;return(null==(a=this.videoData.j)?0:a.getIngestionTime)?this.videoData.j.getIngestionTime(this.getCurrentTime()-this.qd()):this.S("html5_disable_limit_ingestion_tvos")&&!Yr()||!this.qa||!(a=this.qa.bz())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.qd():this.xd()?this.xd():0};
g.h.wA=function(){var a=new zKa;if(this.Va){var b=this.Y.schedule;a.j=b.X;a.C=b.ma;a.bandwidthEstimate=iC(b);a.u={d:gC(b).toFixed(2),st:(1E9*(b.j.Eg()||0)).toFixed(2),bw:b.B.Eg().toFixed(0),abw:b.J.Eg().toFixed(0),v50:eC(b.u,.5).toFixed(2),v92:eC(b.u,.92).toFixed(2),v96:eC(b.u,.96).toFixed(2),v98:eC(b.u,.98).toFixed(2)};b=this.Va;if(b.mediaSource&&!b.mediaSource.df()&&(a.aq=HR(b.videoTrack,b.currentTime),a.B=HR(b.audioTrack,b.currentTime),b.policy.jb)){var c=GR(b.videoTrack),d=GR(b.audioTrack),e=
mA(b.mediaSource.u.zf(),"_",5),f=mA(b.mediaSource.j.zf(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=IQ(b.N)}else this.qa&&(a.aq=rH(this.qa));a.D=this.isAtLiveHead()&&this.Jc()?jU(this):NaN;return a};
g.h.mq=function(){return this.qa?g.qE(this.videoData)?1:rE(this.videoData)?this.isAtLiveHead()||this.Hm()?1:this.Uc.mq():this.qa.mq():0};
g.h.Nb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.dc.Nb());this.qa&&(Object.assign(b,this.qa.Nb()),Object.assign(b,this.Qw()));this.Va&&Object.assign(b,this.Va.Nb());this.Yd&&(b.drm=JSON.stringify(this.Yd.Nb()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.ll()&&(b.prerolls=this.Zi.join(","));this.videoData.wk&&(b.ismb=this.videoData.wk);"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.gm.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&JA(this.videoData.j)&&(b.segduration=JA(this.videoData.j)),a=this.Uc,b.lat=a.J?iGa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Pd.toFixed(3);if(a=g.zU(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
MA();b.release_version="youtube.player.web_20220320_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.h.addCueRange=function(a){this.Rv([a])};
g.h.removeCueRange=function(a){this.Bg.Wf([a])};
g.h.ww=function(a,b){return this.Bg.ww(a,b)};
g.h.Rv=function(a,b){this.Bg.Rd(a,b)};
g.h.SB=function(a){this.Bg.Wf(a)};
g.h.xm=function(){return this.Bg.xm()||[]};
g.h.Df=function(){return this.visibility.Df()};
g.h.qp=function(){this.qa&&this.qa.qp()};
g.h.YY=function(){qU(this)};
g.h.togglePictureInPicture=function(){this.qa&&this.qa.togglePictureInPicture()};
g.h.dH=function(a){var b=a.target.Bf();if(this.qa&&this.qa.Bf()&&this.qa.Bf()===b){MMa(this,a.type);switch(a.type){case "error":var c=sH(this.qa)||"";if("capability.changed"===c){pU(this);return}if(0<this.qa.Cj()&&RS(this.Fj,c,{msg:this.qa.He()}))return;if(this.isBackground()&&4===this.qa.Cj()){this.Wm();tU(this,"unplayable");return}break;case "durationchange":c=this.qa.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.fk(c);break;case "ratechange":this.Va&&this.Va.setPlaybackRate(this.qa.getPlaybackRate());
c=this.Bg;c.started=!0;c.Dk();this.dc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":OMa(this);this.ea("onLoadedMetadata");FMa(this);break;case "loadstart":FMa(this);break;case "progress":case "suspend":this.Qb();this.ea("onLoadProgress",this,this.mq());break;case "playing":jL(this.Ib,"plev");this.IH&&(this.IH=!1,this.isAtLiveHead()||this.seekTo(Infinity,{re:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.qa&&!this.qa.getCurrentTime();var d=this.qa&&0===this.qa.Ih();
if(c&&(!this.kB||d))return;this.kB=this.kB||!!this.qa.getCurrentTime();FU(this);this.Qb();if(!this.qa||this.qa.Bf()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.qa.qq().length&&0===this.qa.jg().length&&0<this.qa.getCurrentTime()&&5>this.qa.getCurrentTime()&&this.Va)return;break;case "resize":OMa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.fL&&g.V(this.playerState,
8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Ns){tU(this,"safari_autoplay_disabled");return}}if(this.qa&&this.qa.Bf()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.Wv;var e=this.qa;d=b.state;e=e?e:a.target;var f=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var k=e.Uf()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Uf();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!uT(c,f);if(l||k&&
f)0<e.rA()&&e.Bf()&&(d=14);else switch(a.type){case "error":sH(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1093;uT(c,e.getCurrentTime())&&(d&=-2);g.V(b,1)&&vT(c,e.getCurrentTime(),(0,g.R)(),rH(e))&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);vT(c,e.getCurrentTime(),(0,g.R)(),rH(e));break;case "timeupdate":k=g.V(b,
16),l=g.V(b,4),(g.V(b,8)||k)&&!l&&uT(c,e.getCurrentTime())&&(d=8),vT(c,e.getCurrentTime(),(0,g.R)(),rH(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=sH(d),k=1,e?("capability.changed"===e&&(k=2),l="GENERIC_WITHOUT_LINK",f=d.Nb(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.He())&&(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.XL[l]||"",OE:l,tH:xB(f),PE:k}):d=null);b=uH(b,c,d)}!g.V(this.playerState,1)&&g.V(b,1)&&IU(this,"evt"+a.type);this.Wb(b)}}};
g.h.tW=function(a){a="available"===a.j.availability;a!==this.Xw&&(this.Xw=a,this.ea("airplayavailabilitychange"))};
g.h.uW=function(){var a=(0,g.R)(),b=this.qa.Df();this.Aa("airplay",{ia:b});if(!this.S("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.TA)||!(2E3>a-this.TA))this.TA=a,b!==this.Df()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Oe()),this.Aa("airplay",{rbld:b}),QS(this)),this.ea("airplayactivechange")};
g.h.Rw=function(a){if(this.Va){var b=this.Va,c=b.B,d=b.currentTime;c.Aa("sdai",{adfetchdone:a});a&&!isNaN(c.C)&&JGa(c,d,c.C,c.B);SQ(c,4,"adf");g.qp(b.ma)}};
g.h.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.qa&&this.videoData){WKa(this.Uc,this.Jc());var c=this.getCurrentTime();this.Va&&(g.V(this.playerState,4)&&g.qE(this.videoData)||HIa(this.Va,c));5<c&&(this.Uc.B=c);var d=g.Tr();d?g.mp.Fi(this.Yq):g.zr(this.Yq);var e=this.qa.Pl();if((g.BH(this.playerState)||!e||HE(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.qa&&!g.V(b.playerState,128)){hD(b.Y)&&g.YA(b.Y.experiments,"html5_log_rebuffer_events")&&MMa(b,"pfx");var k=b.getCurrentTime(),
l=rH(b.qa),m=g.V(b.playerState,8),n=uT(b.Wv,k),p=vT(b.Wv,k,(0,g.R)(),l);m&&n?b.Wb(wH(b.playerState,1)):m&&p?(m=b.getDuration(),n=b.videoData.isLivePlayback,(b.S("html5_set_ended_in_pfx_live")||!n)&&m&&1.1>Math.abs(m-k)?(b.Aa("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.S("html5_set_ended_in_pfx_live_cfl")||(b.qa.nq()?b.seekTo(0,{re:"videoplayer_loop"}):HP(b))):(g.BH(b.playerState)||IU(b,"progress_fix"),b.Wb(vH(b.playerState,1)))):(m&&!n&&!p&&0<k&&(m=(Date.now()-b.hx)/1E3,n=b.getDuration(),k>n-1&&b.Aa("misspg",
{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.BH(b.playerState)&&5<rH(b.qa)&&b.Wb(wH(b.playerState,1)));b.Qb()}};
0===this.qa.qq().length?this.Yq=d?g.mp.eg(f,100):g.tr(f,100):this.Yq=d?g.mp.eg(f,500):g.tr(f,500)}this.videoData.Gv=c;!a&&this.Jc()&&IMa(this);NJa(this.Mg,this.Pe,this.yd(),this.isBackground())&&qS(this);OJa(this.Mg,this.videoData.u)&&(this.dc.Hd("qoe.restart","droprate."+this.Mg.K),nua(this.Y.u),QS(this));this.ea("progresssync",this,a);!this.S("html5_progress_event_linear_paused_killswitch")&&e&&HE(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
g.h.GU=function(){this.Xf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.h.Hw=function(){return this.dc.Hw()};
g.h.cF=function(){return this.Va?this.Va.cF():iC(this.Y.schedule,!0)};
g.h.KT=function(){g.BH(this.playerState)&&LJa(this.Mg,this.Pe)&&qS(this)};
g.h.Wb=function(a){if(!g.yH(this.playerState,a)){var b=new g.xF(a,this.playerState);this.playerState=a;NMa(this);var c=!this.GB.length;this.GB.push(b);var d=this.qa&&this.qa.uv();if(g.zF(b,1)&&!g.V(b.Wo,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Va){d=this.Va;d.xa=!0;if(d.policy.me&&d.C){var e={rebuf:d.xa,ct:d.currentTime.toFixed(3)};if(d.Z){e.sq=d.Z.info.j[0].Ma;e.itag=d.Z.info.j[0].j.info.id;e.mt=d.Z.info.j[0].B.toFixed(3);e.st=d.Z.state;var f=d.Z.lastError;f&&(e.err=f)}d.Sa&&
(e.ccr=d.Sa);d.Aa("sdai",e)}this.qa&&5<=rH(this.qa)&&((d=g.YA(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.YN.start(d):LJa(this.Mg,this.Pe)&&qS(this))}(d=g.YA(this.Y.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.VD.start(d):this.VD.stop();(0>yF(b,8)||g.zF(b,1024))&&this.Jq.stop();!g.zF(b,8)||this.videoData.ib||g.V(b.state,1024)||this.Jq.start();g.V(b.state,8)&&0>yF(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state,
2)&&rE(this.videoData)&&(this.fk(this.getCurrentTime()),this.Qb(!0));g.zF(b,2)&&this.LH(!0);g.zF(b,128)&&this.Wm();this.videoData.j&&this.videoData.isLivePlayback&&!this.xQ&&(0>yF(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.zF(b,8)&&this.videoData.j.resume());this.Uc.Tc(b);this.dc.Tc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.GB),l=k.next();!l.done;l=k.next()){var m=l.value;this.Bg.Tc(m);this.ea("statechange",m)}}finally{this.GB.length=0}}};
g.h.Cx=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.h.ZG=function(){this.Ib.tick("qoes")};
g.h.oB=function(a,b,c,d){a:{var e=this.Fj;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=zB(b);"drm.keyerror"===a&&this.Yd&&1<this.Yd.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())DJa(e,a);else{if(e.Ca.Xf(a,b,d,c),e.videoData.S("html5_exile_on_drm_fatal")&&wJa(e,{detail:c}))break a}else e.Hd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Aa("retrydrm",{sessionLimitExhausted:1}),e.D++,LMa(e.Ca))}};
g.h.lX=function(){var a=this,b=g.YA(this.Y.experiments,"html5_license_constraint_delay"),c=gs();b&&c?(b=new g.L(function(){vU(a);qU(a)},b),g.H(this,b),b.start()):(vU(this),qU(this))};
g.h.Ex=function(a){this.ea("heartbeatparams",a)};
g.h.bp=function(a){this.Aa("keystatuses",eJa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var d=fJa(b,c);d=BS(a)?CS(a,d):a.D.includes(d)}else{a:{b=fJa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.ma&&d;c&&!b?DJa(this.Fj):d||CS(a,"AUDIO")&&CS(a,"SD")||(this.FH?this.ea("drmoutputrestricted"):(this.FH=
!0,this.Aa("retrydrm",{o:1}),wU(this),LMa(this)))};
g.h.oX=function(){if(!this.videoData.ib&&this.qa&&!this.isBackground()){var a="0";0<this.qa.Ih()&&5<=rH(this.qa)&&this.videoData.C&&this.videoData.C.j&&(this.Wb(vH(this.playerState,1)),IU(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),a="1");NMa(this);if(this.S("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.ll()&&(a.prerolls=this.Zi.join(",")),this.Va&&Object.assign(a,this.Va.Nb()),this.qa&&Object.assign(a,this.qa.Nb());else{var b=this.videoData.C;a={restartmsg:a,
mfmt:cE(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Sd&&!this.Yd?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.ll()?this.Zi.join(","):"0"};if(this.Yd){b=a;var c=this.Yd;if(0>=c.u.size){var d="ns;";c.X||(d+="nr;");c=d+="ql."+c.B.length}else c=eJa(c.u.values().next().value),c=xB(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Va)?void 0:e.Nb())||{});var f;Object.assign(a,(null==(f=this.qa)?void 0:f.Nb())||{})}this.dc.Hd("qoe.start15s",xB(a));this.ea("loadsofttimeout")}};
g.h.fk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,qU(this))};
g.h.LH=function(a){var b=this;a=void 0===a?!1:a;if(!this.zz){wx("att_s","player_att")||xx("att_s",void 0,"player_att");var c=new g.NBa(this.videoData);if("c1a"in c.j&&!g.lK.isInitialized()&&(xx("att_wb",void 0,"player_att"),2===this.fE&&.01>Math.random()&&g.Ov(Error("Botguard not available after 2 attempts")),!a&&5>this.fE)){g.qp(this.gE);this.fE++;return}if("c1b"in c.j){var d=xKa(this.dc);d&&QBa(c).then(function(e){e&&!b.zz&&d?(xx("att_f",void 0,"player_att"),d(e),b.zz=!0):xx("att_e",void 0,"player_att")},
function(){xx("att_e",void 0,"player_att")})}else(a=g.OBa(c))?(xx("att_f",void 0,"player_att"),wKa(this.dc,a),this.zz=!0):xx("att_e",void 0,"player_att")}};
g.h.xd=function(a){return this.Uc.xd(void 0===a?!1:a)};
g.h.getMinSeekableTime=function(){return this.Uc.getMinSeekableTime()};
g.h.qd=function(){return this.Uc?this.Uc.qd():0};
g.h.getStreamTimeOffset=function(){return this.Uc?this.Uc.getStreamTimeOffset():0};
g.h.Bm=function(){var a=0;this.Y.S("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.qd():this.getStreamTimeOffset());return a};
g.h.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32<this.videoData.C.videoInfos[0].video.fps&&g.MC(this.Y);this.playbackRate!==a&&b&&(this.Mg.setPlaybackRate(a),wU(this));this.playbackRate=a;this.qa&&this.qa.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.playbackRate};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.qa)){var b=uF(this);b&&0<b.videoHeight&&(a=Sz(b.videoWidth,b.videoHeight))}return a};
g.h.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.h.Mu=function(){this.dc.Mu()};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.dc;c.j?(c=mT(c.j,"engage"),c.X=a,c.send(b)):b&&b()};
g.h.ih=function(a){return this.dc.ih(a)};
g.h.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.IM||(void 0===b?0:b))?this.Uc.isAtLiveHead(a):!1};
g.h.qo=function(){var a=this.xd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Uc,c=!(c.u&&c.u.B));return c||this.Hm()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.h.Yj=ca(15);g.h.ap=ca(36);g.h.Zo=ca(39);g.h.Qw=function(){return this.qa?this.qa.cz():{}};
g.h.setLoop=function(a){this.loop=a;this.qa&&this.qa.setLoop(a)};
g.h.nq=function(){return this.qa?this.qa.nq():this.loop};
g.h.cH=function(a){this.Aa("timestamp",{t:a.toString()});this.Uc.cH(a)};
g.h.ye=function(a){this.Ib.tick(a)};
g.h.Aa=function(a,b,c){this.dc.Aa(a,b,void 0===c?!1:c)};
g.h.xH=function(a,b,c){this.dc.Aa(a,b,void 0===c?!1:c)};
g.h.Hd=function(a){this.dc.Hd(a.errorCode,xB(a.details))};
g.h.Vx=function(a,b,c){this.dc.Vx(a,b,c)};
g.h.getPlayerSize=function(){return this.vy.getPlayerSize()};
g.h.Gg=function(){return this.vy.Gg()};
g.h.Ki=function(){return this.Ib};
g.h.S=function(a){return this.Y.S(a)};
g.h.eE=function(){if(gE(this.videoData,"html5_set_debugging_opt_in")){var a=g.ns.getInstance();if(!g.os(0,183)){var b="f"+(Math.floor(183/31)+1),c=Sma(b)||0;c|=268435456;0==c?delete ms[b]:(c=c.toString(16),ms[b]=c.toString());a.save()}}};
g.h.vP=function(){if(g.zH(this.playerState)){var a=lU.aM();0!==Object.keys(a).length&&this.dc.Aa("profile",a)}this.LB.start()};
g.h.wy=function(){var a=this.getCurrentTime(),b;return(null==(b=this.Va)?0:b.wy(a,100))?(eLa(this.Uc,a+100+5),!0):!1};
g.h.Hg=function(){return this.videoData.videoId};
g.h.ut=function(a){return this.Va?this.Va.ut(a):""};g.w(g.MU,g.G);g.MU.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Sa(a),e=T0[d];if(e){try{e.dispose()}catch(k){g.S(k)}T0[d]=null}var f=new g.MU(a,b,c);g.Bf(f,function(){T0[d]=null;f.tQ&&f.tQ()});
return T0[d]=f}catch(k){throw g.S(k),k.stack;}};
g.h=g.MU.prototype;g.h.Co=function(){return this.visibility};
g.h.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.h.dl=function(){this.SF||(this.SF=g.XJ(RH(),wBa()));return this.SF};
g.h.isVideoInfoVisible=function(){return!(!this.vj||!this.vj.ub)};
g.h.Pg=function(){if(this.qa){this.Tu&&(this.events.wc(this.Tu),this.Tu=null);g.dv(this.So);this.Cb&&this.Cb.Pg(!0);this.template.Pg();if(!this.S("html5_unset_src_on_remove_killswitch"))try{this.qa.TB()}catch(a){}this.qa=null}};
g.h.Lc=function(){return this.Cb};
g.h.Vm=function(){this.Cb!==this.wb&&IP(this,this.wb)};
g.h.Nn=function(a,b,c){var d=this,e=this.Ib;2===a&&(e=new iL(this.Y));return new g.mU(this.Y,a,e,this.template,function(f){return d.Um.ea.apply(d.Um,[f].concat(g.u(g.Da.apply(1,arguments))))},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.h.setIsExternalPlaylist=function(a){this.Dg=mC(!1,a)};
g.h.zW=function(){NU(this)||this.Gl(5)};
g.h.KX=function(a){NU(this)||(qNa(this),g.zH(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return fA(a)};
g.h.V=function(){return this.Y};
g.h.getVideoData=function(){return this.Cb.getVideoData()};
g.h.Pw=ca(7);g.h.getVideoLoadedFraction=function(a){a=g.gL(this,a);return a?g.EE(a.getVideoData())?1:(a=a.yd())?a.mq():0:0};
g.h.eb=function(){return this.template};
g.h.tb=function(){return this.Ac};
g.h.Ki=function(){return this.Ib};
g.h.Au=function(a){var b=g.gL(this,1);b&&HP(b,a)};
g.h.Nh=function(){var a=this.Ac.tF();a.fs=this.Ua.isFullscreen();a.volume=Math.round(this.Ua.getVolume());a.muted=this.Ua.isMuted()?1:0;a.mos=a.muted;if(this.Y.S("html5_enable_embedded_player_visibility_signals")&&g.xC(this.Y)){if(this.KI){var b=this.KI;b=null==b.j?null:Math.round(100*b.j)/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.VC();1<c&&b.push(c);a.size=b.join(":")}}this.Cb===this.wb&&this.Vb&&(a.clipid=
this.Vb.postId);return a};
g.h.vZ=function(){$Ba(this.getVideoData(),this.Y,this.dl())};
g.h.addBgVersionChangeCallback=function(a){oK.push(a)};
g.h.aj=function(a){1===a&&(this.Ib.tick("vr"),this.xp||(this.xp=Ct(fTa,this.lO,this)),GMa(this.Cb),wCa(this.Ib,this.Cb.getVideoData(),pNa(this)));var b=this.Y;(eD(b)&&b.B||g.FC(b))&&(this.qe()||this.Ua.Oa("onAdStateChange",a))};
g.h.setLoopVideo=function(a){this.Cb===this.wb&&this.Cb.nq()!==a&&(this.Cb.setLoop(a),this.Ua.ea("loopchange",a))};
g.h.getLoopVideo=function(){return this.Cb.nq()};
g.h.setLoopRange=function(a){var b=!1;!!this.Vb!==!!a?b=!0:this.Vb&&a&&(b=this.Vb.startTimeMs!==a.startTimeMs||this.Vb.endTimeMs!==a.endTimeMs||this.Vb.postId!==a.postId);b&&(this.wb.Bg.kf("applooprange"),a?(b=new g.Ew(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.wb.addCueRange(b)):JU(this).clipConfig=void 0,this.Vb=a,this.Ua.Oa("onLoopRangeChange",a||void 0),this.Cb===this.wb&&(this.aC(),this.Cb.Fr()))};
g.h.getLoopRange=function(){return this.Vb};
g.h.aC=function(){this.Vb&&this.Cb===this.wb&&(gNa(this,this.wb.getCurrentTime())||hNa(this))};
g.h.setPlaybackRate=function(a,b){isNaN(a)||(a=YMa(this,a),this.wb.getPlaybackRate()!==a&&(this.wb.setPlaybackRate(a),b&&!this.Y.j&&g.bw("yt-player-playback-rate",a),this.Ua.Oa("onPlaybackRateChange",a)))};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return aL(this.Ac).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.gL(this):g.gL(this,a);if(!a)return 0;if(b){if(c&&this.Ad&&(b=this.Ad.Ea/1E3,0!==b))return b;a=TU(this,a);return dV(this,a.getCurrentTime(),a)}c&&this.Ad?(b=this.Ad,a=a.getCurrentTime(),MP(b)?(b=UP(b,1E3*a))&&b.En&&(a-=b.En):(b=KFa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.h.nt=function(){var a=g.gL(this,void 0);if(!a)return 0;a=TU(this,a);return dV(this,a.nt(),a)};
g.h.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.gL(this):g.gL(this,a);if(!a)return 0;if(this.S("enable_linear_player_handling")&&c.hasProgressBarBoundaries()){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),k;c=Number(null==(k=c.progressBarEndPosition)?void 0:k.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=SU(this,a),dV(this,b.getDuration(),b);d&&this.Ad?(b=this.Ad,d=a.getCurrentTime(),
b=MP(b)?b.N?b.N.durationMs/1E3:0:(b=UP(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.h.getMinSeekableTime=function(a){a=g.gL(this,a);if(!a)return 0;a=SU(this,a);return dV(this,a.getMinSeekableTime(),a)};
g.h.getIngestionTime=function(a){var b=g.gL(this,a);return b?this.qe(b)?(b=SU(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.h.GE=function(){this.template.GE();var a=this.I;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=av(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.hY)};
g.h.getDebugText=function(a){var b=this.wb.Nb(a);if(this.Cb&&this.Cb!==this.wb){for(var c=this.Cb.Nb(a),d=g.r(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=Dba("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Rh("video-ads");f?(vNa(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.Rh("videoAdUiSkipContainer"),l=g.Rh("ytp-ad-skip-button-container"),m=k||l;m?(vNa(m,f),f.ima=k?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.qa&&(b["0sz"]=""+(0===+Eh(this.qa.getSize())),b.op=this.qa.getStyle("opacity"),c=this.qa.zo().y+this.qa.getSize().height,b.yof=""+(0>=+c),b.dis=this.qa.getStyle("display"));(a=a?(0,g.dT)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.h.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.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(NU(this))return 3;var b;return a&&(null==(b=this.Ad)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.gL(this).getPlayerType()};
g.h.zb=function(a){return 3===this.getPresentingPlayerType()?aL(this.Ac).Md:g.gL(this,a).getPlayerState()};
g.h.getAppState=function(){return this.appState};
g.h.dH=function(a){var b=this;switch(a.type){case "loadedmetadata":jL(this.Ib,"fvb");this.ZB.start();g.wc(this.vu,function(c){nNa(b,c.id,c.H_,c.G_,!1)});
this.vu=[];break;case "loadstart":jL(this.Ib,"gv");break;case "progress":case "timeupdate":2<=qA(a.target.jg())&&jL(this.Ib,"l2s");break;case "playing":g.cD&&this.ZB.start(),jNa(this)&&(this.Cb.Aa("hidden",{},!0),this.getVideoData().vb||(this.S("html5_new_elem_on_hidden")?(this.getVideoData().vb=1,this.xO(null),this.Cb.playVideo()):QU(this,"hidden",!0)))}};
g.h.onLoadProgress=function(a,b){this.Ua.Oa("onLoadProgress",b)};
g.h.DY=function(){this.Ua.ea("playbackstalledatstart")};
g.h.onVideoProgress=function(a,b){a=TU(this,a);b=dV(this,a.getCurrentTime(),a);this.Ua.Oa("onVideoProgress",b)};
g.h.onAutoplayBlocked=function(){this.Ua.Oa("onAutoplayBlocked")};
g.h.VX=function(){this.Ua.ea("progresssync")};
g.h.DW=function(a){if(1===this.getPresentingPlayerType()){g.zF(a,1)&&!g.V(a.state,64)&&JU(this).isLivePlayback&&this.wb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.zF(a,2)){if(this.Vb&&this.Vb.endTimeMs>=1E3*(this.getDuration()-1)){hNa(this);return}bNa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Oa("onError",STa[b.errorCode]||5);this.Ua.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.OE});6048E5<(0,g.R)()-this.Y.Pd&&this.Ua.Oa("onReloadRequired")}b={};if(a.state.Jc()&&!g.BH(a.state)&&!wx("pbresume","ad_to_video")&&wx("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);ix(b,"ad_to_video");if(this.S("html5_csi_delay_pbresume")){if(wx("plev","ad_to_video")&&!isNaN(this.Ib.u))if(b=1E3*(this.getCurrentTime()-this.Ib.u),0>b){var d;null==(d=g.gL(this))||
d.Aa("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.gL(this))||e.Aa("csir",{oslms:b})}else d=(0,g.R)()-b,hx("pbresume",d,"ad_to_video"),this.Ib.u=NaN}else hx("pbresume",void 0,"ad_to_video")}this.Ua.ea("applicationplayerstatechange",a)}};
g.h.QO=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ea("presentingplayerstatechange",a)};
g.h.vg=function(a){RU(this,CH(a.state));g.V(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(TK(this,{muted:!1,volume:this.yg.volume},!1),aV(this,!1))};
g.h.xW=function(a,b,c){"newdata"===a&&KU(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.h.Ax=function(){this.Ua.Oa("onPlaybackAudioChange",this.Ua.getAudioTrack().Fc.name)};
g.h.Ix=function(a){var b=this.Cb.getVideoData();a===b&&this.Ua.Oa("onPlaybackQualityChange",a.u.video.quality)};
g.h.onVideoDataChange=function(a,b,c){b===this.wb&&(this.Y.Ya=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Ad?this.Ad=new g.NP(this.Ua,this.Y,this.wb):!this.getVideoData().enableServerStitchedDai&&this.Ad&&(this.Ad.dispose(),this.Ad=null);if("newdata"===a)DL(this.Ac,2),this.Ua.ea("videoplayerreset",b);else{if(!this.qa)return;if("dataloaded"===a)if(this.Cb===this.wb){if(KC(c.B,c.zK),!this.wb.getPlayerState().isError()){var d=NU(this);JU(this).isLoaded();d&&this.Gl(6);dNa(this);
CL(this.Ac)||UU(this)}}else dNa(this);if(1===b.getPlayerType()&&(this.Y.va&&uNa(this),this.getVideoData().isLivePlayback&&!this.Y.Yl&&this.Ye("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.Ub||c.TC||c.Ak||c.SI||c.K.focEnabled||c.K.rmktEnabled||this.getVideoData().Yl)d=this.getVideoData(),gV(this,"part2viewed",1,0x8000000000000),gV(this,"engagedview",Math.max(1,1E3*d.Gb),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,gV(this,"videoplaytime25",.25*d,d),gV(this,"videoplaytime50",
.5*d,d),gV(this,"videoplaytime75",.75*d,d),gV(this,"videoplaytime100",d,0x8000000000000),gV(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null==(e=this.getVideoData().progressBarEndPosition)?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.MB.progressEndBoundary,(null==d?void 0:d.start)!==e&&(d&&this.SB([d]),e=new g.Ew(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),
this.wb.addCueRange(e),this.MB.progressEndBoundary=e))}}this.Ua.ea("videodatachange",a,c,b.getPlayerType())}this.Ua.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.aC();if(b=c.gy){if(a=this.Lo,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=JH();var f=void 0===f?{}:f;Object.values(bTa).includes(c)||(g.Ov(new g.Fs("createClientScreen() called with a non-page VE",c)),c=83769);f.isHistoryNavigation||b.j.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];
f.LL?Mya(b,c,f):Lya(b,c,f);tGa(a)}}else tGa(this.Lo)};
g.h.Ks=function(){VU(this,null);this.Ua.Oa("onPlaylistUpdate")};
g.h.cO=function(a){var b=a.getId(),c=JU(this);if("part2viewed"===b){if(c.KK&&g.Kt(c.KK),c.TC&&nV(this,c.TC),c.Ak)if(this.V().S("html5_enable_cpn_macro_substitution_for_trv_discovery_ads"))for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.r(c.Ak),f=e.next();!f.done;f=e.next())nV(this,g.ip(f.value,d));else oV(this,c.Ak)}else"conversionview"===b?this.wb.Mu():"engagedview"===b&&c.Ub&&(this.V().S("html5_enable_cpn_macro_substitution_for_trv_discovery_ads")?(d={CPN:this.getVideoData().clientPlaybackNonce},
g.Kt(g.ip(c.Ub,d))):g.Kt(c.Ub));c.MK&&(d=a.getId(),d=lr(c.MK,{label:d}),g.Kt(d));switch(b){case "videoplaytime25":c.FK&&nV(this,c.FK);c.VC&&oV(this,c.VC);c.QK&&g.Kt(c.QK);break;case "videoplaytime50":c.GK&&nV(this,c.GK);c.WC&&oV(this,c.WC);c.gL&&g.Kt(c.gL);break;case "videoplaytime75":c.IK&&nV(this,c.IK);c.AD&&oV(this,c.AD);c.uL&&g.Kt(c.uL);break;case "videoplaytime100":c.BK&&nV(this,c.BK),c.UC&&oV(this,c.UC),c.OK&&g.Kt(c.OK)}(b=this.getVideoData().Yl)&&lNa(this,b,a.getId())&&lNa(this,b,a.getId()+
"gaia");this.wb.removeCueRange(a)};
g.h.UX=function(a){delete this.MB[a.getId()];this.wb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,k,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(k=a.watchNextResponse)?void 0:null==(l=k.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.r(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),k=f=e=d=void 0,(null==(d=c)?void 0:null==(e=d.watchEndpoint)?void 0:e.videoId)===a.videoId&&(null==(f=c)?0:null==(k=f.watchEndpoint)?0:k.continuePlayback)){a=c;break a}a=null}b=null==a?void 0:a.watchEndpoint;this.S("enable_linear_player_handling")&&b&&this.Ua.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,
watchEndpoint:b})};
g.h.Gl=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(RU(this,-1),RU(this,5)),this.appState=a,this.Ua.ea("appstatechange",a))};
g.h.Ye=function(a,b,c,d,e){this.wb.Xf(a,b,c,d,e)};
g.h.Hl=ca(9);g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.gL(this,a);if(!c)return!1;a=SU(this,c);c=TU(this,c);return a!==c?a.isAtLiveHead(dV(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.h.qo=function(){var a=g.gL(this,void 0);return a?SU(this,a).qo():0};
g.h.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.gL(this,d))2===this.appState&&ZU(this),this.qe(d)?cV(this)?this.Ad.seekTo(a,b,c):this.td.seekTo(a,b,c):d.seekTo(a,{qQ:!b,rQ:c,re:"application"})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.tB=function(){this.Ua.Oa("SEEK_COMPLETE")};
g.h.sY=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.V(a.getPlayerState(),512)||ZU(this):this.Ua.Oa("SEEK_TO",b)};
g.h.onAirPlayActiveChange=function(){this.Ua.ea("airplayactivechange");this.Y.S("html5_external_airplay_events")&&this.Ua.Oa("onAirPlayActiveChange",this.Ua.Df())};
g.h.onAirPlayAvailabilityChange=function(){this.Ua.ea("airplayavailabilitychange");this.Y.S("html5_external_airplay_events")&&this.Ua.Oa("onAirPlayAvailabilityChange",this.Ua.Xw())};
g.h.showAirplayPicker=function(){var a;null==(a=this.Cb)||a.qp()};
g.h.GG=function(){this.Ua.ea("beginseeking")};
g.h.KG=function(){this.Ua.ea("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.gL(this,a))?SU(this,a).getVideoData().getStoryboardFormat():null};
g.h.jh=function(a){return(a=g.gL(this,a))?SU(this,a).getVideoData().jh():null};
g.h.qe=function(a){a=a||this.Cb;var b=!1;if(a){a=a.getVideoData();if(cV(this))a=a===this.Ad.Ca.getVideoData();else a:if(b=this.td,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Cc===c.value.Cc){a=!0;break a}a=!1}b=a}return b};
g.h.Fs=function(a,b,c,d,e,f){var k=cV(this),l;null==(l=g.gL(this))||l.Aa("appattl",{sstm:this.Ad?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:k});return k?IFa(this.Ad,a,b,c,d,e,f):YFa(this.td,a,b,c,d,e)};
g.h.Vw=function(a,b,c,d,e,f){cV(this)&&IFa(this.Ad,a,b,c,d,e,f);return""};
g.h.ep=function(a){var b;null==(b=this.Ad)||b.ep(a)};
g.h.cq=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;cV(this)?this.Y.S("web_player_ssdai_prevent_clearing_timeline_killswitch")&&XP(this.Ad,a,b):jQ(this.td,a,b)};
g.h.Lu=function(a,b,c){if(cV(this)){var d=this.Ad,e=c;(c=d.vb.get(a))?(d.Ra(),void 0===e&&(e=c.jd),a=e,d.Ra(),c.durationMs=b,c.jd=a,d.Y.S("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&LFa(d,c)):d.Sj("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.td;e=null;for(var f=g.r(d.u),k=f.next();!k.done;k=f.next())if(k=k.value,k.Cc===a){e=k;break}e?(d.Ra(),void 0===c&&(c=e.jd),dGa(d,e,b,c)):cQ(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.qe();a=new g.UD(this.Y,a);d&&(a.Cc=d);c=void 0===c?Infinity:c;b=b||this.Cb.getPlayerType();var e;this.Y.S("html5_gapless_preloading")&&(e=bV(this,b,a,!0));e||(e=this.Nn(b,a));2===b&&this.wb&&(b=e.getVideoData(),this.wb.ju(b.clientPlaybackNonce,b.Xb||"",b.breakType||0,b.Pd));this.Wz(e,c)};
g.h.Wz=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.gL(this);e&&(SU(this,e).xQ=!0);yFa(this.Ru,a,b,c).then(function(){d.Ua.Oa("onQueuedVideoLoaded")},function(){})};
g.h.Kt=function(){return this.Ru.Kt()};
g.h.clearQueue=function(){this.Ru.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,k=new g.UD(this.Y,a),l,m=null!=(l=k.xa)?l:"";this.Ib.timerName=m;this.S("web_player_early_cpn")&&k.clientPlaybackNonce&&this.Ib.info("cpn",k.clientPlaybackNonce);if(!this.S("web_player_load_video_context_killswitch")&&e){for(;k.Oi.length&&k.Oi[0].isExpired();)k.Oi.shift();f=k.Oi.length-1;f=0<f&&e.u(k.Oi[f])&&e.u(k.Oi[f-1]);k.Oi.push(e)}c||(a&&lL(a)?(UC(this.Y)&&!this.Dg&&(a.fetch=0),VU(this,a)):this.playlist&&VU(this,null),a&&
this.setIsExternalPlaylist(a.external_list),UC(this.Y)&&!this.Dg&&WU(this));a=this.Qo(k,b,d);f&&this.Ye("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+k.Oi.join()).replace(/[;:,]/g,"_"));return a};
g.h.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=rC(a);if(!this.Nx.get(b+"_"+d+"_"+e)){a=new g.UD(this.Y,a);e&&(a.Cc=e);e=b+"_"+a.videoId+"_"+a.Cc;if(d=this.Cb){d=this.Cb.getPlayerType();var f=this.Cb.getVideoData().videoId,k=this.Cb.getVideoData().Cc;d=e===d+"_"+f+"_"+k}d?(g.FP(this.Cb,!0),a.dispose()):(a.md=!0,a=this.Nn(b,a),1===b&&XC(this.Y)||g.FP(a,!0),this.Nx.set(e,a,c||3600))}};
g.h.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Ac;a=a.I.V().showMiniplayerUiWhenMinimized?a.Nd.get("miniplayer"):void 0;a&&(this.Te()?a.load():a.unload());this.Ua.ea("minimized")};
g.h.setInline=function(a){this.visibility.setInline(a)};
g.h.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Ac;a=a.I.V().showInlinePreviewUi?a.Nd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.Oa("onInlinePreviewModeChange"))};
g.h.yu=function(a){var b=this.Y.S("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.ej&&this.Y.S("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.ZE&&b?this.ZE.start():this.mL():this.visibility.yu(a)};
g.h.mL=function(){var a,b=null==(a=this.qa)?void 0:a.Ke();b&&$u(b).catch(function(c){return g.Ov(c)})};
g.h.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.h.pY=function(){"picture-in-picture"===this.qa.Ke().webkitPresentationMode?this.yu(!0):this.yu(!1)};
g.h.togglePictureInPicture=function(){var a=g.gL(this);a&&a.togglePictureInPicture()};
g.h.Qo=function(a,b,c){b=void 0===b?1:b;wx("_start",this.Ib.timerName)||(hx("_start",void 0,this.Ib.timerName),this.Ib.info("srt",0));var d=bV(this,b,a,!1);d?a.dispose():(d=this.Nn(b,a,c),this.S("html5_onesie")&&oU(d)&&g.FP(d),this.ZB.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),IP(this,d));d===this.wb&&(this.Y.Ya=a.oauthToken);if(!oU(d))return!1;if(d===this.wb)return this.Gl(1),ZU(this);xU(d);return!0};
g.h.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&lL(a))if(this.Cq=!0,VU(this,a),(a=g.mL(this.playlist))&&a.isValid())iV(this,a,b);else this.playlist.onReady(function(){YU(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Ks();var d=new g.UD(this.Y,a);!g.xC(this.Y)||this.Y.N||1!==b||d.isAd()||d.Xb||!this.Y.S("embeds_enable_iframe_apis_through_oneplatform")?iV(this,d,b):(CCa(d,a?a:{}).then(function(e){iV(c,e,b)}),d.dispose())}};
g.h.rk=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(zC(this.Y)||g.YC(this.Y))return b=b||{},b.lact=Au(),b.vis=this.Ua.getVisibilityState(),this.Ua.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;xCa(this.Ib);this.Ib.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.h.cuePlaylist=function(a,b,c,d){this.Cq=!0;mNa(this,a,b,c,d)};
g.h.loadPlaylist=function(a,b,c,d){this.Cq=!1;mNa(this,a,b,c,d)};
g.h.Aw=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;UC(this.Y)&&!this.Dg&&WU(this);return!(!this.playlist||!this.playlist.hasNext())};
g.h.lq=ca(3);
g.h.nextVideo=function(a,b){var c=this.wb.getVideoData().suggestions;g.fL(this.Ua)&&c&&0<c.length?(a=c[0],this.rk(a.videoId,b?a.pw:a.sessionData,a.playlistId,b,void 0,a.eL||void 0)):this.Dg?this.Ua.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?aL(this.Ac).nextVideo():this.playlist&&(UC(this.Y)&&!this.Ua.isFullscreen()?fV(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&nL(this.playlist,yCa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.S("html5_player_autonav_logging"),this.Qo(g.mL(this.playlist,
void 0,b,a),1)):this.Cq=!1))};
g.h.previousVideo=function(a){this.Dg?this.Ua.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?aL(this.Ac).JB():this.playlist&&(UC(this.Y)&&!this.Ua.isFullscreen()?fV(this,"yt.www.watch.lists.prev"):(this.playlist.ol(a)&&nL(this.playlist,zCa(this.playlist)),this.playlist.loaded?this.Qo(g.mL(this.playlist),1):this.Cq=!1))};
g.h.playVideoAt=function(a){this.Dg?this.Ua.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Qo(g.mL(this.playlist,a),1):this.Cq=!1,nL(this.playlist,a))};
g.h.getPlaylist=function(){return this.playlist};
g.h.Lw=ca(13);g.h.vW=function(a){this.Ua.Oa("onCueRangeEnter",a.getId())};
g.h.wW=function(a){this.Ua.Oa("onCueRangeExit",a.getId())};
g.h.Rv=function(a,b,c){var d=g.gL(this,b);d&&(d.Rv(a,c),b&&this.getPresentingPlayerType()!==b||PU(this,"cuerangesadded",a))};
g.h.SB=function(a,b){var c=g.gL(this,b);c&&(c.SB(a),b&&this.getPresentingPlayerType()!==b||PU(this,"cuerangesremoved",a))};
g.h.BW=function(){var a=this;this.getPresentingPlayerType();this.xp||(this.xp=Ct(fTa,this.lO,this));wCa(this.Ib,this.Cb.getVideoData(),pNa(this));LU(this)&&this.Y.j&&"embedded"===yE(JU(this))&&this.yN&&.01>Math.random()&&g.As("autoplayTriggered",{intentional:this.YM});this.yN=!1;OCa(this.Ac);this.S("web_player_defer_ad")&&UU(this);this.Ua.Oa("onPlaybackStartExternal");this.Y.S("mweb_client_log_screen_associated");(function(){var c=g.Hv(a.FP||(a.Te()?3:0));if(c&&"UNDEFINED_CSN"!==c){var d={cpn:a.getVideoData().clientPlaybackNonce,
csn:c};if(a.Y.S("web_playback_associated_ve")&&a.getVideoData().Xa){var e=g.Dv(a.getVideoData().Xa);g.Tv(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.S("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.S("web_playback_associated_log_ctt")&&a.getVideoData().X&&(c.cttAuthInfo={token:a.getVideoData().X,videoId:a.getVideoData().videoId});g.As("playbackAssociated",d,c)}else g.Ov(new g.Fs("CSN Missing or undefined during playback association"))})();
var b={};!this.S("web_player_csi_ctt_killswitch")&&this.getVideoData().X&&(b.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});jx("player_att",b);this.getVideoData().botguardData&&(g.WC(this.Y)||"MWEB"===this.Y.deviceParams.c?g.Qr(g.Sr(),function(){$U(a)}):$U(this));
this.aC()};
g.h.PG=function(){this.Ua.ea("internalAbandon");this.S("html5_ad_module_cleanup_killswitch")||eV(this)};
g.h.lO=function(a){a=a.j;!isNaN(a)&&0<a&&this.wb&&this.wb.Ux(a)};
g.h.onApiChange=function(){this.Y.B&&this.Cb?this.Ua.Oa("onApiChange",this.Cb.getPlayerType()):this.Ua.Oa("onApiChange")};
g.h.vX=function(){var a=this.qa;a={volume:g.wh(Math.floor(100*a.getVolume()),0,100),muted:a.qA()};a.muted||aV(this,!1);this.yg=g.gg(a);this.Ua.Oa("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ua.Oa("onMutedAutoplayStarts"))};
g.h.onFullscreenChange=function(){var a=kV(this);this.ij(a?1:0);sNa(this,!!a)};
g.h.ij=function(a){var b=!!a,c=!!this.gt()!==b;this.visibility.ij(a);this.template.ij(b);this.S("html5_media_fullscreen")&&!b&&this.qa&&kV(this)===this.qa.Ke()&&this.qa.uw();this.template.resize();c&&this.Ib.tick("fsc");c&&(this.Ua.ea("fullscreentoggled",b),a=JU(this),b={fullscreen:b,videoId:a.PD||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Oa("onFullscreenChange",b))};
g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.gt=function(){return this.visibility.gt()};
g.h.hY=function(){this.Cb&&(0!==this.gt()&&1!==this.gt()||this.ij(kV(this)?1:0),this.Y.ej&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.qa&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.qa.uw())};
g.h.nX=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ea("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.gL(this,a))2===this.appState?ZU(this):(null!=this.vj&&this.vj.ub&&this.vj.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.gL(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.wb.getVideoData(),b=new g.UD(this.Y,{video_id:a.PD||a.videoId,oauth_token:a.oauthToken});b.Z=g.gg(a.Z);this.cancelPlayback(6);iV(this,b,1);null!=this.vj&&this.vj.stop()};
g.h.cancelPlayback=function(a,b){Bt(this.xp);this.xp=0;var c=g.gL(this,b);c&&(this.Y.S("html5_high_res_logging")&&c.Aa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Cb&&DL(this.Ac,a),1===b&&(c.stopVideo(),eV(this)),c.Wm(),PU(this,"cuerangesremoved",c.xm()),c.Bg.reset(),this.Ru&&c.isGapless()&&(c.Pg(!0),c.setMediaElement(this.qa))))};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.gL(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.ih=function(a){var b=g.gL(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.ih(a):null};
g.h.updatePlaylist=function(){UC(this.Y)?WU(this):g.xC(this.Y)&&XU(this);this.Ua.Oa("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.QP=a;this.XF=b;this.Ua.ea("sizestylechange",a,b);this.template.resize()};
g.h.isWidescreen=function(){return this.XF};
g.h.Te=function(){return this.visibility.Te()};
g.h.isInline=function(){return this.visibility.isInline()};
g.h.It=function(){return this.visibility.It()};
g.h.Et=function(){return this.visibility.Et()};
g.h.ex=function(){return this.QP};
g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return aL(this.Ac).getAdState();if(!this.qe()){var a=EL(this.tb());if(a)return a.getAdState()}return-1};
g.h.gY=function(a){var b=this.template.getVideoContentRect();Bm(this.rN,b)||(this.rN=b,this.Cb&&vU(this.Cb),this.wb&&this.wb!==this.Cb&&vU(this.wb),1===this.gt()&&this.Jx&&sNa(this,!0));this.dG&&g.Dh(this.dG,a)||(this.Ua.ea("appresize",a),this.dG=a)};
g.h.sf=function(){return this.Ua.sf()};
g.h.yY=function(){2===this.getPresentingPlayerType()&&this.td.isManifestless()&&!this.S("web_player_manifestless_ad_signature_expiration_killswitch")?cGa(this.td):(this.Ad&&(XP(this.Ad),eV(this)),QU(this,"signature",void 0,!0))};
g.h.xO=function(){this.Pg();OU(this)};
g.h.BX=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ua.Oa("onPlayerRequestAuthFailed")};
g.h.Cx=function(){this.Ua.Oa("CONNECTION_ISSUE")};
g.h.Ex=function(a){this.Ua.ea("heartbeatparams",a)};
g.h.XB=function(a){this.Ua.Oa("onAutonavChangeRequest",1!==a)};
g.h.yd=function(){return this.qa};
g.h.setBlackout=function(a){this.Y.Tb=a;this.Cb&&(this.Cb.Fr(),this.Y.va&&uNa(this))};
g.h.setAccountLinkState=function(a){var b=g.gL(this);b&&(b.getVideoData().HK=a,b.Fr())};
g.h.updateAccountLinkingConfig=function(a){var b=g.gL(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ua.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.h.DX=function(){var a=g.gL(this);if(a){var b=!this.Ua.bx();(a.IM=b)||a.Jq.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.S("html5_suspend_loader")&&a.Va&&(b?a.Va.resume():DU(a,!0));a.Y.S("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Wb(wH(a.playerState,512)):a.Wb(vH(a.playerState,512)));a=a.dc;a.qoe&&(a=a.qoe,g.YS(a,g.GP(a.j),"stream",[b?"A":"I"]))}};
g.h.onLoadedMetadata=function(){this.Ua.Oa("onLoadedMetadata")};
g.h.onDrmOutputRestricted=function(){this.Ua.Oa("onDrmOutputRestricted")};
g.h.eE=function(){this.S("html5_skip_empty_load")&&(ETa=!0);HTa=this.S("html5_ios_force_seek_to_zero_on_stop");FTa=this.S("html5_ios7_force_play_on_stall");GTa=this.S("html5_ios4_seek_above_zero");kta=this.S("html5_retain_source_buffer_appends_for_debugging");this.S("html5_mediastream_applies_timestamp_offset")&&(sR=!0);this.S("html5_dont_override_default_sample_desc_index")&&(hsa=!0);var a=g.YA(this.Y.experiments,"html5_cobalt_override_quic");a&&jFa(0<a);Error.stackTraceLimit=25;var b=g.YA(this.Y.experiments,
"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
tTa=this.S("html5_live_partial_response_resumable");oz=this.S("html5_onesie_consume_media_slices")};
g.h.lG=function(){this.YM=!0};
g.h.ra=function(){this.Ac.dispose();this.td.dispose();this.Ad&&this.Ad.dispose();this.wb.dispose();this.Pg();g.Af(Wf(this.Qu),this.playlist);Bt(this.xp);this.xp=0;this.OH&&(g.Ar(this.OH),this.OH=void 0);g.G.prototype.ra.call(this)};
g.h.S=function(a){return this.Y.S(a)};
g.h.eC=function(){return this.sy};
g.h.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.h.setScreenLayer=function(a){this.FP=a};
g.h.seekToChapterWithAnimation=function(a){var b,c=null==(b=UK(this.tb()))?void 0:b.Bw(),d;if((b=null==(d=this.getVideoData())?void 0:d.yk)&&c instanceof g.gM&&a<b.length&&0<=a)for(d=g.r(b),b=d.next();!b.done;b=d.next())if(b=b.value,b.index===a){a=1E3*this.getCurrentTime()<b.startTime?1:-1;c.tP(a,b.title);lV(this,b.startTime/1E3);break}};
g.h.downloadVideo=function(a,b){var c=this,d,e,f;return g.B(function(k){if(1==k.j){d=HL(c.Ac);if(!d)return k.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.A(k,d.uH([a],"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=k.u;return k.return(f[0])})};
g.h.pauseVideoDownload=function(a){var b=HL(this.Ac);b&&b.hH(a)};
g.h.resumeVideoDownload=function(a){var b=this,c;return g.B(function(d){return(c=HL(b.Ac))?d.return(c.by(a)):d.return(Promise.reject())})};
g.h.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=HL(this.Ac);return b?b.Wx(a):Promise.reject()};
g.h.deleteVideos=function(a){var b=HL(this.Ac);return b?b.uH(a,"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.h.deleteAllVideos=function(){var a=HL(this.Ac);return a?a.deleteAll():Promise.reject()};
g.h.isOrchestrationLeader=function(){var a=HL(this.Ac);return a?a.isOrchestrationLeader():!1};
g.h.getStatsForNerds=function(){var a=this.Ua,b=g.gL(this),c=a.getVideoData(),d=a.yd(),e=d.Ke(),f=b.Qw(),k=b.cI,l=8*uQ(k,"bandwidth")/1024,m=uQ(k,"networkactivity")/1024,n=uQ(k,"bufferhealth");if(b.Yd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Yd.j.Af()+"/"+Jx(b.kt());p+="/"+b.Yd.Af()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),v=mA(d.jg(),",",3),x="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.td){if(b.td.Qn){var y=
"D,";break a}y=b.td.Hi;if(0<y){y="AD"+y+", ";break a}}y=""}y&&(x+=y)}if(c.fetchType){switch(c.fetchType){case "onesie":y="o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+q+" t:"+t+" b:"+v+" ";d.uv()&&(x+="S");d.Pl()&&(x+="P");d.Uf()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Hw())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.Mv;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.VC();q=g.dL(a).mV;t=c.C&&!c.C.j?"display:none":"";if((v=c.clientPlaybackNonce)&&16==v.length){y=
0;for(var z="",E=0;10>E;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(v.charAt(E)),4==E%5){for(var I="",K=0;6>K;K++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;z+=I}v=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else v="";l={video_id_and_cpn:c.videoId+" / "+v,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),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:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=dxa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Pd.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=
e.videoWidth+"x"+e.videoHeight;if(a=c.u)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.zU(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=jGa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+jGa(c.J),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.hf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(aE(c)?" Manifestless":"");else if(e){a=uQ(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=aE(c)?"Manifestless, ":"";c.hh&&(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=tQ(k,"bandwidth");l.network_activity_samples=tQ(k,"networkactivity");l.live_latency_samples=tQ(k,
"livelatency");l.buffer_health_samples=tQ(k,"bufferhealth");b=g.EE(c);if(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";gE(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220320_00_RC00",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.Vb&&this.Vb.postId?(a=this.Y.getVideoUrl(a),a=qj(a,"v"),a.replace("/watch","/clip/"+this.Vb.postId)):this.Y.getVideoUrl(a,b,c,d,e)};
var T0={};g.Ja("yt.player.Application.create",g.MU.create,void 0);g.Ja("yt.player.Application.createAlternate",g.MU.create,void 0);Npa(Kv(),{Om:[{nx:/Unable to load player module/,weight:20},{nx:/Failed to fetch/,weight:500},{nx:/XHR API fetch failed/,weight:10},{nx:/JSON parsing failed after XHR fetch/,weight:10},{nx:/Retrying OnePlatform request/,weight:10}]});var gUa=g.Ka("ytcsi.tick");gUa&&gUa("pe");var zNa=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"]]),xNa=new Map([["normal",{ir:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{ir:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{ir:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{ir:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{ir:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{ir:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{ir:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Ar:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var hUa={wca:"replaceUrlMacros",Zaa:"onAboutThisAdPopupClosed",Y5:"executeCommand"};xV.prototype.bl=function(){return"adLifecycleCommand"};
xV.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.mi(function(){b.controller.Tn()});
break;case "END_LINEAR_AD_PLACEMENT":g.mi(function(){b.controller.Xk()});
break;case "FILL_ABOVE_FEED_SLOT":g.mi(function(){a.elementId&&b.controller.bA(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.mi(function(){b.controller.Lz()})}};
xV.prototype.Em=function(a){this.handle(a)};yV.prototype.bl=function(){return"clearCueRangesCommand"};
yV.prototype.handle=function(){var a=this.zE();g.mi(function(){a.Wf(Array.from(a.Tp))})};
yV.prototype.Em=function(a){this.handle(a)};zV.prototype.bl=function(){return"muteAdEndpoint"};
zV.prototype.handle=function(a){ENa(this,a)};
zV.prototype.Em=function(a,b){ENa(this,a,b)};AV.prototype.bl=function(){return"openPopupAction"};
AV.prototype.handle=function(){};
AV.prototype.Em=function(a){this.handle(a)};BV.prototype.bl=function(){return"pingingEndpoint"};
BV.prototype.handle=function(){};
BV.prototype.Em=function(a){this.handle(a)};CV.prototype.bl=function(){return"urlEndpoint"};
CV.prototype.handle=function(a,b){b=Object.assign({},b);if(DW(this.mZ,"h5_enable_adcpn_macro_substitution_for_click_pings")){var c=mw(this.dk,2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.ip(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content",
a.browserConversionApiData.originTrialToken),document.head.appendChild(d);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.zJ(b,void 0,void 0,a)};
CV.prototype.Em=function(){T("Trying to handle UrlEndpoint with no macro in controlflow")};DV.prototype.bl=function(){return"adPingingEndpoint"};
DV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Up.send(a,b,c)};
DV.prototype.Em=function(a,b){APa(this.Ta.get(),a,b,void 0)};EV.prototype.bl=function(){return"changeEngagementPanelVisibilityAction"};
EV.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
EV.prototype.Em=function(a){this.handle(a)};FV.prototype.bl=function(){return"loggingUrls"};
FV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Yh.send(d.baseUrl,b,c,d.headers)};
FV.prototype.Em=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,APa(this.Ta.get(),c.baseUrl,b,c.headers)};g.w(GNa,g.G);var WNa=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"]]);g.w(GV,g.G);g.h=GV.prototype;g.h.pF=function(a,b){return this.j.pF(a,b)};
g.h.Wh=function(a,b){GW(this.Yb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Vd),d=c.next();!d.done;d=c.next())d.value.Wh(a,b)};
g.h.uf=function(a){if(KV(this.j,a)){eH(this.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.uf(a);for(var b=g.r(this.Vd),c=b.next();!c.done;c=b.next())c.value.uf(a);JNa(this,a)}};
g.h.vf=function(a){if(KV(this.j,a)){eH(this.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.vf(a);for(var b=g.r(this.Vd),c=b.next();!c.done;c=b.next())c.value.vf(a);KV(this.j,a)&&LV(this.j,a).D&&IV(this,a,!1)}};
g.h.uB=function(a){eH(this.Yb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);KV(this.j,a)&&(this.j.uB(a),IV(this,a,!1))};
g.h.Nc=function(a,b){if(KV(this.j,a)){MV(this.Yb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Vd),d=c.next();!d.done;d=c.next())d.value.Nc(a,b)}};
g.h.Zc=function(a,b,c){if(KV(this.j,a)){MV(this.Yb,yNa(c),a,b);this.j.Zc(a,b);for(var d=g.r(this.Vd),e=d.next();!e.done;e=d.next())e.value.Zc(a,b,c);(c=$V(this.j,a))&&b.layoutId===c.layoutId&&TNa(this,a,!1)}};
g.h.Hf=function(a,b,c){T(c,a,b,void 0,c.Vp);IV(this,a,!0)};
g.h.ra=function(){var a=VNa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())IV(this,b.value,!1);g.G.prototype.ra.call(this)};UNa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(NV,ab);g.w(XV,ab);g.w(cW,g.G);g.h=cW.prototype;g.h.pF=function(a,b){b=ZV(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.h.yh=function(a){a=LV(this,a);"not_scheduled"!==a.j&&aW(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.h.xw=function(a){a=LV(this,a);a.C="fill_requested";a.K.xw()};
g.h.uf=function(a){a=LV(this,a);"enter_requested"!==a.j&&aW(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.h.uB=function(a){LV(this,a).C="fill_canceled"};
g.h.vf=function(a){a=LV(this,a);"exit_requested"!==a.j&&aW(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.h.Zc=function(a,b){a=LV(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&aW(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(gW,g.G);gW.prototype.B=function(){return this.u};g.w(hW,g.G);hW.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};iW.prototype.executeCommand=function(a,b){fI(this.j(),a,b)};
iW.prototype.Ld=function(a,b){Eza(this.j(),a,b)};g.w(FW,g.G);g.w(IW,g.G);IW.prototype.onCueRangeEnter=function(){};
IW.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.u.get().removeCueRange(a),lw(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=tw(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Pb:c.Pb?nPa(c.slotId,d,c.Pb):void 0,qc:oPa(c.slotId,d,c.qc),vc:oPa(c.slotId,d,c.vc)})]},c.slotId))};
IW.prototype.uh=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.j.clear()};
IW.prototype.Xj=function(){};g.w(JW,g.G);g.h=JW.prototype;g.h.yh=function(){};
g.h.Yi=function(a){var b=this;g.Qr(g.Sr(),function(){var c=b.j.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.h.uf=function(){};
g.h.Xi=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.h.Vi=function(a,b){this.di.has(a)&&this.di.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.h.Nc=function(a,b){this.di.set(a,b)};
g.h.Zc=function(a){this.di.delete(a)};
g.h.Wh=function(){};TW.prototype.clone=function(a){var b=this;return new TW(function(){return b.triggerId},a)};UW.prototype.clone=function(a){var b=this;return new UW(function(){return b.triggerId},a)};VW.prototype.clone=function(a){var b=this;return new VW(function(){return b.triggerId},a)};WW.prototype.clone=function(a){var b=this;return new WW(function(){return b.triggerId},a)};XW.prototype.clone=function(a){var b=this;return new XW(function(){return b.triggerId},a)};g.w($W,g.G);$W.prototype.logEvent=function(a){GW(this,a)};g.w(aX,$W);bX.prototype.clear=function(){this.j.clear()};g.w(cX,g.G);g.h=cX.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.uh=function(a,b,c,d,e,f,k){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().S("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().uh(a,b,c,d,e,f,k);this.C.get().uh(a,b,c,d,e,f,k);var l;null==(l=this.u)||l.get().uh(a,b,c,d,e,f,k);this.B.uh(a,b,c,d,e,f,k);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.uh(a,b,c,d,e,f,k)}};
g.h.PG=function(){this.j&&this.Xj(this.j)};
g.h.Xj=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Xj(a)};g.w(dX,g.G);dX.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.j.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new vPa(a,b,c,d,f),this.j.set(a.id,{Dd:a,listener:e,qk:k}),this.I.Rd([a],k))};
dX.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.I.Wf([b.Dd],b.qk),this.j.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
dX.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
dX.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(vPa,g.Ew);eX.prototype.aj=function(a){this.I.aj(a)};
eX.prototype.Oa=function(a){this.I.Oa.apply(this.I,[a].concat(g.u(g.Da.apply(1,arguments))))};g.h=iX.prototype;g.h.nf=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.I.V().S("html5_dai_enable_active_view_creating_completed_adblock"),jia(a,b),{};b=Fxa(b);if(null===b||this.I.V().S("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Lc();c=c&&(this.I.V().S("enable_server_stitched_dai")||2===c.getPlayerType())&&uF(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return hp(b,a,c)};
g.h.yx=function(a){var b;null==(b=this.j.get(a.queryId))||b.yx()};
g.h.xx=function(a){var b;null==(b=this.j.get(a.queryId))||b.xx()};
g.h.zx=function(a){var b;null==(b=this.j.get(a.queryId))||b.zx()};
g.h.vx=function(a){var b;null==(b=this.j.get(a.queryId))||b.vx()};
g.h.wx=function(a){var b;null==(b=this.j.get(a.queryId))||b.wx()};g.w(mX,hF);mX.prototype.j=function(){return this.C()};
mX.prototype.u=function(){return this.D()};
mX.prototype.S=function(a){return this.B(a)};nX.prototype.ih=function(){var a=this.I.Lc();return a&&(a=a.ih(1))?a:null};
nX.prototype.Pi=function(a,b){"string"===typeof b?this.I.getVideoData(1).xH(a,b):this.I.getVideoData(1).Aa(a,b)};g.w(sX,g.G);g.h=sX.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.uh=function(){this.YD.clear();this.fG=null;this.I.V().S("html5_clear_timeline_storage_killswitch")||this.j.get().clear()};
g.h.Xj=function(){};
g.h.XY=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Pi("ads_ssm_vdc_s",{pt:c,dvt:a});(gX(this.La.get())||this.La.get().I.V().S("html5_debug_client_stitched"))&&"dataloaded"!==a||GPa(this,b,c)};
g.h.tY=function(a,b){void 0!==a&&(this.fG=a,void 0===b?T("Expected ad video start time on SS video changed"):this.YD.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).Aa("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?GPa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.h.ra=function(){this.listeners.length=0;this.hq=null;g.G.prototype.ra.call(this)};
g.h.Pi=function(a,b){this.I.getVideoData(1).Aa(a,b)};g.w(tX,g.G);g.h=tX.prototype;g.h.uh=function(){var a=this;this.jq=Kg(function(){a.I.isDisposed()||a.I.Je("ad",1)})};
g.h.Xj=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.playVideo=function(){this.I.playVideo()};
g.h.pauseVideo=function(){this.I.pauseVideo()};
g.h.resumeVideo=function(a){this.Im(a)&&this.I.playVideo()};
g.h.Im=function(a){return 2===this.I.getPlayerState(a)};
g.h.getCurrentTimeSec=function(a,b){var c=this.j.get().fG;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):uX(this,c)};
g.h.getVolume=function(){return this.I.getVolume()};
g.h.isMuted=function(){return this.I.isMuted()};
g.h.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.h.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.h.isFullscreen=function(){return this.I.isFullscreen()};
g.h.isAtLiveHead=function(){return this.I.isAtLiveHead()};
g.h.Bu=function(a){this.I.Bu(a)};
g.h.WX=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Uh(a)};
g.h.MX=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wi(a,this.getPresentingPlayerType())};
g.h.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.h.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.h.rg=function(){for(var a=this.I.Te(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.rg(a)};
g.h.yb=function(){for(var a=this.I.eb().Gg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Si(a)};
g.h.Vj=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vj(a)};g.w(JPa,g.G);xX.prototype.addListener=function(a){this.listeners.add(a)};
xX.prototype.removeListener=function(a){this.listeners.delete(a)};zX.prototype.xw=function(){var a=this;MPa(this.j,function(){var b=X(a.slot.Fa,"metadata_type_ad_break_request_data");return a.u.get().fetch({DQ:b.getAdBreakUrl,IL:new g.Ew(b.pP,b.oP),ew:X(a.slot.Fa,"metadata_type_cue_point")})},function(){OPa(a)},function(b){b=b.fm;
2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||OPa(a)})};
zX.prototype.oE=function(){NPa(this.j)};AX.prototype.xw=function(){var a=this;MPa(this.j,function(){var b=X(a.slot.Fa,"metadata_type_ad_break_request_data");return a.u.get().fetch({DQ:b.getAdBreakUrl,IL:new g.Ew(b.pP,b.oP)})})};
AX.prototype.oE=function(){NPa(this.j)};BX.prototype.xw=function(){KNa(this.callback,this.slot,X(this.slot.Fa,"metadata_type_fulfilled_layout"))};
BX.prototype.oE=function(){JV(this.callback,this.slot,new XV("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};fY.prototype.Ae=function(a,b){return WX(b,{Wd:["metadata_type_fulfilled_layout"]})?new BX(a,b):this.C(a,b)};g.w(hY,fY);hY.prototype.C=function(a,b){if(WX(b,{Wd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zX(a,b,this.j,this.B,this.u,this.D);if(WX(b,{Wd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new AX(a,b,this.j,this.B,this.u);throw new XV("Unsupported slot with type: "+b.slotType+" and client metadata: "+qV(b.Fa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(iY,fY);iY.prototype.C=function(a,b){throw new XV("Unsupported slot with type: "+b.slotType+" and client metadata: "+qV(b.Fa)+" in DefaultFulfillmentAdapterFactory.");};g.h=PPa.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Hf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Fa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Nc(this.slot,a),sqa(this.j,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Zc(this.slot,a,b)};kY.prototype.Ae=function(a,b,c,d){if(jY(d,{Wd:["metadata_type_ad_break_response_data"],Ve:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new PPa(a,c,d,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};lY.prototype.nf=function(a){var b=this.D.get(a)||[];QPa(this,a,b);this.C.add(a)};g.h=RPa.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Nc(this.slot,a),oY(this.u,"impression"),EY(this.j,a.layoutId))};
g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Zc(this.slot,a,b)};rY.prototype.Ae=function(a,b,c,d){if(jY(d,SPa()))return new RPa(a,c,d,this.Ta,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(sY,g.ev);g.h=sY.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.u.get().addListener(this)};
g.h.release=function(){this.u.get().removeListener(this);this.dispose()};
g.h.BF=function(){};
g.h.zF=function(){};
g.h.yF=function(){};
g.h.AA=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),sQa(a,this.j,1))};
g.h.mf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Hf(this.slot,a,new NV("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();sQa(c,this.j,3);this.j=[];this.callback.Zc(this.slot,a,b)}};
g.h.ra=function(){this.u.get().removeListener(this);g.ev.prototype.ra.call(this)};g.w(TPa,NE);g.w(vY,sY);g.h=vY.prototype;g.h.Cf=function(a,b){uY("action-companion",a,this.J.get().di,this.Ta.get(),this.B,this.C,this.Fd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Fd(),this.Kb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new TPa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Nc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ta.get().ih():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Zc=function(){};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.ra=function(){this.Ge().Vd.delete(this);sY.prototype.ra.call(this)};g.w(wY,sY);wY.prototype.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Fa,"metadata_type_ad_action_interstitial_renderer"),b=nY(this.B);this.j.push(new EF(a,b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0))};
wY.prototype.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a)};
wY.prototype.Cf=function(){};
wY.prototype.ra=function(){sY.prototype.ra.call(this)};g.w(xY,sY);g.h=xY.prototype;g.h.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Fa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.zc},c=!X(this.layout.Fa,"metadata_type_player_bytes_callback").OA;this.j.push(new kJ(a,this.layout.layoutId,X(this.layout.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.h.Xo=function(){this.B||this.Ha.get().resumeVideo(2)};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a);this.C.Cs=this};
g.h.mf=function(a,b){sY.prototype.mf.call(this,a,b);r_(this.C,this)};
g.h.Cf=function(a){if(fPa(this.D.get(),this.J))switch(a){case "visit-advertiser":this.Ta.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ha.get().Im(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();X(this.layout.Fa,"metadata_type_player_bytes_callback").VB();
break;case "skip-button":a=X(this.layout.Fa,"metadata_type_player_bytes_callback"),a.OA&&a.Hx(this.Fd(),this.layout)}};
g.h.ra=function(){sY.prototype.ra.call(this)};zY.prototype.Ae=function(a,b,c,d){if(a=yY(a,c,d,this.u,this.Ha,this.Ta,this.B,this.j))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(AY,g.G);g.h=AY.prototype;g.h.init=function(){var a=X(this.Kb().Fa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ko()};
g.h.release=function(){var a=X(this.Kb().Fa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.jp()};
g.h.startRendering=function(a){a.layoutId!==this.Kb().layoutId?this.callback.Hf(this.Fd(),a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Kb().layoutId+("and LayoutType: "+this.Kb().layoutType))):(this.Ha.get().addListener(this),HV(this.Ge(),this),this.Ha.get().I.cueVideoByPlayerVars({videoId:"empty_video"},2),sya(this.wd.get()),this.hn(a))};
g.h.mf=function(a,b){this.KF=!0;this.vp(a,b);this.Ha.get().I.Vm();this.Xd.get().I.cueVideoByPlayerVars({},2);a=jX(this.Ha.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.KF&&this.EN()};
g.h.Zc=function(a,b){b.layoutId===this.Kb().layoutId&&(this.KF=!1,this.Ge().Vd.delete(this))};
g.h.Wi=function(a,b){if(a.state.isError()){var c,d;this.Hf(null==(c=a.state.getData())?void 0:c.errorCode,new NV("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.FO(a)};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.Vj=function(){};g.w(BY,AY);g.h=BY.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.Ko=function(){if(1>=this.u.length)throw new XV("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),SV(this.B,this.slot,b.Kb()),TV(this.B,this.slot,b.Kb())};
g.h.jp=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,fH(this.B,this.slot,b.Kb()),b.release()};
g.h.Uq=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Uq()};
g.h.qr=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.qr()};
g.h.Hx=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Fd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):DY(this,c.Fd(),c.Kb(),"skipped")};
g.h.hn=function(){-1===this.j&&XPa(this)};
g.h.FY=function(a,b){UV(this.B,a,b)};
g.h.vp=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.mf(a.Kb(),b),this.D=function(){c.callback.Zc(c.slot,c.layout,b)}):this.callback.Zc(this.slot,this.layout,b)};
g.h.Nc=function(a,b){var c=this.u[this.j];c&&c.Nc(a,b)};
g.h.Zc=function(a,b,c){AY.prototype.Zc.call(this,a,b,c);var d=this.u[this.j];d&&d.Zc(a,b,c)};
g.h.EN=function(){var a=this.u[this.j];a&&a.zA()};
g.h.Uh=function(a){var b=this.u[this.j];b&&b.Uh(a)};
g.h.FO=function(a){var b=this.u[this.j];b&&b.Wi(a)};
g.h.Hf=function(a,b){-1===this.j&&(this.callback.Nc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.sx(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Kb().layoutId})};
g.h.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.h.rg=function(a){var b=this.u[this.j];b&&b.rg(a)};
g.h.Si=function(a){var b=this.u[this.j];b&&b.Si(a)};
g.h.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.h.HY=function(a,b,c){DY(this,a,b,c)};
g.h.GY=function(a,b){DY(this,a,b,"error")};g.w(IY,g.G);g.h=IY.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){var a=X(this.layout.Fa,"metadata_type_video_length_seconds"),b=X(this.layout.Fa,"metadata_type_active_view_traffic_type");kX(this.ma.get(),this.layout.layoutId,b,a,this);qX(this.Ta.get(),this);this.Ko()};
g.h.release=function(){lX(this.ma.get(),this.layout.layoutId);rX(this.Ta.get(),this);this.jp()};
g.h.Uq=function(){};
g.h.qr=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",jxa(this.Ja.get(),1)?DW(this.La.get(),"html5_fix_csi_event_order_in_pacf")?(this.J(-1),this.hn(a),this.Is(!1)):(this.Is(!1),this.J(-1),this.hn(a)):this.sx("ui_unstable",new NV("Failed to render media layout because ad ui unstable.")))};
g.h.Nc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";oY(this.j,"impression");oY(this.j,"start");if(this.Ha.get().isMuted()){oY(this.j,"mute");var c;a=(null==(c=HY(this))?void 0:c.muteCommands)||[];this.B.get().Ld(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.j.nf("fullscreen");var d;c=(null==(d=HY(this))?void 0:d.fullscreenCommands)||[];this.B.get().Ld(c,this.layout.layoutId)}this.N=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();JY(this,"unmuted_impression");
JY(this,"unmuted_start");this.Ha.get().isFullscreen()&&LY(this,"unmuted_fullscreen");vya(this.wd.get());this.J(1);this.sO();var e;d=(null==(e=HY(this))?void 0:e.impressionCommands)||[];this.B.get().Ld(d,this.layout.layoutId)}};
g.h.sx=function(a,b,c){this.Ia={BC:3,Ky:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Fa,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Fd(),this.Kb(),{playerType:String(c)});oY(this.j,"error");JY(this,"unmuted_error");var d;a=(null==(d=HY(this))?void 0:d.errorCommands)||[];this.B.get().Ld(a,this.layout.layoutId);this.callback.Hf(this.slot,this.layout,b)};
g.h.zA=function(){this.K()};
g.h.AM=function(){if("rendering"===this.u){DW(this.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?oY(this.j,"pause"):this.j.nf("pause");LY(this,"unmuted_pause");var a,b=(null==(a=HY(this))?void 0:a.pauseCommands)||[];this.B.get().Ld(b,this.layout.layoutId);this.J(2)}};
g.h.BM=function(){if("rendering"===this.u){DW(this.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?oY(this.j,"resume"):this.j.nf("resume");LY(this,"unmuted_resume");var a,b=(null==(a=HY(this))?void 0:a.resumeCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new NV("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.vp(a,b))};
g.h.Zc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.X=void 0,(a="normal"!==c||this.position+1===this.Ea)&&this.Is(a),this.tO(c),this.J(0),c){case "abandoned":if(qY(this.j,"impression")){oY(this.j,"abandon");JY(this,"unmuted_abandon");var d,e=(null==(d=HY(this))?void 0:d.abandonCommands)||[];this.B.get().Ld(e,this.layout.layoutId)}break;case "normal":oY(this.j,"complete");JY(this,"unmuted_complete");d=(null==(e=HY(this))?void 0:e.completeCommands)||[];this.B.get().Ld(d,
this.layout.layoutId);break;case "skipped":oY(this.j,"skip");var f;d=(null==(f=HY(this))?void 0:f.skipCommands)||[];this.B.get().Ld(d,this.layout.layoutId)}};
g.h.Iw=function(){return this.layout.layoutId};
g.h.aF=function(){return this.Ia};
g.h.Wi=function(a){if("not_rendering"!==this.u){this.ya||(a=new g.xF(a.state,new g.tH),this.ya=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&FY(a)&&this.xa():b?g.zF(a,2)?this.PJ():(FY(a)?this.J(1):g.zF(a,4)&&!g.zF(a,2)&&this.AM(),0>yF(a,4)&&!(0>yF(a,2))&&this.BM()):this.zA()}};
g.h.yx=function(){if("rendering"===this.u){oY(this.j,"active_view_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.xx=function(){if("rendering"===this.u){oY(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=HY(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.zx=function(){if("rendering"===this.u){oY(this.j,"active_view_viewable");var a,b=(null==(a=HY(this))?void 0:a.activeViewViewableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.vx=function(){if("rendering"===this.u){oY(this.j,"audio_audible");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.wx=function(){if("rendering"===this.u){oY(this.j,"audio_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Is=function(a){this.wd.get().Is(X(this.layout.Fa,"metadata_type_ad_placement_config").kind,a,this.position,this.Ea,!1)};
g.h.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.nf("fullscreen");LY(this,"unmuted_fullscreen");var b,c=(null==(b=HY(this))?void 0:b.fullscreenCommands)||[];this.B.get().Ld(c,this.layout.layoutId)}else this.j.nf("end_fullscreen"),LY(this,"unmuted_end_fullscreen"),b=(null==(c=HY(this))?void 0:c.endFullscreenCommands)||[],this.B.get().Ld(b,this.layout.layoutId)};
g.h.onVolumeChange=function(){if("rendering"===this.u)if(this.Ha.get().isMuted()){oY(this.j,"mute");JY(this,"unmuted_mute");var a,b=(null==(a=HY(this))?void 0:a.muteCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}else oY(this.j,"unmute"),JY(this,"unmuted_unmute"),a=(null==(b=HY(this))?void 0:b.unmuteCommands)||[],this.B.get().Ld(a,this.layout.layoutId)};
g.h.rg=function(){};
g.h.Si=function(){};
g.h.Vj=function(){};g.w(NY,IY);g.h=NY.prototype;g.h.Ko=function(){};
g.h.jp=function(){var a=this.Ta.get();a.jC===this&&(a.jC=null);hX(this.La.get())?this.D.stop():this.timer.stop()};
g.h.hn=function(){this.Ta.get().jC=this;WG();this.xa()};
g.h.sO=function(){bQa(this)};
g.h.PJ=function(){};
g.h.Uq=function(){hX(this.La.get())?this.D.stop():this.timer.stop();IY.prototype.AM.call(this)};
g.h.qr=function(){bQa(this);IY.prototype.BM.call(this)};
g.h.zm=function(){return X(this.Kb().Fa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.h.vp=function(){hX(this.La.get())?this.D.stop():this.timer.stop()};
g.h.Qb=function(){var a=Date.now(),b=a-this.Z;this.Z=a;this.C+=b;this.C>=this.zm()?(this.C=this.zm(),KY(this,this.C/1E3,!0),MY(this,this.C),this.K()):(KY(this,this.C/1E3),MY(this,this.C))};
g.h.tO=function(){};
g.h.Uh=function(){};g.w(OY,IY);g.h=OY.prototype;g.h.Ko=function(){X(this.Kb().Fa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Kb().Fa,"metadata_type_shrunken_player_bytes_config")};
g.h.jp=function(){X(this.Kb().Fa,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.Z.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
g.h.hn=function(a){var b=X(a.Fa,"metadata_type_ad_video_id"),c=X(a.Fa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Sa.get().I.V().Z.add(b,{Yv:c});(b=X(a.Fa,"metadata_type_sodar_extension_data"))&&KPa(this.Qa.get(),b);IPa(this.Ha.get(),!1);b=this.Xd.get();a=X(a.Fa,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Xd.get().I.playVideo(2)};
g.h.sO=function(){this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.Z.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=mw(this.va.get(),2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Qc.get().Oa("onAdStart",this.adCpn)};
g.h.PJ=function(){this.K()};
g.h.zm=function(){var a;return null==(a=mw(this.va.get(),2))?void 0:a.playbackDurationMs};
g.h.VB=function(){this.j.nf("clickthrough")};
g.h.vp=function(){this.D.stop();IPa(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().Bu(!1)};
g.h.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Fd(),this.Kb(),{cueRangeId:a}):(this.Z.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Fa,"metadata_type_video_length_seconds"),KY(this,a,!0),oY(this.j,"complete"))};
g.h.tO=function(a){"abandoned"!==a&&this.Qc.get().Oa("onAdComplete");this.Qc.get().Oa("onAdEnd",this.adCpn)};
g.h.onCueRangeExit=function(){};
g.h.Uh=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().Bu(!0),KY(this,a))};g.w(PY,AY);g.h=PY.prototype;g.h.Fd=function(){return this.j.Fd()};
g.h.Kb=function(){return this.j.Kb()};
g.h.Ko=function(){this.j.init()};
g.h.jp=function(){this.j.release()};
g.h.Uq=function(){this.j.Uq()};
g.h.qr=function(){this.j.qr()};
g.h.Hx=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Fd(),this.Kb(),{requestingSlot:a,requestingLayout:b})};
g.h.hn=function(a){this.j.startRendering(a)};
g.h.vp=function(a,b){this.j.mf(a,b)};
g.h.Nc=function(a,b){this.j.Nc(a,b)};
g.h.Zc=function(a,b,c){AY.prototype.Zc.call(this,a,b,c);this.j.Zc(a,b,c);b.layoutId===this.Kb().layoutId&&oH(this.wd.get())};
g.h.EN=function(){this.j.zA()};
g.h.Uh=function(a){this.j.Uh(a)};
g.h.FO=function(a){this.j.Wi(a)};
g.h.Hf=function(a,b,c){this.j.sx(a,b,c)};
g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.h.rg=function(a){this.j.rg(a)};
g.h.Si=function(a){this.j.Si(a)};
g.h.onVolumeChange=function(){this.j.onVolumeChange()};QY.prototype.Ae=function(a,b,c,d){if(a=eQa(a,b,c,d,this.Ge,this.J,this.Ta,this.D,this.N,this.Xd,this.K,this.Ha,this.B,this.wd,this.Qc,this.j,this.u,this.C,this.La))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(RY,g.G);g.h=RY.prototype;g.h.vO=function(a){if(this.j)fQa(this,this.j,a);else{var b;null==(b=this.B)||b.get().ep(a.identifier)}};
g.h.mO=function(){};
g.h.uh=function(a){this.j&&this.j.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.h.Xj=function(a){this.j&&this.j.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.h.ra=function(){g.G.prototype.ra.call(this);this.j=null};g.w(SY,g.G);g.h=SY.prototype;g.h.Nc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&KF(b,this.N)){var d=mw(this.C.get(),2),e=this.J(b,d);e?lw(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[qPa(c.u.get(),e.contentCpn,e.Iu,function(k){return c.K(k.slotId,"core",e,vV(c.j.get(),k))},e.RM)];
e.instreamAdPlayerUnderlayRenderer&&xPa(c.La.get())&&f.push(gQa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.uf=function(){};
g.h.Xi=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.Zc=function(){};var QZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=kQa.prototype;g.h.init=function(){};
g.h.Fd=function(){return this.slot};
g.h.Xz=function(){this.callback.uf(this.slot)};
g.h.Yz=function(){this.callback.vf(this.slot)};
g.h.release=function(){};UY.prototype.Ae=function(a,b){return new kQa(a,b)};g.h=lQa.prototype;g.h.init=function(){};
g.h.Fd=function(){return this.slot};
g.h.Xz=function(){vX(this.Ha.get(),"ad-showing");this.callback.uf(this.slot)};
g.h.Yz=function(){this.callback.vf(this.slot);wX(this.Ha.get(),"ad-showing")};
g.h.release=function(){};g.h=mQa.prototype;g.h.init=function(){};
g.h.Fd=function(){return this.slot};
g.h.Xz=function(){vX(this.Ha.get(),"ad-showing");vX(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.uf(this.slot)};
g.h.Yz=function(){wX(this.Ha.get(),"ad-showing");wX(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().I.seekTo(a,void 0,void 0,1);this.callback.vf(this.slot)};
g.h.release=function(){};g.h=nQa.prototype;g.h.init=function(){};
g.h.Fd=function(){return this.slot};
g.h.Xz=function(){vX(this.Ha.get(),"ad-showing");vX(this.Ha.get(),"ad-interrupting");this.callback.uf(this.slot)};
g.h.Yz=function(){this.Ha.get().jq();wX(this.Ha.get(),"ad-showing");wX(this.Ha.get(),"ad-interrupting");this.callback.vf(this.slot)};
g.h.release=function(){this.Ha.get().jq()};VY.prototype.Ae=function(a,b){if(ow(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new lQa(a,b,this.Ha);if(b.Pb instanceof HW&&ow(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new mQa(a,b,this.Ha);if(ow(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new nQa(a,b,this.Ha);throw new XV("Unsupported slot with type "+b.slotType+" and client metadata: "+(qV(b.Fa)+" in PlayerBytesSlotAdapterFactory."));};g.w(XY,g.G);XY.prototype.j=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof qW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Qe===a&&b.push(d)}b.length?VV(this.nD(),b):T("Mute requested but no registered triggers can be activated.")};g.w(YY,XY);g.h=YY.prototype;g.h.Cf=function(a,b){if(b)if("survey-submit"===a)oQa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof qW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Qe===b&&a.push(d)}a.length&&VV(this.nD(),a)}else"survey-single-select-answer-button"===a&&oQa(this,b)};
g.h.BF=function(a){XY.prototype.j.call(this,a)};
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof rW||b instanceof qW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.rj=function(a){this.Mb.delete(a.triggerId)};
g.h.zF=function(){};
g.h.yF=function(){};
g.h.AA=function(){};g.w(ZY,g.G);g.h=ZY.prototype;
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof TW||b instanceof UW||b instanceof VW||b instanceof WW||b instanceof XW||b instanceof LW||b instanceof QW||b instanceof pW||b instanceof yW||b instanceof KW||b instanceof PW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new WY(a,b,c,d);this.Mb.set(b.triggerId,a);b instanceof XW&&this.D.has(b.Vg)&&
VV(this.j(),[a]);b instanceof TW&&this.B.has(b.Vg)&&VV(this.j(),[a]);b instanceof QW&&this.u.has(b.Qe)&&VV(this.j(),[a])};
g.h.rj=function(a){this.Mb.delete(a.triggerId)};
g.h.yh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof XW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&VV(this.j(),b)};
g.h.Yi=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Mb.values()),c=b.next();!c.done;c=b.next());0<a.length&&VV(this.j(),a)};
g.h.Xi=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof LW&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&VV(this.j(),b)};
g.h.uf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&VV(this.j(),b)};
g.h.vf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof UW)a.slotId===d.trigger.Vg&&b.push(d);else if(d.trigger instanceof PW){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Qe)&&b.push(d)}0<b.length&&VV(this.j(),b)};
g.h.Zj=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&VV(this.j(),b)};
g.h.bk=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&VV(this.j(),b)};
g.h.Ui=function(a,b){this.J.add(b.layoutId)};
g.h.Vi=function(a,b){this.J.delete(b.layoutId)};
g.h.Nc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof QW)b.layoutId===e.trigger.Qe&&c.push(e);else if(e.trigger instanceof KW){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof PW&&(f=e.trigger,b.layoutId===f.Qe&&this.C.has(f.slotId)&&c.push(e));0<c.length&&VV(this.j(),c)};
g.h.Zc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof pW&&b.layoutId===e.trigger.Qe&&a.push(e),e.trigger instanceof yW){var f=e.trigger;b.layoutId===f.Qe&&c===f.j&&a.push(e)}0<a.length&&VV(this.j(),a)};
g.h.Wh=function(){};
g.h.uh=function(){this.C.clear()};
g.h.Xj=function(){};g.w($Y,g.G);$Y.prototype.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof pw||b instanceof tW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
$Y.prototype.rj=function(a){this.Mb.delete(a.triggerId)};
$Y.prototype.uh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],k=g.r(this.Mb.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof pw&&l.trigger.yp===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(pQa(this.Mb,a,!1,c)));b.length&&VV(this.j(),b)};
$Y.prototype.Xj=function(a){var b=[];b.push.apply(b,g.u(pQa(this.Mb,a,!0,!1)));b.length&&VV(this.j(),b)};g.w(aZ,g.G);g.h=aZ.prototype;
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof HW)bZ(this,a,b,c,d,e,b.j.start,b.j.end,b.yp,b.visible);else if(b instanceof RW)bZ(this,a,b,c,d,e,b.j.start,b.j.end,b.yp,!1);else if(b instanceof OW)bZ(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.yp,b.visible);else throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.h.rj=function(a){var b=this.Mb.get(a.triggerId);b&&this.B.get().removeCueRange(b.Sz);this.Mb.delete(a.triggerId)};
g.h.onCueRangeEnter=function(a){if(a=qQa(this,a))if(a=this.Mb.get(a))if(g.V(jX(this.Ha.get()),32))this.j.add(a.Sz);else{var b=null==a?void 0:a.bundle.trigger;(b instanceof HW||b instanceof OW)&&VV(this.u(),[a.bundle])}};
g.h.onCueRangeExit=function(a){if(a=qQa(this,a))if(a=this.Mb.get(a))this.j.delete(a.Sz),a.bundle.trigger instanceof RW&&VV(this.u(),[a.bundle])};
g.h.Wi=function(a){if(0>yF(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.j.clear()}};
g.h.Uh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.rg=function(){};
g.h.Si=function(){};
g.h.onVolumeChange=function(){};
g.h.Vj=function(){};g.w(cZ,g.G);g.h=cZ.prototype;g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof uW||b instanceof SW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.rj=function(a){this.Mb.delete(a.triggerId)};
g.h.Tn=function(){};
g.h.Xk=function(){};
g.h.Nc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.h.Zc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.vf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.Lz=function(){null!=this.j&&EY(this,this.j)};
g.h.bA=function(a){if(null===this.u){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SW&&d.trigger.slotId===a&&b.push(d);b.length&&VV(this.B(),b)}};g.w(dZ,g.G);g.h=dZ.prototype;g.h.Wh=function(a,b){for(var c=[],d=g.r(this.Mb.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&&VV(this.j(),c)};
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof hPa))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.rj=function(a){this.Mb.delete(a.triggerId)};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Nc=function(){};
g.h.Zc=function(){};g.w(eZ,g.G);eZ.prototype.ra=function(){this.C.get().removeListener(this);g.G.prototype.ra.call(this)};g.w(fZ,g.G);fZ.prototype.ra=function(){this.D.get().removeListener(this);g.G.prototype.ra.call(this)};gZ.prototype.fetch=function(a){var b=a.IL;return this.Rp.fetch(a.DQ,{ew:void 0===a.ew?void 0:a.ew,Dd:b}).then(function(c){return rQa(c,b)})};g.w(hZ,g.G);g.h=hZ.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a,b){iZ(this,function(c){c.Cf(a,b)})};
g.h.CG=function(a){iZ(this,function(b){b.zF(a)})};
g.h.BG=function(a){iZ(this,function(b){b.yF(a)})};
g.h.rW=function(a){iZ(this,function(b){b.AA(a)})};g.w(jZ,g.G);g.h=jZ.prototype;g.h.uh=function(){this.C=new iH(this,wPa(this.La.get()));this.u=new jH;var a=this.I.getVideoData(1),b;if((null==(b=this.j)?void 0:b.clientPlaybackNonce)!==a.clientPlaybackNonce){null!=this.j&&this.j.unsubscribe("cuepointupdated",this.nB,this);a.subscribe("cuepointupdated",this.nB,this);this.j=a;this.B.clear();this.rC.length=0;var c;a=(null==(c=a.j)?void 0:Dta(c,0))||[];this.nB(a)}};
g.h.Xj=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.XG=function(a){this.rC.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.vO(a)};
g.h.nO=function(a){g.vc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.mO(a)};
g.h.nB=function(a){var b=mw(this.D.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,!b&&g.YC(this.I.V())||pX(this.Ta.get(),{cuepointTrigger:{event:tQa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.Gu,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),b?this.C.reduce(e):g.YC(this.I.V())||0===this.I.getCurrentTime(1)||"start"!==e.event||this.XG(e)};
g.h.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.nB,this),this.j=null);this.listeners.length=0;this.B.clear();this.rC.length=0;g.G.prototype.ra.call(this)};mZ.prototype.addListener=function(a){this.listeners.push(a)};
mZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=nZ.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.D.get().addListener(this);this.Ha.get().addListener(this);this.Ko();var a=X(this.layout.Fa,"metadata_type_layout_enter_ms"),b=X(this.layout.Fa,"metadata_type_layout_exit_ms"),c,d=null==(c=this.B.get().hq)?void 0:c.clientPlaybackNonce;c=this.layout.zc.adClientDataEntry;pX(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.D.get();e=kH(e.u,a,b);null!==e&&(pX(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",
adClientData:c}}),this.K.get().cq(e,b))};
g.h.release=function(){this.jp();this.D.get().removeListener(this);this.Ha.get().removeListener(this)};
g.h.startRendering=function(){this.hn();this.callback.Nc(this.slot,this.layout)};
g.h.mf=function(a,b){this.vp(b);null!==this.driftRecoveryMs&&(oZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(vQa(this)-X(this.layout.Fa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().I.qo()).toString()}),this.driftRecoveryMs=null);this.callback.Zc(this.slot,this.layout,b)};
g.h.vO=function(){};
g.h.mO=function(a){var b=X(this.layout.Fa,"metadata_type_layout_enter_ms"),c=X(this.layout.Fa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;pX(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.B.get().hq)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}});this.K.get().cq(a,c)}};
g.h.Uh=function(a){this.bO(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(fPa(this.N.get(),this.layout.layoutId)){var b=X(this.layout.Fa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=vQa(this),e=this.Ha.get().I.qo(),f=Math.min(a+e,d/1E3);f<=a?oZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(oZ(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.Ha.get().I.seekTo(f,void 0,void 0,1))}}};
g.h.rg=function(){};
g.h.Si=function(){};
g.h.onVolumeChange=function(){};
g.h.Vj=function(){};g.w(pZ,nZ);g.h=pZ.prototype;g.h.Ko=function(){this.B.get().addListener(this);this.J.forEach(function(a){a.init()});
null!=this.C&&this.Ta.get().Pi("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.h.jp=function(){this.B.get().removeListener(this);this.u=null;this.J.forEach(function(a){a.release()})};
g.h.hn=function(){if(this.u)T("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var a,b=null==(a=this.B.get().hq)?void 0:a.layoutId;xQa(this,b)}};
g.h.vp=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.Ci)||e.mf(null==(b=this.u)?void 0:null==(c=b.Ci)?void 0:c.Kb(),a);this.u=null};
g.h.BO=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ta.get().Pi("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.Ci)?void 0:d.Kb().layoutId))}var e;if(this.u&&(null==(e=this.u.Ci)?void 0:e.Kb().layoutId)!==a){var f,k;null==(k=this.u.Ci)||k.mf(null==(f=this.u.Ci)?void 0:f.Kb(),"normal");xQa(this,a)}};
g.h.bO=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};g.h=IQa.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){var a=this;X(this.layout.Fa,"metadata_type_player_bytes_callback_ref").current=this;this.Cc=yQa(this.slot,this.layout,X(this.layout.Fa,"metadata_type_player_vars"),X(this.layout.Fa,"metadata_type_layout_enter_ms"),X(this.layout.Fa,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Fa,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var d=Object,e=d.assign,f=tZ(a.layout);var k=X(a.slot.Fa,"metadata_type_fulfilled_layout");k=Object.assign({},tZ(k),{adPlacementConfig:X(k.Fa,
"metadata_type_ad_placement_config"),subLayouts:X(k.Fa,"metadata_type_sub_layouts").map(tZ)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:k,hasSurveyOverlay:nw(a.layout.Fa,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Fa,"metadata_type_survey_overlay")})},this.Ta.get());
this.Ha.get().addListener(this);var b=X(this.layout.Fa,"metadata_type_video_length_seconds"),c=X(this.layout.Fa,"metadata_type_active_view_traffic_type");yPa(this.La.get())||kX(this.B.get(),this.layout.layoutId,c,b,this);SV(this.callback,this.slot,this.layout);TV(this.callback,this.slot,this.layout)};
g.h.release=function(){this.Ha.get().removeListener(this);yPa(this.La.get())||lX(this.B.get(),this.layout.layoutId);this.La.get().I.V().S("html5_unschedule_dai_media_sublayout_killswitch")||fH(this.callback,this.slot,this.layout)};
g.h.startRendering=function(){var a=this;nw(this.layout.Fa,"metadata_type_survey_overlay")&&this.Ta.get().Pi("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:nw(this.layout.Fa,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Fa,"metadata_type_survey_overlay")});else{this.u={Rj:null,iy:!1};this.La.get().I.V().experiments.ob("html5_disable_sodar_for_tvhtml5")||zQa(this.slot,this.layout,
this.J.get());oY(this.j,"start");if(gX(this.La.get())){var b=jX(this.Ha.get()),c=X(this.layout.Fa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);AQa(this.j,this.u.Rj,b,c,d,function(){return void KQa(a,"teois")})}UV(this.callback,this.slot,this.layout);
nw(this.layout.Fa,"metadata_type_survey_overlay")&&this.Ta.get().Pi("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.h.mf=function(a,b){var c=this;if(this.u){if(gX(this.La.get()))if(null===this.Cc)T("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Fa,"metadata_type_video_length_seconds");var d=uX(this.Ha.get(),this.Cc);this.j.B=d;rZ(this.j,null,this.u.Rj,a,d,function(e){return void JQa(c,e,"fue")})}this.u=null;
NF(this.callback,this.slot,this.layout,b)}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.sx=function(){};
g.h.zA=function(){};
g.h.Uh=function(a){var b=this;if(this.u){if(qY(this.j,"impression")){var c=jX(this.Ha.get()),d=X(this.layout.Fa,"metadata_type_video_length_seconds");sZ(this.j,c,a,this.u.Rj,d,function(e){return void JQa(b,e,"tpaqe")})}this.u.Rj=a}};
g.h.Wi=function(a){var b=this;if(this.u){gX(this.La.get())||this.u.iy||(this.u.iy=!0,a=new g.xF(a.state,new g.tH));var c=X(this.layout.Fa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);qZ(this.j,this.u.Rj,a,c,d,!gX(this.La.get()),function(){return void KQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){BQa(this.j,a)};
g.h.rg=function(){};
g.h.Si=function(){};
g.h.Hx=function(){};
g.h.onVolumeChange=function(){};
g.h.Nc=function(){};
g.h.Zc=function(){};
g.h.Uq=function(){};
g.h.qr=function(){};
g.h.VB=function(){CQa(this.j)};
g.h.yx=function(){DQa(this.j)};
g.h.xx=function(){EQa(this.j)};
g.h.zx=function(){FQa(this.j)};
g.h.vx=function(){GQa(this.j)};
g.h.wx=function(){HQa(this.j)};
g.h.Vj=function(){};g.w(uZ,nZ);g.h=uZ.prototype;
g.h.Ko=function(){var a=this;X(this.layout.Fa,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Fa,"metadata_type_layout_enter_ms"),c=X(this.layout.Fa,"metadata_type_layout_exit_ms");this.Cc=yQa(this.slot,this.layout,X(this.layout.Fa,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Fa,"metadata_type_video_length_seconds"),this.K.get(),this.X.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Fa,"metadata_type_ad_placement_config")}},
this.Ta.get());
var d=X(this.layout.Fa,"metadata_type_video_length_seconds"),e=X(this.layout.Fa,"metadata_type_active_view_traffic_type");kX(this.C.get(),this.layout.layoutId,e,d,this)};
g.h.jp=function(){lX(this.C.get(),this.layout.layoutId)};
g.h.hn=function(){var a=this;if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Rj:null,iy:!1},zQa(this.slot,this.layout,this.J.get()),oY(this.j,"start"),gX(this.La.get())){var b=jX(this.Ha.get()),c=X(this.layout.Fa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);AQa(this.j,this.u.Rj,b,c,d,function(){return void LQa(a,"teois")})}};
g.h.vp=function(){var a=this;if(this.u){if(gX(this.La.get()))if(null===this.Cc)T("Unexpected single media layout exited without a timeline playback ID");else{var b=X(this.layout.Fa,"metadata_type_video_length_seconds"),c=uX(this.Ha.get(),this.Cc);this.j.B=c;rZ(this.j,null,this.u.Rj,b,c,function(d){return void MQa(a,d,"fue")})}this.u=null}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.bO=function(a){var b=this;if(this.u){if(qY(this.j,"impression")){var c=jX(this.Ha.get()),d=X(this.layout.Fa,"metadata_type_video_length_seconds");sZ(this.j,c,a,this.u.Rj,d,function(e){return void MQa(b,e,"tpaqe")})}this.u.Rj=a}};
g.h.Wi=function(a){var b=this;if(this.u){gX(this.La.get())||this.u.iy||(this.u.iy=!0,a=new g.xF(a.state,new g.tH));var c=X(this.layout.Fa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);qZ(this.j,this.u.Rj,a,c,d,!gX(this.La.get()),function(){return void LQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){BQa(this.j,a)};
g.h.VB=function(){CQa(this.j)};
g.h.yx=function(){DQa(this.j)};
g.h.xx=function(){EQa(this.j)};
g.h.zx=function(){FQa(this.j)};
g.h.vx=function(){GQa(this.j)};
g.h.wx=function(){HQa(this.j)};vZ.prototype.Ae=function(a,b,c,d){if(nw(c.Fa,"metadata_type_dai")){var e=X(d.Fa,"metadata_type_ad_placement_config");jY(d,{Wd:"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(" "),Ve:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new lY(d.uc,this.Ta,e,d.layoutId,null),e=new uZ(a,c,d,this.j,this.B,this.K,this.D,this.Ha,e,this.Ta,this.C,this.J,this.u,this.La)):e=null;
if(e)return e;a:{var f=X(d.Fa,"metadata_type_sub_layouts"),k=X(d.Fa,"metadata_type_ad_placement_config");if(jY(d,{Wd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ve:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==k){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=X(l.Fa,"metadata_type_media_sub_layout_index");if(!jY(l,{Wd:"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(" "),
Ve:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new lY(l.uc,this.Ta,k,l.layoutId,m);e.push(new IQa(b,c,l,this.B,m,this.Ha,this.K,this.u,this.C,this.La,this.Ta,this.j))}b=new lY(d.uc,this.Ta,k,d.layoutId);a=new pZ(a,c,d,this.j,this.B,this.D,this.Ha,b,this.Ta,this.J,e)}else a=null}if(a)return a}else if(a=eQa(a,b,c,d,this.Ge,this.va,this.Ta,this.u,this.C,this.Xd,this.j,this.Ha,this.Z,this.wd,this.Qc,this.N,this.X,this.ma,this.La))return a;throw new NV("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+qV(d.Fa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(wZ,g.G);wZ.prototype.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof BW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
wZ.prototype.rj=function(a){this.Mb.delete(a.triggerId)};g.w(yZ,g.G);
yZ.prototype.dj=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new XV("Tried to re-register the trigger.");a=new WY(a,b,c,d);if(a.trigger instanceof mPa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof sW)this.B.set(a.trigger.triggerId,a);else throw new XV("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&VV(this.C(),[a])};
yZ.prototype.rj=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
yZ.prototype.BO=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(NQa(this.B,this.j)));null!=a&&b.push.apply(b,g.u(NQa(this.u,a)));this.j=a;b.length&&VV(this.C(),b)}};g.h=zZ.prototype;g.h.Fs=function(a,b,c,d,e,f){return this.I.Fs(a,b,c,d,e,f)};
g.h.cq=function(a,b){this.I.cq(a,b)};
g.h.Lu=function(a,b,c){this.I.Lu(a,b,c)};
g.h.ep=function(a){this.I.ep(a)};
g.h.Vw=function(a,b,c,d,e,f){this.I.Vw(a,b,c,d,e,f)};g.w(OQa,NE);g.w(AZ,sY);g.h=AZ.prototype;g.h.Cf=function(a,b){uY("image-companion",a,this.J.get().di,this.Ta.get(),this.B,this.C,this.Fd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Fd(),this.Kb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new OQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Nc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ta.get().ih():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Zc=function(){};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.ra=function(){this.Ge().Vd.delete(this);sY.prototype.ra.call(this)};g.w(QQa,NE);g.w(BZ,sY);g.h=BZ.prototype;g.h.Cf=function(a,b){uY("shopping-companion",a,this.J.get().di,this.Ta.get(),this.B,this.C,this.Fd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Fd(),this.Kb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new QQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Nc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ta.get().ih():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Zc=function(){};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.ra=function(){this.Ge().Vd.delete(this);sY.prototype.ra.call(this)};g.w(SQa,NE);g.w(CZ,sY);g.h=CZ.prototype;g.h.Cf=function(a,b){uY("ads-engagement-panel",a,this.J.get().di,this.Ta.get(),this.B,this.C,this.Fd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Fd(),this.Kb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new SQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Nc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ta.get().ih():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Zc=function(){};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.ra=function(){this.Ge().Vd.delete(this);sY.prototype.ra.call(this)};UQa.prototype.Ae=function(a,b,c,d){if(jY(d,TQa()))return new CZ(a,c,d,this.j,this.Ta,this.Ge,this.B,this.u);if(jY(d,UPa()))return new vY(a,c,d,this.j,this.Ta,this.Ge,this.B,this.u);if(jY(d,PQa()))return new AZ(a,c,d,this.j,this.Ta,this.Ge,this.B,this.u);if(jY(d,RQa()))return new BZ(a,c,d,this.j,this.Ta,this.Ge,this.B,this.u);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(DZ,NE);g.w(EZ,sY);EZ.prototype.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Fa,"metadata_type_player_underlay_renderer");this.j.push(new DZ(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.zc}))};
EZ.prototype.Cf=function(){};
EZ.prototype.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a)};
EZ.prototype.ra=function(){sY.prototype.ra.call(this)};VQa.prototype.Ae=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(mY()),f=e.next();!f.done;f=e.next())b.push(f.value);if(jY(d,{Wd:b,Ve:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new EZ(a,c,d,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.h=WQa.prototype;g.h.Fd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.Ha.get().addListener(this)};
g.h.release=function(){this.Ha.get().removeListener(this)};
g.h.startRendering=function(a){this.callback.Nc(this.slot,a)};
g.h.mf=function(a,b){this.callback.Zc(this.slot,a,b)};
g.h.Vj=function(a){switch(a.id){case "part2viewed":oY(this.j,"start");break;case "videoplaytime25":oY(this.j,"first_quartile");break;case "videoplaytime50":oY(this.j,"midpoint");break;case "videoplaytime75":oY(this.j,"third_quartile");break;case "videoplaytime100":oY(this.j,"complete");break;case "engagedview":oY(this.j,"progress");break;default:T("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.h.onVolumeChange=function(){};
g.h.Si=function(){};
g.h.rg=function(){};
g.h.onFullscreenToggled=function(){};
g.h.Wi=function(){};
g.h.Uh=function(){};XQa.prototype.Ae=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(mY()),f=e.next();!f.done;f=e.next())b.push(f.value);if(jY(d,{Wd:b,Ve:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new WQa(a,c,d,this.Ha,this.Ta);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.w(FZ,sY);FZ.prototype.startRendering=function(a){var b=nY(this.B),c={adsClientData:this.layout.zc};this.j.push(new ZG(X(this.layout.Fa,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Kb().layoutId,c,!0,!0));sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a)};
FZ.prototype.Cf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Fa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Hx(this.slot,this.layout):T("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
FZ.prototype.ra=function(){sY.prototype.ra.call(this)};var HZ=new g.Ch(320,63);g.w(KZ,NE);g.w(LZ,sY);g.h=LZ.prototype;g.h.Uh=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.rg=function(a){a&&xZ(this.B,this.layout)};
g.h.Si=function(a){var b=JZ(this.layout);if(this.J=IZ(a,HPa(this.Ha.get())))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Iw=function(){return this.Kb().layoutId};
g.h.aF=function(){return this.J};
g.h.Cf=function(a){this.C.Cf(a);"in_video_overlay_close_button"===a&&xZ(this.B,this.layout)};
g.h.AA=function(a){"invideo-overlay"===a&&xZ(this.B,this.layout)};
g.h.Xo=function(){this.C.Xo()};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a);this.D.Cs=this};
g.h.mf=function(a,b){sY.prototype.mf.call(this,a,b);r_(this.D,this)};
g.h.init=function(){sY.prototype.init.call(this);qX(this.Ta.get(),this);this.Ha.get().addListener(this);this.j.push(new KZ(JZ(this.layout),nY(this.N),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.h.release=function(){sY.prototype.release.call(this);this.Ha.get().removeListener(this);rX(this.Ta.get(),this)};
g.h.Vj=function(){};g.w(MZ,sY);g.h=MZ.prototype;g.h.init=function(){sY.prototype.init.call(this);qX(this.Ta.get(),this);this.Ha.get().addListener(this);this.j.push(new KZ(JZ(this.layout),nY(this.X),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.h.Xo=function(){this.C.Xo()};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a);this.D.Cs=this};
g.h.mf=function(a,b){sY.prototype.mf.call(this,a,b);r_(this.D,this)};
g.h.Cf=function(a){this.C.Cf(a);"in_video_overlay_close_button"===a&&xZ(this.B,this.layout)};
g.h.zF=function(a){if("invideo-overlay"===a){a=bRa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.h.AA=function(a){"invideo-overlay"===a&&xZ(this.B,this.layout)};
g.h.yF=function(a){if("invideo-overlay"===a){a=bRa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.h.Uh=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.rg=function(a){a&&xZ(this.B,this.layout)};
g.h.Si=function(a){var b=JZ(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=HPa(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.dc(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Ch(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Ch(0,0)}if(this.J=IZ(a,d,c))b.onErrorCommand&&this.N.get().executeCommand(b.onErrorCommand,this.layout.layoutId),xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Iw=function(){return this.Kb().layoutId};
g.h.aF=function(){return this.J};
g.h.release=function(){sY.prototype.release.call(this);this.Ha.get().removeListener(this);rX(this.Ta.get(),this)};
g.h.Vj=function(){};NZ.prototype.Cf=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().Im(1))||this.Ha.get().pauseVideo())};
NZ.prototype.Xo=function(){this.j||this.Ha.get().resumeVideo(1)};g.w(OZ,sY);g.h=OZ.prototype;g.h.init=function(){sY.prototype.init.call(this);this.Ha.get().addListener(this)};
g.h.startRendering=function(a){var b=X(this.layout.Fa,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new UG(b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0));sY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a)};
g.h.Nc=function(){};
g.h.Cf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Fa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Uq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.qr(this.slot,this.layout):T("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.h.Si=function(a){450>a.width&&xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Uh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.rg=function(){};
g.h.Wi=function(){};
g.h.Vj=function(){};
g.h.ra=function(){sY.prototype.ra.call(this)};
g.h.release=function(){sY.prototype.release.call(this);this.Ha.get().removeListener(this)};aRa.prototype.Ae=function(a,b,c,d){if(b=yY(a,c,d,this.j,this.Ha,this.Ta,this.K,this.u))return b;if(jY(d,$Qa()))return new MZ(c,d,this.Ta,this.D,this.j,a,this.B,this.J,this.Ha,this.C,this.La,this.u,new NZ(this.Ha));if(jY(d,ZQa()))return new LZ(c,d,this.Ta,this.D,this.j,a,this.B,this.Ha,this.C,this.La,this.u,new NZ(this.Ha));if(jY(d,{Wd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ve:["LAYOUT_TYPE_SURVEY"]}))return new OZ(c,d,a,this.j,this.B,this.Ha,this.La);if(jY(d,{Wd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ve:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new FZ(c,d,a,this.j,this.Ta);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(PZ,g.G);g.h=PZ.prototype;g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof xW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d));a=this.j.has(b.Qe)?this.j.get(b.Qe):new Set;a.add(b);this.j.set(b.Qe,a)};
g.h.rj=function(a){this.Mb.delete(a.triggerId);if(!(a instanceof xW))throw new XV("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.j.get(a.Qe))b.delete(a),0===b.size&&this.j.delete(a.Qe)};
g.h.yh=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.uf=function(){};
g.h.vf=function(){};
g.h.Zj=function(){};
g.h.bk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Wh=function(){};
g.h.Nc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Vu:a.Vu},d=b.next())a.Vu=d.value,d=new g.L(function(e){return function(){var f=c.Mb.get(e.Vu.triggerId);VV(c.B(),[f])}}(a),a.Vu.durationMs),d.start(),this.u.set(a.Vu.triggerId,d)}};
g.h.Zc=function(){};g.w(cRa,g.G);dRa.prototype.Ae=function(a,b,c,d){if(b=yY(a,c,d,this.u,this.Ha,this.Ta,this.K,this.j))return b;if(jY(d,$Qa()))return new MZ(c,d,this.Ta,this.D,this.u,a,this.B,this.J,this.Ha,this.C,this.La,this.j,new NZ(this.Ha));if(jY(d,ZQa()))return new LZ(c,d,this.Ta,this.D,this.u,a,this.B,this.Ha,this.C,this.La,this.j,new NZ(this.Ha));throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(eRa,g.G);g.w(fRa,g.G);g.w(gRa,g.G);g.w(RZ,xY);RZ.prototype.startRendering=function(a){xY.prototype.startRendering.call(this,a);X(this.layout.Fa,"metadata_ad_video_is_listed")&&(a=X(this.layout.Fa,"metadata_type_ad_info_ad_metadata"),this.K.get().I.Oa("onAdMetadataAvailable",a))};iRa.prototype.Ae=function(a,b,c,d){if(jY(d,hRa()))return new RZ(a,c,d,this.B,this.Ha,this.Ta,this.C,this.u,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(jRa,g.G);kRa.prototype.Ae=function(a,b,c,d){if(jY(d,hRa()))return new RZ(a,c,d,this.u,this.Ha,this.Ta,this.B,this.C,this.j);if(a=yY(a,c,d,this.u,this.Ha,this.Ta,this.B,this.j))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Fa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(lRa,g.G);g.w(SZ,g.G);SZ.prototype.B=function(){return this.u};UZ.prototype.bA=function(a){this.Pk.bA(a)};
UZ.prototype.Lz=function(){try{this.Pk.Lz()}catch(a){}};
UZ.prototype.Tn=function(){this.j().Tn()};
UZ.prototype.Xk=function(){this.j().Xk()};g.w(VZ,PI);
VZ.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Oa("updateEngagementPanelAction",b.addAction);this.j.Oa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Oa("changeEngagementPanelVisibility",b.hideAction),this.j.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(WZ,XI);g.h=WZ.prototype;g.h.init=function(a,b,c){XI.prototype.init.call(this,a,b,c);g.Dm(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){ZI(this);XI.prototype.hide.call(this)};
g.h.show=function(){YI(this);XI.prototype.show.call(this)};
g.h.Xq=function(){this.hide()};
g.h.hp=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Dm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(XZ,qI);g.h=XZ.prototype;
g.h.init=function(a,b,c){qI.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.S(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.nb(g.Ih(e[0].url))&&(e[0].url=d.profilePicture);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.nb(g.Ih(e[0].url))&&(e[0].url=d.Se());e=b.headline;null!=e&&g.nb(g.Ih(e.text))&&(e.text=d.author)}this.D.init(ME("ad-image"),b.image,c);this.N.init(ME("ad-text"),b.headline,c);this.J.init(ME("ad-text"),b.description,c);this.Z.init(ME("ad-image"),b.backgroundImage,c);this.actionButton=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-action-interstitial-action-button"]);
g.H(this,this.actionButton);this.actionButton.Ba(this.Ja);this.actionButton.init(ME("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.Ia,"click",this.QE,this),this.C.T(this.Ea,"click",this.QE,this),this.C.T(this.ya,"click",this.QE,this));this.u=this.Rg?new lJ(this.api,a):new mJ(a);g.H(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new gJ(this.api,this.fb,this.layoutId,this.j,this.kb,
this.u,this.jj),g.H(this,this.skipButton),this.skipButton.Ba(this.element),this.skipButton.init(ME("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new bJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,!1),g.H(this,this.B),this.B.Ba(this.element),this.B.init(ME("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new WZ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u),
g.H(this,c),c.Ba(this.element),c.init(ME("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.S(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.S(Error("AdActionInterstitialRenderer has no button."));else g.S(Error("AdActionInterstitialRenderer has no background AdImage."));else g.S(Error("AdActionInterstitialRenderer has no description AdText."));else g.S(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.S(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.dv(this.C);this.hide()};
g.h.show=function(){nRa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();qI.prototype.show.call(this)};
g.h.hide=function(){nRa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();qI.prototype.hide.call(this)};
g.h.QE=function(){this.navigationEndpoint&&RI(this.kb,this.navigationEndpoint,this.macros)};var ZZ={iconType:"CLOSE"},c_=new g.Ch(320,63);g.w(YZ,qI);g.h=YZ.prototype;
g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);this.D=b;this.N=g.jc(this.D.onClickCommands||[]);this.Ia=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.J=g.Rh("ytp-ad-overlay-ad-info-button-container",this.C.element),a_(this,b),a=rRa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.J=g.Rh("ytp-ad-overlay-ad-info-button-container",this.B.element),
a_(this,b),a=sRa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.J=g.Rh("ytp-ad-overlay-ad-info-button-container",this.u.element),a_(this,b),a=tRa(this,a.imageOverlayAdContentRenderer)):(g.S(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),uRa(this,!0))};
g.h.clear=function(){uRa(this,!1);this.Ea.reset();this.Z=0;this.C.hide();this.bb(this.C.element,!1);this.B.hide();this.bb(this.B.element,!1);this.u.hide();this.bb(this.u.element,!1);this.hide();this.dispose()};
g.h.KY=function(){this.Qa&&RI(this.kb,this.Qa,this.macros);this.api.pauseVideo()};
g.h.Ti=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.r(a);for(var b=a.next();!b.done;b=a.next())RI(this.kb,b.value,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.h.kW=function(){this.Ja||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.h.WG=function(){this.Ja||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.WG("invideo-overlay")};
g.h.lW=function(a){a.target===this.J&&g.Rh("ytp-ad-button",this.Xa.element).click()};g.w(d_,XI);g.h=d_.prototype;g.h.init=function(a,b,c){XI.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(ME("ad-text"),d,c);this.messageText.Ba(this.B.element);this.J.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){vRa(this,!1);XI.prototype.hide.call(this);this.B.hide();this.messageText.hide();ZI(this)};
g.h.show=function(){vRa(this,!0);XI.prototype.show.call(this);YI(this);this.B.show();this.messageText.show()};
g.h.Xq=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.N&&a>=this.C?(this.J.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(WI(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.w(e_,qI);g.h=e_.prototype;
g.h.init=function(a,b,c){qI.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(ME("ad-image"),b.image,c),this.u.init(ME("ad-text"),b.headline,c),this.D.init(ME("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().S("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,a),g.H(this,
this.actionButton),this.actionButton.Ba(this.J),this.actionButton.init(ME("button"),b.actionButton.buttonRenderer,c),b=g.YA(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().S("place_shrunken_video_on_left_of_player")?(c=this.B,g.yp(c,"ytp-ad-underlay-left-container"),g.M(c,"ytp-ad-underlay-right-container"),g.Dm(this.B,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.B,g.yp(c,"ytp-ad-underlay-right-container"),g.M(c,"ytp-ad-underlay-left-container")),g.Dm(this.B,"width",
Math.round(100*(1-b-.04))+"%"),this.api.PA()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.QJ.bind(this)),this.api.addEventListener("resize",this.FM.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.h.show=function(){wRa(!0);this.actionButton&&this.actionButton.show();qI.prototype.show.call(this)};
g.h.hide=function(){wRa(!1);this.actionButton&&this.actionButton.hide();qI.prototype.hide.call(this)};
g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.QJ.bind(this));this.api.removeEventListener("resize",this.FM.bind(this));this.hide()};
g.h.onClick=function(a){qI.prototype.onClick.call(this,a);this.actionButton&&g.bi(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.h.QJ=function(a){"transitioning"===a?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-transition"),this.show()):"visible"===a?this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"):"hidden"===a&&(this.hide(),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"))};
g.h.FM=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.Dm(this.u.element,"font-size",a.width/40+"px")};g.w(f_,qI);
f_.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ba(this.answer),a.init(ME("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,
["ytp-ad-survey-answer-toggle-button"]),this.u.Ba(this.answer),g.H(this,this.u),this.u.init(ME("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
f_.prototype.clear=function(){this.hide()};g.w(g_,qI);g_.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ba(this.u),this.button.init(ME("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(h_,FI);h_.prototype.init=function(a,b,c){FI.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Lw(b.text),a=!g.nb(b));a||g.Ov(Error("No submit text was present in the renderer."))};
h_.prototype.onClick=function(a){this.ea("l");FI.prototype.onClick.call(this,a)};g.w(i_,qI);
i_.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new hJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.C,this.jj),c.Ba(this.J),c.init(ME("skip-button"),a,this.macros),g.H(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new bJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.C,!1),c.Ba(this.J),c.init(ME("ad-preview"),a,this.macros),cJ(c),g.H(this,c),this.u=c);null==this.u&&g.S(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new h_(this.api,this.fb,this.layoutId,this.j,this.kb),c.Ba(this.submitButton),c.init(ME("survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new jJ(this.api,this.fb,this.layoutId,this.j,this.kb,!0),c.Ba(this.D),c.init(ME("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new pJ(this.api,this.fb,this.layoutId,this.j,this.kb,
this.C,void 0),c.Ba(this.D),c.init(ME("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new UI(this.api,this.fb,this.layoutId,this.j,this.kb,this.element),g.H(this,a),a.Ba(this.D),a.init(ME("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
i_.prototype.clear=function(){this.hide()};g.w(j_,qI);j_.prototype.init=function(a,b,c){qI.prototype.init.call(this,a,b,c);ARa(this)};
j_.prototype.show=function(){this.C=g.Va();qI.prototype.show.call(this)};
j_.prototype.sP=function(){};g.w(k_,j_);g.h=k_.prototype;g.h.init=function(a,b,c){var d=this;j_.prototype.init.call(this,a,b,c);b.questionText&&g.ci(this.questionText,g.Lw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&xRa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.J=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&BRa(this,a,c);b.surveyAdQuestionCommon&&zRa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.h.sP=function(){l_(this,!1);this.D.B.subscribe("l",this.IY,this)};
g.h.onChange=function(a){a.target===this.noneOfTheAbove.button.u?CRa(this):this.J.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),l_(this,!0))};
g.h.IY=function(){var a=this.B.reduce(function(d,e){var f=e.toggledLoggingParams;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),b=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.hg(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=oj(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())RI(this.kb,c.value,this.macros)}};
g.h.clear=function(){this.api.V().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(m_,j_);m_.prototype.init=function(a,b,c){var d=this;j_.prototype.init.call(this,a,b,c);b.questionText&&g.ci(this.questionText,g.Lw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&xRa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?zRa(this,b.surveyAdQuestionCommon):g.S(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
m_.prototype.clear=function(){this.api.V().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(n_,qI);
n_.prototype.init=function(a,b,c){var d=this;qI.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new m_(d.api,d.fb,d.layoutId,d.j,d.kb,d.Rg,d.jj);f.Ba(d.u);f.init(ME("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new k_(d.api,d.fb,d.layoutId,d.j,d.kb,
d.Rg,d.jj),f.Ba(d.u),f.init(ME("survey-question-multi-select"),e,c),d.questions.push(f),g.H(d,f))});
this.show()};
n_.prototype.clear=function(){this.api.V().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(o_,qI);
o_.prototype.init=function(a,b,c){var d=this;qI.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.S(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){ERa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
ERa(this.logoImage,b.brandImage);g.ci(this.text,g.Lw(b.text));this.actionButton=new FI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ba(this.B);this.actionButton.init(ME("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Rg?new lJ(this.api,1E3*a):new mJ(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Rg){for(var k=g.r(e),l=k.next();!l.done;l=
k.next())RI(d.kb,l.value,c);RI(d.kb,{adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.H(this,this.u);this.T(this.element,"click",function(k){var l=b.dismissCommands,m=k.target===d.interstitial;k=d.actionButton.element.contains(k.target);if(m||k)if(d.transition.hide(),m)if(d.WH)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())RI(d.kb,m.value,d.macros)});
this.transition.show(100);if(!this.Rg&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())RI(this.kb,f.value,c)}}else g.S(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S(Error("SurveyTextInterstitialRenderer has no button."));else g.S(Error("SurveyTextInterstitialRenderer has no text."));else g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
o_.prototype.clear=function(){this.hide()};
o_.prototype.show=function(){FRa(!0);qI.prototype.show.call(this)};
o_.prototype.hide=function(){FRa(!1);qI.prototype.hide.call(this)};var iUa="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(p_,PI);
p_.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!iUa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=this.kb,k=c.layoutId,l=c.j,m=c instanceof EF||c instanceof UG||c instanceof ZG?c.Rg:!1,n=c instanceof EF||c instanceof kJ||c instanceof UG?c.jj:!1,p=c instanceof ZG?c.WH:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new YZ(e,a,k,l,f);break;case "player-overlay":a=new wJ(e,a,k,l,f,new kM(e),n);
break;case "survey":a=new n_(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new XZ(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new o_(e,a,k,l,f,m,p);break;case "ad-message":a=new d_(e,a,k,l,f,new kM(e,1));break;case "player-underlay":a=new e_(e,a,k,l,f);break;default:a=null}if(!a){g.Ov(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Yf(this.u,b)?g.Ov(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof DZ?this.B?this.B.append(a.GH):
g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.GH);break;case 2:b=GRa(this,a);if(null==b)break;b.bind(c);break;case 3:c=GRa(this,a),null!=c&&(g.zf(c),g.Yf(this.u,b)?g.dg(this.u,b):g.Ov(Error("Ad UI component does not exist: "+b)))}};
p_.prototype.ra=function(){g.Af(Object.values(this.u));this.u={};PI.prototype.ra.call(this)};g.w(q_,g.rL);g.h=q_.prototype;g.h.create=function(){if(dW(TZ(this.j).Sf))try{HRa(this),this.load(),this.created=!0,HRa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
g.h.load=function(){g.rL.prototype.load.call(this);var a=TZ(this.j).Sf;wqa(a.I.V().S("html5_reduce_ecatcher_errors"));if(dW(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(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 k=c&&c.Ef()||!1;a=LRa(f,a,e,k,TZ(this.j).Nj);f=c&&c.clientPlaybackNonce||"";c=c&&c.bq||!1;k=1E3*this.player.getDuration(1);this.fb=new gI(this,this.player,this.Rp,b,TZ(this.j));Yza(this.fb,a.Xv);this.j.j.Yo.uh(f,k,c,a.BB,a.BB.concat(a.Xv),e,d);hI(this.fb)};
g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Yo.Xj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.h.unload=function(){g.rL.prototype.unload.call(this);wqa(!1);if(dW(TZ(this.j).Sf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.fb){var a=this.fb;this.fb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Rp.reset()};
g.h.ai=function(){return!1};
g.h.XH=function(){return null===this.fb?!1:this.fb.XH()};
g.h.zl=function(a){null!==this.fb&&this.fb.zl(a)};
g.h.getAdState=function(){return this.fb?this.fb.HA:-1};
g.h.getOptions=function(){return Object.values(hUa)};
g.h.yf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=eF(this.player),Object.assign(b,a.Hga),this.fb&&!b.AD_CPN&&(b.AD_CPN=this.fb.zw()),a=g.ip(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xo(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.h.Xo=function(a){a.isMuted&&Nza(this.fb,TZ(this.j).ph,TZ(this.j).Ri,a.layoutId);this.Cs&&this.Cs.Xo()};
g.h.executeCommand=function(a){TZ(this.j).kb.executeCommand(a.command,a.layoutId)};
g.h.No=function(){return null===this.fb?!1:this.fb.No()};g.qL("ad",q_);var NRa=g.Nc&&MRa();g.w(g.t_,g.W);g.t_.prototype.onClick=function(){this.I.Oa("onExpandMiniplayer")};})(_yt_player);
